/* ==========================================================================
   QUESTIONNAIRE PREMIUM (formulaire-premium.html)
   Système partagé : borne/css/borne.css (champs .form-group, poussoirs, afficheurs, sommaire).
   Propre à la page : l'en-tête, les étapes en plaques, les choix à voyants (cartes, bascules Oui/Non,
   niveaux 0 à 3), les zones de photo (.upload-zone-dual : pas encore de style dans la borne), l'écran de
   l'état des lieux, et l'habillage de ce que script.js écrit (recommandations, estimation, bouton d'envoi).
   ========================================================================== */

/* Intensités des niveaux de saleté : le bleu vif posé sur le blanc (clair) ou sur l'écran (sombre) */
:root {
    --niveau-1: #ADCDEF;              /* vif à 32 % sur blanc */
    --niveau-2: #619EE1;              /* vif à 62 % sur blanc */
    --niveau-ecran-1: rgba(0, 99, 206, 0.38);
    --niveau-ecran-2: rgba(0, 99, 206, 0.72);
}

/* Pictogrammes des caps propres à la page : même trait que la borne */
.titre-cap svg,
.section-cap svg,
.trigger-cap svg,
.upload-cap svg,
.toggle-picto {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- En-tête (émail) : le titre, la promesse d'une minute ---------- */
.premium-tete { padding-block: clamp(40px, 4.4vw, 64px); }
.premium-tete-grille { row-gap: 26px; align-items: center; }
.premium-titre { grid-column: 1 / span 7; display: grid; gap: 14px; }
.premium-titre h1 {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.4vw, 20px);
    font-size: clamp(2rem, 1.1rem + 2.2vw, 3.5rem);
    line-height: 0.98;
}
.titre-cap {
    flex: none;
    width: clamp(2.9rem, 2.2rem + 1.5vw, 3.9rem);
    height: clamp(2.9rem, 2.2rem + 1.5vw, 3.9rem);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blanc);
    color: var(--vif);
    box-shadow: 0 0 0 4px var(--anneau-start);
}
.titre-cap svg { width: 56%; height: 56%; }
.premium-titre .borne-texte {
    padding-left: calc(clamp(2.9rem, 2.2rem + 1.5vw, 3.9rem) + clamp(14px, 1.4vw, 20px));
    font-family: var(--condense);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.premium-intro {
    grid-column: 8 / span 5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 22px clamp(20px, 2.2vw, 30px);
}
.premium-intro .instruction-picto { width: 58px; height: 58px; }
.premium-intro .instruction-picto svg { width: 32px; height: 32px; }
.premium-intro h2 { font-size: clamp(1.45rem, 1.1rem + 0.8vw, 1.9rem); line-height: 1.05; }
.premium-intro p { margin-top: 6px; font-size: 1rem; }

/* ---------- Le questionnaire (inox) : une plaque par étape ---------- */
.premium-form-container { padding-top: clamp(40px, 4vw, 64px); }
.premium-form { grid-column: 1 / -1; display: grid; gap: 24px; }

.form-section,
.recommendations-section {
    padding: clamp(22px, 2.4vw, 34px);
    border-radius: var(--rayon-plaque);
    background: var(--blanc);
    color: var(--marine);
    box-shadow: var(--ombre-plaque), inset 0 0 0 1px var(--inox-2);
}
.section-title-form {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    font-size: clamp(1.5rem, 1.1rem + 0.9vw, 2rem);
    line-height: 1.05;
}
.section-num,
.section-cap {
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--marine);
    color: var(--blanc);
    font-family: var(--condense);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0;
    box-shadow: 0 0 0 4px var(--inox-1);
}
.section-cap svg { width: 58%; height: 58%; }
/* Titre écrit par script.js (estimation) : son pictogramme en ligne prend la couleur des voyants */
.section-title-form > svg { flex: none; width: 1.7rem; height: 1.7rem; color: var(--vif); }

.premium-form .form-label {
    font-family: var(--condense);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--marine);
}
/* Espacement : chaque groupe garde sa marge basse (les groupes d'une même rangée restent alignés) ;
   seul le dernier élément d'une plaque la perd, rangée comprise */
.premium-form .form-group { margin-bottom: 22px; }
.form-section > :last-child,
.trigger-card > :last-child,
.form-section > .form-row:last-child > .form-group,
.trigger-card > .form-row:last-child > .form-group { margin-bottom: 0; }
.premium-form .form-row { align-items: start; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Étape 1, véhicule : deux colonnes (type et modèle, puis fumeur, poils, odeurs) */
.vehicule-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
}
.vehicule-section .section-title-form { grid-column: 1 / -1; }
.vehicule-section .vehicule-etat .form-group,
.vehicule-section .vehicule-odeurs { margin-bottom: 0; }

