/* Casa Graziani — direction A « Atelier » (DESIGN.md). CSS natif, jetons dans tokens.css. */

/* --- socle ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.verrou { overflow: hidden; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 var(--t-m)/1.7 var(--police-texte); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
/* build.py enveloppe les images dans <picture> : il ne doit pas casser les grilles ni les hauteurs */
picture { display: contents; }
picture source { display: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--police-titre); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font: 600 var(--t-l)/1.25 var(--police-texte); }
h1 em, h2 em { font-style: normal; font-weight: 300; }
p { margin: 0 0 1em; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--noyer); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saut { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--encre); color: var(--papier); border-radius: 8px; }
.saut:focus { top: 12px; }

.surtitre { font: 500 var(--t-s)/1.5 var(--police-texte); letter-spacing: .02em; color: var(--encre-2); margin: 0; }
.etiquette { font: 600 var(--t-xs)/1 var(--police-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--noyer); margin: 0 0 .7em; }
.chapo { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.7; color: var(--encre-2); max-width: 60ch; }

/* --- boutons, liens ------------------------------------------------------------ */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 1.5em; border: 0; border-radius: 999px;
  background: var(--encre); color: var(--papier); font: 600 var(--t-s)/1 var(--police-texte); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--duree) var(--courbe); }
.bouton:hover { background: var(--noyer); }
.bouton--petit { min-height: 44px; font-size: .82rem; }
.bouton--clair { background: var(--papier); color: var(--encre); }
.bouton--clair:hover { background: var(--laiton-clair); }
.lien-fleche { font-weight: 600; font-size: var(--t-s); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.lien-fleche::after { content: "\00a0→"; }

/* --- listes ----------------------------------------------------------------------- */
.coches { list-style: none; margin: 0; padding: 0; }
.coches li { position: relative; padding: .55em 0 .55em 1.9em; border-top: 1px solid var(--filet); font-size: var(--t-s); line-height: 1.5; }
.coches li::before { content: ""; position: absolute; left: 0; top: .78em; width: 1.05em; height: 1.05em; border-radius: 50%;
  border: 1.5px solid var(--noyer); background: radial-gradient(circle, var(--noyer) 0 2.5px, transparent 3px); }
.numerote { counter-reset: n; list-style: none; padding: 0; margin: 0 0 1.4em; }
.numerote li { counter-increment: n; position: relative; padding: .7em 0 .7em 3em; border-top: 1px solid var(--filet); line-height: 1.55; }
.numerote li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .55em; font: 300 1.5rem/1 var(--police-titre); color: var(--noyer); }
.tirets { padding: 0 0 0 1.2em; margin: 0 0 1.4em; }
.tirets li { padding: .35em 0; line-height: 1.55; }
.tirets li::marker { content: "— "; color: var(--noyer); }

/* --- en-tête et menu ---------------------------------------------------------------- */
.entete { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--e-4);
  padding: 12px var(--gouttiere); background: var(--papier); border-bottom: 1px solid var(--filet); }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex: none; }
.marque .logo { width: auto; height: 46px; display: block; }
.menu { display: flex; margin-left: auto; }
.menu ul { display: flex; gap: var(--e-4); list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: var(--t-s); font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.menu ul a:hover, .menu a[aria-current] { border-color: currentColor; }
.menu__contact { display: none; }
.burger { display: none; }

/* --- fil d'Ariane, têtes de page ------------------------------------------------------ */
.ariane { max-width: var(--largeur); margin: 0 auto; padding: var(--e-3) var(--gouttiere) 0; font-size: var(--t-xs); }
.ariane ol { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; margin: 0; padding: 0; }
.ariane li + li::before { content: "/"; margin-right: .5em; color: var(--sourdine); }
.ariane a { color: var(--encre-2); }
.ariane [aria-current] { color: var(--encre); font-weight: 600; }

.tete-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--e-6); align-items: end;
  max-width: var(--largeur); margin: 0 auto; padding: var(--e-5) var(--gouttiere) var(--e-6); }
.tete-page h1 { font-size: var(--t-3xl); line-height: .9; margin-bottom: .35em; }
.tete-page__dessin { align-self: center; }

/* --- accueil : héros « planche » --------------------------------------------------------- */
.heros { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--e-5); align-items: center;
  max-width: 1440px; margin: 0 auto; padding: var(--e-6) var(--gouttiere) var(--e-7); }
.heros h1 { font-size: var(--t-3xl); line-height: .86; margin: .25em 0 .35em; }
.heros h1 em { display: block; padding-left: .55em; color: var(--noyer); }
.heros__tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e-2); max-width: 520px; }
.tuile { display: grid; gap: .5em; padding: var(--e-3); min-height: 140px; align-content: space-between; border-radius: var(--rayon);
  background: var(--carte); border: 1px solid var(--filet); text-decoration: none; transition: transform var(--duree) var(--courbe), box-shadow var(--duree); }
