/* ==========================================================================
   MARCO BOIS — feuille de style
   Direction artistique : plein cadre, images bord à bord, bandes de couleur.
   Références de travail : Jan Hendzel Studio, Sebastian Cox, Benchmark.
   Palette dérivée du logo du client (#8C756A).
   ========================================================================== */

/* --- 1. Jetons ----------------------------------------------------------- */
:root {
  --void:     #17140F;   /* encre : texte et voiles sur image */
  --void-2:   #E3D9CA;   /* fond d'attente des images */
  --bone:     #EFE9DE;   /* papier : fond du site */
  --bone-lt:  #F7F3EC;   /* bande claire */
  --sand:     #DDCDBE;   /* bande sable, ponctuation douce */
  --clay:     #8C756A;   /* accent, couleur du logo */
  --clay-lt:  #7A6254;   /* accent : 4,7:1 sur le papier */
  --clay-dk:  #6B564B;
  /* couleur du logo, éclaircie de 8 % pour atteindre 5,6:1 avec le texte encre
     (#8C756A à l'identique plafonne à 4,3:1, sous le seuil de lisibilité) */
  --action:   #A08A7E;

  --fg: var(--void);
  --bg: var(--bone);
  --line: rgba(23, 20, 15, .16);
  --muted: rgba(23, 20, 15, .62);

  /* contextes restés sombres : voiles sur photo, visionneuse */
  --on-dark: #EFE9DE;
  --on-dark-soft: #BCA396;

  --ff-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --ff-text:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ff-serif:   "Instrument Serif", Georgia, "Times New Roman", serif;
  --ff-mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.15rem, 3.4vw, 3.75rem);
  --gap: clamp(.4rem, .8vw, .9rem);
  /* place réservée au bouton WhatsApp flottant, en bas à droite */
  --wa-space: 4.5rem;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e: cubic-bezier(.4, .05, .1, 1);
}

/* --- 2. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--ff-text);
  font-size: clamp(.95rem, .35vw + .86rem, 1.0625rem);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grain — « imperfection stratégique », très léger */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 940;
  pointer-events: none; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
/* l'aperçu flou est posé en fond de la balise ; ces longhands évitent
   qu'un raccourci ne l'efface */
img { height: auto; background-color: var(--void-2); background-position: center;
      background-size: cover; background-repeat: no-repeat; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--clay); color: var(--bone); }
:focus-visible { outline: 2px solid var(--clay-lt); outline-offset: 4px; }

/* --- 3. Typographie ------------------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: .92; letter-spacing: -.03em; }

.mega {
  font-size: clamp(3.2rem, 13.5vw, 15rem);
  line-height: .82; letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: balance;
}
.xl { font-size: clamp(2.4rem, 7.4vw, 7.5rem); line-height: .88; letter-spacing: -.04em; }
.lg { font-size: clamp(1.9rem, 4.2vw, 4rem); line-height: .95; letter-spacing: -.035em; }
.md { font-size: clamp(1.3rem, 2.1vw, 2.1rem); line-height: 1.02; letter-spacing: -.025em; }

.kicker {
  font-family: var(--ff-mono);
  font-size: .6875rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay-lt);
}
.serif { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.lede {
  font-size: clamp(1.05rem, .9vw + .8rem, 1.45rem);
  line-height: 1.42; color: var(--muted);
  max-width: 40ch; text-wrap: pretty;
}
.body-col { max-width: 62ch; color: var(--muted); }
.body-col p + p { margin-top: 1em; }

/* --- 4. Structure -------------------------------------------------------- */
.wrap { padding-inline: var(--pad); }
.sec { padding-block: clamp(4rem, 10vw, 9rem); }
.sec--sm { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* colonne de texte décalée, jamais centrée par défaut */
.offset { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2.5rem); align-items: start; }
.offset > .a { grid-column: 1 / 6; }
.offset > .b { grid-column: 7 / 13; }
.offset > .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .offset > * { grid-column: 1 / -1 !important; } }

/* --- 4 bis. Îlots sombres -------------------------------------------------
   Les en-têtes plein cadre restent sombres : le texte y est posé sur une photo,
   pas sur la page. Les jetons de couleur sont inversés localement, ce qui suffit
   à basculer tout ce qu'ils contiennent.
   ------------------------------------------------------------------------- */
.wall, .phero, .jhero {
  color: var(--on-dark);
  --fg: var(--on-dark);
  --muted: rgba(239, 233, 222, .7);
  --line: rgba(239, 233, 222, .22);
  --clay-lt: var(--on-dark-soft);
}
/* sur fond sombre, la pastille pleine s'inverse */
.wall .pill--solid:not(.pill--action), .phero .pill--solid:not(.pill--action), .jhero .pill--solid:not(.pill--action) {
  background: var(--bone); color: var(--void); border-color: var(--bone);
}
.wall .pill--solid::before, .phero .pill--solid::before, .jhero .pill--solid::before { background: var(--clay); }
.wall .pill--solid:hover, .phero .pill--solid:hover, .jhero .pill--solid:hover { color: var(--void); }

/* --- 5. Barre haute ------------------------------------------------------ */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 690;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--pad);
  transition: background .45s var(--e), backdrop-filter .45s var(--e), padding .45s var(--e);
}
.top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 220%;
  background: linear-gradient(to bottom, rgba(239,233,222,.96) 0%, rgba(239,233,222,.72) 42%, transparent 100%);
  pointer-events: none; z-index: -1; transition: opacity .45s var(--e);
}
.top--solid::before { opacity: 0; }

/* au-dessus d'un en-tête sombre, la barre passe en clair tant qu'elle n'est
   pas devenue opaque ; dès qu'on quitte le hero elle reprend l'encre */
