/* ==================================================================
   Ecorenov Group — feuille de style principale
   1. Jetons de design      5. Header
   2. Reset & base          6. Composants
   3. Mise en page          7. Sections de la page d'accueil
   4. Éléments réutilisables 8. Footer
   ================================================================== */

/* ------------------------------------------------------------------
   0. POLICE DE MARQUE — Montserrat (celle du logo)
   Auto-hébergée : aucune requête vers Google, conforme RGPD.
   Fichier variable, graisses 400 à 800 dans un seul fichier.
   Licence SIL Open Font 1.1 — voir /assets/fonts/OFL.txt
   ------------------------------------------------------------------ */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/assets/fonts/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------
   1. JETONS DE DESIGN
   ------------------------------------------------------------------ */
:root {
    /* Couleurs de marque */
    --bleu:            #0151a1;
    --bleu-fonce:      #013a74;
    --bleu-nuit:       #062744;
    --bleu-clair:      #e8f1fa;
    --teal:            #019f99;
    --teal-fonce:      #017a75;
    --teal-clair:      #e5f6f5;
    --ambre:           #f1ab02;
    --ambre-clair:     #fdf3da;

    /* Neutres */
    --blanc:           #ffffff;
    --gris-050:        #f7f9fb;
    --gris-100:        #eef2f6;
    --gris-200:        #dde4ec;
    --gris-400:        #9aa8b8;
    --gris-600:        #5b6a7d;
    --gris-800:        #2b3846;

    /* Rôles */
    --texte:           var(--gris-800);
    --texte-doux:      var(--gris-600);
    --fond:            var(--blanc);
    --fond-alt:        var(--gris-050);
    --bordure:         var(--gris-200);

    /* Typographie
       --police-titre : Montserrat, la police du logo — titres et éléments d'interface.
       --police       : pile système — texte courant, pour la lisibilité aux petites tailles
                        et zéro octet à télécharger. */
    --police-titre: 'Montserrat', "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    --police: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --pas: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);

    /* Rythme */
    --largeur: 1200px;
    --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(3.5rem, 7vw, 6rem);

    /* Formes */
    --r-s: 8px;
    --r-m: 14px;
    --r-l: 22px;
    --ombre-s: 0 1px 2px rgba(6, 39, 68, .06), 0 2px 8px rgba(6, 39, 68, .05);
    --ombre-m: 0 4px 12px rgba(6, 39, 68, .07), 0 12px 32px rgba(6, 39, 68, .08);
    --ombre-l: 0 12px 28px rgba(6, 39, 68, .10), 0 32px 64px rgba(6, 39, 68, .10);

    --transition: 180ms cubic-bezier(.4, 0, .2, 1);
    --header-h: 76px;
}

/* ------------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--police);
    font-size: var(--pas);
    line-height: 1.65;
    color: var(--texte);
    background: var(--fond);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    font-family: var(--police-titre);
    line-height: 1.16;
    color: var(--bleu-nuit);
    font-weight: 700;
    /* Montserrat est large : on resserre d'autant plus que le corps est grand. */
    letter-spacing: -.022em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.35rem + 3.1vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .65vw, 1.5rem); }
h4 { font-size: 1.0625rem; }

p  { margin: 0 0 1.15em; }
p:last-child, ul:last-child { margin-bottom: 0; }

a { color: var(--bleu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-fonce); }

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

ul, ol { padding-left: 1.15em; }
li { margin-bottom: .4em; }

strong { color: var(--bleu-nuit); font-weight: 650; }

/* Éléments d'interface qui reprennent la police du logo, pour lier
   la marque au reste de la page sans alourdir le texte courant. */
.surtitre,
.btn,
.nav__lien,
.sous-menu a,
.lien-fleche,
.chiffre__valeur,
.etape__num,
.solution__tag,
.faq summary,
.zones li,
.avis figcaption strong {
    font-family: var(--police-titre);
}

:focus-visible {
    outline: 3px solid var(--ambre);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ------------------------------------------------------------------
   3. MISE EN PAGE
   ------------------------------------------------------------------ */
.conteneur {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--gouttiere);
}

.section { padding-block: var(--section-y); }
.section--alt { background: var(--fond-alt); }
.section--bleu {
    background: linear-gradient(160deg, var(--bleu-nuit) 0%, var(--bleu) 100%);
    color: #d9e6f3;
}
.section--bleu h2, .section--bleu h3 { color: var(--blanc); }

