/* ==========================================================================
   FD CONCEPT' — feuille de style unique
   Direction : photo chaude / chrome froid. Palette tirée du logo (indigo,
   magenta, violet, cyan). Motif signature : le filet trois-tons.
   Contrat : DESIGN.md. Toute couleur ou police hors §2/§3 est une régression.
   ========================================================================== */

/* --- 1. Jetons ----------------------------------------------------------- */
:root {
  /* Palette — DESIGN.md §2, échantillonnée sur le logo */
  --encre:        #16143A;
  --indigo:       #2E2C6B;
  --indigo-clair: #44428E;
  /* #C42A87 (relevé du logo) tenait 4,88 sur --papier mais retombait à 4,43 sur
     --papier-2, où vivent la moitié des eyebrows : sous AA. Assombri de 3 % —
     écart invisible à l'œil — il passe 4,67 sur --papier-2 et 5,14 sur --papier. */
  --magenta:      #BE2883;
  --rose:         #D85096;
  --violet:       #8F55A3;
  --cyan:         #3FD4DC;
  --cyan-lisible: #0E7C86;
  --papier:       #F7F7FA;
  --papier-2:     #ECECF3;
  --gris:         #63637C;
  --filet:        #DCDCE6;
  --blanc:        #FFFFFF;

  /* Typo */
  --font-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-texte: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --fs-display: clamp(38px, 5.4vw, 82px);
  --fs-h2:      clamp(28px, 3.4vw, 46px);
  --fs-h3:      clamp(19px, 1.5vw, 23px);
  --fs-lead:    clamp(17px, 1.35vw, 20px);
  --fs-corps:   17px;
  --fs-petit:   14.5px;
  --fs-micro:   12.5px;

  /* Rythme */
  --gouttiere: clamp(20px, 5vw, 64px);
  --large:     1320px;
  --section-y: clamp(64px, 8vw, 128px);
  --header-h:  84px;

  /* Surfaces */
  --r:    4px;
  --r-lg: 8px;
  --ombre:    0 1px 2px rgba(22,20,58,.06), 0 4px 12px rgba(22,20,58,.06);
  --ombre-lg: 0 2px 4px rgba(22,20,58,.05), 0 12px 32px rgba(22,20,58,.11);

  /* Le filet trois-tons — DESIGN.md §6. Seul filet décoratif du site. */
  --triton: linear-gradient(90deg,
      var(--rose) 0 40%, var(--violet) 40% 65%, var(--indigo-clair) 65% 100%);
  --triton-v: linear-gradient(180deg,
      var(--rose) 0 40%, var(--violet) 40% 65%, var(--indigo-clair) 65% 100%);

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* --- 2. Reset & socle ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-texte);
  font-size: var(--fs-corps);
  line-height: 1.62;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-variation-settings: "wdth" 108;
}
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.012em; font-variation-settings: "wdth" 104; }
p  { text-wrap: pretty; }

a { color: var(--magenta); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan-lisible);
  outline-offset: 2px;
  border-radius: 2px;
}

.enveloppe { width: 100%; max-width: var(--large); margin-inline: auto; padding-inline: var(--gouttiere); }
.section   { padding-block: var(--section-y); }
.section--gris { background: var(--papier-2); }
.section--encre { background: var(--indigo); color: #EDEDF6; }
.section--encre h2, .section--encre h3 { color: var(--blanc); }

.saut-contenu {
  position: absolute; left: -9999px; top: 0;
  background: var(--encre); color: #fff; padding: 12px 20px; z-index: 999;
}
.saut-contenu:focus { left: 12px; top: 12px; }

/* --- 3. Motif signature : le filet trois-tons ---------------------------- */
.triton      { height: 4px; background: var(--triton); border: 0; }
.triton--gros{ height: 6px; }
.triton--court { width: 76px; height: 5px; background: var(--triton); }

/* Flanc vertical du bloc signature. Jamais sur une <img> (élément remplacé). */
.flanc-triton { position: relative; padding-left: clamp(22px, 3vw, 40px); }
.flanc-triton::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px; background: var(--triton-v);
}

