/* =====================================================================
 * Faster Event — questionnaire de satisfaction
 * Couleurs : variables du thème (fallbacks = charte orange Faster Event).
 * ================================================================== */

.fastr-sat-page {
    max-width: 720px;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.fastr-sat {
    --sat-orange: var(--color-primary, #c84b0c);
    --sat-orange-dark: var(--color-primary-dark, #a63d09);
    --sat-orange-light: var(--color-primary-light, #fff0e6);
    --sat-orange-mid: #fddcc8;
    --sat-cream: var(--color-bg, #faf7f2);
    --sat-text: var(--color-fg, #2a1a0e);
    --sat-text-light: var(--color-muted-foreground, #7a5c44);
    --sat-border: var(--color-border, #ede0d4);
    --sat-radius: 14px;
    --sat-shadow: 0 4px 24px rgba(200, 75, 12, .08);
    color: var(--sat-text);
}

.fastr-sat .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.fastr-sat .fastr-required {
    color: var(--sat-orange);
}

.fastr-sat-hint {
    font-weight: 400;
    font-size: .8rem;
    color: var(--sat-text-light);
}

/* ---------- Bandeau ---------- */
.fastr-sat-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #c84b0c 0%, #e07030 100%);
    border-radius: var(--sat-radius) var(--sat-radius) 0 0;
    padding: 2rem 1.5rem 0;
    margin-bottom: 2rem;
    scroll-margin-top: 110px;
}

.fastr-sat-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .14) 0%, transparent 60%);
    pointer-events: none;
}

.fastr-sat-hero__brand {
    position: relative;
    margin: 0 0 .25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .85;
}

.fastr-sat-hero__title {
    position: relative;
    margin: 0 0 1.75rem;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    color: #fff;
}

.fastr-sat-progress {
    position: relative;
    height: 5px;
    margin: 0 -1.5rem;
    background: rgba(255, 255, 255, .3);
}

.fastr-sat-progress__fill {
    width: 0;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, .6);
    transition: width .4s ease;
}

/* Sans JS : pas de progression affichée. */
.fastr-sat:not(.has-wizard) .fastr-sat-progress {
    visibility: hidden;
}

/* ---------- Étapes ---------- */
.fastr-sat-form.is-wizard .fastr-sat-panel:not(.is-active) {
    display: none;
}

.fastr-sat-form:not(.is-wizard) .fastr-sat-panel + .fastr-sat-panel {
    margin-top: 2.5rem;
}

.fastr-sat-form.is-wizard .fastr-sat-panel.is-active {
    animation: fastr-sat-in .3s ease;
}

@keyframes fastr-sat-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fastr-sat-form.is-wizard .fastr-sat-panel.is-active { animation: none; }
    .fastr-sat-progress__fill { transition: none; }
}

.fastr-sat-badge {
    display: inline-block;
    margin: 0 0 .6rem;
    padding: .3rem .8rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sat-orange);
    background: var(--sat-orange-light);
    border-radius: 999px;
}

.fastr-sat-panel__title {
    margin: 0 0 .4rem;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.4rem, 3.5vw, 1.6rem);
    line-height: 1.3;
}

.fastr-sat-panel__desc {
    margin: 0 0 1.5rem;
    font-size: .92rem;
    line-height: 1.7;
    color: var(--sat-text-light);
}

/* ---------- Cartes ---------- */
.fastr-sat-card {
    display: block;
    min-width: 0;
    margin: 0 0 .9rem;
    padding: 1.25rem 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid var(--sat-border);
    border-radius: var(--sat-radius);
    box-shadow: var(--sat-shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.fastr-sat-card.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, .15);
}

.fastr-sat-card__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    float: left; /* legend : sort du bord du fieldset */
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    font-size: .92rem;
    font-weight: 600;
    color: var(--sat-text);
}

.fastr-sat-card__title::before {
    content: '';
    width: 3px;
    height: 16px;
    flex-shrink: 0;
    background: var(--sat-orange);
    border-radius: 2px;
}

.fastr-sat-card__title + * {
    clear: both;
}

.fastr-sat-card textarea,
.fastr-sat-card select,
.fastr-sat-card input[type="text"],
.fastr-sat-card input[type="email"],
.fastr-sat-card input[type="date"],
.fastr-sat-event input {
    width: 100%;
    padding: .75rem .9rem;
    font: inherit;
    font-size: .92rem;
    color: var(--sat-text);
    background: var(--sat-cream);
    border: 1.5px solid var(--sat-border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s, background .15s;
}

.fastr-sat-card textarea {
    min-height: 110px;
    resize: vertical;
}

.fastr-sat-card textarea:focus,
.fastr-sat-card select:focus,
.fastr-sat-card input:focus,
.fastr-sat-event input:focus {
    border-color: var(--sat-orange);
    background: #fff;
}

/* ---------- Bloc événement ---------- */
.fastr-sat-event {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--sat-orange-light), var(--sat-cream));
    border: 1px solid var(--sat-orange-mid);
    border-radius: 10px;
}

