/* Polices hébergées sur le site (SIL OFL 1.1, licences dans /assets/fonts/), sous-ensembles latin et latin-ext.
   Plus aucun appel à Google Fonts : rien ne part vers un tiers à l'affichage d'une page. */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/bebas-neue-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: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-italique-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: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-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: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/bebas-neue-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-italique-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Signed Quotes / Devis Signé · Direction A · Chantier (validée par Marius le 16/11).
   Palette ≈ P08 : suie, blanc, jaune signalisation. Titres en Bebas Neue, texte en IBM Plex Sans.
   Règle de Marius : pages en fond clair, seul le premier écran (et le bandeau final) en noir.
   Le jaune ne sert qu'à l'action : boutons et plaque du logotype. Jamais en texte sur blanc (1,8:1).
   Mobile d'abord : les règles de base valent pour 320 px, les media queries élargissent. */

:root {
  --suie: #0E0E0C;          /* fond du premier écran, texte sur clair : 19,3:1 sur blanc */
  --bitume: #1B1B19;        /* surfaces sur suie */
  --blanc: #FFFFFF;
  --beton: #B4B2AA;         /* texte secondaire sur suie : 9,1:1 */
  --jaune: #F7B500;         /* l'action seule */
  --jaune-survol: #FFC522;
  --outil: #5C5A54;         /* texte secondaire sur blanc : 6,9:1 ; sur --sable : 6,0:1 */
  --sable: #F1F0EC;         /* surfaces sur clair */
  --filet: #D9D7D0;         /* filets décoratifs */
  --bord: #7A776F;          /* bord des champs et des choix : 4,4:1 sur blanc (WCAG 1.4.11) */
  --alerte: #B3261E;        /* erreurs : 6,5:1 sur blanc */
  --titre: "Bebas Neue", "Arial Narrow", "Roboto Condensed", sans-serif;
  --corps: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --marge: clamp(16px, 4vw, 48px);
  --mesure: 54ch;           /* environ 75 caractères d'IBM Plex Sans par ligne */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--blanc); color: var(--suie); font: 400 1.0625rem/1.55 var(--corps); min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, table, figure { margin: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--suie); outline-offset: 3px; }
.sombre :focus-visible { outline-color: var(--jaune); }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; z-index: 40; background: var(--jaune); color: var(--suie); padding: 12px 16px; font-weight: 600; }
.evitement:focus { top: 8px; }

/* ---------- Logotype : la plaque ---------- */
.plaque { display: inline-flex; text-decoration: none; }
.plaque b {
  font: 400 var(--plaque, 26px)/1 var(--titre); letter-spacing: .03em; color: var(--suie);
  background: var(--jaune); padding: .2em .38em .08em; white-space: nowrap;
}

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 14px 22px; background: var(--jaune); color: var(--suie);
  font: 600 1.0625rem/1.2 var(--corps); text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background-color .2s ease;
}
.bouton:hover { background: var(--jaune-survol); }
.bouton:active { transform: translateY(2px); }
.bouton.grand { min-height: 60px; padding: 16px 28px; font-size: 1.1875rem; }
.bouton[aria-busy="true"] { cursor: progress; }
.bouton[aria-busy="true"]::after {
  content: ""; width: 1em; height: 1em; margin-left: .6em; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: tourne .8s linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
.bouton-second {
  display: inline-flex; align-items: center; min-height: 52px; padding: 12px 20px; background: transparent; color: var(--suie);
  border: 2px solid var(--suie); font: 600 1.0625rem/1.2 var(--corps); cursor: pointer; border-radius: 0;
}
.bouton-second:hover { background: var(--sable); }

/* ---------- Premier écran ---------- */
.sombre { background: var(--suie); color: var(--blanc); }
.hero { display: flex; flex-direction: column; gap: 20px; padding: 20px var(--marge) 32px; }
/* En-tête hors du héros (audit UX du 20/11, lot 1) : 16 px au-dessus, 52 px de contenu, comme quand il était dans le héros */
.entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding: 16px var(--marge) 0; }
.entete .bouton { display: none; }
.kicker {
  display: block; font: 500 .9375rem/1.3 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--beton);
  margin-bottom: .7em;
}
.titre-bebas { font: 400 clamp(44px, 12.4vw, 200px)/.9 var(--titre); text-transform: uppercase; letter-spacing: -.005em; }
/* Le h1 porte la taille de sa ligne Bebas : un h2 ne doit jamais paraître plus grand que lui */
h1 { margin: 0; font-weight: 400; font-size: clamp(2.75rem, 1.5rem + 5vw, 7rem); line-height: .9; }
.titre-bebas, .titre-bandeau, .phrase .l, .carte h3 { text-wrap: balance; }
h1 .titre-bebas { display: block; }
.hero .sous-titre { font-size: clamp(1.1875rem, 1rem + .9vw, 1.75rem); line-height: 1.4; max-width: 34ch; }
.hero .sous-titre.long { max-width: 46ch; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }
.hero .action { display: grid; gap: 12px; justify-items: stretch; }
.hero .pied-hero { display: grid; gap: 20px; }
.hero .note { color: var(--beton); font-size: 1rem; }