.has-hero .top:not(.top--solid)::before {
  background: linear-gradient(to bottom, rgba(14,13,11,.72) 0%, rgba(14,13,11,.38) 45%, transparent 100%);
}
.has-hero .top:not(.top--solid) {
  color: var(--on-dark);
  --fg: var(--on-dark);
  --muted: rgba(239, 233, 222, .74);
  --line: rgba(239, 233, 222, .3);
}
.has-hero .top:not(.top--solid) .pill { border-color: rgba(239, 233, 222, .42); color: var(--on-dark); }
.has-hero .top:not(.top--solid) .pill::before { background: var(--bone); }
.has-hero .top:not(.top--solid) .pill:hover { color: var(--void); border-color: var(--bone); }
.has-hero .top:not(.top--solid) .burger { border-color: rgba(239, 233, 222, .35); }
.has-hero .top:not(.top--solid) .burger i { background: var(--on-dark); }
.top--solid { background: color-mix(in srgb, var(--bone) 86%, transparent); backdrop-filter: blur(16px); padding-block: .7rem; }
.top__brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.top__brand img { width: 38px; height: 38px; border-radius: 10px; transition: transform .5s var(--e-out), border-radius .5s var(--e-out); }
.top__brand:hover img { transform: scale(1.06); border-radius: 50%; }
.top__brand b { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; }
.top--solid .top__brand img { width: 32px; height: 32px; }
.top__right { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); }
@media (max-width: 420px) { .top__brand b { display: none; } }

.menu { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 2rem); }
.menu a {
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  position: relative; padding-block: .3rem; color: var(--muted); transition: color .3s;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--fg); }
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--clay-lt); transition: width .4s var(--e-out);
}
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }
@media (max-width: 860px) { .menu { display: none; } }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem 1.15rem; border-radius: 100px; border: 1px solid rgba(23,20,15,.3);
  background: transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: color .4s var(--e), border-color .4s var(--e);
}
.pill i { position: relative; z-index: 1; font-style: normal; }
.pill::before { content: ""; position: absolute; inset: 0; background: var(--void); transform: translateY(102%); transition: transform .5s var(--e-out); }
.pill:hover { color: var(--bone); border-color: var(--void); }
.pill:hover::before { transform: translateY(0); }
.pill--solid { background: var(--void); border-color: var(--void); color: var(--bone); }
.pill--solid::before { background: var(--clay); }
.pill--ink { border-color: rgba(23,20,15,.3); color: var(--void); }

/* appel à l'action principal : ambre, plus grand, avec une flèche */
.pill--action {
  background: var(--action); border-color: var(--action); color: var(--void);
  font-size: .78rem; letter-spacing: .13em; padding: 1.05rem 1.85rem;
  box-shadow: 0 .4rem 1.4rem rgba(160, 138, 126, .38);
}
.pill--action::before { background: var(--bone); }
.pill--action:hover { color: var(--void); border-color: var(--bone); box-shadow: 0 .6rem 1.8rem rgba(160, 138, 126, .5); }
.pill--action i::after { content: " →"; }
@media (max-width: 520px) { .pill--action { font-size: .72rem; padding: .95rem 1.5rem; } }
.pill--ink::before { background: var(--void); }
.pill--ink:hover { color: var(--bone); border-color: var(--void); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: none; position: relative; cursor: pointer; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--fg); transition: transform .4s var(--e); }
.burger i:nth-child(1) { top: 17px; }
.burger i:nth-child(2) { bottom: 17px; }
body.nav-open .burger i:nth-child(1) { transform: translateY(4px) rotate(40deg); }
body.nav-open .burger i:nth-child(2) { transform: translateY(-4px) rotate(-40deg); }
@media (max-width: 860px) { .burger { display: block; } .top__right > .pill { display: none; } }

.sheet {
  position: fixed; inset: 0; z-index: 680; background: var(--bone);
  padding: 6rem var(--pad) 2rem; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .75s var(--e-out), visibility .75s;
}
body.nav-open .sheet { clip-path: inset(0); visibility: visible; }
.sheet a.big {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--ff-display); font-size: clamp(2rem, 9vw, 3.5rem); line-height: 1.15;
  border-bottom: 1px solid var(--line); padding-block: .5rem; letter-spacing: -.03em;
}
.sheet a.big span { font-family: var(--ff-mono); font-size: .7rem; color: var(--clay-lt); letter-spacing: .1em; }

/* --- 7. Mur d'images (accueil) ------------------------------------------ */
.wall { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--void); }
.wall__grid { position: absolute; inset: -14vh 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); }
.wall__col { display: grid; grid-auto-rows: clamp(190px, 23vw, 340px); gap: var(--gap); animation: rollUp 60s linear infinite; will-change: transform; }
.wall__col:nth-child(2) { animation-duration: 78s; animation-direction: reverse; }
.wall__col:nth-child(3) { animation-duration: 66s; }
.wall__col:nth-child(4) { animation-duration: 86s; animation-direction: reverse; }
.wall__col:nth-child(5) { animation-duration: 72s; }
.wall__col img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1) brightness(.99); }
@keyframes rollUp { to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .wall__col { animation: none; } }

