/*
 * Maquette « acheter.maisonthuel.com » — Phase 9, Étape 0.
 * Reprend les tokens et l'esprit de la charte 2026 du logiciel (docs/13-ui.md §11,
 * assets/styles/app.css) : Inter, fond clair, neutres chauds, un seul accent (or),
 * boutons anthracite, cartes plates sans ombre marquée, aucune couleur vive hors accent.
 * Site public (vitrine), donc un peu plus « respirant » que l'outil interne, mais
 * strictement les mêmes couleurs et la même typographie.
 */

/*
 * Inter auto-hébergée (OFL, assets/fonts/Inter-Variable.woff2) — remplace le repli système,
 * CSP `font-src 'self'` : même police, mêmes licences, que le logiciel (docs/13-ui.md §11.2).
 */
@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter-Variable-Gz7AlRl.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-mt-noir: #1c1917;
    --color-mt-blanc: #ffffff;
    --color-mt-or: #a68a5b;
    --color-mt-or-clair: #c7b28d;
    --color-mt-or-fonce: #8a7047;
    --color-mt-creme: #fafaf9;
    --color-mt-bordure: #e5e3e0;
    --color-mt-anthracite: #18181b;
    --font-delight: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    --rayon-sm: 6px;
    --rayon-md: 8px;
    --rayon-lg: 16px;
    --ombre-legere: 0 1px 2px rgba(28, 25, 23, 0.04);
    --ombre-portee: 0 20px 48px -16px rgba(28, 25, 23, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--color-mt-creme);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-delight);
    color: var(--color-mt-noir);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img, svg {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

a {
    color: var(--color-mt-or-fonce);
    text-decoration: none;
}

a:hover {
    color: var(--color-mt-or);
    text-decoration: underline;
}

:focus-visible {
    outline: 2px solid var(--color-mt-or);
    outline-offset: 2px;
    border-radius: 4px;
}

.conteneur {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------------------------------------------------------------------------
 * En-tête / pied de page — communs aux 4 pages.
 * ----------------------------------------------------------------------------------------- */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 249, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-mt-bordure);
}

.entete__ligne {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.marque {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-mt-noir);
    text-decoration: none;
    min-width: 0;
}

.marque:hover {
    text-decoration: none;
    color: var(--color-mt-noir);
}

.marque__monogramme {
    flex-shrink: 0;
}

.marque__texte {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-public {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-public__lien {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--rayon-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-mt-noir);
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    min-height: 40px;
}

.nav-public__lien:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-mt-noir);
    text-decoration: none;
}

.nav-public__lien[aria-current="page"] {
    color: var(--color-mt-or-fonce);
    background: rgba(166, 138, 91, 0.1);
}

/* En dessous de ~480px, les deux liens ne tiennent plus sur la même ligne que le logo sans se
   chevaucher : on les fait passer sur leur propre ligne plutôt que de les laisser se couper. */
