/* ==========================================================================
   Audicopro Thermique , bureau-etudes-thermique.fr
   DNA (registre, slug bureau-etudes-thermique) :
   Archivo / Atkinson Hyperlegible / Spline Sans Mono (donnees) ·
   blueprint-navy (fond navy profond, accent cyan signal sur actions+valeurs) ·
   cool · hero calc-sheet-blueprint (coupe d'enveloppe + feuille de calcul) ·
   compact · blueprint-grid (trame de plan) · cut (coins coupes, filets cyan) ·
   ruled-editorial (filets + reperes de cotation en mono).
   Signature : « La note de calcul thermique : le batiment lu comme une coupe
   d'enveloppe annotee, chaque etude rendue en feuille de calcul. »
   ========================================================================== */

:root {
  /* Fond navy / bleu profond technique (blueprint) PAR DEFAUT */
  --navy: #0e1b2e;           /* fond de page (plan/blueprint) */
  --navy-2: #14243a;         /* surfaces internes (feuille de calcul) */
  --navy-3: #1b3251;         /* bandes / encarts */

  --ink: #eaf1f9;            /* texte principal sur navy (encre claire) */
  --ink-2: #b3c4d6;          /* texte secondaire */
  --ink-3: #8295aa;          /* texte tertiaire, legendes (AA sur navy) */

  --line: #28425f;           /* filets fins sur navy */
  --line-strong: #3b5d80;    /* filet fort sur navy */

  --paper: #f5f7fb;          /* sections claires (papier-calcul, respiration) */
  --paper-2: #ffffff;        /* surfaces claires internes */
  --paper-3: #e7edf5;        /* bandes claires alternees */
  --paper-ink: #112033;      /* texte sur fond clair */
  --paper-ink-2: #34495f;
  --paper-ink-3: #5d748c;

  /* Accent action / signal : cyan electrique (CTA + valeurs mono UNIQUEMENT) */
  --signal: #2bcad9;         /* CTA, action, valeurs ; encre foncee dessus = AA */
  --signal-2: #0e8d9c;       /* hover (plus fonce) */
  --accent-ink: #04212a;     /* encre foncee sur cyan, passe AA (>7:1) */
  --signal-soft: #11314a;    /* fond cyan tres discret sur navy */
  --signal-soft-paper: #d8f2f5; /* fond cyan tres clair sur papier */

  /* Danger / non-conformite : corail distinct du signal cyan */
  --danger: #e06a4c;
  --danger-soft: #3a2620;
  --danger-soft-paper: #f8e2db;

  /* Trame blueprint (grille fine cyan sur navy) */
  --grid: rgba(120, 200, 215, 0.10);

  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --radius: 0px;             /* coins vifs ; le chanfrein se fait via clip-path */
  --chamfer: 10px;           /* taille du coin coupe (shape : cut) */
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy);
  line-height: 1.6;
  font-size: 1.0rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4.4vw, 3.3rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); font-weight: 700; text-wrap: balance; }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); font-weight: 700; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: #4fd0de; }
strong { font-weight: 700; color: var(--ink); }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--signal); color: var(--accent-ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.4rem, 5.5vw, 4.2rem) var(--gutter); }
.section.narrow { max-width: 880px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 65ch; }

/* CALC : planche de calcul reglee. Intitule + repere dans la colonne gauche,
   contenu a droite, filet de cotation en separation. Rythme ruled-editorial. */