/* ---------- Choix à voyants : le champ natif reste là (clavier, lecteurs d'écran), invisible, sur toute la touche ---------- */
.premium-form .radio-card,
.premium-form .checkbox-item,
.premium-form .toggle-btn,
.level-btn {
    position: relative;
    display: grid;
    margin: 0;
    cursor: pointer;
    font-family: var(--condense);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--marine);
}
.premium-form .radio-card input,
.premium-form .checkbox-item input,
.premium-form .toggle-btn input,
.level-btn input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
}

/* Cartes (type de véhicule, odeurs, type de sièges) et cases (type de saleté) : plaques à voyant */
.radio-group,
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card span,
.checkbox-item span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    background: var(--blanc);
    box-shadow: inset 0 0 0 1.5px var(--inox-2);
    font-size: 1.02rem;
    line-height: 1.1;
    pointer-events: none;
    transition: box-shadow 0.15s ease, background-color 0.15s ease;
}
.radio-card span::before,
.checkbox-item span::before {
    content: '';
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--inox-1);
    box-shadow: inset 0 0 0 2px var(--inox-3);
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.checkbox-item span::before { width: 14px; height: 14px; border-radius: 4px; }
.radio-card:hover span,
.checkbox-item:hover span { box-shadow: inset 0 0 0 1.5px var(--vif); }
.radio-card input:checked + span,
.checkbox-item input:checked + span { background: rgba(0, 99, 206, 0.08); box-shadow: inset 0 0 0 2px var(--vif); }
.radio-card input:checked + span::before { background: var(--vif); box-shadow: 0 0 0 3px var(--anneau-vif); }
.checkbox-item input:checked + span::before {
    background: var(--vif) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 16.5l5.5 5.5L24 11'/%3E%3C/svg%3E") center / 86% no-repeat;
    box-shadow: none;
}
.radio-card input:focus-visible + span,
.checkbox-item input:focus-visible + span { outline: 3px solid var(--vif); outline-offset: 3px; }

/* Bascules Oui / Non (et Domicile / Travail, Matin / Après-midi) : deux touches dans un rail */
.toggle-group {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    justify-self: start;
    gap: 4px;
    min-width: 220px;
    padding: 4px;
    border-radius: 999px;
    background: var(--inox-0);
    box-shadow: inset 0 0 0 1.5px var(--inox-2);
}
.toggle-btn span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 1rem;
    color: var(--ardoise);
    pointer-events: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.toggle-picto { flex: none; width: 20px; height: 20px; }
.toggle-btn:hover span { background: var(--blanc); color: var(--marine); }
.toggle-btn input:checked + span { background: var(--vif); color: var(--blanc); box-shadow: 0 6px 14px -10px rgba(0, 0, 0, 0.55); }
.toggle-btn input:focus-visible + span { outline: 3px solid var(--vif); outline-offset: 2px; }

/* ---------- Échelle de saleté : quatre crans, une intensité de bleu chacun ---------- */
.legend-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--inox-2);
    border-bottom: 1px solid var(--inox-2);
}
.legend-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "num nom" "desc desc";
    align-content: start;
    align-items: center;
    gap: 10px 10px;
    padding: 14px 14px 16px;
    border-left: 1px solid var(--inox-2);
}
.legend-item:first-child { border-left: 0; }
.level-number {
    grid-area: num;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blanc);
    box-shadow: inset 0 0 0 1.5px var(--inox-3);
    font-family: var(--condense);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--marine);
}
.level-1 .level-number { background: var(--niveau-1); box-shadow: none; }
.level-2 .level-number { background: var(--niveau-2); box-shadow: none; }
.level-3 .level-number { background: var(--vif); box-shadow: none; color: var(--blanc); }
.level-name {
    grid-area: nom;
    font-family: var(--condense);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.level-desc { grid-area: desc; font-size: 0.92rem; line-height: 1.4; color: var(--ardoise); }

/* ---------- Les zones : une ligne par zone, quatre crans à droite ---------- */
.zone-grid { display: grid; }
.zone-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    padding: 12px 10px;
    border-top: 1px solid var(--inox-2);
    border-radius: 10px;
    transition: background-color 0.15s ease;
}
.zone-item:first-child { border-top: 0; }
.zone-item.est-visee { background: rgba(0, 99, 206, 0.07); }
.zone-label { font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--marine); }
.level-selector { display: flex; gap: 10px; }
.level-btn { width: 46px; height: 46px; }
.level-btn span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blanc);
    box-shadow: inset 0 0 0 1.5px var(--inox-2);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0;
    color: var(--ardoise);
    pointer-events: none;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.level-btn:hover span { box-shadow: inset 0 0 0 2px var(--vif); color: var(--marine); }
