@font-face{font-family:'Bodoni Moda';font-style:italic;font-weight:400 600;font-display:swap;src:url(/assets/fonts/bodoni-moda-italic-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:'Bodoni Moda';font-style:italic;font-weight:400 600;font-display:swap;src:url(/assets/fonts/bodoni-moda-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Bodoni Moda';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/bodoni-moda-normal-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:'Bodoni Moda';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/bodoni-moda-normal-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Jost';font-style:italic;font-weight:300 400;font-display:swap;src:url(/assets/fonts/jost-italic-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:'Jost';font-style:italic;font-weight:300 400;font-display:swap;src:url(/assets/fonts/jost-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Jost';font-style:normal;font-weight:300 600;font-display:swap;src:url(/assets/fonts/jost-normal-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:'Jost';font-style:normal;font-weight:300 600;font-display:swap;src:url(/assets/fonts/jost-normal-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}
/* L'Atelier du Tapis Even — v2 « clair-obscur »
   Nuit vert profond et or pour raconter ; papier ivoire pour lire.
   Titres Bodoni Moda (didone), texte Jost (géométrique, esprit Art déco parisien). */
:root {
  --nuit: #0D1712;
  --nuit-2: #13201A;
  --nuit-3: #1B2B23;
  --ivoire: #EFE6D4;
  --ivoire-doux: rgba(239, 230, 212, .74);
  --ivoire-pale: rgba(239, 230, 212, .5);
  --papier: #F3ECDF;
  --papier-2: #EAE0CD;
  --papier-3: #DFD2BA;
  --encre: #1C241F;
  --encre-douce: #555A50;
  --or: #C6A15B;
  --or-clair: #E2C98F;
  --or-fonce: #8C6B2C;
  --garance: #9B2E22;
  --indigo: #1E2747;
  --filet-or: rgba(198, 161, 91, .35);
  --filet-clair: rgba(239, 230, 212, .14);
  --filet-sombre: rgba(28, 36, 31, .14);
  --titre: "Bodoni Moda", "Bodoni 72", Didot, "Libre Bodoni", Georgia, serif;
  --texte: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --gouttiere: clamp(18px, 4.2vw, 64px);
  --entete: 84px;
  --lent: cubic-bezier(.19, 1, .22, 1);
}

@view-transition { navigation: auto; }
/* Changement de page : l'ancienne recule dans l'ombre, la nouvelle monte comme un tapis qu'on déroule. */
::view-transition-old(root) { animation: .7s cubic-bezier(.7, 0, .2, 1) both page-sortie; }
::view-transition-new(root) { animation: .8s cubic-bezier(.7, 0, .2, 1) both page-entree; }
@keyframes page-sortie { to { transform: translateY(-5vh) scale(.985); filter: brightness(.4); } }
@keyframes page-entree { from { clip-path: inset(100% 0 0 0); } }
.entete { view-transition-name: entete; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); background: var(--nuit); }
body {
  margin: 0; background: var(--nuit); color: var(--ivoire);
  font: 300 1.0625rem/1.72 var(--texte); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* grain argentique, très léger, sur ordinateur seulement (coût de rendu nul ailleurs) */
@media (min-width: 900px) and (hover: hover) {
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; height: 100%; } /* une image à height:100% remplit ainsi son cadre (en-têtes, maison, vignettes) */
a { color: inherit; text-decoration-color: var(--or); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--or-clair); }
:focus-visible { outline: 1.5px solid var(--or); outline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 400; margin: 0 0 .45em; font-optical-sizing: auto; letter-spacing: -.012em; }
h1 { font-size: clamp(2.9rem, 1.6rem + 5.4vw, 7.4rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 1.35rem + 3vw, 4.5rem); line-height: 1.02; }
h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 2rem); line-height: 1.12; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1em; padding: 0; }
address { font-style: normal; }
strong { font-weight: 500; }
.evitement { position: absolute; left: -9999px; top: 10px; z-index: 200; background: var(--or); color: var(--nuit); padding: .7em 1.1em; }
.evitement:focus { left: 10px; }

.conteneur { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gouttiere); }
.conteneur--texte { max-width: calc(760px + 2 * var(--gouttiere)); }
.conteneur--moyen { max-width: calc(1080px + 2 * var(--gouttiere)); }
.section { position: relative; padding-block: clamp(80px, 11vw, 180px); }
.section--papier { background: var(--papier); color: var(--encre); }
.section--papier h2, .section--papier h3 { color: var(--encre); }
.section--papier a:hover { color: var(--garance); }
.section--nuit2 { background: var(--nuit-2); }
.filet { display: block; width: 64px; height: 1px; background: var(--or); margin: 0 0 28px; border: 0; }
.chapo { font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); line-height: 1.55; font-weight: 300; color: var(--ivoire-doux); max-width: 46ch; }
.section--papier .chapo { color: var(--encre-douce); }