.wall__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(14,13,11,.9) 0%, rgba(14,13,11,.74) 32%, rgba(14,13,11,.26) 62%, rgba(14,13,11,.06) 100%),
    linear-gradient(to bottom, rgba(14,13,11,.72) 0%, rgba(14,13,11,.04) 24%, rgba(14,13,11,.08) 62%, rgba(14,13,11,.88) 100%);
}
.wall__head {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem var(--pad); pointer-events: none;
}
.wall__head > * { pointer-events: auto; }
.wall__title { max-width: 14ch; }
.wall__title em { font-family: var(--ff-serif); font-style: italic; color: var(--clay-lt); letter-spacing: -.01em; }
.wall__meta {
  position: absolute; left: var(--pad); right: calc(var(--pad) + var(--wa-space)); bottom: clamp(1.25rem, 3vw, 2.5rem); z-index: 3;
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.wall__meta dl { display: flex; gap: clamp(1.25rem, 3vw, 3rem); flex-wrap: wrap; }
/* sans les trois mentions, le bouton garde sa place, a droite du filet */
.wall__meta--seul { justify-content: flex-end; }
.wall__meta dt { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-lt); }
.wall__meta dd { font-family: var(--ff-display); font-size: clamp(1rem, 1.3vw, 1.4rem); letter-spacing: -.02em; }
@media (max-width: 900px) {
  .wall__grid { grid-template-columns: repeat(3, 1fr); }
  .wall__col:nth-child(n+4) { display: none; }
  .wall__head { padding-block: 6rem 9rem; }
  /* en colonne étroite le texte traverse toute la largeur : le voile devient
     franc derrière le bloc de titre, et laisse respirer au-dessus et en dessous */
  .wall__veil {
    background: linear-gradient(to bottom,
      rgba(14,13,11,.86) 0%,
      rgba(14,13,11,.1) 13%,
      rgba(14,13,11,.8) 26%,
      rgba(14,13,11,.86) 60%,
      rgba(14,13,11,.14) 74%,
      rgba(14,13,11,.9) 100%);
  }
}

/* --- 8. Bandes de couleur ------------------------------------------------ */
.band { padding: clamp(3rem, 8vw, 7rem) var(--pad); }
/* deux tons plus clairs que le papier, pour ponctuer sans casser la lumière */
.band--clay { background: var(--sand); --muted: rgba(23,20,15,.66); --line: rgba(23,20,15,.2); --clay-lt: #5F4C42; }
.band--bone { background: var(--bone-lt); --muted: rgba(23,20,15,.64); --line: rgba(23,20,15,.14); --clay-lt: var(--clay-dk); }

/* --- 9. Carrousel des familles de créations ------------------------------
   Mise en page d'après Ferm Living. Affordances d'après les recommandations
   de Smashing Magazine / Nielsen Norman Group / Baymard :
   visibilité partielle de la tuile suivante, compteur chiffré, mention d'aide
   adaptée au type de pointeur, flèches au-dessus (dessous en mobile) avec état
   désactivé aux extrémités, glisser-déposer, navigation clavier, pas de
   défilement automatique.
   ------------------------------------------------------------------------ */
.chaps { border-top: 1px solid var(--line); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.chaps__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad) clamp(1.25rem, 2.5vw, 1.75rem);
}
.chaps__head a { text-decoration: underline; text-underline-offset: 4px; }

.car { display: grid; grid-template-areas: "ctrl" "rail"; gap: clamp(1rem, 2vw, 1.5rem); position: relative; }

/* --- barre de contrôle --- */
.car__ctrl {
  grid-area: ctrl;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding-inline: var(--pad);
}
.car__meta { display: flex; align-items: baseline; gap: clamp(.9rem, 2vw, 1.5rem); flex-wrap: wrap; }
.car__count { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.car__count b { color: var(--fg); font-weight: 400; }
.car__hint {
  font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay-lt); white-space: nowrap;
  transition: opacity .5s var(--e);
}
/* la formulation suit le type de pointeur : souris ou tactile */
.car__hint .touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .car__hint .mouse { display: none; }
  .car__hint .touch { display: inline; }
}
.car__hint::before { content: "↔"; margin-right: .4rem; display: inline-block; animation: nudge 2.6s var(--e) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateX(0); } 80% { transform: translateX(4px); } 90% { transform: translateX(-2px); } }
.car.is-used .car__hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .car__hint::before { animation: none; } }

.car__btns { display: flex; gap: .5rem; }
.car__btns button {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--fg); cursor: pointer; font-size: .95rem;
  display: grid; place-items: center;
  transition: background .35s var(--e), color .35s var(--e), border-color .35s var(--e), opacity .35s;
}
.car__btns button:hover:not(:disabled) { background: var(--void); color: var(--bone); border-color: var(--void); }
.car__btns button:disabled { opacity: .28; cursor: not-allowed; }

/* --- rail --- */
.car__rail {
  grid-area: rail;
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--pad);
  /* sans cette ligne, l'accrochage colle la première tuile au bord de l'écran
     et le rembourrage de gauche disparaît */
  scroll-padding-inline-start: var(--pad);
  /* la marge de fin est plus courte que la marge de départ : la tuile suivante
     reste volontairement coupée par le bord de l'écran (visibilité partielle) */
  padding-right: clamp(3rem, 12vw, 11rem);
  scrollbar-width: none; cursor: grab;
}
.car__rail::-webkit-scrollbar { display: none; }
.car__rail.is-drag { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.car__rail:focus-visible { outline: 2px solid var(--clay-lt); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .car__rail { scroll-behavior: auto; } }

.car__t {
  position: relative; flex: none;
  width: clamp(238px, 26vw, 420px);
  scroll-snap-align: start;
}
.car__im { display: block; overflow: hidden; aspect-ratio: 3/4; background: var(--void-2); }
.car__im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out); }
.car__t:hover .car__im img { transform: scale(1.06); }
.car__t::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 58%;
  /* voile volontairement sombre : il est posé sur la photo, pas sur la page,
     et garantit la lisibilité du libellé quelle que soit l'image */
  background: linear-gradient(to top, rgba(14,13,11,.9) 0%, rgba(14,13,11,.25) 55%, transparent 100%);
  pointer-events: none;
}
.car__lab {
  position: absolute; left: 1.15rem; right: 1.15rem; bottom: 1.1rem; z-index: 2;
  display: flex; flex-direction: column; gap: .2rem;
}
.car__lab { color: var(--on-dark); }
.car__lab em { font-family: var(--ff-serif); font-style: italic; font-size: clamp(1.25rem, 1.8vw, 1.85rem); line-height: 1.1; }
.car__lab span { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .08em; color: var(--on-dark-soft); }