/* Le cran choisi prend l'intensité de son niveau, cerclé de vif */
.level-btn input:checked + span { color: var(--marine); box-shadow: 0 0 0 3px var(--blanc), 0 0 0 5px var(--vif); }
.level-btn input[value="0"]:checked + span { background: var(--inox-1); }
.level-btn input[value="1"]:checked + span { background: var(--niveau-1); }
.level-btn input[value="2"]:checked + span { background: var(--niveau-2); }
.level-btn input[value="3"]:checked + span { background: var(--vif); color: var(--blanc); }
.level-btn input:focus-visible + span { outline: 3px solid var(--vif); outline-offset: 5px; }

/* Détails supplémentaires (affichés par script.js dès le niveau 2) : la suite de l'étape, sous un filet,
   annoncée par sa cap allumée (pas d'encart dans la plaque) */
.trigger-section { margin-top: 8px; }
.trigger-card {
    display: grid;
    padding: 20px 10px 0;
    border-top: 1px solid var(--inox-2);
}
.trigger-titre { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.3rem; line-height: 1.1; }
.trigger-cap {
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--vif);
    color: var(--blanc);
    box-shadow: 0 0 0 3px var(--anneau-vif);
}
.trigger-cap svg { width: 58%; height: 58%; }

/* ---------- Zones de photo (.upload-zone-dual) : deux poussoirs, appareil photo et galerie ---------- */
.upload-zone-dual { display: grid; gap: 12px; }
.upload-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.premium-form .upload-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: calc(2.1rem + 0.6rem);
    padding: 0.3rem 1.1rem 0.3rem 0.3rem;
    border-radius: 999px;
    background: var(--blanc);
    box-shadow: inset 0 0 0 1px var(--inox-2), 0 6px 14px -12px rgba(0, 0, 0, 0.35);
    font-family: var(--condense);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--marine);
    cursor: pointer;
    transition: box-shadow 0.15s ease;
}
.upload-btn input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-btn input::file-selector-button { cursor: pointer; }
.upload-cap {
    flex: none;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--marine);
    color: var(--blanc);
    pointer-events: none;
    transition: background-color 0.15s ease;
}
.upload-cap svg { width: 58%; height: 58%; }
.upload-plaque { pointer-events: none; }
.upload-btn:hover { box-shadow: inset 0 0 0 1px var(--vif), 0 6px 14px -12px rgba(0, 0, 0, 0.35); }
.upload-btn:hover .upload-cap { background: var(--bleu); }
.upload-btn:focus-within { outline: 3px solid var(--vif); outline-offset: 3px; }
.upload-btn:active { transform: translateY(2px); }
.upload-preview { max-width: 220px; border-radius: 10px; }

.photos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 2.4vw, 36px); align-items: start; }
.premium-form .photos-grid > .form-group { margin-bottom: 0; }

