/* =========================================================================
   style.css — TOUT le style du site « web » (site public + espace admin)

   Sommaire
   1.  Variables (couleurs, typographie, espacements)
   2.  Base et accessibilité
   3.  Mise en page (conteneurs, sections)
   4.  Boutons, liens, puces
   5.  En-tête et menu
   6.  Accueil : accroche et maquette
   7.  Offres (cartes)
   8.  Étapes, atouts, services, chiffres
   9.  Tarifs : comparatif et options
   10. FAQ
   11. Formulaire de devis et estimation
   12. Pages légales, 404, remerciement
   13. Appel final, pied de page, barre mobile
   14. Bandeau cookies
   15. Espace admin
   16. Animations et préférences (mouvement réduit)
   ========================================================================= */


/* ========== 1. Variables ========== */
:root {
    /* Palette « Atelier coloré » */
    --fond: #FFF8EE;
    --fond-teinte: #FFEFD9;
    --blanc: #FFFFFF;
    --encre: #1E1B3A;
    --encre-douce: #4A4766;
    --corail: #FF6B4A;
    --corail-clair: #FFE1D9;
    --menthe: #2EC4A6;
    --menthe-clair: #D3F5EC;
    --soleil: #FFC93C;
    --soleil-clair: #FFF1C7;
    --lavande: #8C7CF0;
    --lavande-clair: #E6E2FD;
    --erreur: #C42B1C;
    --succes: #11795F;

    /* Typographie : polices du système (aucun téléchargement, aucun service externe) */
    --police-titre: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --police-texte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Formes « sticker » */
    --trait: 2px solid var(--encre);
    --ombre: 5px 5px 0 var(--encre);
    --ombre-petite: 3px 3px 0 var(--encre);
    --rayon: 24px;
    --rayon-petit: 14px;

    --largeur: 1180px;
    --gouttiere: clamp(16px, 4vw, 32px);
    --transition: 0.2s ease;
}


/* ========== 2. Base et accessibilité ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--fond);
    color: var(--encre);
    font-family: var(--police-texte);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--police-titre);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    font-weight: 800;
}

p {
    margin: 0 0 1em;
}

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

a {
    color: var(--encre);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: #D4401F;
}

/* Contour de focus bien visible pour la navigation au clavier */
:focus-visible {
    outline: 3px solid var(--lavande);
    outline-offset: 3px;
    border-radius: 6px;
}

main:focus {
    outline: none;
}

.visuellement-cache {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lien-evitement {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--encre);
    color: var(--blanc);
    border-radius: 999px;
    font-weight: 700;
}

.lien-evitement:focus {
    top: 12px;
    color: var(--blanc);
}

.icone {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    vertical-align: -0.2em;
}

[hidden] {
    display: none !important;
}


/* ========== 3. Mise en page ========== */
.conteneur {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--gouttiere);
}

.conteneur--etroit {
    max-width: 820px;
}

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section--serree {
    padding-top: 8px;
}

.section--teinte {
    background: var(--fond-teinte);
    border-block: var(--trait);
}

.section--encre {
    background: var(--encre);
    color: var(--blanc);
}

.section__entete {
    max-width: 720px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section__titre {
    font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
}

.section__intro {
    font-size: 1.15rem;
    color: var(--encre-douce);
}

.section__suite {
    margin: 36px 0 0;
    text-align: center;
}

.surtitre {
    display: inline-block;
    margin-bottom: 18px;
    padding: 4px 14px;
    background: var(--soleil);
    border: var(--trait);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transform: rotate(-2deg);
}

.titre-page {
    padding-block: clamp(40px, 7vw, 88px) clamp(24px, 4vw, 40px);
}

.titre-page__titre {
    font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.6rem);
    max-width: 16em;
}

.titre-page__intro {
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    color: var(--encre-douce);
    max-width: 40em;
}

.note {
    margin-top: 28px;
    text-align: center;
    color: var(--encre-douce);
    font-size: 0.95rem;
}


/* ========== 4. Boutons, liens, puces ========== */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 10px 22px;
    border: var(--trait);
    border-radius: 999px;
    background: var(--blanc);
    color: var(--encre);
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--ombre-petite);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.bouton:hover {
    color: var(--encre);
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--encre);
}

.bouton:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--encre);
}

.bouton--corail { background: var(--corail); }
.bouton--soleil { background: var(--soleil); }
.bouton--menthe { background: var(--menthe); }
.bouton--contour { background: var(--blanc); }

.bouton--encre {
    background: var(--encre);
    color: var(--blanc);
}

.bouton--encre:hover {
    color: var(--blanc);
}

.bouton--grand {
    min-height: 56px;
    padding: 14px 28px;
    font-size: 1.1rem;
}

.bouton--petit {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0 var(--encre);
}

.bouton--plein {
    width: 100%;
}

.bouton--danger {
    background: #FFD9D4;
}

.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid var(--corail);
}

.lien-fleche .icone {
    transition: transform var(--transition);
}

.lien-fleche:hover .icone {
    transform: translateX(4px);
}

.lien-bouton {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.puce {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 8px 16px;
    border: var(--trait);
    border-radius: 999px;
    background: var(--blanc);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.puce--corail { background: var(--corail-clair); }
.puce--menthe { background: var(--menthe-clair); }
.puce--soleil { background: var(--soleil-clair); }
.puce--lavande { background: var(--lavande-clair); }


/* ========== 5. En-tête et menu ========== */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 238, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition);
}