/* Le cadre photo, à la place d'un mot (accueil) */
.phrase .l { display: block; }
.cadre { display: block; position: relative; overflow: hidden; background: var(--bitume); height: 112px; margin: 10px 0 12px; }
.bande { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.65,0,.35,1); }
.bande img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
@media (max-height: 700px) and (max-width: 639px) { .cadre { height: 64px; } }

/* Fil d'Ariane */
.fil ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9375rem; color: var(--beton); }
.fil li + li::before { content: "/"; margin: 0 .55em; color: var(--beton); }
.fil a { color: var(--blanc); }
.fil [aria-current] { color: var(--beton); }

/* Photo du premier écran de la page d'offre : bureau seulement */
.hero-photo { display: none; }

@media (min-width: 640px) {
  .hero { gap: 28px; padding-top: 28px; padding-bottom: 48px; }
  .entete { min-height: 76px; padding-top: 24px; }
  .phrase .l:first-child { display: flex; align-items: baseline; }
  .cadre { display: inline-block; flex: 1 1 auto; min-width: 1.6em; height: .7em; margin: 0 0 0 .16em; vertical-align: baseline; }
  .hero .action { justify-items: start; }
  .plaque { --plaque: 30px; }
}
@media (min-width: 900px) {
  .entete .bouton { display: inline-flex; }
  .hero.accueil .titre-bebas { font-size: clamp(44px, 10vw, 184px); }
  .hero .pied-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
  .hero .pied-hero .action { justify-items: end; text-align: right; }
  .hero .pied-hero .action .note { max-width: 30ch; }
  .phrase .l:last-child { text-align: right; }
  .hero.offre .corps-hero { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); align-items: end; }
  .hero.offre .titre-bebas { font-size: clamp(44px, 7.6vw, 136px); }
  .hero-photo { display: block; position: relative; }
  .hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}

/* ---------- Sections claires ---------- */
main { display: block; }
.section { padding: clamp(56px, 9vw, 128px) var(--marge); }
.section.sable { background: var(--sable); }
.section + .section:not(.sable):not(.sombre) { padding-top: 0; }
.section.sable + .section:not(.sable):not(.sombre) { padding-top: clamp(56px, 9vw, 128px); }
.grille { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .grille { grid-template-columns: 4fr 8fr; gap: 48px; }
  .grille > .titre-col { position: sticky; top: 100px; align-self: start; }  /* sous l'en-tête collant (76 px) */
}
h2 {
  margin: 0; font: 400 clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem)/1.05 var(--titre); text-transform: uppercase;
  letter-spacing: 0; max-width: 16ch; text-wrap: balance;
}
h3 { margin: 0; font: 600 1.25rem/1.3 var(--corps); }
/* Capitales accentuées (É, À) : sous 1.15 d'interligne, l'accent touche la ligne du dessus (contrôle typo du 17/11) */
:lang(fr) h1, :lang(fr) .titre-bebas, :lang(fr) h2 { line-height: 1.15; }
.texte { display: grid; gap: 1.1em; max-width: var(--mesure); align-content: start; }
.texte > h3 { margin-top: .9em; }
.texte > h3:first-child { margin-top: 0; }
.chapo { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.5; max-width: 46ch; }
.engagement { font-weight: 600; font-size: 1.1875rem; line-height: 1.45; border-left: 4px solid var(--suie); padding-left: 16px; }
.liste { list-style: none; padding: 0; display: grid; gap: .7em; }
.liste li { position: relative; padding-left: 1.4em; }
.liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: .5em; height: .5em; background: var(--suie); }
.relance { display: grid; gap: 12px; justify-items: start; margin-top: 8px; }
.relance .bouton { width: 100%; }
@media (min-width: 640px) { .relance .bouton { width: auto; } }

