/* ==========================================================================
   Showroom Heroes II — feuille de style principale
   Design : « Éditorial abyssal » — fonds profonds, sérif fine, filets d'or.
   ========================================================================== */

/* --- Jetons de design ---------------------------------------------------- */
:root {
  --abyss: #05070a;
  --abyss-soft: #0a0f16;
  --abyss-card: #0d131b;
  --ink: #f4f1ea;
  --ink-muted: rgba(244, 241, 234, 0.62);
  --ink-faint: rgba(244, 241, 234, 0.38);
  --line: rgba(244, 241, 234, 0.14);
  --line-strong: rgba(244, 241, 234, 0.26);
  --arancio: #ff7a1a;
  --arancio-deep: #d85f08;
  --gold: #d9a94a;
  --gold-light: #f0ce7a;
  --turbo: #2fd4c0;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  --shell: min(1440px, 100% - clamp(2.5rem, 9vw, 9rem));
  --rail: clamp(0px, 4vw, 84px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.95);
}

/* --- Réinitialisation ---------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.94rem + 0.2vw, 1.0625rem);
  line-height: 1.72;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* Voile de profondeur : dégradé abyssal fixe. */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(47, 212, 192, 0.09), transparent 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 122, 26, 0.07), transparent 65%),
    linear-gradient(180deg, #05070a 0%, #060a10 45%, #05070a 100%);
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--arancio); color: #120a02; }

:focus-visible {
  outline: 2px solid var(--arancio);
  outline-offset: 3px;
}

/* --- Typographie --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.9rem); }

em { font-style: italic; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.688rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.4rem;
}

.eyebrow--arancio { color: var(--arancio); }
.eyebrow--gold { color: var(--gold); }
.eyebrow--turbo { color: var(--turbo); }

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.82);
  max-width: 62ch;
}

.muted { color: var(--ink-muted); }

/* --- Structure ----------------------------------------------------------- */
.shell {
  width: var(--shell);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

main { position: relative; z-index: 1; }

.section {
  padding-block: clamp(5rem, 11vh, 9.5rem);
  position: relative;
}

.section--tight { padding-block: clamp(3rem, 6vh, 5rem); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
}

/* --- Barre de progression et en-tête ------------------------------------ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--turbo), var(--arancio) 55%, var(--gold));
  transition: width 0.15s linear;
}

.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.92), rgba(5, 7, 10, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.masthead.is-stuck {
  background: rgba(5, 7, 10, 0.9);
  border-bottom: 1px solid var(--line);
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark { height: 42px; width: auto; flex: none; display: block; }

.brand__text {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__sub {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.9rem);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink-muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible { color: var(--ink); border-color: var(--arancio); }

.nav__count {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--arancio);
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .nav { display: none; }
}

/* --- Index latéral de chapitres ----------------------------------------- */
.rail {
  position: fixed;
  left: clamp(1rem, 2.2vw, 2.2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease);
}

.rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  transition: all 0.3s var(--ease);
}

.rail__item:hover { color: var(--ink); }

.rail__item.is-active { color: var(--arancio); }

.rail__item.is-active .rail__dot {
  background: var(--arancio);
  border-color: var(--arancio);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.18);
}

.rail__label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.rail:hover .rail__label,
.rail__item.is-active .rail__label { opacity: 1; transform: none; }

@media (max-width: 1200px) { .rail { display: none; } }

/* --- Héros -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(6rem, 16vh, 10rem) clamp(3rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -6% 0 -6% 0;
  z-index: -2;
  will-change: transform;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.82) 0%, rgba(5, 7, 10, 0.32) 32%, rgba(5, 7, 10, 0.86) 78%, var(--abyss) 100%),
    radial-gradient(80% 60% at 18% 80%, rgba(47, 212, 192, 0.16), transparent 70%);
}

.hero__inner { width: var(--shell); margin-inline: auto; }

.hero__title { max-width: 22ch; }

.hero__title em { color: var(--ink); }

.hero__accent { color: var(--arancio); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.4rem;
  margin-top: 2.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero__scroll span {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--arancio), transparent);
  animation: pulse-line 2.6s var(--ease) infinite;
}

@keyframes pulse-line {
  0%, 100% { transform: scaleX(1); opacity: 0.7; }
  50% { transform: scaleX(1.6); opacity: 1; }
}

/* --- Bandeau de marques -------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  background: rgba(10, 15, 22, 0.5);
}

.marquee__track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee__track span {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.marquee__track span::after {
  content: "·";
  margin-left: 3.5rem;
  color: var(--arancio);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Manifeste ----------------------------------------------------------- */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 940px) {
  .manifesto { grid-template-columns: 1fr; }
}

.manifesto__title { max-width: 20ch; }

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}

.figure {
  background: var(--abyss);
  padding: 1.5rem 1.4rem 1.6rem;
}

.figure__num {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--gold-light);
  display: block;
}