/* ---------- Étapes 2 à 6 : les zones, à côté de l'écran de la borne (collant) ---------- */
.etat-zones {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 24px;
    align-items: start;
}
.etat-zones > .form-section { grid-column: 1 / span 7; }
.etat-ecran {
    grid-column: 8 / span 5;
    grid-row: 1 / span 6;
    position: sticky;
    top: calc(var(--auvent) + 24px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px clamp(14px, 1.4vw, 20px) 16px;
    border-radius: var(--rayon-plaque);
    background-color: var(--ecran);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.9px, transparent 1.25px);
    background-size: 5px 5px;
    box-shadow: var(--ecran-creuse);
    color: var(--blanc);
}
@media (min-width: 901px) {
    .etat-ecran { margin-right: var(--reserve-wa); }
}
.etat-statut {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.4rem;
    padding: 2px 4px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.etat-statut .afficheur-texte { font-size: 0.94rem; line-height: 1.3; }

.etat-plan { width: 100%; height: auto; overflow: visible; }
.etat-plan .coque { fill: none; stroke: rgba(207, 221, 242, 0.66); stroke-width: 1.8; }
.etat-plan .contexte { fill: none; stroke: rgba(207, 221, 242, 0.4); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.etat-plan .z > * {
    fill: transparent;
    stroke: rgba(207, 221, 242, 0.56);
    stroke-width: 1.4;
    stroke-linejoin: round;
    transition: fill 0.2s ease, stroke 0.2s ease, opacity 0.15s ease;
}
.etat-plan .z[data-niveau="1"] > * { fill: var(--niveau-ecran-1); stroke: var(--vif-clair); }
.etat-plan .z[data-niveau="2"] > * { fill: var(--niveau-ecran-2); stroke: rgba(255, 255, 255, 0.75); }
.etat-plan .z[data-niveau="3"] > * { fill: var(--vif); stroke: var(--blanc); stroke-width: 1.8; }
.etat-plan .z.est-visee > * { stroke: var(--blanc); stroke-width: 2.6; }
.etat-plan .z--petite.est-visee > * { stroke-width: 2; }
.etat-plan .repere path { fill: none; stroke: rgba(207, 221, 242, 0.36); stroke-width: 1; stroke-dasharray: 3 3; }
.etat-plan .repere circle { fill: rgba(207, 221, 242, 0.6); }
.etat-plan .repere text {
    fill: rgba(207, 221, 242, 0.7);
    font-family: var(--condense);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
}
.etat-plan .repere:not([data-niveau="0"]) text { fill: var(--blanc); }
.etat-plan .repere:not([data-niveau="0"]) path { stroke: rgba(255, 255, 255, 0.8); stroke-dasharray: none; }
.etat-plan .repere.est-visee text { fill: var(--blanc); }
.etat-plan .repere.est-visee path { stroke: var(--blanc); stroke-width: 1.6; stroke-dasharray: none; }
.etat-plan .repere.est-visee circle { fill: var(--vif-clair); stroke: var(--blanc); stroke-width: 1.5; }
/* Une zone visée : le reste du plan recule */
.etat-plan .z,
.etat-plan .repere { transition: opacity 0.15s ease; }
.etat-ecran.a-une-visee .etat-plan .z:not(.est-visee),
.etat-ecran.a-une-visee .etat-plan .repere:not(.est-visee) { opacity: 0.28; }
/* La zone qui vient de changer de niveau clignote une fois */
.etat-plan .vient-de-changer > * { animation: niveau-change 0.34s steps(3, end) 1; }
@keyframes niveau-change {
    0% { opacity: 0.25; }
    40% { opacity: 1; }
    70% { opacity: 0.5; }
    100% { opacity: 1; }
}

.etat-niveaux {
    list-style: none;
    margin: 0;
    padding: 10px 4px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.etat-niveaux li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--condense);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bleu-texte);
}
/* Pastilles rondes (pas des cases) aux remplissages exacts des zones du plan : 0 contour seul, 3 plein */
.etat-niveaux li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px rgba(207, 221, 242, 0.56); }
.etat-niveaux li[data-niveau="1"]::before { background: var(--niveau-ecran-1); box-shadow: inset 0 0 0 1.4px var(--vif-clair); }
.etat-niveaux li[data-niveau="2"]::before { background: var(--niveau-ecran-2); box-shadow: inset 0 0 0 1.4px rgba(255, 255, 255, 0.75); }
.etat-niveaux li[data-niveau="3"]::before { background: var(--vif); box-shadow: inset 0 0 0 1.8px var(--blanc); }