/* ---------- Boutons et liens ---------- */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em; overflow: hidden;
  padding: 1.05em 1.9em; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  font: 500 .98rem/1 var(--texte); letter-spacing: .05em; text-decoration: none;
  transition: background-color .4s var(--lent), color .4s var(--lent), border-color .4s var(--lent);
}
.bouton .icone { width: 1.05em; height: 1.05em; flex: none; }
.bouton--or { background: var(--or); color: var(--nuit); }
.bouton--or::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 220, .55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--lent); }
.bouton--or:hover { background: var(--or-clair); color: var(--nuit); }
.bouton--or:hover::after { transform: translateX(120%); }
.bouton--ligne { border-color: rgba(239, 230, 212, .45); color: var(--ivoire); background: transparent; }
.bouton--ligne:hover { border-color: var(--or); color: var(--or-clair); }
.section--papier .bouton--ligne { border-color: rgba(28, 36, 31, .35); color: var(--encre); }
.section--papier .bouton--ligne:hover { border-color: var(--encre); background: var(--encre); color: var(--papier); }
.lien-fleche { display: inline-flex; align-items: center; gap: .6em; font-weight: 400; letter-spacing: .03em; text-decoration: none; border-bottom: 1px solid var(--filet-or); padding-bottom: 4px; transition: border-color .3s, gap .4s var(--lent); }
.lien-fleche::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .4s var(--lent); }
.lien-fleche:hover { border-color: var(--or); gap: .9em; }
.lien-fleche:hover::after { width: 38px; }
.icone { width: 1.15em; height: 1.15em; }
.lien-tel { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.lien-tel .icone { width: 1em; height: 1em; }
.manquant { background: #F7D9D1; color: var(--garance); font-weight: 500; padding: 0 .3em; }
.facultatif { font-weight: 300; opacity: .7; font-size: .9em; }

/* ---------- Ouverture (préchargement) ---------- */
.ouverture { display: none; }
.js .ouverture { position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; background: var(--nuit); color: var(--or); transition: transform 1.1s var(--lent) .1s, visibility 0s 1.3s; }
.ouverture .marque { width: 108px; height: 130px; }
.ouverture .marque__ext, .ouverture .marque__int, .ouverture .marque__tiges { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.3s var(--lent) forwards; }
.ouverture .marque__int { animation-delay: .15s; }
.ouverture .marque g[fill] { opacity: 0; animation: apparaitre .7s ease .75s forwards; }
.ouverture__nom { margin-top: 22px; font: 400 1.1rem/1 var(--titre); letter-spacing: .5em; text-indent: .5em; color: var(--ivoire); opacity: 0; animation: apparaitre .8s ease .9s forwards; }
.ouverture--fin { transform: translateY(-100%); visibility: hidden; }
.ouverture--vue { display: none !important; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }

/* ---------- Entrée de l'accueil : rien ne masque la page ---------- */
@keyframes entree { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.js .accueil .hero__situation, .js .accueil .hero__titre, .js .accueil .hero__lede, .js .accueil .hero__actions { animation: entree 1.5s var(--lent) both; }
.js .accueil .hero__situation { animation-delay: .15s; }
.js .accueil .hero__titre { animation-delay: .3s; }
.js .accueil .hero__lede { animation-delay: .55s; }
.js .accueil .hero__actions { animation-delay: .75s; }
.js .accueil .entete .marque__ext, .js .accueil .entete .marque__int, .js .accueil .entete .marque__tiges { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tracer 1.8s var(--lent) .2s forwards; }
.js .accueil .entete .marque g[fill] { opacity: 0; animation: apparaitre .8s ease 1s forwards; }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 60; color: var(--ivoire); transition: background-color .5s var(--lent), transform .5s var(--lent), box-shadow .5s; }
.entete__barre { display: flex; align-items: center; gap: 32px; height: var(--entete); max-width: 1600px; margin: 0 auto; padding-inline: var(--gouttiere); }
.entete--fixe { background: rgba(13, 23, 18, .82); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--filet-clair); }
.entete--cache { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; flex: none; }
.logo:hover { color: inherit; }
.logo .marque { width: 38px; height: 46px; color: var(--or); flex: none; }
.logo__texte { display: flex; flex-direction: column; line-height: 1; }
.logo__haut { font: 500 .6rem/1 var(--texte); letter-spacing: .36em; text-transform: uppercase; color: var(--or); }
.logo__bas { font: 500 1.62rem/1 var(--titre); letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
.nav { margin-left: auto; }
.nav__liste { display: flex; gap: clamp(16px, 1.8vw, 30px); list-style: none; margin: 0; }
.nav__liste a { position: relative; text-decoration: none; font-weight: 400; font-size: .95rem; letter-spacing: .03em; padding-block: 8px; }
.nav__liste a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--lent); }
.nav__liste a:hover::after, .nav__liste a[aria-current="page"]::after { transform: scaleX(1); }
.nav__liste a:hover { color: inherit; }
.entete__actions { display: flex; align-items: center; gap: 22px; }
.entete__tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 400; white-space: nowrap; font-size: .95rem; }
.entete__actions .bouton { padding: .85em 1.3em; font-size: .9rem; }
.entete__menu { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 1px solid rgba(239, 230, 212, .4); color: inherit; padding: 9px 14px; font: 400 .95rem var(--texte); letter-spacing: .04em; }
.entete__menu svg { width: 20px; height: 20px; }
@media (max-width: 1240px) { .entete__tel span { display: none; } }
@media (max-width: 1080px) {
  .entete__menu { display: inline-flex; }
  .entete__actions { display: none; }
  .nav { position: fixed; inset: 0; z-index: -1; background: var(--nuit); padding: calc(var(--entete) + 30px) var(--gouttiere) 40px; opacity: 0; visibility: hidden; transition: opacity .5s var(--lent), visibility .5s; }
  .nav--ouverte { opacity: 1; visibility: visible; }
  .nav__liste { flex-direction: column; gap: 0; }
  .nav__liste a { display: block; padding: 14px 0; font: 400 2rem/1.1 var(--titre); border-bottom: 1px solid var(--filet-clair); }
  .nav__liste a::after { display: none; }
  .nav__liste li { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--lent), transform .7s var(--lent); }
  .nav--ouverte .nav__liste li { opacity: 1; transform: none; }
  .nav--ouverte .nav__liste li:nth-child(1) { transition-delay: 115ms; }
  .nav--ouverte .nav__liste li:nth-child(2) { transition-delay: 170ms; }
  .nav--ouverte .nav__liste li:nth-child(3) { transition-delay: 225ms; }
  .nav--ouverte .nav__liste li:nth-child(4) { transition-delay: 280ms; }
  .nav--ouverte .nav__liste li:nth-child(5) { transition-delay: 335ms; }
  .nav--ouverte .nav__liste li:nth-child(6) { transition-delay: 390ms; }
  .nav--ouverte .nav__liste li:nth-child(7) { transition-delay: 445ms; }
  .nav--ouverte .nav__liste li:nth-child(8) { transition-delay: 500ms; }
}

/* ---------- Barre mobile ---------- */
.barre-mobile { display: none; }
@media (max-width: 899px) {
  body { padding-bottom: 64px; }
  .barre-mobile { display: grid; grid-template-columns: 1fr 1.25fr; position: fixed; inset: auto 0 0; z-index: 70; background: rgba(13, 23, 18, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--filet-or); }
  .barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 64px; text-decoration: none; font-weight: 400; letter-spacing: .03em; }
  .barre-mobile__devis { background: var(--or); color: var(--nuit) !important; font-weight: 500 !important; }
}