/* Les trois niveaux du mécanisme */
.niveaux { display: grid; gap: 0; border-top: 2px solid var(--suie); }
.niveau { display: grid; gap: .5em; padding: 20px 0; border-bottom: 1px solid var(--filet); }
.niveau h3 { display: flex; gap: .6em; align-items: baseline; }
.niveau .num { font: 400 1.75rem/1 var(--titre); }
.pivot { font-size: 1.1875rem; font-weight: 600; line-height: 1.45; }

/* Cartes métier */
.cartes { display: grid; gap: 16px; }
@media (min-width: 640px) { .cartes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .cartes.cinq { grid-template-columns: repeat(3, 1fr); } }
.carte { display: grid; align-content: start; gap: 12px; background: var(--sable); padding-bottom: 20px; }
.carte figure { position: relative; aspect-ratio: 3 / 2; background: var(--filet); overflow: hidden; }
.carte figure img { width: 100%; height: 100%; object-fit: cover; }
.carte h3 { font: 400 2rem/1 var(--titre); text-transform: uppercase; padding: 0 20px; }
.carte p { padding: 0 20px; }
[data-provisoire]::after {
  content: attr(data-provisoire); position: absolute; left: 8px; bottom: 8px; background: rgba(14,14,12,.82); color: var(--blanc);
  font: 500 .75rem/1.2 var(--corps); padding: 4px 8px; letter-spacing: .02em;
}
.photo-absente { display: grid; place-items: center; height: 100%; padding: 16px; text-align: center; color: var(--outil); font-size: 1rem; border: 2px dashed var(--bord); }

/* Tableau comparatif : trois colonnes, puis une carte par ligne sur mobile */
.comparatif { width: 100%; border-collapse: collapse; font-size: 1rem; }
.comparatif caption { text-align: left; }
.comparatif th, .comparatif td { text-align: left; vertical-align: top; padding: 14px 16px; }
.comparatif thead th { font: 400 1.5rem/1 var(--titre); text-transform: uppercase; border-bottom: 2px solid var(--suie); }
.comparatif thead th.nous { background: var(--suie); color: var(--blanc); }
.comparatif tbody th { font-weight: 600; width: 22%; }
.comparatif tbody tr { border-bottom: 1px solid var(--filet); }
.comparatif td.nous { background: var(--blanc); font-weight: 500; }
@media (max-width: 899px) {
  .comparatif thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comparatif, .comparatif tbody, .comparatif tr, .comparatif th, .comparatif td { display: block; width: 100%; }
  .comparatif tbody tr { background: var(--blanc); border: 0; margin-bottom: 12px; }
  .comparatif tbody th { background: var(--suie); color: var(--blanc); width: 100%; }
  .comparatif td { border-top: 1px solid var(--filet); }
  .comparatif td::before { content: attr(data-col); display: block; font: 400 1.25rem/1 var(--titre); text-transform: uppercase; color: var(--outil); margin-bottom: 4px; }
  .comparatif td.nous::before { color: var(--suie); }
  .comparatif td.nous { border-left: 4px solid var(--suie); }
}
@media (min-width: 900px) { .comparatif-col { grid-column: 1 / -1; } }