.figure__label {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Chapitre ------------------------------------------------------------ */
.chapter {
  position: relative;
  padding-block: clamp(4.5rem, 10vh, 8rem);
  scroll-margin-top: 4.5rem;
}

.chapter + .chapter { border-top: 1px solid var(--line); }

.chapter__glow {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(60% 100% at 50% 100%, var(--glow, rgba(47, 212, 192, 0.12)), transparent 70%);
}

.chapter__head {
  display: grid;
  grid-template-columns: clamp(64px, 8vw, 128px) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.chapter__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  letter-spacing: 0.02em;
}

.chapter__title { margin-top: 0.35rem; }

.chapter__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  color: var(--ink-muted);
  margin-top: 0.9rem;
}

/* Corps de chapitre : média pleine largeur puis texte décalé */
.chapter__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
  align-items: start;
}

.chapter__body > .col-text { max-width: 60ch; }

.chapter__body--reverse > .col-text { order: 2; }

@media (max-width: 940px) {
  .chapter__body { grid-template-columns: 1fr; }
  .chapter__body--reverse > .col-text { order: 0; }
  .chapter__head { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* --- Média plein cadre --------------------------------------------------- */
.frame {
  position: relative;
  margin: 0 0 clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
  background: var(--abyss-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.frame--bleed { width: 100%; }

.frame__media {
  position: relative;
  width: 100%;
  display: block;
}

.frame__media img,
.frame__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--video .frame__media { aspect-ratio: 16 / 9; background: #000; }

.frame__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Récit --------------------------------------------------------------- */
.story {
  border-left: 2px solid var(--arancio);
  padding: 0.2rem 0 0.2rem clamp(1.1rem, 2.4vw, 2rem);
  margin: 2.2rem 0;
}

.story--turbo { border-color: var(--turbo); }
.story--gold { border-color: var(--gold); }

.story__label {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arancio);
  margin-bottom: 0.7rem;
}

.story--turbo .story__label { color: var(--turbo); }
.story--gold .story__label { color: var(--gold); }

.story p { color: rgba(244, 241, 234, 0.88); }

/* Corps de texte justifié : tenue « imprimé » sur tous les paragraphes rédigés. */
:is(.lead, .muted, .story p, .col-text p, .manifesto p, .chapter__body p):not(:is(.eyebrow, .story__label, .link__note, .figure__label)) {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--ink);
  margin: 2.4rem 0;
  max-width: 34ch;
}

/* --- Fiche technique ----------------------------------------------------- */
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  background: var(--abyss);
  border: 0;
  margin: 2.4rem 0;
}

.spec {
  background: var(--abyss);
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: 0 0 0 1px var(--line);
}

.spec__value {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1;
  color: var(--ink);
}

.spec__value small {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 0.35rem;
}

.spec__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Galerie ------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(0.5rem, 1vw, 0.9rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--abyss-card);
  cursor: zoom-in;
  padding: 0;
  margin: 0;
  display: block;
  aspect-ratio: 4 / 3;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.045); filter: brightness(1.08); }

.gallery__item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.6rem 0.9rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, 0.88));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; transform: none; }

/* Portraits : les captures verticales tiennent deux rangées */
/* Tuiles uniformes : chaque galerie choisit son rapport, la grille remplit toujours ses rangées. */
.gallery--portrait .gallery__item { aspect-ratio: 3 / 4; }

.gallery--mixed .gallery__item { aspect-ratio: 16 / 10; }

.gallery--square .gallery__item { aspect-ratio: 1 / 1; }

/* Galerie SEABOB : deux vues larges côte à côte, puis quatre fiches accessoires
   en colonnes verticales. Les rapports reprennent ceux des images fournies. */
.gallery.gallery--seabob { grid-template-columns: repeat(4, 1fr); }
.gallery--seabob .gallery__item { aspect-ratio: 548 / 982; }
.gallery--seabob .gallery__item.is-wide { grid-column: span 2; aspect-ratio: 2086 / 1000; }

/* Galerie de la table Ferrari : deux grandes vues 16/9 par rangée, sans recadrage
   (les visuels fournis sont des photos 16/9). */