.fastr-sat-event__icon {
    font-size: 1.6rem;
    line-height: 1;
}

.fastr-sat-event__fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 10rem;
    gap: .35rem .75rem;
}

.fastr-sat-event__fields label {
    grid-row: 1;
    font-size: .8rem;
    font-weight: 600;
}

.fastr-sat-event__fields input {
    grid-row: 2;
    background: #fff;
}

@media (max-width: 560px) {
    .fastr-sat-event__fields {
        grid-template-columns: 1fr;
    }
    .fastr-sat-event__fields label,
    .fastr-sat-event__fields input {
        grid-row: auto;
    }
}

/* ---------- Étoiles (row-reverse : voir fastr_sat_stars) ---------- */
.fastr-sat-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: .4rem;
}

.fastr-sat-stars input,
.fastr-sat-nps input,
.fastr-sat-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fastr-sat-stars label {
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--sat-border);
    transition: color .15s ease, transform .15s ease;
}

.fastr-sat-stars label:hover,
.fastr-sat-stars label:hover ~ label,
.fastr-sat-stars input:checked ~ label {
    color: #f5a623;
}

.fastr-sat-stars label:hover {
    transform: scale(1.15);
}

.fastr-sat-stars input:focus-visible + label,
.fastr-sat-nps input:focus-visible + label,
.fastr-sat-choice input:focus-visible ~ .fastr-sat-choice__check {
    outline: 2px solid var(--sat-orange);
    outline-offset: 2px;
    border-radius: 4px;
}

.fastr-sat-star-label {
    margin: .5rem 0 0;
    min-height: 1.25rem;
    text-align: center;
    font-size: .82rem;
    color: var(--sat-text-light);
}

.fastr-sat-star-label.is-filled {
    color: var(--sat-orange);
    font-weight: 600;
}

/* ---------- Choix ---------- */
.fastr-sat-choices {
    display: grid;
    gap: .55rem;
}

.fastr-sat-choice {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .8rem 1rem;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid var(--sat-border);
    border-radius: 10px;
    transition: border-color .15s, background .15s;
}

.fastr-sat-choice:hover,
.fastr-sat-choice:has(input:checked) {
    border-color: var(--sat-orange);
    background: var(--sat-orange-light);
}

.fastr-sat-choice__check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex-shrink: 0;
    border: 2px solid var(--sat-border);
    border-radius: 50%;
    transition: background .15s, border-color .15s;
}

.fastr-sat-choice--checkbox .fastr-sat-choice__check {
    border-radius: 5px;
}

.fastr-sat-choice input:checked ~ .fastr-sat-choice__check {
    background: var(--sat-orange);
    border-color: var(--sat-orange);
}

.fastr-sat-choice--radio input:checked ~ .fastr-sat-choice__check::after {
    content: '';
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}

.fastr-sat-choice--checkbox input:checked ~ .fastr-sat-choice__check::after {
    content: '✓';
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
}

.fastr-sat-choice__text {
    font-size: .9rem;
    line-height: 1.45;
}

/* ---------- Recommandation 0-10 ---------- */
.fastr-sat-nps {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: .3rem;
}

.fastr-sat-nps label {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    border: 1.5px solid var(--sat-border);
    border-radius: 8px;
    transition: all .15s;
}

.fastr-sat-nps label:hover {
    color: var(--sat-orange);
    border-color: var(--sat-orange);
    background: var(--sat-orange-light);
}

.fastr-sat-nps input:checked + label {
    color: #fff;
    background: var(--sat-orange);
    border-color: var(--sat-orange);
}

.fastr-sat-nps-scale {
    display: flex;
    justify-content: space-between;
    margin-top: .5rem;
    font-size: .72rem;
    color: var(--sat-text-light);
}