.entete--defile {
    border-bottom-color: var(--encre);
}

.entete__interieur {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--police-titre);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--encre);
}

.logo__image {
    height: 40px;
    width: auto;
}

/* Les 4 carrés de couleur : la « marque » de l'atelier */
.logo__marque {
    display: grid;
    grid-template-columns: repeat(2, 13px);
    gap: 3px;
    padding: 5px;
    background: var(--encre);
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.logo__marque span {
    width: 13px;
    height: 13px;
    border-radius: 3px;
}

.logo__marque span:nth-child(1) { background: var(--corail); }
.logo__marque span:nth-child(2) { background: var(--soleil); }
.logo__marque span:nth-child(3) { background: var(--menthe); }
.logo__marque span:nth-child(4) { background: var(--lavande); }

.logo:hover .logo__marque {
    transform: rotate(90deg);
}

.entete__burger {
    display: none;
}

.nav__liste {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__lien {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}

.nav__lien:hover {
    background: var(--fond-teinte);
    color: var(--encre);
}

.nav__lien[aria-current="page"] {
    background: var(--soleil-clair);
    box-shadow: inset 0 0 0 2px var(--encre);
}

.nav__action {
    margin-left: 10px;
}

.nav__action .bouton[aria-current="page"] {
    background: var(--soleil);
}

/* Menu mobile */
@media (max-width: 899px) {
    /* Pas de flou ici : il empêcherait le menu (position fixe) de couvrir tout l'écran */
    .entete {
        background: var(--fond);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .entete__burger {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 8px 16px;
        border: var(--trait);
        border-radius: 999px;
        background: var(--blanc);
        color: var(--encre);
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }

    .nav {
        position: fixed;
        inset: 72px 0 0;
        z-index: 49;
        display: none;
        padding: 24px var(--gouttiere) 40px;
        background: var(--fond);
        border-top: var(--trait);
        overflow-y: auto;
    }

    .nav--ouverte {
        display: block;
        animation: apparition 0.25s ease;
    }

    .nav__liste {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .nav__lien {
        padding: 16px 20px;
        border: var(--trait);
        border-radius: var(--rayon-petit);
        background: var(--blanc);
        font-family: var(--police-titre);
        font-size: 1.35rem;
        font-weight: 800;
    }

    .nav__action {
        margin: 12px 0 0;
    }

    .nav__action .bouton {
        width: 100%;
        min-height: 60px;
        font-size: 1.15rem;
    }

    body.menu-ouvert {
        overflow: hidden;
    }
}


/* ========== 6. Accueil : accroche et maquette ========== */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 96px);
}

/* Formes douces en arrière-plan */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

.hero::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    background: var(--lavande-clair);
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -100px;
    background: var(--menthe-clair);
}

.hero__interieur {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.hero__titre {
    font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem);
    line-height: 1.05;
}

.hero__intro {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    color: var(--encre-douce);
    max-width: 34em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0;
}

.hero__rassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero__rassurance .icone {
    color: var(--succes);
}

/* Maquette décorative d'un site */
.maquette {
    position: relative;
    padding: 24px;
}

.maquette__fenetre {
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: 10px 10px 0 var(--encre);
    overflow: hidden;
    transform: rotate(2deg);
}

.maquette__barre {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: var(--trait);
    background: var(--fond-teinte);
}

.maquette__barre span {
    width: 12px;
    height: 12px;
    border: 2px solid var(--encre);
    border-radius: 50%;
}

.maquette__barre span:nth-child(1) { background: var(--corail); }
.maquette__barre span:nth-child(2) { background: var(--soleil); }
.maquette__barre span:nth-child(3) { background: var(--menthe); }

.maquette__barre i {
    flex: 1;
    height: 14px;
    margin-left: 10px;
    border-radius: 999px;
    background: var(--blanc);
    border: 2px solid var(--encre);
}

.maquette__page {
    padding: 26px;
}

.maquette__titre,
.maquette__ligne,
.maquette__bouton {
    border-radius: 999px;
    margin-bottom: 12px;
}

.maquette__titre {
    width: 75%;
    height: 22px;
    background: var(--encre);
    animation: construction 3.2s ease-in-out infinite;
}

.maquette__ligne {
    width: 90%;
    height: 10px;
    background: #E4E0F0;
}

.maquette__ligne--courte {
    width: 60%;
}

.maquette__bouton {
    width: 38%;
    height: 30px;
    margin-top: 18px;
    background: var(--corail);
    border: 2px solid var(--encre);
}

.maquette__cartes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.maquette__cartes span {
    height: 62px;
    border: 2px solid var(--encre);
    border-radius: 12px;
}

.maquette__cartes span:nth-child(1) { background: var(--menthe-clair); }
.maquette__cartes span:nth-child(2) { background: var(--soleil-clair); }
.maquette__cartes span:nth-child(3) { background: var(--lavande-clair); }

.maquette__sticker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: var(--trait);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: var(--ombre-petite);
    animation: flotte 5s ease-in-out infinite;
}

.maquette__sticker--1 { top: 2px; left: -8px; background: var(--soleil); transform: rotate(-6deg); }
.maquette__sticker--2 { top: 44%; right: -10px; background: var(--menthe); animation-delay: -1.6s; }
.maquette__sticker--3 { bottom: 0; left: 18%; background: var(--lavande); color: var(--blanc); animation-delay: -3.2s; }

