/* Style commun du nouveau site SikHabitat, tiré de la maquette C « En mouvement ». Voir DESIGN.md. Aperçu local, jamais publié. */

/* Police Archivo rangée avec la page (dossier « polices »), plus aucun appel à Google Fonts */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('polices/archivo-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: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('polices/archivo-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; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nuit: #131312;
  --nuit-2: #1c1c1b;
  --anthracite: #333333;
  --papier: #f3f1ea;
  --or: #c4a35a;
  --or-clair: #dcbc74;
  --or-sombre: #8b6e2a;
  --creme: #f5f0e8;
  --creme-2: rgba(245, 240, 232, .78);
  --creme-3: rgba(245, 240, 232, .62);
  --encre: #161615;
  --encre-2: rgba(22, 22, 21, .76);
  --encre-3: rgba(22, 22, 21, .66);
  --trait-clair: rgba(245, 240, 232, .18);
  --trait-sombre: rgba(22, 22, 21, .18);
  --police: 'Archivo', 'Aptos Narrow', 'Arial Narrow', system-ui, sans-serif;
  --marge: clamp(1.25rem, 4.2vw, 4.5rem);
  --tete-h: 4.5rem;
  --doux: cubic-bezier(.16, 1, .3, 1);
  --cadence: 5s;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; scrollbar-color: var(--or-sombre) var(--nuit); -webkit-text-size-adjust: 100%; }
body { font: 400 1.0625rem/1.6 var(--police); background: var(--nuit); color: var(--creme); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--or); color: var(--encre); }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; border-radius: 2px; }
.clair :focus-visible, .contact-intro :focus-visible { outline-color: var(--encre); }
input, textarea { caret-color: var(--or); }
a[href^="tel:"] { white-space: nowrap; font-variant-numeric: tabular-nums; }
.icone { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icone-pleine { fill: currentColor; stroke: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Bandeau de maquette */
.maq { background: #0b0b0b; color: var(--or-clair); font-size: .82rem; padding: .5rem var(--marge); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; }
.maq a { text-underline-offset: 3px; }
.maq summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.maq ul { margin: .5rem 0 .3rem 1.1rem; color: var(--creme-2); line-height: 1.55; }

/* Éléments communs */
.bloc { padding: clamp(4.5rem, 9vw, 8rem) var(--marge); }
.dedans { max-width: 80rem; margin-inline: auto; }
.clair { background: var(--papier); color: var(--encre); }
.clair ::selection { background: var(--encre); color: var(--creme); }
.anthracite { background: var(--anthracite); }
.titre { font-stretch: 70%; font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: .98; letter-spacing: -.012em; text-wrap: balance; }
.sous-titre { margin-top: 1.1rem; max-width: 36rem; font-size: 1.1rem; color: var(--creme-2); }
.clair .sous-titre { color: var(--encre-2); }
.entete-ligne { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 52px; padding: .85rem 1.6rem; border: 0; border-radius: 3px; font: 700 1.02rem/1.1 var(--police); font-stretch: 92%; text-decoration: none; cursor: pointer; }
.btn .icone { transition: transform .3s var(--doux); }
.btn:hover .icone { transform: translateX(5px); }
/* Au survol, une couleur balaie le bouton de gauche à droite */
.btn-or { position: relative; isolation: isolate; overflow: hidden; background: var(--or); color: var(--encre); transition: color .3s var(--doux); }
.btn-or::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--btn-survol, var(--creme)); transform: translateX(-101%); transition: transform .5s var(--doux); }
.btn-or:hover::before, .btn-or:focus-visible::before { transform: none; }
.btn-or:hover, .btn-or:focus-visible { color: var(--btn-survol-texte, var(--encre)); }
.btn-or:active::before { background: var(--or-clair); }
/* Bouton d'envoi pendant que la demande part : il s'estompe et ne répond plus à un second clic */
.btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.clair { --btn-survol: var(--encre); --btn-survol-texte: var(--or-clair); }
.lien-fleche { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lien-fleche .icone { transition: transform .3s var(--doux); }
.lien-fleche:hover .icone { transform: translateX(5px); }
.etiquette { display: inline-block; padding: .2rem .6rem; border-radius: 2px; background: var(--or); color: var(--encre); font-size: .78rem; font-weight: 700; }

/* EN-TÊTE : transparent sur la photo, plein dès qu'on descend */
.tete { position: sticky; top: 0; z-index: 40; height: var(--tete-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 var(--marge); transition: background .35s var(--doux), box-shadow .35s var(--doux); }
/* Fond plein, sans transparence : rien ne se lit à travers l'en-tête ; un filet et une ombre légère suffisent */
.tete.pleine, .tete:has(.tete-nav.ouvert) { background: #1c1c1b; box-shadow: 0 1px 0 rgba(245, 240, 232, .1), 0 10px 22px -18px rgba(0, 0, 0, .35); }
.tete-logo img { height: 50px; width: auto; }
.tete-nav { display: flex; gap: 2rem; list-style: none; }
.tete-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .98rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--or), var(--or)) left 80% / 0 2px no-repeat; transition: background-size .35s var(--doux); }
.tete-nav a:hover { background-size: 100% 2px; }
.tete-actions { display: flex; align-items: center; gap: 1.4rem; }
.tete-tel { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; font-size: .98rem; text-decoration: none; }
.tete-tel:hover { color: var(--or-clair); }
.tete .btn { min-height: 46px; padding: .7rem 1.2rem; font-size: .96rem; }
.menu-btn { display: none; align-items: center; min-height: 44px; padding: 0 .9rem; border: 1px solid rgba(245, 240, 232, .45); border-radius: 3px; background: none; color: inherit; font: 500 .95rem var(--police); cursor: pointer; }
.cta-court, .menu-tel { display: none; }

/* PREMIER ÉCRAN : la photo change par lames, le mot en or change avec elle */
.hero { position: relative; isolation: isolate; display: grid; grid-template-rows: 1fr auto; min-height: clamp(600px, calc(100vh - 2.35rem), 980px); margin-top: calc(-1 * var(--tete-h)); padding-top: var(--tete-h); overflow: hidden; }
.hero-photos { position: absolute; inset: 0; z-index: -2; background: #161615; container-type: size; overflow: hidden; --n: 8; }
.fond, .plein, .lame img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.fond, .plein { position: absolute; inset: 0; width: 100%; height: 100%; }
/* En version vive, la première photo se découvre par lames à l'ouverture ; l'image simple revient d'office si le script tarde */
.vif .fond { visibility: hidden; animation: secours 1ms 4s forwards; }
@keyframes secours { to { visibility: visible; } }
.couche { position: absolute; inset: 0; visibility: hidden; }
.couche.montree { visibility: visible; }
.couche .plein { visibility: hidden; }
.couche.posee .plein { visibility: inherit; }
.couche.posee .lame { visibility: hidden; }
/* Un chapitre peut avoir un film à la place de sa photo : il se fond sur elle une fois lancé (jamais en version calme, où il n'est pas chargé) */
.couche video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: 0; transition: opacity .7s ease-out; }
.couche.film video { opacity: 1; }
.lame { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 100cqw / var(--n)); width: calc(100cqw / var(--n) + 1px); overflow: hidden; }
.lame img { position: absolute; top: 0; left: calc(var(--i) * -100cqw / var(--n)); width: 100cqw; height: 100cqh; max-width: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(12, 12, 12, .93) 0%, rgba(12, 12, 12, .72) 38%, rgba(12, 12, 12, .1) 78%),
  linear-gradient(0deg, rgba(12, 12, 12, .94) 0%, rgba(12, 12, 12, 0) 48%),
  linear-gradient(180deg, rgba(12, 12, 12, .82) 0%, rgba(12, 12, 12, 0) 26%); }

.hero-corps { position: relative; display: grid; align-content: end; padding: 1.5rem var(--marge) 2.6rem; }
/* La taille du titre suit aussi la hauteur de l'écran, pour que la bande des métiers reste visible sur un portable */
.hero h1 { font-stretch: 68%; font-weight: 800; font-size: clamp(2.6rem, min(7vw, 15.5vh - 1.6rem), 6rem); line-height: .94; letter-spacing: -.012em; }
.hero h1 .mot { display: grid; justify-items: start; overflow: hidden; color: var(--or); white-space: nowrap; padding-block: .06em .16em; margin-block: -.06em -.16em; }
.hero h1 .mot-in { grid-area: 1 / 1; }
.hero h1 .ligne { display: block; overflow: hidden; padding-block: .06em .16em; margin-block: -.06em -.16em; }
.hero h1 .ligne > span { display: block; }
.hero-chapo { margin-top: 1.5rem; max-width: 34rem; font-size: 1.14rem; line-height: 1.55; color: var(--creme-2); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.75rem; margin-top: 1.9rem; }
.hero-promesse { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 500; }
.hero-promesse .icone { color: var(--or); }
.hero-legende { position: absolute; right: var(--marge); bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; font-size: .9rem; }
.hero-legende::before { content: ''; width: 2rem; height: 2px; background: var(--or); }
.fil { display: none; }

@keyframes monte { from { transform: translateY(112%); } }
@keyframes apparait { from { opacity: 0; transform: translateY(14px); } }
@keyframes remplir { to { transform: scaleX(1); } }

.metiers { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); border-top: 1px solid rgba(245, 240, 232, .24); background: rgba(12, 12, 12, .5); }
.metier { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: .2rem; padding: .95rem 1.1rem 1.05rem; text-decoration: none; transition: background .3s var(--doux); }
.metier + .metier { border-left: 1px solid var(--trait-clair); }
.metier::before { content: ''; position: absolute; inset: -1px 0 auto 0; height: 4px; background: var(--or); transform: scaleX(0); transform-origin: left; }
.metier.actif::before { animation: remplir var(--cadence) linear forwards; }
.metiers.fige .metier.actif::before { animation: none; transform: scaleX(1); }
.metier:hover, .metier.actif { background: rgba(196, 163, 90, .15); }
.metier-nom { font-stretch: 76%; font-weight: 700; font-size: 1.22rem; line-height: 1.12; transition: color .3s; }
.metier.actif .metier-nom { color: var(--or-clair); }
.metier-txt { font-size: .86rem; line-height: 1.35; color: var(--creme-2); }
.metier-img { display: none; }
.metier-fleche { position: absolute; top: 1rem; right: .9rem; color: var(--or); opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--doux), transform .3s var(--doux); }
.metier:hover .metier-fleche, .metier:focus-visible .metier-fleche { opacity: 1; transform: none; }