/* --- 4. Titres de section ------------------------------------------------ */
.eyebrow {
  font-family: var(--font-titre);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--magenta);
  font-variation-settings: "wdth" 100;
}
.section--encre .eyebrow { color: var(--cyan); }
.tete-section { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.tete-section .eyebrow { display: block; margin-bottom: 14px; }
.tete-section p { color: var(--gris); font-size: var(--fs-lead); margin-top: 18px; }
.section--encre .tete-section p { color: #C9C9DE; }

/* --- 5. Boutons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-titre); font-size: 15.5px; font-weight: 600;
  font-variation-settings: "wdth" 102;
  letter-spacing: -0.005em;
  border: 2px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), scale 120ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active { scale: 0.96; }
.btn--plein { background: var(--magenta); color: #fff; box-shadow: 0 2px 10px rgba(196,42,135,.28); }
.btn--plein:hover { background: #A8226F; }
.btn--ligne { background: transparent; color: var(--encre); border-color: var(--encre); }
.btn--ligne:hover { background: var(--encre); color: #fff; }
.btn--clair { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--clair:hover { background: #fff; color: var(--encre); border-color: #fff; }

/* --- 6. En-tête ---------------------------------------------------------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 0;
}
.entete::after { content: ""; display: block; height: 4px; background: var(--triton); }
.entete__barre {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: var(--header-h);
}
.entete__logo { flex: 0 0 auto; display: block; line-height: 0; }
.entete__logo img { height: 56px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(6px, 1.4vw, 22px); }
.nav__lien {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  padding: 4px 6px;
  font-family: var(--font-titre); font-weight: 600; font-size: 15.5px;
  font-variation-settings: "wdth" 102;
  color: var(--encre); text-decoration: none; background: none; border: 0; cursor: pointer;
  transition: color 160ms var(--ease);
}
.nav__lien::after {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2.5px;
  background: var(--magenta); transform: scaleX(0); transform-origin: left;
  transition: transform 180ms var(--ease);
}
.nav__lien:hover, .nav__lien[aria-current="page"] { color: var(--magenta); }
.nav__lien:hover::after, .nav__lien[aria-current="page"]::after { transform: scaleX(1); }

.nav__tel {
  font-family: var(--font-titre); font-weight: 700; font-size: 16px;
  font-variation-settings: "wdth" 104, "tnum" 1;
  font-feature-settings: 'tnum';
  color: var(--encre); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 6px;
}
.nav__tel:hover { color: var(--magenta); }

/* Panneau « Prestations » — s'ouvre au survol ET au clic, sans vide de survol.
   Gate : node qa/check-submenu.mjs fd-concept-le-cres */
.deroulant { position: relative; }
.deroulant__bouton::before {
  /* pont de survol : couvre l'espace entre le bouton et le panneau */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
}
.deroulant__fleche { transition: rotate 180ms var(--ease); }
.deroulant[data-ouvert="true"] .deroulant__fleche { rotate: 180deg; }

.panneau {
  position: absolute; top: calc(100% + 18px); left: 50%; translate: -50% 0;
  width: min(720px, calc(100vw - 32px));
  background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--ombre-lg);
  padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: opacity 180ms var(--ease), translate 180ms var(--ease), visibility 180ms;
}
.deroulant:hover .panneau,
.deroulant:focus-within .panneau,
.deroulant[data-ouvert="true"] .panneau { opacity: 1; visibility: visible; translate: -50% 0; }
.panneau::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

.panneau__item {
  display: flex; gap: 14px; align-items: center;
  padding: 12px; border-radius: var(--r); text-decoration: none; color: var(--encre);
  transition: background-color 160ms var(--ease);
}
.panneau__item:hover { background: var(--papier-2); }
.panneau__item img { width: 76px; height: 58px; object-fit: cover; border-radius: 3px; flex: 0 0 auto;
  outline: 1px solid rgba(22,20,58,.09); outline-offset: -1px; }
.panneau__titre { font-family: var(--font-titre); font-weight: 700; font-size: 16px; display: block; }
.panneau__note  { font-size: 13.5px; color: var(--gris); line-height: 1.42; display: block; margin-top: 3px; }

/* Burger + tiroir — le tiroir est `fixed` AU-DESSUS du header sticky. */
.burger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--encre);
}
.tiroir {
  position: fixed; inset: 0; z-index: 90;
  background: #fff; padding: 20px var(--gouttiere) 40px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  translate: 100% 0; visibility: hidden;
  transition: translate 260ms var(--ease), visibility 260ms;
}
.tiroir[data-ouvert="true"] { translate: 0 0; visibility: visible; }
.tiroir__tete { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); margin-bottom: 12px; }
.tiroir__tete img { height: 46px; width: auto; }
.tiroir__nav { display: flex; flex-direction: column; }
.tiroir__fermer { width: 46px; height: 46px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--encre); }
.tiroir__lien {
  font-family: var(--font-titre); font-weight: 700; font-size: 21px; color: var(--encre);
  text-decoration: none; padding: 15px 0; border-bottom: 1px solid var(--filet);
  display: flex; align-items: center; min-height: 56px;
}
.tiroir__lien--sous { font-size: 17px; font-weight: 600; padding-left: 18px; color: var(--gris); min-height: 50px; }
.tiroir__pied { margin-top: 26px; display: grid; gap: 12px; }