.etat-estimation { display: grid; gap: 2px; padding: 10px 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.etat-estimation .afficheur-texte { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; font-size: 1rem; }
.etat-estimation-nom { color: var(--bleu-texte); }

/* ---------- Ce que script.js écrit : recommandations, estimation tarifaire, bouton d'envoi ---------- */
.recommendations-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 36px); }
.reco-intro { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.reco-intro svg { flex: none; width: 22px; height: 22px; color: var(--vif); }
/* Une recommandation par ligne, sous un filet (pas d'encart dans la plaque) */
.recommendation-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icone texte" "icone etiquette";
    align-items: start;
    gap: 8px 14px;
    padding: 16px 0;
    border-top: 1px solid var(--inox-2);
}
.reco-icon {
    grid-area: icone;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--marine);
    color: var(--blanc);
}
.reco-icon svg { width: 22px; height: 22px; }
.reco-content { grid-area: texte; }
.reco-title { font-size: 1.2rem; line-height: 1.1; }
.reco-benefit { margin-top: 4px; font-size: 0.95rem; color: var(--ardoise); }
.reco-tag {
    grid-area: etiquette;
    justify-self: start;
    padding: 3px 9px 2px;
    border-radius: 6px;
    background: var(--marine);
    color: var(--blanc);
    font-family: var(--condense);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Estimation tarifaire : un afficheur (le calcul de script.js, publié sur la page) */
.price-estimate-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    padding: 6px 20px;
    border-radius: 12px;
    background-color: var(--ecran);
    background-image: radial-gradient(rgba(255, 255, 255, 0.075) 0.9px, transparent 1.25px);
    background-size: 5px 5px;
    box-shadow: var(--ecran-creuse);
    color: var(--blanc);
}
.price-points,
.price-range { display: grid; gap: 6px; padding: 14px 0; }
.points-label,
.range-label {
    font-family: var(--condense);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bleu-texte);
}
.points-value,
.range-value {
    font-family: var(--matrice);
    font-weight: 900;
    font-size: clamp(1.3rem, 1rem + 0.8vw, 1.8rem);
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.price-disclaimer {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.92rem;
    color: var(--bleu-texte);
}
.price-disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }

/* Envoi : le poussoir de démarrage ; script.js y écrit son propre pictogramme, masqué (la cap est dessinée) */
.submit-section { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.bouton-envoi svg { display: none; }
/* « Envoyé ! » (fond vert posé en ligne par script.js) et poussoir inactif pendant l'envoi : règles partagées de borne.css */
.submit-note { color: var(--ardoise); }

/* ==========================================================================
   ÉCRANS INTERMÉDIAIRES ET TÉLÉPHONE
   ========================================================================== */
@media (max-width: 1260px) {
    .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legend-item:nth-child(3) { border-left: 0; }
    .legend-item:nth-child(n + 3) { border-top: 1px solid var(--inox-2); }
    .level-btn { width: 44px; height: 44px; }
}

@media (max-width: 1080px) {
    .premium-titre, .premium-intro { grid-column: 1 / -1; }
    .premium-intro { justify-self: start; max-width: 640px; }
    .form-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .premium-titre .borne-texte { padding-left: 0; }
    .premium-intro { padding: 18px; }
    .premium-form { gap: 18px; }
    .section-title-form { margin-bottom: 16px; }

    .vehicule-section { grid-template-columns: minmax(0, 1fr); }
    .vehicule-section .vehicule-etat .form-group { margin-bottom: 22px; }
    .form-row--3 { grid-template-columns: minmax(0, 1fr); }
    .photos-grid { grid-template-columns: minmax(0, 1fr); }
    .recommendations-list { grid-template-columns: minmax(0, 1fr); }
    .price-estimate-card { grid-template-columns: minmax(0, 1fr); }

    /* Étapes 2 à 6 au téléphone : l'écran devient un bandeau collant, seulement le temps des zones */
    .etat-zones { display: block; }
    .etat-zones > .form-section { margin-top: 18px; }
    .etat-ecran {
        position: sticky;
        top: var(--auvent);
        z-index: 20;
        gap: 6px;
        margin-inline: calc(var(--gouttiere) * -1);
        padding: 8px 16px 10px;
        border-radius: 0;
        box-shadow: var(--ecran-creuse), var(--ombre-plaque);
    }
    .etat-statut { min-height: 0; padding: 0 0 6px; }
    .etat-statut .afficheur-texte { min-height: 2.6em; font-size: 0.8rem; }
    .etat-statut .afficheur-temoin { width: 8px; height: 8px; }
    .etat-plan { max-height: 104px; }
    .etat-plan .reperes { display: none; }
    .etat-niveaux { display: none; }
    .etat-estimation { padding-top: 6px; }
    .etat-estimation p:first-child { display: none; }
    .etat-estimation .afficheur-texte { font-size: 0.82rem; }

    .zone-item { padding: 12px 2px; }
    .level-selector { gap: 8px; }

    .submit-section .bouton-envoi { width: 100%; }
    /* Pas de barre de réservation sur cette page : le bouton WhatsApp flottant reste au téléphone,
       et le bas de page garde de quoi ne pas passer dessous */
    .whatsapp-floating { display: grid; right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .footer-bottom { padding-bottom: 88px; }
}

@media (max-width: 420px) {
    .legend-grid { grid-template-columns: minmax(0, 1fr); }
    .legend-item { border-left: 0; }
    .legend-item + .legend-item { border-top: 1px solid var(--inox-2); }
    .toggle-group { min-width: 0; width: 100%; }
}