.calc { border-top: 2px solid var(--line-strong); padding-top: clamp(1.2rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: clamp(1.2rem, 4vw, 3.2rem); align-items: start; }
.calc-head { position: sticky; top: 5rem; min-width: 0; }
.calc-body { min-width: 0; }
.calc-tag { font-family: var(--font-mono); font-weight: 600; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: .4rem; }
.calc-due { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); margin-top: .4rem; }
.calc-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-top: .5rem; }
.calc-body > :first-child { margin-top: 0; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem var(--gutter);
  background: var(--navy);
  border-bottom: 1px solid var(--line-strong);
}
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: .1rem; }
.brand b { color: var(--signal); font-weight: 800; }
.brand .brand-sub { font-family: var(--font-mono); font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-left: .35rem; }
.nav { display: flex; gap: .15rem; margin-left: auto; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav > a, .nav-item > a, .nav-toggle { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; padding: .5rem .65rem; border: 0; background: none; cursor: pointer; display: inline-block; }
.nav > a:hover, .nav-item > a:hover, .nav-toggle:hover { color: var(--signal); }
.nav-toggle::after { content: " ▾"; color: var(--ink-3); font-size: .75em; }
.nav-panel { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--navy-2); border: 1px solid var(--line-strong); padding: .4rem; z-index: 60; }
.nav-item:hover .nav-panel, .nav-item:focus-within .nav-panel { display: block; }
.nav-panel a { display: block; padding: .5rem .6rem; font-size: .9rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-panel a:last-child { border-bottom: 0; }
.nav-panel a:hover { background: var(--signal-soft); color: var(--signal); }
.header-mail { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--ink); text-decoration: none; white-space: nowrap; padding: .3rem .5rem; }
.header-mail:hover { color: var(--signal); }
.header-mail span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .62rem; color: var(--ink-3); letter-spacing: .02em; }
.header-cta { background: var(--signal); color: var(--accent-ink); padding: .55rem 1rem; font-family: var(--font-head); font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid var(--signal); white-space: nowrap; clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); }
/* Hover : on garde l'encre foncee (AA) sur un cyan a peine eclairci, jamais blanc
   sur cyan moyen (3.96 KO). dark-ink sur #2bcad9..#5fd9e4 = bien > 4.5:1. */
.header-cta:hover { background: #5fd9e4; border-color: #5fd9e4; color: var(--accent-ink); }
.nav-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); width: 42px; height: 38px; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; padding: 0 9px; }
.nav-burger span { display: block; height: 2px; background: var(--ink); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .96rem; text-decoration: none; padding: .72rem 1.25rem; cursor: pointer; border: 1px solid var(--signal); background: var(--signal); color: var(--accent-ink); transition: background .15s, border-color .15s; clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); }
/* Hover : cyan eclairci + encre foncee (AA), jamais blanc sur cyan moyen. */
.button:hover { background: #5fd9e4; border-color: #5fd9e4; color: var(--accent-ink); }
.button-lg { padding: .9rem 1.6rem; font-size: 1.04rem; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--navy-3); color: #fff; border-color: var(--signal); }
.button.ghost-on-dark { border-color: #41608a; color: var(--ink); }
.button.inverse { background: var(--ink); color: var(--navy); border-color: var(--ink); }
.button.inverse:hover { background: #fff; color: var(--navy); }
.button.wide { width: 100%; text-align: center; }

/* ── HERO : coupe d'enveloppe blueprint + feuille de note de calcul ───────── */
.hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.4rem, 3.5vw, 2.4rem) var(--gutter) clamp(1.8rem, 4.5vw, 3rem); }
.hero-frame { border: 1px solid var(--line-strong); background:
    linear-gradient(0deg, var(--navy-2), var(--navy-2)),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 26px);
  background-blend-mode: normal, normal, normal; padding: clamp(1.2rem, 3vw, 2.2rem); position: relative; }
/* Reglette de cotation cyan (anomalie #2) : bande graduee qui traverse le haut. */
.hero-rule { position: absolute; left: -1px; right: -1px; top: -1px; height: 22px; background: var(--navy); border-bottom: 1px solid var(--signal); display: flex; justify-content: space-between; align-items: center; padding: 0 .6rem; }
.hero-rule span { font-family: var(--font-mono); font-size: .6rem; color: var(--signal); opacity: .85; position: relative; }
.hero-rule span::after { content: ""; position: absolute; bottom: -6px; left: 50%; width: 1px; height: 5px; background: var(--signal); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(1.4rem, 3.5vw, 2.6rem); align-items: start; margin-top: 1rem; }
.hero-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--signal); margin: 0 0 .7rem; }
.hero h1 { margin-bottom: .7rem; }
.hero-copy { font-size: 1.05rem; color: var(--ink-2); max-width: 54ch; }
.hero-cite { font-size: .92rem; color: var(--ink-2); border-left: 2px solid var(--signal); padding: .2rem 0 .2rem .8rem; margin: 1rem 0; }