/* --- 7. Pied de page ----------------------------------------------------- */
.pied { background: var(--indigo); color: #C9C9DE; }
.pied__triton { height: 6px; background: var(--triton); }
/* La bande CTA et le pied de page sont deux aplats du MÊME indigo : leur donner
   chacun son filet revenait à poser deux traits identiques à 280 px l'un de
   l'autre, dont le second ne séparait rien. Un seul ouvre la zone sombre
   (§5 ter : corriger, c'est remplacer — on retire, on n'ajoute pas). */
body:has(.bande-cta) .pied__triton { display: none; }
.pied__haut {
  display: grid; grid-template-columns: minmax(260px, 1.15fr) 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 6vw, 80px);
}
/* Pastille blanche : le logo est trop coloré et son wordmark trop sombre pour
   tenir sur l'indigo (procédure logo-client §3). */
.pied__logo {
  background: #fff; border-radius: var(--r-lg);
  padding: 22px 26px; display: inline-block; margin-bottom: 22px;
}
.pied__logo img { width: clamp(230px, 26vw, 300px); height: auto; }
/* Titres de colonne du pied : <h2> et non <h4>, pour ne pas creuser un saut de
   niveau h2→h4 dans l'outline (contrôlé en Phase 4). */
.pied__titre {
  font-family: var(--font-titre);
  font-size: var(--fs-micro); letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px; font-weight: 600;
  font-variation-settings: "wdth" 100;
}
.pied a { color: #E4E4EF; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied ul { list-style: none; padding: 0; display: grid; gap: 11px; font-size: var(--fs-petit); }
.pied__bas {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  font-size: 13.5px; color: #A6A6C2;
}

/* --- 8. Formulaire ------------------------------------------------------- */
.champ { display: grid; gap: 7px; margin-bottom: 18px; }
.champ label { font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-petit); }
.champ input, .champ textarea, .champ select {
  font-family: var(--font-texte); font-size: 16px; color: var(--encre);
  padding: 13px 15px; min-height: 52px;
  background: #fff; border: 1.5px solid var(--filet); border-radius: var(--r);
  transition: border-color 160ms var(--ease);
  width: 100%;
}
.champ textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
.champ input:focus, .champ textarea:focus { border-color: var(--magenta); }
.champ__note { font-size: 13px; color: var(--gris); }