/* L'ACCROCHE : les mots s'allument au fil de la lecture */
.manifeste-texte { max-width: 66rem; font-stretch: 72%; font-weight: 700; font-size: clamp(1.8rem, 4.4vw, 3.7rem); line-height: 1.07; letter-spacing: -.012em; text-wrap: pretty; }
.manifeste-texte .m { transition: color .45s var(--doux); }
.manifeste-texte.anime .m { color: rgba(22, 22, 21, .5); }
.manifeste-texte.anime .m.lu { color: var(--encre); }
.manifeste-texte .trait { background: linear-gradient(var(--or), var(--or)) left 92% / 100% .16em no-repeat; }
.manifeste-texte.anime .trait { background-size: 0 .16em; transition: background-size .9s var(--doux); }
.manifeste-texte.anime .trait.lu { background-size: 100% .16em; }
.manifeste-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2.75rem; }
/* Pastille : la photo est agrandie et cadrée sur Steve, pour qu'on reconnaisse quelqu'un */
.pastille { flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #cfcdc8; }
.pastille img { width: 100%; height: 100%; object-fit: cover; }
.manifeste-pied p { max-width: 30rem; color: var(--encre-2); margin-right: auto; }
.manifeste-pied strong { color: var(--encre); }

/* RÉALISATIONS : une pellicule qui défile */
.realisations { padding-inline: 0; --bord: max(var(--marge), calc((100vw - 80rem) / 2)); }
.realisations .dedans { padding-inline: var(--marge); max-width: calc(80rem + 2 * var(--marge)); }
.piste-cmd { display: flex; align-items: center; gap: .75rem; }
.piste-compte { min-width: 3.2rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--creme-2); }
.rond { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 1px solid rgba(245, 240, 232, .5); border-radius: 50%; background: none; color: var(--creme); font-size: 1.15rem; cursor: pointer; transition: background .25s var(--doux), color .25s, border-color .25s, opacity .25s; }
.rond:hover:not(:disabled) { background: var(--or); border-color: var(--or); color: var(--encre); }
.rond:disabled { opacity: .35; cursor: default; }
.rond-prec .icone { transform: scaleX(-1); }
.piste { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--bord); scrollbar-width: thin; scrollbar-color: var(--or-sombre) transparent; }
.rail { position: relative; display: flex; gap: .75rem; width: max-content; padding: 0 var(--bord) 1.1rem; }
.jauge { display: none; }
.jauge span { display: block; height: 100%; background: var(--or); transform-origin: left; transform: scaleX(0); }
/* Sur ordinateur (version vive), la pellicule est épinglée : elle défile de côté pendant qu'on descend la page */
.realisations:has(.epingle) { padding-top: clamp(1.5rem, 3vw, 3rem); }
.defile.epingle { height: calc(100vh - var(--tete-h) + var(--course, 0px)); }
.defile.epingle .defile-colle { position: sticky; top: var(--tete-h); height: calc(100vh - var(--tete-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.defile.epingle .entete-ligne { width: 100%; margin-bottom: 1.75rem; }
.defile.epingle .piste { overflow: hidden; scroll-snap-type: none; }
.defile.epingle .rail { padding-bottom: 0; will-change: transform; }
.defile.epingle .vue { height: min(clamp(22rem, 64vh, 35rem), calc(100vh - var(--tete-h) - 13rem)); }
.defile.epingle .jauge { display: block; flex: none; height: 3px; margin: 1.4rem var(--bord) 0; background: rgba(245, 240, 232, .2); }
.vue { position: relative; isolation: isolate; flex: none; height: clamp(22rem, 64vh, 35rem); aspect-ratio: 4 / 3; overflow: hidden; scroll-snap-align: start; background: var(--nuit-2); text-decoration: none; }
.vue.haute { aspect-ratio: 3 / 4; }
.vue img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--doux); }
.vue:hover img, .vue:focus-visible img { transform: scale(1.05); }
.vue::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, 0) 55%); }
.vue-txt { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .2rem; padding: 1.3rem 1.4rem; }
.vue-titre { font-stretch: 76%; font-weight: 700; font-size: 1.45rem; line-height: 1.12; text-wrap: balance; }
.vue-lieu { font-size: .95rem; color: var(--or-clair); }
.vue-fin { display: grid; place-content: center; justify-items: start; gap: 1rem; aspect-ratio: 3 / 4; padding: 2rem; border: 1px solid var(--trait-clair); background: none; }
.vue-fin::after { display: none; }
.vue-fin .vue-titre { font-size: 1.9rem; }
.vue-fin .icone { width: 2rem; height: 2rem; color: var(--or); transition: transform .35s var(--doux); }
.vue-fin:hover .icone { transform: translateX(8px); }

/* AVANT / APRÈS : un curseur à faire glisser */
.avant-apres { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(4rem, 8vw, 7rem); }
.avant-apres p { margin-top: 1.1rem; max-width: 26rem; color: var(--creme-2); }
.avant-apres .lien-fleche { margin-top: 1.25rem; }
.aa { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #222; --pos: 50%; --voile: var(--nuit); user-select: none; }
.aa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.aa-avant { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.aa-etq { position: absolute; top: 1rem; padding: .3rem .75rem; border-radius: 2px; background: rgba(12, 12, 12, .8); font-size: .9rem; font-weight: 600; pointer-events: none; }
.aa-etq-avant { left: 1rem; }
.aa-etq-apres { right: 1rem; }
.aa-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--or); pointer-events: none; }
.aa-poignee span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px; border-radius: 50%; background: var(--or); color: var(--encre); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .7); }
.aa-poignee svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.aa-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.aa:has(.aa-curseur:focus-visible) { outline: 2px solid var(--or-clair); outline-offset: 3px; }

/* L'ENTREPRISE ET LES PREUVES */
.entreprise { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.portrait img { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: 50% 30%; }
.portrait figcaption { margin-top: .7rem; }
.vue-note { position: absolute; top: 1rem; left: 1rem; max-width: calc(100% - 2rem); }
.citation { margin: 1.75rem 0 1.5rem; max-width: 36rem; font-stretch: 76%; font-weight: 600; font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.2; }
.citation .trait { background: linear-gradient(var(--or), var(--or)) left 92% / 100% .2em no-repeat; }
.entreprise p { max-width: 36rem; color: var(--encre-2); font-size: 1.08rem; }
.signature { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--trait-sombre); color: var(--encre) !important; font-weight: 600; }
.preuves { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--trait-sombre); }
.preuves h3 { font-stretch: 76%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-bottom: 1.25rem; }
/* Sans avis de clients (retirés le 24/11/2026 tant qu'il n'y en a pas) : les garanties seules, sur deux colonnes */
.preuves.seule { grid-template-columns: 1fr; }
.preuves.seule .garanties { grid-template-columns: 1fr 1fr; gap: 1.1rem clamp(2rem, 5vw, 5rem); max-width: 54rem; }
@media (max-width: 640px) { .preuves.seule .garanties { grid-template-columns: 1fr; } }
.avis { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.a-venir { padding: 1.25rem 1.25rem 1.4rem; border: 1.5px dashed rgba(22, 22, 21, .45); border-radius: 4px; background: repeating-linear-gradient(135deg, rgba(22, 22, 21, .04) 0 10px, transparent 10px 20px); }
.a-venir .etiquette { margin-bottom: .7rem; }
.a-venir p { font-size: .97rem; line-height: 1.55; color: var(--encre-2); }
.note-maquette { margin-top: 1rem; padding: .6rem .8rem; border: 1px dashed rgba(22, 22, 21, .4); border-radius: 3px; font-size: .92rem; color: var(--encre-3); max-width: 38rem; }
.note-maquette strong { color: var(--encre-2); font-weight: 600; }
.garanties { list-style: none; display: grid; gap: .8rem; }
.garanties li { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; color: var(--encre-2); }
.garanties .icone { margin-top: .25rem; color: var(--or-sombre); }
.garanties .attente { color: var(--encre-3); stroke-dasharray: 2.5 3; }
.garanties strong { color: var(--encre); font-weight: 600; }
.garanties .etiquette { margin-top: .35rem; }

/* DÉROULEMENT : la ligne avance d'étape en étape */
.a-valider { margin-top: 1rem; }
.etapes { position: relative; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 2rem; margin-top: 3.5rem; padding-top: 2.4rem; --avance: 1; }
.etapes::before, .etapes::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: rgba(245, 240, 232, .22); }
.etapes::after { background: var(--or); transform-origin: left; transform: scaleX(var(--avance)); }
.etapes li { position: relative; }
.etapes li::before { content: ''; position: absolute; top: calc(-2.4rem - 6px); left: 0; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--or); background: var(--or); transition: background .4s var(--doux), border-color .4s var(--doux); }
.etape-num { display: block; margin-bottom: .5rem; font-stretch: 68%; font-weight: 800; font-size: 3.6rem; line-height: 1; color: var(--or); transition: color .4s var(--doux); }
.etapes h3 { display: flex; align-items: flex-end; min-height: 2.3em; font-stretch: 76%; font-weight: 700; font-size: 1.35rem; line-height: 1.15; margin-bottom: .55rem; }
.etapes p { font-size: .98rem; line-height: 1.55; color: var(--creme-2); }
.etapes .recu { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--trait-clair); color: var(--creme); font-weight: 500; }
.etapes.anime li:not(.vu)::before { background: var(--anthracite); border-color: rgba(245, 240, 232, .45); }
.etapes.anime li:not(.vu) .etape-num { color: rgba(245, 240, 232, .5); }
.etapes.anime li > :not(.etape-num) { transition: opacity .6s var(--doux), transform .6s var(--doux); }
/* Une étape pas encore atteinte reste lisible : elle est seulement en retrait */
.etapes.anime li:not(.vu) > :not(.etape-num) { opacity: .6; transform: translateY(.6rem); }
.rappel { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 3.25rem; color: var(--creme-2); }

/* ZONE ET PROFESSIONNELS */
.zone p { margin-top: 1.1rem; max-width: 34rem; color: var(--encre-2); font-size: 1.08rem; }
/* Le point or précède chaque commune ; celui du début de ligne est rogné, pour qu'aucun point ne traîne en bout de ligne */
.communes { list-style: none; display: flex; flex-wrap: wrap; row-gap: .05em; margin: 2.25rem 0 0 -1.1em; clip-path: inset(0 0 0 1.1em); font-stretch: 68%; font-weight: 800; font-size: clamp(1.75rem, 3.9vw, 3.3rem); line-height: 1.14; }
.communes li { display: inline-flex; align-items: center; }
.communes li::before { content: ''; flex: none; width: .2em; height: .2em; margin-inline: .45em; border-radius: 50%; background: var(--or); }
/* Le plan de Liège en fond du bloc (photo achetée par Steve, reprise de son site actuel). Il est passé en gris sur le papier,
   bien visible en haut à droite où il n'y a pas de texte, et il s'efface vers la gauche et vers le bas pour laisser lire les noms. */
#zone { position: relative; isolation: isolate; }
#zone::before { content: ''; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 46rem; max-height: 100%; background: url('img/plan-liege.jpg') 0% 67% / 150% auto no-repeat; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; opacity: .4; -webkit-mask-image: radial-gradient(110% 100% at 90% 8%, #000 0%, rgba(0, 0, 0, .45) 40%, transparent 78%); mask-image: radial-gradient(110% 100% at 90% 8%, #000 0%, rgba(0, 0, 0, .45) 40%, transparent 78%); pointer-events: none; }
@media (max-width: 960px) {
  /* Sur téléphone et tablette le texte occupe toute la largeur : le plan reste léger partout et s'efface vers le bas */
  #zone::before { height: 34rem; background-size: cover; background-position: 52% 45%; opacity: .2; -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 96%); mask-image: linear-gradient(to bottom, #000 35%, transparent 96%); }
}
.pros { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.25rem clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(3.5rem, 7vw, 6rem); padding: clamp(1.75rem, 4vw, 3rem); background: var(--anthracite); color: var(--creme); border-radius: 4px; }
.pros ::selection { background: var(--or); color: var(--encre); }
.pros :focus-visible { outline-color: var(--or-clair); }
.pros h2 { font-stretch: 74%; font-weight: 800; font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.05; text-wrap: balance; }
.pros p { max-width: 38rem; margin-bottom: .75rem; color: var(--creme-2); }