.grille { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grille--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grille--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grille--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* Deux colonnes strictes : auto-fit en donnerait trois sur grand écran et
   laisserait une carte seule sur la seconde ligne. */
.grille--paire { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grille--paire { grid-template-columns: 1fr; } }

/* Grille dont la dernière ligne incomplète reste centrée au lieu d'être
   collée à gauche. La grille CSS ne sait pas le faire : on passe donc en
   flex, en bridant la largeur des cartes pour retrouver exactement les
   mêmes colonnes qu'une grille à quatre, trois puis deux colonnes. */
.grille--centree {
    --gouttiere-grille: clamp(1.25rem, 2.5vw, 2rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.grille--centree > * {
    flex: 1 1 220px;
    max-width: calc((100% - 3 * var(--gouttiere-grille)) / 4);
}
@media (max-width: 1000px) {
    .grille--centree > * { max-width: calc((100% - 2 * var(--gouttiere-grille)) / 3); }
}
@media (max-width: 760px) {
    .grille--centree > * { max-width: calc((100% - var(--gouttiere-grille)) / 2); }
}
@media (max-width: 520px) {
    .grille--centree > * { max-width: 100%; }
}

.saut-contenu {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--bleu);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 200;
    border-radius: 0 0 var(--r-s) 0;
}
.saut-contenu:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------------
   4. ÉLÉMENTS RÉUTILISABLES
   ------------------------------------------------------------------ */

/* --- Chapeau de section --- */
.entete-section { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.entete-section p { color: var(--texte-doux); font-size: 1.075em; margin-bottom: 0; }

.surtitre {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--teal-fonce);
    margin-bottom: .9rem;
}
.surtitre::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--ambre);
    border-radius: 2px;
}
.entete-section--centre .surtitre::after {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--ambre);
    border-radius: 2px;
}
.section--bleu .surtitre { color: var(--ambre); }