/* COUPE D'ENVELOPPE (signature #1 + anomalie #1 : deborde du cadre) */
.envelope { margin: 1.2rem 0 0; position: relative; }
.env-layer { position: relative; padding: .55rem .8rem; border: 1px solid var(--line-strong); margin-bottom: -1px; display: flex; align-items: center; justify-content: space-between; }
.env-mur { background: repeating-linear-gradient(45deg, #1c3150 0 6px, #233c5e 6px 12px); }
.env-iso { background: repeating-linear-gradient(-45deg, #14323a 0 5px, #163a44 5px 10px); margin-right: -clamp(0px, 3vw, 26px); }
.env-iso { margin-right: calc(-1 * clamp(0px, 3vw, 28px)); } /* deborde a droite du cadre */
.env-par { background: var(--navy-3); }
.env-lab { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink); }
.env-val { font-family: var(--font-mono); font-size: .82rem; color: var(--signal); }
.env-cotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .7rem; }
.env-cote { border: 1px solid var(--line); padding: .5rem .6rem; background: var(--navy); }
.env-cote b { font-family: var(--font-head); font-size: .78rem; color: var(--ink-2); display: block; }
.env-cote .mono { display: block; font-size: 1.25rem; font-weight: 600; color: var(--signal); line-height: 1.1; }
.env-cote small { font-family: var(--font-mono); font-size: .62rem; color: var(--ink-3); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }

/* FEUILLE DE NOTE DE CALCUL (signature, enveloppe le form) */
.calc-sheet { position: relative; background: var(--navy-2); border: 1px solid var(--signal); padding: 1.2rem 1.2rem 1.3rem; margin-top: 1.6rem; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.calc-sheet-tab { position: absolute; top: -1.4rem; left: -1px; background: var(--signal); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; padding: .38rem 1rem; }
.calc-sheet-title { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; margin: .2rem 0 .2rem; }
.calc-sheet-note { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); margin-bottom: 1rem; }
.calc-sheet .reassurance { margin-top: .9rem; }

/* ── Form ────────────────────────────────────────────────────────────────── */
.form { display: grid; gap: .7rem; }
.form label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--ink-2); display: grid; gap: .25rem; }
.form .row2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .7rem; }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: .96rem; color: var(--ink);
  padding: .58rem .65rem; border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--navy); width: 100%;
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); }
.form select option { color: #102033; }
.form-step2 { margin-top: .2rem; }
.form-step2 > summary { font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--signal); cursor: pointer; padding: .4rem 0; list-style: none; }
.form-step2 > summary::-webkit-details-marker { display: none; }
.form-step2 > summary::before { content: "+ "; font-weight: 800; }
.form-step2[open] > summary::before { content: "– "; }
.form-step2 .form { margin-top: .6rem; }
.consent { display: flex !important; grid-template-columns: none !important; flex-direction: row; align-items: flex-start; gap: .5rem; font-weight: 400 !important; font-size: .8rem !important; color: var(--ink-2); line-height: 1.45; text-transform: none; }
.consent input { width: auto; margin-top: .15rem; flex-shrink: 0; }
.reassurance { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); }

/* ── Sections claires (respiration : papier-calcul) ──────────────────────── */
.band-paper { background: var(--paper); color: var(--paper-ink); }

/* ── SelecteurEtude : la feuille « quelle etude » (signature #3) ──────────── */
.etude { border: 1px solid var(--line-strong); background: var(--navy); }
.etude-rows { display: grid; }
.etude-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0,1fr) minmax(0, 210px); gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-top: 1px solid var(--line); }
.etude-row:first-child { border-top: 0; }
.etude-row .er-name { font-family: var(--font-head); font-weight: 700; }
.etude-row .er-name span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .7rem; color: var(--ink-3); }
.etude-row .er-desc { font-size: .9rem; color: var(--ink-2); }
.er-status { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; line-height: 1.2; text-align: right; padding: .3rem .6rem; border: 1px solid transparent; white-space: normal; overflow-wrap: break-word; }
.er-status.due { background: var(--signal-soft); color: var(--signal); border-color: #1d4a5c; }
.er-status.vote { background: #18324a; color: #8fc7e0; border-color: #27496a; }
.er-status.opt { background: var(--navy-3); color: var(--ink-2); border-color: var(--line); }
.etude-tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .9rem; align-items: start; padding: 1.1rem; border-top: 1px solid var(--line-strong); background: var(--navy-2); }
.etude-tool label, .simulator-grid label { display: flex; flex-direction: column; gap: .35rem; align-self: start; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--ink); }
.etude-tool select, .simulator-grid select { width: 100%; box-sizing: border-box; }
.etude-out { padding: 1.1rem; border-top: 1px solid var(--line-strong); }
.etude-out strong { font-family: var(--font-head); font-size: 1.05rem; display: block; margin-bottom: .3rem; }
.etude-out span { color: var(--ink-2); font-size: .92rem; }