/* ---------- Hero cinématographique ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--nuit); isolation: isolate; }
.hero__fond, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fond img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__canvas { z-index: -1; opacity: 0; transition: opacity 1.4s ease; }
.hero--webgl .hero__canvas { opacity: 1; }
.hero__voile { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(13, 23, 18, .9) 0%, rgba(13, 23, 18, .5) 34%, rgba(13, 23, 18, 0) 62%), linear-gradient(0deg, rgba(13, 23, 18, .9) 0%, rgba(13, 23, 18, 0) 38%); }
.hero__contenu { width: 100%; max-width: 1600px; margin: 0 auto; padding: calc(var(--entete) + 40px) var(--gouttiere) clamp(48px, 7vh, 88px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.hero__situation { display: flex; align-items: center; gap: 14px; font-weight: 400; letter-spacing: .06em; color: var(--or-clair); margin-bottom: 26px; }
.hero__situation::before { content: ""; width: 48px; height: 1px; background: var(--or); }
.hero__titre { max-width: 11.5ch; margin-bottom: 30px; text-wrap: balance; }
.hero__lede { max-width: 44ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--ivoire-doux); margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__defiler { display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .74rem; letter-spacing: .3em; color: var(--ivoire-pale); writing-mode: vertical-rl; }
.hero__defiler::after { content: ""; width: 1px; height: 72px; background: linear-gradient(var(--or), transparent); animation: descendre 2.4s var(--lent) infinite; }
@keyframes descendre { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 899px) {
  .hero__voile { background: linear-gradient(0deg, rgba(13, 23, 18, .97) 0%, rgba(13, 23, 18, .82) 40%, rgba(13, 23, 18, 0) 70%); }
  .hero__contenu { grid-template-columns: 1fr; padding-bottom: 36px; }
  .hero__defiler { display: none; }
  .hero__fond img { object-position: 50% 30%; }
}

/* ---------- Prologue ---------- */
.prologue { text-align: center; }
.prologue .marque { width: 30px; height: 36px; color: var(--or); margin: 0 auto 40px; }
.prologue__texte { font: 400 clamp(1.7rem, 1.1rem + 2.4vw, 3.4rem)/1.18 var(--titre); max-width: 26ch; margin: 0 auto 44px; letter-spacing: -.01em; }
.prologue__liens { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; list-style: none; }
.prologue__liens a { text-decoration: none; letter-spacing: .05em; color: var(--ivoire-doux); }
.prologue__liens a:hover { color: var(--or-clair); }

/* ---------- Chapitres (WebGL au défilement) ---------- */
.chapitres { position: relative; background: var(--nuit); }
.chapitres__scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.chapitres__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapitres__scene::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(13, 23, 18, .9) 0%, rgba(13, 23, 18, .66) 34%, rgba(13, 23, 18, 0) 62%), linear-gradient(0deg, rgba(13, 23, 18, .6), transparent 40%); }
.chapitre__bloc { text-shadow: 0 1px 18px rgba(13, 23, 18, .6); }
.chapitres__textes { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }
.chapitre { min-height: 130vh; display: flex; align-items: center; }
.chapitre__bloc { max-width: 520px; }
.chapitre__numero { font: 400 1rem/1 var(--titre); letter-spacing: .3em; color: var(--or); margin-bottom: 22px; display: block; }
.chapitre__titre { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.6rem); margin-bottom: 26px; }
.chapitre__texte { color: var(--ivoire-doux); font-size: 1.12rem; }
.chapitre__img { display: none; }
.chapitres--statique .chapitres__scene { display: none; }
.chapitres--statique .chapitres__textes { margin-top: 0; }
.chapitres--statique .chapitre { position: relative; min-height: 90vh; overflow: hidden; isolation: isolate; }
.chapitres--statique .chapitre__img { display: block; position: absolute; inset: 0; z-index: -1; }
.chapitres--statique .chapitre__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
@media (max-width: 899px) {
  .chapitres__scene::after { background: linear-gradient(0deg, rgba(13, 23, 18, .92) 0%, rgba(13, 23, 18, .55) 45%, rgba(13, 23, 18, .1) 75%); }
  .chapitre { align-items: flex-end; padding-bottom: 14vh; }
}

/* ---------- Tissage : le dos du tapis se noue au défilement ---------- */
.tissage { position: relative; background: radial-gradient(55% 75% at 71% 50%, #1B2B23 0%, var(--nuit) 72%); }
.tissage__scene { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
.tissage__scene { min-height: 100svh; }
.tissage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--lent); }
.tissage--pret .tissage__canvas { opacity: 1; }
.tissage__texte { position: relative; z-index: 2; padding-block: 100px; }
.tissage__texte > * { max-width: min(34rem, 44vw); }
.tissage .marque { display: block; width: 30px; height: 36px; color: var(--or); margin: 0 0 36px; }
.tissage .prologue__texte { font-size: clamp(1.7rem, .9rem + 2.2vw, 3.1rem); margin: 0 0 28px; }
.tissage__legende { color: var(--ivoire-doux); font-size: .98rem; margin: 0 0 34px; }
.tissage__legende span { display: block; margin-top: 8px; color: var(--or); font-variant-numeric: tabular-nums; letter-spacing: .06em; min-height: 1.5em; }
.tissage .prologue__liens { justify-content: flex-start; gap: 10px 30px; }
.tissage__aiguille { position: absolute; left: 0; top: 0; z-index: 1; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--or-clair); box-shadow: 0 0 14px 5px rgba(226, 201, 143, .5); opacity: 0; transition: opacity .4s; pointer-events: none; }
.tissage__aiguille--active { opacity: 1; }
@media (max-width: 899px) {
  .tissage__scene { align-items: start; }
  .tissage__texte { padding-block: 92px 0; }
  .tissage__texte > * { max-width: none; }
  .tissage .marque, .tissage .prologue__liens { display: none; }
  .tissage .prologue__texte { font-size: clamp(1.4rem, 1rem + 2.4vw, 2rem); margin-bottom: 14px; }
  .tissage__legende { font-size: .9rem; margin-bottom: 0; }
}