/* --- Boutons --- */
.btn {
    --btn-fond: var(--bleu);
    --btn-texte: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    background: var(--btn-fond);
    color: var(--btn-texte);
    font-size: .9688rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover {
    color: var(--btn-texte);
    transform: translateY(-2px);
    box-shadow: var(--ombre-m);
}
.btn:active { transform: translateY(0); }

.btn--ambre  { --btn-fond: var(--ambre); --btn-texte: var(--bleu-nuit); }
.btn--teal   { --btn-fond: var(--teal); }
.btn--fantome {
    background: transparent;
    border-color: currentColor;
    --btn-texte: var(--bleu);
}
/* Sur fond sombre, le bleu par défaut serait illisible : partout où le
   bouton fantôme se pose sur un aplat de marque, il repasse en blanc. */
.section--bleu .btn--fantome,
.hero .btn--fantome,
.cta-final .btn--fantome { --btn-texte: #fff; }
.btn--large { padding: 1rem 2rem; font-size: 1.03rem; }

.groupe-btn { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Lien fléché --- */
.lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 650;
    font-size: .9375rem;
    text-decoration: none;
    color: var(--bleu);
}
.lien-fleche::after {
    content: "→";
    transition: transform var(--transition);
}
.lien-fleche:hover::after { transform: translateX(4px); }

/* --- Cartes --- */
.carte {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    padding: clamp(1.4rem, 2.4vw, 1.85rem);
    box-shadow: var(--ombre-s);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Titres de cartes : un cran sous l'échelle générique des h3, quelle que
   soit la variante de carte. */
.carte h3 {
    font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem);
    letter-spacing: -.012em;
    margin-bottom: .5rem;
}
.carte p  { color: var(--texte-doux); font-size: .9688rem; }
.carte > .media { margin-bottom: 1rem; border-radius: var(--r-s); }

/* Carte centrée, illustration au-dessus du titre. */
.carte--centre { text-align: center; }
.carte--centre .picto { margin-inline: auto; }
/* Carte centrée cliquable : le lien fléché se cale en bas, quelle que
   soit la longueur du texte, pour que les cartes restent alignées. */
.carte--centre .lien-fleche {
    justify-content: center;
    margin-top: auto;
    padding-top: 1rem;
}
/* Variantes de taille d'illustration. La spécificité à deux classes
   l'emporte aussi sur la règle mobile : le format reste constant. */
.carte--illustration-xl .picto { width: 150px; height: 150px; }
.carte--illustration-md .picto { width: 130px; height: 130px; }

/* Page Contact : illustrations volontairement plus discrètes, les blocs
   de coordonnées ne devant pas concurrencer le formulaire. La spécificité
   à deux classes l'emporte aussi sur la règle mobile. */
.page-contact .picto { width: 100px; height: 100px; }

a.carte, .carte--lien { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.carte:hover, .carte--lien:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombre-m);
    border-color: var(--teal);
    color: inherit;
}

/* --- Emplacements médias réservés --- */
.media {
    margin: 0;
    aspect-ratio: var(--ratio, 16 / 9);
    border-radius: var(--r-m);
    overflow: hidden;
    background: var(--gris-100);
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Schémas et infographies : jamais recadrés, sous peine de perdre une
   légende ou une flèche. Aucun cadre ni fond propre — le fond gris hérité
   de .media dépasserait sur les côtés dès que l'image ne le remplit pas. */
.media--schema {
    background: transparent;
    border: 0;
    padding: 0;
}
/* Exception : l'arrondi est porté par l'image elle-même. Les schémas ayant
   leur propre fond clair, un angle vif trancherait sur celui de la section. */
.media--schema img {
    object-fit: contain;
    border-radius: var(--r-l);
}

.media__vide {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.25rem;
    text-align: center;
    background:
        repeating-linear-gradient(135deg,
            var(--gris-050) 0 12px,
            var(--gris-100) 12px 24px);
    border: 2px dashed var(--gris-400);
    border-radius: inherit;
    color: var(--texte-doux);
}
.media__cle {
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .75rem;
    font-weight: 600;
    color: var(--bleu);
    background: var(--blanc);
    padding: .2rem .55rem;
    border-radius: 4px;
    border: 1px solid var(--bordure);
    word-break: break-all;
}
.media__desc { font-size: .8125rem; line-height: 1.45; max-width: 32ch; }

/* --- Pictogrammes et illustrations --- */
.picto {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    border-radius: var(--r-s);
    margin-bottom: 1rem;
}
/* Illustrations au trait : elles ont besoin de place pour rester lisibles,
   et se passent de cartouche coloré derrière elles. */
.picto img { width: 100%; height: 100%; object-fit: contain; }
.picto--vide {
    width: 54px;
    height: 54px;
    border: 2px dashed var(--teal);
    background: var(--teal-clair);
}
.picto--vide::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: repeating-linear-gradient(135deg, var(--teal) 0 3px, transparent 3px 6px);
    opacity: .5;
}

/* ------------------------------------------------------------------
   5. HEADER
   ------------------------------------------------------------------ */
.barre-info {
    position: relative;
    z-index: 100;
    background: var(--bleu-nuit);
    color: #b9cde2;
    font-size: .8125rem;
}
.barre-info .conteneur {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Ne reste que le bloc de contact : il se cale à droite. */
    justify-content: flex-end;
    gap: .5rem 1.5rem;
    min-height: 40px;
    padding-block: .35rem;
}
@media (max-width: 760px) {
    .barre-info .conteneur { justify-content: center; }
    .barre-info__liste { justify-content: center; }
}
.barre-info__liste { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.barre-info a { color: #d9e6f3; text-decoration: none; }
.barre-info a:hover { color: var(--ambre); }
.barre-info__sep { color: var(--ambre); }

.entete {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bordure);
    transition: box-shadow var(--transition);
}
.entete.est-collee { box-shadow: var(--ombre-m); }

.entete__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
    padding-block: .6rem;
}

.logo { flex: 0 0 auto; display: block; }
.logo img { width: clamp(170px, 20vw, 215px); height: auto; }

/* --- Navigation --- */
.nav { margin-left: auto; }
.nav__liste {
    display: flex;
    align-items: center;
    gap: .15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__item { position: relative; margin: 0; }

.nav__lien {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .6rem .78rem;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--gris-800);
    text-decoration: none;
    border-radius: var(--r-s);
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}
.nav__lien:hover,
.nav__item:focus-within > .nav__lien { color: var(--bleu); background: var(--bleu-clair); }
.nav__lien[aria-current="page"],
.nav__item--actif > .nav__lien { color: var(--bleu); }
.nav__item--actif > .nav__lien::after {
    content: "";
    position: absolute;
    left: .78rem;
    right: .78rem;
    bottom: .18rem;
    height: 2px;
    border-radius: 2px;
    background: var(--ambre);
}
.nav__chevron { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .65; }

/* Sous-menu bureau */
.sous-menu {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    min-width: 268px;
    list-style: none;
    margin: 0;
    padding: .5rem;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    box-shadow: var(--ombre-l);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__item:hover > .sous-menu,
.nav__item:focus-within > .sous-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sous-menu li { margin: 0; }
.sous-menu a {
    display: block;
    padding: .55rem .8rem;
    font-size: .9063rem;
    font-weight: 550;
    color: var(--gris-800);
    text-decoration: none;
    border-radius: var(--r-s);
    transition: background var(--transition), color var(--transition);
}
.sous-menu a:hover,
.sous-menu a[aria-current="page"] {
    background: var(--bleu-clair);
    color: var(--bleu);
}

.entete__actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }

/* --- Bouton burger --- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    background: var(--bleu-clair);
    border: none;
    border-radius: var(--r-s);
    cursor: pointer;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--bleu);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Bascule mobile --- */
@media (max-width: 1280px) {
    .burger { display: flex; }
    .entete__actions .btn { display: none; }

    /* backdrop-filter crée un bloc conteneur pour les descendants en
       position fixed. Le panneau de navigation se retrouvait alors confiné
       à la hauteur du header, poussé hors écran vers la droite : menu
       inopérant et débordement horizontal de toute la page. */
    .entete {
        backdrop-filter: none;
        background: var(--blanc);
    }

    .nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(400px, 90vw);
        margin: 0;
        padding: 1.25rem 1.25rem 3rem;
        background: var(--blanc);
        border-left: 1px solid var(--bordure);
        box-shadow: var(--ombre-l);
        overflow-y: auto;
        /* Retiré du flux tant qu'il est fermé : ses liens ne peuvent pas
           recevoir le focus au clavier et il ne crée aucun débordement. */
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 240ms cubic-bezier(.4, 0, .2, 1), visibility 240ms;
        z-index: 120;
    }
    .nav.est-ouverte { visibility: visible; transform: translateX(0); }

    .nav__liste { flex-direction: column; align-items: stretch; gap: .1rem; padding-top: 3.5rem; }
    .nav__item { width: 100%; }
    .nav__lien {
        justify-content: space-between;
        padding: .85rem .75rem;
        font-size: 1.0625rem;
        border-bottom: 1px solid var(--gris-100);
        border-radius: 0;
    }
    .nav__item--actif > .nav__lien::after { display: none; }
    .nav__chevron { transform: rotate(45deg); transition: transform var(--transition); }
    .nav__item.est-deployee .nav__chevron { transform: rotate(-135deg); }

    .sous-menu {
        position: static;
        min-width: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: .25rem 0 .5rem .75rem;
        display: none;
        background: var(--gris-050);
    }
    .nav__item.est-deployee > .sous-menu { display: block; }

    .nav__cta { margin-top: 1.5rem; display: grid; gap: .6rem; }
    .nav__cta .btn { width: 100%; }
}