.tuile:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.tuile__titre { font: 500 1.6rem/1.05 var(--police-titre); letter-spacing: -.025em; }
.tuile__lien { font: 600 var(--t-xs)/1 var(--police-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--noyer); }
.tuile__lien::after { content: "\00a0\00a0→"; }
.tuile--nuit { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.tuile--nuit .tuile__lien { color: var(--laiton-clair); }

.heros__planche { position: relative; padding-bottom: 18%; }
.feuille { background: var(--carte); border-radius: var(--rayon); padding: var(--e-4) var(--e-4) var(--e-3); box-shadow: var(--ombre); transform: rotate(-1.2deg); }
.heros__planche figcaption, .galerie__type, .vignette__type { font: 600 var(--t-xs)/1 var(--police-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }
.heros__planche figcaption { margin-top: .9em; }
.rendu { position: absolute; right: -2%; bottom: 0; width: 56%; background: var(--carte); padding: 10px 10px 14px; border-radius: var(--rayon);
  box-shadow: var(--ombre); transform: rotate(2deg); }
.rendu img { border-radius: 8px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
/* le rendu se pose après le tracé du plan */
.js .rendu { animation: pose-rendu .9s var(--courbe) 2.2s both; }
@keyframes pose-rendu { from { opacity: 0; transform: translateY(18px) rotate(4deg); } to { opacity: 1; transform: rotate(2deg); } }

/* --- accueil : bandeau de la zone d'intervention ------------------------------------------- */
.bande-zone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.bande-zone__item { display: flex; align-items: center; gap: var(--e-3); margin: 0; padding: var(--e-3) var(--e-4); background: var(--surface); line-height: 1.45; }
.bande-zone__item:first-child { border-radius: var(--rayon-l) 0 0 var(--rayon-l); }
.bande-zone__item:last-child { border-radius: 0 var(--rayon-l) var(--rayon-l) 0; box-shadow: inset 1px 0 0 var(--filet); }
.bande-zone .etiquette { display: block; margin-bottom: .4em; }
.bande-zone__picto { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--carte); color: var(--encre); }
.bande-zone__picto svg { width: 40px; height: 40px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bande-zone__picto--site circle:last-child { fill: var(--laiton-clair); }
.bande-zone__picto .onde { stroke: var(--noyer); transform-box: fill-box; transform-origin: center; animation: onde 2.8s ease-out infinite; }
@keyframes onde { from { opacity: .8; transform: scale(.5); } to { opacity: 0; transform: scale(2.6); } }
.bande-zone__picto .onde-1, .bande-zone__picto .onde-2 { stroke: var(--noyer); animation: signal 2.4s ease-in-out infinite; }
.bande-zone__picto .onde-2 { animation-delay: .4s; }
@keyframes signal { 0%, 100% { opacity: .15; } 45% { opacity: 1; } }

/* --- accueil : le parcours « pas à pas », qui se dessine à l'écran -----------------------------
   État de base = état final (sans script, mouvement réduit, captures). Les états de
   départ ne vivent que sous .js, tant que l'étape n'a pas reçu .en-vue (main.js). */
@property --trace { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.fil, .projets { max-width: var(--largeur); margin: 0 auto; padding: var(--e-7) var(--gouttiere) 0; }
.fil h2, .projets h2 { margin-bottom: var(--e-5); }
.fil__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-6); }
.fil__etape { --trace: 100%; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e-7); align-items: center;
  transition: --trace 1.4s var(--courbe); }
/* le fil : pointillé au centre, doublé d'un trait laiton qui se trace */
.fil__etape::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--e-6)); bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--laiton), var(--laiton)) top / 100% var(--trace) no-repeat,
              repeating-linear-gradient(to bottom, var(--surface-2) 0 6px, transparent 6px 12px); }
.fil__etape:first-child::before { top: 0; }
.fil__etape::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--laiton-clair); box-shadow: 0 0 0 5px var(--papier), 0 0 0 6px var(--laiton); transition: background .5s ease .6s, transform .5s var(--courbe) .6s; }
.fil__etape:nth-child(even) .scene { order: 2; }
.fil__num { font: 300 3.4rem/1 var(--police-titre); color: var(--noyer); margin: 0 0 .1em; letter-spacing: -.04em; }
.fil__texte { max-width: 470px; }
.fil__texte h3 { margin-bottom: .8em; font: 500 var(--t-xl)/1.05 var(--police-titre); letter-spacing: -.03em; }

.scene { position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon-l); background: var(--carte); border: 1px solid var(--filet);
  box-shadow: var(--ombre); overflow: hidden; isolation: isolate; }
.scene__legende { position: absolute; left: 16px; bottom: 14px; z-index: 3; display: inline-flex; gap: 10px; align-items: center; padding: 8px 13px;
  border-radius: 999px; background: var(--papier); box-shadow: 0 0 0 1px var(--filet); font: 600 var(--t-xs)/1 var(--police-mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--encre-2); }
.scene__legende b { font-weight: 600; }