/* dernière tuile : sortie vers le catalogue complet */
.car__t--end .car__im { display: grid; place-items: center; background: var(--void-2); border: 1px solid var(--line); }
.car__t--end::after { display: none; }
.car__end { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: 1.5rem; }
.car__end b { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.3rem, 1.9vw, 1.9rem); letter-spacing: -.03em; }
.car__end i { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; transition: background .4s var(--e), color .4s var(--e), transform .5s var(--e-out); }
.car__t--end:hover i { background: var(--void); color: var(--bone); transform: rotate(-45deg); }

/* voile de bord : renforce le signal « ça continue » */
.car__edge {
  position: absolute; top: 0; bottom: 0; right: 0; width: clamp(2.5rem, 7vw, 7rem);
  pointer-events: none; z-index: 3;
  background: linear-gradient(to left, var(--bone) 8%, transparent 100%);
  opacity: 1; transition: opacity .5s var(--e);
}
.car.at-end .car__edge { opacity: 0; }

@media (max-width: 760px) {
  .car { grid-template-areas: "rail" "ctrl"; }
  /* en petite largeur, la tuile coupée et le balayage suffisent :
     le compteur n'apporte rien et encombre la ligne */
  .car__count { display: none; }
  .car__t { width: clamp(210px, 62vw, 300px); }
}

/* --- 10. Figures et légendes -------------------------------------------- */
figure { position: relative; }
.fig { overflow: hidden; background: var(--void-2); }
.fig img { width: 100%; display: block; transition: transform 1.3s var(--e-out); }
.fig--crop img { height: 100%; object-fit: cover; }
.zoom:hover img { transform: scale(1.05); }
.cap { margin-top: .6rem; display: flex; flex-direction: column; gap: .05rem; }
.cap em { font-family: var(--ff-serif); font-style: italic; font-size: 1.02rem; line-height: 1.25; color: var(--fg); }
.cap span { font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--clay-lt); }

.full-shot { width: 100%; overflow: hidden; }
.full-shot img { width: 100%; height: clamp(320px, 68vh, 780px); object-fit: cover; }

/* --- 11. Grille décalée -------------------------------------------------- */
.stagger { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 2.75rem) clamp(.75rem, 1.6vw, 1.75rem); }
.stagger > * { grid-column: span 4; }
.stagger > *:nth-child(6n+1) { grid-column: span 5; }
.stagger > *:nth-child(6n+2) { grid-column: span 4; margin-top: clamp(2rem, 6vw, 6rem); }
.stagger > *:nth-child(6n+3) { grid-column: span 3; margin-top: clamp(1rem, 2vw, 2rem); }
.stagger > *:nth-child(6n+4) { grid-column: span 3; margin-top: clamp(1rem, 3vw, 3rem); }
.stagger > *:nth-child(6n+5) { grid-column: span 5; }
.stagger > *:nth-child(6n+6) { grid-column: span 4; margin-top: clamp(2rem, 5vw, 5rem); }
@media (max-width: 900px) {
  .stagger > *, .stagger > *:nth-child(6n+1), .stagger > *:nth-child(6n+2),
  .stagger > *:nth-child(6n+3), .stagger > *:nth-child(6n+4),
  .stagger > *:nth-child(6n+5), .stagger > *:nth-child(6n+6) { grid-column: span 6; margin-top: 0; }
  .stagger > *:nth-child(2n) { margin-top: clamp(1.5rem, 6vw, 3rem); }
}

/* --- 12. Bandeau d'images défilant -------------------------------------- */
.reel { overflow: hidden; border-block: 1px solid var(--line); }
.reel__row { display: flex; gap: var(--gap); width: max-content; animation: slideX 70s linear infinite; }
.reel:hover .reel__row { animation-play-state: paused; }
.reel__row figure { flex: none; }
.reel__row img { height: clamp(210px, 25vw, 370px); width: auto; max-width: none; object-fit: cover; }
@keyframes slideX { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .reel__row { animation: none; } }