/* ── SimulateurSurface (repere Cep) ──────────────────────────────────────── */
.simulator { background: var(--navy); border: 1px solid var(--line-strong); padding: 1.3rem; }
.simulator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .9rem; align-items: start; }
.simulator-out { margin-top: 1.1rem; border-top: 1px solid var(--line-strong); padding-top: 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; }
.sim-figure { font-family: var(--font-mono); font-weight: 600; font-size: 1.7rem; color: var(--signal); line-height: 1.1; }
.sim-figure small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .74rem; color: var(--ink-3); margin-top: .3rem; }
.sim-note { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-3); margin-top: .9rem; line-height: 1.5; }

/* ── Methodologie 5 etapes (filets numerotes par index reel) ─────────────── */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps .step { display: grid; grid-template-columns: 3.2rem minmax(0,1fr); gap: 1.1rem; padding: 1.05rem 0; border-top: 1px solid var(--line); align-items: start; }
.steps .step:first-child { border-top: 1px solid var(--line-strong); }
.steps .step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 600; font-size: 1.5rem; color: var(--signal); line-height: 1; }
.steps .step strong { font-family: var(--font-head); display: block; font-size: 1.04rem; margin-bottom: .15rem; }
.steps .step span { color: var(--ink-2); font-size: .94rem; }

/* ── Arguments "pourquoi notre bureau" (filets, offset) ──────────────────── */
.args { display: grid; gap: 0; }
.args .arg { display: grid; grid-template-columns: minmax(0, 220px) minmax(0,1fr); gap: 1.2rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.args .arg:first-child { border-top: 1px solid var(--line-strong); }
.args .arg strong { font-family: var(--font-head); font-size: 1.02rem; }
.args .arg p { margin: 0; color: var(--ink-2); font-size: .94rem; }

/* ── Sheets (tableaux : note de calcul, prestations, confusions) ─────────── */
.sheet-wrap { overflow-x: auto; max-width: 100%; }
.sheet { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet th, .sheet td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
.sheet thead th { font-family: var(--font-head); border-bottom: 1px solid var(--line-strong); background: var(--navy-3); color: var(--ink); }
.sheet tbody th[scope=row] { font-family: var(--font-head); color: var(--ink); }
.sheet tbody td { color: var(--ink-2); font-family: var(--font-mono); font-size: .85rem; }
.sheet tbody tr:last-child td, .sheet tbody tr:last-child th { border-bottom: 1px solid var(--line-strong); }
.sheet-hint { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); margin-top: .35rem; }
.prixbox { background: var(--navy); border: 1px solid var(--line-strong); padding: 1.1rem 1.2rem; }

/* ── SourceBox ───────────────────────────────────────────────────────────── */
.source-box { background: var(--navy-2); border-left: 3px solid var(--signal); padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: .9rem; color: var(--ink-2); }
.source-box strong { display: block; font-family: var(--font-head); margin-bottom: .25rem; color: var(--ink); }
.aff-line { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); margin: .3rem 0; }
.aff-line strong { color: var(--ink-2); }

/* ── Trust badges / certifs (rangee compacte equilibree 2x2) ─────────────── */
/* Rangee de badges compacte equilibree 2x2 ; colonnes 1fr (jamais max-content qui
   deborde) -> les libelles longs reviennent a la ligne au lieu de pousser le cadre. */
.certs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .55rem; margin: 1rem 0 0; max-width: 100%; }
.certs li { list-style: none; font-family: var(--font-head); font-weight: 600; font-size: .73rem; line-height: 1.2; color: var(--ink-2); border: 1px solid var(--line-strong); padding: .3rem .55rem; min-width: 0; white-space: normal; overflow-wrap: break-word; text-align: center; }