/* 01 — la planche d'ambiance se compose */
.planche { position: absolute; inset: 22px 22px 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.planche__tuile { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 8px 18px -12px rgba(21, 21, 58, .5);
  transition: opacity .6s ease, transform .8s var(--courbe); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
.planche__tuile img { width: 100%; height: 100%; object-fit: cover; }
.t1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.t2 { grid-column: 3; grid-row: 1; --i: 1; }
.t3 { grid-column: 4; grid-row: 1; --i: 2; }
.t4 { grid-column: 3 / span 2; grid-row: 2 / span 2; --i: 3; }
.t5 { grid-column: 1; grid-row: 3; --i: 4; }
.t6 { grid-column: 2; grid-row: 3; --i: 5; }
.planche__aplat { background: var(--encre); }
.planche__logo { display: grid; place-items: center; color: var(--laiton-clair); }
.planche__logo .embleme { height: 62%; width: auto; }
.js .fil__etape:not(.en-vue) .planche__tuile { opacity: 0; transform: translateY(22px) rotate(-4deg) scale(.94); }

/* 02 — le plan se trace, puis devient maquette 3D */
.scene__calque { position: absolute; inset: 20px 24px 62px; display: grid; place-items: center; }
.scene__calque .illu { width: 100%; height: 100%; }
.scene__calque--plan { opacity: 0; }
.scene__legende .l-fleche { color: var(--laiton); }
.js .fil__etape:not(.en-vue) .scene__calque--plan { opacity: 1; }
.js .fil__etape:not(.en-vue) .scene__calque--iso { opacity: 0; }
.js .fil__etape:not(.en-vue) .illu--plan-fil .trace { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.js .fil__etape:not(.en-vue) .illu--plan-fil .meuble { opacity: 0; }
.js .fil__etape:not(.en-vue) .illu--iso-fil .tr { stroke-dasharray: 1000; stroke-dashoffset: 1000; fill-opacity: 0; }
.js .fil__etape:not(.en-vue) .l-vue { opacity: .35; }
.js .en-vue .scene__calque--plan { animation: calque-sort .6s ease 2.7s both; }
.js .en-vue .scene__calque--iso { animation: calque-entre .4s ease 2.7s both; }
.js .en-vue .illu--plan-fil .trace { vector-effect: none; stroke-dasharray: 1000; animation: fil-trace 1.5s var(--courbe) .2s both; }
.js .en-vue .illu--plan-fil .meuble { animation: fil-pose .5s ease both; animation-delay: calc(1.1s + var(--m, 0) * 140ms); }
.illu--plan-fil .m1 { --m: 1; } .illu--plan-fil .m2 { --m: 2; } .illu--plan-fil .m3 { --m: 3; }
.illu--plan-fil .m4 { --m: 4; } .illu--plan-fil .m5 { --m: 5; } .illu--plan-fil .m6 { --m: 6; }
.js .en-vue .illu--iso-fil .tr { vector-effect: none; stroke-dasharray: 1000; animation: fil-trace 1.6s var(--courbe) 2.9s both, fil-remplit .8s ease 4.1s both; }
.js .en-vue .l-vue { animation: calque-entre .4s ease 2.8s both; }
@keyframes fil-trace { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes fil-remplit { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes fil-pose { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes calque-sort { from { opacity: 1; } to { opacity: 0; } }
@keyframes calque-entre { from { opacity: 0; } to { opacity: 1; } }

/* 03 — le rendu se dévoile, le dossier se pose */
.scene--rendu { background: var(--surface); }
.scene__photo { position: absolute; inset: 0; clip-path: inset(0); transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1) .2s; }
.scene__photo img { width: 100%; height: 100%; object-fit: cover; }
.scene__dossier { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: grid; gap: 8px; width: 40%; padding: 16px; border-radius: 14px;
  background: var(--carte); box-shadow: var(--ombre); color: var(--encre); transition: opacity .6s ease 1.2s, transform .8s var(--courbe) 1.2s; }
.scene__dossier .embleme { height: 34px; width: auto; }
.scene__dossier b { font: 500 var(--t-s)/1.2 var(--police-titre); }
.scene__dossier i { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); }
.scene__dossier i:nth-of-type(2) { width: 80%; } .scene__dossier i:nth-of-type(3) { width: 60%; }
.js .fil__etape:not(.en-vue) .scene__photo { clip-path: inset(0 100% 0 0); }
.js .fil__etape:not(.en-vue) .scene__dossier { opacity: 0; transform: translateY(26px) rotate(3deg); }

  transition: background-size .35s var(--courbe), border-color .35s ease; transition-delay: calc(.9s + var(--n, 0) * 220ms); }
.js .fil__etape:not(.en-vue) { --trace: 0%; }
.js .fil__etape:not(.en-vue)::after { background: var(--papier); transform: scale(.6); }

/* apparitions douces des titres et des projets */
[data-revele] { transition: opacity .8s ease, transform .9s var(--courbe); }
.js [data-revele]:not(.en-vue) { opacity: 0; transform: translateY(28px); }
.projet[data-revele]:nth-child(2) { transition-delay: .12s; } .projet[data-revele]:nth-child(4) { transition-delay: .12s; }

/* --- accueil : projets ------------------------------------------------------------------------ */
.projets__tete { display: flex; justify-content: space-between; align-items: baseline; gap: var(--e-3); }
.projets__grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--e-5) var(--e-4); }
.projet { display: block; text-decoration: none; }
.projet:nth-child(1) { grid-column: 1 / span 7; }
.projet:nth-child(2) { grid-column: 8 / span 5; margin-top: var(--e-7); }
.projet:nth-child(3) { grid-column: 1 / span 5; }
.projet:nth-child(4) { grid-column: 6 / span 7; margin-top: calc(-1 * var(--e-6)); }
.projet figure { overflow: hidden; border-radius: var(--rayon); aspect-ratio: 4 / 3; background: var(--surface); }
.projet figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--courbe); }
.projet:hover figure img { transform: scale(1.04); }
.projet h3 { margin-top: .8em; font: 500 1.4rem/1.15 var(--police-titre); letter-spacing: -.02em; }
.projet__pieces { margin: .3em 0 0; font-size: var(--t-s); color: var(--encre-2); }
.projet__pieces:empty { display: none; }
.projet__livrables { margin: .4em 0 0; font: 600 var(--t-xs)/1.4 var(--police-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--noyer); }

/* --- bonjour ----------------------------------------------------------------------------------- */
.bonjour { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--e-6); align-items: start;
  max-width: var(--largeur); margin: 0 auto; padding: var(--e-7) var(--gouttiere); }
.bonjour__portrait { position: sticky; top: 100px; border-radius: var(--rayon-l); overflow: hidden; }
.bonjour__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.bonjour h2 { font-size: var(--t-3xl); }
.bonjour__nom { font: 300 var(--t-xl)/1.1 var(--police-titre); letter-spacing: -.02em; margin: .15em 0 1em; color: var(--noyer); }
.bonjour h3 { margin: 1.6em 0 .7em; font-size: var(--t-m); letter-spacing: .02em; }
.bonjour__texte { max-width: 62ch; }

/* --- appel final ------------------------------------------------------------------------------------ */
.appel { display: grid; justify-items: center; text-align: center; gap: var(--e-3); padding: var(--e-7) var(--gouttiere); background: var(--nuit); color: var(--sur-nuit); }
.appel__embleme .embleme { height: 86px; width: auto; color: var(--laiton-clair); }
.appel__titre { font: 500 var(--t-2xl)/1 var(--police-titre); letter-spacing: -.035em; max-width: 18ch; margin: 0; text-wrap: balance; }
.appel__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--e-2) var(--e-4); }
.appel__lien { color: var(--sur-nuit); text-decoration: none; border-bottom: 1px solid rgba(237, 230, 218, .4); }
.appel__lien:hover { border-color: var(--laiton-clair); }
.appel :focus-visible { outline-color: var(--laiton-clair); }