/* --- 13. Fiches produit -------------------------------------------------- */
.prod { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 6rem); }
.prod__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.2vw, 2.5rem); align-items: start; }
.prod__media { grid-column: 1 / 9; grid-row: 1; display: grid; gap: var(--gap); align-content: start; }
.prod__side { grid-column: 10 / 13; grid-row: 1; position: sticky; top: 6.5rem; }
.prod--flip .prod__media { grid-column: 5 / 13; order: 2; }
.prod--flip .prod__side { grid-column: 1 / 4; order: 1; }
.prod__media--1 { grid-template-columns: 1fr; }
.prod__media--2 { grid-template-columns: repeat(2, 1fr); }
.prod__media--3 { grid-template-columns: repeat(3, 1fr); }
.prod__media--4 { grid-template-columns: repeat(2, 1fr); }
.prod__media .fig { aspect-ratio: 3/4; }
.prod__media--1 .fig { aspect-ratio: 4/3; }
.prod__media .fig img { height: 100%; object-fit: cover; }
.prod__no { font-family: var(--ff-mono); font-size: .68rem; color: var(--clay-lt); letter-spacing: .1em; }
.prod__name { font-family: var(--ff-display); font-size: clamp(1.6rem, 2.6vw, 2.6rem); letter-spacing: -.035em; margin: .5rem 0 .6rem; }
.prod__price { font-family: var(--ff-display); font-size: clamp(2rem, 3.2vw, 3.2rem); letter-spacing: -.045em; color: var(--clay-lt); line-height: 1; }
.prod__price small { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; display: block; color: var(--muted); margin-bottom: .3rem; }
.prod__desc { color: var(--muted); font-size: .94rem; margin-top: .8rem; }
.rows { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; gap: 1rem; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.rows li span { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.rows li b { font-family: var(--ff-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -.02em; }
@media (max-width: 1000px) {
  .prod__grid { grid-template-columns: 1fr; }
  /* en colonne unique, la creation se voit avant son prix : les photos
     passent en premier. La mise en page large reste inchangee. */
  .prod__media, .prod--flip .prod__media { grid-column: 1 / -1; grid-row: auto; order: 0; }
  .prod__side, .prod--flip .prod__side { grid-column: 1 / -1; grid-row: auto; order: 1; position: static; margin-top: 1.5rem; }
  .prod__media--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .prod__media--2, .prod__media--3, .prod__media--4 { grid-template-columns: 1fr 1fr; } }

/* --- 14. Tableaux tarifaires -------------------------------------------- */
.tar { border-top: 1px solid currentColor; }
.tar__h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .9rem .5rem; }
.tar table { width: 100%; border-collapse: collapse; }
.tar th, .tar td { padding: .7rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.tar th { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--clay-lt); font-weight: 400; }
.tar td { font-size: .92rem; color: var(--muted); }
.tar td:not(:first-child), .tar th:not(:first-child) { text-align: right; }
.tar td:not(:first-child) { font-family: var(--ff-display); font-size: 1.15rem; color: var(--fg); letter-spacing: -.02em; white-space: nowrap; }
.note { font-family: var(--ff-serif); font-style: italic; font-size: 1rem; color: var(--muted); margin-top: .8rem; }

/* --- 15. Chiffres clés --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: clamp(1.1rem, 2.4vw, 2rem) clamp(.75rem, 1.5vw, 1.5rem); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-family: var(--ff-display); font-size: clamp(1.9rem, 3.6vw, 3.4rem); letter-spacing: -.045em; line-height: 1; }
.stats dd { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-lt); margin-top: .5rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div:nth-child(2n) { border-right: 0; } }

/* --- 16. En-tête de page intérieure ------------------------------------- */
.phero { position: relative; height: clamp(420px, 72vh, 800px); overflow: hidden; display: flex; align-items: flex-end; }
.phero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 4%, rgba(14,13,11,.34) 48%, rgba(14,13,11,.6) 100%); }
.phero__in { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(1.75rem, 4vw, 3rem); }
.crumb { display: flex; gap: .55rem; font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-lt); margin-bottom: 1rem; }

/* --- 17. Formulaire ------------------------------------------------------ */
.form { display: grid; gap: 1.4rem; }
.f { position: relative; }
.f label { position: absolute; left: 0; top: .85rem; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-lt); pointer-events: none; transform-origin: left top; transition: transform .35s var(--e); }
.f input, .f textarea, .f select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .85rem 0 .65rem; border-radius: 0; font-size: 1rem; }
.f select { padding-top: 1.5rem; }
.f textarea { resize: vertical; min-height: 7.5rem; }
.f input:focus, .f textarea:focus, .f select:focus { outline: none; border-bottom-color: var(--clay-lt); }
.f input:focus + label, .f textarea:focus + label,
.f input:not(:placeholder-shown) + label, .f textarea:not(:placeholder-shown) + label,
.f select + label { transform: translateY(-1.1rem) scale(.85); }
.f option { background: var(--bone); color: var(--void); }
.chk { display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; color: var(--muted); }
.chk input { width: 1rem; height: 1rem; accent-color: var(--clay); flex: none; margin-top: .25rem; }

/* --- 17 quinquies. Retours du formulaire --------------------------------- */
.alerte { border: 1px solid var(--line); border-left: 2px solid var(--clay);
  padding: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.alerte--ko { border-left-color: #B4442A; background: color-mix(in srgb, #B4442A 6%, transparent); }
.alerte--ok { border-left-color: var(--clay); background: color-mix(in srgb, var(--clay) 7%, transparent); }
.alerte ul { margin-top: .6rem; display: grid; gap: .35rem; }
.alerte li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .92rem; }
.alerte ul li::before { content: ""; position: absolute; left: 0; top: .72em;
  width: .6rem; height: 1px; background: #B4442A; }
.alerte .rows li::before { display: none; }
.alerte .rows li { padding-left: 0; }

/* champ piege : invisible pour l'humain, rempli par les robots */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 18. Encart « à compléter » ----------------------------------------- */
.todo { border: 1px dashed var(--clay); padding: .95rem 1.1rem; font-size: .82rem; color: var(--muted); }
.todo b { color: var(--fg); font-weight: 500; }

/* note adressée au client, visible pendant la phase de validation */
.note-agence {
  border: 1px solid var(--line); border-left: 2px solid var(--clay);
  background: color-mix(in srgb, var(--clay) 7%, transparent);
  padding: clamp(1rem, 2vw, 1.5rem); display: flex; flex-direction: column; gap: .5rem;
  align-self: start;
}
.note-agence b { font-weight: 500; color: var(--fg); }
.note-agence p { font-size: .9rem; color: var(--muted); max-width: 52ch; }

/* en-tête de section : titre à gauche, mention à droite — même motif que
   « Les créations » et « Dans l'atelier » */
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
/* variante empilée : mention au-dessus du titre, tout à la marge de gauche */
.sec-head--stack { display: block; margin-bottom: clamp(2rem, 4.5vw, 3.5rem); }

/* --- 17 bis. FAQ ----------------------------------------------------------
   Accordéon à gauche, photo fixe à droite qui reste au niveau des questions.
   -------------------------------------------------------------------------- */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

.faq { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__i summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: clamp(.95rem, 2vw, 1.45rem);
  transition: color .35s var(--e);
}
.faq__i summary:hover { color: var(--clay-dk); }
.faq__q {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.6rem); line-height: 1.12; letter-spacing: -.025em;
}
.faq__a { padding-bottom: 1.4rem; color: var(--muted); max-width: 62ch; }
.faq__i[open] .faq__a { animation: faqOpen .5s var(--e-out); }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .faq__i[open] .faq__a { animation: none; } }