/* ── FAQ (panneau distinct des blocs de liens) ───────────────────────────── */
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); padding: .2rem 0; }
.faq details:first-child { border-top: 1px solid var(--line-strong); }
.faq summary { font-family: var(--font-head); font-weight: 700; font-size: 1rem; cursor: pointer; padding: .85rem 1.8rem .85rem 0; position: relative; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .75rem; font-size: 1.3rem; color: var(--signal); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1rem; color: var(--ink-2); margin: 0; max-width: 70ch; }
.faq-section .faq-panel { background: var(--navy-2); border: 1px solid var(--signal); padding: clamp(1.3rem, 3vw, 2.1rem) clamp(1.3rem, 3vw, 2.1rem) clamp(.5rem, 1.5vw, .9rem); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.faq-section .faq-panel > h2 { margin-top: 0; }
.faq-eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: var(--signal); display: block; margin-bottom: .3rem; }

/* ── Link lists / maillage ───────────────────────────────────────────────── */
.link-list { display: grid; gap: 0; }
.link-list a { display: block; padding: .7rem 0; border-top: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; }
.link-list a:first-child { border-top: 1px solid var(--line-strong); }
.link-list a:hover { color: var(--signal); padding-left: .4rem; }
.link-list a::before { content: "→ "; color: var(--signal); }

/* ── col-pair : appairage des sections soeurs courtes (2-up desktop) ──────── */
.col-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.6rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); align-items: start; }
.col-group h2 { margin: 0 0 .2rem; }
/* 3e bloc seul d'une grille 2-up : centre, largeur d'une colonne */
.col-pair > .col-group:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc((100% - clamp(2rem, 5vw, 4rem)) / 2); justify-self: center; }

/* Section form de fin de page (non-business) : copy a gauche, form a droite */
.lead-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.lead-band > * { min-width: 0; }
.col-pair > * { min-width: 0; }

@media (max-width: 720px) { .col-pair { grid-template-columns: 1fr; gap: 1.8rem; } .col-pair > .col-group:last-child:nth-child(odd) { width: auto; justify-self: stretch; grid-column: auto; } }
@media (max-width: 760px) { .lead-band { grid-template-columns: 1fr; } }

/* ── CTA next-step ───────────────────────────────────────────────────────── */
.cta-next { background: var(--navy-3); color: var(--ink); border: 1px solid var(--signal); padding: clamp(1.4rem, 3vw, 2.2rem); clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer)); }
.cta-next h2 { color: #fff; }
.cta-next .lead { color: var(--ink-2); }
.cta-next-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.cta-band { color: var(--ink); border: 1px solid var(--line-strong); padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: var(--navy-2); }
.cta-band strong { font-family: var(--font-head); font-size: 1.04rem; }
.cta-band p { margin: .2rem 0 0; color: var(--ink-2); font-size: .92rem; max-width: 52ch; }

/* ── Article (filles / guides) ───────────────────────────────────────────── */
.article { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.6rem,4vw,2.6rem) var(--gutter); }
.article-head { max-width: 760px; }
.breadcrumb { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); margin: .4rem 0; }
.breadcrumb a { color: var(--ink-3); }