.gallery.gallery--ferrari { grid-template-columns: repeat(3, 1fr); }
.gallery--ferrari .gallery__item { aspect-ratio: 16 / 9; }
@media (max-width: 980px) {
  .gallery.gallery--ferrari { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery.gallery--ferrari { grid-template-columns: 1fr; }
}

/* Chapitre 04 — Huracán : six vues sur deux rangées, format 3:2 non recadré */
.gallery.gallery--lambo { grid-template-columns: repeat(3, 1fr); }
.gallery--lambo .gallery__item { aspect-ratio: 3 / 2; }
@media (max-width: 980px) {
  .gallery.gallery--lambo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery.gallery--lambo { grid-template-columns: 1fr; }
}

/* Chapitre 05 — Quadrafoil : cinq vues cliquables, produit entier visible */
.gallery.gallery--quadrofoil { grid-template-columns: repeat(3, 1fr); }
.gallery--quadrofoil .gallery__item { aspect-ratio: 3 / 2; background: #ffffff; }
.gallery--quadrofoil .gallery__item img { object-fit: contain; padding: 5%; }
@media (max-width: 980px) {
  .gallery.gallery--quadrofoil { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery.gallery--quadrofoil { grid-template-columns: 1fr; }
}

/* Chapitres 06-07 — Searider : vues cliquables et coloris officiels */
.gallery.gallery--searider { grid-template-columns: repeat(3, 1fr); }
.gallery--searider .gallery__item { aspect-ratio: 16 / 9; background: #05070a; }
.gallery--searider .gallery__item img { object-fit: contain; }
@media (max-width: 980px) {
  .gallery.gallery--searider { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .gallery.gallery--searider { grid-template-columns: 1fr; }
}

/* Visuel principal non recadré */
.frame--photo .frame__media { background: #05070a; }
.frame--photo .frame__media img { width: 100%; height: auto; object-fit: contain; }

/* Coloris officiels */
.colors { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.7rem; margin-top: clamp(1.4rem, 3vw, 2rem); }
.colors__label { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.color { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.color__chip { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); flex: none; }
@media (max-width: 760px) {
  .gallery.gallery--seabob { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .gallery--portrait .gallery__item { aspect-ratio: 3 / 4; }
}

/* --- Appels à l'action --------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2.2rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid var(--line-strong);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(244, 241, 234, 0.02);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s var(--ease);
}

.link:hover,
.link:focus-visible {
  border-color: var(--arancio);
  background: rgba(255, 122, 26, 0.1);
  transform: translateY(-2px);
}

.link--solid {
  background: var(--arancio);
  border-color: var(--arancio);
  color: #140a02;
  font-weight: 500;
}

.link--solid:hover,
.link--solid:focus-visible { background: #ff8c3c; color: #140a02; }

/* Bouton de dossier en orange de la marque */
.link--arancio { border-color: rgba(255, 106, 19, 0.55); color: var(--arancio); }
.link--arancio:hover,
.link--arancio:focus-visible { background: #ff6a13; border-color: #ff6a13; color: #140a02; }

.link--ghost { border-color: transparent; padding-inline: 0; }
.link--ghost:hover { background: transparent; border-color: transparent; color: var(--arancio); }

.link__arrow { font-family: var(--mono); font-size: 0.8rem; }

.link__note {
  font-size: 0.68rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* --- Encart intégré (YouTube) ------------------------------------------- */
.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}

.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.embed__facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  display: block;
}

.embed__facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.5s var(--ease), transform 0.9s var(--ease); }
.embed__facade:hover img { opacity: 0.9; transform: scale(1.03); }

.embed__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 10, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.embed__facade:hover .embed__play { border-color: var(--arancio); color: var(--arancio); }

/* --- Référence produit (visuel détouré) --------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: end;
  margin-top: 2.5rem;
}

.showcase figure { margin: 0; }

.showcase img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.75));
}

.showcase figcaption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --- Visionneuse --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  background: rgba(3, 5, 8, 0.94);
  backdrop-filter: blur(8px);
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open { display: grid; }

.lightbox__figure { margin: 0; max-width: min(1280px, 92vw); }

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox__caption {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid var(--line-strong);
  background: rgba(5, 7, 10, 0.7);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { left: clamp(0.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(0.6rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--arancio); color: var(--arancio); }

/* --- Pied de page -------------------------------------------------------- */
.index-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.index-table th,
.index-table td {
  text-align: left;
  padding: 0.95rem 0.9rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}

.index-table th {
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.index-table td:first-child {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--arancio);
  width: 3.5rem;
}

.index-table td:last-child { text-align: right; color: var(--ink-faint); font-size: 0.78rem; }

.index-table a:hover { color: var(--arancio); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  align-items: baseline;
  padding-block: clamp(2rem, 5vw, 3.5rem);
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* --- Révélations au défilement ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .hero__scroll span { animation: none; }
  .hero__media { transform: none !important; }
  .gallery__item img,
  .link { transition: none; }
}

/* --- Impression ---------------------------------------------------------- */
@media print {
  body::before, .masthead, .rail, .progress, .hero__media, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
  .chapter { break-inside: avoid; }
}

/* Galerie du chapitre Mobula : deux visuels produit au format 3/2, sans recadrage. */
.gallery.gallery--inspiration { grid-template-columns: repeat(2, 1fr); }
.gallery--inspiration .gallery__item { aspect-ratio: 3 / 2; }

@media (max-width: 640px) {
  .gallery.gallery--inspiration { grid-template-columns: 1fr; }
}

/* Visuels d'inspiration Mobula : legende visible sous chaque tuile. */
.gallery--inspiration .tile { display: grid; gap: 0.7rem; margin: 0; }
.gallery--inspiration .tile__caption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
  opacity: 0.72;
}