@media (max-width: 479.98px) {
    .entete__ligne {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .nav-public {
        width: 100%;
        gap: 2px;
    }

    .nav-public__lien {
        padding: 6px 10px;
        min-height: 36px;
    }
}

.pied {
    border-top: 1px solid var(--color-mt-bordure);
    margin-top: 48px;
    padding: 28px 20px 36px;
    background: var(--color-mt-creme);
}

.pied__conteneur {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.pied__avertissement {
    font-size: 0.8125rem;
    color: var(--color-mt-noir);
    font-weight: 500;
}

.pied__liens {
    display: flex;
    justify-content: center;
    gap: 18px;
    font-size: 0.8125rem;
}

.pied__liens a {
    color: var(--color-mt-noir);
    text-decoration: underline;
    text-decoration-color: var(--color-mt-bordure);
    text-underline-offset: 3px;
}

.pied__liens a:hover {
    color: var(--color-mt-or-fonce);
    text-decoration-color: var(--color-mt-or-clair);
}

.pied__copy {
    font-size: 0.75rem;
    color: #78716c;
}

/* -------------------------------------------------------------------------------------------
 * Boutons — mêmes noms que le logiciel (btn-primary / btn-secondary / btn-fantome).
 * ----------------------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--rayon-sm);
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-family: inherit;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-mt-anthracite);
    color: #fff;
}

.btn-primary:hover {
    background: #2a2a2e;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #fff;
    color: var(--color-mt-noir);
    border-color: #d6d3d1;
}

.btn-secondary:hover {
    background: #f6f5f4;
    color: var(--color-mt-noir);
    text-decoration: none;
}

.btn-fantome {
    background: transparent;
    color: var(--color-mt-noir);
}

.btn-fantome:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.btn-bloc {
    width: 100%;
}

.btn svg {
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------------------------
 * Section d'introduction (hero) — localisateur.
 * ----------------------------------------------------------------------------------------- */
.hero {
    padding: 40px 20px 20px;
    max-width: 1180px;
    margin: 0 auto;
}

.hero__fil {
    font-size: 0.8125rem;
    color: var(--color-mt-or-fonce);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 1.75rem;
    color: var(--color-mt-noir);
}

.hero p {
    margin-top: 8px;
    color: #57534e;
    font-size: 0.9375rem;
    max-width: 640px;
}

/* -------------------------------------------------------------------------------------------
 * Barre de recherche + puces produits.
 * ----------------------------------------------------------------------------------------- */
.barre-recherche {
    max-width: 1180px;
    margin: 20px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recherche-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recherche-form__champ {
    position: relative;
    flex: 1 1 220px;
    min-width: 180px;
}

.recherche-form__champ input {
    width: 100%;
    height: 44px;
    border-radius: var(--rayon-sm);
    border: 1px solid #d6d3d1;
    background: #fff;
    padding: 0 14px 0 38px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--color-mt-noir);
}

.recherche-form__champ input::placeholder {
    color: #a8a29e;
}

.recherche-form__champ input:focus {
    outline: none;
    border-color: var(--color-mt-or);
    box-shadow: 0 0 0 3px rgba(166, 138, 91, 0.18);
}

.recherche-form__icone {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8a29e;
    pointer-events: none;
}

.recherche-form .btn {
    height: 44px;
}

.recherche-statut {
    font-size: 0.8125rem;
    color: #57534e;
    min-height: 1.2em;
    /* Volontairement pas de display:flex : ce paragraphe reçoit du texte mélangé à un <strong>
       via innerHTML, et flex transforme chaque nœud de texte en « item » séparé par `gap` —
       ce qui insérait un espace parasite avant la ponctuation finale. */
}

.recherche-statut strong {
    color: var(--color-mt-noir);
    font-weight: 600;
}

.recherche-erreur {
    font-size: 0.8125rem;
    color: #b42318;
    display: none;
}

.recherche-erreur.visible {
    display: block;
}

.puces {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.puce {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-mt-bordure);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-mt-noir);
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.puce:hover {
    border-color: var(--color-mt-or-clair);
}

.puce[aria-pressed="true"] {
    background: var(--color-mt-anthracite);
    border-color: var(--color-mt-anthracite);
    color: #fff;
}

/* -------------------------------------------------------------------------------------------
 * Zone principale : liste + carte (desktop), bascule par onglets (mobile).
 * ----------------------------------------------------------------------------------------- */
.resultats {
    max-width: 1180px;
    margin: 22px auto 40px;
    padding: 0 20px;
}

.onglets-mobiles {
    display: none;
    margin-bottom: 14px;
    border: 1px solid var(--color-mt-bordure);
    border-radius: var(--rayon-sm);
    background: #fff;
    padding: 4px;
    gap: 4px;
}

.onglets-mobiles__bouton {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 0;
    border-radius: 5px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #57534e;
    cursor: pointer;
}

.onglets-mobiles__bouton[aria-selected="true"] {
    background: var(--color-mt-anthracite);
    color: #fff;
}

.locator {
    display: grid;
    grid-template-columns: minmax(340px, 420px) 1fr;
    gap: 20px;
    align-items: flex-start;
}

.panneau-liste {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panneau-liste__compteur {
    font-size: 0.8125rem;
    color: #57534e;
    padding: 0 2px;
}

.panneau-liste__compteur strong {
    color: var(--color-mt-noir);
}

.panneau-carte {
    position: sticky;
    top: 86px;
}

.panneau-carte__carte {
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-mt-bordure);
    background: #e9e7e4;
}

#map {
    width: 100%;
    height: 100%;
}

@media (max-width: 899.98px) {
    .onglets-mobiles {
        display: flex;
    }

    .locator {
        grid-template-columns: 1fr;
    }

    .panneau-carte {
        position: static;
    }

    .panneau-carte__carte {
        height: calc(100dvh - 300px);
        min-height: 420px;
    }

    .locator[data-vue-mobile="carte"] .panneau-liste {
        display: none;
    }

    .locator[data-vue-mobile="liste"] .panneau-carte {
        display: none;
    }
}

/* -------------------------------------------------------------------------------------------
 * Carte revendeur (liste).
 * ----------------------------------------------------------------------------------------- */
.carte-revendeur {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--rayon-md);
    border: 1px solid var(--color-mt-bordure);
    background: #fff;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.carte-revendeur:hover,
.carte-revendeur--survol {
    border-color: var(--color-mt-or-clair);
    box-shadow: var(--ombre-legere);
}

.carte-revendeur--actif {
    border-color: var(--color-mt-or);
    background: rgba(166, 138, 91, 0.05);
    box-shadow: 0 0 0 1px var(--color-mt-or);
}

.carte-revendeur__vignette {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: var(--rayon-sm);
    overflow: hidden;
}

.carte-revendeur__corps {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.carte-revendeur__nom {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-mt-noir);
}

.carte-revendeur__lieu {
    font-size: 0.8125rem;
    color: #57534e;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.carte-revendeur__distance {
    color: var(--color-mt-or-fonce);
    font-weight: 600;
}

.carte-revendeur__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.badge-produit {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(166, 138, 91, 0.14);
    color: var(--color-mt-or-fonce);
    white-space: nowrap;
}

.carte-revendeur__actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* -------------------------------------------------------------------------------------------
 * Vignette « devanture » — formes CSS/SVG neutres, aucune image externe.
 * ----------------------------------------------------------------------------------------- */
.vignette {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--v1), var(--v2));
}

