/* ==========================================================================
   BâtiEmpreinte — site.css
   Une seule feuille pour toutes les pages. Cascade organisée en couches :
   reset → tokens → base → layout → components → sections → utilities.
   Aucune couleur hors charte (§4.2). Poppins seule, auto-hébergée.
   ========================================================================== */
@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- Polices (licence SIL OFL 1.1, voir assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
/* Repli calé sur les métriques de Poppins (tools/fonts.mjs) : limite le décalage au chargement */
@font-face { font-family: "Poppins Repli"; font-weight: 100 500; src: local("Arial"), local("ArialMT"); size-adjust: 108.99%; ascent-override: 96.34%; descent-override: 32.11%; line-gap-override: 9.18%; }
@font-face { font-family: "Poppins Repli"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"); size-adjust: 105.28%; ascent-override: 99.73%; descent-override: 33.24%; line-gap-override: 9.5%; }

/* ---------- reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, svg { display: block; max-width: 100%; }
  button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
  ul, ol { list-style: none; }
  table { border-collapse: collapse; border-spacing: 0; }
  [hidden] { display: none !important; }
}

/* ---------- tokens ---------- */
@layer tokens {
  :root {
    /* Charte (§4.2) */
    --navy: #0B2D4D;
    --navy-deep: #07223B;
    --green: #2E7D32;
    --green-press: #256A29;   /* survol du vert, identique à la page d'attente */
    --leaf: #9DD88D;          /* accents sur fond navy uniquement */
    --paper: #F6F8F2;
    --surface: #FFFFFF;
    --mist: #E7EEE6;          /* jamais de texte --muted dessus (4,09:1) */
    --line: #D8E1D8;
    --ink: #14262F;
    --muted: #6B7280;         /* ≥ 14 px sur --paper ou --surface */
    --on-dark: #FFFFFF;
    --on-dark-2: rgba(255, 255, 255, .84);
    --line-dark: rgba(255, 255, 255, .2);

    --font: "Poppins", "Poppins Repli", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Mise en page */
    --content: 1200px;
    --gutter: clamp(1rem, 4vw, 3rem);
    --section: clamp(4.5rem, 9vw, 7.5rem);
    --nav-h: 4rem;

    /* Formes et mouvement */
    --radius: 4px;
    --radius-btn: 10px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --shadow-doc: 0 1px 0 rgba(7, 34, 59, .05), 0 22px 44px -26px rgba(7, 34, 59, .38), 0 60px 110px -60px rgba(7, 34, 59, .3);

    /* Échelle typographique (§4.3) */
    --fs-h1: clamp(2.5rem, 5.2vw, 4.5rem);
    --fs-h2: clamp(1.9rem, 3.4vw, 3rem);
    --fs-h3: clamp(1.15rem, 1.6vw, 1.3rem);
    --fs-lead: clamp(1.0625rem, 1.3vw, 1.1875rem);
    --fs-label: .75rem;
  }
  @media (min-width: 980px) { :root { --nav-h: 4.5rem; } }
  /* Très grands écrans : contenu un peu plus large, pas de grand vide à 1920 px */
  @media (min-width: 1600px) { :root { --content: 1320px; } }
}

/* ---------- base ---------- */
@layer base {
  html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
  body {
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }
  body.menu-ouvert { overflow: hidden; }
  h1, h2, h3 { color: var(--navy); font-weight: 700; text-wrap: balance; }
  h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  abbr[title] { text-decoration: none; cursor: help; }
  strong { font-weight: 600; }
  sub { font-size: .7em; line-height: 0; vertical-align: baseline; position: relative; bottom: -.25em; }
  ::selection { background: var(--green); color: #fff; }
  :focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
  .sombre :focus-visible, .site-header:not(.is-solide) :focus-visible, .menu-mobile :focus-visible { outline-color: var(--leaf); }
}

/* ---------- layout ---------- */
@layer layout {
  .container {
    width: 100%;
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .section { padding-block: var(--section); }
}

/* ---------- components ---------- */
@layer components {
  /* Logotype typographique (carte de visite, logo LinkedIn A) */
  .logo { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; }
  .logo__bati { color: var(--green); }
  .logo__emp { color: var(--navy); }
  .sombre .logo__bati { color: var(--leaf); }
  .sombre .logo__emp { color: var(--on-dark); }

  /* Étiquettes techniques */
  .kicker {
    display: block;
    color: var(--green);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.5;
    text-transform: uppercase;
  }
  .sombre .kicker { color: var(--leaf); }

  .titre-2 {
    font-size: var(--fs-h2);
    line-height: 1.08;
    letter-spacing: -.015em;
    max-width: 17em;
  }
  .kicker + .titre-2 { margin-top: .9rem; }
  .lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); max-width: 38rem; }

  /* Boutons (rayon 10 px, comme la page d'attente) */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 3rem;
    padding: .75rem 1.25rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius-btn);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
  }
  .btn svg { width: 1.125rem; height: 1.125rem; flex: none; }
  .btn--primaire { background: var(--green); color: #fff; }
  .btn--primaire:active { background: var(--green-press); }
  .btn--contour { border-color: rgba(255, 255, 255, .6); background: rgba(7, 34, 59, .28); color: #fff; }
  .btn--contour:active { background: rgba(255, 255, 255, .1); }
  @media (hover: hover) and (pointer: fine) {
    .btn--primaire:hover { background: var(--green-press); transform: translateY(-1px); }
    .btn--contour:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
  }

  /* Lien d'action avec flèche */
  .lien-fleche {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
  }
  .lien-fleche svg { width: 1rem; height: 1rem; flex: none; transition: transform .2s var(--ease); }
  @media (hover: hover) and (pointer: fine) {
    .lien-fleche:hover { color: var(--green-press); }
    .lien-fleche:hover svg { transform: translateX(3px); }
  }

  /* Icônes au trait 1,5 px */
  .icone { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

  /* Pastilles de type de donnée : vert = fiche justifiée, neutre = donnée par défaut */
  .tag {
    display: inline-block;
    padding: .2rem .5rem;
    border-radius: 3px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.45;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .tag--fdes { background: var(--green); color: #fff; }
  .tag--ded { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 1px var(--muted); }

  /* Lien d'évitement */
  .lien-evitement {
    position: fixed; top: .75rem; left: .75rem; z-index: 100;
    padding: .7rem 1rem; border-radius: var(--radius-btn);
    background: var(--surface); color: var(--navy); font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 30px -12px rgba(7, 34, 59, .5);
    transform: translateY(-200%);
  }
  .lien-evitement:focus { transform: none; }

  /* ---------- Navigation ---------- */
  .site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    color: var(--on-dark);
    transition: background-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  }
  .site-header.is-solide,
  body:not([data-hero="sombre"]) .site-header {
    background: rgba(246, 248, 242, .95);
    box-shadow: 0 1px 0 var(--line);
    color: var(--navy);
  }
  @supports (backdrop-filter: blur(1px)) {
    .site-header.is-solide, body:not([data-hero="sombre"]) .site-header {
      background: rgba(246, 248, 242, .86);
      backdrop-filter: saturate(140%) blur(14px);
    }
  }
  .site-header:not(.is-solide) .logo__bati { color: var(--leaf); }
  .site-header:not(.is-solide) .logo__emp { color: var(--on-dark); }
  body:not([data-hero="sombre"]) .site-header .logo__bati { color: var(--green); }
  body:not([data-hero="sombre"]) .site-header .logo__emp { color: var(--navy); }
  /* Haut de page clair (ciel) : en-tête transparent et texte navy tant qu'on n'a pas défilé */
  body[data-hero="clair"] .site-header:not(.is-solide) { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body[data-hero="clair"] .site-header:not(.is-solide) :focus-visible { outline-color: var(--navy); }

  .nav {
    display: flex; align-items: center; gap: 1.5rem;
    height: var(--nav-h);
    max-width: calc(var(--content) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .nav__logo { font-size: 1.1875rem; }
  .nav__liens { display: none; }
  .nav__cta { display: none; }
  .nav__menu {
    display: grid; place-items: center;
    width: 2.75rem; height: 2.75rem; margin-left: auto;
    border-radius: var(--radius-btn);
    border: 1.5px solid currentColor;
  }
  .nav__menu svg { width: 1.375rem; height: 1.375rem; }
  .nav__progression { position: absolute; inset: auto 0 0 0; height: 2px; pointer-events: none; }
  .nav__progression span {
    display: block; height: 100%;
    background: var(--green);
    transform: scaleX(0); transform-origin: left;
  }
  body[data-hero="sombre"] .site-header:not(.is-solide) .nav__progression span { background: var(--leaf); }

  @media (min-width: 980px) {
    .nav__liens { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
    .nav__liens a {
      position: relative; display: block; padding-block: .5rem;
      font-size: .9375rem; font-weight: 500; text-decoration: none;
      color: inherit; opacity: .88;
    }
    .nav__liens a::after {
      content: ""; position: absolute; inset: auto 0 .2rem 0; height: 2px;
      background: currentColor; transform: scaleX(0); transform-origin: left;
      transition: transform .25s var(--ease);
    }
    .nav__liens a.is-actif, .nav__liens a[aria-current="page"] { opacity: 1; }
    .nav__liens a.is-actif::after, .nav__liens a[aria-current="page"]::after { transform: scaleX(1); }
    .nav__cta { display: inline-flex; min-height: 2.75rem; padding: .6rem 1.05rem; }
    .nav__menu { display: none; }
  }
  @media (min-width: 980px) and (hover: hover) and (pointer: fine) {
    .nav__liens a:hover { opacity: 1; }
    .nav__liens a:hover::after { transform: scaleX(1); }
  }

  /* Menu mobile plein écran */
  .menu-mobile {
    position: fixed; inset: 0; z-index: 60;
    display: flex; flex-direction: column;
    padding: 0 var(--gutter) max(2rem, env(safe-area-inset-bottom));
    background: var(--navy-deep); color: var(--on-dark);
    overflow-y: auto;
  }
  .menu-mobile__haut { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; }
  .menu-mobile__fermer { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid currentColor; border-radius: var(--radius-btn); }
  .menu-mobile__fermer svg { width: 1.375rem; height: 1.375rem; }
  .menu-mobile__liens { margin-top: 1.5rem; }
  .menu-mobile__liens a {
    display: block; padding: .8rem 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25;
    text-decoration: none;
  }
  .menu-mobile__liens a[aria-current="page"] { color: var(--leaf); }
  .menu-mobile__actions { margin-top: 2rem; display: grid; gap: 1rem; justify-items: start; }
  .menu-mobile__email { color: var(--leaf); font-weight: 500; }
  @media (prefers-reduced-motion: no-preference) {
    .menu-mobile:not([hidden]) { animation: menu-entree .22s var(--ease); }
    @keyframes menu-entree { from { opacity: 0; transform: translateY(-8px); } }
  }

  /* Apparitions au défilement (uniquement si site.js a posé la classe .anim) */
  @media (prefers-reduced-motion: no-preference) {
    .anim .apparait { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
    .anim .apparait.est-visible { opacity: 1; transform: none; }
  }
}

/* ---------- sections ---------- */
@layer sections {

  /* ===== Haut de page « ciel » (05/10/2026) =====
     Trois calques d'images de synthèse : le ciel, le bâtiment détouré, la nappe de nuages (fond noir pur,
     rendu transparent par mix-blend-mode: screen). Sans animation (mouvement réduit, sans JavaScript,
     INTRO_ENABLED = false) : un écran fixe. Avec .ciel-anime (posée par head.js) : piste de défilement,
     scène collante, calques pilotés par site.js (transformations et opacités seulement). */
  .hero { position: relative; background: var(--surface); }
  .hero__scene {
    --bat-l: clamp(18rem, 36vw, 40rem);   /* largeur du bâtiment au départ (petit, centré, sous le texte) */
    --bat-bas: 14svh;                      /* hauteur de sa base au-dessus du bas de l'écran */
    --nuages-l: max(100vw, 150svh);        /* largeur de la nappe de nuages */
    --nuages-bas: -18svh;                  /* décalage de la nappe sous le bas de l'écran (sa crête couvre la base du bâtiment) */
    position: relative; isolation: isolate; overflow: hidden;
    height: 100vh; height: 100svh; min-height: 34rem;
    background: linear-gradient(180deg, #4F82B8 0%, #9DB6CF 45%, #ECB775 70%, #F3E3CF 100%);
  }
  .ciel-anime .hero { height: 240vh; height: 240svh; }
  /* La section suivante arrive par le bas pendant que les nuages finissent de monter (pas d'écran blanc) */
  .ciel-anime .hero { margin-bottom: -60vh; margin-bottom: -60svh; }   /* la suite arrive pendant que la brume blanche monte */
  .ciel-anime .hero ~ * { position: relative; z-index: 1; }   /* tout le contenu qui suit passe au-dessus de la scène collante */
  .ciel-anime .hero + *::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30vh; height: 30svh; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
  }
  .ciel-anime .hero__scene { position: sticky; top: 0; }
  .hero__ciel img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: 50% 62%; transform-origin: 50% 70%;
  }
  /* Brume claire derrière le texte : le haut du ciel est trop soutenu pour du texte navy (≈ 3:1 sans elle) */
  .hero__brume {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(246, 248, 242, .72) 0%, rgba(246, 248, 242, .6) 30%, rgba(246, 248, 242, .32) 52%, rgba(246, 248, 242, 0) 70%);
  }
  .hero__batiment {
    position: absolute; left: 50%; bottom: var(--bat-bas); width: var(--bat-l);
    transform: translateX(-50%); transform-origin: 50% 100%;
  }
  .hero__batiment img { width: 100%; height: auto; }
  /* Le mot BâtiEmpreinte, le bâtiment visible à travers les lettres (décoratif : le H1 porte le contenu) */
  .hero__marque {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem;
    margin: 0; padding-inline: var(--gutter); text-align: center;
    opacity: 0; pointer-events: none; isolation: isolate;
  }
  /* Halo clair derrière le mot : les lettres (bois, vitrages) se détachent sur un fond lumineux */
  .hero__marque::before {
    content: ""; position: absolute; inset: 15% -10%; z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 255, 255, .85), rgba(255, 255, 255, .5) 55%, rgba(255, 255, 255, 0));
    opacity: var(--halo, 1);   /* pâlit pendant que le mot s'enfonce (site.js) : pas de masque sur ce halo */
  }
  .hero__marque-mot {
    display: inline-block; padding-inline: .04em;
    color: var(--navy); font-size: clamp(3.25rem, 13vw, 12.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.045em;
  }
  /* Matière chargée seulement une fois la page affichée (.ciel-charge, posée par site.js) : elle ne sert
     qu'au milieu de l'animation et ne doit pas retarder le premier affichage */
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .ciel-charge .hero__marque-mot {
      color: transparent;
      background: url("../img/batiment-matiere-1456.jpg?v=3") 50% 66% / cover no-repeat;
      background-image: image-set(url("../img/batiment-matiere-1456.avif?v=3") type("image/avif"), url("../img/batiment-matiere-1456.webp?v=3") type("image/webp"), url("../img/batiment-matiere-1456.jpg?v=3") type("image/jpeg"));
      -webkit-background-clip: text; background-clip: text;
    }
  }
  /* Le mot s'enfonce dans les nuages : masque en forme de crête nuageuse qui monte, appliqué aux lettres et à
     la phrase seulement (position et taille fixées par site.js, dans le repère de chaque élément) ; sous la
     crête, on voit les nuages déjà à l'écran. Chargé après l'affichage. */
  .ciel-anime .ciel-charge .hero__marque > span {
    -webkit-mask: url("../img/nuages-masque.webp?v=3") var(--masque-x, 50%) var(--masque-y, 0px) / var(--masque-l, 140vw) auto no-repeat;
    mask: url("../img/nuages-masque.webp?v=3") var(--masque-x, 50%) var(--masque-y, 0px) / var(--masque-l, 140vw) auto no-repeat;
  }
  .hero__marque-baseline { color: var(--navy); font-size: clamp(.75rem, 1.1vw, 1rem); font-weight: 600; letter-spacing: .22em; line-height: 1.6; text-transform: uppercase; }
  .hero__marque-baseline span { color: var(--green-press); }
  /* Nappe de nuages détourée (opaque : elle cache vraiment ce qui est derrière), une seule du début à la fin :
     elle monte et engloutit le bâtiment ; le mot BâtiEmpreinte s'y enfonce ensuite (masque ci-dessous). */
  .hero__nuages {
    position: absolute; left: 50%; bottom: var(--nuages-bas); width: var(--nuages-l);
    transform: translateX(-50%); transform-origin: 50% 100%; pointer-events: none;
  }
  .hero__nuages img { display: block; width: 100%; height: auto; max-width: none; }
  /* Brume blanche sous la nappe : le bas des nuages fond vers le blanc (dernier tiers de l'image, entièrement
     blanc au bord de l'image : pas d'arête), puis du blanc plein en dessous. Quand la nappe monte, le blanc
     arrive : les nuages n'ont pas à grossir (pas de pixels visibles) et la page s'ouvre sur du blanc. */
  .ciel-anime .hero__nuages::after {
    content: ""; position: absolute; left: 0; right: 0; top: 70%; height: 250vh;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75) 55%, #fff) 0 0 / 100% calc(var(--nuages-l) * .169) no-repeat,
      linear-gradient(#fff, #fff) 0 calc(var(--nuages-l) * .169 - 1px) / 100% 100% no-repeat;
  }
  .hero__contenu {
    position: absolute; inset: 0 0 auto; z-index: 3;
    padding-top: calc(var(--nav-h) + clamp(1.25rem, 5svh, 3.5rem));
    text-align: center;
  }
  .hero .kicker { color: var(--navy); }
  .hero__titre {
    max-width: 22em; margin: .9rem auto 0;
    color: var(--navy); font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.04; letter-spacing: -.025em;
  }
  .hero__titre:focus { outline: none; }
  .hero__titre .accent { display: block; color: var(--green-press); }   /* --green-press : contraste suffisant sur la brume */
  .hero__lead { max-width: 46rem; margin: 1rem auto 0; color: var(--ink); font-size: var(--fs-lead); line-height: 1.6; }
  .hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.4rem; }
  .hero__credit {
    position: absolute; right: var(--gutter); bottom: 1rem; z-index: 3;
    color: rgba(11, 45, 77, .72);
    font-size: .6875rem; font-weight: 600; letter-spacing: .14em; line-height: 1.2; text-transform: uppercase;
  }
  @media (max-width: 759px) {
    .hero__scene { --bat-l: 70vw; --bat-bas: 15svh; --nuages-l: 230vw; --nuages-bas: -7svh; }
    .hero__lead { line-height: 1.55; }
  }
  /* Petits téléphones (iPhone SE…) : le texte prend presque tout l'écran, le bâtiment se fait plus discret */
  @media (max-width: 759px) and (max-height: 740px) {
    .hero__scene { --bat-l: 54vw; --bat-bas: 7svh; --nuages-bas: -13svh; }
  }
  /* Écran fixe (mouvement réduit, sans JS) sur très petit téléphone : pas de place pour le bâtiment sous le texte */
  @media (max-width: 759px) and (max-height: 700px) {
    html:not(.ciel-anime) .hero__batiment { display: none; }
  }
  @media (max-width: 479px) {
    .hero__actions .btn { flex: 1 1 100%; }
  }

  /* ===== Bandeau de confiance ===== */
  .confiance { background: var(--surface); border-bottom: 1px solid var(--line); }
  .confiance__liste { display: grid; }
  .confiance__liste li {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    font-size: .9375rem; line-height: 1.45; color: var(--ink);
  }
  .confiance__liste li:first-child { border-top: 0; }
  .confiance__liste svg { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .05rem; color: var(--green); }
  @media (min-width: 640px) {
    .confiance__liste { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
    .confiance__liste li:nth-child(2) { border-top: 0; }
  }
  @media (min-width: 1100px) {
    .confiance__liste { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
    .confiance__liste li { border-top: 0; padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); }
    .confiance__liste li:first-child { border-left: 0; padding-left: 0; }
  }

  /* ===== Extrait de livrable : le carnet (signature) ===== */
  .livrable { background: var(--mist); }
  .livrable .kicker { color: var(--green-press); }           /* vert de charte trop clair sur brume (4,3:1) */
  .livrable .lead { color: var(--ink); }                       /* --muted interdit sur --mist */
  .livrable__tete { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
  @media (min-width: 980px) {
    .livrable__tete { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 4rem; align-items: end; }
    .livrable__tete .lead { padding-bottom: .35rem; }
  }

  /* La feuille : fond blanc, ombre douce, liserés d'angle de la carte de visite */
  .carnet {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-doc);
    padding: 1.75rem 1.25rem 1.25rem;
    overflow: hidden;
  }
  .carnet::before, .carnet::after {
    content: ""; position: absolute; width: 3.75rem; aspect-ratio: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232E7D32' d='M13 0h15L0 28V13z'/%3E%3Cpath fill='%230B2D4D' d='M36 0h15L0 51V36z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  }
  .carnet::before { top: 0; left: 0; }
  .carnet::after { right: 0; bottom: 0; transform: rotate(180deg); }
  @media (min-width: 760px) {
    .carnet { padding: 2.5rem 2.25rem 1.75rem; }
    .carnet::before, .carnet::after { width: 5.25rem; }
  }
  @media (min-width: 1100px) {
    .carnet { padding: 2.75rem 2.75rem 2rem; }
    .carnet::before, .carnet::after { width: 6rem; }
  }

  .carnet__entete {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1.5rem; align-items: start;
    padding: 0 0 1.1rem 1.25rem;
    border-bottom: 2px solid var(--navy);
  }
  .carnet__titre { color: var(--navy); font-size: 1rem; font-weight: 600; line-height: 1.35; }
  .carnet__titre .logo { margin-right: .15rem; }
  .carnet__sep { margin: 0 .45rem; color: var(--muted); font-weight: 400; }
  .carnet__contexte { grid-column: 1; color: var(--muted); font-size: .875rem; line-height: 1.45; }
  .carnet__compte {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 3px;
    color: var(--navy); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  }
  @media (max-width: 759px) {
    .carnet__entete { grid-template-columns: minmax(0, 1fr); }
    .carnet__compte { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .4rem; }
  }
  @media (min-width: 760px) {
    .carnet__entete { padding-left: 1.75rem; }
    .carnet__titre { font-size: 1.0625rem; }
  }

  /* Tableau : 3 mises en page ; rôles ARIA explicites dans le HTML pour garder la sémantique */
  .carnet__table { width: 100%; font-size: .9375rem; line-height: 1.45; }
  .carnet__table thead th {
    color: var(--navy); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.3;
    text-align: left; text-transform: uppercase; vertical-align: bottom;
  }
  .carnet__table tbody tr { border-bottom: 1px solid var(--line); transition: background-color .15s linear; }
  .carnet__table tbody tr:last-child { border-bottom: 0; }
  .carnet__table tbody tr:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 0; }
  @media (hover: hover) and (pointer: fine) { .carnet__table tbody tr:hover { background: var(--paper); } }
  .carnet__table tbody tr:focus-visible { background: var(--paper); }
  .c-rep { color: var(--navy); font-weight: 600; text-align: left; white-space: nowrap; }
  .c-prod { color: var(--ink); font-weight: 500; }
  .c-qte { color: var(--ink); font-weight: 500; white-space: nowrap; }
  .c-note { color: var(--muted); font-size: .875rem; }
  .c-etiquette { display: none; }

  .ctrl { display: flex; align-items: flex-start; gap: .4rem; color: var(--ink); font-size: .875rem; font-weight: 500; line-height: 1.35; }
  .ctrl__coche { width: 1.125rem; height: 1.125rem; flex: none; margin-top: .05rem; color: var(--green); }
  .ctrl__coche path { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .ctrl--defaut .ctrl__coche { color: var(--muted); }
  .ctrl__renvoi { display: block; margin: .2rem 0 0 1.525rem; color: var(--muted); font-size: .75rem; line-height: 1.3; }

  /* < 900 px : fiches empilées (le tableau à 6 colonnes est trop serré en dessous) */
  @media (max-width: 899px) {
    .carnet__table, .carnet__table tbody, .carnet__table tr, .carnet__table th, .carnet__table td { display: block; }
    .carnet__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .carnet__table tbody tr {
      display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .75rem; row-gap: .6rem;
      grid-template-areas: "rep prod prod" "qte qte type" "fiche fiche fiche" "ctrl ctrl ctrl" "note note note";
      padding: 1.25rem 0;
    }
    .c-rep { grid-area: rep; }
    .c-prod { grid-area: prod; font-weight: 600; color: var(--navy); }
    .c-qte { grid-area: qte; align-self: center; }
    .c-type { grid-area: type; justify-self: end; align-self: center; }
    .c-fiche { grid-area: fiche; }
    .c-ctrl { grid-area: ctrl; }
    .c-note { grid-area: note; }
    .c-etiquette { display: block; margin-bottom: .1rem; color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  }
  /* 900–1099 px : 6 colonnes, la note passe sous la ligne */
  @media (min-width: 900px) and (max-width: 1099px) {
    .carnet__table, .carnet__table thead, .carnet__table tbody { display: block; }
    .carnet__table tr {
      display: grid; grid-template-columns: 3rem minmax(0, 1.15fr) 5.25rem minmax(0, 1.35fr) 8.25rem 9.25rem; column-gap: 1rem;
    }
    .carnet__table th, .carnet__table td { display: block; }
    .carnet__table thead tr { padding: 1rem 0 .7rem; border-bottom: 1px solid var(--line); }
    .carnet__table thead .c-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .carnet__table tbody tr { padding: 1rem 0; row-gap: .45rem; }
    .c-qte { text-align: right; }
    .c-note { grid-column: 2 / -1; }
  }
  /* ≥ 1100 px : tableau natif, 7 colonnes */
  @media (min-width: 1100px) {
    .carnet__table thead th { padding: 1.1rem .7rem .75rem; border-bottom: 1px solid var(--line); }
    .carnet__table tbody th, .carnet__table tbody td { padding: 1.05rem .7rem; vertical-align: top; }
    .carnet__table thead th:first-child, .carnet__table tbody th { padding-left: .9rem; }
    /* La note de méthode prend l'espace restant (≈ 270 px à 1440) */
    .c-rep { width: 3.75rem; }
    .c-prod { width: 16%; }
    .c-qte { width: 6rem; text-align: right; }
    .carnet__table thead .c-qte { text-align: right; }
    .c-fiche { width: 18%; }
    .c-type { width: 8.75rem; }
    .c-ctrl { width: 11.75rem; }
  }

  .carnet__pied {
    display: grid; gap: .5rem;
    margin-top: .25rem; padding: 1.1rem 0 0 0;
    border-top: 2px solid var(--navy);
    font-size: .8125rem; line-height: 1.5; color: var(--muted);
  }
  .carnet__pied strong { color: var(--navy); }
  @media (min-width: 760px) { .carnet__pied { padding-right: 4.5rem; } }

  /* Séquence de contrôle (site.js pose data-sequence tant qu'elle n'est pas jouée) */
  @media (prefers-reduced-motion: no-preference) {
    .carnet[data-sequence] tbody tr .ctrl__coche path { transition: stroke-dashoffset .22s var(--ease); }
    .carnet[data-sequence] tbody tr .ctrl__texte,
    .carnet[data-sequence] tbody tr .ctrl__renvoi { transition: opacity .2s linear .08s, transform .2s var(--ease) .08s; }
    .carnet[data-sequence] tbody tr:not(.est-controle) .ctrl__coche path { stroke-dashoffset: 1; }
    .carnet[data-sequence] tbody tr:not(.est-controle) .ctrl__texte,
    .carnet[data-sequence] tbody tr:not(.est-controle) .ctrl__renvoi { opacity: 0; transform: translateX(-4px); }
  }

  .carnet__legende {
    display: none;
    align-items: center; gap: .6rem;
    min-height: 3rem; margin-top: 1.25rem; padding: .35rem 0 .35rem 1rem;
    border-left: 2px solid var(--navy);
    color: var(--ink); font-size: .9375rem; line-height: 1.45;
  }
  .carnet__legende svg { width: 1.125rem; height: 1.125rem; flex: none; color: var(--navy); }
  @media (min-width: 900px) { .carnet__legende { display: flex; } }

  .livrable__bas { display: grid; gap: .9rem; margin-top: 1.75rem; color: var(--ink); font-size: .9375rem; }
  .livrable__bas .lien-fleche { margin-top: .35rem; }
  .livrable__mention { font-size: .8125rem; line-height: 1.5; }
  @media (min-width: 980px) {
    .livrable__bas { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); column-gap: 4rem; align-items: start; }
  }
}

/* ---------- utilities ---------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    margin: -1px !important; padding: 0 !important; overflow: hidden !important;
    clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
  }
  .insecable { white-space: nowrap; }
}

/* ==========================================================================
   Phase 2 — sections de l'accueil (dans l'ordre du §6)
   ========================================================================== */
@layer sections {
  /* Sections sombres : titres et chapeaux */
  .sombre .titre-2, .sombre h3 { color: var(--on-dark); }
  .sombre .lead { color: var(--on-dark-2); }

  /* ===== L'enjeu : 3 moments du chantier | Ic construction par lot ===== */
  .enjeu { background: var(--paper); }   /* fond explicite : passe au-dessus de la scène du haut de page */
  .enjeu__tete { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .enjeu__tete .titre-2 { max-width: 20em; }
  .enjeu__tete .lead { margin-top: 1.25rem; }
  .enjeu__grille { display: grid; gap: 3rem; }
  @media (min-width: 980px) {
    .enjeu__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  }
  .moments { border-top: 1px solid var(--line); }
  .moment { display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
  @media (min-width: 640px) { .moment { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 1.5rem; } }
  .moment__quand { padding-top: .2rem; color: var(--green); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
  .moment h3 { font-size: 1.1875rem; }
  .moment h3 + p { margin-top: .4rem; color: var(--muted); }

  .ic {
    padding: 1.4rem 1.25rem 1.25rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 40px -32px rgba(7, 34, 59, .4);
  }
  @media (min-width: 640px) { .ic { padding: 1.75rem 2rem 1.5rem; } }
  /* Desktop : le bloc démarre à la hauteur du titre et reste visible pendant la lecture des 3 moments */
  @media (min-width: 980px) { .ic { position: sticky; top: calc(var(--nav-h) + 2rem); margin-top: 2.25rem; } }
  .ic__table { width: 100%; font-size: .9375rem; }
  .ic__titre { padding-bottom: .9rem; text-align: left; color: var(--navy); font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
  .ic__titre .tag { float: right; margin: .1rem 0 0 1rem; }
  .tag--neutre { background: var(--surface); color: var(--navy); box-shadow: inset 0 0 0 1px var(--muted); }
  .ic__table thead th {
    padding: .7rem 0 .45rem; border-top: 1px solid var(--line);
    color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-align: left; text-transform: uppercase;
  }
  .ic__table thead th:last-child { text-align: right; white-space: nowrap; }
  .ic__table tbody th { padding: .5rem 1.25rem .5rem 0; color: var(--ink); font-weight: 500; text-align: left; }
  .ic__table tbody td { width: 3.5rem; padding-top: .5rem; color: var(--navy); font-weight: 600; text-align: right; vertical-align: top; white-space: nowrap; }
  .ic__barre { display: none; }
  .js .ic__barre { display: block; height: 6px; margin-top: .4rem; overflow: hidden; border-radius: 3px; background: var(--mist); }
  .ic__barre span { display: block; width: calc(var(--part, 0) * 1%); height: 100%; border-radius: inherit; background: var(--navy); transition: width .9s var(--ease); }
  .anim .ic:not(.est-visible) .ic__barre span { width: 0; }
  .ic__table tfoot th, .ic__table tfoot td { padding-top: 1.1rem; border-top: 2px solid var(--navy); vertical-align: bottom; }
  .ic__table tfoot th { padding-bottom: .35rem; color: var(--navy); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-align: left; text-transform: uppercase; }
  .ic__table tfoot td { text-align: right; }
  .ic__total { display: block; color: var(--navy); font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
  .ic__unite { display: block; margin-top: .35rem; white-space: nowrap; color: var(--muted); font-size: .875rem; font-weight: 500; }
  .ic__legende { margin-top: 1.1rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }

  /* ===== L'offre : titre à gauche (collant), 2×2 cartes ouvertes par la situation ===== */
  .offre { background: var(--surface); }
  .offre__grille { display: grid; gap: 2.5rem; }
  .offre__tete .lead { margin-top: 1.25rem; }
  @media (min-width: 1100px) {
    .offre__grille { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); column-gap: clamp(3rem, 5vw, 5rem); align-items: start; }
    .offre__tete { position: sticky; top: calc(var(--nav-h) + 2.5rem); }
  }
  .offre__cartes { display: grid; gap: 1rem; }
  @media (min-width: 700px) { .offre__cartes { grid-template-columns: 1fr 1fr; } }
  .carte-offre {
    display: flex; flex-direction: column;
    padding: 1.5rem 1.5rem 1.35rem;
    border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .carte-offre:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(7, 34, 59, .45); }
  }
  .carte-offre__situation {
    align-self: flex-start; padding: .25rem .6rem; border-radius: 3px;
    background: var(--mist); color: var(--green-press);
    font-size: .6875rem; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase;
  }
  .carte-offre h3 { margin-top: 1rem; font-size: 1.3125rem; }
  .carte-offre h3 + p { margin-top: .55rem; color: var(--muted); font-size: 1rem; }
  .carte-offre__livrable { margin-top: auto; padding-top: 1.25rem; color: var(--navy); font-size: .9375rem; font-weight: 600; line-height: 1.4; }
  .carte-offre__livrable::before { content: ""; display: block; margin-bottom: .9rem; border-top: 1px solid var(--line); }
  .carte-offre__livrable span { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; }
  .offre__modalites { margin-top: 1.25rem; color: var(--muted); font-size: .875rem; line-height: 1.55; }

  /* ===== Terrain : navy plein cadre, image très voilée, 3 bénéfices en ligne ===== */
  .terrain { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: var(--on-dark); }
  .terrain__fond img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 62%; }
  .terrain::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 34, 59, .9) 0%, rgba(7, 34, 59, .93) 55%, rgba(7, 34, 59, .96) 100%); }
  .terrain__tete { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .terrain__tete .lead { margin-top: 1.25rem; }
  .benefices { display: grid; gap: 2rem; }
  @media (min-width: 900px) { .benefices { grid-template-columns: repeat(3, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); } }
  .benefice { padding-top: 1.25rem; border-top: 2px solid var(--leaf); }
  .benefice h3 { font-size: 1.25rem; }
  .benefice p { margin-top: .6rem; color: var(--on-dark-2); }

  /* ===== La méthode : frise 01 → 06 | points de contrôle en marge ===== */
  .methode__tete { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
  .methode__tete .lead { margin-top: 1.25rem; }
  .methode__grille { display: grid; gap: 3rem; }
  @media (min-width: 1000px) {
    .methode__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: clamp(3rem, 6vw, 6rem); align-items: start; }
    .controles { position: sticky; top: calc(var(--nav-h) + 2rem); margin-top: 2.25rem; }
  }
  .etape { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.25rem; padding-bottom: 2rem; scroll-margin-top: calc(var(--nav-h) + 2rem); }
  .etape:last-child { padding-bottom: 0; }
  /* Filet entre deux repères, borné à la frise (corrige le filet qui débordait) */
  .etape::before { content: ""; position: absolute; top: 3.5rem; bottom: .5rem; left: 1.5rem; width: 1px; background: var(--line); }
  .etape:last-child::before { display: none; }
  .etape__num {
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border: 1.5px solid var(--navy); border-radius: var(--radius);
    background: var(--paper); color: var(--navy);
    font-size: .9375rem; font-weight: 600; letter-spacing: .02em;
  }
  .etape h3 { padding-top: .55rem; font-size: 1.1875rem; }
  .etape h3 + p { margin-top: .35rem; color: var(--muted); }
  .controles {
    padding: 1.5rem 1.5rem .75rem;
    border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--radius);
    background: var(--surface);
  }
  .controles h3 { font-size: 1.0625rem; }
  .controles dl { margin-top: .9rem; }
  .controle { padding: .85rem 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 2rem); }
  .controle dt { display: flex; gap: .5rem; align-items: center; color: var(--navy); font-size: .9375rem; font-weight: 600; line-height: 1.35; }
  .controle dt::before {
    content: ""; width: 1rem; height: 1rem; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7'/%3E%3C/svg%3E") no-repeat center / contain;
  }
  .controle dd { margin: .25rem 0 0 1.5rem; color: var(--muted); font-size: .875rem; line-height: 1.5; }

  /* ===== La différence : texte | comparateur (onglets ARIA), indice relatif ===== */
  .difference { background: var(--navy); color: var(--on-dark); }
  .difference__grille { display: grid; gap: 3rem; }
  @media (min-width: 1000px) {
    .difference__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); column-gap: clamp(3rem, 7vw, 7rem); align-items: center; }
  }
  .difference__texte .lead { margin-top: 1.25rem; }
  .difference__texte h3 { margin-top: 2.25rem; font-size: 1.25rem; }
  .difference__detail { margin-top: .6rem; max-width: 36rem; color: var(--on-dark-2); }
  .difference__conclusion {
    grid-column: 1 / -1; padding-top: 1.75rem; border-top: 1px solid var(--line-dark);
    color: var(--on-dark); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; line-height: 1.5;
  }

  .comparateur { padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .05); }
  @media (min-width: 640px) { .comparateur { padding: 2rem; } }
  .comparateur__onglets { display: none; }
  .js .comparateur__onglets {
    display: grid; grid-template-columns: 1fr 1fr; gap: .25rem;
    margin-bottom: 1.75rem; padding: .25rem; border-radius: var(--radius-btn); background: rgba(255, 255, 255, .08);
  }
  .comparateur__onglet {
    min-height: 2.75rem; padding: .55rem .75rem; border-radius: 8px;
    color: var(--on-dark-2); font-size: .875rem; font-weight: 600; line-height: 1.25; text-wrap: balance;
    transition: background-color .2s var(--ease), color .2s var(--ease);
  }
  .comparateur__onglet[aria-selected="true"] { background: var(--surface); color: var(--navy); }
  .comparateur__onglet:focus-visible { outline-offset: 2px; }
  .comparateur__panneau + .comparateur__panneau { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark); }
  .js .comparateur__panneau + .comparateur__panneau { margin-top: 0; padding-top: 0; border-top: 0; }
  .comparateur__panneau:focus-visible { outline-offset: 6px; }
  .comparateur__nom { color: var(--leaf); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .js .comparateur__nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .comparateur__lecture { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem .75rem; margin-top: .5rem; }
  .js .comparateur__lecture { margin-top: 0; }
  .comparateur__valeur { color: var(--on-dark); font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
  .comparateur__unite { color: var(--on-dark-2); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
  .comparateur__ecart { margin-left: auto; align-self: center; padding: .35rem .7rem; border-radius: 6px; background: rgba(157, 216, 141, .16); color: var(--leaf); font-size: 1.0625rem; font-weight: 700; }
  .comparateur__barre { display: none; }
  .js .comparateur__barre { display: block; height: 12px; margin-top: 1.25rem; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, .12); }
  .comparateur__barre span { display: block; width: calc(var(--part, 0) * 1%); height: 100%; border-radius: inherit; transition: width .6s var(--ease); }
  .comparateur__barre--defaut span { background: var(--muted); }   /* gris-navy neutre : donnée pénalisante (3,3:1 sur navy) */
  .comparateur__barre--juste span { background: var(--leaf); }     /* vert de la charte sur fond navy */
  .anim .comparateur:not(.est-visible) .comparateur__barre span { width: 0; }
  .comparateur__texte { margin-top: 1.25rem; color: var(--on-dark-2); font-size: .9375rem; }
  .comparateur__pied { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .78); font-size: .8125rem; line-height: 1.5; }

  /* ===== Preuves : 3 cartes asymétriques, la preuve « visa » en grand ===== */
  .preuves { background: var(--surface); }
  .preuves__tete { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
  .preuves__grille { display: grid; gap: 1rem; }
  @media (min-width: 900px) {
    .preuves__grille { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
    .preuve--visa { grid-row: 1 / span 2; }
  }
  .preuve { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .preuve__label { color: var(--green); font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
  .preuve h3 { margin-top: .85rem; font-size: 1.375rem; }
  .preuve__texte { margin-top: .6rem; color: var(--muted); }
  .preuve .lien-fleche { margin-top: auto; padding-top: 1.25rem; align-self: flex-start; }
  .preuve--visa { padding: clamp(1.75rem, 4vw, 2.75rem); border-color: var(--navy-deep); background: var(--navy-deep); }
  .preuve--visa .preuve__label { color: var(--leaf); }
  .preuve--visa h3 { font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.1; letter-spacing: -.015em; }
  .preuve--visa .preuve__texte { max-width: 34rem; color: var(--on-dark-2); font-size: 1.0625rem; }
  .circuit { display: grid; gap: .6rem; margin-top: 2rem; }
  .circuit li {
    position: relative; padding: .8rem .9rem;
    border: 1px solid var(--line-dark); border-radius: var(--radius);
    color: var(--on-dark); font-size: .875rem; font-weight: 500; line-height: 1.35;
  }
  .circuit li:last-child { border-color: var(--leaf); color: var(--leaf); font-weight: 600; }
  @media (min-width: 640px) {
    .circuit { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
    /* Flèche entre deux étapes du circuit : l'ordre est réel */
    .circuit li:not(:last-child)::after {
      content: ""; position: absolute; top: 50%; right: -1.2rem; width: 1rem; height: 1rem; transform: translateY(-50%);
      background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239DD88D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") no-repeat center / contain;
    }
  }
  .preuve__detail { margin-top: 1.25rem; color: rgba(255, 255, 255, .78); font-size: .875rem; }
  /* Carte visa : le propos en haut, le circuit et sa précision en bas */
  .preuve--visa .circuit { margin-top: auto; padding-top: 2.25rem; }

  /* ===== Questions : colonne étroite, accordéons natifs ===== */
  .questions__grille { display: grid; gap: 2rem; }
  @media (min-width: 1000px) {
    .questions__grille { grid-template-columns: minmax(0, 20rem) minmax(0, 46rem); justify-content: space-between; align-items: start; }
    .questions__tete { position: sticky; top: calc(var(--nav-h) + 2rem); }
  }
  .questions__tete .titre-2 { max-width: 10em; }
  .faq { border-top: 1px solid var(--line); }
  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 1.2rem 0; cursor: pointer; list-style: none;
    color: var(--navy); font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--green); transition: transform .2s var(--ease); }
  .faq__item[open] summary svg { transform: rotate(45deg); }
  @media (hover: hover) and (pointer: fine) { .faq__item summary:hover { color: var(--green-press); } }
  .faq__item p { padding: 0 2.75rem 1.4rem 0; color: var(--muted); }

  /* ===== Contact : centré, cercles concentriques de la carte autour de l'action ===== */
  .contact { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: var(--on-dark); text-align: center; }
  .contact__fond img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 58%; }
  .contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 34, 59, .95); }
  .contact__contenu { display: grid; justify-items: center; }
  .contact .titre-2 { max-width: 15em; margin-inline: auto; }
  .contact .lead { max-width: 38rem; margin: 1.25rem auto 0; }
  .contact__action { position: relative; isolation: isolate; display: grid; place-items: center; margin-top: 2.75rem; padding-block: 2.5rem; }
  .contact__cercles {
    position: absolute; top: 50%; left: 50%; z-index: -1;
    width: min(37.5rem, 160vw); max-width: none; height: auto; transform: translate(-50%, -50%);
    fill: none; stroke: var(--leaf); stroke-width: 1.2; opacity: .24; pointer-events: none;
  }
  .btn--grand { min-height: 3.5rem; padding: 1rem 1.75rem; font-size: 1.0625rem; }
  .contact__adresse { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.25rem; margin-top: 2.25rem; }
  .contact__email {
    color: var(--on-dark); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; letter-spacing: -.01em;
    text-decoration: underline; text-decoration-color: rgba(157, 216, 141, .7); text-decoration-thickness: 2px; text-underline-offset: .28em;
    overflow-wrap: anywhere;
  }
  .contact__copier { display: none; }
  .js .contact__copier { display: inline-flex; }
  .contact__linkedin { margin-top: 1.75rem; color: var(--on-dark-2); font-size: .9375rem; }
  @media (hover: hover) and (pointer: fine) { .contact__linkedin:hover, .contact__email:hover { color: var(--leaf); } }

  /* ===== Footer ===== */
  .site-footer { padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; border-top: 1px solid var(--line-dark); background: var(--navy-deep); color: var(--on-dark-2); }
  .footer__grille { display: grid; gap: 2.25rem; }
  @media (min-width: 640px) { .footer__grille { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .footer__grille { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.3fr); } }
  .footer__logo { font-size: 1.375rem; }
  .footer__baseline { display: grid; margin-top: 1rem; color: var(--on-dark); font-size: .75rem; font-weight: 600; letter-spacing: .2em; line-height: 1.9; text-transform: uppercase; }
  .footer__baseline span:last-child { color: var(--leaf); }
  .footer__ligne { max-width: 22rem; margin-top: 1rem; font-size: .9375rem; }
  .footer__titre { color: rgba(255, 255, 255, .78); font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
  .footer__col ul { display: grid; gap: .5rem; margin-top: .9rem; font-size: .9375rem; }
  .footer__col a { color: var(--on-dark); text-decoration: none; }
  @media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--leaf); text-decoration: underline; } }
  .footer__bas { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dark); color: rgba(255, 255, 255, .78); font-size: .8125rem; }

  /* ===== Toast (copie de l'adresse) ===== */
  .toast {
    position: fixed; bottom: max(1.25rem, env(safe-area-inset-bottom)); left: 50%; z-index: 70;
    max-width: calc(100vw - 2rem); padding: .7rem 1.1rem; border-radius: var(--radius-btn);
    background: var(--ink); color: #fff; font-size: .875rem; font-weight: 500;
    box-shadow: 0 14px 30px -16px rgba(7, 34, 59, .6);
    opacity: 0; transform: translate(-50%, 1rem); pointer-events: none;
    transition: opacity .2s linear, transform .2s var(--ease);
  }
  .toast.est-visible { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Pages secondaires : Mentions légales, 404 (À propos supprimée le 03/10/2026)
   Mentions : un document. Texte courant en --ink, peu de cadres, aucun décor.
   ========================================================================== */
@layer sections {

  /* ===== Mentions légales : un document. Une colonne (≤ 720 px), sections numérotées, aucun décor ===== */
  .legal__doc { max-width: 45rem; padding-block: calc(var(--nav-h) + clamp(1.25rem, 3vw, 2.25rem)) clamp(1.5rem, 4vw, 3rem); font-size: 1rem; line-height: 1.45; }
  @media (min-width: 640px) { .legal__doc { font-size: 1.0625rem; } }
  .legal__entete { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
  .legal__titre { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; }
  .legal__chapeau { margin-top: .75rem; color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; }
  .legal__maj { margin-top: .4rem; color: var(--muted); font-size: .875rem; }
  .legal__bloc { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
  .legal__bloc h2 { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); color: var(--navy); font-size: clamp(1.25rem, 1.6vw, 1.375rem); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
  .legal__bloc h3 { margin-top: 1rem; color: var(--navy); font-size: 1em; font-weight: 600; letter-spacing: 0; }
  .legal__bloc p { margin-top: .45rem; color: var(--ink); }
  .legal__bloc h3 + p { margin-top: .1rem; }
  /* Libellé au-dessus de la valeur sur mobile, deux colonnes ensuite ; aucun cadre, aucun filet */
  .legal__liste { margin-top: .5rem; }
  .legal__liste > div { display: grid; padding-block: .175rem; }
  @media (min-width: 640px) { .legal__liste > div { grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: 1.25rem; padding-block: .15rem; } }
  .legal__liste dt { color: var(--muted); font-size: .875rem; line-height: 1.3; }
  @media (min-width: 640px) { .legal__liste dt { padding-top: .1rem; font-size: .9375rem; line-height: 1.5; } }
  .legal__liste dd { color: var(--ink); }
  .legal a { color: var(--navy); font-weight: 500; }

  /* ===== 404 ===== */
  .page-404 { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; }
  .erreur { width: 100%; max-width: calc(38rem + 2 * var(--gutter)); padding: 3rem var(--gutter); }
  .erreur__logo { font-size: 1.5rem; }
  .erreur__titre { margin-top: 2.5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -.02em; }
  .erreur__texte { margin-top: 1rem; color: var(--muted); font-size: 1.125rem; }
  .erreur__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
  .btn--clair { border-color: var(--navy); background: transparent; color: var(--navy); }
  @media (hover: hover) and (pointer: fine) { .btn--clair:hover { background: var(--surface); transform: translateY(-1px); } }
}

/* Impression : un conducteur de travaux imprime parfois une page pour la montrer */
@media print {
  @page { margin: 16mm 14mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-header, .menu-mobile, .lien-evitement, .toast, .hero__ciel, .hero__brume, .hero__batiment, .hero__marque, .hero__nuages, .hero__credit,
  .terrain__fond, .contact__fond, .contact__cercles, .contact__copier, .nav__progression, .carnet__legende, .comparateur__onglets { display: none !important; }
  .section, .hero__contenu { padding-block: 10mm !important; }
  .sombre, .livrable, .offre, .preuves, .carnet, .ic, .preuve, .carte-offre, .controles, .comparateur, .site-footer { background: #fff !important; box-shadow: none !important; }
  .legal ~ .site-footer { display: none !important; }      /* mentions : 2 pages A4 au plus, sans pied de page */
  .sombre *, .hero *, h1, h2, h3, .lead, p, li, td, th, dt, dd, .kicker { color: #000 !important; }
  .logo__bati { color: #2E7D32 !important; } .logo__emp { color: #0B2D4D !important; }
  .hero, .ciel-anime .hero, .hero__scene { height: auto !important; min-height: 0 !important; background: #fff !important; }
  .hero__scene { position: static !important; overflow: visible !important; }
  .hero__contenu { position: static !important; opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .comparateur__panneau[hidden] { display: block !important; }
  a[href^="http"]::after, a[href^="/"]:not(.logo)::after { content: " (" attr(href) ")"; font-size: 9pt; font-weight: 400; }
  a[href^="mailto:"]::after { content: " (contact@batiempreinte.fr)"; font-size: 9pt; font-weight: 400; }
  .btn { border: 1px solid #000 !important; background: #fff !important; color: #000 !important; }
  .apparait { opacity: 1 !important; transform: none !important; }
  .carnet tr, .ic, .preuve, .carte-offre, .etape, .faq__item { break-inside: avoid; }
}

/* Mouvement réduit : aucune animation, aucune transition au-delà de 150 ms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