.formulaire { background: #fff; padding: clamp(22px, 2.6vw, 38px); box-shadow: var(--ombre); }
.formulaire .btn { width: 100%; }

/* Carte de zone — géographie réelle, coordonnées vraies. Autorisée par
   design-artisan-btp §7 : la géographie ne prétend à aucune exactitude métier. */
.carte-cadre { background: #fff; padding: clamp(16px, 2.4vw, 34px); box-shadow: var(--ombre);
  overflow-x: auto; }
.carte { width: 100%; height: auto; min-width: 560px; display: block; }

/* --- 9. Images ----------------------------------------------------------- */
.photo { position: relative; overflow: hidden; background: var(--papier-2); }
.photo img { width: 100%; height: 100%; object-fit: cover;
  outline: 1px solid rgba(22,20,58,.08); outline-offset: -1px; }
.photo--16x9 { aspect-ratio: 16 / 9; }
.photo--4x3  { aspect-ratio: 4 / 3; }
.photo--3x4  { aspect-ratio: 3 / 4; }
.photo--3x2  { aspect-ratio: 3 / 2; }
.photo--21x9 { aspect-ratio: 21 / 9; }

/* Pastille nommant l'ouvrage — posée sur le CONTENEUR, jamais sur l'<img>. */
.pastille {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,.95);
  font-family: var(--font-titre); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 3px; color: var(--encre);
  font-variation-settings: "wdth" 100;
}

/* --- 9 bis. LE MUR — direction B ----------------------------------------
   Le hero EST la mosaïque de chantiers. Le texte perce la grille dans une
   ouverture blanche. Aucun des 5 sites menuiserie n'a de réalisations. */
.mur {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(148px, 1fr); gap: 4px;
  background: var(--encre); padding: 4px;
  min-height: min(86vh, 800px);
}
.mur > * { min-width: 0; }
.mur .photo { height: 100%; }
.mur .photo img { height: 100%; }
.mur__texte {
  grid-column: span 5; grid-row: span 2; background: #fff;
  padding: clamp(26px, 3.2vw, 50px);
  display: flex; flex-direction: column; justify-content: center;
}
.mur__texte h1 { font-size: clamp(33px, 4.1vw, 60px); margin-bottom: 18px; }
.mur__texte .triton--court { margin: 15px 0 20px; }
.mur__lead { font-size: clamp(16px, 1.25vw, 18.5px); color: var(--gris); margin-bottom: 26px; max-width: 40ch; }
.mur__cta { display: flex; flex-wrap: wrap; gap: 11px; }
.c4 { grid-column: span 4; } .c3 { grid-column: span 3; }
.c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; }
.r2 { grid-row: span 2; }

/* --- 9 ter. Tuiles photographiques ---------------------------------------
   Le voile est ancré en PIXELS depuis le bas et tient 0,72 sur toute la
   hauteur du bloc de texte — DESIGN.md §8 bis, mémoire feedback_voile_ancre_en_pourcent. */
.tuiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 20px); }
.tuiles > * { min-width: 0; }
.tuile { position: relative; display: block; min-width: 0; aspect-ratio: 16 / 10;
  overflow: hidden; text-decoration: none; background: var(--papier-2); }
.tuile img { width: 100%; height: 100%; object-fit: cover;
  transition: scale 260ms var(--ease); }
.tuile:hover img { scale: 1.03; }
/* Le palier à .74 jusqu'à 215 px puis .30 à 320 px couvrait 87 % d'une tuile de
   366 px : la photo ne se lisait plus, on ne voyait qu'un aplat sombre. Le
   plancher 0,72 n'est requis que SOUS le bloc de texte (~135 px) — au-dessus, la
   photo doit rester reconnaissable, c'est tout l'objet d'une tuile photo. */
.tuile__voile { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg,
    rgba(11,10,32,.90) 0px, rgba(11,10,32,.86) 135px,
    rgba(11,10,32,.55) 205px, rgba(11,10,32,.18) 275px, rgba(11,10,32,0) 100%); }