.vignette svg {
    width: 68%;
    height: 68%;
    opacity: 0.95;
}

.vignette-grande {
    width: 100%;
    height: 180px;
    border-radius: var(--rayon-md);
    overflow: hidden;
}

.vignette-grande .vignette {
    border-radius: var(--rayon-md);
}

/* -------------------------------------------------------------------------------------------
 * État vide.
 * ----------------------------------------------------------------------------------------- */
.etat-vide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed var(--color-mt-bordure);
    border-radius: var(--rayon-md);
    color: #57534e;
}

.etat-vide svg {
    color: #d6d3d1;
}

.etat-vide__titre {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-mt-noir);
}

.etat-vide__texte {
    font-size: 0.875rem;
    max-width: 320px;
}

/* -------------------------------------------------------------------------------------------
 * Marqueurs Leaflet personnalisés (pin SVG, sans dépendre des icônes PNG par défaut).
 * ----------------------------------------------------------------------------------------- */
.pin-mt {
    transition: filter 0.15s;
}

.pin-mt svg {
    display: block;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: var(--ombre-portee);
}

.leaflet-popup-content {
    margin: 12px 14px;
    font-family: var(--font-delight);
}

.popup-mt {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}

.popup-mt__nom {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-mt-noir);
}

.popup-mt__ville {
    font-size: 0.8125rem;
    color: #57534e;
}

.popup-mt__lien {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-mt-or-fonce);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-family: inherit;
}