/* Bandeau des services */
.bandeau-services {
    border-block: var(--trait);
    background: var(--blanc);
    padding-block: 18px;
}

.bandeau-services__liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    list-style: none;
}

@media (max-width: 899px) {
    .hero__interieur {
        grid-template-columns: 1fr;
    }

    .maquette {
        max-width: 440px;
        margin-inline: auto;
        width: 100%;
    }
}

@media (max-width: 599px) {
    .hero__actions .bouton {
        width: 100%;
    }

    /* Sur téléphone, les services défilent horizontalement au lieu de prendre tout l'écran */
    .bandeau-services__liste {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding-block: 4px;
    }

    .bandeau-services__liste::-webkit-scrollbar {
        display: none;
    }
}


/* ========== 7. Offres ========== */
/* Cartes en lignes centrées : une carte seule sur la dernière ligne se place au milieu */
.offres {
    --ecart: clamp(20px, 3vw, 32px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ecart);
    align-items: stretch;
}

.offres > .offre {
    flex: 0 1 100%;
}

@media (min-width: 640px) {
    /* 2 cartes par ligne */
    .offres > .offre {
        flex-basis: calc((100% - var(--ecart)) / 2);
    }
}

@media (min-width: 1000px) {
    /* 3 cartes par ligne */
    .offres > .offre {
        flex-basis: calc((100% - 2 * var(--ecart)) / 3);
    }
}

.offre {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    transition: transform var(--transition), box-shadow var(--transition);
}

.offre:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--encre);
}

.offre--corail { --accent: var(--corail); --accent-clair: var(--corail-clair); }
.offre--menthe { --accent: var(--menthe); --accent-clair: var(--menthe-clair); }
.offre--soleil { --accent: var(--soleil); --accent-clair: var(--soleil-clair); }
.offre--lavande { --accent: var(--lavande); --accent-clair: var(--lavande-clair); }

.offre--vedette {
    background: var(--accent-clair);
}

@media (min-width: 1000px) {
    .offres:not(.offres--completes) .offre--vedette {
        transform: translateY(-14px);
    }

    .offres:not(.offres--completes) .offre--vedette:hover {
        transform: translate(-3px, -17px);
    }
}

.offre__badge {
    position: absolute;
    top: -16px;
    right: 22px;
    margin: 0;
    padding: 4px 14px;
    background: var(--soleil);
    border: var(--trait);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    transform: rotate(3deg);
}

.offre__pastille {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    background: var(--accent);
    border: var(--trait);
    border-radius: 16px;
    transform: rotate(-4deg);
}

.offre__pastille .icone {
    width: 28px;
    height: 28px;
}

.offre__titre {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.offre__accroche {
    color: var(--encre-douce);
}

.offre__prix {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 4px;
}

.offre__des {
    font-weight: 700;
    color: var(--encre-douce);
}

.offre__montant {
    font-family: var(--police-titre);
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.offre__delai {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--encre-douce);
}

.offre__description {
    margin-top: 8px;
}

.offre__pourqui {
    padding: 10px 14px;
    background: var(--fond);
    border-radius: var(--rayon-petit);
    font-size: 0.95rem;
}

.offre__inclus {
    flex: 1;
    margin: 10px 0 24px;
    padding: 18px 0 0;
    border-top: 2px dashed rgba(30, 27, 58, 0.25);
    list-style: none;
}

.offre__inclus li {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.offre__inclus .icone {
    margin-top: 1px;
    padding: 2px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--encre);
}

.offre__bouton {
    margin-top: auto;
}


/* ========== 8. Étapes, atouts, services, chiffres ========== */
.etapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: etape;
}

.etape {
    position: relative;
    padding: 28px 24px 24px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
}

.etape__numero {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border: var(--trait);
    border-radius: 50%;
    font-family: var(--police-titre);
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: var(--ombre-petite);
}

.etape:nth-child(4n+1) .etape__numero { background: var(--corail); }
.etape:nth-child(4n+2) .etape__numero { background: var(--soleil); }
.etape:nth-child(4n+3) .etape__numero { background: var(--menthe); }
.etape:nth-child(4n+4) .etape__numero { background: var(--lavande); }

.etape__duree {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--encre-douce);
}

.etape__titre {
    font-size: 1.3rem;
}

.etape__texte {
    margin: 0;
    color: var(--encre-douce);
}

.atouts,
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.atout,
.service {
    padding: 28px 24px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    transition: transform var(--transition), box-shadow var(--transition);
}

.atout:hover,
.service:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--ombre);
}

.atout--corail, .service--corail { --accent: var(--corail-clair); }
.atout--menthe, .service--menthe { --accent: var(--menthe-clair); }
.atout--soleil, .service--soleil { --accent: var(--soleil-clair); }
.atout--lavande, .service--lavande { --accent: var(--lavande-clair); }

.atout__icone,
.service__icone {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    background: var(--accent);
    border: var(--trait);
    border-radius: 50%;
}

.atout__icone .icone,
.service__icone .icone {
    width: 26px;
    height: 26px;
}

.atout__titre,
.service__titre {
    font-size: 1.3rem;
}

.atout__texte,
.service__texte {
    margin: 0;
    color: var(--encre-douce);
}

.chiffres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
    gap: 20px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.chiffre {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--rayon);
}

.chiffre__valeur {
    font-family: var(--police-titre);
    font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--soleil);
}

