/* GEMORA B.T.P — gemorabtp.com. Aucune dépendance, aucune police distante, aucun script.

   Direction (refonte du 15/11/2026) : le site se lit comme une planche d'exécution, et l'on y voit
   l'ouvrage se dessiner. Bleu marine du dossier de présentation, jaune des dépliants, repères en
   petites capitales espacées, cartouche de planche technique.
   Moment signature : l'élévation du bandeau de tête, tracée niveau par niveau au chargement.

   Règles du système :
   - huit tailles de texte, toutes dans :root ; aucun libellé sous 12 px ;
   - le jaune sert de fond ou de trait ; pour du texte sur fond clair, --jaune-texte ;
   - l'état de base est l'état final : le mouvement n'existe que dans
     @media (prefers-reduced-motion: no-preference), et le défilement dans @supports. */
:root {
  --marine: #0d2a47;
  --marine-2: #163d66;
  --encre: #0b1f36;
  --bleu: #1f5fae;
  --ciel: #8fc1f5;
  --jaune: #f2b400;
  --jaune-texte: #8a6500;
  --fond: #fbfaf6;
  --teinte: #f1efe8;
  --blanc: #ffffff;
  --trait: #dcd9cf;
  --texte: #1b2430;
  --gris: #586271;
  --filet: rgba(143, 193, 245, .26);
  --rayon: 4px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --f-label: .75rem;
  --f-petit: .9375rem;
  --f-corps: 1.0625rem;
  --f-h3: 1.1875rem;
  --f-h3g: 1.5rem;
  --f-h2: clamp(1.7rem, 3.4vw, 2.6rem);
  --f-h1: clamp(2rem, 4.4vw, 3.45rem);
  --f-geant: clamp(1.9rem, 4.4vw, 3.1rem);

  --courbe: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: var(--f-corps); line-height: 1.6; color: var(--texte); background: var(--fond); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .55em; color: var(--encre); font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--f-h1); letter-spacing: -.03em; line-height: 1.04; }