/* ── Footer (un seul etage, pleine largeur de page) ──────────────────────── */
.cert-band { background: #08111d; color: var(--ink-2); }
.cert-band-inner { max-width: var(--maxw); margin: 0 auto; padding: 1rem var(--gutter); font-family: var(--font-mono); font-weight: 400; font-size: .78rem; letter-spacing: .01em; text-align: center; }
.site-footer { background: #0a1626; border-top: 1px solid var(--line-strong); }
.foot-cols { padding: clamp(1.5rem,2.6vw,2.2rem) clamp(1.2rem,4vw,3rem) 1.1rem; display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 1.4rem 2rem; align-items: start; }
.foot-col strong { font-family: var(--font-head); font-size: .92rem; display: block; margin-bottom: .6rem; color: var(--ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.foot-col a { font-size: .86rem; color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--signal); }
.foot-brandblock { max-width: 30rem; }
.foot-brandblock p { font-size: .85rem; color: var(--ink-2); margin: 0 0 .45rem; }
.foot-mail { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.foot-mail:hover { color: var(--signal); }
.foot-bottom { padding: .8rem clamp(1.2rem,4vw,3rem) 1.3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; font-family: var(--font-mono); font-size: .78rem; color: var(--ink-3); }
.foot-bottom a { color: var(--ink-3); }
@media (max-width: 940px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

/* ── Mobile sticky CTA ───────────────────────────────────────────────────── */
.mobile-cta { display: none; }

/* ── Consent banner ──────────────────────────────────────────────────────── */
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #08111d; color: var(--ink); padding: 1rem var(--gutter); display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: center; z-index: 80; font-size: .9rem; }
.consent-banner p { margin: 0; }
.consent-banner .button { padding: .5rem 1rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1300px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid .hero-copy { max-width: 60ch; }
  /* Mobile/tablette : eyebrow + H1 au-dessus du form ; sous-titre/extra dessous.
     Submit ATF garanti (cf. regle skill). */
  .hero-grid > div:first-child, .hero-lead { display: contents; }
  .hero-eyebrow { order: 1; }
  .hero-lead h1 { order: 2; }
  .calc-sheet { order: 3; margin-top: 1.1rem; display: block; }
  .hero-copy { order: 4; margin-top: 1.3rem; }
  .hero-extra { order: 5; margin-top: 1.2rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-head { position: static; }
  .calc-body { min-width: 0; }
  .etude-row { grid-template-columns: 1fr; gap: .4rem; }
  .er-status { text-align: left; justify-self: start; }
  .args .arg { grid-template-columns: 1fr; gap: .3rem; }
  /* coupe d'enveloppe : annule le debordement en mobile */
  .env-iso { margin-right: 0; }
}
/* Bascule nav -> burger alignee sur la reorg hero (G30/G31). */
@media (max-width: 1300px) {
  .nav, .header-mail { display: none; }
  .nav-burger { display: flex; }
  .site-header { gap: .6rem; }
  .header-cta { margin-left: auto; padding: .5rem .8rem; font-size: .86rem; }
  .nav.nav-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy); border-bottom: 1px solid var(--line-strong); padding: .5rem var(--gutter) 1rem; gap: 0; }
  .nav.nav-open > a, .nav.nav-open .nav-item { border-top: 1px solid var(--line); }
  .nav.nav-open .nav-item { display: flex; flex-direction: column; }
  .nav.nav-open .nav-panel { display: block; position: static; border: 0; padding: 0 0 .4rem .8rem; min-width: 0; }
  .nav.nav-open .nav-toggle::after { content: ""; }
}
@media (max-width: 760px) {
  .mobile-cta { color: var(--ink); display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; gap: .4rem; padding: .35rem .5rem; background: var(--navy); border-top: 1px solid var(--line-strong); }
  .mobile-cta a { flex: 1; text-align: center; padding: .55rem; font-size: .88rem; }
  body { padding-bottom: 4rem; }
  .consent-banner { bottom: 3.6rem; }
  /* Hero compact mobile : H1 plus petit, form resserre (submit ATF). */
  .hero { padding: .5rem var(--gutter) 1.6rem; }
  .hero-frame { padding: .8rem .9rem 1.1rem; }
  .hero-rule { height: 18px; }
  .hero-lead h1 { font-size: clamp(1.3rem, 5.6vw, 1.68rem); line-height: 1.12; margin: .05rem 0 0; }
  .hero-eyebrow { margin: 0 0 .15rem; font-size: .74rem; }
  .calc-sheet { padding: .85rem 1rem 1rem; }
  .calc-sheet-tab { top: -1.05rem; font-size: .68rem; padding: .3rem .8rem; }
  .calc-sheet-title { font-size: 1rem; margin: .12rem 0 .05rem; }
  .calc-sheet-note { margin-bottom: .6rem; font-size: .74rem; }
  .form { gap: .42rem; }
  .calc-sheet .form input, .calc-sheet .form select { padding: .5rem .55rem; }
  .calc-sheet .consent { font-size: .76rem !important; }
  .calc-sheet .button.wide { scroll-margin-bottom: 60px; padding: .72rem; }
  .form input, .form select, .form textarea { padding: .55rem .6rem; }
  .form .row2 { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .55rem; }
  .form .row2 label { font-size: .76rem; min-width: 0; }
  .steps .step { grid-template-columns: 2.4rem 1fr; gap: .8rem; }
  .sheet { min-width: 540px; }
  .sheet-col5 { min-width: 620px; }
  .env-cotes { grid-template-columns: 1fr 1fr 1fr; gap: .35rem; }
}