.tuile__txt { position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.2vw, 32px); color: #fff; }
.tuile h3 { color: #fff; font-size: clamp(20px, 1.9vw, 27px); margin-bottom: 7px;
  text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.tuile p { font-size: 15px; color: #EFEFF8; line-height: 1.45; max-width: 42ch;
  text-shadow: 0 1px 10px rgba(0,0,0,.5); }
.tuile .fleche { display: inline-block; margin-top: 12px; font-family: var(--font-titre);
  font-weight: 600; font-size: 14.5px; color: var(--cyan); }

/* --- 9 quater. Bande matériaux ------------------------------------------
   Trois cellules — le signal §5 bis est le CORPS (mot porté ≥ 40 px). */
.materiaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 48px); }
.materiaux > * { min-width: 0; }
.materiaux__mot { font-family: var(--font-titre); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.03em;
  font-variation-settings: "wdth" 112; margin-bottom: 12px; display: block; }
.materiaux p { font-size: var(--fs-petit); color: var(--gris); line-height: 1.5; }
.section--encre .materiaux p { color: #C3C3DC; }

/* --- 9 quinquies. Bloc de faits (flanc trois-tons) ----------------------- */
.bloc-fait { display: grid; gap: 22px; }
.bloc-fait dl { display: grid; gap: 0; margin: 0; }
/* Largeurs franchement inégales (1 / 1.75) et terme porté à l'accent : le terme
   est un label court, la définition une phrase. C'est le traitement qui empêche
   ce bloc d'être « N cellules égales de texte nu » — design-artisan-btp §5 bis,
   appliqué par SUBSTITUTION et vérifié par qa/check-blocs-nus.mjs. */
/* Chaque fait est posé sur un APLAT, pas séparé par un filet — et les deux
   colonnes sont franchement inégales (1 / 1.75) : le terme est un label court,
   la définition une phrase. Traitement exigé par design-artisan-btp §5 bis,
   appliqué par SUBSTITUTION (l'aplat REMPLACE le filet, il ne s'y ajoute pas —
   §5 ter) et vérifié par qa/check-blocs-nus.mjs. */
.bloc-fait dl { gap: 3px; }
.bloc-fait .ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 20px; padding: 15px 18px; align-items: baseline;
  background: var(--blanc); }
.bloc-fait dt { font-family: var(--font-titre); font-weight: 700; font-size: 16px;
  color: var(--magenta); font-variation-settings: "wdth" 104; }