@media (min-width: 1281px) {
    .nav__cta { display: none; }
}

/* Le header étant en position sticky avec un z-index, il forme son propre
   contexte d'empilement : le panneau qu'il contient ne peut pas passer
   au-dessus d'un élément plus haut que le header lui-même. Le voile doit
   donc rester sous le header, dont il assombrit le contenu de page. */
.voile {
    position: fixed;
    inset: 0;
    background: rgba(6, 39, 68, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 90;
}
.voile.est-visible { opacity: 1; visibility: visible; }

.nav__fermer {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bleu-nuit);
    background: var(--gris-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}
@media (max-width: 1280px) { .nav__fermer { display: block; } }

/* ------------------------------------------------------------------
   6. FOOTER
   ------------------------------------------------------------------ */
.pied {
    background: var(--bleu-nuit);
    color: #a9c0d6;
    font-size: .9375rem;
    padding-top: clamp(3rem, 5vw, 4.5rem);
}
.pied h4 {
    color: var(--blanc);
    font-size: .875rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}
.pied a { color: #a9c0d6; text-decoration: none; transition: color var(--transition); }
.pied a:hover { color: var(--ambre); }

.pied__grille {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(1.75rem, 3.5vw, 3rem);
    padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
@media (max-width: 900px)  { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .pied__grille { grid-template-columns: 1fr; } }

/* Logo monochrome blanc : il se pose directement sur le bleu nuit, sans
   le cartouche blanc qu'exigeait la version couleur. */
.pied__logo {
    display: block;
    margin-bottom: 1.25rem;
}
.pied__logo img { width: 210px; }

.pied__liste { list-style: none; margin: 0; padding: 0; }
.pied__liste li { margin-bottom: .55rem; }

.pied__contact { list-style: none; margin: 0; padding: 0; }
.pied__contact li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: .6rem;
    margin-bottom: .85rem;
    align-items: start;
}
.pied__puce {
    width: 8px;
    height: 8px;
    margin-top: .55rem;
    border-radius: 2px;
    background: var(--teal);
}

.pied__horaires { width: 100%; border-collapse: collapse; }
.pied__horaires th,
.pied__horaires td {
    text-align: left;
    font-weight: 400;
    padding: .28rem 0;
    vertical-align: top;
}
.pied__horaires td { color: var(--blanc); text-align: right; }

.pied__bas {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-block: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    font-size: .8438rem;
}
.pied__legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.pied__legal li { margin: 0; }

.reseaux { display: flex; gap: .5rem; margin-top: 1.2rem; }
.reseaux a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: .75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    transition: background var(--transition), border-color var(--transition);
}
.reseaux a:hover { background: var(--teal); border-color: var(--teal); color: var(--blanc); }

/* ------------------------------------------------------------------
   7. SECTIONS DE LA PAGE D'ACCUEIL
   ------------------------------------------------------------------ */

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(155deg, var(--bleu-nuit) 0%, var(--bleu) 55%, var(--teal-fonce) 140%);
    color: #dce8f4;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(241, 171, 2, .18) 0%, transparent 62%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(3.25rem, 7vw, 5.75rem);
}
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; } }

/* Le halo ambré est calé en haut à droite : sur deux colonnes il se pose
   derrière l'image, mais sur une seule il vient exactement derrière la
   signature et le titre, où il se lit comme une ombre sale. On le retire. */
@media (max-width: 900px) { .hero::after { display: none; } }

/* Sur deux colonnes, l'image est plus haute que le bloc de texte : centrer
   les colonnes laisserait un vide sous les boutons, juste au-dessus du filet.
   On étire donc l'image à la hauteur exacte du texte. */
@media (min-width: 901px) {
    .hero__inner { align-items: stretch; }
    .hero__inner > div:nth-of-type(2) { display: grid; }
    .hero__inner > div:nth-of-type(2) .media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 330px;
    }
}

/* Signature de marque, au-dessus du titre. */
.hero__signature {
    font-family: var(--police-titre);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ambre);
    margin-bottom: .9rem;
}

.hero h1 {
    /* Un cran sous le h1 générique : le titre reste dominant sans écraser
       le chapeau ni pousser les boutons sous la ligne de flottaison. */
    font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.7rem);
    color: var(--blanc);
    margin-bottom: .55em;
}

/* Accès secondaire, orienté professionnels. */
.hero__b2b { margin: 1.15rem 0 0; }
.hero .lien-fleche { color: var(--ambre); }
.hero .lien-fleche:hover { color: var(--blanc); }
.hero h1 em { font-style: normal; color: var(--ambre); }
.hero__chapo {
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    max-width: 34rem;
    margin-bottom: 1.9rem;
}
.hero .groupe-btn { margin-bottom: 0; }
/* Sur desktop, la colonne de texte est assez large pour tenir les deux
   boutons côte à côte : on interdit le retour à la ligne et on resserre
   légèrement leur remplissage pour garder de la marge. En dessous, le
   hero passe sur une seule colonne et l'empilement redevient normal. */