/* --- les prestations : rangées sous les trois étapes du parcours -------------------------------------- */
.etapes-sommaire { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: var(--e-4) 0 0; padding: 0; }
.etapes-sommaire a { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 7px; border-radius: 999px;
  background: var(--carte); box-shadow: inset 0 0 0 1px var(--filet); text-decoration: none; font-size: var(--t-s); font-weight: 500;
  transition: box-shadow var(--duree); }
.etapes-sommaire a:hover { box-shadow: inset 0 0 0 1px var(--encre); }
.etapes-sommaire span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--encre); color: var(--papier); font-size: .78rem; }
.etape-presta { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--e-6); max-width: var(--largeur); margin: 0 auto;
  padding: var(--e-6) var(--gouttiere); border-top: 1px solid var(--filet); }
.etape-presta__tete { position: sticky; top: 104px; align-self: start; }
.etape-presta__num { font: 300 clamp(3.4rem, 2rem + 4vw, 5.6rem)/.9 var(--police-titre); letter-spacing: -.05em; color: var(--noyer); margin: 0 0 .15em; }
.etape-presta__tete h2 { font-size: var(--t-xl); line-height: 1.02; margin-bottom: var(--e-3); }
.etape-presta__liste { display: grid; gap: var(--e-3); min-width: 0; }
.prestation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--e-4); align-items: start; padding: var(--e-4);
  border-radius: var(--rayon-l); background: var(--carte); border: 1px solid var(--filet); scroll-margin-top: 110px; }
.prestation:target { box-shadow: 0 0 0 2px var(--laiton-clair); }
.prestation__repere { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--e-2); }
.prestation__embleme { width: 56px; height: 56px; }
.prestation__num { font: 600 var(--t-xs)/1 var(--police-mono); letter-spacing: .14em; color: var(--noyer); }
.prestation h3 { font: 500 var(--t-l)/1.15 var(--police-titre); letter-spacing: -.02em; margin-bottom: .6em; }
.prestation__texte p { color: var(--encre-2); font-size: var(--t-s); line-height: 1.7; }
.prestation__visuels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.prestation__visuels:empty { display: grid; place-items: center; min-height: 220px; border-radius: var(--rayon); background:
  url("../img/enduit.webp") center / cover, var(--surface); }
.prestation__visuels:empty::after { content: ""; width: 104px; height: 104px; background: url("../img/emb-consultation.svg") center / contain no-repeat; }
.prestation__image { border-radius: var(--rayon); overflow: hidden; background: var(--papier); border: 1px solid var(--filet); }
.prestation__image img { width: 100%; height: auto; }

/* --- portfolio ----------------------------------------------------------------------------------------- */
.sommaire { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.sommaire a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1px solid var(--filet); border-radius: 999px;
  text-decoration: none; font-size: var(--t-s); font-weight: 500; background: var(--carte); }
.sommaire a:hover { border-color: var(--encre); }
.projet-galerie { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--e-5); max-width: var(--largeur); margin: 0 auto;
  padding: var(--e-6) var(--gouttiere); border-top: 1px solid var(--filet); }
.projet-galerie__tete { position: sticky; top: 110px; align-self: start; }
.projet-galerie h2 { font-size: var(--t-xl); line-height: 1.02; margin-bottom: .5em; }
.projet-galerie__pieces { color: var(--encre-2); margin-bottom: .6em; }
.projet-galerie__pieces:empty { display: none; }
.projet-galerie__livrables { font: 600 var(--t-xs)/1.5 var(--police-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--noyer); }
.projet-galerie__compte { font-size: var(--t-xs); color: var(--sourdine); }
.galerie { min-width: 0; }
.galerie__vue { margin: 0; }
.galerie__image { aspect-ratio: 3 / 2; border-radius: var(--rayon); overflow: hidden; background: var(--carte); border: 1px solid var(--filet); }
.galerie__image img { width: 100%; height: 100%; object-fit: contain; }
.galerie__legende { margin-top: .8em; font-size: var(--t-s); color: var(--encre-2); min-height: 3em; }
.galerie__type { color: var(--noyer); margin-right: .6em; }
.galerie__vignettes { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 10px; list-style: none; margin: var(--e-2) 0 0;
  padding: 0 0 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--laiton) transparent; }
.vignette { position: relative; display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--encre); }
.vignette img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 2px solid transparent; opacity: .72; transition: opacity var(--duree), border-color var(--duree); }
.vignette:hover img, .vignette[aria-pressed="true"] img { opacity: 1; }
.vignette[aria-pressed="true"] img { border-color: var(--encre); }
.vignette__type { font-size: .66rem; }

/* --- formulaire de contact ---------------------------------------------------------------------------------- */
.tete-page--contact { align-items: start; }
.tete-page--contact h1 { font-size: var(--t-2xl); }
.tete-page--contact .chapo p:first-child { color: var(--encre); font-weight: 500; }
.contact-carte { background: var(--encre); color: var(--sur-nuit); border-radius: var(--rayon-l); padding: var(--e-4); }
.contact-carte__titre { font: 500 1.5rem/1.15 var(--police-titre); letter-spacing: -.02em; }
.contact-carte a { color: var(--sur-nuit); }
.contact-carte__zone { color: var(--laiton-clair); font-size: var(--t-s); margin: 0; }
.contact-carte :focus-visible { outline-color: var(--laiton-clair); }
/* Parcours du questionnaire : colonne des étapes collante + une étape à la fois (avec script) */
.parcours { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--e-5); align-items: start;
  max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere) var(--e-7); }