.chiffre:nth-child(4n+2) .chiffre__valeur { color: var(--menthe); }
.chiffre:nth-child(4n+3) .chiffre__valeur { color: #FF9479; }
.chiffre:nth-child(4n+4) .chiffre__valeur { color: #B7ACFF; }

.chiffre__libelle {
    font-weight: 600;
}

.apropos {
    padding: clamp(28px, 4vw, 48px);
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: 8px 8px 0 var(--lavande);
    font-size: 1.1rem;
}


/* ========== 9. Tarifs : comparatif et options ========== */
.tableau-defilant {
    position: relative; /* garde les textes « lecteur d'écran » à l'intérieur du cadre défilant */
    overflow-x: auto;
    border: var(--trait);
    border-radius: var(--rayon);
    background: var(--blanc);
}

.comparatif {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

.comparatif th,
.comparatif td {
    padding: 14px 16px;
    border-bottom: 1px solid #ECE6DA;
    text-align: center;
}

.comparatif tbody tr:last-child th,
.comparatif tbody tr:last-child td {
    border-bottom: 0;
}

.comparatif tbody tr:hover {
    background: var(--fond);
}

.comparatif th[scope="row"],
.comparatif thead th:first-child {
    text-align: left;
    font-weight: 600;
}

.comparatif thead th {
    position: sticky;
    top: 0;
    background: var(--fond-teinte);
    border-bottom: var(--trait);
    font-family: var(--police-titre);
    font-size: 1.1rem;
    font-weight: 800;
}

.comparatif__offre {
    border-top: 6px solid var(--accent, var(--encre));
}

.comparatif__offre--corail { --accent: var(--corail); }
.comparatif__offre--menthe { --accent: var(--menthe); }
.comparatif__offre--soleil { --accent: var(--soleil); }
.comparatif__offre--lavande { --accent: var(--lavande); }

.comparatif__prix {
    display: block;
    font-family: var(--police-texte);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--encre-douce);
}

.coche {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.coche--oui {
    background: var(--menthe);
    border: 2px solid var(--encre);
}

.coche--non {
    color: #A9A5BC;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon-petit);
}

.option__titre {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.option__texte {
    margin: 0;
    color: var(--encre-douce);
    font-size: 0.95rem;
}

.option__prix {
    flex-shrink: 0;
    margin: 0;
    padding: 4px 12px;
    background: var(--soleil-clair);
    border: var(--trait);
    border-radius: 999px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 599px) {
    .options {
        grid-template-columns: 1fr;
    }
}


/* ========== 10. FAQ ========== */
.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon-petit);
    transition: box-shadow var(--transition);
}

.faq__item[open] {
    box-shadow: var(--ombre-petite);
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    font-family: var(--police-titre);
    font-size: 1.12rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__signe {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    background: var(--soleil-clair);
    border: var(--trait);
    border-radius: 50%;
    transition: transform var(--transition), background var(--transition);
}

.faq__item[open] .faq__signe {
    transform: rotate(45deg);
    background: var(--corail);
}

.faq__reponse {
    padding: 0 20px 6px;
    color: var(--encre-douce);
}

.faq-outils {
    margin-bottom: 24px;
}

.recherche {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: 999px;
    box-shadow: var(--ombre-petite);
}

.recherche:focus-within {
    outline: 3px solid var(--lavande);
    outline-offset: 3px;
}

.recherche__champ {
    flex: 1;
    min-width: 0;
    min-height: 54px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    color: var(--encre);
}

.recherche__champ:focus {
    outline: none;
}

.filtres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.filtre {
    min-height: 40px;
    padding: 6px 16px;
    border: var(--trait);
    border-radius: 999px;
    background: var(--blanc);
    color: var(--encre);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.filtre[aria-pressed="true"] {
    background: var(--encre);
    color: var(--blanc);
}

.faq-vide {
    padding: 32px;
    text-align: center;
    background: var(--blanc);
    border: 2px dashed var(--encre);
    border-radius: var(--rayon);
}


/* ========== 11. Formulaire de devis et estimation ========== */
.message {
    margin-bottom: 24px;
    padding: 16px 20px;
    border: var(--trait);
    border-radius: var(--rayon-petit);
}

.message p:last-child,
.message ul {
    margin-bottom: 0;
}

.message--erreur {
    background: #FFE4E0;
}

.message--succes {
    background: var(--menthe-clair);
}

.message--info {
    background: var(--soleil-clair);
}

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

.progression {
    display: flex;
    gap: 8px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.progression__etape {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid rgba(30, 27, 58, 0.25);
    border-radius: 999px;
    color: var(--encre-douce);
    font-weight: 700;
    font-size: 0.95rem;
}

.progression__etape span {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fond-teinte);
}

.progression__etape--active {
    border-color: var(--encre);
    background: var(--blanc);
    color: var(--encre);
    box-shadow: var(--ombre-petite);
}

.progression__etape--active span {
    background: var(--corail);
}

.progression__etape--faite span {
    background: var(--menthe);
}

.devis__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}

.devis__grille:has(.estimation[hidden]) {
    grid-template-columns: 1fr;
}

.etape-form {
    min-width: 0;
    margin: 0 0 24px;
    padding: clamp(22px, 3vw, 34px);
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
}

.etape-form__titre {
    display: flex;
    align-items: center;
    gap: 12px;
    float: left;
    width: 100%;
    margin-bottom: 22px;
    padding: 0;
    font-family: var(--police-titre);
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Tout ce qui suit le titre (flottant) passe dessous, même si un champ est masqué */
.etape-form > :not(.etape-form__titre) {
    clear: both;
}

.etape-form__num {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--soleil);
    border: var(--trait);
    border-radius: 50%;
    font-size: 1.1rem;
}

.etape-form__sous-titre {
    margin: 28px 0 12px;
    font-family: var(--police-titre);
    font-size: 1.2rem;
    font-weight: 800;
}

.etape-form__sous-titre span {
    font-family: var(--police-texte);
    font-weight: 400;
    font-size: 1rem;
    color: var(--encre-douce);
}

.etape-form__nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.etape-form__nav .bouton:only-child,
.etape-form__nav [hidden] + .bouton {
    margin-left: auto;
}

/* Cartes de choix (formules) */
.choix-offres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 14px;
}

.choix {
    position: relative;
    display: block;
    cursor: pointer;
}

.choix input,
.case-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.choix--corail { --accent: var(--corail); --accent-clair: var(--corail-clair); }
.choix--menthe { --accent: var(--menthe); --accent-clair: var(--menthe-clair); }
.choix--soleil { --accent: var(--soleil); --accent-clair: var(--soleil-clair); }
.choix--lavande { --accent: var(--lavande); --accent-clair: var(--lavande-clair); }
.choix--neutre { --accent: var(--encre-douce); --accent-clair: var(--fond-teinte); }
.choix--question { --accent: var(--soleil); --accent-clair: var(--soleil-clair); }

/* Carte « J'ai juste une question » : bordure en pointillés pour la distinguer des formules */
.choix--question .choix__carte {
    border-style: dashed;
}

.choix--question .choix__titre {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.choix__carte {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 18px;
    border: var(--trait);
    border-radius: var(--rayon-petit);
    background: var(--blanc);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.choix:hover .choix__carte {
    transform: translate(-2px, -2px);
    box-shadow: var(--ombre-petite);
}

.choix input:checked + .choix__carte {
    background: var(--accent-clair);
    box-shadow: inset 0 0 0 2px var(--encre), var(--ombre-petite);
}

.choix input:checked + .choix__carte::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border: var(--trait);
    border-radius: 50%;
    font-weight: 800;
}

.choix input:focus-visible + .choix__carte,
.case-option input:focus-visible + .case-option__carte {
    outline: 3px solid var(--lavande);
    outline-offset: 3px;
}

.choix__titre {
    font-family: var(--police-titre);
    font-size: 1.15rem;
    font-weight: 800;
}

.choix__prix {
    font-weight: 800;
    font-size: 1.25rem;
}

.choix__texte {
    font-size: 0.92rem;
    color: var(--encre-douce);
    line-height: 1.45;
}

/* Cases d'options */
.choix-options {
    display: grid;
    gap: 10px;
}

.case-option {
    display: block;
    cursor: pointer;
}

.case-option__carte {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid rgba(30, 27, 58, 0.3);
    border-radius: var(--rayon-petit);
    background: var(--blanc);
    transition: border-color var(--transition), background var(--transition);
}

.case-option:hover .case-option__carte {
    border-color: var(--encre);
}

.case-option__coche {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: var(--trait);
    border-radius: 8px;
    color: transparent;
    background: var(--blanc);
}

.case-option input:checked + .case-option__carte {
    border-color: var(--encre);
    background: var(--menthe-clair);
}

.case-option input:checked + .case-option__carte .case-option__coche {
    background: var(--menthe);
    color: var(--encre);
}

.case-option__texte {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.case-option__titre {
    font-weight: 700;
}

.case-option__desc {
    font-size: 0.9rem;
    color: var(--encre-douce);
}

.case-option__prix {
    flex-shrink: 0;
    font-weight: 800;
    white-space: nowrap;
}

/* Champs de formulaire (site et admin) */
.champs-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

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

.champ label,
.champ__libelle {
    font-weight: 700;
}

.requis,
.facultatif {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--encre-douce);
}

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: var(--trait);
    border-radius: var(--rayon-petit);
    background: var(--blanc);
    color: var(--encre);
    font: inherit;
}

.champ textarea {
    resize: vertical;
    line-height: 1.5;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    outline: 3px solid var(--lavande);
    outline-offset: 2px;
}

.champ [aria-invalid="true"] {
    border-color: var(--erreur);
    background: #FFF5F3;
}

.champ__aide {
    margin: 0;
    font-size: 0.92rem;
    color: var(--encre-douce);
}

.champ__erreur {
    margin: 0;
    color: var(--erreur);
    font-weight: 700;
    font-size: 0.95rem;
}

.champ__erreur::before {
    content: "⚠ ";
}

.mention-rgpd {
    padding: 14px 16px;
    background: var(--fond);
    border-radius: var(--rayon-petit);
    font-size: 0.9rem;
    color: var(--encre-douce);
}

/* Estimation en direct */
.estimation {
    position: sticky;
    top: 96px;
    padding: 24px;
    background: var(--encre);
    color: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: 6px 6px 0 var(--corail);
}

.estimation__titre {
    margin-bottom: 14px;
    font-family: var(--police-titre);
    font-size: 1.3rem;
    font-weight: 800;
}

.estimation__lignes {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.estimation__lignes li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.estimation__lignes li span:last-child {
    font-weight: 700;
    white-space: nowrap;
}

.estimation__vide {
    color: rgba(255, 255, 255, 0.7);
}

.estimation__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.estimation__libelle {
    font-weight: 700;
}

.estimation__montant {
    font-family: var(--police-titre);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--soleil);
    line-height: 1.1;
}

.estimation__montant--maj {
    animation: rebond 0.35s ease;
}

.estimation__mensuel {
    width: 100%;
    text-align: right;
    font-weight: 700;
    color: var(--menthe);
}

.estimation__note {
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 899px) {
    .devis__grille {
        grid-template-columns: 1fr;
    }

    /* Sur mobile, l'estimation devient une barre collée en bas de l'écran */
    .estimation {
        position: sticky;
        top: auto;
        bottom: 12px;
        order: -1;
        z-index: 20;
        padding: 14px 18px;
        box-shadow: 4px 4px 0 var(--corail);
    }

    .devis__grille {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .estimation__titre,
    .estimation__lignes,
    .estimation__note {
        display: none;
    }

    .estimation__montant {
        font-size: 1.7rem;
    }

    .estimation__mensuel {
        width: auto;
    }

    .progression__etape {
        justify-content: center;
        font-size: 0;
        gap: 0;
    }

    .progression__etape span {
        font-size: 0.95rem;
    }

    .progression__etape--active {
        font-size: 0.9rem;
        gap: 8px;
        flex: 2;
    }
}

@media (max-width: 599px) {
    .champs-duo {
        grid-template-columns: 1fr;
    }

    .case-option__carte {
        flex-wrap: wrap;
    }

    .case-option__prix {
        margin-left: 42px;
    }

    .etape-form__nav .bouton {
        flex: 1;
    }
}


/* ========== 12. Pages légales, 404, remerciement ========== */
.texte-legal {
    padding: clamp(24px, 4vw, 48px);
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
}

.texte-legal h2 {
    margin-top: 1.6em;
    font-size: 1.5rem;
}

.texte-legal h2:first-child {
    margin-top: 0;
}

.texte-legal h3 {
    margin-top: 1.4em;
    font-size: 1.2rem;
}

.texte-legal ul {
    padding-left: 1.3em;
}

.texte-legal li {
    margin-bottom: 0.4em;
}

.texte-legal [id] {
    scroll-margin-top: 100px;
}

#retractation,
#retractation ~ h3 {
    padding: 10px 16px;
    background: var(--soleil-clair);
    border-radius: var(--rayon-petit);
}

.erreur {
    padding-block: clamp(48px, 8vw, 110px);
    text-align: center;
}

.erreur__code {
    margin: 0;
    font-family: var(--police-titre);
    font-size: clamp(6rem, 4rem + 10vw, 11rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--corail);
    -webkit-text-stroke: 3px var(--encre);
    text-shadow: 6px 6px 0 var(--encre);
}

.erreur__code span {
    display: inline-block;
    color: var(--soleil);
    animation: tourne 6s linear infinite;
}

.erreur__titre {
    margin-top: 16px;
    font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
}

.erreur__texte {
    max-width: 32em;
    margin-inline: auto;
    font-size: 1.15rem;
    color: var(--encre-douce);
}

.erreur__liens {
    margin-top: 40px;
}

.erreur__liens ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.merci {
    padding-block: clamp(40px, 7vw, 96px);
}

.merci__carte {
    padding: clamp(28px, 5vw, 56px);
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: 8px 8px 0 var(--menthe);
    text-align: center;
}

.merci__icone {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
    background: var(--menthe);
    border: var(--trait);
    border-radius: 50%;
    animation: rebond 0.6s ease;
}

.merci__icone .icone {
    width: 40px;
    height: 40px;
}

.merci__titre {
    font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem);
}

.recap {
    margin: 28px 0;
    text-align: left;
    background: var(--fond);
    border-radius: var(--rayon-petit);
    padding: 8px 20px;
}

.recap div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(30, 27, 58, 0.2);
}