@media (max-width: 560px) {
    .fastr-sat-nps {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ---------- Coordonnées ---------- */
.fastr-sat-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
}

.fastr-sat-field {
    display: grid;
    gap: .35rem;
}

.fastr-sat-field label {
    font-size: .82rem;
    font-weight: 600;
}

@media (max-width: 560px) {
    .fastr-sat-fields {
        grid-template-columns: 1fr;
    }
}

/* ---------- Consentement ---------- */
.fastr-sat-consent select {
    margin-bottom: 1rem;
}

.fastr-sat-checkbox {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .84rem;
    line-height: 1.55;
    cursor: pointer;
}

.fastr-sat-checkbox input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
    flex-shrink: 0;
    accent-color: var(--sat-orange);
}

.fastr-sat-privacy {
    margin: 0 0 1.1rem;
    padding: .8rem 1rem;
    font-size: .76rem;
    line-height: 1.6;
    color: var(--sat-text-light);
    background: var(--sat-cream);
    border-radius: 8px;
}

.fastr-sat-privacy a {
    color: var(--sat-orange);
}

/* ---------- Boutons ---------- */
.fastr-sat-nav {
    display: none;
    gap: .6rem;
    margin-top: 1.4rem;
}

.fastr-sat-form.is-wizard .fastr-sat-nav,
.fastr-sat-nav--submit {
    display: flex;
}

/* Sans JS : seul le bouton d'envoi reste utile. */
.fastr-sat-form:not(.is-wizard) [data-fastr-prev] {
    display: none;
}

.fastr-sat-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.25rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s, color .2s;
}

.fastr-sat-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #c84b0c 0%, #e05a14 100%);
    box-shadow: 0 4px 16px rgba(200, 75, 12, .25);
}

.fastr-sat-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 75, 12, .35);
}

.fastr-sat-btn--primary:disabled {
    opacity: .7;
    transform: none;
    cursor: wait;
}

.fastr-sat-btn--secondary {
    color: var(--sat-text-light);
    background: #fff;
    border: 1.5px solid var(--sat-border);
}

.fastr-sat-btn--secondary:hover {
    color: var(--sat-orange);
    border-color: var(--sat-orange);
}

/* ---------- Écran de remerciement ---------- */
.fastr-sat-thanks {
    text-align: center;
    padding: 1.5rem 0;
}

.fastr-sat-thanks__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    font-size: 2rem;
    background: var(--sat-orange-light);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(200, 75, 12, .2);
}

.fastr-sat-thanks__title {
    margin: 0 0 .6rem;
    font-family: var(--font-heading, Georgia, serif);
    font-size: clamp(1.6rem, 4vw, 2rem);
}

.fastr-sat-thanks > p {
    line-height: 1.7;
    color: var(--sat-text-light);
}

.fastr-sat-success-badge {
    display: inline-block;
    padding: .5rem 1.25rem;
    font-size: .82rem;
    font-weight: 600;
    color: #2a6b3c !important;
    background: #e8f5ec;
    border-radius: 999px;
}

.fastr-sat-avis,
.fastr-sat-project {
    margin: 2rem 0;
    padding: 1.25rem;
    text-align: left;
    border-radius: var(--sat-radius);
}

.fastr-sat-avis {
    background: linear-gradient(135deg, var(--sat-orange-light) 0%, var(--sat-cream) 100%);
    border: 1.5px solid var(--sat-orange-mid);
}

.fastr-sat-project {
    background: #fff;
    border: 1px solid var(--sat-border);
    box-shadow: var(--sat-shadow);
}

.fastr-sat-avis h2,
.fastr-sat-project h2 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    color: var(--sat-orange);
}

.fastr-sat-avis p,
.fastr-sat-project p {
    margin: 0 0 1rem;
    font-size: .85rem;
    line-height: 1.6;
    color: var(--sat-text-light);
}

.fastr-sat-copy-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 600;
}

.fastr-sat-copy-text {
    width: 100%;
    margin-bottom: .9rem;
    padding: .75rem .9rem;
    font: inherit;
    font-size: .9rem;
    background: #fff;
    border: 1px solid var(--sat-border);
    border-radius: 10px;
    resize: vertical;
}

.fastr-sat-avis__links {
    display: grid;
    gap: .5rem;
}

.fastr-sat-avis__link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .8rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--sat-text);
    text-decoration: none;
    background: #fff;
    border: 1.5px solid var(--sat-border);
    border-radius: 10px;
    transition: all .15s;
}

.fastr-sat-avis__link:hover {
    color: var(--sat-orange);
    border-color: var(--sat-orange);
    background: var(--sat-orange-light);
}

.fastr-sat-copied {
    margin: .75rem 0 0 !important;
    font-weight: 600;
    color: var(--sat-orange-dark) !important;
}

.fastr-sat-thanks .fastr-sat-btn {
    flex: none;
}