.parcours__cote { position: sticky; top: 104px; display: grid; gap: var(--e-2); }
.parcours__avance { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.parcours__avance span { display: block; height: 100%; width: 100%; background: var(--noyer); border-radius: inherit; transform: scaleX(.2); transform-origin: left center; transition: transform .5s var(--courbe); }
.parcours__etat { margin: 0; font: 600 var(--t-xs)/1.4 var(--police-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--noyer); min-height: 1.4em; }
.parcours__etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.parcours__lien { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px;
  background: none; color: var(--encre-2); font: 500 var(--t-s)/1.3 var(--police-texte); text-align: left; cursor: pointer; transition: background var(--duree), color var(--duree); }
.parcours__lien:hover:not(:disabled) { background: var(--surface); color: var(--encre); }
.parcours__lien:disabled { cursor: default; opacity: .55; }
.parcours__num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--filet);
  font: 500 .8rem/1 var(--police-texte); background: var(--carte); transition: background var(--duree), color var(--duree), border-color var(--duree); }
.parcours__lien[aria-current] { color: var(--encre); background: var(--carte); box-shadow: inset 0 0 0 1px var(--filet); }
.parcours__lien[aria-current] .parcours__num { background: var(--encre); color: var(--papier); border-color: var(--encre); }
.parcours__lien.fait .parcours__num { background: var(--laiton-clair); border-color: var(--laiton-clair); color: var(--nuit); }
.parcours__note { font-size: var(--t-xs); color: var(--encre-2); margin: var(--e-1) 0 0; }
.parcours__note span, .champ span[aria-hidden], .choix legend span[aria-hidden] { color: var(--noyer); }
/* sans script : pas de colonne d'étapes, les cinq parties à la suite */
html:not(.parcours-actif) .parcours { grid-template-columns: minmax(0, 1fr); }
html:not(.parcours-actif) .parcours__avance, html:not(.parcours-actif) .parcours__etat,
html:not(.parcours-actif) .parcours__etapes, html:not(.parcours-actif) [data-suivant], html:not(.parcours-actif) [data-precedent] { display: none; }

.questionnaire { display: grid; gap: var(--e-3); min-width: 0; }
.etape-q { border: 1px solid var(--filet); border-radius: var(--rayon-l); background: var(--carte); padding: var(--e-5); margin: 0; min-width: 0;
  display: grid; gap: var(--e-4); box-shadow: 0 1px 2px rgba(21, 21, 58, .04), 0 24px 48px -32px rgba(21, 21, 58, .25); }
.parcours-actif .etape-q:not([hidden]) { animation: etape-entre .45s var(--courbe); }
@keyframes etape-entre { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.etape-q__titre { display: flex; align-items: center; gap: .6em; padding: 0; font: 500 var(--t-xl)/1.05 var(--police-titre); letter-spacing: -.03em; outline: none; }
.legend__num { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--surface); font: 500 .5em/1 var(--police-titre); color: var(--noyer); letter-spacing: 0; }
.champs { display: grid; gap: var(--e-3); }
.champs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.champ { display: grid; gap: 8px; margin: 0; }
.champ label, .choix legend { font: 500 var(--t-s)/1.45 var(--police-texte); color: var(--encre); }
input, select, textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid transparent; border-radius: 14px; background: var(--papier);
  color: var(--encre); font: 400 var(--t-m)/1.4 var(--police-texte); box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .14);
  transition: box-shadow var(--duree), background var(--duree); }
input:hover, textarea:hover { box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .32); }
input:focus, textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--encre), 0 0 0 5px rgba(212, 185, 138, .35); }
input:user-invalid, textarea:user-invalid { box-shadow: inset 0 0 0 2px #A2412E; }
textarea { resize: vertical; min-height: 96px; }
.champ__unite { position: relative; display: block; max-width: 260px; }
.champ__unite input { padding-right: 52px; }
.champ__unite span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--encre-2); font-weight: 500; pointer-events: none; }

.choix { border: 0; padding: 0; margin: 0; min-width: 0; }
.choix legend { padding: 0; margin-bottom: 12px; }
.choix__cartes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.carte-choix { position: relative; display: grid; gap: 14px; align-content: space-between; min-height: 132px; padding: 16px; border-radius: 16px;
  background: var(--papier); box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .14); cursor: pointer; font-weight: 500; line-height: 1.3;
  transition: box-shadow var(--duree), background var(--duree), transform var(--duree) var(--courbe); }
.carte-choix:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .35); }
.carte-choix img { width: 44px; height: 44px; }
.carte-choix input, .pastille input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; }
.carte-choix::after { content: ""; position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(27, 27, 71, .3); }
.carte-choix:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--encre); }
.carte-choix:has(input:checked)::after { background: var(--encre) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23F6F2EB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: none; }
.carte-choix:has(input:focus-visible) { outline: 2px solid var(--noyer); outline-offset: 3px; }
.choix__pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille { position: relative; display: inline-flex; }
.pastille span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--papier);
  box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .16); font-size: var(--t-s); font-weight: 500; cursor: pointer;
  transition: background var(--duree), color var(--duree), box-shadow var(--duree); }
.pastille span:hover { box-shadow: inset 0 0 0 1px rgba(27, 27, 71, .4); }
.pastille input:checked + span { background: var(--encre); color: var(--papier); box-shadow: none; }
.pastille--case input:checked + span::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23D4B98A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pastille input:focus-visible + span { outline: 2px solid var(--noyer); outline-offset: 2px; }

.etape-q__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-2); padding-top: var(--e-3); border-top: 1px solid var(--filet); }
.etape-q__nav [data-suivant] { margin-left: auto; }
.etape-q__nav .bouton span { transition: transform var(--duree) var(--courbe); }
.etape-q__nav .bouton:hover span { transform: translateX(3px); }
.bouton--fantome { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--filet); }
.bouton--fantome:hover { background: var(--surface); }
.bouton--envoi { margin-left: auto; min-width: 220px; }