h2 { font-size: var(--f-h2); }
h3 { font-size: var(--f-h3); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--bleu); }
img { max-width: 100%; height: auto; }
::selection { background: var(--jaune); color: var(--encre); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }
section[id], div[id] { scroll-margin-top: 84px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.wrap-etroit { width: min(780px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 30; }
.skip:focus { left: 8px; }

/* Repères façon planche */
.repere { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--bleu); margin: 0 0 14px; }
.num { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .12em; color: var(--jaune-texte); font-weight: 700; display: block; margin-bottom: 10px; }

/* ── En-tête ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 246, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.top-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); }
.marque img { width: 40px; height: 44px; }
.marque-nom { font-weight: 800; font-size: var(--f-h3); letter-spacing: .02em; white-space: nowrap; }
.marque-nom b { color: var(--bleu); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--texte); text-decoration: none; font-size: var(--f-petit); font-weight: 550; padding: 6px 0; background: linear-gradient(var(--jaune), var(--jaune)) 0 100% / 0 2px no-repeat; transition: background-size .22s var(--courbe); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current] { background-size: 100% 2px; }
.top .top-contact { display: none; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .16em; text-transform: uppercase; padding: 12px 14px; border: 1px solid var(--encre); border-radius: var(--rayon); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--encre); color: #fff; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw); background: var(--blanc); border: 1px solid var(--trait); box-shadow: 0 18px 40px rgba(11, 31, 54, .16); display: grid; }
.menu nav a { padding: 14px 18px; text-decoration: none; color: var(--texte); font-weight: 600; border-bottom: 1px solid var(--trait); }
.menu nav a:last-child { border-bottom: 0; background: var(--jaune); color: var(--encre); }
.menu nav a[aria-current] { color: var(--bleu); }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .top .top-contact { display: inline-flex; }
  .menu { display: none; }
}

/* ── Boutons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: var(--rayon); font-weight: 700; font-size: var(--f-corps); text-decoration: none; border: 2px solid transparent; text-align: center; transition: translate .12s ease, box-shadow .2s ease, background-color .15s ease; }
.btn:active { translate: 0 1px; }
.btn-sm { padding: 9px 16px; font-size: var(--f-petit); white-space: nowrap; }
.btn-accent { background: var(--jaune); color: var(--encre); }
.btn-fleche::after { content: "→"; display: inline-block; transition: translate .2s var(--courbe); }
.btn-contour { color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-contour-sombre { color: var(--encre); border-color: var(--encre); }
.btn-clair { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
@media (hover: hover) {
  .btn-accent:hover { background: #ffc61a; box-shadow: 0 10px 26px rgba(242, 180, 0, .3); }
  .btn-fleche:hover::after { translate: 5px 0; }
  .btn-contour:hover { background: rgba(255, 255, 255, .1); }
  .btn-contour-sombre:hover { background: var(--teinte); }
  .btn-clair:hover { background: rgba(255, 255, 255, .2); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Bandeau de tête ── */
/* Tous les bandeaux sont du papier à plan : trame au pas de 40 px, grain discret, cadre de planche. */
/* overflow: clip et non hidden : hidden ferait du bandeau un conteneur de défilement, et les dessins
   qu'il contient suivraient son défilement (nul) au lieu de celui de la page. */
.hero { background-color: var(--marine); color: #dfe8f3; padding: 60px 0 68px; position: relative; overflow: clip;
  background-image: linear-gradient(rgba(143, 193, 245, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 193, 245, .07) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(143, 193, 245, .22); pointer-events: none; }
/* Bornés en largeur : entre téléphone et grand écran, un dessin ne doit pas occuper tout l'écran. */
.hero .planche { border-color: var(--filet); box-shadow: 0 24px 60px rgba(4, 14, 28, .45); max-width: 520px; }
.hero-dessin { max-width: 560px; }
.hero-in { display: grid; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--jaune); }
.hero .repere { color: var(--ciel); }
.lead { font-size: var(--f-h3); max-width: 36em; color: #cfdcec; }
.pole-nom { display: block; font-family: var(--mono); font-size: var(--f-petit); letter-spacing: .24em; text-transform: uppercase; color: var(--jaune); font-weight: 600; margin-bottom: 14px; }
.fiche, .mission { background: rgba(255, 255, 255, .06); border: 1px solid var(--filet); padding: 24px; }
.fiche img { background: #fff; padding: 10px; width: 112px; height: auto; margin-bottom: 18px; }
.fiche dl { margin: 0; display: grid; }
.fiche dl > div { padding: 11px 0; border-top: 1px solid var(--filet); }
.fiche dl > div:first-child { border-top: 0; padding-top: 0; }
.fiche dt, .hero-cartouche dt { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ciel); }
.fiche dd, .hero-cartouche dd { margin: 3px 0 0; color: #fff; font-weight: 600; }
.fiche a { color: #fff; }
.mission p { color: #fff; font-size: var(--f-h3); font-weight: 600; margin: 0; }
.mission .repere { font-size: var(--f-label); font-weight: 400; color: var(--ciel); margin-bottom: 12px; }
.mission p + p:not(.mots) { margin-top: .8em; }
.mission .mots { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--filet); font-family: var(--mono); font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ciel); font-weight: 400; }
.section .mission { background: var(--marine); border-color: var(--marine); }
@media (min-width: 980px) {
  .hero { padding: 84px 0 92px; }
  .hero-in { grid-template-columns: 1.2fr .8fr; gap: 56px; }
}

/* Accueil : le bandeau est une planche complète — dessin, titre, cartouche. */
.hero-planche { padding: 26px 0 40px; }
.hero-planche .wrap { position: relative; z-index: 1; }
.hero-planche .hero-in { gap: 14px; }
.hero-planche .actions { margin-top: 20px; }
.hero-dessin { margin: 0 auto; width: 100%; order: -1; }
.hero-dessin figcaption { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ciel); opacity: .8; text-align: center; }
/* Sur téléphone, le dessin est borné en hauteur pour que le bouton principal reste dans le premier écran. */
.chantier { display: block; width: 100%; height: 196px; overflow: visible; }
.chantier path { fill: none; stroke: var(--ciel); stroke-width: 2.5; stroke-linecap: square; }
.chantier .sol { stroke-width: 3.5; }
.chantier .dalle { stroke-width: 4.5; }
.chantier .fin { stroke-width: 1.4; stroke: rgba(143, 193, 245, .78); }
.chantier .jaune, .chantier .cote { stroke: var(--jaune); }
.chantier .cote { stroke-width: 1.2; }
.chantier .coffrage { stroke: var(--jaune); stroke-width: 2; stroke-dasharray: 8 6; stroke-linecap: butt; }
.chantier .plein { fill: var(--jaune); stroke: none; }
.chantier text { font-family: var(--mono); font-size: 13px; fill: var(--ciel); display: none; }
.hero-cartouche { margin-top: 30px; border: 1px solid var(--filet); background: rgba(13, 42, 71, .72); }
.hero-cartouche dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.hero-cartouche dl > div { padding: 12px 14px; border-bottom: 1px solid var(--filet); border-right: 1px solid var(--filet); }
.hero-cartouche dl > div:nth-child(2n) { border-right: 0; }
.hero-cartouche dl > div:nth-last-child(-n + 2) { border-bottom: 0; }
.hero-cartouche dd { font-size: var(--f-petit); }
@media (min-width: 640px) { .chantier { height: auto; } .chantier text { display: block; } .hero-planche .hero-in { gap: 24px; } }
@media (min-width: 980px) {
  .hero-planche { padding: 64px 0 56px; }
  .hero-planche .hero-in { grid-template-columns: 1.06fr .94fr; gap: 44px; }
  .hero-planche .actions { margin-top: 26px; }
  .hero-dessin { order: 0; }
  .hero-dessin figcaption { text-align: left; margin-top: 6px; }
  .hero-cartouche { margin-top: 48px; }
  .hero-cartouche dl { grid-template-columns: repeat(4, 1fr); }
  .hero-cartouche dl > div { border-bottom: 0; padding: 14px 18px; }
  .hero-cartouche dl > div:nth-child(2n) { border-right: 1px solid var(--filet); }
  .hero-cartouche dl > div:last-child { border-right: 0; }
  .hero-cartouche dd { font-size: var(--f-corps); }
}

/* ── Sections ── */
.section { padding: 68px 0; }
.section-teinte { background: var(--teinte); }
.section-sombre { background: var(--encre); color: #cfdcec; }
.section-sombre h2, .section-sombre h3 { color: #fff; }
.section-sombre .repere { color: var(--ciel); }
.section-sombre .num { color: var(--jaune); }
.tete { max-width: 46em; margin-bottom: 40px; border-top: 3px solid var(--encre); padding-top: 18px; }
.section-sombre .tete { border-top-color: var(--jaune); }
.chapeau { color: var(--gris); font-size: var(--f-h3); margin: 0; }
.section-sombre .chapeau { color: #b9c9dd; }
.deux { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) {
  .section { padding: 104px 0; }
  .tete { margin-bottom: 52px; }
  .deux { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ── Cartes ── */
.poles, .grille-3, .grille-4, .bordereau { display: grid; gap: 16px; }
.carte, .pole, .poste { background: var(--blanc); border: 1px solid var(--trait); border-top: 3px solid var(--bleu); padding: 24px; }
.carte p, .pole p, .poste p { margin: 0; color: var(--gris); font-size: var(--f-petit); }
.pole { position: relative; text-decoration: none; color: var(--texte); display: flex; flex-direction: column; border-top-color: var(--jaune); transition: translate .2s var(--courbe), box-shadow .2s ease, border-color .2s ease; }
.pole-num { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--jaune-texte); margin-bottom: 14px; }
.pole h3 { font-size: var(--f-h3g); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .3em; }
.pole .pole-slogan { color: var(--encre); font-weight: 650; margin-bottom: 8px; }
.suite { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--bleu); font-weight: 700; }
.suite::after { content: " →"; display: inline-block; white-space: pre; transition: translate .2s var(--courbe); }
@media (hover: hover) {
  .pole:hover { translate: 0 -4px; border-color: var(--encre); border-top-color: var(--jaune); box-shadow: 0 18px 40px rgba(11, 31, 54, .12); }
  .pole:hover .suite::after { translate: 5px 0; }
}
.pole:focus-visible .suite::after { translate: 5px 0; }
.posture { margin: 36px 0 0; padding-left: 18px; border-left: 3px solid var(--jaune); font-weight: 650; font-size: var(--f-h3); color: var(--encre); max-width: 46em; }
@media (min-width: 640px) { .poles, .grille-3, .grille-4, .bordereau { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .poles, .grille-4 { grid-template-columns: repeat(4, 1fr); }
  .grille-3, .bordereau { grid-template-columns: repeat(3, 1fr); }
}

/* Accueil : chaque pôle avec son dessin, comme une planche. Le dessin n'apparaît qu'à partir de 700 px. */
.poles-planches .pole { padding: 0; flex-direction: row; }
.pole-texte { display: flex; flex-direction: column; padding: 24px; flex: 1 1 54%; min-width: 0; }
.pole-dessin { display: none; }
@media (min-width: 700px) {
  .poles.poles-planches { grid-template-columns: 1fr; gap: 20px; }
  .pole-dessin { display: flex; align-items: center; flex: 0 0 44%; border-left: 1px solid var(--trait); background: var(--blanc); }
  .pole-dessin .dessin { padding: 14px; background-size: 20px 20px; }
  .pole-texte { padding: 30px; }
}
@media (min-width: 1000px) { .poles.poles-planches { grid-template-columns: repeat(2, 1fr); } }

/* ── Chiffres ── */
.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--trait); border-left: 1px solid var(--trait); margin-top: 8px; }
.chiffre { padding: 24px 18px; border-right: 1px solid var(--trait); border-bottom: 1px solid var(--trait); background: var(--blanc); }
.chiffre strong { display: block; font-size: var(--f-geant); line-height: 1.02; color: var(--encre); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin-bottom: 10px; text-wrap: balance; }
.chiffre span { color: var(--gris); font-size: var(--f-petit); }
.reserve { margin: 16px 0 0; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .04em; color: var(--gris); }
.grille-4 + .chiffres { margin-top: 44px; }
@media (min-width: 860px) { .chiffres { grid-template-columns: repeat(3, 1fr); } .chiffre { padding: 32px 26px; } }

/* ── Jalons et engagements ── */
.jalons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--filet); }
.jalons li { display: grid; gap: 4px 28px; padding: 22px 0; border-bottom: 1px solid var(--filet); }
.jalons h3 { margin: 0; }
.jalons p { margin: 0; color: #b9c9dd; }
.livrable { justify-self: start; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--encre); background: var(--jaune); padding: 5px 10px; margin-top: 8px; }
@media (min-width: 860px) {
  .jalons li { grid-template-columns: 60px 250px 1fr auto; align-items: center; }
  .jalons .num { margin: 0; }
  .livrable { margin: 0; justify-self: end; }
}

/* ── Bordereau des prestations ── */
.poste .poste-sous { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--gris); margin-bottom: 6px; }
.poste h3 { text-transform: uppercase; letter-spacing: .01em; padding-bottom: 12px; border-bottom: 2px solid var(--encre); }
.tirets { list-style: none; margin: 0; padding: 0; }
.tirets li { position: relative; padding: 9px 0 9px 20px; border-bottom: 1px solid var(--trait); font-size: var(--f-petit); }
.tirets li:last-child { border-bottom: 0; }
.tirets li::before { content: "—"; position: absolute; left: 0; color: var(--jaune-texte); }

/* ── Tableaux de livrables ── */
.tableau { border-top: 2px solid var(--encre); }
.ligne { display: grid; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.ligne b { text-transform: uppercase; font-size: var(--f-petit); letter-spacing: .03em; color: var(--encre); }
.ligne span { color: var(--gris); font-size: var(--f-petit); }
.ligne i { font-style: normal; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--jaune-texte); font-weight: 700; }
@media (min-width: 560px) {
  .ligne { grid-template-columns: 170px 1fr minmax(0, 132px); align-items: baseline; }
  .tableau-2 .ligne { grid-template-columns: 220px 1fr; }
  .ligne i { text-align: right; }
}

/* ── Planche d'illustration ── */
.planche { margin: 0; background: var(--blanc); border: 1px solid var(--encre); }
.planche figcaption { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); padding: 12px 16px; border-top: 1px solid var(--encre); }
.dessin { display: block; width: 100%; height: auto; padding: 22px; background-image: linear-gradient(var(--teinte) 1px, transparent 1px), linear-gradient(90deg, var(--teinte) 1px, transparent 1px); background-size: 24px 24px; }
.dessin text { font-family: var(--mono); font-size: 11px; fill: var(--encre); }
.dessin .beton { fill: #e4e2da; stroke: var(--encre); stroke-width: 2; }
.dessin .cadre { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.dessin .acier { fill: var(--encre); }
.dessin .etape-fin { fill: var(--jaune); stroke: var(--encre); stroke-width: 1.5; }
.dessin .cote, .dessin .rappel { fill: none; stroke: var(--jaune-texte); stroke-width: 1.2; }
.dessin .barre { fill: #cfd6e0; }
.dessin .barre.fait { fill: var(--jaune); }
.dessin .jour { stroke: var(--bleu); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dessin .jour-texte { fill: var(--bleu); }
.dessin .sol { stroke: var(--encre); stroke-width: 3; }
.dessin .dalle { stroke: var(--encre); stroke-width: 5; }
.dessin .dalle.encours { stroke: var(--jaune); stroke-dasharray: 10 5; }
.dessin .poteau { stroke: var(--encre); stroke-width: 3; }
.dessin .echafaudage { fill: none; stroke: var(--bleu); stroke-width: 1.2; }
.circuit { list-style: none; margin: 0; padding: 22px; display: grid; gap: 0; }
.circuit li { display: grid; grid-template-columns: 74px 1fr; gap: 0 14px; padding: 12px 0; border-bottom: 1px dashed var(--trait); align-items: baseline; }
.circuit li:last-child { border-bottom: 0; }
.circuit b { font-family: var(--mono); font-size: var(--f-petit); color: var(--jaune-texte); grid-row: span 2; }
.circuit span { font-weight: 700; text-transform: uppercase; font-size: var(--f-petit); color: var(--encre); }
.circuit small { color: var(--gris); font-size: var(--f-petit); }

/* ── Pourquoi nous ── */
.citation { margin: 0; }
.citation p:last-child { font-size: var(--f-h2); line-height: 1.3; color: #fff; font-style: italic; font-family: Georgia, "Times New Roman", serif; margin: 0; }
.raisons { list-style: none; margin: 0; padding: 0; display: grid; }
.raisons li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--filet); }
.raisons li:last-child { border-bottom: 1px solid var(--filet); }
.raisons p { margin: 0; }
.raisons .num { margin: 3px 0 0; }

/* ── Destinataires et typologies ── */
.destinataires { display: grid; gap: 0 40px; border-top: 2px solid var(--encre); }
.destinataires > div { padding: 16px 0; border-bottom: 1px solid var(--trait); }
.destinataires h3 { text-transform: uppercase; font-size: var(--f-petit); letter-spacing: .03em; margin-bottom: .3em; }
.destinataires p { margin: 0; color: var(--gris); font-size: var(--f-petit); }
@media (min-width: 760px) { .destinataires { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .destinataires:not(.typologies) { grid-template-columns: repeat(3, 1fr); } }

/* ── Applications ── */
.liste-apps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--encre); }
.liste-apps li { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--trait); }
.liste-apps b { text-transform: uppercase; letter-spacing: .03em; color: var(--encre); }
.liste-apps span { color: var(--gris); }
.tete + .btn { margin-top: -12px; }
.appli { display: grid; gap: 28px; padding: 44px 0; border-top: 1px solid var(--trait); align-items: start; }
.appli:first-of-type { border-top: 0; padding-top: 0; }
.appli-etat { display: inline-block; font-family: var(--mono); font-size: var(--f-label); letter-spacing: .12em; text-transform: uppercase; background: var(--teinte); border: 1px solid var(--trait); padding: 4px 10px; margin-bottom: 14px; color: var(--gris); }
.appli h3 { font-size: var(--f-h3g); margin-bottom: .25em; }
.appli-pour { color: var(--encre); font-weight: 650; }
.appli .parcours { list-style: none; margin: 0; padding: 0; counter-reset: etape; border: 1px solid var(--encre); background: var(--blanc); }
.appli .parcours li { counter-increment: etape; display: grid; grid-template-columns: 44px 1fr; gap: 0 10px; padding: 12px 16px; border-bottom: 1px solid var(--trait); font-size: var(--f-petit); }
.appli .parcours li:last-child { border-bottom: 0; }
.appli .parcours li::before { content: counter(etape, decimal-leading-zero); font-family: var(--mono); font-size: var(--f-label); font-weight: 700; color: var(--jaune-texte); padding-top: 3px; }
.appli .parcours-titre { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); margin: 0 0 10px; }
@media (min-width: 940px) { .appli { grid-template-columns: 1.15fr .85fr; gap: 64px; padding: 60px 0; } }