/* Questions fréquentes en replis natifs (lot 3) : la question visible, la réponse dans le HTML, repliée */
.faq { display: grid; gap: 0; border-top: 2px solid var(--suie); max-width: var(--mesure); }
.faq .question { border-bottom: 1px solid var(--filet); }
.faq summary { position: relative; display: block; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.125rem; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: translateY(-75%) rotate(45deg); transition: transform .2s ease;
}
.faq .question[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .reponse { display: grid; gap: .8em; padding: 0 0 20px; }

/* Vidéo : façade (vignette, lecteur au clic) ou emplacement tant qu'elle n'existe pas */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--suie); color: var(--blanc); }
.video iframe, .video .facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .facade { padding: 0; cursor: pointer; background: center / cover no-repeat var(--suie); }
.video .facade span { position: absolute; left: 16px; bottom: 16px; background: var(--jaune); color: var(--suie); font: 600 1rem/1 var(--corps); padding: 14px 18px; }
.emplacement {
  display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; text-align: center; font-size: 1rem; line-height: 1.45;
  border: 2px dashed var(--beton); color: var(--beton);
}
.video .emplacement { position: absolute; inset: 0; }
.emplacement.clair { border-color: var(--bord); color: var(--outil); background: var(--sable); }
.emplacement strong { color: inherit; }
.legende-video { color: var(--outil); font-size: 1rem; margin-top: 12px; }
.transcription, .repli { border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.transcription { margin-top: 16px; }
.transcription summary, .repli summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: inside; }
.transcription > div, .repli > p { padding: 0 0 16px; }

/* Bandeau final */
.bandeau { padding: clamp(64px, 10vw, 144px) var(--marge); display: grid; gap: 24px; }
.bandeau .titre-bandeau { font: 400 clamp(2.75rem, 1.5rem + 5.5vw, 7rem)/.92 var(--titre); text-transform: uppercase; max-width: 18ch; }
.bandeau .promesse { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; max-width: 56ch; }
.bandeau .bouton { justify-self: stretch; }
@media (min-width: 640px) { .bandeau .bouton { justify-self: start; } }

/* Pied de page */
.pied { padding: 32px var(--marge) 40px; border-top: 1px solid var(--bitume); color: var(--beton); font-size: 1rem; line-height: 1.6; display: grid; gap: 12px; }
.pied p { max-width: 54ch; }
.pied a { color: var(--blanc); }
.pied .langue { font-size: 1rem; }
.pied .credits { font-size: 1rem; }
@media (min-width: 900px) { .pied { font-size: .875rem; } .pied .credits { font-size: .8125rem; } .pied .langue { font-size: 1rem; } .pied p { max-width: 58ch; } }
.pied .marque { color: var(--blanc); }

/* ---------- Parcours : formulaire et pages de sortie ---------- */
.hero.parcours { padding-bottom: clamp(32px, 6vw, 64px); }
.hero.parcours .titre-bebas { font-size: clamp(44px, 11vw, 128px); }
.hero.parcours .sous-titre { max-width: 44ch; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }
.accroche-zone { font: 600 1.0625rem/1.4 var(--corps); color: var(--blanc); border-left: 4px solid var(--jaune); padding-left: 12px; }
.colonne { max-width: 760px; }
.parcours-corps { display: grid; gap: 32px; }
.parcours-corps .texte { max-width: var(--mesure); }