/* ---------- Métiers : index éditorial et vitrine ---------- */
.metiers__tete { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 90px); }
.metiers__corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .5fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.metiers__liste { list-style: none; border-top: 1px solid var(--filet-clair); }
.metier { position: relative; border-bottom: 1px solid var(--filet-clair); }
.metier__lien { display: grid; grid-template-columns: 52px minmax(0, 1fr) 46px; align-items: center; gap: 22px; padding: clamp(24px, 3vw, 40px) 0; text-decoration: none; }
.metier__num { font: 400 .95rem var(--titre); color: var(--ivoire-doux); letter-spacing: .2em; transition: color .5s; }
.metier__corps { display: grid; gap: 12px; min-width: 0; }
.metier__nom { font: 400 clamp(2.4rem, 1.3rem + 3.4vw, 5.2rem)/1 var(--titre); letter-spacing: -.02em; transition: transform .8s var(--lent), color .5s; transform-origin: left center; }
.metier__desc { color: var(--ivoire-doux); font-size: .98rem; margin: 0; max-width: 52ch; opacity: .62; transition: opacity .6s; }
.metier__fleche { justify-self: end; width: 46px; height: 46px; border: 1px solid var(--filet-or); border-radius: 50%; display: grid; place-items: center; color: var(--or); transition: background .5s var(--lent), color .5s; overflow: hidden; }
.metier__fleche svg { transition: transform .6s var(--lent); }
.metier--actif .metier__num { color: var(--or); }
.metier--actif .metier__nom { color: var(--or-clair); transform: translateX(14px); }
.metier--actif .metier__desc { opacity: 1; }
.metier__lien:hover .metier__fleche, .metier__lien:focus-visible .metier__fleche { background: var(--or); color: var(--nuit); }
.metier__lien:hover .metier__fleche svg, .metier__lien:focus-visible .metier__fleche svg { transform: translateX(3px); }
.metier__vignette { display: none; }
.metiers__vitrine { position: sticky; top: max(104px, 14vh); }
.vitrine__cadre { position: relative; aspect-ratio: 3 / 4; max-height: 72vh; margin-inline: auto; overflow: hidden; background: var(--nuit-2); outline: 1px solid var(--filet-or); outline-offset: 12px; }
.vitrine__vue { position: absolute; inset: 0; z-index: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--lent); }
.vitrine__vue picture, .vitrine__vue img { display: block; width: 100%; height: 100%; }
.vitrine__vue img { object-fit: cover; transform: scale(1.14); transition: transform 1.8s var(--lent); }
.vitrine__vue--sortante { z-index: 1; clip-path: inset(0 0 0 0); }
.vitrine__vue--active { z-index: 2; clip-path: inset(0 0 0 0); }
.vitrine__vue--active img { transform: scale(1); }
.vitrine__legende { margin: 26px 0 0; text-align: center; font: 400 .95rem var(--titre); letter-spacing: .25em; color: var(--ivoire-doux); }
.vitrine__legende span { color: var(--or); }
@media (max-width: 899px) {
  .metiers__tete, .metiers__corps { grid-template-columns: 1fr; }
  .metiers__vitrine { display: none; }
  .metier__lien { grid-template-columns: 1fr; gap: 14px; }
  .metier__num, .metier__fleche { display: none; }
  .metier__vignette { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 4px; }
  .metier__vignette img { width: 100%; height: 100%; object-fit: cover; }
  .metier__desc { opacity: 1; }
  .metier--actif .metier__nom { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vitrine__vue, .vitrine__vue img, .metier__nom { transition: none; }
}

/* ---------- Studio : le tapis à retourner ---------- */
.studio { position: relative; background: radial-gradient(70% 60% at 62% 45%, #22352B 0%, var(--nuit) 72%); overflow: hidden; }
.studio__grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.studio__scene { position: relative; height: clamp(440px, 58vw, 760px); cursor: grab; touch-action: pan-y; }
.studio__scene:active { cursor: grabbing; }
.studio__scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__repli { position: absolute; inset: 10% 18%; display: none; }
.studio--repli .studio__repli { display: block; }
.studio__repli img { width: 100%; height: 100%; object-fit: contain; }
.studio__commandes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.studio__commandes button { font: 400 .95rem var(--texte); letter-spacing: .04em; padding: .85em 1.5em; background: transparent; color: var(--ivoire); border: 1px solid var(--filet-or); cursor: pointer; transition: background .4s, color .4s; }
.studio__commandes button[aria-pressed="true"] { background: var(--or); color: var(--nuit); border-color: var(--or); }
.studio__aide { font-size: .9rem; color: var(--ivoire-pale); margin-top: 16px; }
@media (max-width: 899px) { .studio__grille { grid-template-columns: 1fr; } .studio__scene { order: -1; height: 60vh; } }

/* ---------- Anatomie (couches de matière en 3D CSS) ---------- */
.anatomie__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.anatomie__legendes { list-style: none; margin-top: 34px; }
.anatomie__legende { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; padding: 20px 0; border-top: 1px solid var(--filet-clair); transition: opacity .5s; }
.anatomie__legende::before { content: attr(data-rang); grid-row: span 3; font: 400 .9rem var(--titre); color: var(--or); letter-spacing: .15em; padding-top: 6px; }
.anatomie__legende h3 { font-size: 1.55rem; margin: 0; }
.anatomie__legende p { color: var(--ivoire-doux); font-size: 1rem; margin: 0; }
.anatomie__legende a { font-size: .92rem; color: var(--or-clair); justify-self: start; }
.anatomie__legendes--suivi .anatomie__legende { opacity: .42; }
.anatomie__legendes--suivi .anatomie__legende--active { opacity: 1; }
.anatomie__scene { position: relative; height: clamp(460px, 56vw, 720px); perspective: 1800px; display: grid; place-items: center; }
.anatomie__pile { --ecart: 0; position: relative; width: min(74%, 400px); aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-34deg); }
.anatomie__couche { position: absolute; inset: 0; background: center / cover no-repeat; transform: translateZ(calc(var(--ecart) * var(--rang) * 74px)); transition: transform .9s var(--lent), filter .5s, box-shadow .5s; box-shadow: 0 40px 60px rgba(0, 0, 0, .45); filter: brightness(.82); }
.anatomie__couche--active { filter: brightness(1.08); box-shadow: 0 40px 60px rgba(0, 0, 0, .45), 0 0 0 1.5px var(--or-clair); }
.anatomie__couche[data-couche="0"] { --rang: 3; }
.anatomie__couche[data-couche="1"] { --rang: 2; }
.anatomie__couche[data-couche="2"] { --rang: 1; }
.anatomie__couche[data-couche="3"] { --rang: 0; }
.anatomie__couche--bords { background: none !important; box-shadow: none; border-inline: 10px solid #2A3360; }
.anatomie__couche--bords::before, .anatomie__couche--bords::after { content: ""; position: absolute; left: -10px; right: -10px; height: 30px; background: repeating-linear-gradient(90deg, #EFE6D4 0 2px, transparent 2px 6px); }
.anatomie__couche--bords::before { top: -30px; }
.anatomie__couche--bords::after { bottom: -30px; }
@media (max-width: 899px) { .anatomie__grille { grid-template-columns: 1fr; } .anatomie__scene { order: -1; height: 400px; } .anatomie__pile { width: 58%; } }

/* ---------- Compteur de nœuds (instrument) ---------- */
.noeuds__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.noeuds__instrument { padding: clamp(24px, 3vw, 44px); border: 1px solid var(--filet-or); background: linear-gradient(160deg, rgba(198, 161, 91, .08), transparent 60%); }
.cadran { width: 100%; max-width: 440px; margin: 0 auto; display: block; overflow: visible; }
.cadran__arc { fill: none; stroke-width: 10; }
.cadran__graduation { stroke: var(--ivoire-pale); stroke-width: 1; }
.cadran__libelle { fill: var(--ivoire-doux); font: 400 12px var(--texte); letter-spacing: .06em; }
.cadran__aiguille { transform-origin: 200px 200px; transition: transform 1.2s var(--lent); }
.cadran__aiguille line { stroke: var(--or-clair); stroke-width: 2; }
.cadran__aiguille circle { fill: var(--or); }
.noeuds__champs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.noeuds__resultat { display: block; margin-top: 22px; text-align: center; min-height: 8.5em; }
.noeuds__chiffre { display: block; font: 400 clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem)/1.1 var(--titre); color: var(--ivoire); }
.noeuds__niveau { display: block; color: var(--or-clair); letter-spacing: .05em; margin-top: 8px; }
.noeuds__lecture { display: block; color: var(--ivoire-doux); margin-top: 6px; font-size: .98rem; }
.noeuds__note { font-size: .92rem; color: var(--ivoire-pale); margin: 14px 0 0; text-align: center; }
@media (max-width: 899px) { .noeuds__grille { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .noeuds__champs { grid-template-columns: 1fr; } }

/* ---------- Champs ---------- */
.champ { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .88rem; letter-spacing: .05em; }
.champ input, .champ select, .champ textarea { width: 100%; font: 400 1.02rem/1.4 var(--texte); color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; padding: 10px 2px; }
.champ select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; appearance: none; }
.champ select option { color: #1C241F; }
.champ textarea { resize: vertical; border: 1px solid currentColor; padding: 10px 12px; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 1px 0 var(--or); }
.champ [aria-invalid="true"] { border-color: #C2513E; box-shadow: 0 1px 0 #C2513E; }
.champ__aide { font-size: .88rem; opacity: .75; margin: 0; }
.champ--case { flex-direction: row; align-items: flex-start; gap: 12px; }
.champ--case input { width: 18px; height: 18px; flex: none; margin-top: 4px; accent-color: var(--or-fonce); }
.champ--case label { font-size: .92rem; letter-spacing: 0; }

/* ---------- Parcours horizontal ---------- */
.parcours { position: relative; background: var(--nuit-2); }
.parcours__collant { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.parcours__tete { padding-inline: var(--gouttiere); max-width: 1600px; width: 100%; margin: 0 auto 6vh; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.parcours__tete p { max-width: 38ch; color: var(--ivoire-doux); margin: 0; }
.parcours__piste { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--gouttiere); list-style: none; margin: 0; will-change: transform; }
.etape-p { flex: none; width: clamp(280px, 30vw, 440px); padding-top: 26px; border-top: 1px solid var(--filet-or); }
.etape-p__num { font: 400 clamp(4rem, 3rem + 3vw, 7rem)/1 var(--titre); color: transparent; -webkit-text-stroke: 1px var(--or); display: block; margin-bottom: 18px; }
.etape-p h3 { font-size: 1.7rem; }
.etape-p p { color: var(--ivoire-doux); }
.parcours__barre { position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: 8vh; height: 1px; background: var(--filet-clair); }
.parcours__barre span { display: block; height: 100%; width: 100%; background: var(--or); transform-origin: left; transform: scaleX(0); }
@media (max-width: 899px) { .parcours__tete { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) {
  .hero__titre { font-size: clamp(2.4rem, 10.5vw, 3.1rem); margin-bottom: 20px; }
  .hero__situation { font-size: .9rem; margin-bottom: 16px; }
  .hero__situation::before { width: 28px; }
  .hero__lede { font-size: 1rem; margin-bottom: 24px; }
  .chapitre__titre { font-size: 2.6rem; }
  .metier__nom { font-size: 2.6rem; }
}
.parcours--simple .parcours__collant { position: relative; height: auto; padding-block: clamp(80px, 11vw, 160px); }
.parcours--simple .parcours__piste { flex-wrap: wrap; transform: none !important; }
.parcours--simple .etape-p { width: min(100%, 380px); }
.parcours--simple .parcours__barre { display: none; }

/* ---------- Origines et guides (aperçus) ---------- */
.origines__liste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--filet-clair); list-style: none; margin-top: clamp(30px, 4vw, 60px); }
.origine-carte { border-bottom: 1px solid var(--filet-clair); border-right: 1px solid var(--filet-clair); }
.origine-carte:nth-child(4n) { border-right: 0; }
.origine-carte a { display: block; padding: 34px 28px 30px; text-decoration: none; height: 100%; transition: background .5s var(--lent); }
.origine-carte a:hover { background: rgba(198, 161, 91, .07); color: inherit; }
.origine-carte__nom { font: 400 clamp(1.7rem, 1.3rem + 1vw, 2.4rem)/1.05 var(--titre); display: block; margin-bottom: 10px; }
.origine-carte__desc { font-size: .95rem; color: var(--ivoire-doux); display: block; }
@media (max-width: 1000px) { .origines__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } .origine-carte:nth-child(n) { border-right: 1px solid var(--filet-clair); } .origine-carte:nth-child(2n) { border-right: 0; } }
@media (max-width: 520px) { .origines__liste { grid-template-columns: 1fr; } .origine-carte:nth-child(n) { border-right: 0; } }
.guides__liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); list-style: none; margin-top: clamp(30px, 4vw, 60px); }
.guide-carte a { display: block; text-decoration: none; padding-top: 22px; border-top: 1px solid var(--filet-sombre); }
.guide-carte__titre { font: 400 1.6rem/1.15 var(--titre); display: block; margin-bottom: 10px; }
.guide-carte__desc { color: var(--encre-douce); font-size: .98rem; }
@media (max-width: 900px) { .guides__liste { grid-template-columns: 1fr; } }

/* ---------- Zones et carte ---------- */
.zones__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.zones__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px 34px; margin-top: 34px; }
.zones__dep h3 { font-size: 1.3rem; margin-bottom: .6em; }
.zones__dep h3 a { text-decoration: none; }
.zones__dep ul { list-style: none; }
.zones__dep li { padding: 3px 0; font-size: .98rem; }
.zones__dep li a { text-decoration: none; color: var(--ivoire-doux); }
.zones__dep li a:hover { color: var(--or-clair); }
@media (max-width: 560px) { .zones__dep ul { columns: 2; column-gap: 20px; } .zones__dep li { break-inside: avoid; } }
.carte { width: 100%; height: auto; overflow: visible; }
.carte__dep { fill: rgba(239, 230, 212, .03); stroke: rgba(239, 230, 212, .18); stroke-width: 1; }
.carte__dep--servi { fill: rgba(198, 161, 91, .08); stroke: rgba(198, 161, 91, .55); }
.carte__dep--actif { fill: rgba(198, 161, 91, .22); stroke: var(--or); stroke-width: 1.4; }
.carte__point { fill: var(--ivoire); stroke: var(--nuit); stroke-width: 2; transition: r .3s; }
.carte__lien:hover .carte__point, .carte__lien:focus .carte__point { r: 7; fill: var(--or-clair); }
.carte__point--cible { fill: var(--garance); stroke: var(--ivoire); }
.carte__trajet { stroke: var(--or); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; }
.carte__atelier circle { fill: var(--or); stroke: var(--nuit); stroke-width: 2.5; }
.carte__atelier path { fill: var(--nuit); }
.carte__legende, .carte-locale figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .9rem; color: var(--ivoire-pale); margin: 16px 0 0; }
.carte__cle { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-left: 8px; }
.carte__cle:first-child { margin-left: 0; }
.carte__cle--atelier { background: var(--or); }
.carte__cle--commune { background: var(--ivoire); }
.carte__cle--cible { background: var(--garance); }
.carte-locale { margin: 0; padding: clamp(18px, 2.4vw, 30px); border: 1px solid var(--filet-or); background: rgba(13, 23, 18, .6); backdrop-filter: blur(6px); }
@media (max-width: 899px) { .zones__grille { grid-template-columns: 1fr; } }

/* ---------- La maison ---------- */
.maison { position: relative; isolation: isolate; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; }
.maison__image { position: absolute; inset: 0; z-index: -1; }
.maison__image img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--decalage, 0)); }
.maison::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13, 23, 18, .96) 0%, rgba(13, 23, 18, .55) 45%, rgba(13, 23, 18, .18) 100%); }
.maison__contenu { padding-block: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 50px; align-items: end; }
.maison__citation { font: 400 clamp(1.8rem, 1.2rem + 2vw, 3.2rem)/1.15 var(--titre); margin: 0; }
.maison__texte p { color: var(--ivoire-doux); }
@media (max-width: 899px) { .maison__contenu { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__grille { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(30px, 5vw, 90px); }
.faq__item { border-top: 1px solid var(--filet-sombre); }
.faq__item:last-child { border-bottom: 1px solid var(--filet-sombre); }
.faq__item summary { list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative; font: 400 clamp(1.2rem, 1.05rem + .5vw, 1.5rem)/1.3 var(--titre); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 16px; height: 1px; background: currentColor; transition: transform .5s var(--lent); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__reponse { padding: 0 0 26px; max-width: 64ch; color: var(--encre-douce); }
@media (max-width: 899px) { .faq__grille { grid-template-columns: 1fr; } }

/* ---------- Demande (lettre) ---------- */
.demande { background: var(--nuit); }
.demande__grille { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.demande__conseils { list-style: none; margin: 30px 0; counter-reset: c; }
.demande__conseils li { counter-increment: c; display: grid; grid-template-columns: 38px 1fr; padding: 14px 0; border-top: 1px solid var(--filet-clair); color: var(--ivoire-doux); }
.demande__conseils li::before { content: counter(c, upper-roman); font: 400 .9rem var(--titre); color: var(--or); letter-spacing: .1em; padding-top: 2px; }
.demande__appel { color: var(--ivoire-doux); }
.demande__appel a { color: var(--or-clair); }
.formulaire { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; padding: clamp(28px, 4vw, 56px); background: var(--papier); color: var(--encre); box-shadow: 0 50px 80px rgba(0, 0, 0, .45); }
.formulaire::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(140, 107, 44, .45); pointer-events: none; }
.formulaire__entete { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font: 400 1.5rem var(--titre); }
.formulaire__entete .marque { width: 26px; height: 32px; color: var(--or-fonce); }
.formulaire .champ label { color: var(--encre-douce); }
.formulaire .champ--case label { color: var(--encre); }
.formulaire__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formulaire__etat { margin: 12px 0 0; font-weight: 400; min-height: 1.4em; }
.formulaire__etat--ok { color: #2F5B44; }
.formulaire__etat--erreur { color: var(--garance); }
.formulaire .bouton--or { background: var(--encre); color: var(--papier); width: 100%; }
.formulaire .bouton--or:hover { background: var(--garance); color: var(--papier); }
.formulaire button[disabled] { opacity: .6; cursor: progress; }
.champ--photos input { border: 1px dashed currentColor; padding: 12px; }
@media (max-width: 899px) { .demande__grille { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .formulaire { grid-template-columns: 1fr; } }

/* ---------- Têtes des pages intérieures ---------- */
.tete { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--entete) + clamp(40px, 7vw, 110px)) 0 clamp(56px, 7vw, 110px); background: var(--nuit); }
.tete__image { position: absolute; inset: 0; z-index: -2; }
.tete__image img { width: 100%; height: 100%; object-fit: cover; }
.tete--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 23, 18, .95) 0%, rgba(13, 23, 18, .8) 45%, rgba(13, 23, 18, .4) 100%), linear-gradient(0deg, rgba(13, 23, 18, .75), transparent 50%); }
.tete__grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.tete__titre { font-size: clamp(2.5rem, 1.5rem + 4vw, 5.6rem); max-width: 15ch; text-wrap: balance; }
.tete__titre--long { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 4rem); max-width: 22ch; }
.tete__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem); color: var(--ivoire-doux); max-width: 54ch; }
.tete__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tete__portrait { aspect-ratio: 4 / 5; overflow: hidden; max-width: 460px; justify-self: end; width: 100%; }
.tete__portrait img { width: 100%; height: 100%; object-fit: cover; }
.fil ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 30px; font-size: .86rem; letter-spacing: .04em; color: var(--ivoire-pale); }
.fil li + li::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--or); vertical-align: middle; margin: 0 12px; }
.fil a { text-decoration: none; }
.fil a:hover { color: var(--or-clair); }
.sommaire { position: relative; z-index: 2; background: var(--nuit-2); border-top: 1px solid var(--filet-clair); border-bottom: 1px solid var(--filet-clair); }
.sommaire ul { display: flex; gap: 6px 26px; overflow-x: auto; list-style: none; margin: 0 auto; padding: 18px var(--gouttiere); max-width: 1440px; scrollbar-width: none; }
.sommaire a { white-space: nowrap; text-decoration: none; font-size: .92rem; letter-spacing: .04em; color: var(--ivoire-doux); }
.sommaire a:hover { color: var(--or-clair); }
@media (max-width: 899px) { .tete__grille { grid-template-columns: 1fr; } .tete__portrait { justify-self: start; max-width: 100%; aspect-ratio: 16 / 10; } }