.recap div:last-child {
    border-bottom: 0;
}

.recap dt {
    font-weight: 700;
}

.recap dd {
    margin: 0;
}


/* ========== 13. Appel final, pied de page, barre mobile ========== */
.appel {
    padding-block: clamp(40px, 6vw, 80px);
}

.appel__carte {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 6vw, 64px);
    background: var(--lavande);
    border: var(--trait);
    border-radius: 32px;
    box-shadow: 10px 10px 0 var(--encre);
    color: var(--blanc);
    text-align: center;
}

.appel__carte::before,
.appel__carte::after {
    content: "";
    position: absolute;
    border: var(--trait);
    border-radius: 50%;
}

.appel__carte::before {
    width: 140px;
    height: 140px;
    top: -50px;
    left: -40px;
    background: var(--soleil);
}

.appel__carte::after {
    width: 100px;
    height: 100px;
    bottom: -40px;
    right: 8%;
    background: var(--menthe);
}

.appel__titre {
    position: relative;
    font-size: clamp(1.9rem, 1.3rem + 3vw, 3.2rem);
    color: var(--blanc);
    text-shadow: 3px 3px 0 var(--encre);
}

.appel__texte {
    position: relative;
    max-width: 34em;
    margin-inline: auto;
    font-size: 1.15rem;
    margin-bottom: 26px;
}

