/* Formulaire de description du logement et attente du score, APERÇU
   (cookie cs_form=v2, web/form_v2.py ; maquette 2026-10-24_formulaire_score).
   Préfixe fs- (formulaire score). Uniquement des jetons --cs-* de _tokens.css :
   aucune couleur en dur, aucune famille de police en dur, aucun nouveau nom
   de variable.
   - .fs--carte : contenu de la carte de recherche du héros de la page
     d'accueil (la carte .hero-search-card garde sa largeur et son style) ;
   - .fs-att : page d'attente /score, un écran (fenêtre moins la barre). */

.fs, .fs-att { font-family: var(--cs-font-body); color: var(--cs-ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
/* Remises à zéro sans poids (:where) : les classes fs-* l'emportent toujours. */
:where(.fs, .fs-att) *, :where(.fs, .fs-att) *::before, :where(.fs, .fs-att) *::after { box-sizing: border-box; }
:where(.fs, .fs-att) :where(button, input) { font: inherit; color: inherit; }
:where(.fs, .fs-att) :where(p, h1, h2, ol, ul, fieldset, legend) { margin: 0; padding: 0; }
:where(.fs) fieldset { border: 0; min-width: 0; }
:where(.fs, .fs-att) :where(ol, ul) { list-style: none; }
.fs :focus-visible, .fs-att :focus-visible { outline: 2px solid var(--cs-teal); outline-offset: 2px; border-radius: 6px; }
.fs [hidden], .fs-att [hidden] { display: none !important; }
.fs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fs-cpt output, .fs-surf input, .fs-addr__t { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ */
/* Carte du héros : contenu seulement (la carte garde son style)     */
/* ------------------------------------------------------------------ */
.fs--carte { display: block; text-align: left; }
.fs-bloc { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fs-p { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.fs-lab { font-size: 15px; font-weight: 600; color: var(--cs-ink-deep); margin-top: 6px; }
.fs-aide { font-size: 14px; color: var(--cs-mute); margin-top: -8px; }

.fs-lien {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
    background: none; border: 0; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--cs-teal-deep);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.fs-lien:hover { color: var(--cs-ink-deep); }

/* ------------------------------------------------------------------ */
/* Champ d'adresse                                                     */
/* ------------------------------------------------------------------ */
.fs-champ { position: relative; margin-top: -6px; }
.fs-champ__in {
    width: 100%; height: 60px; padding: 0 64px 0 18px;
    border: 2px solid var(--cs-ink-deep); border-radius: var(--cs-radius);
    background: var(--cs-bg-elevated); font-size: 18px; color: var(--cs-ink-deep);
}
.fs-champ__in::placeholder { color: var(--cs-mute-soft); }
.fs-champ__in:focus { outline: none; box-shadow: var(--cs-shadow-glow); border-color: var(--cs-teal); }
.fs-geo {
    position: absolute; right: 8px; top: 8px; width: 44px; height: 44px;
    display: grid; place-items: center; border: 0; border-radius: var(--cs-radius-sm);
    background: var(--cs-bg-subtle); color: var(--cs-ink); cursor: pointer;
}
.fs-geo:hover { background: var(--cs-teal-soft); color: var(--cs-teal-deep); }
.fs-geo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.fs-sugg {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
    background: var(--cs-bg-elevated); border: 1px solid var(--cs-line-strong); border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow-high); padding: 6px; max-height: min(300px, calc(100dvh - 340px)); overflow: auto;
}
.fs-sugg li {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px;
    border-radius: var(--cs-radius-sm); cursor: pointer; font-size: 16px;
}
.fs-sugg li small { margin-left: auto; font-size: 13px; color: var(--cs-mute); white-space: nowrap; }
.fs-sugg li[aria-selected="true"], .fs-sugg li:hover { background: var(--cs-teal-soft); }
.fs-sugg li[aria-disabled="true"] { cursor: default; color: var(--cs-mute); background: none; }
.fs-sugg b { font-weight: 700; color: var(--cs-ink-deep); }
.fs-cherche { font-size: 15px; color: var(--cs-ink); min-height: 22px; display: flex; align-items: center; gap: 10px; }
.fs-cherche:empty { display: none; }

/* Petit indicateur d'activité (pas une barre de progression) */
.fs-tour {
    width: 16px; height: 16px; flex: none; border-radius: 50%;
    border: 2px solid var(--cs-line-strong); border-top-color: var(--cs-teal);
    animation: fs-tour 0.8s linear infinite;
}
@keyframes fs-tour { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ */
/* Adresse retenue, résidence                                          */
/* ------------------------------------------------------------------ */
.fs-addr {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    padding-bottom: 10px; border-bottom: 1px solid var(--cs-line);
}
.fs-addr .fs-ic { color: var(--cs-teal); }
.fs-addr__t { font-weight: 700; color: var(--cs-ink-deep); font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-addr__ch { margin-left: auto; font-size: 14px; flex: none; }

.fs-res { font-size: 14px; color: var(--cs-mute); line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; min-height: 22px; }
.fs-res:empty { display: none; }
.fs-res b { color: var(--cs-ink-deep); font-weight: 700; }
.fs-res .fs-lien { font-size: 14px; min-height: 32px; }
.fs-res__l { min-width: 0; }

/* Lettre d'étiquette énergie, même échelle que le site */
.fs-l {
    display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 8px 0 5px;
    font-weight: 900; font-size: 13px; line-height: 1; vertical-align: 1px;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
}
.fs-l--a { background: var(--cs-etiq-a); color: var(--cs-etiq-a-ink); } .fs-l--b { background: var(--cs-etiq-b); color: var(--cs-etiq-b-ink); }
.fs-l--c { background: var(--cs-etiq-c); color: var(--cs-etiq-c-ink); } .fs-l--d { background: var(--cs-etiq-d); color: var(--cs-etiq-d-ink); }
.fs-l--e { background: var(--cs-etiq-e); color: var(--cs-etiq-e-ink); } .fs-l--f { background: var(--cs-etiq-f); color: var(--cs-etiq-f-ink); }
.fs-l--g { background: var(--cs-etiq-g); color: var(--cs-etiq-g-ink); }

/* ------------------------------------------------------------------ */
/* Champs du logement                                                  */
/* ------------------------------------------------------------------ */
.fs-p--logement { gap: 12px; }
.fs-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-f__l {
    font-size: 15px; font-weight: 700; color: var(--cs-ink-deep); padding: 0; margin-bottom: 2px;
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px;
}
.fs-facult { font-size: 13px; font-weight: 500; color: var(--cs-mute); }
.fs-src { font-size: 13px; font-weight: 500; color: var(--cs-mute); }
.fs-src:empty { display: none; }
.fs-src--vous { color: var(--cs-teal-deep); }

/* Tuiles Maison / Appartement, illustrées */
.fs-tuiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fs-tuile { position: relative; display: block; cursor: pointer; }
.fs-tuile input, .fs-pieces input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fs-tuile__c {
    position: relative; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 30px 0 14px;
    background: var(--cs-bg-elevated); border: 1px solid var(--cs-line-strong); border-radius: var(--cs-radius);
    transition: border-color var(--cs-duration-normal) var(--cs-ease-default), background var(--cs-duration-normal) var(--cs-ease-default), transform 120ms var(--cs-ease-default);
}
.fs-tuile:hover .fs-tuile__c { border-color: var(--cs-ink); }
.fs-tuile:active .fs-tuile__c { transform: scale(0.98); }
.fs-tuile__t { font-weight: 700; font-size: 16px; color: var(--cs-ink-deep); }
.fs-tuile input:checked + .fs-tuile__c { border: 2px solid var(--cs-ink-deep); padding: 0 29px 0 13px; background: var(--cs-teal-soft); }
.fs-tuile input:focus-visible + .fs-tuile__c, .fs-pieces input:focus-visible + span { outline: 2px solid var(--cs-teal); outline-offset: 2px; }

.fs-ill { width: 44px; height: 33px; flex: none; overflow: visible; }
.fs-ill path, .fs-ill rect { stroke: var(--cs-ink-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fs-ill__sol { fill: none; stroke: var(--cs-line-deep) !important; }
.fs-ill__mur { fill: var(--cs-bg-subtle); }
.fs-ill__toit, .fs-ill__trait { fill: none; }
.fs-ill__vitre, .fs-ill__porte { fill: var(--cs-bg-elevated); transition: fill var(--cs-duration-slow) var(--cs-ease-default); }
.fs-tuile input:checked + .fs-tuile__c .fs-ill__mur { fill: var(--cs-bg-elevated); }
.fs-tuile input:checked + .fs-tuile__c .fs-ill__vitre { fill: var(--cs-accent); }
.fs-tuile input:checked + .fs-tuile__c .fs-ill__porte { fill: var(--cs-teal); }
/* L'immeuble s'allume d'étage en étage quand on le choisit */
.fs-tuile input:checked + .fs-tuile__c .fs-ill__v2 { transition-delay: 80ms; }
.fs-tuile input:checked + .fs-tuile__c .fs-ill__v3 { transition-delay: 160ms; }
.fs-tuile input:checked + .fs-tuile__c .fs-ill__v4 { transition-delay: 240ms; }
.fs-tuile input:checked + .fs-tuile__c .fs-ill { animation: fs-saut 360ms var(--cs-ease-default); }
@keyframes fs-saut { 40% { transform: translateY(-3px); } }

.fs-coche {
    position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--cs-ink-deep);
    opacity: 0; transform: scale(0.6);
    transition: opacity var(--cs-duration-normal) var(--cs-ease-default), transform var(--cs-duration-normal) var(--cs-ease-default);
}
.fs-coche svg { width: 14px; height: 14px; fill: none; stroke: var(--cs-bg-elevated); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fs-tuile input:checked + .fs-tuile__c .fs-coche { opacity: 1; transform: scale(1); }

/* Taille en pastilles */
.fs-pieces { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.fs-pieces label { display: block; cursor: pointer; }
.fs-pieces span {
    display: grid; place-items: center; height: 44px; border-radius: var(--cs-radius-sm);
    background: var(--cs-bg-elevated); border: 1px solid var(--cs-line-strong);
    font-weight: 700; font-size: 15px; color: var(--cs-ink-deep);
    transition: background var(--cs-duration-normal) var(--cs-ease-default), transform 120ms var(--cs-ease-default);
}
.fs-pieces label:hover span { border-color: var(--cs-ink); }
.fs-pieces label:active span { transform: scale(0.96); }
.fs-pieces input:checked + span { background: var(--cs-ink-deep); border-color: var(--cs-ink-deep); color: var(--cs-bg-elevated); }

/* Étage et surface côte à côte */
.fs-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fs-ligne > .fs-f--surf:only-child, .fs-et[hidden] + .fs-f--surf { grid-column: 1 / -1; }

.fs-cpt { display: inline-flex; align-items: center; border: 1px solid var(--cs-line-strong); border-radius: var(--cs-radius-sm); background: var(--cs-bg-elevated); }
.fs-cpt button {
    width: 44px; height: 44px; border: 0; background: none; cursor: pointer; flex: none;
    font-size: 22px; font-weight: 600; color: var(--cs-ink-deep); display: grid; place-items: center;
}
.fs-cpt button:active:not(:disabled) { background: var(--cs-bg-subtle); }
.fs-cpt button:disabled { color: var(--cs-line-deep); cursor: default; }
.fs-cpt output {
    min-width: 92px; text-align: center; font-weight: 700; font-size: 15px; color: var(--cs-ink-deep);
    border-left: 1px solid var(--cs-line); border-right: 1px solid var(--cs-line); line-height: 44px; padding: 0 6px; white-space: nowrap;
}
.fs-cpt output.is-vide { color: var(--cs-mute); font-weight: 600; }
.fs-et { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs-et__c { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 4px; }
.fs-et__n { margin-top: -4px; }
.fs-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 15px; cursor: pointer; white-space: nowrap; }
.fs-chk input { width: 20px; height: 20px; accent-color: var(--cs-ink-deep); margin: 0; }

/* Mini immeuble : un trait par niveau, l'étage choisi s'allume */
.fs-imm { display: flex; flex-direction: column-reverse; gap: 2px; width: 30px; height: 64px; flex: none; position: relative; padding-top: 6px; }
.fs-imm::before { content: ""; position: absolute; top: 1px; left: 0; right: 0; height: 2px; background: var(--cs-ink); border-radius: 1px; }
.fs-imm i { display: block; flex: 1 1 0; min-height: 2px; background: var(--cs-line-strong); border-radius: 1px; transition: background var(--cs-duration-normal) var(--cs-ease-default); }
.fs-imm i.is-ss { background: var(--cs-bg-subtle); outline: 1px dashed var(--cs-line-deep); outline-offset: -1px; }
.fs-imm i.is-moi { background: var(--cs-accent); }

/* Surface : champ avec m², pas de 5 m² */
.fs-cpt--surf { align-self: flex-start; }
.fs-surf { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-left: 1px solid var(--cs-line); border-right: 1px solid var(--cs-line); height: 44px; }
.fs-surf input {
    width: 56px; height: 40px; padding: 0; border: 0; background: none; text-align: right;
    font-size: 16px; font-weight: 700; color: var(--cs-ink-deep); -moz-appearance: textfield; appearance: textfield;
}
.fs-surf input::-webkit-outer-spin-button, .fs-surf input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fs-surf input::placeholder { color: var(--cs-mute-soft); font-weight: 600; }
.fs-surf input:focus { outline: none; }
.fs-surf:focus-within { box-shadow: inset 0 0 0 2px var(--cs-teal); }
.fs-surf span { font-weight: 600; color: var(--cs-mute); }

/* Action */
.fs-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; }
.fs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 26px; border: 0; border-radius: var(--cs-radius-sm);
    background: var(--cs-ink-deep); color: var(--cs-bg-elevated); cursor: pointer;
    font-size: 17px; font-weight: 700; text-decoration: none; letter-spacing: -0.005em;
}
.fs-btn:hover { background: var(--cs-teal-deep); color: var(--cs-bg-elevated); }
.fs-note { font-size: 13px; color: var(--cs-mute); max-width: 32ch; line-height: 1.35; }
.fs-note:empty { display: none; }

/* ------------------------------------------------------------------ */
/* Étiquette A à G : la signature                                      */
/* ------------------------------------------------------------------ */
.fs-etq { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.fs-etq__r { display: flex; align-items: center; height: 34px; }
.fs-etq__r span {
    position: relative; isolation: isolate; overflow: hidden;
    height: 100%; display: flex; align-items: center; padding-left: 12px;
    font-weight: 900; font-size: 18px; letter-spacing: -0.01em;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
    background: var(--cs-line); color: var(--cs-mute-soft);
    transition: color var(--cs-duration-slow) var(--cs-ease-default);
}
/* Remplissage : la couleur de la classe balaie la flèche de gauche à droite */
.fs-etq__r span::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    transform: scaleX(1); transform-origin: left center;
    transition: transform 520ms var(--cs-ease-default);
}
.fs-etq.is-attente .fs-etq__r span::before { transform: scaleX(0); }
.fs-etq .fs-etq__r.is-on span::before { transform: scaleX(1); }
.fs-etq__r:nth-child(1) span { width: 34%; } .fs-etq__r:nth-child(2) span { width: 43%; }
.fs-etq__r:nth-child(3) span { width: 52%; } .fs-etq__r:nth-child(4) span { width: 61%; }
.fs-etq__r:nth-child(5) span { width: 70%; } .fs-etq__r:nth-child(6) span { width: 79%; }
.fs-etq__r:nth-child(7) span { width: 88%; }
.fs-etq__r--a span::before { background: var(--cs-etiq-a); } .fs-etq__r--b span::before { background: var(--cs-etiq-b); }
.fs-etq__r--c span::before { background: var(--cs-etiq-c); } .fs-etq__r--d span::before { background: var(--cs-etiq-d); }
.fs-etq__r--e span::before { background: var(--cs-etiq-e); } .fs-etq__r--f span::before { background: var(--cs-etiq-f); }
.fs-etq__r--g span::before { background: var(--cs-etiq-g); }
.fs-etq:not(.is-attente) .fs-etq__r--a span, .fs-etq .fs-etq__r--a.is-on span { color: var(--cs-etiq-a-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--b span, .fs-etq .fs-etq__r--b.is-on span { color: var(--cs-etiq-b-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--c span, .fs-etq .fs-etq__r--c.is-on span { color: var(--cs-etiq-c-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--d span, .fs-etq .fs-etq__r--d.is-on span { color: var(--cs-etiq-d-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--e span, .fs-etq .fs-etq__r--e.is-on span { color: var(--cs-etiq-e-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--f span, .fs-etq .fs-etq__r--f.is-on span { color: var(--cs-etiq-f-ink); }
.fs-etq:not(.is-attente) .fs-etq__r--g span, .fs-etq .fs-etq__r--g.is-on span { color: var(--cs-etiq-g-ink); }
.fs-etq--s { width: 120px; flex: none; gap: 3px; }
.fs-etq--s .fs-etq__r { height: 22px; }
.fs-etq--s .fs-etq__r span { font-size: 13px; padding-left: 7px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }

.fs-cote { display: flex; flex-direction: column; justify-content: center; gap: 14px; max-width: 420px; justify-self: end; width: 100%; }
.fs-cote__t { font-size: 15px; color: var(--cs-mute); }

/* ------------------------------------------------------------------ */
/* Ordinateur moyen et écrans bas                                      */
/* ------------------------------------------------------------------ */
@media (max-height: 820px) and (min-width: 960px) {
    .fs-bloc { gap: 12px; }
    .fs-p, .fs-p--logement { gap: 10px; }
    .fs-tuile__c { height: 56px; }
}

/* ------------------------------------------------------------------ */
/* Mobile : la colonne de droite disparaît ; tout tient en 390 × 700   */
/* et 320 × 640.                                                       */
/* ------------------------------------------------------------------ */
@media (max-width: 959px) {
    .fs-cote { display: none; }
    .fs-bloc { gap: 10px; }
    .fs-p, .fs-p--logement { gap: 10px; }
    .fs-champ__in { height: 56px; font-size: 16px; padding-left: 14px; }
    .fs-geo { top: 6px; }
    .fs-sugg li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; line-height: 1.25; }
    .fs-sugg li small { margin-left: 0; }
    .fs-addr { padding-bottom: 6px; min-height: 40px; }
    .fs-addr__t { font-size: 16px; }
    .fs-tuile__c { height: 54px; gap: 8px; padding: 0 28px 0 12px; }
    .fs-tuile input:checked + .fs-tuile__c { padding: 0 27px 0 11px; }
    .fs-ill { width: 38px; height: 28px; }
    .fs-tuile__t { font-size: 16px; }
    .fs-ligne { gap: 10px; }
    .fs-imm { height: 52px; width: 24px; }
    .fs-btn { height: 50px; padding: 0 18px; font-size: 16px; }
}
@media (max-width: 420px) {
    .fs-ligne { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .fs-et__c { flex-wrap: nowrap; gap: 8px; }
    .fs-f--surf { flex-direction: row; align-items: center; justify-content: space-between; column-gap: 8px; }
    .fs-f--surf .fs-f__l { margin: 0; flex-direction: column; align-items: flex-start; }
    .fs-btn { width: 100%; }
    .fs-note { display: none; }
    .fs--carte .fs-et__c { flex-wrap: wrap; }
    .fs--carte .fs-etq--s { width: 96px; }
    .fs-tuile__c { flex-direction: column; justify-content: center; gap: 2px; height: 62px; padding: 0 10px; }
    .fs-tuile input:checked + .fs-tuile__c { padding: 0 9px; }
    .fs-ill { width: 32px; height: 24px; }
}
@media (max-width: 380px) {
    .fs-bloc, .fs-p, .fs-p--logement { gap: 8px; }
    /* Carte étroite (environ 256 px utiles à 320 px) : taille sur deux rangs,
       compteur d'étage et case « Dernier » sur deux lignes si besoin. */
    .fs-pieces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fs--carte .fs-f--surf { flex-direction: column; align-items: flex-start; row-gap: 4px; }
    .fs--carte .fs-f--surf .fs-f__l { flex-direction: row; flex-wrap: wrap; }
    .fs-tuile input:checked + .fs-tuile__c { padding: 0 9px; }
    .fs-tuile__t { font-size: 15px; }
    .fs-coche { top: 5px; right: 5px; width: 18px; height: 18px; }
    .fs-pieces { gap: 4px; }
    .fs-pieces span { font-size: 14px; }
    .fs-cpt output { min-width: 76px; font-size: 14px; }
    .fs-f__l { font-size: 14px; }
    .fs-imm { height: 44px; }

    .fs-addr__t { font-size: 15px; }
    .fs-res { font-size: 13px; }
    .fs-res__dpe, .fs-chk__s { display: none; }
    .fs-pieces span { font-size: 13px; }
    .fs-cpt output { min-width: 72px; }
    .fs-surf input { width: 44px; }
    .fs-et__c { gap: 6px; }
}

/* ------------------------------------------------------------------ */
/* Attente du score (score_skeleton.html, components/attente_v2.html)  */
/* ------------------------------------------------------------------ */
.fs-att { background: var(--cs-bg); min-height: calc(100vh - 69px); min-height: calc(100dvh - 69px); display: flex; }
.fs-att__in {
    flex: 1; min-width: 0; max-width: 1180px; margin: 0 auto; padding: 24px 32px;
    display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 72px; align-items: center;
}
.fs-att__bloc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fs-att .fs-addr__t { margin: 0; font-family: var(--cs-font-body); letter-spacing: 0; line-height: 1.3; }
.fs-att__statut { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--cs-ink); min-height: 24px; }
.fs-att__statut[hidden] { display: none; }
.fs-att__corps { display: flex; flex-direction: column; gap: 16px; }
.fs-h2 { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--cs-ink-deep); letter-spacing: -0.01em; }
.fs-h2:focus { outline: none; }
.fs-att__row { display: flex; gap: 18px; align-items: flex-start; }
.fs-att__row .fs-etq--s { display: none; }
.fs--carte .fs-att__row .fs-etq--s { display: flex; }
.fs--carte .fs-p--attente { gap: 12px; }
.fs-etapes { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.fs-etapes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: center; min-height: 34px; font-size: 16px; color: var(--cs-mute); }
.fs-etapes li b { font-weight: 600; }
.fs-etapes li small { grid-column: 2; font-size: 13px; color: var(--cs-mute); margin-top: -4px; }
.fs-etapes li small:empty { display: none; }
.fs-etapes li.is-cours, .fs-etapes li.is-fait { color: var(--cs-ink-deep); }
.fs-etapes li.is-fait small { color: var(--cs-teal-deep); }
.fs-pt { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--cs-line-strong); display: grid; place-items: center; }
.is-cours .fs-pt { border-top-color: var(--cs-teal); animation: fs-tour 0.8s linear infinite; }
.is-fait .fs-pt { background: var(--cs-teal); border-color: var(--cs-teal); }
.is-fait .fs-pt::after { content: ""; width: 8px; height: 4px; border-left: 2px solid var(--cs-bg-elevated); border-bottom: 2px solid var(--cs-bg-elevated); transform: translateY(-1px) rotate(-45deg); }

.fs-savez { border-left: 3px solid var(--cs-accent); padding: 4px 0 0 14px; }
.fs-savez__h { font-size: 14px; font-weight: 700; color: var(--cs-accent-deep); }
.fs-savez__t { font-size: 16px; color: var(--cs-ink-deep); line-height: 1.45; min-height: calc(3 * 1.45em); margin-top: 2px; transition: opacity var(--cs-duration-slow); }
.fs-savez__t.is-sort { opacity: 0; }
.fs-savez__b { display: flex; align-items: center; gap: 14px; }
.fs-savez__b .fs-lien { font-size: 14px; }
.fs-points { display: inline-flex; gap: 5px; }
.fs-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-line-strong); }
.fs-points i.is-on { background: var(--cs-accent-deep); }

@media (max-width: 1279px) {
    .fs-att__in { gap: 48px; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
}
@media (max-width: 959px) {
    .fs-att { min-height: calc(100vh - 61px); min-height: calc(100dvh - 61px); }
    .fs-att__in { display: block; padding: 12px 16px; max-width: 600px; }
    .fs-att .fs-cote { display: none; }
    .fs-att__row .fs-etq--s { display: flex; }
    .fs-att__bloc, .fs-att__corps { gap: 12px; }
    .fs-att__row { gap: 14px; }
    .fs-etapes li { min-height: 30px; font-size: 15px; }
    .fs-savez__t { font-size: 15px; }
    .fs-etq--s .fs-etq__r { height: 21px; }
}
@media (max-width: 380px) {
    .fs-att__in { padding: 8px 12px; }
    .fs-etq--s { width: 92px; }
    .fs-etq--s .fs-etq__r { height: 19px; }
    .fs-etapes li { font-size: 14px; min-height: 28px; }
    .fs-etapes li small { display: none; }
    .fs-savez__t { font-size: 14px; }
    .fs-h2 { font-size: 16px; }
}

/* Réduction des animations : tout s'affiche, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
    .fs *, .fs *::before, .fs *::after, .fs-att *, .fs-att *::before, .fs-att *::after { animation: none !important; transition: none !important; }
    .fs-tour { border-top-color: var(--cs-teal); border-right-color: var(--cs-teal); }
}