.bloc-fait dd { margin: 0; font-size: var(--fs-petit); color: var(--gris); }
.section--encre .bloc-fait .ligne { background: rgba(255,255,255,.07); }
.section--encre .bloc-fait dt { color: var(--cyan); }
.section--encre .bloc-fait dd { color: #C3C3DC; }

/* --- 9 sexies. Split asymétrique + bande CTA ----------------------------- */
.split { display: grid; grid-template-columns: 42fr 58fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.split--inverse { grid-template-columns: 58fr 42fr; }

.bande-cta { background: var(--indigo); color: #EAEAF6; }
.bande-cta__triton { height: 6px; background: var(--triton); }
.bande-cta__int { display: grid; grid-template-columns: 1.5fr auto; gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-block: clamp(44px, 5.5vw, 76px); }
.bande-cta h2 { color: #fff; }
.bande-cta p { color: #C6C6DE; margin-top: 12px; max-width: 52ch; }
.bande-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- 9 septies. Galerie de réalisations ---------------------------------- */
/* Rangées de hauteur FIXE : sans elles, chaque cellule prenait la hauteur
   intrinsèque de sa photo, si bien qu'une vignette 3:2 en 3 colonnes retombait
   à 192 px dans une rangée de 393 px et ouvrait un trou dans la mosaïque. */
.galerie { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1vw, 14px);
  grid-auto-rows: clamp(150px, 22vw, 320px); }
.galerie > * { min-width: 0; }
.galerie .photo { height: 100%; }
.galerie .photo img { height: 100%; }
/* Deux portraits logent dans des cellules paysage : on cale le cadrage sur le
   haut de l'ouvrage pour ne pas décapiter le cintre. */
.galerie .op-haut img { object-position: 50% 28%; }
.galerie .op-bas img { object-position: 50% 62%; }

/* --- 9 octies. Séquence de chantier (pages prestation) ------------------- */
.sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.sequence > * { min-width: 0; }
/* `auto auto 1fr` : sans cette répartition, l'étirement des colonnes à hauteur
   égale gonflait la rangée de la photo et celle du titre dans les étapes au
   texte plus court — photos et titres se retrouvaient décalés de 7,5 px d'une
   colonne à l'autre. C'est le PARAGRAPHE qui doit absorber l'écart. */
.sequence__etape { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; }
.sequence__etape h3 { font-size: 19px; }
.sequence__etape p { font-size: var(--fs-petit); color: var(--gris); line-height: 1.55; }
.sequence__etape .photo { aspect-ratio: 3 / 2; }

/* --- 9 nonies. Bandeau de page ------------------------------------------- */
.bandeau { position: relative; overflow: hidden; }
.bandeau img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* Le dégradé s'éteint à droite pour laisser respirer la photo — mais le texte du
   bandeau occupe toute la largeur dès que la colonne se resserre, et il sortait
   alors de la zone couverte (H1 blanc mesuré à 2,63 au pire pixel à 390 px).
   Plancher DESIGN.md §8 bis : 0,72 sous TOUTE la hauteur ET la largeur du texte. */
.bandeau__voile { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,10,32,.88) 0, rgba(11,10,32,.80) 46%, rgba(11,10,32,.34) 100%); }
@media (max-width: 1100px) {
  .bandeau__voile {
    background: linear-gradient(90deg, rgba(11,10,32,.90) 0, rgba(11,10,32,.86) 55%, rgba(11,10,32,.78) 100%); }
}
.bandeau__int { position: relative; z-index: 2; padding-block: clamp(56px, 7vw, 104px); }
.bandeau h1 { color: #fff; max-width: 20ch; text-shadow: 0 2px 18px rgba(0,0,0,.4); }
.bandeau .eyebrow { color: var(--cyan); }
.bandeau__lead { color: #E7E7F4; font-size: var(--fs-lead); max-width: 54ch; margin-top: 18px;
  text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.bandeau .triton--court { margin: 15px 0 20px; }

/* --- 10. Responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  :root { --header-h: 74px; }
  .nav { display: none; }
  .burger { display: flex; }
  .entete__logo img { height: 46px; }
  .pied__haut { grid-template-columns: 1fr 1fr; }

  .mur { grid-template-columns: repeat(6, 1fr); min-height: 0; }
  .mur__texte { grid-column: span 6; grid-row: span 1; }
  .c4, .c5, .c6, .c7 { grid-column: span 3; } .c3 { grid-column: span 3; }
  .r2 { grid-row: span 1; }
  .tuiles { grid-template-columns: 1fr; }
  .split, .split--inverse { grid-template-columns: 1fr; }
  .bande-cta__int { grid-template-columns: 1fr; }
  .sequence { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(6, 1fr); }
  /* 9 cellules sur 2 colonnes : la derniere restait seule sur sa ligne, moitie droite vide. */
  .galerie > *:last-child { grid-column: span 6; }
}
@media (max-width: 620px) {
  :root { --header-h: 68px; }
  .entete__logo img { height: 44px; }
  .pied__haut { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .mur__cta, .bande-cta__actions { flex-direction: column; align-items: stretch; }

  .mur { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(132px, auto); }
  .mur__texte { grid-column: span 2; }
  .c3, .c4, .c5, .c6, .c7 { grid-column: span 1; }
  .materiaux { grid-template-columns: 1fr; gap: 24px; }
  .bloc-fait .ligne { grid-template-columns: 1fr; gap: 4px; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .galerie > *:last-child { grid-column: span 2; }
}

/* --- 11. Mouvement ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .entete, .pied, .burger, .tiroir { display: none; }
}