/* ---------- Textes longs (papier) ---------- */
.lecture { position: relative; display: flow-root; background: var(--papier); color: var(--encre); font-size: 1.125rem; line-height: 1.75; }
/* Les franges de l'en-tête retombent sur le papier, comme au bout d'un tapis. */
.tete + .lecture::before, .tete + .sommaire + .lecture::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 30px; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(13, 23, 18, .9) 0 1.5px, transparent 1.5px 7px); -webkit-mask: linear-gradient(#000 20%, transparent); mask: linear-gradient(#000 20%, transparent); }
.lecture .section { padding-block: clamp(56px, 7vw, 100px); }
.lecture .section + .section { padding-top: 0; }
.lecture h2 { color: var(--encre); font-size: clamp(2rem, 1.4rem + 2vw, 3.2rem); }
.lecture h3 { color: var(--encre); }
.lecture p, .lecture li, .lecture dd { max-width: 68ch; font-weight: 400; }
.lecture a { color: var(--encre); }
.lecture a:hover { color: var(--garance); }
.lettrine::first-letter { float: left; font: 400 4.6em/.82 var(--titre); padding: .08em .12em 0 0; color: var(--garance); }
.liste-points { list-style: none; }
.liste-points li { position: relative; padding: 8px 0 8px 30px; }
.liste-points li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 7px; height: 7px; border: 1px solid var(--or-fonce); transform: rotate(45deg); }
.liste-photos { padding-left: 1.6em; }
.liste-photos li { padding: 5px 0; }
.liste-photos li::marker { font-family: var(--titre); color: var(--or-fonce); }
.criteres { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; margin: 0; }
.criteres div { padding: 18px 0; border-top: 1px solid var(--filet-sombre); }
.criteres dt { font: 400 1.35rem var(--titre); margin-bottom: 4px; }
.criteres dd { margin: 0; color: var(--encre-douce); }
@media (max-width: 700px) { .criteres { grid-template-columns: 1fr; } }
.etapes { list-style: none; counter-reset: etape; display: grid; gap: 34px 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0 0; }
.etapes__item { counter-increment: etape; position: relative; padding-top: 68px; border-top: 1px solid var(--filet-sombre); }
.etapes__item::before { content: counter(etape, decimal-leading-zero); position: absolute; top: 16px; left: 0; font: 400 2.2rem/1 var(--titre); color: var(--or-fonce); }
.etapes__titre { font-size: 1.4rem; margin-bottom: .3em; }
.etapes__item p { color: var(--encre-douce); margin: 0; }
@media (max-width: 640px) { .etapes { grid-template-columns: 1fr; } }
.encadre { margin: 0 0 clamp(40px, 5vw, 70px); padding: clamp(24px, 3vw, 40px); background: var(--nuit); color: var(--ivoire); position: relative; }
.encadre::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--filet-or); pointer-events: none; }
.encadre__titre { font: 400 1.5rem var(--titre); color: var(--or-clair); margin-bottom: .4em; }
.encadre p:last-child { margin: 0; color: var(--ivoire-doux); }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }
.pleine-largeur img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Pages locales ---------- */
.locale__grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.locale__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.services-locaux { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 12px; }
.service-local { padding: 22px 0; border-top: 1px solid var(--filet-sombre); }
.service-local h3 { font-size: 1.6rem; margin-bottom: .35em; }
.service-local h3 a { text-decoration: none; }
.service-local p { color: var(--encre-douce); margin: 0; }
.quartiers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.quartiers li { padding: 6px 14px; border: 1px solid var(--filet-sombre); font-size: .92rem; }
.conseil { margin: 0 0 clamp(48px, 6vw, 90px); padding: clamp(26px, 3vw, 44px); background: var(--nuit); color: var(--ivoire); position: relative; }
.conseil::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--filet-or); pointer-events: none; }
.conseil__titre { font: 400 1.35rem var(--titre); color: var(--or-clair); margin-bottom: .5em; }
.conseil p:last-child { margin: 0; color: var(--ivoire-doux); }
.resumes__liste { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.resume { padding: 22px 0; border-top: 1px solid var(--filet-sombre); }
.resume h3 { font-size: 1.5rem; margin-bottom: .25em; }
.resume h3 a { text-decoration: none; }
.resume p { color: var(--encre-douce); margin: 0; }
.maillage { padding-block: clamp(56px, 6vw, 90px); background: var(--papier-2); color: var(--encre); }
.maillage__grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.maillage__titre { font: 400 1.5rem var(--titre); color: var(--encre); }
.maillage ul { list-style: none; }
.maillage li { padding: 4px 0; }
.maillage a { color: var(--encre); text-decoration-color: rgba(140, 107, 44, .5); }
.maillage a:hover { color: var(--garance); }
@media (max-width: 900px) { .locale__grille, .services-locaux, .resumes__liste, .maillage__grille { grid-template-columns: 1fr; } .locale__photo img { aspect-ratio: 16 / 10; } }
.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 44px; }
.plan h2 { font-size: 1.5rem; }
.plan ul { list-style: none; }
.plan li { padding: 3px 0; }
.contact__ligne { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem) var(--titre); margin: 22px 0 6px; }
.contact__ligne a { text-decoration: none; }
.contact__adresse { margin-top: 22px; color: var(--ivoire-doux); }