/* ── Appel au contact ── */
.appel { background: var(--marine); color: #cfdcec; }
.appel h2 { color: #fff; }
.appel-in { display: grid; gap: 20px; align-items: center; }
.appel p { margin: 0; max-width: 40em; }
.appel .actions { margin-top: 0; }
@media (min-width: 940px) { .appel-in { grid-template-columns: 1fr auto; gap: 48px; } .appel .actions { flex-direction: column; align-items: stretch; } }

/* ── Pied de page en cartouche ── */
.pied { background: var(--encre); color: #b9c9dd; padding: 40px 0 34px; font-size: var(--f-petit); }
.cartouche { display: grid; border: 1px solid rgba(143, 193, 245, .3); }
.cartouche > div { padding: 14px 18px; border-bottom: 1px solid rgba(143, 193, 245, .3); display: grid; gap: 3px; }
.cartouche > div:last-child { border-bottom: 0; }
.cartouche small { font-family: var(--mono); font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ciel); }
.cartouche span, .cartouche a { color: #fff; font-weight: 600; text-decoration: none; }
.cartouche a:hover { text-decoration: underline; }
.pied-bas { margin-top: 24px; display: grid; gap: 14px; }
.pied-bas nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pied-bas a { color: #dfe8f3; display: inline-block; padding: 6px 0; }
.pied-bas p { margin: 0; color: #9fb1c8; }
@media (min-width: 860px) {
  .cartouche { grid-template-columns: repeat(4, 1fr); }
  .cartouche > div { border-bottom: 0; border-right: 1px solid rgba(143, 193, 245, .3); }
  .cartouche > div:last-child { border-right: 0; }
}

/* ── Pages de texte ── */
.doc h1 { font-size: var(--f-h2); }
.doc h2 { font-size: var(--f-h3g); margin-top: 2em; }
.doc .acces { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--trait); color: var(--gris); }
.doc .acces a { display: inline-block; padding: 6px 2px; font-weight: 650; }
.def { display: grid; gap: 4px 20px; margin: 0 0 1em; }
.def dt { font-weight: 700; color: var(--encre); }
.def dd { margin: 0 0 10px; color: var(--gris); }
@media (min-width: 640px) { .def { grid-template-columns: 230px 1fr; } .def dd { margin: 0; } }

/* ══ Mouvement ══════════════════════════════════════════════════════════════
   Tout ce qui suit est une surcouche : sans elle, la page est complète. */

@media (prefers-reduced-motion: no-preference) {
  /* Entrée orchestrée du bandeau de tête, sur toutes les pages : le texte monte, le volet de droite se fond */
  :is(.entree, .hero-pole .hero-in > div) > * { animation: entree .8s var(--courbe) both; }
  :is(.entree, .hero-pole .hero-in > div) > :nth-child(2) { animation-delay: .08s; }
  :is(.entree, .hero-pole .hero-in > div) > :nth-child(3) { animation-delay: .16s; }
  :is(.entree, .hero-pole .hero-in > div) > :nth-child(4) { animation-delay: .24s; }
  .hero-pole .hero-in > :is(aside, figure) { animation: apparaitre .7s ease-out .3s both; }

  /* Moment signature : l'élévation se trace niveau par niveau, du sol à la dalle en cours */
  .chantier .t { stroke-dasharray: 1; animation: tracer .55s ease-out both; }
  .chantier .lent { animation-duration: 1.7s; }
  .chantier .f, .hero-dessin figcaption, .hero-cartouche { animation: apparaitre .6s ease-out both; }
  .chantier .d1 { animation-delay: .1s; }
  .chantier .d2 { animation-delay: .27s; }
  .chantier .d3 { animation-delay: .44s; }
  .chantier .d4 { animation-delay: .61s; }
  .chantier .d5 { animation-delay: .78s; }
  .chantier .d6 { animation-delay: .95s; }
  .chantier .d7 { animation-delay: 1.12s; }
  .chantier .d8 { animation-delay: 1.29s; }
  .chantier .d9 { animation-delay: 1.46s; }
  .chantier .d10 { animation-delay: 1.63s; }
  .chantier .d11 { animation-delay: 1.8s; }
  .chantier .d12 { animation-delay: 1.97s; }
  .chantier .d13 { animation-delay: 2.14s; }
  .chantier .d14 { animation-delay: 2.31s; }
  .hero-dessin figcaption { animation-delay: 2.4s; }
  .hero-cartouche { animation-delay: .5s; }

  /* Transition native entre les pages du site */
  @view-transition { navigation: auto; }

  @supports (animation-timeline: view()) {
    /* Révélation des cartes à l'entrée dans l'écran : une règle pour toutes les grilles du site */
    :is(.reveler, .carte, .poste, .pole, .appli) { animation: reveler linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
    :is(.grille-3, .grille-4, .bordereau, .poles) > :nth-child(3n + 2) { animation-range: entry 10% entry 75%; }
    :is(.grille-3, .grille-4, .bordereau, .poles) > :nth-child(3n) { animation-range: entry 20% entry 85%; }

    /* Les dessins se tracent quand leur planche traverse l'écran (cartes de l'accueil, planches sur téléphone) */
    .pole-dessin, .planche { view-timeline: --dessin block; }
    :is(.pole-dessin, .planche) .tr { stroke-dasharray: 1; animation: tracer linear both; animation-timeline: --dessin; animation-range: entry 30% cover 45%; }

    /* L'en-tête se pose : une ombre après les premiers pixels de défilement */
    .top { animation: top-pose linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
  }

  /* Sur grand écran, la planche d'une page de pôle est visible dès l'arrivée : son dessin se trace
     au chargement, pas au défilement. Écrit après le bloc ci-dessus pour l'emporter sur lui. */
  @media (min-width: 980px) {
    .hero .planche .tr { stroke-dasharray: 1; animation: tracer 1.3s ease-out .5s both; animation-timeline: auto; }
  }
}
@keyframes entree { from { opacity: 0; translate: 0 18px; } }
@keyframes apparaitre { from { opacity: 0; } }
@keyframes tracer { from { stroke-dashoffset: 1; } }
@keyframes reveler { from { opacity: 0; translate: 0 28px; } }
@keyframes top-pose { to { box-shadow: 0 10px 30px rgba(11, 31, 54, .1); } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .pole, .nav a { transition: none; } }
@media print {
  *, *::before, *::after { animation: none !important; }
  .top, .appel, .menu, .hero-dessin { display: none; }
  .hero, .section-sombre, .pied { background: #fff; color: #000; }
  .hero h1, .hero h1 em, .section-sombre h2, .section-sombre h3 { color: #000; }
}