/* CONTACT : le formulaire */
.contact { background: var(--or); color: var(--encre); }
.contact-intro ::selection, .contact .titre::selection { background: var(--encre); color: var(--creme); }
.contact-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact .titre em { font-style: normal; display: block; }
.contact-texte { margin-top: 1.5rem; max-width: 30rem; font-size: 1.1rem; color: rgba(22, 22, 21, .88); }
.autrement { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(22, 22, 21, .3); max-width: 30rem; }
.autrement p { font-weight: 700; margin-bottom: .5rem; }
.autrement a { display: flex; align-items: center; gap: .7rem; min-height: 44px; width: fit-content; font-size: 1.1rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.autrement a:hover { text-decoration-thickness: 2px; }
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--nuit); color: var(--creme); border-radius: 4px; box-shadow: 0 30px 50px -30px rgba(22, 22, 21, .75); }
.champ { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; }
.champ-large { grid-column: 1 / -1; }
.champ label, .champ legend { font-size: .92rem; font-weight: 500; color: var(--creme-2); }
.champ legend { margin-bottom: .5rem; }
.champ small { font-size: .85rem; color: var(--creme-3); font-weight: 400; margin-left: .35rem; }
.champ input[type="text"], .champ textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid rgba(245, 240, 232, .3); border-radius: 3px; background: rgba(245, 240, 232, .06); color: var(--creme); font: 400 1rem/1.4 var(--police); transition: border-color .2s, background .2s; }
.champ textarea { min-height: 5.5rem; resize: vertical; }
.champ textarea::placeholder { color: var(--creme-3); }
.champ input[type="text"]:hover, .champ textarea:hover { border-color: rgba(245, 240, 232, .55); }
.champ input[type="text"]:focus, .champ textarea:focus { outline: none; border-color: var(--or); background: rgba(196, 163, 90, .1); }
.puces { display: flex; flex-wrap: wrap; gap: .5rem; }
.puce { position: relative; }
.puce input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.puce span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem; border: 1px solid rgba(245, 240, 232, .36); border-radius: 999px; font-size: .97rem; font-weight: 500; transition: background .2s var(--doux), border-color .2s, color .2s; }
.puce input:hover + span { border-color: rgba(245, 240, 232, .75); }
.puce input:checked + span { background: var(--or); border-color: var(--or); color: var(--encre); }
.puce input:focus-visible + span { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.formulaire .btn { grid-column: 1 / -1; width: 100%; }
.form-note { grid-column: 1 / -1; font-size: .92rem; color: var(--creme-3); }
.form-retour { grid-column: 1 / -1; padding: .8rem 1rem; border: 1px solid var(--or); border-radius: 3px; font-size: .95rem; }
.form-retour[hidden] { display: none; }

/* PIED */
.pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: 3rem var(--marge); background: var(--nuit); border-top: 1px solid var(--trait-clair); font-size: .92rem; color: var(--creme-2); }
.pied-liens { display: inline-flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-right: 76px; }
.pied-liens a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.pied img { height: 44px; width: auto; }
.pied a { text-underline-offset: 3px; }
.pied a:hover { color: var(--creme); }
/* Le © du pied de page cache un jeu (demande de Steve) : aucun signe visible, sauf le contour quand on y arrive au clavier */
.pied .oeuf, .pied .oeuf:hover { color: inherit; text-decoration: none; cursor: default; }
.pied-insta { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }

/* WhatsApp (ordinateur) et barre fixe (téléphone) : toujours à portée, sans rien recouvrir */
.wa-float { position: fixed; bottom: 22px; right: 22px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--or); background: var(--nuit); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .7); transition: transform .35s var(--doux), opacity .35s var(--doux), background .25s; }
.wa-float:hover { background: var(--anthracite); }
.wa-float.discret { opacity: 0; transform: scale(.6); pointer-events: none; }
.wa-float svg { width: 27px; height: 27px; fill: var(--or-clair); }
.barre { display: none; position: fixed; inset: auto 0 0 0; z-index: 50; align-items: center; gap: .6rem; padding: .6rem var(--marge) calc(.6rem + env(safe-area-inset-bottom)); background: #1c1c1b; box-shadow: 0 -1px 0 rgba(245, 240, 232, .1), 0 -10px 22px -18px rgba(0, 0, 0, .35); transform: translateY(110%); transition: transform .4s var(--doux); }
.barre.visible { transform: none; }
.barre .btn { flex: 1; min-height: 48px; }
.barre .rond { width: 48px; height: 48px; text-decoration: none; }
.info { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; max-width: min(30rem, calc(100vw - 2rem)); padding: .85rem 1.2rem; border-radius: 4px; background: var(--creme); color: var(--encre); font-size: .97rem; font-weight: 500; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; transition: opacity .3s var(--doux), transform .3s var(--doux); }
.info.visible { opacity: 1; transform: translate(-50%, 0); }

/* Entrée du premier écran : une seule fois, à l'ouverture de la page */
.vif .hero h1 .entree, .vif .hero h1 .ligne > span { animation: monte 1.1s var(--doux) .15s both; }
.vif .hero h1 .ligne:nth-of-type(2) > span { animation-delay: .27s; }
.vif .hero h1 .ligne:nth-of-type(3) > span { animation-delay: .39s; }
.vif .hero-chapo, .vif .hero-actions { animation: apparait .9s var(--doux) .75s both; }
.vif .metiers { animation: apparait .9s var(--doux) .95s both; }

/* BANDEAU DÉFILANT des promesses, entre le premier écran et l'accroche */
.ruban { overflow: hidden; background: var(--or); color: var(--encre); padding: clamp(.8rem, 1.5vw, 1.15rem) 0; }
.ruban ::selection { background: var(--encre); color: var(--creme); }
.ruban-piste { display: flex; width: max-content; }
.ruban-liste { flex: none; display: flex; list-style: none; }
.ruban-liste li { display: flex; align-items: center; white-space: nowrap; font-stretch: 68%; font-weight: 800; font-size: clamp(1.5rem, 3.3vw, 2.7rem); line-height: 1.1; letter-spacing: -.008em; }
.ruban-liste li::after { content: ''; flex: none; width: .24em; height: .24em; margin-inline: .75em; background: var(--encre); transform: rotate(45deg); }
.calme .ruban-piste { width: auto; }
/* Version calme : le bandeau ne bouge pas, les promesses se rangent au centre, sans losange qui traîne en bout de ligne */
.calme .ruban-liste { flex: 1; flex-wrap: wrap; justify-content: center; gap: .15em 1.8em; padding-inline: var(--marge); }
.calme .ruban-liste li { white-space: normal; text-align: center; }
.calme .ruban-liste + .ruban-liste, .calme .ruban-liste li::after { display: none; }

/* ENTRÉES au défilement (version vive seulement, la classe est posée par le script) */
.entrees main .titre .monte { display: block; clip-path: inset(-.15em -.15em 110% -.15em); transform: translateY(.3em); transition: clip-path 1.1s var(--doux), transform 1.1s var(--doux); }
.entrees main .titre.arrive .monte { clip-path: inset(-.15em); transform: none; }
[data-volets] { position: relative; overflow: hidden; }
.volets { position: absolute; inset: -1px; z-index: 3; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.volets span { margin-inline: -.5px; background: var(--voile, var(--papier)); transform-origin: bottom; transition: transform 1.1s var(--doux); transition-delay: calc(var(--i) * 90ms); }
.arrive > .volets span { transform: scaleY(0); }
.entrees .communes li { opacity: 0; transform: translateY(.45em); transition: opacity .6s var(--doux), transform .6s var(--doux); transition-delay: calc(var(--i) * 45ms); }
.entrees .communes.arrive li { opacity: 1; transform: none; }

/* TABLETTE ET TÉLÉPHONE : la photo en haut, le texte dessous sur fond uni, les six métiers en tuiles photo */
@media (max-width: 960px) {
  .tete-nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; gap: 0; padding: .5rem var(--marge) 1rem; background: #1c1c1b; }
  .tete-nav.ouvert { display: flex; }
  .tete-nav a { min-height: 48px; width: 100%; }
  .menu-btn { display: inline-flex; }
  /* En-tête réduit au logo et au menu : le bouton or et le téléphone sont dans la barre du bas et dans le menu */
  .tete .btn, .tete-tel { display: none; }
  .menu-tel { display: block; }
  .hero { display: block; min-height: 0; padding-top: 0; --photo: clamp(16rem, 42vh, 24rem); }
  .hero-photos { position: relative; inset: auto; height: var(--photo); --n: 5; }
  .fond, .plein, .lame img, .couche video { object-position: var(--pos-tel, var(--pos, 50% 50%)); }
  /* Le voile dépasse la photo de 2 px : sans cela un filet clair apparaît à leur jonction */
  .hero::before { inset: 0 0 auto 0; height: calc(var(--photo) + 2px); background: linear-gradient(180deg, rgba(12, 12, 12, .92) 0%, rgba(12, 12, 12, .74) 24%, rgba(12, 12, 12, .06) 50%, rgba(19, 19, 18, 0) 62%, var(--nuit) 100%); }
  .hero-corps { display: block; margin-top: -3rem; padding: 0 var(--marge) 1.9rem; }
  /* La légende se pose en haut de la photo, sous le fil de progression : jamais juste au-dessus du titre, où elle se lirait comme un surtitre */
  .hero-legende { top: calc(3rem - var(--photo) + var(--tete-h) + .95rem); right: var(--marge); bottom: auto; max-width: calc(100% - 2 * var(--marge)); font-size: .86rem; white-space: nowrap; }
  .fil { position: absolute; top: calc(var(--tete-h) + .2rem); left: var(--marge); right: var(--marge); z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: 5px; }
  .fil span { position: relative; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(245, 240, 232, .34); }
  .fil span::after { content: ''; position: absolute; inset: 0; background: var(--creme); transform: scaleX(0); transform-origin: left; }
  .fil span.passe::after { transform: scaleX(1); }
  .fil span.actif::after { animation: remplir var(--cadence) linear forwards; }
  .fil.fige span.actif::after { animation: none; transform: scaleX(1); }
  .metiers { grid-template-columns: repeat(var(--cols-tablette, 3), minmax(0, 1fr)); gap: 3px; padding-top: 3px; border-top: 0; background: var(--nuit); }
  .metier { min-height: 11.5rem; justify-content: flex-end; padding: 1rem; }
  .metier + .metier { border-left: 0; }
  .metier::before { display: none; }
  .metier::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 12, 12, .93) 0%, rgba(12, 12, 12, .25) 72%); }
  .metier:hover, .metier.actif { background: none; }
  .metier.actif .metier-nom { color: inherit; }
  .metier-img { display: block; position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
  .metier-fleche { display: none; }
  .vue, .vue.haute, .vue-fin { width: min(82vw, 26rem); height: auto; aspect-ratio: 4 / 5; }
  .avant-apres, .entreprise, .preuves, .pros { grid-template-columns: 1fr; }
  .portrait { max-width: 24rem; }
  .etapes { grid-template-columns: 1fr; gap: 2rem; padding: 0 0 0 2.6rem; }
  .etapes::before, .etapes::after { inset: .4rem auto .4rem 6px; width: 2px; height: auto; }
  .etapes::after { transform-origin: top; transform: scaleY(var(--avance)); }
  .etapes li { display: grid; grid-template-columns: 3rem 1fr; column-gap: .25rem; }
  .etapes li::before { top: .45rem; left: calc(-2.6rem); }
  .etape-num { grid-row: span 3; margin: 0; font-size: 2.6rem; }
  .etapes h3 { min-height: 0; }
  .etapes li > :not(.etape-num) { grid-column: 2; }
  .contact-grille { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .contact-intro { display: contents; }
  .contact-texte { max-width: 36rem; }
  .formulaire { order: 3; margin-top: 2rem; }
  .autrement { order: 4; max-width: none; margin-top: 2rem; }
  .wa-float { display: none; }
  .barre { display: flex; }
  body { padding-bottom: 4.6rem; }
  .info { bottom: 5.4rem; }
}

/* ÉCRANS PEU HAUTS (portables) : tout le premier écran reste visible, bande des métiers comprise */
@media (min-width: 961px) and (max-height: 760px) {
  :root { --tete-h: 3.9rem; }
  .tete-logo img { height: 44px; }
  .hero h1 { font-size: clamp(2.6rem, min(6.2vw, 13.5vh - 1.2rem), 6rem); }
  .hero-corps { padding: .5rem var(--marge) 1.9rem; }
  .hero-chapo { margin-top: 1rem; font-size: 1.05rem; }
  .hero-actions { margin-top: 1.2rem; }
  .metier { padding: .7rem 1.1rem .8rem; }
  .metier-nom { font-size: 1.12rem; }
}

/* TÉLÉPHONE */
@media (max-width: 600px) {
  .tete-logo img { height: 44px; }
  .tete .btn { min-height: 44px; padding: .65rem 1rem; }
  .cta-long { display: none; }
  .cta-court { display: inline; }
  /* Le titre tient en trois lignes, comme sur ordinateur : « du premier rendez-vous » reste entier */
  .hero h1 { font-size: 9.9vw; }
  .hero-chapo { margin-top: 1.1rem; font-size: 1.05rem; }
  .chapo-suite, .promesse-suite { display: none; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-actions .btn { width: 100%; }
  .metiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metier { min-height: 9.75rem; padding: .85rem; }
  .metier-nom { font-size: 1.12rem; }
  .metier-txt { font-size: .84rem; }
  .piste-compte { display: none; }
  .avis, .formulaire { grid-template-columns: 1fr; }
  .pied { flex-direction: column; align-items: flex-start; }
  .pied-liens { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vue img, .btn .icone, .lien-fleche .icone, .metier-fleche, .info, .barre, .wa-float { transition: none; }
  .metier.actif::before, .fil span.actif::after { animation: none; transform: scaleX(1); }
}

/* ===== PAGES MÉTIER : blocs propres aux pages de métier (première : ossature bois) ===== */

/* Les travaux proposés : une rangée par travail, photo et texte, un côté puis l'autre */
.travaux-titre { margin-top: clamp(3.5rem, 7vw, 6rem); }
.travaux { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); margin-top: 2.5rem; }
.travail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; scroll-margin-top: 6rem; }
.travail:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.travail:nth-child(even) .travail-vue { order: 2; }
.travail-photo { aspect-ratio: 4 / 3; background: rgba(22, 22, 21, .08); }
.travail-photo img { width: 100%; height: 100%; object-fit: cover; }
.travail-vue figcaption { margin-top: .6rem; font-size: .92rem; color: var(--encre-3); }
.travail h3 { font-stretch: 76%; font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; margin-bottom: .7rem; }
.travail p { max-width: 34rem; color: var(--encre-2); font-size: 1.08rem; }
.travail .lien-fleche { margin-top: .8rem; }

/* Pellicule : emplacement d'une photo qui reste à fournir */
.vue-vide { border: 1.5px dashed rgba(245, 240, 232, .45); }
.vue-vide p { max-width: 16rem; color: var(--creme-2); }

/* La coupe du mur : un dessin à l'encre sur papier, chaque couche est une lame ; l'or ne marque que la couche dont on parle.
   Le dessin reste à l'écran pendant qu'on lit la légende. */
.mur { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.mur-intro p { margin-top: 1.1rem; max-width: 28rem; color: var(--encre-2); font-size: 1.08rem; }
.coupe-cadre { position: sticky; top: calc(var(--tete-h) + 2rem); }
.coupe-dessin { position: relative; display: flex; gap: 3px; height: clamp(16rem, 58vh, 30rem); margin-top: 1.9rem; padding-bottom: 2rem; }
.strate { position: relative; flex: var(--l) 1 0; min-width: 5px; border: 1px solid var(--encre); background-color: transparent; transition: opacity .3s var(--doux), background-color .3s var(--doux); }
.strate::after { content: attr(data-n); position: absolute; left: 50%; bottom: -1.9rem; transform: translateX(-50%); font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.strate.sans-numero::after { content: none; }
.s-bardage { background-image: repeating-linear-gradient(0deg, var(--encre) 0 2.1rem, transparent 2.1rem calc(2.1rem + 2px)); }
.s-air, .s-vide { border-style: dashed; border-color: var(--encre-3); }
.s-pluie { background-image: radial-gradient(var(--encre) 1px, transparent 1.6px); background-size: 6px 6px; }
.s-ossature { background-image:
  linear-gradient(var(--encre), var(--encre)), linear-gradient(var(--encre), var(--encre)),
  repeating-linear-gradient(90deg, rgba(22, 22, 21, .6) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(22, 22, 21, .6) 0 1px, transparent 1px 5px),
  repeating-linear-gradient(135deg, rgba(22, 22, 21, .36) 0 1.5px, transparent 1.5px 12px);
  background-size: 100% 1px, 100% 1px, 100% 1.4rem, 100% 1.4rem, auto;
  background-position: 0 1.4rem, 0 calc(100% - 1.4rem), top, bottom, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat; }
.s-vapeur { min-width: 4px; border: 0; background-color: var(--encre); }
.s-osb { background-image: repeating-linear-gradient(45deg, rgba(22, 22, 21, .55) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, rgba(22, 22, 21, .3) 0 1px, transparent 1px 7px); }
.s-platre { background-color: rgba(22, 22, 21, .07); }
.strate.actif { background-color: var(--or); }
.s-bardage.actif { background-image: repeating-linear-gradient(0deg, transparent 0 2.1rem, var(--encre) 2.1rem calc(2.1rem + 2px)); }
.s-vapeur.actif { min-width: 6px; outline: 1px solid var(--encre); }
.coupe.choix .strate:not(.actif) { opacity: .62; }
.coupe-cote { position: absolute; bottom: 100%; margin-bottom: .5rem; font-size: .9rem; font-weight: 600; color: var(--encre-3); }
.coupe-ext { left: 0; }
.coupe-int { right: 0; }
.coupe-liste { list-style: none; margin-top: 2rem; }
/* Sous la liste d'une photo annotée : les couches qu'on ne voit pas sur la photo */
.coupe-suite { margin-top: 1.4rem; max-width: 30rem; color: var(--encre-2); }
.coupe-liste li { display: grid; grid-template-columns: 1.9rem 1fr; gap: 0 .6rem; padding: .85rem .5rem .85rem 0; border-top: 1px solid var(--trait-sombre); cursor: default; }
.coupe-liste li::before { content: attr(data-n); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid var(--encre); border-radius: 2px; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; transition: background-color .3s var(--doux); }
.coupe-liste li.actif::before { background-color: var(--or); }
.coupe-liste strong { display: block; font-weight: 600; }
.coupe-liste span { display: block; font-size: .97rem; line-height: 1.5; color: var(--encre-2); }
.entrees .coupe-dessin .strate { transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--doux), opacity .3s var(--doux), background-color .3s var(--doux); transition-delay: calc(var(--i) * 80ms), 0s, 0s; }
.entrees .coupe-dessin.arrive .strate { transform: none; }

/* Le portrait sur fond nuit (pages métier) */
.portrait-nuit .entreprise p { color: var(--creme-2); }
.portrait-nuit .signature { border-top-color: var(--trait-clair); color: var(--creme) !important; }
.portrait-nuit .portrait { --voile: var(--nuit); }
.portrait-texte { margin-top: 1.5rem; }
.preuves-ligne { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1.5rem; font-weight: 600; }
.preuves-ligne .icone { flex: none; margin-top: .3em; color: var(--or-sombre); }
.portrait-nuit .preuves-ligne .icone { color: var(--or); }
.portrait-nuit .lien-fleche { margin-top: 1.1rem; }

/* Questions fréquentes */
.questions { max-width: 54rem; margin-top: 2.5rem; border-bottom: 1px solid var(--trait-sombre); }
.question { border-top: 1px solid var(--trait-sombre); }
.question summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: .9rem 3rem .9rem 0; font-stretch: 76%; font-weight: 700; font-size: 1.35rem; line-height: 1.2; cursor: pointer; list-style: none; }
.question summary::-webkit-details-marker { display: none; }
.question summary::before, .question summary::after { content: ''; position: absolute; right: .35rem; top: 50%; width: 1.1rem; height: 2px; margin-top: -1px; background: var(--encre); transition: transform .3s var(--doux); }
.question summary::after { transform: rotate(90deg); }
.question[open] summary::after { transform: none; }
.question p { max-width: 38rem; padding: 0 0 1.4rem; color: var(--encre-2); font-size: 1.05rem; }

/* Les autres métiers : cinq liens fléchés, en grille */
.autres { margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--trait-sombre); }
.autres ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 2.5rem; margin-top: 2rem; }
.autres a { display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; font-stretch: 76%; font-weight: 700; font-size: 1.45rem; line-height: 1.15; text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.autres a .icone { transition: transform .3s var(--doux); }
.autres a:hover .icone { transform: translateX(5px); }

@media (max-width: 960px) {
  .travail, .travail:nth-child(even) { grid-template-columns: 1fr; }
  .travail:nth-child(even) .travail-vue { order: 0; }
  /* Sur petit écran, le dessin reste collé sous l'en-tête et la légende défile dessous */
  .mur { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .mur-texte { display: contents; }
  .mur-intro { order: 1; }
  .coupe-cadre { order: 2; top: var(--tete-h); z-index: 2; margin: 1.5rem calc(-1 * var(--marge)) 0; padding: .2rem var(--marge) .5rem; background: var(--papier); box-shadow: 0 1px 0 var(--trait-sombre); }
  .coupe-dessin { height: 11.5rem; margin-top: 2rem; }
  .coupe-liste { order: 3; margin-top: 1rem; }
  .coupe-suite { order: 4; }
  .autres ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .autres ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .strate, .coupe-liste li::before, .question summary::after, .autres a .icone { transition: none; }
}

/* Coupe de toiture : les couches sont couchées et posées en pente sur leurs cales ; à un bout, l'acrotère, la membrane qui remonte et le profil de rive.
   Numéros à gauche, sur deux rangs, pour que deux couches minces voisines ne se chevauchent pas. */
.coupe-dessin.a-plat { flex-direction: row; margin-top: .8rem; margin-bottom: .6rem; padding: 0 0 0 3.5rem; container-type: inline-size; --bord: 3rem; --ciel: 4rem; --monte: calc((100cqw - var(--bord) - 3px) * .0384); }
.toit-pile { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: var(--ciel); }
.toit-pente { flex: 16 1 0; display: flex; flex-direction: column; gap: 3px; margin-bottom: -3px; transform: skewY(-2.2deg); transform-origin: left bottom; }
.toit-eau { position: absolute; top: calc(var(--ciel) - 1.6rem); left: 0; display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--encre-3); }
.toit-eau .icone { transform: scaleX(-1); }
.a-plat .strate { min-width: 0; min-height: 5px; }
.a-plat .strate::after { left: -1.1rem; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.a-plat .strate.num-b::after { left: -2.5rem; }
.s-membrane { min-height: 7px; border: 0; background-color: var(--encre); }
.s-membrane.actif { min-height: 9px; outline: 1px solid var(--encre); }
.s-isolant { background-image: repeating-linear-gradient(135deg, rgba(22, 22, 21, .36) 0 1.5px, transparent 1.5px 12px); }
/* Le pare-vapeur est un trait interrompu, la membrane un trait plein : on ne les confond pas */
.a-plat .s-vapeur { flex: none; height: 5px; background-color: transparent; background-image: repeating-linear-gradient(90deg, var(--encre) 0 11px, transparent 11px 17px); }
.a-plat .s-vapeur.actif { height: 7px; background-color: var(--or); }
.s-gitage { display: flex; justify-content: space-around; border-style: dashed; border-color: var(--encre-3); }
.s-gitage i { width: clamp(.7rem, 2vw, 1.15rem); border-inline: 1px solid var(--encre); background-image: repeating-linear-gradient(135deg, rgba(22, 22, 21, .55) 0 1px, transparent 1px 5px); transition: background-color .3s var(--doux); }
/* Les cales de pente : un coin posé sur les solives, épais du côté de l'acrotère, nul du côté de l'évacuation */
.cales { position: absolute; left: -1px; right: -1px; bottom: 100%; height: var(--monte); clip-path: polygon(0 100%, 100% 0, 100% 100%); background-image: repeating-linear-gradient(135deg, rgba(22, 22, 21, .6) 0 1px, transparent 1px 4px); transition: background-color .3s var(--doux); }
/* Couche 5 lue : l'or va sur le bois (solives et cales), pas sur le vide entre les solives */
.s-gitage.actif { background-color: transparent; }
.s-gitage.actif i, .s-gitage.actif .cales { background-color: var(--or); }
.toit-bord { flex: none; width: var(--bord); display: flex; flex-direction: column; gap: 3px; }
.acrotere { position: relative; flex: 16 1 var(--ciel); border: 1px dashed var(--encre-3); }
.toit-mur { flex: 19 1 0; border: 1px dashed var(--encre-3); }
.acrotere .strate { position: absolute; flex: none; }
.releve-v { top: -1px; left: -4px; width: 7px; height: calc(var(--ciel) - var(--monte) + 8px); }
.releve-h { top: -1px; left: -4px; width: calc(62% + 4px); height: 7px; }
/* Le pare-vapeur remonte contre l'acrotère jusque sous la membrane (hauteurs déduites du partage des couches) */
.a-plat .retour-v { --haut: calc((100% - var(--ciel) - 14px) * .8 + 4px); left: -4px; bottom: calc(var(--monte) + (100% - var(--ciel) - 14px) * .1333 + 3px); width: 5px; height: var(--haut); background-image: repeating-linear-gradient(0deg, var(--encre) 0 11px, transparent 11px 17px); }
.a-plat .retour-v.actif { width: 7px; height: var(--haut); }
.rive { position: absolute; top: -7px; left: 36%; right: -7px; height: 1.7rem; border: solid var(--encre); border-width: 3px 3px 0 0; }
.entrees .coupe-dessin.a-plat .strate { transform: scaleX(0); transform-origin: left; }
.entrees .coupe-dessin.a-plat.arrive .strate { transform: none; }
@media (max-width: 960px) {
  .coupe-dessin.a-plat { height: 12.5rem; margin-top: .5rem; margin-bottom: .4rem; padding-left: 3.2rem; --bord: 2.2rem; --ciel: 2.6rem; }
  .toit-eau { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .s-gitage i, .cales { transition: none; }
}

/* Pellicule : le numéro de la couche que la photo montre, pour relier les photos au dessin */
.vue-couche { position: absolute; top: 1rem; left: 1rem; padding: .3rem .75rem; border-radius: 2px; background: rgba(12, 12, 12, .8); font-size: .9rem; font-weight: 600; }

/* En-tête : quand un autre bouton or est à l'écran, le sien passe en contour, pour ne garder qu'un bouton plein par écran */
.tete .btn-or { transition: color .3s var(--doux), background-color .3s var(--doux), box-shadow .3s var(--doux); }
.tete.sans-or .btn-or { background-color: transparent; color: var(--creme); box-shadow: inset 0 0 0 1px rgba(245, 240, 232, .5); }
.tete.sans-or .btn-or:hover, .tete.sans-or .btn-or:focus-visible { color: var(--encre); }

/* Sur ordinateur, la colonne de la légende garde de la place en bas : le dessin reste entier à l'écran jusqu'à la dernière ligne lue */
@media (min-width: 961px) {
  .mur-texte { padding-bottom: max(0px, calc(var(--tete-h) + 3.3rem + clamp(16rem, 58vh, 30rem) - 50vh)); }
}

/* Coupe de façade : le mur porteur, dessiné en assises */
.s-mur { background-image: repeating-linear-gradient(0deg, rgba(22, 22, 21, .5) 0 1px, transparent 1px 1.15rem), repeating-linear-gradient(90deg, rgba(22, 22, 21, .2) 0 1px, transparent 1px 2.3rem); }

/* Photo légendée : quand il n'y a pas de coupe à dessiner, une vraie photo de chantier porte les numéros de la légende.
   Le cadre garde les proportions de la photo (--r), pour que chaque numéro reste sur ce qu'il désigne. */
.coupe-dessin.en-photo { --h: clamp(16rem, 58vh, 30rem); display: block; width: min(100%, calc(var(--h) * var(--r, 1.3333))); height: auto; aspect-ratio: var(--r, 1.3333); margin-inline: auto; padding: 0; overflow: hidden; background: rgba(22, 22, 21, .08); }
.en-photo img { width: 100%; height: 100%; object-fit: cover; }
.en-photo .repere { position: absolute; left: var(--x); top: var(--y); flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; min-width: 0; margin: -.95rem 0 0 -.95rem; border: 1px solid var(--creme); border-radius: 2px; background-color: rgba(12, 12, 12, .82); color: var(--creme); }
.en-photo .repere::after { position: static; transform: none; }
.en-photo .repere.actif { border-color: var(--encre); background-color: var(--or); color: var(--encre); }
.coupe.choix .en-photo .repere:not(.actif) { opacity: .85; }
.entrees .coupe-dessin.en-photo .strate { transform: scale(0); transform-origin: center; }
.entrees .coupe-dessin.en-photo.arrive .strate { transform: none; }
.coupe-lieu { margin-top: .6rem; font-size: .92rem; color: var(--encre-3); text-align: center; }
@media (max-width: 960px) {
  .coupe-dessin.en-photo { --h: 13.5rem; margin-top: .7rem; }
  .coupe-dessin.en-photo.haute { --h: 16.5rem; }
  .en-photo .repere { width: 1.6rem; height: 1.6rem; margin: -.8rem 0 0 -.8rem; }
  .coupe-lieu { margin-top: .35rem; font-size: .84rem; }
}
/* Sur ordinateur, une photo légendée en hauteur prend plus de place ; la colonne de la légende lui laisse la même réserve en bas que pour un dessin */
@media (min-width: 961px) {
  .coupe-dessin.en-photo.haute { --h: min(72vh, 36rem); }
  .mur:has(.en-photo.haute) .mur-texte { padding-bottom: max(0px, calc(var(--tete-h) + 3.3rem + min(72vh, 36rem) - 50vh)); }
}
/* Coupe de façade : dans la lame d'air, les lattes qui portent le bardage. Quand on lit cette couche, l'or va sur le bois, pas sur le vide */
.s-lattes { display: flex; flex-direction: column; justify-content: space-around; }
.s-lattes i { height: 5%; min-height: 6px; border-block: 1px solid var(--encre); background-image: repeating-linear-gradient(135deg, rgba(22, 22, 21, .55) 0 1px, transparent 1px 5px); transition: background-color .3s var(--doux); }
.s-lattes.actif { background-color: transparent; }
.s-lattes.actif i { background-color: var(--or); }
@media (prefers-reduced-motion: reduce) { .s-lattes i { transition: none; } }
/* Les croquis des étapes (accueil) : au-dessus de chaque étape, un petit dessin de trois quarts, dans la vue du mur en 3D,
   au trait crème sur l'anthracite ; l'or marque la pièce qui compte. Écrits par outils/etapes-3d.js.
   Chaque dessin se monte pièce par pièce, de haut en bas, quand la ligne or atteint son étape. En version calme, ils sont là, complets. */
.croquis { display: block; overflow: visible; }
.croquis polygon, .croquis line { stroke: var(--creme); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.croquis .cf-a { fill: #3d3d3b; } .croquis .cf-d { fill: #4b4a47; } .croquis .cf-c { fill: #292928; }
.croquis .or { stroke: var(--nuit); }
.croquis .or.cf-a, .croquis .plein.or { fill: var(--or); } .croquis .or.cf-d { fill: var(--or-clair); } .croquis .or.cf-c { fill: #a5863f; }
.croquis .sol { fill: none; stroke-dasharray: 4 3; stroke-opacity: .75; }
.croquis .ecran, .croquis .vitre { fill: #262625; }
.croquis .bulle { fill: #4b4a47; }
.croquis .fin { stroke-opacity: .42; }
.croquis .ruban { stroke: var(--or); stroke-width: 1.8; }
.croquis .ruban.fin { stroke-width: 1.1; stroke-opacity: 1; }
.croquis .total { stroke: var(--or); stroke-width: 2.2; }
.croquis .pc { transition: opacity .45s var(--doux), transform .75s var(--doux); transition-delay: calc(var(--i) * 110ms); }
.etapes.anime li:not(.vu) .croquis .pc { opacity: 0; transform: translateY(-16px); transition-delay: 0s; }
@media (min-width: 961px) {
  /* Sur ordinateur, les dessins se tiennent au-dessus de la ligne, chacun à l'aplomb de son point */
  .etapes.dessins { --ch: 9.2rem; padding-top: calc(var(--ch) + 3.4rem); }
  .etapes.dessins::before, .etapes.dessins::after { top: calc(var(--ch) + 1rem); }
  .etapes.dessins .croquis { position: absolute; top: calc(-1 * (var(--ch) + 3.4rem)); left: -.6rem; height: var(--ch); width: auto; }
}
@media (max-width: 960px) {
  .etapes.dessins .croquis { height: 7.2rem; width: auto; margin: 0 0 .35rem -.5rem; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .croquis .pc { transition: none; } }
/* Le mur en 3D (page Ossature bois) : un morceau de mur dessiné de trois quarts, au trait d'encre, qui s'ouvre couche par couche.
   Le dessin (écrit par outils/mur-3d.js) est ouvert dans la page, numéros visibles : c'est la version calme.
   En version vive, commun.js le referme puis le rouvre au défilement. Il reste à l'écran pendant qu'on lit la légende, comme une photo légendée. */
.mur3d { --h: clamp(22rem, 70vh, 39rem); height: var(--h); margin-top: .4rem; }
.mur3d svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mur3d polygon, .mur3d line, .mur3d rect { stroke: var(--encre); stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mur3d .fa, .mur3d .fd, .mur3d .fc, .mur3d .puce rect { transition: fill .3s var(--doux); }
.mur3d .strate { cursor: default; }
/* Les couches se recouvrent : on ne les atténue pas, seule celle dont on parle change de couleur */
.coupe.choix .mur3d .strate:not(.actif) { opacity: 1; }
/* Les matières : un seul trait, des tons de papier ; le dessus est le plus clair, le bout le plus foncé */
.mur3d .bois.fa { fill: #e7dcc6; } .mur3d .bois.fd { fill: #f4eddd; } .mur3d .bois.fc { fill: #cdbfa2; }
.mur3d .lame.fa { fill: #dccdb0; } .mur3d .lame.fd { fill: #efe6d2; } .mur3d .lame.fc { fill: #c0b08e; }
.mur3d .osb.fa { fill: #ece2cc; } .mur3d .osb.fd { fill: #f6f0e2; } .mur3d .osb.fc { fill: #d3c6a8; }
.mur3d .pluie.fa { fill: #8c775a; } .mur3d .pluie.fd { fill: #a8957a; } .mur3d .pluie.fc { fill: #6b5a43; }
.mur3d .isolant.fa { fill: #f5edd6; }
.mur3d .vapeur.fa { fill: #fcfbf8; stroke-dasharray: 5 4; } .mur3d .vapeur.fd, .mur3d .vapeur.fc { fill: #fcfbf8; }
.mur3d .platre.fa { fill: #fbfaf7; } .mur3d .platre.fd { fill: #fff; } .mur3d .platre.fc { fill: #e2dfd7; }
.mur3d .motif { stroke: none; pointer-events: none; }
.mur3d .motif.points { fill: url(#m3-points); }
.mur3d .motif.grain { fill: url(#m3-grain); }
.mur3d .strate.actif .fa { fill: var(--or); } .mur3d .strate.actif .fd { fill: var(--or-clair); } .mur3d .strate.actif .fc { fill: #a5863f; }
/* Les numéros, comme dans la légende */
.mur3d .puce rect { fill: var(--papier); stroke-width: 1; }
.mur3d .puce text { font: 700 15px var(--police); fill: var(--encre); text-anchor: middle; dominant-baseline: central; font-variant-numeric: tabular-nums; }
.mur3d .strate.actif .puce rect { fill: var(--or); }
.mur3d .cote { font: 600 15px var(--police); fill: var(--encre-3); }
.mur3d .cote-dedans { text-anchor: end; }
/* Sous la légende du dessin : la même paroi en photo, avec les mêmes numéros */
.mur-vrai { margin-top: 2.2rem; }
.mur-vrai .coupe-suite { margin-top: 0; }
.mur-vrai .coupe-dessin.en-photo { margin: 1rem 0 0; }
.mur-vrai .coupe-lieu { text-align: left; }
@media (min-width: 961px) {
  .mur-vrai .coupe-dessin.en-photo { --h: 21rem; }
}
@media (max-width: 960px) {
  .mur3d { --h: min(47vh, 24rem); margin: 0 calc(-1 * var(--marge) + .4rem); }
  .mur3d .puce-c { transform: scale(1.45); }
  .mur3d .cote { font-size: 21px; }
  .mur-vrai { order: 4; margin-top: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mur3d .fa, .mur3d .fd, .mur3d .fc, .mur3d .puce rect { transition: none; }
}
/* Le curseur avant / après dans une rangée de travaux (page châssis) : mêmes proportions que les autres photos, volets couleur papier */
.travail .aa { --voile: var(--papier); }
/* Avant / après sur fond clair : étiquettes en crème sur leur pastille sombre, contour de focus à l'encre */
.aa-etq { color: var(--creme); }
.clair .aa:has(.aa-curseur:focus-visible) { outline-color: var(--encre); }
/* Photo légendée en hauteur sur petit écran : des cases plus petites, pour ne pas couvrir ce qu'on demande de regarder */
@media (max-width: 960px) {
  .en-photo.haute .repere { width: 1.3rem; height: 1.3rem; margin: -.65rem 0 0 -.65rem; }
  .en-photo.haute .repere::after { font-size: .8rem; }
}

/* ===== PAGES HORS MÉTIERS : réalisations, l'entreprise, contact ===== */

/* Menu : la page où l'on se trouve garde son trait or */
.tete-nav a[aria-current] { background-size: 100% 2px; }
/* Dans le menu replié du téléphone, les liens font toute la largeur : la page en cours se marque par la couleur, pas par un trait qui ressemblerait à un filet */
@media (max-width: 960px) { .tete-nav a[aria-current] { background-size: 0 2px; color: var(--or-clair); } }
/* Ordinateur étroit : cinq liens, le téléphone et le bouton tiennent sur une ligne grâce au libellé court du bouton */
.tete .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1120px) {
  .tete { gap: 1rem; }
  .tete-nav { gap: 1.25rem; }
  .tete-actions { gap: 1rem; }
  .tete .cta-long { display: none; }
  .tete .cta-court { display: inline; }
}
/* Accueil : le lien vers la page de l'entreprise, sous la signature */
.signature + .lien-fleche { margin-top: 1.1rem; }

/* Titre d'une page sans photo plein écran : même coupe que le premier écran, les lignes montent à l'ouverture */
.grand-titre { font-stretch: 68%; font-weight: 800; font-size: clamp(2.6rem, min(6.4vw, 13vh), 5.4rem); line-height: .94; letter-spacing: -.012em; }
.grand-titre .ligne { display: block; overflow: hidden; padding-block: .06em .16em; margin-block: -.06em -.16em; }
.grand-titre .ligne > span { display: block; }
.grand-titre .or { color: var(--or); }
.vif .grand-titre .ligne > span { animation: monte 1.1s var(--doux) calc(.15s + var(--i, 0) * .12s) both; }
.page-tete { padding: clamp(1.75rem, 4vw, 3.25rem) var(--marge) clamp(1.5rem, 3vw, 2.25rem); }
/* Sur grand écran, la page des réalisations s'élargit jusqu'à 96 rem : les photos y sont plus grandes que sur l'accueil */
.page-tete .dedans { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; max-width: 96rem; }
.page-chapo { max-width: 29rem; font-size: 1.1rem; line-height: 1.55; color: var(--creme-2); text-wrap: pretty; }
.vif .page-chapo { animation: apparait .9s var(--doux) .6s both; }

/* RÉALISATIONS. Le sommaire des six métiers reste sous l'en-tête ; le métier qu'on regarde porte le trait or, comme dans le menu */
.sommaire { position: sticky; top: var(--tete-h); z-index: 30; background: var(--nuit); border-block: 1px solid var(--trait-clair); }
.sommaire ul { position: relative; list-style: none; display: flex; gap: 0 1.9rem; max-width: calc(96rem + 2 * var(--marge)); margin-inline: auto; padding: .15rem var(--marge); overflow-x: auto; scrollbar-width: none; }
.sommaire ul::-webkit-scrollbar { display: none; }
.sommaire a { display: inline-flex; align-items: center; min-height: 48px; font-size: .98rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--creme-2); background: linear-gradient(var(--or), var(--or)) left 84% / 0 2px no-repeat; transition: background-size .35s var(--doux), color .2s; }
.sommaire a:hover, .sommaire a.actif { color: var(--creme); }
.sommaire a.actif { background-size: 100% 2px; }
.chantiers { padding: clamp(2rem, 4vw, 3.25rem) var(--marge) clamp(4.5rem, 9vw, 8rem); --voile: var(--nuit); }
/* Le saut vers un métier s'arrête juste sous l'en-tête et le sommaire (la page réserve déjà 5 rem en haut pour toute ancre) */
.groupe { max-width: 96rem; margin-inline: auto; scroll-margin-top: calc(var(--tete-h) - 1rem); }
.groupe + .groupe { margin-top: clamp(3rem, 6vw, 5rem); }
.groupe-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 2rem; margin-bottom: .9rem; }
.groupe-tete h2 { font-stretch: 70%; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.02; letter-spacing: -.012em; }
/* Une bande par métier : les cartes se partagent la largeur selon leurs proportions (--r), donc toutes ont la même hauteur sans rogner plus qu'il ne faut */
.bande { display: flex; align-items: flex-start; gap: .75rem; }
.bande > .vue, .bande > .pile { flex: var(--r) 1 0; min-width: 0; height: auto; aspect-ratio: var(--r); }
.pile { display: flex; flex-direction: column; gap: .75rem; }
.pile .vue { flex: 1 1 0; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; }
.pile .vue-txt { padding: .9rem 1rem; }
.pile .vue-titre { font-size: 1.2rem; }
.pile .vue-lieu { font-size: .9rem; }
/* Toute une bande s'ouvre d'un seul geste, de gauche à droite : chaque carte part un peu après sa voisine */
.bande .volets span { transition-delay: calc(var(--c, 0) * 120ms + var(--i) * 90ms); }
/* Au survol ou au clavier, une flèche dit que la carte mène au chantier */
.vue-fleche { position: absolute; top: 1rem; right: 1rem; width: 2.1rem; height: 2.1rem; padding: .4rem; border-radius: 2px; background: rgba(12, 12, 12, .8); color: var(--or-clair); opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--doux), transform .3s var(--doux); }
.vue:hover .vue-fleche, .vue:focus-visible .vue-fleche { opacity: 1; transform: none; }
/* Jauge et compteur d'une bande : seulement quand elle se fait glisser (petit écran) */
.bande-pied { display: none; }

/* L'ENTREPRISE. Premier écran : la phrase de Steve et son portrait */
/* Le portrait est à fond perdu : il touche l'en-tête, le bord droit et le bas du premier écran, et avance très lentement comme les photos du premier écran */
.apropos-tete { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; min-height: clamp(30rem, calc(100vh - var(--tete-h) - 2.35rem), 54rem); padding-left: max(var(--marge), calc((100vw - 80rem) / 2)); }
.apropos-texte { align-self: center; padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.apropos-tete .grand-titre { font-size: clamp(2.6rem, min(7.4vw, 15vh), 6rem); }
.apropos-tete .portrait { --voile: var(--nuit); }
.apropos-tete .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 25%; }
.apropos-tete .portrait figcaption { position: absolute; left: 1rem; bottom: 1rem; margin: 0; }
/* L'avance part du haut de la photo : le front de Steve ne sort pas du cadre */
.vif .apropos-tete .portrait img { transform-origin: 50% 20%; animation: avance 12s cubic-bezier(.2, .5, .3, 1) .4s both; }
@keyframes avance { from { transform: scale(1); } to { transform: scale(1.07); } }
.recit { margin-top: clamp(3.5rem, 7vw, 6rem); }
.recit .portrait img { aspect-ratio: 3 / 4; object-position: 50% 40%; }
.recit .titre { margin-bottom: 1.5rem; }
.recit p + p { margin-top: 1rem; }
.recit .trait { background: linear-gradient(var(--or), var(--or)) left 92% / 100% .2em no-repeat; }
.legende-photo { font-size: .92rem; color: var(--encre-3); }
/* Les six métiers en lames de photo, côte à côte : chacune mène à sa page */
.six { padding-inline: 0; padding-bottom: 0; }
.six .dedans { max-width: calc(80rem + 2 * var(--marge)); padding-inline: var(--marge); }
.lames { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; margin-top: 2.5rem; }
.lame-metier { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; height: clamp(22rem, 62vh, 34rem); padding: 1.1rem 1.1rem 1.3rem; text-decoration: none; }
.lame-metier img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--doux); }
.lame-metier::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(12, 12, 12, .94) 0%, rgba(12, 12, 12, .3) 55%, rgba(12, 12, 12, .12) 100%); }
.lame-metier::before { content: ''; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 4px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--doux); }
.lame-metier:hover::before, .lame-metier:focus-visible::before { transform: none; }
.lame-metier:hover img, .lame-metier:focus-visible img { transform: scale(1.05); }
.lame-metier:focus-visible { outline-offset: -4px; }
.lame-nom { font-stretch: 76%; font-weight: 700; font-size: 1.3rem; line-height: 1.12; }
.lame-txt { font-size: .88rem; line-height: 1.35; color: var(--creme-2); }
.lame-metier .icone { margin-top: .4rem; color: var(--or); transition: transform .3s var(--doux); }
.lame-metier:hover .icone { transform: translateX(5px); }
.entrees .lames .lame-metier { clip-path: inset(0 0 100% 0); transition: clip-path .82s var(--doux); transition-delay: calc(var(--i) * 70ms); }
.entrees .lames.arrive .lame-metier { clip-path: inset(0); }
.six .legende-photo { max-width: calc(80rem + 2 * var(--marge)); margin-inline: auto; padding: .7rem var(--marge) 1.4rem; color: var(--creme-3); }
/* Ce que ça change pour le client : une liste à filets, le titre d'un côté, l'explication de l'autre */
.raisons { list-style: none; margin-top: 2.5rem; border-bottom: 1px solid var(--trait-sombre); }
.raisons li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .4rem clamp(2rem, 5vw, 5rem); align-items: baseline; padding: 1.4rem 0; border-top: 1px solid var(--trait-sombre); }
.raisons h3 { font-stretch: 76%; font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; }
.raisons p { max-width: 38rem; color: var(--encre-2); font-size: 1.08rem; }
/* Le filet du bas de la liste ferme la liste : les preuves qui suivent n'en ajoutent pas un second */
#raisons .preuves { border-top: 0; padding-top: 0; }

/* CONTACT. Le formulaire est le premier écran ; dessous, la suite et les informations pratiques */
.contact-page { padding-top: clamp(2rem, 4.5vw, 4rem); }
.contact-page .titre { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.repond { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; max-width: 30rem; font-weight: 600; }
.repond .pastille { width: 72px; height: 72px; }
.etapes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.etapes.trois h3 { min-height: 0; }
/* Les trois lignes « Vous recevez… » tombent sur la même horizontale, quel que soit le texte au-dessus */
@media (min-width: 961px) { .etapes.trois li { display: grid; grid-template-rows: auto auto 1fr auto; } }
/* Pas de mot seul en fin de paragraphe */
.repond > span:last-child { text-wrap: balance; }
.sous-titre, .etapes p { text-wrap: pretty; }
.fiche-note { display: block; max-width: 17rem; margin-top: .35rem; font-weight: 400; color: var(--encre-2); }
/* Formulaire : un champ à corriger garde le monde de la charte (or clair, pas de rouge) ; la ligne dessous dit quoi faire */
.champ-erreur { display: flex; align-items: baseline; gap: .55rem; font-size: .92rem; line-height: 1.4; color: var(--creme); }
.champ-erreur::before { content: ''; flex: none; width: .45rem; height: .45rem; background: var(--or-clair); transform: translateY(-.08rem) rotate(45deg); }
.champ input[aria-invalid="true"] { border-color: var(--or-clair); box-shadow: inset 0 0 0 1px var(--or-clair); }
/* Page Professionnels : pièces jointes (un fichier par champ, c'est la règle de Netlify) et ligne d'aide sous les champs */
.fichiers { display: grid; gap: .5rem; }
.champ input[type="file"] { width: 100%; min-height: 48px; padding: .4rem; border: 1px dashed rgba(245, 240, 232, .36); border-radius: 3px; background: rgba(245, 240, 232, .04); color: var(--creme-2); font: 400 .95rem/1.4 var(--police); cursor: pointer; }
.champ input[type="file"]::file-selector-button { min-height: 38px; margin-right: .8rem; padding: .4rem .9rem; border: 1px solid rgba(245, 240, 232, .5); border-radius: 3px; background: none; color: var(--creme); font: 600 .92rem/1 var(--police); cursor: pointer; }
.champ input[type="file"]:hover { border-color: rgba(245, 240, 232, .75); }
.champ input[type="file"]:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; }
.champ .aide { font-size: .88rem; line-height: 1.45; color: var(--creme-3); }
.exemple-pro { max-width: 38rem; margin-top: 2rem; color: var(--encre-2); }
.exemple-pro + .lien-fleche { margin-top: .4rem; }
.pratique { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.pratique .questions { margin-top: 2rem; }
.fiche { padding-top: 1.1rem; border-top: 2px solid var(--encre); }
.fiche h3 { font-stretch: 76%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-bottom: .5rem; }
.fiche dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .25rem 1rem; align-items: baseline; padding: .7rem 0; border-top: 1px solid var(--trait-sombre); }
.fiche dt { font-size: .92rem; color: var(--encre-3); }
.fiche dd { font-weight: 600; }
.fiche dd a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.7rem; text-underline-offset: 4px; }

/* PAGE DE CHANTIER (vitrine d'un gros chantier). Le premier écran est celui du site ; dessous, le chantier se lit par chapitres, dans l'ordre des travaux */
.reperes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.reperes .manifeste-texte { font-size: clamp(1.6rem, 3.3vw, 2.8rem); }
/* Arrivée directe sur un chapitre (lien d'une autre page, sommaire) : son haut se cale sous le sommaire, sans laisser voir un liseré du chapitre d'avant */
.chapitre { padding: clamp(3.5rem, 7vw, 6rem) var(--marge); scroll-margin-top: calc(var(--tete-h) - 1.6rem); --voile: var(--nuit); }
.chapitre.clair { --voile: var(--papier); }
.chapitre > .dedans { max-width: 96rem; }
.chapitre-tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: 2rem; }
.chapitre-rang { display: block; margin-bottom: .6rem; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--creme-3); }
.clair .chapitre-rang { color: var(--encre-3); }
.chapitre-tete p { max-width: 34rem; font-size: 1.08rem; color: var(--creme-2); }
.retour-liste { margin-top: 1.5rem; }
.clair .chapitre-tete p { color: var(--encre-2); }
/* Ce qui a été fait dans le chapitre : une ligne de travaux séparés par un point or, comme la liste des communes en plus petit */
.travaux-faits { list-style: none; display: flex; flex-wrap: wrap; row-gap: .15rem; margin: 1rem 0 0 -1.6em; clip-path: inset(0 0 0 1.6em); font-weight: 600; font-size: .98rem; }
.travaux-faits li { display: inline-flex; align-items: center; }
.travaux-faits li::before { content: ''; flex: none; width: .3em; height: .3em; margin-inline: .65em; border-radius: 50%; background: var(--or); }
.chapitre-tete .lien-fleche { margin-top: .8rem; }
.fiche h2 { font-stretch: 76%; font-weight: 700; font-size: 1.6rem; line-height: 1.15; margin-bottom: .5rem; }
.reperes .fiche dd { font-weight: 500; }
/* Les métiers du chantier, à la fin du dernier chapitre (fond nuit) */
.chapitre .autres { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top-color: var(--trait-clair); }
.chapitre .bande + .bande, .chapitre .bande-pied + .bande { margin-top: .75rem; }
/* Une carte de photo porte toujours son texte en crème sur son voile sombre, même dans un chapitre sur papier */
.chapitre .vue { color: var(--creme); cursor: zoom-in; }
.chapitre .vue-titre { font-size: 1.2rem; }
.chapitre .carte-une .vue-titre { font-size: 1.45rem; }
.clair .bande-jauge { background: rgba(22, 22, 21, .18); }
.clair .bande-compte { color: var(--encre-2); }
/* Visionneuse : la photo en grand sur fond plein, sa légende dessous, les commandes aux coins */
.visionneuse { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--nuit); color: var(--creme); }
.visionneuse::backdrop { background: var(--nuit); }
.visionneuse figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; height: 100%; padding: 4.6rem clamp(1rem, 6vw, 6rem) 1.4rem; }
.visionneuse img { width: auto; height: auto; max-width: 100%; max-height: calc(100% - 3.6rem); object-fit: contain; }
.visionneuse figcaption { max-width: 44rem; min-height: 1.6em; text-align: center; font-size: 1.05rem; color: var(--creme-2); }
.vis-compte { position: absolute; top: 1.45rem; left: var(--marge); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--creme-2); }
.vis-fermer { position: absolute; top: .9rem; right: var(--marge); display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid rgba(245, 240, 232, .45); border-radius: 3px; background: none; color: inherit; font: 500 .95rem var(--police); cursor: pointer; }
.vis-fermer:hover { border-color: var(--creme); }
.vis-prec, .vis-suiv { position: absolute; top: 50%; margin-top: -26px; background: var(--nuit); }
.vis-prec { left: var(--marge); }
.vis-suiv { right: var(--marge); }

@media (max-width: 960px) {
  .reperes, .chapitre-tete { grid-template-columns: 1fr; }
  .chapitre .vue-titre, .chapitre .carte-une .vue-titre { font-size: 1.3rem; }
  /* Sur une page de chantier, les photos gardent l'ordre des travaux : la grande ne passe pas devant (elle le fait sur la page des réalisations) */
  .chapitre .bande .carte-une { order: 0; }
  /* Deux bandes qui se suivent : la jauge de la première ne doit pas se lire comme celle de la seconde */
  .chapitre .bande-pied + .bande { margin-top: 2.5rem; }
  .visionneuse figure { padding: 4.4rem 0 5.2rem; }
  .visionneuse figcaption { padding-inline: var(--marge); }
  .vis-prec, .vis-suiv { top: auto; bottom: 1rem; margin-top: 0; width: 48px; height: 48px; }
  /* Sur petit écran, chaque bande devient une pellicule qu'on fait glisser, le plus grand chantier d'abord */
  .bande { margin-inline: calc(-1 * var(--marge)); padding: 0 var(--marge) .8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--marge); scrollbar-width: none; }
  .bande::-webkit-scrollbar { display: none; }
  /* La jauge or avance avec le doigt, le compteur dit combien de chantiers compte le métier */
  .bande-pied.pret { display: flex; align-items: center; gap: 1rem; }
  .bande-jauge { flex: 1; height: 2px; background: rgba(245, 240, 232, .2); }
  .bande-jauge span { display: block; height: 100%; background: var(--or); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .bande-compte { min-width: 2.6rem; text-align: right; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--creme-2); }
  .vue-lieu .long { display: none; }
  .vue-fleche { display: none; }
  /* Pendant qu'on descend dans la galerie, l'en-tête se retire et le sommaire prend sa place ; il revient dès qu'on remonte */
  .tete { transition: background .35s var(--doux), box-shadow .35s var(--doux), transform .35s var(--doux); }
  .sommaire { transition: top .35s var(--doux); }
  .plongee .tete { transform: translateY(-101%); }
  .plongee .sommaire { top: 0; }
  /* Un saut vers un métier se fait en-tête retiré : le titre se cale juste sous le sommaire (les 5 rem réservés par la page suffisent) */
  .groupe, .chapitre { scroll-margin-top: 0; }
  .pile { display: contents; }
  .bande > .vue, .pile .vue { flex: none; width: min(82vw, 26rem); aspect-ratio: 4 / 5; }
  .bande .carte-une { order: -1; }
  /* Pas de volets ici : la carte suivante doit se voir au bord de l'écran, c'est elle qui dit qu'on peut faire glisser */
  .bande .volets { display: none; }
  .pile .vue-txt { padding: 1.3rem 1.4rem; }
  .pile .vue-titre { font-size: 1.45rem; }
  .apropos-tete { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 0; }
  .apropos-texte { padding: 1.5rem var(--marge) 2.25rem; }
  .apropos-tete .portrait { order: -1; max-width: none; }
  /* La photo est carrée : quand l'écran est plus large que haut de photo (tablette), on rogne par le bas, jamais par la tête */
  .apropos-tete .portrait img { position: static; aspect-ratio: 1; max-height: min(34rem, 60vh); object-position: 50% 18%; }
  .lames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lame-metier { height: 13rem; padding: 1rem; }
  .raisons li, .pratique { grid-template-columns: 1fr; }
  .etapes.trois { grid-template-columns: 1fr; }
  /* Page contact : le numéro et WhatsApp passent avant le formulaire, en une rangée ; l'e-mail reste dans la fiche plus bas */
  .contact-page .autrement { order: 2; display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: 1rem; padding-top: 0; border-top: 0; }
  .contact-page .autrement p, .contact-page .autrement a[href^="mailto:"] { display: none; }
  .contact-page .formulaire { margin-top: 1.25rem; }
}
/* Portable peu haut : la tête de page se resserre, pour que les premières photos soient dans le premier écran */
@media (min-width: 961px) and (max-height: 760px) {
  .grand-titre { font-size: clamp(2.6rem, min(6vw, 10.5vh), 5.4rem); }
  .page-tete { padding-block: 1.25rem 1rem; }
  .chantiers { padding-top: 1.25rem; }
  .apropos-texte { padding-block: 1rem; }
  .apropos-tete .grand-titre { font-size: clamp(2.6rem, min(7vw, 13vh), 6rem); }
  /* Page contact : le bouton d'envoi reste dans le premier écran */
  .contact-page { padding-top: 1.25rem; }
  .contact-page .contact-grille { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .contact-page .titre { font-size: clamp(2.2rem, 4vw, 3.4rem); }
  .contact-page .formulaire { gap: .7rem 1.1rem; padding: 1.2rem 1.5rem 1.3rem; }
  .contact-page .champ legend { margin-bottom: .3rem; }
  .contact-page .champ textarea { min-height: 3.5rem; }
}
@media (max-width: 600px) {
  .lames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lame-metier { height: 11.5rem; padding: .85rem; }
  .lame-nom { font-size: 1.12rem; }
  .lame-txt { font-size: .84rem; }
  .fiche dl > div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sommaire, .sommaire a, .vue-fleche, .lame-metier img, .lame-metier::before, .lame-metier .icone { transition: none; }
  .apropos-tete .portrait img { animation: none; }
}

/* ===== PAGE D'UN CHANTIER (simple, une par réalisation). Le premier écran tient en deux moitiés : le titre, puis la photo du résultat à fond perdu.
   Dessous, le chantier en bref et les photos dans l'ordre des travaux. Le gros chantier d'Awans garde sa page vitrine par chapitres ===== */
/* Sur grand écran, le titre, le bloc « en bref » et les photos partagent le même bord gauche : celui de la colonne élargie à 96 rem */
/* La hauteur du bandeau de maquette (une ou deux lignes) est mesurée par le script : sans bandeau, elle vaut zéro et la photo touche le bas de l'écran */
.chantier-tete { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; min-height: clamp(30rem, calc(100vh - var(--tete-h) - var(--maq-h, 2.35rem)), 52rem); padding-left: max(var(--marge), calc((100vw - 96rem) / 2)); }
.chantier-tete + .bloc > .dedans { max-width: 96rem; }
.chantier-texte { align-self: center; padding-block: clamp(1.5rem, 4vw, 3.5rem); }
.chantier-tete .grand-titre { font-size: clamp(2.5rem, min(5.2vw, 11.5vh), 4.8rem); }
/* La photo touche l'en-tête, le bord droit et le bas du premier écran ; elle avance très lentement, comme les photos de l'accueil */
.chantier-photo { position: relative; overflow: hidden; background: var(--nuit-2); --voile: var(--nuit); }
.chantier-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.vif .chantier-photo img { animation: avance 12s cubic-bezier(.2, .5, .3, 1) .4s both; }
.chantier-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; padding: .3rem .75rem; border-radius: 2px; background: rgba(12, 12, 12, .8); font-size: .9rem; font-weight: 600; }
/* Les photos du chantier, par rangées : chaque carte garde les proportions de sa photo (--r), toutes les cartes d'une rangée ont la même hauteur, rien n'est rogné */
.bande.rangs { display: block; }
.rang { display: flex; align-items: flex-start; gap: .75rem; }
.rang + .rang { margin-top: .75rem; }
.rang > .vue, .rang > .pile { flex: var(--r) 1 0; min-width: 0; height: auto; aspect-ratio: var(--r); }
/* Le voile sombre se cale sur la légende, pas sur la hauteur de la carte : le bas d'une photo en hauteur (le sol, les marches, la membrane) reste lisible */
.rangs .vue::after { background: linear-gradient(0deg, rgba(12, 12, 12, .9) 0, rgba(12, 12, 12, .6) 2.75rem, rgba(12, 12, 12, 0) 7rem); }
@media (min-width: 961px) { .rangs .pile .vue::after { background: linear-gradient(0deg, rgba(12, 12, 12, .9) 0, rgba(12, 12, 12, .55) 2.25rem, rgba(12, 12, 12, 0) 5rem); } }
/* Un chantier plus long se lit en deux temps : chaque temps a son nom et sa série de photos */
.temps { margin: clamp(2.25rem, 4.5vw, 3.5rem) 0 1rem; font-stretch: 76%; font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; }
.chapitre-tete + .temps { margin-top: 0; }
/* Le bloc « en bref » suit le premier écran de près : pas de marge en plus de celle de la section */
.chantier-tete + .bloc .reperes { margin-top: 0; }
.fiche .a-valider { margin-top: .9rem; }
.chapitre-tete p + p { margin-top: .8rem; }
/* Sous le texte : le lien vers le métier et, s'il y en a un, le lien vers un chantier lié */
.chapitre .liens { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: .8rem; }
.chapitre .liens .lien-fleche { margin-top: 0; }
/* Avant / après dans une page de chantier : le texte d'un côté, le curseur de l'autre */
.chapitre .avant-apres { margin-top: 0; }
.chapitre .avant-apres .travaux-faits { max-width: 26rem; }
/* À la fin, les autres chantiers du même métier : mêmes cartes que sur la page des réalisations, en plus petit */
.voisins { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--trait-clair); }
.voisins h2 { margin-bottom: 1.25rem; font-stretch: 70%; font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.02; letter-spacing: -.012em; text-wrap: balance; }
.voisins .bande > .vue { flex: 0 1 calc((100% - 1.5rem) / 3); aspect-ratio: 4 / 3; cursor: pointer; }
.voisins .vue-titre { font-size: 1.3rem; }
/* Deux autres chantiers seulement : les deux cartes se partagent la largeur, plus larges que hautes, sans laisser une place vide */
@media (min-width: 961px) { .voisins .bande.deux > .vue { flex: 1 1 0; aspect-ratio: 16 / 9; } }

@media (max-width: 960px) {
  /* Téléphone : la photo du résultat d'abord, le titre dessous */
  .chantier-tete { grid-template-columns: 1fr; gap: 0; min-height: 0; padding: 0; }
  .chantier-texte { padding: 1.5rem var(--marge) 2.25rem; }
  .chantier-photo { order: -1; }
  .chantier-photo img { position: static; aspect-ratio: 4 / 3; max-height: min(30rem, 56vh); }
  /* Les rangées d'un même temps se suivent dans une seule pellicule, dans l'ordre des travaux.
     Ici non plus rien n'est rogné : toutes les cartes d'une pellicule ont la même hauteur (--k, posé par le générateur), chacune garde les proportions de sa photo.
     La plus large fait 82 % de l'écran, ou 64 % dans une pellicule de photos toutes en hauteur : aucun vide au-dessus ni au-dessous d'une carte */
  .bande.rangs { display: flex; align-items: flex-end; }
  .rang { display: contents; }
  .bande.rangs .vue { flex: none; width: auto; height: calc(min(82vw, 26rem) * var(--k, .75)); aspect-ratio: var(--r); }
  /* Une photo en hauteur à côté de photos en largeur donne une carte étroite : la légende se resserre pour tenir en deux lignes */
  .bande.rangs .vue.etroite .vue-txt { padding: .85rem .9rem; }
  .bande.rangs .vue.etroite .vue-titre { font-size: 1.08rem; }
  .voisins .bande > .vue { flex: none; width: min(72vw, 21rem); aspect-ratio: 4 / 3; }
}
/* Portable peu haut : le titre se resserre pour que le bouton reste dans le premier écran */
@media (min-width: 961px) and (max-height: 760px) {
  .chantier-tete .grand-titre { font-size: clamp(2.4rem, min(4.6vw, 10vh), 4.8rem); }
  .chantier-texte { padding-block: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .chantier-photo img { animation: none; }
}

/* ===== PAGES DE TEXTE : mentions légales, vie privée. Des pages à lire : une colonne de texte à la bonne largeur, la fiche des faits à côté ===== */
.page-tete.etroite .dedans { max-width: 80rem; }
.legal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.texte { max-width: 34rem; }
.texte h2 { margin: 2.6rem 0 .7rem; font-stretch: 76%; font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12; text-wrap: balance; }
.texte h2:first-child { margin-top: 0; }
.texte p, .texte li { font-size: 1.08rem; color: var(--encre-2); text-wrap: pretty; }
.texte p + p, .texte p + ul, .texte ul + p { margin-top: .8rem; }
.texte ul { list-style: none; }
.texte li { position: relative; padding-left: 1.25rem; }
.texte li + li { margin-top: .45rem; }
.texte li::before { content: ''; position: absolute; left: 0; top: .68em; width: .4rem; height: .4rem; background: var(--or); transform: rotate(45deg); }
.texte a, .legal .fiche a { text-decoration: underline; text-decoration-color: var(--or); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.texte .a-valider { margin-top: .7rem; }
/* Deux liens fléchés côte à côte sous un paragraphe (page « Message bien reçu ») */
.texte .liens { display: flex; flex-wrap: wrap; gap: 0 1.75rem; margin-top: .4rem; }
.texte .liens .lien-fleche { text-underline-offset: 6px; }
.texte .maj { margin-top: 2.6rem; padding-top: 1.1rem; border-top: 1px solid var(--trait-sombre); font-size: .95rem; color: var(--encre-3); }
/* La fiche reste à l'écran pendant la lecture, sur grand écran seulement */
.legal .fiche { position: sticky; top: calc(var(--tete-h) + 1.5rem); }
.legal .fiche dl > div { grid-template-columns: 9.5rem 1fr; }
.legal .fiche dd { font-weight: 500; }
/* Sous le bouton d'envoi d'un formulaire : le lien vers la page vie privée */
.form-note a { text-underline-offset: 3px; }
.form-note a:hover { color: var(--creme); }
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  /* La fiche des faits d'abord : c'est elle qu'on vient chercher */
  .legal .fiche { position: static; order: -1; margin-bottom: 2.5rem; }
}
/* Portable peu haut : les lignes de la fiche se resserrent pour qu'elle finisse au-dessus du bouton WhatsApp */
@media (min-width: 961px) and (max-height: 760px) {
  .legal .fiche dl > div { padding-block: .45rem; }
}
@media (max-width: 600px) {
  .legal .fiche dl > div { grid-template-columns: 1fr; }
}