@media (min-width: 1100px) {
    .hero .groupe-btn { flex-wrap: nowrap; }
    .hero .groupe-btn .btn {
        white-space: nowrap;
        padding-inline: 1.75rem;
    }
}

/* Bandeau d'arguments : traverse toute la largeur du hero, sous le texte
   ET sous l'image, en répartissant les items à parts égales. */
.hero__preuves {
    grid-column: 1 / -1;
    display: grid;
    /* Six savoir-faire : la largeur minimale permet de les aligner sur une
       seule ligne en grand écran, puis de replier proprement. */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: .6rem;
    list-style: none;
    margin: clamp(.5rem, .9vw, .7rem) 0 0;
    padding: clamp(.95rem, 1.7vw, 1.25rem) 0 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__preuves li {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    padding: .6rem 1rem .6rem .85rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--blanc);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 100px;
}
.hero__preuves li::before { flex: 0 0 auto; }
.hero__preuves li::before {
    content: "✓";
    color: var(--ambre);
    font-weight: 700;
}

.hero .media { box-shadow: var(--ombre-l); }
.hero .media__vide { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .45); color: #cfe0f0; }
.hero .media__cle { background: rgba(255, 255, 255, .92); border-color: transparent; }

/* --- Bandeau de tête des pages intérieures --- */
.page-entete {
    position: relative;
    background: linear-gradient(150deg, var(--bleu-nuit) 0%, var(--bleu) 70%, var(--teal-fonce) 160%);
    color: #cfe0f0;
    overflow: hidden;
    padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 4rem);
}
.page-entete::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(241, 171, 2, .16) 0%, transparent 62%);
    pointer-events: none;
}
.page-entete .conteneur { position: relative; z-index: 1; }
.page-entete .surtitre { color: var(--ambre); }
/* Titre et chapeau occupent toute la largeur du conteneur. */
/* Ne concerne que les pages intérieures : le titre de la page d'accueil
   relève de .hero h1 et garde sa propre échelle. */
.page-entete h1 {
    font-size: clamp(1.4rem, 1.05rem + 1.45vw, 2rem);
    color: var(--blanc);
    margin-bottom: .5em;
}
.page-entete h1 em { font-style: normal; color: var(--ambre); }
.page-entete__chapo {
    font-size: clamp(1rem, .96rem + .3vw, 1.1875rem);
    margin: 0;
}

/* --- Fil d'Ariane --- */
.fil-ariane { margin-bottom: clamp(1.25rem, 3vw, 2rem); font-size: .8125rem; }
.fil-ariane ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fil-ariane li { display: flex; align-items: center; gap: .55rem; margin: 0; }
.fil-ariane li + li::before {
    content: "›";
    color: var(--ambre);
    font-size: 1rem;
    line-height: 1;
}
.fil-ariane a { color: #b9cde2; text-decoration: none; }
.fil-ariane a:hover { color: var(--blanc); text-decoration: underline; }
.fil-ariane [aria-current="page"] { color: var(--blanc); font-weight: 600; }

@media (max-width: 760px) {
    .page-entete { text-align: center; }
    .page-entete h1 { margin-inline: auto; }
    .page-entete__chapo { margin-inline: auto; }
    .fil-ariane ol { justify-content: center; }
}

/* --- Bandeau piliers --- */
/* Le bandeau chevauche le bas du hero sur grand écran. */
.piliers { margin-top: -3.25rem; position: relative; z-index: 5; }
@media (max-width: 900px) {
    /* Une colonne : le chevauchement collerait les cartes au hero. */
    .piliers { margin-top: clamp(1.75rem, 5vw, 2.5rem); }
}
.piliers__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1px;
    background: var(--bordure);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    overflow: hidden;
    box-shadow: var(--ombre-m);
}
.pilier {
    background: var(--blanc);
    padding: clamp(1.4rem, 2.4vw, 1.75rem);
}
.pilier .picto { width: 150px; height: 150px; margin-bottom: .85rem; }
.pilier .picto--vide { width: 44px; height: 44px; }
.pilier h3 { font-size: 1.0625rem; margin-bottom: .35rem; }
.pilier p { font-size: .9063rem; color: var(--texte-doux); margin: 0; }

/* --- Solutions --- */
.solution { position: relative; overflow: hidden; }
.solution .media { margin-bottom: 1.15rem; border-radius: var(--r-s); }
/* Titres de cartes : un cran sous le h3 générique. */
.solution h3 {
    font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem);
    letter-spacing: -.012em;
    margin-bottom: .5rem;
}
.solution .media { margin-bottom: 1rem; }
.solution .lien-fleche { margin-top: auto; padding-top: 1rem; }