.popup-mt__lien:hover {
    text-decoration: underline;
}

.leaflet-control-attribution {
    font-size: 11px;
}

/* -------------------------------------------------------------------------------------------
 * Fiche revendeur — dialogue centré sur desktop, bottom sheet sur mobile.
 * ----------------------------------------------------------------------------------------- */
.fiche-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 25, 23, 0.44);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.fiche-overlay.ouverte {
    opacity: 1;
    pointer-events: auto;
}

.fiche-panel {
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: var(--rayon-lg);
    box-shadow: var(--ombre-portee);
    transform: translateY(14px) scale(0.98);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.fiche-overlay.ouverte .fiche-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fiche-panel__poignee {
    display: none;
}

.fiche-panel__entete {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0;
    background: #fff;
    z-index: 2;
}

.fiche-panel__fermer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #57534e;
    cursor: pointer;
}

.fiche-panel__fermer:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--color-mt-noir);
}

.fiche-panel__corps {
    padding: 4px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fiche-panel__nom {
    font-size: 1.25rem;
}

.fiche-panel__ligne {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-mt-noir);
}

.fiche-panel__ligne svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-mt-or-fonce);
}

.fiche-panel__ligne a {
    color: var(--color-mt-noir);
    text-decoration: none;
}

.fiche-panel__ligne a:hover {
    color: var(--color-mt-or-fonce);
    text-decoration: underline;
}

.fiche-panel__produits-titre {
    font-size: 0.75rem;
    font-weight: 500;
    color: #78716c;
}

.fiche-panel__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.fiche-panel__actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

@media (max-width: 639.98px) {
    .fiche-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .fiche-panel {
        max-width: 100%;
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .fiche-overlay.ouverte .fiche-panel {
        transform: translateY(0);
    }

    .fiche-panel__poignee {
        display: block;
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--color-mt-bordure);
        margin: 10px auto 0;
    }
}

/* -------------------------------------------------------------------------------------------
 * Page « Devenir revendeur ».
 * ----------------------------------------------------------------------------------------- */
.page-simple {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-simple__entete {
    margin-bottom: 28px;
}

.page-simple__fil {
    font-size: 0.8125rem;
}

.page-simple h1 {
    font-size: 1.625rem;
    margin-top: 6px;
}

.page-simple__intro {
    margin-top: 10px;
    color: #57534e;
    font-size: 0.9375rem;
    max-width: 560px;
}

.carte-formulaire {
    background: #fff;
    border: 1px solid var(--color-mt-bordure);
    border-radius: var(--rayon-md);
    padding: 28px;
}

.champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.champ label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-mt-noir);
}

.champ .optionnel {
    color: #a8a29e;
    font-weight: 400;
}

.champ input,
.champ textarea {
    font-family: inherit;
    font-size: 0.9375rem;
    padding: 10px 12px;
    border-radius: var(--rayon-sm);
    border: 1px solid #d6d3d1;
    background: #fff;
    color: var(--color-mt-noir);
}

.champ input:focus,
.champ textarea:focus {
    outline: none;
    border-color: var(--color-mt-or);
    box-shadow: 0 0 0 3px rgba(166, 138, 91, 0.18);
}

.champ textarea {
    resize: vertical;
    min-height: 96px;
}

.grille-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 539.98px) {
    .grille-2 {
        grid-template-columns: 1fr;
    }
}