/* signe + qui devient − à l'ouverture */
.faq__s { position: relative; width: 1.05rem; height: 1.05rem; flex: none; }
.faq__s::before, .faq__s::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px;
  background: currentColor; transition: transform .45s var(--e-out);
}
.faq__s::after { transform: rotate(90deg); }
.faq__i[open] .faq__s::after { transform: rotate(0); }

.faq__view { position: sticky; top: 6.5rem; overflow: hidden; aspect-ratio: 4/5; }
.faq__view img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__view { position: static; aspect-ratio: 16/10; order: -1; }
}

/* --- 17 ter. Mur social --------------------------------------------------- */
.social { position: relative; }
.social__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.social__t { display: block; overflow: hidden; aspect-ratio: 1; }
.social__t img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--e-out);
}
.social__t:hover img { transform: scale(1.06); }
.social__over {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 1rem; padding: var(--pad); pointer-events: none;
  background: radial-gradient(56% 58% at 50% 50%, rgba(239,233,222,.95) 0%, rgba(239,233,222,.74) 52%, rgba(239,233,222,.26) 100%);
}
.social__over > * { pointer-events: auto; }
.social__links { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
@media (max-width: 860px) {
  .social__grid { grid-template-columns: repeat(3, 1fr); }
  .social__t:nth-child(n+10) { display: none; }
}

/* --- 17 quater. Aperçu du journal sur l'accueil ---------------------------
   Un article en vedette à gauche, les suivants en liste compacte à droite.
   -------------------------------------------------------------------------- */
.jnl { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }

.jnl__meta { font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-lt); }
.jnl__go {
  font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay-lt); border-bottom: 1px solid var(--line); padding-bottom: .3rem;
  align-self: flex-start; margin-top: .35rem;
  transition: color .35s var(--e), border-color .35s var(--e);
}
a:hover > .jnl__go { color: var(--fg); border-color: var(--fg); }

.jnl__hero { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.jnl__him { display: block; width: 100%; overflow: hidden; aspect-ratio: 16/10; margin-bottom: .5rem; }
.jnl__him img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--e-out); }
.jnl__hero:hover .jnl__him img { transform: scale(1.04); }
.jnl__ht {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -.04em;
}
.jnl__hs { color: var(--muted); max-width: 52ch; }

.jnl__list { display: flex; flex-direction: column; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.jnl__r {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.jnl__th { display: block; overflow: hidden; aspect-ratio: 1; }
.jnl__th img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--e-out); }
.jnl__r:hover .jnl__th img { transform: scale(1.07); }
.jnl__rb { display: flex; flex-direction: column; gap: .25rem; }
.jnl__rt {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1rem, 1.3vw, 1.25rem); line-height: 1.12; letter-spacing: -.02em;
  transition: color .35s var(--e);
}
.jnl__r:hover .jnl__rt { color: var(--clay-dk); }
.jnl__list .pill { align-self: flex-start; }

@media (max-width: 900px) { .jnl { grid-template-columns: 1fr; } }

/* --- 17 sexies. Mur des compagnons ---------------------------------------
   Grille carrée où les photos envoyées par les clients alternent avec des
   plaques typographiques reprenant les prénoms gravés sur les pièces.
   -------------------------------------------------------------------------- */
.mur { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.mur__t { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--void-2); }
.mur__t img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out); }
.mur__t:hover img { transform: scale(1.06); }
.mur__t::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 52%;
  background: linear-gradient(to top, rgba(14,13,11,.82) 0%, rgba(14,13,11,.15) 60%, transparent 100%);
  opacity: 0; transition: opacity .5s var(--e); pointer-events: none;
}
.mur__t:hover::after { opacity: 1; }
.mur__lab {
  position: absolute; left: 1rem; right: 1rem; bottom: .9rem; z-index: 2;
  color: var(--on-dark); display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s var(--e), transform .5s var(--e-out);
}
.mur__t:hover .mur__lab { opacity: 1; transform: none; }
.mur__lab b { font-family: var(--ff-serif); font-style: italic; font-weight: 400; font-size: 1.15rem; }
.mur__lab span { font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--on-dark-soft); }

/* plaque gravée : le geste du produit, transposé en typographie */
.mur__plaque {
  aspect-ratio: 1; display: grid; justify-items: center; align-content: center; gap: .75rem;
  background: var(--sand); padding: clamp(.75rem, 2vw, 1.5rem); text-align: center;
}
.mur__plaque em {
  font-family: var(--ff-display); font-style: normal; font-weight: 500;
  font-size: clamp(1.1rem, 2.6vw, 2.1rem); letter-spacing: -.02em; color: var(--void);
  border: 2px solid var(--clay-dk); border-radius: 100px;
  padding: .5rem clamp(.8rem, 2vw, 1.6rem); line-height: 1.1;
  box-shadow: inset 0 0 0 1px var(--sand);
}
.mur__plaque span { font-family: var(--ff-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-dk); }

/* dernière case : l'invitation */
.mur__fin { background: var(--void); color: var(--on-dark); --line: rgba(239,233,222,.3); }
.mur__fin em { border-color: var(--on-dark-soft); color: var(--on-dark); box-shadow: none; }
.mur__fin span { color: var(--on-dark-soft); }

@media (max-width: 900px) { .mur { grid-template-columns: repeat(2, 1fr); } }