/* --- Chiffres --- */
.chiffres__grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
}
.chiffre__valeur {
    display: block;
    font-size: clamp(2.4rem, 1.6rem + 3vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    color: var(--blanc);
    letter-spacing: -.03em;
}
.chiffre__valeur span { color: var(--ambre); }
.chiffre__label {
    display: block;
    margin-top: .7rem;
    font-size: .9375rem;
    color: #b9cde2;
}

/* --- Méthode / étapes --- */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 760px) {
    .etapes { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.etape {
    position: relative;
    margin: 0;
    padding: 2rem 1.35rem 1.5rem;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    text-align: center;
}
.etape__num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: .9375rem;
    font-weight: 800;
    color: var(--blanc);
    background: var(--bleu);
    border: 3px solid var(--fond-alt);
    border-radius: 50%;
}
.etape h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.etape p { font-size: .9063rem; color: var(--texte-doux); margin: 0; }

/* --- Bloc texte + média --- */
.duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
.duo--inverse .duo__media { order: -1; }
@media (max-width: 900px) { .duo--inverse .duo__media { order: 0; } }

/* Colonnes de même hauteur, alignées en haut : indispensable dès que les
   deux colonnes sont des cartes, sinon leurs cadres se décalent. */
.duo--egal { align-items: stretch; }

/* Boutons d'action traversant les deux colonnes, centrés dessous. */
.duo__actions {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: clamp(.5rem, 1.8vw, 1.25rem);
}
/* Sous une grille de cartes, la marge du duo est trop courte : les boutons
   se collent à la dernière rangée. On leur redonne l'air d'une fin de section. */
.grille + .duo__actions {
    margin-top: clamp(2.25rem, 4vw, 3.25rem);
}

.liste-check { list-style: none; margin: 1.4rem 0 1.75rem; padding: 0; display: grid; gap: .75rem; }
/* La coche est positionnée dans la marge plutôt que placée en colonne de
   grille : en grille, chaque balise du texte (un <strong>, un <a>) formerait
   un item supplémentaire qui retomberait dans la colonne de la coche. */
.liste-check li {
    position: relative;
    margin: 0;
    padding-left: 2.15rem;
    font-size: .9688rem;
}
.liste-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .12em;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blanc);
    background: var(--teal);
    border-radius: 50%;
}

/* --- Liste des points exclus : même gabarit, marqueur inversé --- */
.liste-check--exclu li::before {
    content: "−";
    font-size: 1rem;
    color: var(--texte-doux);
    background: var(--gris-100);
    border: 1px solid var(--bordure);
}

/* --- Étape détaillée, en carte numérotée --- */
/* Le numéro reste dans le flux : en position absolue, la hauteur à
   réserver au-dessus du titre dépendait du remplissage de la carte,
   lui-même variable, et le titre finissait par le recouvrir. */
.etape-detail__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: .9rem;
    font-family: var(--police-titre);
    font-size: .9375rem;
    font-weight: 800;
    color: var(--blanc);
    background: var(--bleu);
    border-radius: 50%;
}
.etape-detail__part {
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid var(--gris-100);
    font-size: .875rem;
    font-style: italic;
    color: var(--teal-fonce);
}

/* --- Primes --- */
.prime {
    display: flex;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-left: 4px solid var(--ambre);
    border-radius: var(--r-s);
}
.prime h3 { font-size: 1.0313rem; margin-bottom: .3rem; }
.prime p { font-size: .9063rem; color: var(--texte-doux); margin: 0; }

.avertissement {
    margin-top: .5rem;
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: var(--texte-doux);
    background: var(--gris-050);
    border: 1px dashed var(--bordure);
    border-radius: var(--r-s);
}

/* Traverse toute la largeur de la section et se centre dessous.
   La largeur est bornée : un paragraphe centré étalé sur 1200 px devient
   pénible à suivre au retour à la ligne. */
.avertissement--centre {
    grid-column: 1 / -1;
    max-width: 62rem;
    margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
    text-align: center;
}

/* --- Témoignages --- */
.avis {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    padding: 1.5rem;
    box-shadow: var(--ombre-s);
}
.avis blockquote { margin: 0 0 1.1rem; font-size: .9375rem; line-height: 1.6; color: var(--texte); }
.avis blockquote p { margin: 0; }
.avis figcaption {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: auto;
    padding-top: .9rem;
    border-top: 1px solid var(--gris-100);
    font-size: .8438rem;
    color: var(--texte-doux);
}
.avis__auteur strong { display: block; color: var(--bleu-nuit); font-size: .9375rem; }

/* Silhouette d'avatar : pastille ronde teintée, dessin en couleur de marque. */
.avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal-clair);
    overflow: hidden;
}
.avatar svg { width: 34px; height: 34px; fill: var(--teal-fonce); }

/* --- Carrousel --- */
.carrousel { position: relative; }

.carrousel__piste {
    /* L'écart est déclaré une seule fois : la largeur des cartes s'en déduit,
       sans risque de décalage entre les deux valeurs. */
    --ecart: 1rem;
    --par-vue: 3;

    display: flex;
    gap: var(--ecart);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: .35rem;
    /* Barre de défilement masquée : la navigation passe par les commandes. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carrousel__piste::-webkit-scrollbar { display: none; }

.carrousel__piste > .avis {
    flex: 0 0 calc((100% - (var(--par-vue) - 1) * var(--ecart)) / var(--par-vue));
    /* Sans cela, un mot insécable pourrait élargir la carte au-delà de sa
       base et faire déborder la troisième hors de la piste. */
    min-width: 0;
    scroll-snap-align: start;
}
@media (max-width: 1000px) { .carrousel__piste { --par-vue: 2; } }
@media (max-width: 660px)  { .carrousel__piste { --par-vue: 1; } }