.champ-piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Captcha façon ALTCHA : preuve de travail calculée dans le navigateur, sans service tiers. */
.captcha-altcha {
    border: 1px solid var(--color-mt-bordure);
    border-radius: var(--rayon-sm);
    background: var(--color-mt-creme);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.captcha-altcha__ligne {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.captcha-altcha__case-zone {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.captcha-altcha__case-zone input[type="checkbox"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.captcha-altcha__visuel {
    position: absolute;
    inset: 0;
    border: 1.5px solid #a8a29e;
    border-radius: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, border-color 0.15s;
    /* Purement décoratif : ne doit jamais intercepter le clic destiné à la vraie case
       (l'input, en-dessous dans l'empilement) — sans quoi la case devient incliquable. */
    pointer-events: none;
}

.captcha-altcha__case-zone input:focus-visible ~ .captcha-altcha__visuel {
    outline: 2px solid var(--color-mt-or);
    outline-offset: 2px;
}

.captcha-altcha[data-etat="calcul"] .captcha-altcha__visuel {
    border-color: var(--color-mt-or);
}

.captcha-altcha[data-etat="verifie"] .captcha-altcha__visuel {
    background: var(--color-mt-or);
    border-color: var(--color-mt-or);
}

.captcha-altcha__coche {
    width: 13px;
    height: 13px;
    color: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s, transform 0.15s;
}

.captcha-altcha[data-etat="verifie"] .captcha-altcha__coche {
    opacity: 1;
    transform: scale(1);
}

.captcha-altcha__spin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-mt-bordure);
    border-top-color: var(--color-mt-or);
    opacity: 0;
    animation: captcha-rotation 0.7s linear infinite;
}

.captcha-altcha[data-etat="calcul"] .captcha-altcha__spin {
    opacity: 1;
}

@keyframes captcha-rotation {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .captcha-altcha__spin {
        animation: none;
    }
}

.captcha-altcha__texte {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-mt-noir);
    user-select: none;
}

.captcha-altcha__statut {
    margin-top: 8px;
    margin-left: 34px;
    font-size: 0.75rem;
    color: #78716c;
    min-height: 1.1em;
}

.captcha-altcha[data-etat="verifie"] .captcha-altcha__statut {
    color: #15803d;
    font-weight: 600;
}

.captcha-altcha__marque {
    margin-top: 6px;
    margin-left: 34px;
    font-size: 0.6875rem;
    color: #a8a29e;
}

.champ-erreur {
    font-size: 0.8125rem;
    color: #b42318;
    margin-top: -10px;
    margin-bottom: 16px;
    display: none;
}

.champ-erreur.visible {
    display: block;
}

.message-succes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding: 48px 24px;
}

.message-succes__icone {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(166, 138, 91, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mt-or-fonce);
}

.message-succes h2 {
    font-size: 1.25rem;
}

.message-succes p {
    color: #57534e;
    font-size: 0.9375rem;
    max-width: 420px;
}

/* -------------------------------------------------------------------------------------------
 * Pages légales (mentions, confidentialité) — typographie simple.
 * ----------------------------------------------------------------------------------------- */
.page-legale {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.page-legale h1 {
    font-size: 1.625rem;
    margin-bottom: 6px;
}

.page-legale__maj {
    font-size: 0.8125rem;
    color: #78716c;
    margin-bottom: 28px;
}

.page-legale h2 {
    font-size: 1.0625rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-legale p,
.page-legale li {
    font-size: 0.9375rem;
    color: #3f3c3a;
    margin-bottom: 10px;
}

.page-legale ul {
    padding-left: 20px;
}

.page-legale a {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------------------------
 * Utilitaires.
 * ----------------------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* -------------------------------------------------------------------------------------------
 * Ajouts site public (au-delà de la maquette statique) : lien d'évitement, bandeau légal du
 * pied de page déjà présent dans le HTML, puce d'onglet mobile active au clavier.
 * ----------------------------------------------------------------------------------------- */
.lien-evitement {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 16px;
    background: var(--color-mt-anthracite);
    color: #fff;
    border-radius: 0 0 var(--rayon-sm) 0;
}

.lien-evitement:focus-visible {
    left: 0;
}

.panneau-carte__carte {
    background-color: #e9e7e4;
}

/* État « chargement » de la liste/carte (avant le premier rendu côté client). */
[data-locator-target="chargement"] {
    padding: 24px;
    text-align: center;
    color: #57534e;
    font-size: 0.875rem;
}