/* ---------- Article (guides, origines, services précis) ---------- */
.article__corps { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); }
.article__toc { position: sticky; top: calc(var(--entete) + 24px); align-self: start; font-size: .92rem; }
.article__toc p { font: 400 1.1rem var(--titre); margin-bottom: .6em; }
.article__toc ol { list-style: none; border-left: 1px solid var(--filet-sombre); }
.article__toc li a { display: block; padding: 6px 0 6px 16px; text-decoration: none; color: var(--encre-douce); }
.article__toc li a:hover { color: var(--garance); }
.article__section { margin-bottom: clamp(36px, 5vw, 60px); }
.article__section h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); }
.liens-associes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 30px; }
.liens-associes a { display: block; padding: 14px 0; border-top: 1px solid var(--filet-sombre); text-decoration: none; font: 400 1.2rem var(--titre); }
@media (max-width: 960px) { .article__corps { grid-template-columns: 1fr; } .article__toc { position: static; } }

/* ---------- Pied de page ---------- */
.pied { position: relative; background: var(--nuit); color: var(--ivoire-doux); padding-top: clamp(90px, 10vw, 150px); overflow: hidden; }
.pied__franges { position: absolute; top: 0; left: 0; right: 0; height: 40px; background: repeating-linear-gradient(90deg, rgba(239, 230, 212, .55) 0 1.5px, transparent 1.5px 6px); -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.pied__marque { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: var(--gouttiere); margin-bottom: clamp(60px, 7vw, 100px); }
.pied__marque .marque { width: 64px; height: 78px; color: var(--or); margin-bottom: 24px; }
.pied__nom { font: 400 clamp(2.4rem, 1rem + 6vw, 7rem)/1 var(--titre); letter-spacing: .14em; text-transform: uppercase; color: var(--ivoire); margin: 0; }
.pied__devise { margin-top: 18px; letter-spacing: .08em; }
.pied__grille { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1fr; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 40px var(--gouttiere) 50px; border-top: 1px solid var(--filet-clair); }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--or-clair); }
.pied ul { list-style: none; }
.pied li { padding: 4px 0; font-size: .95rem; }
.pied__titre { font: 400 .78rem/1 var(--texte); letter-spacing: .3em; text-transform: uppercase; color: var(--or); margin-bottom: 18px; }
.pied__bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; max-width: 1440px; margin: 0 auto; padding: 22px var(--gouttiere) 30px; border-top: 1px solid var(--filet-clair); font-size: .82rem; color: var(--ivoire-pale); }
.pied__bas p { margin: 0; }
@media (max-width: 899px) { .pied__grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__grille { grid-template-columns: 1fr; } }