.apres { background: var(--surface); border-radius: var(--rayon); padding: var(--e-4); }
.apres h2 { font: 500 var(--t-l)/1.2 var(--police-titre); letter-spacing: -.02em; margin-bottom: .5em; }
.apres > p { color: var(--encre-2); max-width: 70ch; font-size: var(--t-s); }
.apres__listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-4); margin-top: var(--e-2); }
.apres h3 { margin-bottom: .6em; font-size: var(--t-s); }
.recap { border-radius: var(--rayon); padding: var(--e-4); box-shadow: inset 0 0 0 1px var(--filet); }
.recap h2 { font: 500 var(--t-l)/1.2 var(--police-titre); letter-spacing: -.02em; margin-bottom: var(--e-2); }
.recap__corps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-3) var(--e-4); }
.recap__titre { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin: 0 0 .4em; font-weight: 600; font-size: var(--t-s); }
.recap__modifier { border: 0; background: none; padding: 4px 0; min-height: 32px; color: var(--noyer); font: 600 var(--t-xs)/1 var(--police-texte); text-decoration: underline; cursor: pointer; }
.recap dl { margin: 0; display: grid; gap: 2px; font-size: var(--t-s); }
.recap dt { color: var(--encre-2); font-size: var(--t-xs); margin-top: .5em; }
.recap dd { margin: 0; overflow-wrap: anywhere; }
.questionnaire__retour { flex-basis: 100%; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--laiton-clair); color: var(--nuit); font-weight: 500; }
.questionnaire__retour--erreur { background: var(--carte); color: var(--encre); box-shadow: inset 0 0 0 1.5px var(--noyer); }
/* la colonne des étapes est en grille : sans ceci, hidden ne la masque pas après l'envoi */
.parcours [hidden] { display: none !important; }
/* champ piège pour les robots : hors écran, jamais vu ni atteint au clavier */
.champ-piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* après l'envoi : le merci prend la place du parcours */
.questionnaire__merci { grid-column: 1 / -1; max-width: 760px; padding: var(--e-5); border-radius: var(--rayon-l); background: var(--carte); box-shadow: var(--ombre);
  scroll-margin-top: 120px; /* sous l'en-tête collant */ }
.questionnaire__merci h2 { font: 500 var(--t-xl)/1.15 var(--police-titre); letter-spacing: -.02em; margin: 0 0 .5em; }
.questionnaire__merci p { color: var(--encre-2); max-width: 60ch; }
.questionnaire__merci:focus:not(:focus-visible) { outline: none; }

/* --- pages légales, 404 ----------------------------------------------------------------------------------------- */
.texte-page { max-width: 820px; margin: 0 auto; padding: var(--e-5) var(--gouttiere) var(--e-7); }
.texte-page h1 { font-size: var(--t-2xl); margin-bottom: .6em; }
.texte-page h2 { font: 600 var(--t-l)/1.3 var(--police-texte); margin: 1.6em 0 .5em; }
.texte-page__corps { color: var(--encre-2); }
.texte-page__corps strong { color: var(--encre); }
.texte-page__corps ul { padding-left: 1.2em; }
.fiche { display: grid; margin: var(--e-3) 0 0; border-top: 1px solid var(--filet); }
.fiche div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--e-3); padding: .8em 0; border-bottom: 1px solid var(--filet); }
.fiche dt { font-weight: 600; color: var(--encre); }
.fiche dd { margin: 0; }
.a-completer { font-style: italic; color: var(--sourdine); }
.erreur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e-6); align-items: center; max-width: var(--largeur);
  margin: 0 auto; padding: var(--e-7) var(--gouttiere); }
.erreur h1 { font-size: var(--t-2xl); margin-bottom: .4em; }
.erreur__liens { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.erreur__liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1px solid var(--filet); border-radius: 999px; text-decoration: none; }

/* --- pied --------------------------------------------------------------------------------------------------------- */
.pied { background: var(--nuit); color: var(--sur-nuit); padding: var(--e-6) var(--gouttiere) var(--e-3); border-top: 1px solid rgba(237, 230, 218, .12); }
.pied a { color: inherit; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied :focus-visible { outline-color: var(--laiton-clair); }
.pied__haut { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.4fr); gap: var(--e-4); max-width: var(--largeur); margin: 0 auto; }
.pied__logo img { width: 220px; }
.pied__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4em; font-size: var(--t-s); }
.pied__contact { display: grid; gap: .4em; font-size: var(--t-s); align-content: start; }
.pied__zone { font-size: var(--t-s); color: var(--laiton-clair); }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--e-2); max-width: var(--largeur);
  margin: var(--e-5) auto 0; padding-top: var(--e-3); border-top: 1px solid rgba(237, 230, 218, .14); font-size: var(--t-xs); }
.pied__bas p { margin: 0; }
.pied__legal { display: flex; flex-wrap: wrap; gap: var(--e-3); list-style: none; margin: 0; padding: 0; }
.pied__bas a[href*="fabric"] { text-decoration: underline; }