/* Tout tient à l'écran : les commandes n'ont plus lieu d'être. */
.carrousel--inactif .carrousel__commandes { display: none; }

.carrousel__commandes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carrousel__fleche {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--bleu);
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), opacity var(--transition);
}
.carrousel__fleche span { transform: translateY(-2px); }
.carrousel__fleche:hover:not(:disabled) {
    color: var(--blanc);
    background: var(--bleu);
    border-color: var(--bleu);
}
.carrousel__fleche:disabled { opacity: .35; cursor: default; }

.carrousel__points { display: flex; gap: .45rem; }
.carrousel__point {
    width: 9px;
    height: 9px;
    padding: 0;
    background: var(--gris-200);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition), width var(--transition);
}
.carrousel__point[aria-current="true"] {
    width: 26px;
    border-radius: 5px;
    background: var(--teal);
}

/* --- FAQ --- */
.faq { display: grid; gap: .75rem; max-width: 52rem; margin-inline: auto; }
.faq details {
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-s);
    overflow: hidden;
}
.faq details[open] { border-color: var(--teal); box-shadow: var(--ombre-s); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    font-weight: 650;
    color: var(--bleu-nuit);
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--bleu);
    background: var(--bleu-clair);
    border-radius: 50%;
}
.faq details[open] summary::after { content: "−"; background: var(--teal); color: var(--blanc); }
.faq__reponse { padding: 0 1.25rem 1.25rem; font-size: .9688rem; color: var(--texte-doux); }

/* --- Appel final --- */
.cta-final {
    position: relative;
    background: linear-gradient(120deg, var(--bleu) 0%, var(--teal-fonce) 100%);
    border-radius: var(--r-l);
    padding: clamp(2.25rem, 5vw, 3.75rem);
    color: #e2eef8;
    text-align: center;
    overflow: hidden;
}
.cta-final h2 { color: var(--blanc); }
.cta-final p { max-width: 40rem; margin-inline: auto; font-size: 1.075em; }
.cta-final .groupe-btn { justify-content: center; margin-top: 1.9rem; }

/* ------------------------------------------------------------------
   CENTRAGE SUR PETIT ÉCRAN
   Sur une seule colonne, le fer à gauche laisse des fins de lignes
   très irrégulières ; le centrage tient mieux.
   ------------------------------------------------------------------ */
@media (max-width: 760px) {
    .hero__inner { text-align: center; }
    .hero__chapo { margin-inline: auto; }
    .hero .groupe-btn { justify-content: center; }
    .hero__preuves li { justify-content: center; }

    .pilier { text-align: center; }

    /* Une carte par ligne : les illustrations disposent de bien plus de
       place qu'en grille et gagnent à être agrandies. Les sélecteurs
       reprennent ceux du bureau, dont la spécificité est plus forte. */
    .picto,
    .pilier .picto { width: 170px; height: 170px; margin-inline: auto; }
    .carte--illustration-xl .picto { width: 190px; height: 190px; }

    .solution { text-align: center; }
    .solution .lien-fleche { justify-content: center; }

    .duo--centre-mobile { text-align: center; }
    .duo--centre-mobile .zones { justify-content: center; }
}

/* ------------------------------------------------------------------
   FILTRES DE RÉALISATIONS
   ------------------------------------------------------------------ */
.filtres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.filtre {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1.05rem;
    font-family: var(--police-titre);
    font-size: .875rem;
    font-weight: 600;
    color: var(--bleu-nuit);
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: 100px;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.filtre:hover { border-color: var(--teal); }
.filtre.est-actif {
    color: var(--blanc);
    background: var(--bleu);
    border-color: var(--bleu);
}
.filtre__nombre {
    font-size: .75rem;
    opacity: .7;
}
[data-realisations] .carte[hidden] { display: none; }

/* ------------------------------------------------------------------
   PAGES LÉGALES
   Colonne de lecture étroite : au-delà d'une certaine largeur, l'œil
   perd sa ligne en revenant à la suivante.
   ------------------------------------------------------------------ */
.page-legale {
    max-width: 46rem;
    margin-inline: auto;
}
.page-legale h2 {
    font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
    margin-top: 2.5rem;
}
.page-legale h2:first-child { margin-top: 0; }
.page-legale h3 {
    font-size: 1.0625rem;
    margin-top: 1.75rem;
}
.page-legale ul:not(.liste-check) { padding-left: 1.25em; }
.page-legale ul:not(.liste-check) li { margin-bottom: .5em; }
.page-legale .liste-check { margin-block: 1.25rem; }
.page-legale code {
    padding: .1em .4em;
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: .9em;
    background: var(--gris-100);
    border-radius: 4px;
}
.page-legale__maj {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--bordure);
    font-size: .875rem;
    color: var(--texte-doux);
}