.appel .bouton {
    position: relative;
    z-index: 1;
}

.pied {
    background: var(--encre);
    color: #E8E5F5;
    padding-top: 56px;
}

.pied a,
.pied .lien-bouton {
    color: #FFFFFF;
}

.pied a:hover,
.pied .lien-bouton:hover {
    color: var(--soleil);
}

.pied__grille {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.pied__nom {
    margin-bottom: 4px;
    font-family: var(--police-titre);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blanc);
}

.pied__slogan {
    color: #C9C5DD;
}

.pied__contact,
.pied__colonne ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pied__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.pied__colonne li {
    margin-bottom: 8px;
}

.pied__titre {
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--soleil);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.pied__bas {
    margin: 40px auto 0;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: #C9C5DD;
}

@media (max-width: 899px) {
    .pied__grille {
        grid-template-columns: 1fr 1fr;
    }

    .pied__marque {
        grid-column: 1 / -1;
    }
}

@media (max-width: 479px) {
    .pied__grille {
        grid-template-columns: 1fr;
    }
}

.barre-mobile {
    display: none;
}

@media (max-width: 899px) {
    .barre-mobile {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: block;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 248, 238, 0.95);
        border-top: var(--trait);
        transform: translateY(110%);
        transition: transform 0.3s ease;
    }

    .barre-mobile--visible {
        transform: translateY(0);
    }

    body:has(.barre-mobile) .pied {
        padding-bottom: 80px;
    }
}