/* --- 17 septies. Où nous trouver ----------------------------------------- */
.lieux { border-top: 1px solid var(--line); }
.lieu {
  display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: clamp(1.25rem, 2.8vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.lieu__no { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .12em; color: var(--clay-lt); }
.lieu__nom {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.04em;
  transition: transform .6s var(--e-out);
}
a.lieu:hover .lieu__nom { transform: translateX(.5rem); }
.lieu__ou { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .08em; color: var(--clay-lt); margin-top: .5rem; display: block; }
.lieu__tag {
  font-family: var(--ff-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 100px; padding: .45rem .9rem; white-space: nowrap; color: var(--clay-lt);
}
.lieu--venir { opacity: .72; }
.lieu--venir .lieu__nom { font-size: clamp(1.2rem, 2.2vw, 1.9rem); color: var(--muted); }
.lieu--venir .lieu__tag { border-style: dashed; border-color: var(--clay); }
@media (max-width: 720px) {
  .lieu { grid-template-columns: 2.5rem 1fr; }
  .lieu__tag { grid-column: 2; justify-self: start; margin-top: .6rem; }
}

/* --- 18 bis. Journal ------------------------------------------------------
   Index en cartes, article en colonne étroite avec sommaire collant,
   barre de progression de lecture, exergues et images pleine largeur.
   -------------------------------------------------------------------------- */

/* index */
.jlist { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.jcard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.jcard:nth-child(even) .jcard__im { order: 2; }
.jcard__im { display: block; overflow: hidden; aspect-ratio: 4/3; }
.jcard__im img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--e-out); }
.jcard:hover .jcard__im img { transform: scale(1.05); }
.jcard__body { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }
.jcard__meta { display: flex; gap: 1rem; flex-wrap: wrap; }
.jcard__t { font-family: var(--ff-display); font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 3.1rem); line-height: .98; letter-spacing: -.035em; }
.jcard__s { color: var(--muted); max-width: 46ch; }
.jcard__go { font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--clay-lt); border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin-top: .5rem; transition: color .35s, border-color .35s; }
.jcard:hover .jcard__go { color: var(--fg); border-color: var(--fg); }
@media (max-width: 860px) {
  .jcard, .jcard:nth-child(even) { grid-template-columns: 1fr; }
  .jcard:nth-child(even) .jcard__im { order: 0; }
}

/* barre de progression de lecture */
.jprog { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 700; background: transparent; }
.jprog span { display: block; height: 100%; width: 0; background: var(--clay-lt); transition: width .1s linear; }

/* en-tête d'article */
.jhero { position: relative; height: clamp(440px, 78vh, 860px); overflow: hidden; display: flex; align-items: flex-end; }
.jhero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.jhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--void) 4%, rgba(14,13,11,.34) 50%, rgba(14,13,11,.64) 100%); }
.jhero__in { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(1.75rem, 4vw, 3rem); }
/* la limite est exprimée dans la taille du titre lui-même, pas dans celle du bloc */
.jhero__in h1 { max-width: 15ch; }
.jhero__meta { max-width: 60rem; }
.jhero__meta { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--line); padding-top: .9rem; }

/* corps */
.jwrap { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(3rem, 7vw, 6rem); max-width: 1400px; }
.jtoc { position: sticky; top: 6.5rem; align-self: start; display: flex; flex-direction: column; gap: .6rem; }
.jtoc nav { display: flex; flex-direction: column; gap: .1rem; margin-top: .5rem; border-left: 1px solid var(--line); }
.jtoc nav a { font-size: .86rem; color: var(--muted); padding: .4rem 0 .4rem .9rem; border-left: 2px solid transparent; margin-left: -1px; transition: color .3s, border-color .3s; }
.jtoc nav a:hover, .jtoc nav a.on { color: var(--fg); border-left-color: var(--clay-lt); }
.jtoc__sep { margin-top: 1.5rem; }
.jshare button { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 100px; padding: .55rem .95rem; cursor: pointer; transition: .3s; }
.jshare button:hover { background: var(--void); color: var(--bone); border-color: var(--void); }
.jshare button.done { color: var(--clay-lt); border-color: var(--clay-lt); }

.jb { max-width: 68ch; font-size: clamp(1rem, .3vw + .95rem, 1.125rem); line-height: 1.72; color: var(--muted); }
.jb > * + * { margin-top: 1.15em; }
.jb__lede { font-family: var(--ff-text); font-size: clamp(1.15rem, 1vw + .85rem, 1.5rem); line-height: 1.45; color: var(--fg); }
.jb__h { font-size: clamp(1.5rem, 2.4vw, 2.4rem); letter-spacing: -.035em; color: var(--fg); margin-top: 2.2em; scroll-margin-top: 7rem; }
.jb__h + p { margin-top: .9em; }
.jb strong, .jb b { color: var(--fg); font-weight: 500; }
.jb__ul { display: grid; gap: .55rem; }
.jb__ul li { position: relative; padding-left: 1.5rem; }
.jb__ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .6rem; height: 1px; background: var(--clay-lt); }

.pull {
  font-family: var(--ff-serif); font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.2; color: var(--fg);
  border-left: 2px solid var(--clay); padding-left: clamp(1rem, 2vw, 1.75rem);
  margin-block: 2em !important; max-width: 22ch;
}

.jfig, .jduo { margin-block: 2.5em !important; }
.jfig .fig, .jduo .fig { display: block; overflow: hidden; }
.jfig img { width: 100%; }
.jduo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.jduo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.jduo .cap { grid-column: 1 / -1; }

.jbox { border: 1px solid var(--line); border-left: 2px solid var(--clay); padding: clamp(1.1rem, 2.2vw, 1.75rem); margin-block: 2em !important; }
.jbox p { margin-top: .6rem; }
.jtab { margin-block: 2em !important; }