/* Tableau de données, avec défilement propre sur petit écran. */
.tableau-cadre {
    overflow-x: auto;
    margin-block: 1.5rem;
    border: 1px solid var(--bordure);
    border-radius: var(--r-s);
}
.tableau {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: .9063rem;
}
.tableau th,
.tableau td {
    padding: .75rem .9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--gris-100);
}
.tableau thead th {
    font-family: var(--police-titre);
    font-size: .8125rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bleu-nuit);
    background: var(--gris-050);
}
.tableau tbody tr:last-child td { border-bottom: none; }

/* ------------------------------------------------------------------
   FORMULAIRE
   ------------------------------------------------------------------ */
.formulaire {
    max-width: 56rem;
    margin-inline: auto;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background: var(--blanc);
    border: 1px solid var(--bordure);
    border-radius: var(--r-m);
    box-shadow: var(--ombre-s);
}

.champs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.25rem;
}
@media (max-width: 660px) { .champs { grid-template-columns: 1fr; } }
.champ--large { grid-column: 1 / -1; }

.champ { margin: 0; }
.champ label {
    display: block;
    margin-bottom: .35rem;
    font-size: .875rem;
    font-weight: 650;
    color: var(--bleu-nuit);
}
.champ label span[aria-hidden] { color: var(--ambre); }

.champ input,
.champ select,
.champ textarea {
    width: 100%;
    padding: .75rem .9rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--texte);
    background: var(--blanc);
    border: 1px solid var(--gris-400);
    border-radius: var(--r-s);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus,
.champ select:focus,
.champ textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-clair);
}
.champ [aria-invalid="true"] { border-color: #c0392b; }
.champ__erreur {
    display: block;
    margin-top: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #c0392b;
}

/* Case à cocher : l'étiquette entoure la case et son texte. */
.champ--case label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem;
    font-size: .9063rem;
    font-weight: 400;
    color: var(--texte-doux);
    cursor: pointer;
}
.champ--case input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--teal); }

/* Piège à robots : masqué sans display:none, que certains automates détectent. */
.champ-piege {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.formulaire__pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gris-100);
}
.formulaire__mention { margin: 0; font-size: .8125rem; color: var(--texte-doux); }

.message {
    padding: 1.1rem 1.35rem;
    border-radius: var(--r-s);
    border-left: 4px solid;
}
.message h3 { margin-bottom: .4rem; }
.message p:last-child { margin-bottom: 0; }
.message--succes {
    color: var(--texte);
    background: var(--teal-clair);
    border-left-color: var(--teal);
}
.message--erreur {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #8c2f22;
    background: #fdecea;
    border-left-color: #c0392b;
}

/* --- Tableau d'horaires --- */
.horaires { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.horaires th,
.horaires td {
    padding: .45rem 0;
    font-size: .9375rem;
    text-align: left;
    border-bottom: 1px solid var(--gris-100);
}
.horaires th { font-weight: 550; color: var(--texte-doux); }
.horaires td { text-align: right; font-weight: 600; color: var(--bleu-nuit); }

/* --- Zones desservies --- */
.zones {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.zones li {
    margin: 0;
    padding: .35rem .9rem;
    font-size: .875rem;
    font-weight: 550;
    color: var(--bleu);
    background: var(--bleu-clair);
    border-radius: 100px;
}

/* --- Encadre d'orientation vers le formulaire professionnel --- */
.encadre--pro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--bleu-clair);
    border-radius: var(--r-m);
    border: 1px solid var(--gris-200);
}
.encadre--pro > div { flex: 1 1 26rem; }
.encadre--pro h3 { margin: .35rem 0 .6rem; }
.encadre--pro p { margin: 0; color: var(--texte-doux); }
.encadre--pro .btn { flex: 0 0 auto; }

@media (max-width: 700px) {
    .encadre--pro { text-align: center; justify-content: center; }
    .encadre--pro .btn { width: 100%; }
}

/* --- Formulaire professionnel : intertitres et champs fichiers --- */
.formulaire form h3 {
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    font-size: 1.0625rem;
    color: var(--bleu);
    border-bottom: 1px solid var(--gris-200);
}
.champ input[type="file"] {
    padding: .6rem;
    font-size: .9375rem;
    background: var(--gris-050);
    border-style: dashed;
    cursor: pointer;
}
.champ input[type="file"]::file-selector-button {
    margin-right: .75rem;
    padding: .4rem .9rem;
    font: inherit;
    font-weight: 650;
    color: var(--bleu);
    background: var(--blanc);
    border: 1px solid var(--gris-200);
    border-radius: 100px;
    cursor: pointer;
}

/* --- Pages de detail d'un metier : une seule ligne centree sous le duo --- */
.sous-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .6rem 1.5rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}
.sous-pages__label {
    font-family: var(--police-titre);
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--texte-doux);
}
.sous-pages__lien {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .9688rem;
    font-weight: 600;
    color: var(--bleu);
    text-decoration: none;
}
.sous-pages__lien::before {
    content: "\2713";
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--blanc);
    background: var(--teal);
    border-radius: 50%;
}
.sous-pages__lien:hover { color: var(--bleu-fonce); text-decoration: underline; }