/* ========== 14. Bandeau cookies ========== */
.cookies {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 60;
    width: min(440px, calc(100% - 32px));
    padding: 22px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
    animation: apparition 0.3s ease;
}

.cookies__titre {
    margin-bottom: 6px;
    font-family: var(--police-titre);
    font-size: 1.2rem;
    font-weight: 800;
}

.cookies__texte {
    font-size: 0.93rem;
    color: var(--encre-douce);
}

/* « Tout accepter » et « Tout refuser » strictement au même niveau (règle CNIL) */
.cookies__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}


/* ========== 15. Espace admin ========== */
.admin {
    background: #F7F3EC;
}

.admin-entete {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px var(--gouttiere);
    background: var(--encre);
    color: var(--blanc);
}

.admin-entete .logo {
    color: var(--blanc);
    font-size: 1.1rem;
}

.admin-entete__sous-titre {
    font-family: var(--police-texte);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--soleil);
}

.admin-entete__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-entete__actions form {
    margin: 0;
}

.admin-cadre {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: calc(100vh - 64px);
}

.admin-nav {
    padding: 20px 14px;
    background: var(--blanc);
    border-right: var(--trait);
}

.admin-nav ul {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-nav__groupe {
    margin: 14px 12px 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--encre-douce);
}

.admin-nav__lien {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

.admin-nav__lien:hover {
    background: var(--fond-teinte);
    color: var(--encre);
}

.admin-nav__lien[aria-current="page"] {
    background: var(--soleil-clair);
    box-shadow: inset 0 0 0 2px var(--encre);
}

.pastille {
    min-width: 24px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--corail);
    border: 2px solid var(--encre);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.admin-contenu {
    padding: clamp(20px, 3vw, 40px);
    min-width: 0;
}

.admin-titre {
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
}

.admin-aide {
    max-width: 52em;
    color: var(--encre-douce);
}

.admin-carte {
    margin-bottom: 24px;
    padding: clamp(18px, 2.5vw, 28px);
    background: var(--blanc);
    border: var(--trait);
    border-radius: 18px;
}

.admin-carte__titre {
    font-size: 1.3rem;
}

.admin-barre {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.tuiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.tuile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: 18px;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.tuile:hover {
    color: var(--encre);
    transform: translate(-2px, -2px);
    box-shadow: var(--ombre-petite);
}

.tuile__nombre {
    font-family: var(--police-titre);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.tuile--corail { background: var(--corail-clair); }
.tuile--menthe { background: var(--menthe-clair); }
.tuile--soleil { background: var(--soleil-clair); }
.tuile--lavande { background: var(--lavande-clair); }

.table-admin-cadre {
    position: relative;
    overflow-x: auto;
    background: var(--blanc);
    border: var(--trait);
    border-radius: 18px;
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.97rem;
}

.table-admin th,
.table-admin td {
    padding: 12px 14px;
    border-bottom: 1px solid #ECE6DA;
    text-align: left;
    vertical-align: middle;
}

.table-admin thead th {
    background: var(--fond-teinte);
    border-bottom: var(--trait);
    font-weight: 800;
    white-space: nowrap;
}

.table-admin tbody tr:hover {
    background: var(--fond);
}

.table-admin__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.table-admin__actions form {
    margin: 0;
}

.table-admin .inactif {
    opacity: 0.55;
}

.etiquette {
    display: inline-block;
    padding: 2px 10px;
    border: 2px solid var(--encre);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--blanc);
}

.etiquette--nouveau { background: var(--corail); }
.etiquette--en_cours { background: var(--soleil); }
.etiquette--envoye { background: var(--lavande-clair); }
.etiquette--accepte { background: var(--menthe); }
.etiquette--refuse { background: #E2E0EA; }
.etiquette--devis { background: var(--lavande-clair); }
.etiquette--question { background: var(--soleil-clair); }
.etiquette--oui { background: var(--menthe-clair); }
.etiquette--non { background: #E2E0EA; }

.formulaire-admin {
    max-width: 860px;
}

.case {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-weight: 700;
    cursor: pointer;
}

.case input {
    width: 22px;
    height: 22px;
    accent-color: var(--encre);
}

.choix-icones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(110px, 100%), 1fr));
    gap: 8px;
}

.choix-icones label {
    position: relative;
    cursor: pointer;
}

.choix-icones input {
    position: absolute;
    opacity: 0;
}

.choix-icones span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 2px solid #D9D3C7;
    border-radius: 12px;
    font-size: 0.78rem;
    text-align: center;
    background: var(--blanc);
}