/* l'article déborde volontairement de la colonne de lecture sur grand écran */
@media (min-width: 1100px) {
  .jfig, .jduo, .jtab { width: min(112%, 60rem); }
}
@media (max-width: 1000px) {
  .jwrap { grid-template-columns: 1fr; }
  .jtoc { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .75rem 1.25rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
  .jtoc nav { flex-direction: row; flex-wrap: wrap; gap: .35rem .9rem; border-left: 0; margin-top: 0; }
  .jtoc nav a { padding: 0; border-left: 0; font-size: .8rem; }
  .jtoc nav a:hover, .jtoc nav a.on { border-left: 0; text-decoration: underline; text-underline-offset: 4px; }
  .jtoc__sep { display: none; }
  .jshare { margin-left: auto; }
}

/* --- 19. Pied de page ---------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 6vw, 5rem); }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 2.25rem; padding-inline: var(--pad); }
.foot__grid h4 { font-family: var(--ff-mono); font-weight: 400; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay-lt); margin-bottom: .9rem; }
.foot__grid li { padding-block: .24rem; font-size: .9rem; color: var(--muted); }
.foot__grid a:hover { color: var(--fg); }
.foot__word {
  display: block; width: 100%; margin-top: clamp(2rem, 5vw, 4rem);
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(3rem, 18.5vw, 18rem); line-height: .8; letter-spacing: -.055em;
  text-align: center; color: var(--clay); padding-inline: var(--pad);
  transition: color .6s var(--e);
}
.foot__word:hover { color: var(--void); }
.foot__bar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; border-top: 1px solid var(--line); margin-top: clamp(1.5rem, 3vw, 2.5rem); padding: 1.15rem calc(var(--pad) + var(--wa-space)) 1.15rem var(--pad); font-family: var(--ff-mono); font-size: .64rem; letter-spacing: .06em; color: var(--muted); }

/* --- 19 bis. Bouton WhatsApp flottant ------------------------------------ */
.wa {
  position: fixed; z-index: 880;
  right: var(--pad); bottom: clamp(1rem, 2.5vw, 1.75rem);
  display: inline-flex; align-items: center; gap: .7rem;
  height: 3.25rem; padding: 0 1rem;
  border-radius: 100px; background: #25D366; color: #fff;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .45);
  transition: transform .45s var(--e-out), box-shadow .45s var(--e), opacity .35s var(--e);
  max-width: 3.25rem; overflow: hidden;
}
.wa svg { width: 1.55rem; height: 1.55rem; flex: none; fill: currentColor; }
.wa span {
  font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; transition: opacity .35s var(--e) .1s;
}
.wa:hover, .wa:focus-visible { max-width: 16rem; transform: translateY(-2px); box-shadow: 0 .7rem 2rem rgba(0, 0, 0, .55); }
.wa:hover span, .wa:focus-visible span { opacity: 1; }
/* le bouton s'efface quand le menu plein écran ou la visionneuse sont ouverts */
body.nav-open .wa, body.lb-open .wa { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa { transition: none; } }
@media (max-width: 520px) { .wa { height: 3rem; max-width: 3rem; padding: 0 .85rem; } }
@media (max-width: 860px) { :root { --wa-space: 0px; } }

/* --- 20. Visionneuse ----------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 950; background: rgba(14,12,10,.96); color: var(--on-dark);
  --line: rgba(239,233,222,.22); --clay-lt: var(--on-dark-soft); display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); opacity: 0; visibility: hidden; transition: opacity .4s var(--e), visibility .4s; }
.lb.on { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 84vh; object-fit: contain; }
.lb__c { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay-lt); margin-top: 1rem; text-align: center; }
.lb button { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--bone); cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.lb button:hover { background: var(--bone); color: #17140F; }
.lb .x { top: 1.2rem; right: 1.2rem; }
.lb .p { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb .n { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* --- 21. Curseur personnalisé ------------------------------------------- */
.cur {
  position: fixed; top: 0; left: 0; z-index: 930; pointer-events: none;
  width: 76px; height: 76px; border-radius: 50%; background: var(--void); color: var(--bone);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
  transform: translate(-50%, -50%) scale(0); transition: transform .4s var(--e-out);
  will-change: transform;
}
.cur.on { transform: translate(-50%, -50%) scale(1); }
@media (hover: none), (pointer: coarse) { .cur { display: none; } }

/* --- 22. Apparition au défilement --------------------------------------- */
.js .rv { opacity: 0; transform: translateY(22px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 1s var(--e-out), transform 1s var(--e-out); }
.js .rvi img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--e-out); }
.js .rvi.in img { clip-path: inset(0 0 0 0); }
.js .rv[data-d="1"].in { transition-delay: .08s; }
.js .rv[data-d="2"].in { transition-delay: .16s; }
.js .rv[data-d="3"].in { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .rv.in { opacity: 1; transform: none; transition: none; }
  .js .rvi img { clip-path: none !important; }
}

/* --- 23. Divers ---------------------------------------------------------- */
.hr { border: 0; border-top: 1px solid var(--line); }
.mt { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(1.75rem, 4vw, 3.5rem); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); border-top: 1px solid var(--line); }
.steps > div { padding: clamp(1.25rem, 2.5vw, 2rem) clamp(.9rem, 1.5vw, 1.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps > div:last-child { border-right: 0; }
.steps h3 { font-size: clamp(1.1rem, 1.6vw, 1.5rem); margin: .6rem 0 .5rem; }
.steps p { font-size: .87rem; color: var(--muted); }

@media print {
  .top, .sheet, .wall, .reel, .lb, .cur, body::after { display: none !important; }
  body { background: #fff; color: #000; }
  .page { padding-left: 0; }
}