.formulaire { background: var(--sable); padding: 20px 16px 24px; display: grid; gap: 16px; }
@media (min-width: 640px) { .formulaire { padding: 32px; } }
.formulaire .intro-form { color: var(--outil); }
.intro-form, .etape .aide { max-width: var(--mesure); }
.progression { display: grid; gap: 8px; }
.progression p { font-weight: 600; font-size: .9375rem; }
.barre-prog { height: 6px; background: #DEDCD5; }
.barre-prog span { display: block; height: 100%; background: var(--suie); width: 10%; transition: width .3s ease; }
.etape { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 14px; }
.etape legend { padding: 0; margin-bottom: 4px; font: 600 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.3 var(--corps); outline: none; }
.etape .aide { color: var(--outil); font-size: 1rem; }
.choix { display: grid; gap: 8px; }
.choix label {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; background: var(--blanc);
  border: 2px solid var(--bord); cursor: pointer; font-size: 1.0625rem; line-height: 1.4;
}
.choix input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choix label::before { content: ""; flex: 0 0 20px; height: 20px; border: 2px solid var(--bord); border-radius: 50%; background: var(--blanc); }
.choix label:has(input:checked) { border-color: var(--suie); background: var(--suie); color: var(--blanc); }
.choix label:has(input:checked)::before { border-color: var(--jaune); background: radial-gradient(circle, var(--jaune) 0 4px, var(--suie) 5px); }
.choix label:has(input:focus-visible) { outline: 3px solid var(--suie); outline-offset: 2px; }
.champ { display: grid; gap: 6px; }
.champ label { font-weight: 600; font-size: 1rem; }
.champ input {
  width: 100%; min-height: 52px; padding: 12px 14px; font: 400 1.0625rem/1.3 var(--corps); color: var(--suie);
  background: var(--blanc); border: 2px solid var(--bord); border-radius: 0;
}
.champ input:focus { border-color: var(--suie); outline: 3px solid var(--suie); outline-offset: 1px; }
.champ input[aria-invalid="true"] { border-color: var(--alerte); }
.case { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.case input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--suie); flex: 0 0 auto; }
.erreur { color: var(--alerte); font-weight: 600; font-size: 1rem; }
.erreur:empty { display: none; }
.actions { display: flex; flex-wrap: wrap-reverse; gap: 12px; justify-content: space-between; align-items: center; margin-top: 4px; }
.actions .bouton { flex: 1 1 auto; }
@media (min-width: 640px) { .actions .bouton { flex: 0 0 auto; } }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mini-form { display: grid; gap: 14px; background: var(--sable); padding: 20px 16px; }
@media (min-width: 640px) { .mini-form { padding: 28px; grid-template-columns: 1fr 1fr; } .mini-form .erreur, .mini-form .bouton { grid-column: 1 / -1; justify-self: start; } }
.agenda { min-height: 520px; }
.preuve { color: var(--outil); font-weight: 600; }
.statut { font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Notes internes de préversion (le build refuse de les publier sur un site indexable) ---------- */
.interne { font-family: var(--corps); }
mark.interne { background: #FBE3E1; color: var(--suie); padding: 0 .15em; text-decoration: underline 2px var(--alerte); text-underline-offset: .25em; }
.sombre mark.interne { background: #5A1F1B; color: var(--blanc); text-decoration-color: #F28B82; }
.note-interne { display: block; border: 2px dashed var(--alerte); background: #FDF1F0; color: var(--suie); padding: 12px 14px; font-size: 1rem; line-height: 1.5; }
.sombre .note-interne { background: #2A1514; color: var(--blanc); border-color: #F28B82; }
.bandeau-interne { background: #FBE3E1; color: var(--suie); border-bottom: 3px solid var(--alerte); padding: 12px var(--marge); font-size: 1rem; line-height: 1.5; }
/* Portraits (pages à propos, auteur du guide) : visibles dès le mobile, nommés comme dans la copy */
.portraits { display: grid; grid-template-columns: repeat(2, minmax(0, 168px)); gap: 16px; align-self: start; }
.portraits.auteur { grid-template-columns: minmax(0, 120px); }
.portraits img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--bitume); }
.portraits figcaption { margin-top: 8px; font-size: .875rem; color: var(--beton); }
@media (min-width: 640px) { .portraits { grid-template-columns: repeat(2, minmax(0, 200px)); } }
/* Photo de la colonne de gauche d'une section (page d'offre) */
.photo-section { margin: 0; }
.photo-section img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo .photo-absente { aspect-ratio: 4 / 3; height: auto; border-color: var(--beton); color: var(--beton); }
.faq .reponse .note-interne { margin-top: 4px; }
.mention-ia { color: var(--outil); font-size: .9375rem; margin-top: 10px; }
.cartes ~ p { max-width: var(--mesure); }
/* Emplacement vidéo : le cadre garde le 16:9 mais grandit si son texte le dépasse (aux petites largeurs) */
.video:has(> .emplacement) { aspect-ratio: auto; }
.video > .emplacement { position: static; aspect-ratio: 16 / 9; }
/* Pages légales et textes de Marc */
.legal { max-width: 860px; }
.legal > p, .legal li { max-width: var(--mesure); }
.legal h2 { font: 600 1.375rem/1.3 var(--corps); text-transform: none; max-width: none; margin-top: 1.2em; }
.legal .tableau-legal { margin: 4px 0 8px; }
.legal .tableau-legal td { max-width: 58ch; }
.legal .comparatif thead th { font: 600 1rem/1.3 var(--corps); text-transform: none; }
.mention-form { color: var(--outil); font-size: .9375rem; line-height: 1.5; max-width: var(--mesure); }
.case span { max-width: var(--mesure); }
.pied .liens-legaux a { color: var(--blanc); }
/* Guides (19/11) : encadré de notre offre (visuellement distinct, titre dans l'encadré), date de relecture des fiches.
   Fin de guide (décision de Marius du 20/11) : ligne d'auteur et dates, mention de transparence (Marc, F4 et 1.4 : même
   corps que le texte, jamais repliée) et portrait, après le bandeau final, sur fond clair (règle de Marius : seuls le
   premier écran et le bandeau final en noir). Bureau : le portrait dans la colonne des titres, le texte dans celle du texte. */
.auteur-fin { padding: clamp(48px, 7vw, 96px) var(--marge); display: grid; gap: 24px; }
.auteur-fin .signature { color: var(--outil); font-size: 1rem; max-width: var(--mesure); }
.auteur-fin .mention { max-width: var(--mesure); border-left: 3px solid var(--bord); padding-left: 14px; }
.auteur-fin .portraits figcaption { color: var(--outil); }
@media (min-width: 1024px) {
  .auteur-fin { grid-template-columns: 4fr 8fr; column-gap: 48px; align-items: start; }
  .auteur-fin > .portraits { grid-column: 1; grid-row: 1 / span 2; }
  .auteur-fin > .signature, .auteur-fin > .mention { grid-column: 2; }
}
.encadre { border: 2px solid var(--suie); background: var(--blanc); padding: 20px 16px 24px; }
.texte > .encadre { display: grid; gap: 1.1em; }
@media (min-width: 640px) { .encadre { padding: 32px; } }
.date-fiche { color: var(--outil); font-size: .9375rem; margin-top: -.6em; }
.bandeau .correction { color: var(--beton); font-size: 1rem; max-width: 56ch; }
/* Un tableau pleine largeur (.comparatif-col) passe sous la colonne du titre : ce titre ne colle plus en haut d'écran,
   sinon il glisse sur l'en-tête du tableau au défilement (pages d'offre, solar, photovoltaique, guides ; relevé le 19/11).
   .avec-tableau reste pour les navigateurs sans :has(). */
@media (min-width: 1024px) {
  .grille.avec-tableau > .titre-col, .grille:has(> .comparatif-col) > .titre-col { position: static; }
}

/* ---------- Navigation : audit UX du 20/11, lots 1 et 2 (plan d'Aurel, options A de Marius) ----------
   Téléphone : la plaque et « Menu » ; le menu est un panneau natif (popover), ouvert depuis l'en-tête ou la barre du bas.
   À partir de 900 px : en-tête collant, menu en ligne, bouton d'action. Un seul élément collant sur téléphone. */
.bouton-menu, .menu-fermer {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; background: transparent; color: var(--blanc);
  border: 2px solid var(--beton); border-radius: 0; font: 600 1rem/1 var(--corps); cursor: pointer;
}
.bouton-menu:hover, .menu-fermer:hover { border-color: var(--blanc); }
.menu-tete { display: flex; justify-content: flex-end; padding-bottom: 8px; }
.menu-liste { list-style: none; margin: 0; padding: 0; }
.menu-liste > li { border-bottom: 1px solid var(--bitume); }
.menu-liste > li > a, .sous-menu > summary {
  display: flex; align-items: center; min-height: 56px; padding: 8px 0; color: var(--blanc); text-decoration: none; cursor: pointer;
  font: 400 2rem/1 var(--titre); text-transform: uppercase; letter-spacing: .02em;
}
.sous-menu > summary { list-style: none; gap: 12px; }
.sous-menu > summary::-webkit-details-marker { display: none; }
.sous-menu > summary::after {
  content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-30%) rotate(45deg);
}
.sous-menu[open] > summary::after { transform: translateY(20%) rotate(-135deg); }
.sous-menu ul { list-style: none; margin: 0; padding: 0 0 12px; }
.sous-menu ul a {
  display: flex; align-items: center; min-height: 44px; padding-left: 16px; color: var(--blanc); text-decoration: none;
  font: 500 1.125rem/1.3 var(--corps);
}
.menu a:hover, .sous-menu > summary:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.menu a[aria-current="page"], .sous-menu > summary.ici { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
@supports selector(:popover-open) {
  .menu:popover-open {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; height: auto; max-height: 88svh; margin: 0; overflow-y: auto;
    overscroll-behavior: contain; border: 0; border-top: 1px solid var(--bitume); background: var(--suie); color: var(--blanc);
    padding: 12px var(--marge) calc(24px + env(safe-area-inset-bottom));
  }
  .menu::backdrop { background: rgba(14, 14, 12, .72); }
}
/* Sans popover (navigateurs anciens) : le menu s'affiche en ligne sous la plaque, sans bouton */
@supports not selector(:popover-open) {
  @media (max-width: 899px) {
    .entete { flex-wrap: wrap; }
    .bouton-menu, .menu-tete { display: none; }
    .menu { flex: 1 0 100%; padding-bottom: 8px; }
    .menu-liste { display: flex; flex-wrap: wrap; gap: 0 20px; }
    .menu-liste > li { border: 0; }
    .menu-liste > li > a, .sous-menu > summary { min-height: 44px; font: 500 1rem/1.2 var(--corps); text-transform: none; }
  }
}
@media (min-width: 900px) {
  .entete { position: sticky; top: 0; z-index: 20; min-height: 76px; padding: 12px var(--marge); gap: clamp(16px, 2vw, 32px); }
  .entete .bouton-menu, .menu-tete { display: none; }
  .menu[popover] {
    display: block; position: static; inset: auto; width: auto; height: auto; max-height: none; margin: 0 0 0 auto; padding: 0;
    border: 0; background: none; color: inherit; overflow: visible;
  }
  .menu-liste { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
  .menu-liste > li { border: 0; }
  .menu-liste > li > a, .sous-menu > summary { min-height: 44px; padding: 0; font: 500 1rem/1.2 var(--corps); text-transform: none; letter-spacing: 0; }
  .sous-menu > summary { gap: 8px; }
  .sous-menu > summary::after { width: 7px; height: 7px; }
  .sous-menu { position: relative; }
  .sous-menu ul {
    position: absolute; top: 100%; left: -16px; z-index: 21; min-width: 200px; padding: 8px 0; background: var(--suie);
    border: 1px solid var(--bitume);
  }
  .sous-menu ul a { padding: 0 16px; font-size: 1rem; }
  html { scroll-padding-top: 100px; }  /* une ancre ou un champ ne passe jamais sous l'en-tête collant */
}

/* Barre du bas, téléphone, pages commerciales (lot 2) : bouton d'action et « Menu », absente au premier écran */
.barre-bas {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 8px;
  padding: 8px var(--marge) calc(8px + env(safe-area-inset-bottom)); background: var(--suie); border-top: 1px solid var(--bitume);
  transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
}
.barre-bas.visible { transform: none; visibility: visible; transition: transform .25s ease; }
.barre-bas .bouton { flex: 1 1 auto; min-height: 48px; padding: 10px 14px; font-size: 1rem; container-type: inline-size; }
/* Libellé court de Tiffany seulement là où le libellé entier ne tient pas sur une ligne : le seuil est la largeur mesurée
   du libellé entier dans la barre (IBM Plex Sans 600, 16 px : EN 190,0 px, FR 196,6 px dans Chromium le 20/11), plus 4 px
   pour les écarts de rendu de Safari (contre-lecture d'Urbain : à 196,2 px de contenu, le libellé FR passait à la ligne). Sans requête de
   conteneur, le libellé entier passe à la ligne. */
.libelle-court { display: none; }
@container (max-width: 194px) { :lang(en) .barre-bas .libelle-long { display: none; } :lang(en) .barre-bas .libelle-court { display: inline; } }
@container (max-width: 201px) { :lang(fr) .barre-bas .libelle-long { display: none; } :lang(fr) .barre-bas .libelle-court { display: inline; } }
.barre-bas .bouton-menu { flex: 0 0 auto; min-height: 48px; }
:root:has(.barre-bas) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
/* Marge basse du pied de page au moins égale à la hauteur de la barre (65 px, 75 px à 320 px quand le libellé passe sur deux lignes) : elle ne recouvre jamais les liens légaux (Marc) */
body:has(.barre-bas) .pied { padding-bottom: calc(40px + 76px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
  .barre-bas { display: none; }
  :root:has(.barre-bas) { scroll-padding-bottom: 0; }
  body:has(.barre-bas) .pied { padding-bottom: 40px; }
}

/* « Sur cette page » (lot 2) : après la section du chapô ; titre qui n'est pas un h2 (Sofia) */
.sommaire { padding: 0 var(--marge) clamp(56px, 9vw, 128px); }
.section.sable + .sommaire { padding-top: clamp(56px, 9vw, 128px); }
.sommaire + .section:not(.sable):not(.sombre) { padding-top: 0; }
.sommaire-corps { display: grid; gap: 12px; border-top: 2px solid var(--suie); padding-top: 16px; }
.sommaire-titre { font: 600 .9375rem/1.3 var(--corps); letter-spacing: .06em; text-transform: uppercase; color: var(--outil); }
.sommaire ul { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 32px; }
.sommaire li > a { display: block; padding: 8px 0; font-weight: 500; }
.sommaire li ul { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0 0 8px 16px; }
.sommaire li ul a { padding: 5px 0; font-weight: 400; font-size: 1rem; }
@media (min-width: 640px) { .sommaire-corps > ul { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 1024px) {
  .sommaire-corps { grid-template-columns: 4fr 8fr; gap: 48px; padding-top: 20px; }
  .sommaire.complet .sommaire-corps > ul { grid-template-columns: 1fr; }
}
.retour-sommaire { margin-top: 32px; font-size: 1rem; }
@media (min-width: 1024px) { .retour-sommaire { padding-left: calc((100% - 48px) / 3 + 48px); } }

/* Guides : barre de lecture en CSS seul, à partir de 900 px, collée au bas de l'en-tête : elle ne recouvre aucun texte */
.barre-lecture { display: none; }
@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .barre-lecture {
      display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--beton); pointer-events: none;
      transform-origin: 0 50%; animation: lecture linear both; animation-timeline: scroll(root block);
    }
  }
}
@keyframes lecture { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Pied de page en plan du site (lot 1, libellés de Tiffany) : une liste, seul titre de groupe « Trades » / « Métiers ».
   Liens de même taille et de même contraste que les liens légaux (Marc) */
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan > ul { display: grid; gap: 2px; max-width: 58ch; }
.plan a { display: inline-block; padding: 6px 0; color: var(--blanc); }
.plan-metiers { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.plan-metiers ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
.plan .plan-titre { color: var(--beton); }

/* Formulaire (lot 4) : pas de coupure « est-/elle » ; un groupe de choix invalide se voit comme un champ invalide */
.insecable { white-space: nowrap; }
.choix label:has(input[aria-invalid="true"]) { border-color: var(--alerte); }

/* Formulaire (lot 4) : la première réponse au-dessus de 553 px à 375 px de large (iPhone SE dans Safari), sans changer un mot.
   On reprend l'air entre le héros et le formulaire, et l'interligne du titre FR (aucune capitale accentuée : la règle des
   1,15 pour É et À ne le concerne pas ; à revoir si le titre en reçoit une). */
@media (max-width: 639px) {
  main:has(#formulaire) .hero.parcours { padding-bottom: 24px; }
  main:has(#formulaire) > .section { padding-top: 16px; }
  #formulaire { padding-top: 16px; }
}
:lang(fr) main:has(#formulaire) h1.titre-bebas { line-height: 1; }