/* ---------- Révélations (seulement avec JS, jamais en mouvement réduit) ---------- */
.js .revele { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--lent), transform 1.3s var(--lent); }
.js .revele--vu { opacity: 1; transform: none; }
.revele-img { overflow: hidden; }
.js .revele-img { clip-path: inset(12% 0 12% 0); transition: clip-path 1.6s var(--lent); }
.js .revele-img img { transform: scale(1.12); transition: transform 2s var(--lent); }
.js .revele-img.revele--vu { clip-path: inset(0 0 0 0); }
.js .revele-img.revele--vu img { transform: none; }
.img-absente { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--nuit-3), #2E2A1E); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .revele, .js .revele-img { opacity: 1; transform: none; clip-path: none; }
  .js .revele-img img { transform: none; }
}

/* ---------- Pages service × ville ---------- */
.onglets { margin: 28px 0 4px; }
.onglets ul { display: inline-flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; border: 1px solid var(--filet-or); }
.onglets li + li { border-left: 1px solid var(--filet-or); }
.onglets a { display: block; padding: 11px 20px; text-decoration: none; letter-spacing: .04em; font-size: .95rem; color: var(--ivoire-doux); transition: background .4s var(--lent), color .3s; }
.onglets a:hover { color: var(--or-clair); background: rgba(198, 161, 91, .08); }
.onglets a[aria-current="page"] { background: var(--or); color: var(--nuit); }
@media (max-width: 599px) {
  .onglets ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .onglets li + li { border-left: 0; }
  .onglets li:nth-child(even) { border-left: 1px solid var(--filet-or); }
  .onglets li:nth-child(n+3) { border-top: 1px solid var(--filet-or); }
  .onglets a { text-align: center; }
}
.carte-locale--papier { background: var(--nuit); color: var(--ivoire); backdrop-filter: none; border-color: var(--nuit); }
@media (min-width: 901px) {
  .locale__grille--inverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .locale__grille--inverse > :first-child { order: 2; }
}
.villes-service__grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 36px 32px; }
.villes-service__dep h3 { font: 400 1.3rem/1.2 var(--titre); color: var(--or-clair); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--filet-or); }
.villes-service__dep ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.villes-service__dep a { text-decoration: none; color: var(--ivoire-doux); transition: color .3s; }
.villes-service__dep a:hover { color: var(--or-clair); }
@media (max-width: 1100px) { .villes-service__grille { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .villes-service__grille { grid-template-columns: 1fr 1fr; } }

/* ---------- Titres : mots sous cache ---------- */
.js .titre-mots.revele { opacity: 1; transform: none; }
.titre-mots .mot { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.titre-mots .mot__in { display: inline-block; transform: translateY(112%); transition: transform 1.15s var(--lent); transition-delay: calc(var(--i, 0) * 55ms); }
.titre-mots.revele--vu .mot__in { transform: none; }

/* ---------- En-têtes : léger recul de l'image ---------- */
.tete__image { will-change: transform; }
.tete--image .tete__image img { animation: tete-recul 2.8s var(--lent) both; }
@keyframes tete-recul { from { transform: scale(1.09); } }

/* ---------- Barre de lecture ---------- */
.progression { position: fixed; top: 0; left: 0; right: 0; z-index: 95; height: 2px; background: linear-gradient(90deg, var(--or-fonce), var(--or-clair)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progression { animation: progression linear both; animation-timeline: scroll(root); }
  @keyframes progression { to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) {
  .titre-mots .mot__in { transform: none; transition: none; }
  .tete--image .tete__image img { animation: none; }
}

/* ---------- Recette visuelle du 28/10 ---------- */
@supports (overflow: clip) { main { overflow-x: clip; } } /* les couches 3D de l'anatomie ne décalent plus la page entre 900 et 1280 px */
.hero__situation, .hero__lede { text-shadow: 0 1px 2px rgba(13, 23, 18, .85), 0 0 22px rgba(13, 23, 18, .8); }
.chapitre__bloc { position: relative; isolation: isolate; }
.chapitre__bloc::before { content: ""; position: absolute; inset: -14% -16%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(13, 23, 18, .74), rgba(13, 23, 18, 0)); }
@media (max-width: 1080px) and (min-width: 900px) {
  .entete__actions { display: flex; margin-left: auto; }
  .entete__tel { display: none; }
  .entete__menu { margin-left: 16px; }
}
.entete__menu path { transition: transform .45s var(--lent); transform-origin: 12px 12px; }
.entete__menu[aria-expanded="true"] .menu__l1 { transform: translateY(4px) rotate(45deg); }
.entete__menu[aria-expanded="true"] .menu__l2 { transform: translateY(-4px) rotate(-45deg); }
.pied__titre { line-height: 1.5; }
.zones__liste { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (min-width: 900px) { .zones__carte { position: sticky; top: calc(var(--entete) + 32px); } }
.champ--photos input[type="file"]::file-selector-button { font: 400 .92rem var(--texte); letter-spacing: .03em; padding: .7em 1.2em; margin-right: 1em; border: 1px solid var(--or); background: transparent; color: inherit; cursor: pointer; transition: background .3s, color .3s; }
.champ--photos input[type="file"]::file-selector-button:hover { background: var(--or); color: var(--nuit); }
.facultatif { opacity: .85; font-weight: 400; }
.liens-associes a { display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color .3s; }
.liens-associes a::after { content: ""; flex: none; width: 18px; height: 1px; background: var(--or-fonce); transition: width .4s var(--lent); }
.liens-associes a:hover::after { width: 34px; }

/* ---------- Grandes images des pages de service ---------- */
.figure-large { margin: 0 auto; max-width: 1100px; padding-block: clamp(8px, 2vw, 24px) clamp(48px, 6vw, 90px); }
.figure-large__cadre { aspect-ratio: 21 / 9; overflow: hidden; background: var(--nuit-2); }
.figure-large__cadre picture, .figure-large__cadre img { display: block; width: 100%; height: 100%; }
.figure-large__cadre img { object-fit: cover; }
.figure-large figcaption { margin-top: 14px; font-size: .92rem; color: var(--encre-douce); }
.figure-large figcaption span { opacity: .75; }
@media (max-width: 899px) { .figure-large__cadre { aspect-ratio: 4 / 3; } }