/* --- tablette et téléphone ------------------------------------------------------------------------------------------ */
/* L'en-tête complet (logo, 4 rubriques, bouton) demande ~1 120 px : en dessous, menu plein écran. */
@media (max-width: 1180px) {
  .entete { gap: 12px; }
  .entete__cta { margin-left: auto; }
  /* nth-of-type et pas last-child : le dernier enfant du bouton est le libellé caché « Menu » */
  .burger { display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--encre); position: relative; z-index: 26; }
  .burger span { width: 24px; height: 2px; border-radius: 1px; background: currentColor; display: block; transition: transform .35s cubic-bezier(.6, 0, .2, 1); }
  .burger[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
  /* États sans transition : au franchissement du seuil, le panneau ne s'anime pas.
     Les transitions vivent sous .en-mouvement, posée par main.js le temps d'une ouverture ou fermeture. */
  .menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: var(--e-5);
    padding: 100px var(--gouttiere) 40px; background: var(--papier); visibility: hidden; opacity: 0; overflow: hidden auto; }
  .menu.ouvert { visibility: visible; opacity: 1; z-index: 25; }
  .menu ul { flex-direction: column; gap: 6px; }
  .menu ul a { font: 500 clamp(2rem, 1.4rem + 3vw, 3rem)/1.15 var(--police-titre); letter-spacing: -.03em; border: 0; }
  .menu a[aria-current] { color: var(--noyer); }
  .menu__contact { display: grid; gap: .4em; margin: 0; }
  .menu__contact a { font-size: var(--t-m); font-weight: 500; }
  .menu li, .menu .menu__contact { opacity: 0; transform: translateY(14px); }
  .menu.ouvert li, .menu.ouvert .menu__contact { opacity: 1; transform: none; }
  .menu li:nth-child(2) { --rang: 1; } .menu li:nth-child(3) { --rang: 2; } .menu li:nth-child(4) { --rang: 3; } .menu .menu__contact { --rang: 4; }
  .menu.en-mouvement { z-index: 25; transition: opacity .3s ease, visibility 0s linear .3s; }
  .menu.en-mouvement li, .menu.en-mouvement .menu__contact { transition: opacity .2s ease, transform .2s ease; }
  .menu.ouvert.en-mouvement { transition: opacity .3s ease, visibility 0s linear 0s; }
  .menu.ouvert.en-mouvement li, .menu.ouvert.en-mouvement .menu__contact {
    transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(80ms + var(--rang, 0) * 45ms); }
  .marque, .entete__cta { position: relative; z-index: 26; }
  .pied__haut { grid-template-columns: 1fr 1fr; }
  .prestation { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .heros, .tete-page { grid-template-columns: minmax(0, 1fr); }
  .heros { padding-top: var(--e-4); }
  .bande-zone { grid-template-columns: minmax(0, 1fr); }
  .bande-zone__item { padding: var(--e-3); }
  .bande-zone__item:first-child { border-radius: var(--rayon-l) var(--rayon-l) 0 0; }
  .bande-zone__item:last-child { border-radius: 0 0 var(--rayon-l) var(--rayon-l); box-shadow: inset 0 1px 0 var(--filet); }
  .fil__liste { gap: var(--e-5); }
  .fil__etape { grid-template-columns: minmax(0, 1fr); gap: var(--e-3); padding-left: 34px; }
  .fil__etape::before { left: 9px; top: calc(-1 * var(--e-5)); }
  .fil__etape:first-child::before { top: 14px; }
  .fil__etape::after { left: 9px; top: 14px; }
  .fil__etape:nth-child(even) .scene { order: 0; }
  .scene__dossier { width: 52%; padding: 12px; top: 14px; bottom: auto; }
  .projets__grille { grid-template-columns: minmax(0, 1fr); gap: var(--e-5); }
  .projet:nth-child(n) { grid-column: auto; margin-top: 0; }
  .etape-presta { grid-template-columns: minmax(0, 1fr); gap: var(--e-4); padding-top: var(--e-5); padding-bottom: var(--e-5); }
  .etape-presta__tete { position: static; }
  .projet-galerie { grid-template-columns: minmax(0, 1fr); gap: var(--e-3); }
  .projet-galerie__tete { position: static; }
  .parcours { grid-template-columns: minmax(0, 1fr); gap: var(--e-3); }
  .parcours__cote { position: static; }
  .parcours__etapes { display: none; }
  .choix__cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erreur { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .entete__cta { display: none; }
  .burger { margin-left: auto; }
  .marque .logo { height: 38px; }
  .bonjour { grid-template-columns: minmax(0, 1fr); gap: var(--e-4); }
  .bonjour__portrait { position: static; max-width: 420px; }
  .champs--2, .apres__listes, .recap__corps { grid-template-columns: minmax(0, 1fr); }
  .etape-q { padding: var(--e-3); gap: var(--e-3); }
  .apres, .recap { padding: var(--e-3); }
  .bouton--envoi { width: 100%; }
  .pied__haut { grid-template-columns: minmax(0, 1fr); }
  .fiche div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 560px) {
  .heros__tuiles { grid-template-columns: minmax(0, 1fr); }
  .tuile { min-height: 0; grid-auto-flow: column; justify-content: space-between; align-items: center; }
  .feuille { padding: var(--e-2); }
  .rendu { width: 64%; }
  .galerie__vignettes { grid-auto-columns: 104px; }
}

/* --- mouvement réduit : état final, jamais un vide ; délais annulés (mémoire) --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .menu, .menu * { transition: none !important; }
  .js .rendu { animation: none; }
}

/* Dossier de projet : la première page en grand, les deux suivantes dessous */
.prestation__image:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.prestation__visuels:has(> :nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- images agrandissables et visionneuse (prestations, portfolio) ------------------------------------------------------ */
.agrandir { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; text-align: left; }
.agrandir img { transition: transform .6s var(--courbe); }
.agrandir:hover img { transform: scale(1.02); }
.agrandir__signe { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(251, 249, 245, .94); color: var(--encre); box-shadow: 0 2px 10px rgba(21, 21, 58, .18);
  opacity: 0; transform: scale(.9); transition: opacity var(--duree), transform var(--duree) var(--courbe); }
.agrandir__signe svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agrandir:hover .agrandir__signe, .agrandir:focus-visible .agrandir__signe { opacity: 1; transform: none; }
@media (hover: none) { .agrandir__signe { opacity: 1; transform: none; width: 40px; height: 40px; } }
.prestation__image .agrandir { overflow: hidden; }
.galerie__image.agrandir { display: block; }
.galerie__cadre { display: block; width: 100%; height: 100%; }
.galerie__cadre img { width: 100%; height: 100%; object-fit: contain; }

.visionneuse { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0;
  background: var(--nuit); color: var(--sur-nuit); overflow: hidden; }
.visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.visionneuse::backdrop { background: rgba(21, 21, 58, .6); }
.visionneuse__barre { display: flex; align-items: center; gap: var(--e-3); padding: 12px var(--gouttiere); }
.visionneuse__compte { margin: 0 auto 0 0; font: 600 var(--t-xs)/1 var(--police-mono); letter-spacing: .14em; }
.visionneuse__original { color: var(--sur-nuit); font-size: var(--t-s); text-decoration: underline; text-underline-offset: 3px; }
.visionneuse__vue { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; margin: 0; padding: 0 calc(var(--gouttiere) + 56px) var(--e-3); min-height: 0; }
.visionneuse__vue img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 6px; }
.visionneuse__legende { text-align: center; font-size: var(--t-s); color: rgba(237, 230, 218, .85); max-width: 70ch; margin: 0 auto; }
.visionneuse__bouton { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(237, 230, 218, .35); border-radius: 50%;
  background: rgba(21, 21, 58, .6); color: var(--sur-nuit); cursor: pointer; transition: background var(--duree); }
.visionneuse__bouton:hover { background: var(--laiton-clair); color: var(--nuit); border-color: var(--laiton-clair); }
.visionneuse__bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.visionneuse__prec, .visionneuse__suiv { position: absolute; top: 50%; transform: translateY(-50%); }
.visionneuse__prec { left: var(--gouttiere); }
.visionneuse__suiv { right: var(--gouttiere); }
.visionneuse--seule .visionneuse__prec, .visionneuse--seule .visionneuse__suiv { display: none; }
.visionneuse :focus-visible { outline-color: var(--laiton-clair); }
@media (max-width: 760px) {
  .visionneuse__vue { padding: 0 8px 84px; }
  .visionneuse__prec, .visionneuse__suiv { top: auto; bottom: 16px; transform: none; }
  .visionneuse__prec { left: calc(50% - 60px); }
  .visionneuse__suiv { right: calc(50% - 60px); }
}

.bande-zone__item > span:last-child { font-size: 1.08rem; font-weight: 500; }

/* accueil : chaque étape résume, et mène aux prestations concernées */
.fil__resume { color: var(--encre-2); font-size: 1.05rem; max-width: 42ch; }
.fil__liens { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: var(--e-3) 0 0; padding: 0; }
.fil__liens a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--carte);
  box-shadow: inset 0 0 0 1px var(--filet); text-decoration: none; font-size: var(--t-s); font-weight: 500;
  transition: box-shadow var(--duree), background var(--duree), opacity .5s ease, transform .6s var(--courbe); }