.choix-icones .icone {
    width: 26px;
    height: 26px;
}

.choix-icones input:checked + span {
    border-color: var(--encre);
    background: var(--soleil-clair);
    box-shadow: var(--ombre-petite);
}

.choix-icones input:focus-visible + span {
    outline: 3px solid var(--lavande);
    outline-offset: 2px;
}

.apercu-image {
    max-width: 240px;
    max-height: 120px;
    padding: 6px;
    border: 2px dashed #D9D3C7;
    border-radius: 10px;
    background: var(--blanc);
    object-fit: contain;
}

.detail-devis {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 0;
    margin: 0;
}

.detail-devis dt,
.detail-devis dd {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #ECE6DA;
}

.detail-devis dt {
    font-weight: 700;
}

.detail-devis dd {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.filtres-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filtres-admin a {
    padding: 6px 14px;
    border: 2px solid var(--encre);
    border-radius: 999px;
    background: var(--blanc);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.93rem;
}

.filtres-admin a[aria-current="true"] {
    background: var(--encre);
    color: var(--blanc);
}

.groupe-textes {
    margin-bottom: 28px;
}

.connexion {
    max-width: 440px;
    margin: clamp(40px, 12vh, 120px) auto;
    padding: 36px;
    background: var(--blanc);
    border: var(--trait);
    border-radius: var(--rayon);
    box-shadow: var(--ombre);
}

.connexion__titre {
    font-size: 2rem;
}

.connexion__retour {
    margin: 20px 0 0;
    text-align: center;
}

.vide {
    padding: 28px;
    text-align: center;
    color: var(--encre-douce);
    border: 2px dashed #D9D3C7;
    border-radius: 18px;
}

@media (max-width: 899px) {
    .admin-cadre {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-nav {
        min-width: 0;
        border-right: 0;
        border-bottom: var(--trait);
        padding: 10px var(--gouttiere);
    }

    .admin-nav ul {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
    }

    .admin-nav__groupe {
        display: none;
    }

    .admin-nav__lien {
        white-space: nowrap;
        border: 2px solid #D9D3C7;
    }

    .detail-devis {
        grid-template-columns: 1fr;
    }

    .detail-devis dt {
        padding-bottom: 0;
        border-bottom: 0;
    }
}


/* ========== 16. Animations et préférences ========== */
@keyframes apparition {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes flotte {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

@keyframes construction {
    0%, 100% { width: 75%; }
    50% { width: 55%; }
}

@keyframes rebond {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes tourne {
    to { transform: rotate(360deg); }
}

/* Apparition douce des blocs au défilement (activée par script.js) */
.js .revele {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .revele--visible {
    opacity: 1;
    transform: none;
}

/* Léger décalage entre les blocs d’une même rangée */
.js .revele--d1 { transition-delay: 80ms; }
.js .revele--d2 { transition-delay: 160ms; }

/* Respect du réglage « réduire les animations » du système */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .js .revele {
        opacity: 1;
        transform: none;
    }
}

/* Impression : uniquement le contenu utile (pages légales, CGV…) */
@media print {
    .entete, .pied, .barre-mobile, .cookies, .appel {
        display: none !important;
    }

    body {
        background: #FFFFFF;
    }
}


/* ========== 17. Garde-fous petits écrans et grands textes ==========
   Évite que le texte sorte d'un bloc coloré quand l'écran est étroit
   ou quand le téléphone affiche les textes en plus grand (réglage d'accessibilité). */

/* Un mot trop long (adresse e-mail, lien…) passe à la ligne au lieu de dépasser */
body {
    overflow-wrap: break-word;
}

.texte-legal,
.pied__contact,
.detail-devis dd,
.recap dd,
.case-option__texte,
.choix__carte {
    overflow-wrap: anywhere;
}

/* Les éléments dans une ligne flexible peuvent rétrécir */
.option > div,
.case-option__texte,
.choix__carte,
.faq__question > span:first-child,
.estimation__lignes li span:first-child {
    min-width: 0;
}

/* Boutons : le texte revient à la ligne plutôt que de dépasser la pilule */
.bouton {
    max-width: 100%;
}

/* Bandeau cookies : les deux boutons s'empilent s'il n'y a pas la place côte à côte */
.cookies__actions {
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
}

.cookies__actions .bouton {
    padding-inline: 14px;
}

/* La coche de la formule choisie reste à l'intérieur de la carte */
.choix input:checked + .choix__carte::after {
    top: 8px;
    right: 8px;
}

.choix__carte {
    padding-right: 44px;
}

@media (max-width: 479px) {
    /* Prix des options : sous le texte plutôt qu'à côté */
    .option {
        flex-direction: column;
        gap: 10px;
    }

    /* Les pastilles de texte peuvent passer à la ligne (sauf le bandeau des services, qui défile) */
    .puce:not(.bandeau-services__liste .puce),
    .option__prix,
    .offre__badge {
        white-space: normal;
    }

    .offre__montant {
        font-size: 2.3rem;
    }

    .estimation__montant {
        font-size: 1.5rem;
    }
}

/* Option du devis : le texte garde au moins 160 px, sinon le prix passe dessous */
.case-option__texte {
    flex: 1 1 160px;
}