.fil__liens a::after { content: "→"; color: var(--noyer); transition: transform var(--duree) var(--courbe); }
.fil__liens a:hover { box-shadow: inset 0 0 0 1px var(--encre); background: #fff; }
.fil__liens a:hover::after { transform: translateX(3px); }
.fil__liens li:nth-child(1) a { transition-delay: 0s, 0s, 1s, 1s; }
.fil__liens li:nth-child(2) a { transition-delay: 0s, 0s, 1.15s, 1.15s; }
.fil__liens li:nth-child(3) a { transition-delay: 0s, 0s, 1.3s, 1.3s; }
.js .fil__etape:not(.en-vue) .fil__liens a { opacity: 0; transform: translateY(10px); }
.fil__suite { margin: var(--e-6) 0 0; text-align: center; }
.fil__suite .bouton span { margin-left: 4px; }

/* questionnaire : fichiers joints */
.champ--fichiers { position: relative; display: grid; gap: 10px; }
.champ__titre { font: 500 var(--t-s)/1.45 var(--police-texte); }
.depot { display: grid; justify-items: center; gap: 6px; padding: var(--e-4) var(--e-3); border-radius: 16px; border: 1.5px dashed rgba(27, 27, 71, .28);
  background: var(--papier); text-align: center; cursor: pointer; transition: border-color var(--duree), background var(--duree); }
.depot:hover, .depot--survol { border-color: var(--encre); background: #fff; }
.depot__picto { width: 40px; height: 40px; fill: none; stroke: var(--noyer); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.depot__texte { font-size: var(--t-m); }
.depot__texte b { font-weight: 600; }
.depot__lien { color: var(--noyer); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.depot__aide { font-size: var(--t-xs); color: var(--encre-2); }
.depot--actif input[type="file"] { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; pointer-events: none; }
.depot--actif:has(input:focus-visible) .depot { outline: 2px solid var(--noyer); outline-offset: 3px; }
.depot--charge .depot { opacity: .6; cursor: progress; }
.depot__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.depot__liste:empty { display: none; }
.depot__liste li { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--papier);
  box-shadow: inset 0 0 0 1px var(--filet); font-size: var(--t-s); }
.depot__nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot__poids { color: var(--encre-2); font-size: var(--t-xs); white-space: nowrap; }
.depot__retirer { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent;
  color: var(--encre); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.depot__retirer:hover { background: var(--surface); }
.depot__liste .depot__bilan { padding: 2px 0; background: none; box-shadow: none; color: var(--noyer); font: 600 var(--t-xs)/1.3 var(--police-mono);
  letter-spacing: .08em; text-transform: uppercase; }
.depot__erreur { margin: 0; padding: 10px 14px; border-radius: 12px; background: #F6E3DE; color: #8A2F1E; font-size: var(--t-s); }
.depot__note { margin: 0; font-size: var(--t-xs); color: var(--encre-2); }
