/* Polices auto-hébergées (v2) — plus d'@import bloquant vers Google Fonts */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/caveat-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("assets/fonts/cormorant-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/imfell-latin.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/imfell-italic-latin.woff2") format("woff2"); }

:root {
  --bg: #1a1410;
  --bg-card: #261e18;
  --ink: #f6efe6;
  --muted: #cbbba8;
  --line: #3d3229;
  --accent: #d4a05a;
  --accent-ink: #1a1410;
  --ok: #9ecf9a;
  --copper: #e0b56a; /* AA+/outdoor: stronger on bg-card */
  --terracotta: #c46a45;
  --indigo: #2a2540;
  --radius: 18px;
  --font-body: "Cormorant Garamond", "IM Fell English", Georgia, serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-display: "IM Fell English", "Cormorant Garamond", Georgia, serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 96px;
}
html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image: none; /* v2 : décor déplacé sur un calque fixe (body::before) */
  background-attachment: scroll;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  outline: none;
}
a:focus-visible {
  outline: 2px solid rgba(212,160,90,0.7);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px 56px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: left center;
  transition: transform 0.4s ease-in-out, opacity 0.35s ease;
}
.brand-link:hover { text-decoration: none; }

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  background: #1a1410;
  border: 1.5px solid rgba(212,160,90,0.55);
  box-shadow: 0 0 0 3px rgba(26,20,16,0.5), 0 2px 8px rgba(0,0,0,0.35);
  filter: none;
}

.brand-word {
  font-family: var(--font-hand);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.95rem; /* lisibilité mobile */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.nav a {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(212,160,90,0.35);
  background: rgba(212,160,90,0.08);
  text-decoration: none;
}


.hero {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 36px;
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
}

.badge {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  color: var(--accent);
  border: 1px dashed rgba(212,160,90,0.45);
  padding: 2px 12px 4px;
  border-radius: 999px;
  margin: 0 0 12px;
  transform: rotate(-1.2deg);
}

h1 {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  /* ink irregular: gradient clip when supported; solid fallback otherwise */
  color: var(--accent);
  text-shadow:
    0.5px 0.5px 0 rgba(184,115,51,0.35),
    -0.5px 0 rgba(26,20,16,0.4);
  background-image: linear-gradient(105deg, var(--ink) 0%, var(--accent) 48%, var(--copper) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 {
    color: var(--accent);
    -webkit-text-fill-color: currentColor;
    background-image: none;
  }
}

.lede {
  font-family: var(--font-body);
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 38em;
}

/* Hero = 2 logos indépendants :
   .logo-hero-merch  → assets/logo-hero-merch.jpg
   .logo-hero-sceau  → assets/logo-sceau.png
   Voir assets/LOGOS-SLOTS.txt */
.hero-visual {
  position: relative;
  z-index: 0;
  min-height: 240px;
  margin-top: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(212,160,90,0.32);
  box-shadow:
    0 0 0 1px rgba(26,20,16,0.35),
    0 12px 28px rgba(0,0,0,0.38);
  /* pas de transform : évite calque au-dessus du sticky */
}
/* Soft top Merch — fondu vers le fond page (Safari-safe) */
/* Fondu du CONTENU (Merch), pas du header */
/* soft-top Merch local retire — remplace par .site-scroll-fade */

.hero-visual .logo-hero-merch {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
  display: block;
  min-height: 220px;
  background: #0d0a08;
  filter: saturate(0.92) contrast(1.05);
}
.hero-visual .logo-hero-sceau {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  border: 2px solid rgba(212,160,90,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  background: #1a1410;
}

.grid {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  display: block;
  background: linear-gradient(160deg, rgba(38,30,24,0.92), rgba(26,20,16,0.88));
  border: 1px solid rgba(61,50,41,0.95);
  border-radius: var(--radius);
  padding: 16px 14px 18px;
  color: inherit;
  text-decoration: none;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.25);
  transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  position: relative;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.55;
  mix-blend-mode: soft-light;
  display: none; /* v2 : grain par carte retiré (coût de peinture) */
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,160,90,0.75);
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
  text-decoration: none;
}
.card:hover .card-logo {
  transform: scale(1.1);
  border-color: rgba(212,160,90,0.95);
}
.card-logo {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-visual .logo-hero-merch,
.hero-visual .logo-hero-sceau,
.page-hero img,
.brand-logo {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.hero-visual .logo-hero-merch:hover {
  transform: scale(1.04);
  border-color: rgba(212,160,90,0.7);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.hero-visual .logo-hero-sceau:hover {
  transform: scale(1.12);
  border-color: rgba(212,160,90,0.95);
  box-shadow: 0 8px 22px rgba(0,0,0,0.55);
}
.page-hero img:hover {
  transform: scale(1.08);
  border-color: rgba(212,160,90,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .card:hover .card-logo,
  .hero-visual .logo-hero-merch:hover,
  .hero-visual .logo-hero-sceau:hover,
  .page-hero img:hover,
  .brand-logo:hover {
    transform: none;
  }
}
.card-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 1px solid rgba(212,160,90,0.4);
}
.card h2 {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
}
.card p {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.05rem;
}
.card .meta {
  font-family: var(--font-body); /* emails: pas de manuscrite */
  font-size: 1rem;
  font-weight: 600;
  color: var(--copper);
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.channels {
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px dashed rgba(61,50,41,0.9);
  padding-top: 16px;
}
.channels code {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.page-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 28px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(212,160,90,0.25);
  background: rgba(38,30,24,0.55);
  transform: rotate(-0.3deg);
}
.page-hero img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,160,90,0.55);
  flex-shrink: 0;
}
.page-hero h1 {
  margin-bottom: 6px;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  text-shadow: 1px 1px 0 rgba(184,115,51,0.25);
}

.section {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 3px solid rgba(212,160,90,0.55);
  background: rgba(38,30,24,0.35);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.section h2 {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.section p {
  margin: 0 0 8px;
  color: var(--ink);
}
.section p:last-child { margin-bottom: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  font-family: var(--font-body);
}

h2[style] {
  font-family: var(--font-hand) !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
  font-size: 1.5rem !important;
}

@media (max-width: 780px) {
  html, body { font-size: 18px; }
  .brand-word { font-size: 1.55rem; }
  .nav a { font-size: 1.15rem; padding: 6px 10px; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .lede { font-size: 1.08rem; }
  .card .meta, .section a, .lede a {
    font-family: var(--font-body);
    overflow-wrap: anywhere;
  }
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
    transform: none;
  }
  .page-hero img { width: 96px; height: 96px; }
  .hero-visual { transform: none; }
}

/* === UI5: hamburger / theme / motion / i18n === */

:root, [data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6efe6;
  --bg-card: #fff8f0;
  --ink: #1a1410;
  --muted: #3d332b;
  --line: #d9cbb8;
  --accent: #6b4214;
  --accent-ink: #f6efe6;
  --copper: #5c3810;
  --terracotta: #a34e30;
  --indigo: #3a3558;
  --ok: #3d7a3a;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background-color: var(--bg);
  background-image: none;
}

[data-theme="light"] .card {
  background: linear-gradient(160deg, rgba(255,248,240,0.96), rgba(246,239,230,0.92));
  border-color: rgba(217,203,184,0.95);
  box-shadow: 2px 3px 0 rgba(26,20,16,0.08);
}
[data-theme="light"] .page-hero,
[data-theme="light"] .section {
  background: rgba(255,248,240,0.72);
}
[data-theme="light"] .hero-visual .logo-hero-merch { background: #e8dfd2; }
[data-theme="light"] .brand-logo {
  background: #f6efe6;
  box-shadow: 0 0 0 3px rgba(246,239,230,0.6), 0 2px 8px rgba(0,0,0,0.12);
}
[data-theme="light"] .hero-visual .logo-hero-sceau { background: #f6efe6; }
.card-logo {
  background: #1a1410;
  object-fit: contain !important;
  object-position: center;
  padding: 10px;
}
[data-theme="light"] .card-logo { background: #f6efe6; }
[data-theme="light"] .nav a[aria-current="page"],
[data-theme="light"] .nav a:hover {
  background: rgba(154,107,46,0.12);
}

/* Header controls row */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  isolation: isolate;
  /* solid bar — no backdrop-filter (évite le clignotement GPU) */
  background: var(--bg);
  border-bottom: 1px solid rgba(212,160,90,0.22);
  padding: 14px 0 12px;
  min-height: 72px;
  align-items: center;
  /* Ombre sur ::after (calque promu) plutôt que box-shadow sur le sticky — Safari retipe sinon. */
  transition: border-color 0.2s ease;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  box-shadow: 0 1px 0 rgba(212,160,90,0.22), 0 4px 10px rgba(0,0,0,0.35);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: opacity 0.2s ease;
}
.site-header.is-scrolled::after { opacity: 1; }


/* Fondu contenu sous header : FIXED (pas sticky dans .wrap — le sticky échouait dans le même flux que le header) */
.site-scroll-fade {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h, 72px);
  z-index: 90;
  pointer-events: none;
  height: 32px;
  background: none;
}
/* v6 — sombre : plus de voile sous l’en-tête (il lavait kicker et titre). Ombre courte sur le header seulement. */
[data-theme="dark"] .site-scroll-fade {
  height: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none;
}
/* v6 — mode clair : plus de voile (comme en sombre). Ombre courte déjà définie juste en dessous. */
[data-theme="light"] .site-scroll-fade {
  height: 0;
  opacity: 0 !important;
  visibility: hidden !important;
  background: none;
}
[data-theme="light"] .site-header::after {
  box-shadow: 0 1px 0 rgba(217, 203, 184, 0.9), 0 3px 8px rgba(60, 40, 20, 0.08);
}

/* Bande kente DANS LE FLUX uniquement — scrolle avec la page (pas sticky) */
.kente-strip {
  position: relative; /* crée un contexte pour z-index, reste dans le flux (pas fixed/sticky) */
  z-index: 95; /* au-dessus du voile (90), sous le header (100) */
  height: 12px;
  margin: 20px 0 28px; /* proche du header */
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--accent) 0 22px,
      var(--copper) 22px 44px,
      var(--terracotta) 44px 66px,
      var(--indigo) 66px 88px,
      #1a1410 88px 96px,
      var(--ink) 96px 118px,
      #1a1410 118px 126px
    );
  opacity: 0.62;
  /* pas de filter pendant le défilement (Safari repeint le calque à chaque frame) */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 4px rgba(0,0,0,0.4);
}



.site-header.is-scrolled {
  border-bottom-color: rgba(212,160,90,0.4);
  /* pas de changement de padding → pas de boucle scroll/hauteur */
}
.site-header.is-compact .brand-link {
  transform: scale(0.94);
}
.site-header.is-compact .brand-sub {
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,90,0.35);
  background: rgba(38,30,24,0.55);
}
.lang-switch .chip {
  border: 0;
  min-width: 2.1rem;
  padding: 4px 8px;
}
.lang-switch .chip.is-active,
.lang-switch .chip[aria-pressed="true"] {
  background: rgba(212,160,90,0.28);
  color: var(--accent);
}
.chip[data-theme-toggle] {
  min-width: 6.5rem;
  text-align: center;
}
.demo-chip {
  opacity: 0.85;
}
.nav {
  width: 100%;
  justify-content: flex-start;
  margin-top: 4px;
}

.brand-link.is-brand-breathing .brand-word {
  transform-origin: left center;
  animation: none; /* v2 : mot fixe, plus lisible */
}
@keyframes dzotinu-breathe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
@keyframes dzotinu-word-breathe {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.03); opacity: 0.92; }
}

.chip {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(212,160,90,0.35);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1.2;
}
.chip:hover, .chip:focus-visible {
  color: var(--accent);
  border-color: rgba(212,160,90,0.65);
  outline: none;
}
.chip.is-active,
.chip[aria-pressed="true"] {
  color: var(--accent);
  background: rgba(212,160,90,0.12);
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  border: 1px solid rgba(212,160,90,0.3);
  border-radius: 999px;
  padding: 2px;
}
.lang-switch .chip {
  border: none;
  padding: 3px 8px;
  min-width: 2.1em;
}

.demo-chip {
  color: var(--accent);
  text-decoration: none;
  border-style: dashed;
}
.demo-chip:hover { text-decoration: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(212,160,90,0.4);
  background: rgba(38,30,24,0.55);
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}
[data-theme="light"] .nav-toggle { background: rgba(255,248,240,0.8); }
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(10,8,6,0.55);
  z-index: 90;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.nav-overlay:not([hidden]) { display: block; }
body.nav-locked { overflow: hidden; }

.card.will-fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s var(--ease-soft, ease-out), transform 0.28s var(--ease-soft, ease-out);
}
.card.will-fade.is-visible,
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s var(--ease-soft, ease-out), transform 0.28s var(--ease-soft, ease-out),
              border-color 0.2s ease, box-shadow 0.25s ease;
}

.demo-banner {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(212,160,90,0.55);
  background: rgba(212,160,90,0.1);
  color: var(--accent);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  text-align: center;
}

/* Démo link lives in slide-out nav on mobile only */
.nav .nav-demo-mobile { display: none; }

/* Tap targets ≥44×44 (pill look kept) */
.lang-switch .chip,
.chip[data-theme-toggle],
.chip.demo-chip {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.lang-switch .chip {
  padding: 0 12px;
}
.chip[data-theme-toggle] {
  padding: 0 12px;
}
.lang-switch {
  min-height: 44px;
  align-items: center;
  padding: 2px;
}

@media (max-width: 780px) {
  /* Single-row compact header ~72px */
  .site-header {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 0;
    min-height: 72px;
    align-items: center;
  }
  .brand-link {
    order: 1;
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
  .brand-word {
    font-size: 1.28rem;
    min-width: 0;
  }
  .brand-sub {
    display: none; /* reclaim height/width on narrow */
  }
  .header-tools {
    order: 2;
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .nav-toggle {
    display: inline-flex;
    order: 0; /* stays inside tools */
  }
  /* Démo moves into the slide-out nav on mobile to keep one row */
  .header-tools .demo-chip {
    display: none;
  }
  .nav .nav-demo-mobile {
    display: block;
  }
  .chip[data-theme-toggle] {
    min-width: 44px;
    max-width: 8.5rem;
    padding: 0 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h, 72px);
    left: 16px;
    right: 16px;
    z-index: 95; /* under header 100, above fade 90 */
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(212,160,90,0.35);
    background: color-mix(in srgb, var(--bg-card) 96%, transparent);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    max-height: calc(100vh - var(--header-h, 72px) - 24px);
    overflow: auto;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav a { font-size: 1.25rem; padding: 12px 14px; min-height: 44px; box-sizing: border-box; }
}


@media (prefers-reduced-motion: reduce) {
  .brand-link.is-brand-breathing .brand-word { animation: none !important; }
  .card.will-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .site-header { transition: none; }
}


/* === Brass vitrine pilote (brass1) === */
.vitrine-demo-note {
  margin: 8px 0 0;
  font-size: 1rem;
  color: var(--copper);
  font-weight: 500;
}
.section-lead {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.05rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.carousel {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(212,160,90,0.32);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  overflow: hidden;
  outline: none;
}
.carousel:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent);
}
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}
.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
  touch-action: pan-y;
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  min-width: 100%;
  background: #120e0b;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: clamp(200px, 52vw, 420px);
  object-fit: contain;
  background: #120e0b;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px 14px;
}
.carousel-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(212,160,90,0.45);
  background: rgba(38,30,24,0.75);
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-btn:hover {
  background: color-mix(in srgb, var(--copper) 28%, rgba(38,30,24,0.9));
}
.carousel-dots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(212,160,90,0.35);
}
.carousel-dot[aria-current="true"]::after {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,160,90,0.25);
}

.media-player {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,160,90,0.28);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
}
.media-label {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--copper);
  font-weight: 600;
}
.media-el {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 10px;
  background: #0d0a08;
}
.media-player--audio .media-el {
  min-height: 44px;
}
.media-player--video .media-el {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212,160,90,0.28);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.link-list a:hover {
  border-color: rgba(212,160,90,0.55);
  background: color-mix(in srgb, var(--copper) 16%, var(--bg-card));
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.merch-card {
  border-radius: var(--radius);
  border: 1px solid rgba(212,160,90,0.28);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  overflow: hidden;
  padding: 0 0 12px;
}
.merch-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #120e0b;
}
.merch-card h3 {
  margin: 10px 12px 4px;
  font-size: 1.02rem;
  color: var(--accent);
}
.merch-price {
  margin: 0 12px;
  color: var(--copper);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 781px) {
  .merch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .carousel-slide img {
    height: clamp(180px, 58vw, 280px);
  }
  .carousel-btn,
  .carousel-dot,
  .link-list a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

[data-theme="light"] .carousel,
[data-theme="light"] .media-player,
[data-theme="light"] .merch-card,
[data-theme="light"] .link-list a {
  background: color-mix(in srgb, var(--bg-card) 96%, #fff);
}
[data-theme="light"] .carousel-slide,
[data-theme="light"] .merch-card img {
  background: #efe6d8;
}

/* ===== Brass vitrine — brass2 (max load demo) ===== */
.carousel-slide { position: relative; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; font-size: 0.95rem; color: #f5e9d4;
  background: linear-gradient(transparent, rgba(20, 14, 10, 0.85));
}
.carousel-btn--big {
  min-width: 48px; min-height: 48px; font-size: 1.6rem; font-weight: 700;
  background: #c8963e; color: #1a1410; border: 2px solid #e3c27a; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.carousel-btn--big:hover { background: #e3c27a; }
.media-stack { display: grid; gap: 14px; }
@media (min-width: 781px) { .media-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.merch-card[data-merch-card] { cursor: zoom-in; }
.merch-card[data-merch-card]:focus-visible { outline: 3px solid #c8963e; outline-offset: 2px; }
.merch-hint { font-size: 1rem; opacity: 1; margin-top: 10px; color: var(--ink); }
.merch-zoom { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.merch-zoom[hidden] { display: none; }
.merch-zoom-backdrop { position: absolute; inset: 0; background: rgba(10, 7, 5, 0.88); }
.merch-zoom-panel {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #1a1410; color: #f5e9d4; border: 1px solid #c8963e; border-radius: 16px; padding: 56px 18px 18px; text-align: center;
}
.merch-zoom-img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 10px; }
.merch-zoom-title { margin: 12px 0 4px; }
.merch-zoom-desc { opacity: 1; }
.merch-zoom-btn {
  min-width: 48px; min-height: 48px; font-size: 1.4rem; border-radius: 50%;
  background: #c8963e; color: #1a1410; border: 2px solid #e3c27a; cursor: pointer;
}
.merch-zoom-close { position: absolute; top: 8px; right: 8px; }
.merch-zoom-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
html.merch-zoom-open { overflow: hidden; }

/* ——— Écoute · EP spotlight (Brass pilote) ——— */
.ecoute-spotlight {
  position: relative;
  padding: 28px 18px 32px;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(680px 320px at 18% 12%, rgba(212,160,90,0.16) 0%, transparent 55%),
    radial-gradient(520px 280px at 88% 88%, rgba(42,37,64,0.55) 0%, transparent 50%),
    linear-gradient(165deg, #120e0b 0%, #1c1510 45%, #0e0b09 100%);
  border: 1px solid rgba(212,160,90,0.28);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}
.ecoute-kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 1;
}
.ecoute-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
  color: #f3e6d2;
}
.ecoute-lead { margin-bottom: 22px; opacity: 1; max-width: 36em; color: #f3e6d2; }
.ecoute-stage {
  display: grid;
  gap: 22px;
  align-items: center;
}
.ecoute-cover {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 28px 56px rgba(0,0,0,0.55),
    0 0 0 1px rgba(212,160,90,0.35),
    0 0 40px rgba(212,160,90,0.12);
}
.ecoute-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ecoute-meta { text-align: center; }
.ecoute-ep-label {
  margin: 0 0 4px;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
}
.ecoute-ep-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  letter-spacing: 0.06em;
  color: #f8f0e4;
}
.ecoute-duration {
  margin: 0 0 18px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.ecoute-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 220px;
  padding: 12px 28px;
  margin: 0 0 18px;
  border: 1px solid rgba(227,194,122,0.75);
  border-radius: 999px;
  background: linear-gradient(180deg, #e3c27a 0%, #c8963e 55%, #a87528 100%);
  color: #1a1410;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.ecoute-cta:hover { filter: brightness(1.06); }
.ecoute-cta:active { transform: translateY(1px); }
.ecoute-cta:focus-visible {
  outline: 2px solid #f0d9a0;
  outline-offset: 3px;
}
.ecoute-player { width: min(100%, 420px); margin: 0 auto; }
.ecoute-audio { width: 100%; }
.ecoute-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 1;
  color: #f3e6d2;
}
@media (min-width: 720px) {
  .ecoute-spotlight { padding: 36px 40px 40px; }
  .ecoute-stage {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 36px;
    text-align: left;
  }
  .ecoute-meta { text-align: left; }
  .ecoute-cover { justify-self: start; width: 100%; max-width: 340px; }
  .ecoute-player { margin: 0; }
  .ecoute-cta { margin-left: 0; }
}
/* v6 — mode clair seulement : la carte reste un plateau sombre, mais tous les textes
   utilisent des couleurs claires (plus de variables --accent/--muted/--copper devenues foncées). */
[data-theme="light"] .ecoute-spotlight {
  background:
    radial-gradient(680px 320px at 18% 12%, rgba(196,132,63,0.18) 0%, transparent 55%),
    linear-gradient(165deg, #2a221c 0%, #1a1511 100%);
  color: #f6efe6;
  color-scheme: dark; /* lecteur audio natif accordé au fond sombre */
}
[data-theme="light"] .ecoute-spotlight .ecoute-kicker,
[data-theme="light"] .ecoute-spotlight .ecoute-ep-label {
  color: #E8C37A; /* 9.3:1 sur #2a221c, 10.8:1 sur #1a1511 */
}
[data-theme="light"] .ecoute-spotlight,
[data-theme="light"] .ecoute-spotlight .ecoute-heading,
[data-theme="light"] .ecoute-spotlight .ecoute-ep-title,
[data-theme="light"] .ecoute-spotlight .ecoute-lead,
[data-theme="light"] .ecoute-spotlight .section-lead,
[data-theme="light"] .ecoute-spotlight .ecoute-duration,
[data-theme="light"] .ecoute-spotlight .ecoute-duration time,
[data-theme="light"] .ecoute-spotlight .ecoute-note,
[data-theme="light"] .ecoute-spotlight p,
[data-theme="light"] .ecoute-spotlight h2,
[data-theme="light"] .ecoute-spotlight h3 {
  color: #F6EFE6; /* 13.7:1 sur #2a221c */
}
[data-theme="light"] .ecoute-spotlight a:not(.ecoute-cta) {
  color: #E8C37A;
}

/* v6 — mode sombre : kicker or lisible, titre ivoire. .section h2 (accent + Caveat) ne doit plus gagner. */
[data-theme="dark"] .ecoute-spotlight .ecoute-kicker {
  color: #E8C37A; /* 10.8:1 sur #1a1511 */
}
[data-theme="dark"] .ecoute-spotlight .ecoute-heading,
[data-theme="dark"] .ecoute-spotlight h2.ecoute-heading {
  color: #F6EFE6; /* 15.9:1 sur #1a1511 */
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 1.85rem);
  letter-spacing: 0.02em;
}

/* v6 — cartes « Ouvrir la fiche » : contrastes AA sur fond clair */
[data-theme="light"] .brass-editorial-card,
[data-theme="light"] a.brass-editorial-card {
  color: #1a1410;
  background: #fff8f0;
}
[data-theme="light"] .brass-editorial-card h3 { color: #1a1410; }
[data-theme="light"] .brass-editorial-card p { color: #3d332b; }
[data-theme="light"] a.brass-editorial-card span {
  color: #5c3810;
  font-weight: 600;
}

/* Brass4 — editorial pages and local navigation only. */
.brass-local-nav { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; margin-bottom:20px; border-bottom:1px solid var(--line); }
.brass-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:10px 16px; margin:4px 4px 4px 0; border:1px solid var(--line); border-radius:12px; background:var(--bg-card); color:var(--accent); font:inherit; cursor:pointer; text-align:center; }
.brass-action:hover { border-color:var(--accent); }
.brass-local-nav .brass-action { margin:0; }
.brass-test-note { color:var(--ink); border-left:2px solid var(--accent); padding:12px 16px; }
.brass-editorial-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:20px; }
.brass-editorial-card { display:block; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--bg-card); min-width:0; }
a.brass-editorial-card { min-height:44px; color:var(--ink); }
a.brass-editorial-card:hover { border-color:var(--accent); }
.brass-editorial-img { display:block; width:100%; height:auto; max-width:540px; aspect-ratio:1; object-fit:contain; border-radius:14px; background:#15110e; }
.brass-editorial-grid figure { margin:0; min-width:0; }
.brass-editorial-split { display:grid; grid-template-columns:1fr 1fr; gap:28px; align-items:center; }
.brass-editorial-split figure { margin:0; }
.brass-credits { border-top:1px solid var(--line); }
.brass-credits dt { margin-top:24px; color:var(--accent); font-weight:600; }
.brass-credits dd { margin:8px 0 24px; }
.brass-page { overflow-wrap:anywhere; }
.brass-timeline li { padding:10px 0; }
.brass-demo-price { font-size:1.5rem; color:var(--accent); }
.brass-purchase-status { border:1px solid var(--accent); border-radius:12px; padding:16px; }
@media (max-width:600px) { .brass-editorial-split { grid-template-columns:1fr; } .brass-local-nav { gap:6px; } .brass-local-nav .brass-action { padding:9px 12px; } }

/* brass6 — badge sous-univers sur cartes projet */
.brass-universe-tag {
  margin: 0 0 6px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.brass-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  margin: 0 0 0.7rem;
}
.brass-title-row h2,
.brass-title-row h1 { margin: 0; }
.brass-title-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: inherit;
}

.brass-title-row--page {
  margin: 0 0 0.9rem;
}
.brass-title-link--page {
  font-family: var(--font-hand);
  font-size: clamp(2.2rem, 5vw, 3.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  min-height: 44px;
  color: var(--accent);
  text-decoration-thickness: 0.06em;
}
@media (max-width: 780px) {
  .brass-title-link--page { font-size: clamp(1.85rem, 8vw, 2.6rem); }
}

/* Atelier sheet: readable workshop layout (scoped) */
.brass-atelier { max-width: 40em; }
.brass-atelier > h1 { margin: 0 0 0.45rem; line-height: 1.25; }
.brass-atelier > .lede { margin: 0 0 1.35rem; max-width: 38em; color: var(--ink); }
.brass-atelier .section { margin-bottom: 1.15rem; }
.brass-atelier .section ul,
.brass-atelier .section ol {
  margin: 0;
  padding-left: 1.35em;
  color: var(--ink);
}
.brass-atelier .section li { margin: 0.4rem 0; }
.brass-atelier-facts {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8.5rem) 1fr;
  gap: 0.55rem 1.15rem;
  align-items: baseline;
  margin: 0;
}
.brass-atelier-facts dt {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}
.brass-atelier-facts dd {
  margin: 0;
  color: var(--ink);
}
.brass-atelier #atelier-signup .brass-action { margin-top: 0.55rem; }

/* Universal readability: small screens stack labels, keep type readable */
img, video { max-width: 100%; }
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .brass-atelier-facts {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }
  .brass-atelier-facts dt { margin-top: 0.75rem; }
  .brass-atelier-facts dt:first-child { margin-top: 0; }
  .ecoute-cta { min-width: 0; width: 100%; }
}


/* v2 — décor de fond sur un calque fixe : peint une fois, composité au défilement et au changement de thème */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* v8 — calque promu une fois (Safari retipe souvent un fixed + isolation:isolate au défilement). */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  contain: strict;
  background-repeat: repeat, repeat, repeat, no-repeat, no-repeat;
  background-size: 160px 160px, auto, auto, 1100px 520px, 900px 480px;
  background-image:
    url("assets/grain.webp"),
    repeating-linear-gradient(
      90deg,
      transparent 0 14px,
      rgba(212,160,90,0.035) 14px 16px,
      transparent 16px 30px,
      rgba(184,115,51,0.03) 30px 32px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 18px,
      rgba(196,106,69,0.028) 18px 20px,
      transparent 20px 40px
    ),
    radial-gradient(1100px 520px at 12% -8%, #3a2a1c 0%, transparent 55%),
    radial-gradient(900px 480px at 90% 0%, #2a2540 0%, transparent 45%);
}
html[data-theme="light"] body::before {
  background-size: 160px 160px, auto, auto, 1100px 520px, 900px 480px;
  background-image:
    url("assets/grain.webp"),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(154,107,46,0.05) 14px 16px, transparent 16px 30px, rgba(138,85,32,0.04) 30px 32px),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(163,78,48,0.04) 18px 20px, transparent 20px 40px),
    radial-gradient(1100px 520px at 12% -8%, #e8d5b8 0%, transparent 55%),
    radial-gradient(900px 480px at 90% 0%, #d8d2e8 0%, transparent 45%);
}
body { position: relative; }

/* =====================================================================
   v2 — DZOTINÚ : hero, portes, vitrines remplies (fictif), finitions
   Mouvements : transform/opacity seulement ; coupés si prefers-reduced-motion.
   ===================================================================== */
:root { --font-title: "Cormorant Garamond", Georgia, serif; --ease-out: cubic-bezier(.2,.7,.2,1); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-family: var(--font-title); font-weight: 600; font-size: 1.08rem; letter-spacing: .03em;
  color: #1A1410; background: linear-gradient(135deg, #E0B56A, #D4A05A 55%, #b9853f);
  box-shadow: 0 6px 18px rgba(212,160,90,.22); text-decoration: none; transition: transform .2s var(--ease-out);
}
.btn-gold:hover, .btn-gold:focus-visible { text-decoration: none; transform: translateY(-2px); }
[data-theme="light"] .btn-gold { color: #1A1410; }

.section-title {
  font-family: var(--font-title); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  color: var(--accent); margin: 8px 0 16px; letter-spacing: .01em; line-height: 1.15;
  display: flex; align-items: center; gap: 14px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212,160,90,.45), transparent); }

/* Hero v2 */
.hero-v2 { grid-template-columns: 1.1fr .9fr; gap: 32px; margin: 4px 0 44px; min-height: 380px; }
.hero-v2 .hero-title {
  font-family: var(--font-title); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.02; letter-spacing: -.005em; margin-bottom: 16px; text-shadow: none;
}
.hero-v2 .lede { font-size: 1.22rem; }
.hero-note { color: var(--muted); font-style: italic; margin: 0 0 18px; }
.hero-emblem { position: relative; aspect-ratio: 1; width: min(100%, 400px); margin-inline: auto; display: grid; place-items: center; }
.hero-emblem::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(212,160,90,.28) 0%, rgba(212,160,90,.08) 45%, transparent 70%);
}
.hero-emblem .emblem { width: 52%; height: auto; position: relative; z-index: 1; filter: none; }
.emblem-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px solid rgba(212,160,90,.32); }
.hero-emblem.is-away .emblem-ring,
.hero-emblem.is-away .emblem { animation-play-state: paused; }
.emblem-ring.r2 { inset: 17%; border-style: dashed; border-color: rgba(212,160,90,.22); }
.orbit { position: absolute; inset: 0; z-index: 2; transform-origin: 50% 50%; }
.orbit-sym {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; z-index: 2;
  left: calc(50% - 25px + 44% * var(--x)); top: calc(50% - 25px + 44% * var(--y));
  -webkit-tap-highlight-color: transparent; text-decoration: none; outline: none;
}
.orbit-0 { --x: 0; --y: -1; } .orbit-1 { --x: .951; --y: -.309; } .orbit-2 { --x: .588; --y: .809; }
.orbit-3 { --x: -.588; --y: .809; } .orbit-4 { --x: -.951; --y: -.309; }
.orbit-up { position: absolute; inset: 0; display: block; }
.orbit-disc {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(212,160,90,.45);
  transition: transform .18s cubic-bezier(.2,.9,.3,1), border-color .15s ease, box-shadow .18s ease, background-color .15s ease, opacity .18s ease;
}
.orbit-disc img { width: 64%; height: 64%; object-fit: contain; }
.orbit-label {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translate(-50%, -4px); white-space: nowrap;
  font-family: var(--font-hand); font-size: 1.15rem; font-weight: 700; line-height: 1; color: var(--gold, #D4A05A);
  padding: 4px 10px 5px; border-radius: 999px; background: rgba(26,20,16,.88); border: 1px solid rgba(212,160,90,.4);
  opacity: 0; pointer-events: none; z-index: 3; transition: opacity .14s ease-out, transform .18s cubic-bezier(.2,.9,.3,1);
}
.orbit-sym[data-lp="up"] .orbit-label { top: auto; bottom: calc(100% + 8px); transform: translate(-50%, 3px); }
.orbit-sym[data-lp="right"] .orbit-label { top: 50%; left: calc(100% + 8px); transform: translate(-3px, -50%); }
.orbit-sym[data-lp="left"] .orbit-label { top: 50%; left: auto; right: calc(100% + 8px); transform: translate(3px, -50%); }
.orbit-sym[data-lp="right"].is-lit .orbit-label, .orbit-sym[data-lp="left"].is-lit .orbit-label,
.orbit-sym[data-lp="right"]:focus-visible .orbit-label, .orbit-sym[data-lp="left"]:focus-visible .orbit-label { transform: translate(0, -50%); }
.orbit-sym.is-lit, .orbit-sym:focus-visible { z-index: 6; }
.hero-v2 .hero-emblem { z-index: 2; }
[data-theme="light"] .orbit-label { background: rgba(255,248,240,.95); color: #8a5a1c; }
.orbit-sym.is-lit .orbit-disc, .orbit-sym:hover .orbit-disc {
  transform: scale(1.16); border-color: rgba(232,184,106,.95);
  box-shadow: 0 0 0 4px rgba(212,160,90,.14), 0 0 22px rgba(232,184,106,.55);
}
.orbit-sym:focus-visible .orbit-disc { outline: 2px solid #E0B56A; outline-offset: 3px; }
.orbit-sym.is-lit .orbit-label, .orbit-sym:focus-visible .orbit-label { opacity: 1; transform: translate(-50%, 0); }
.hero-emblem.is-hovering .orbit-sym:not(.is-lit) .orbit-disc { opacity: .55; }
.orbit-thread {
  position: absolute; left: 50%; top: 50%; width: 100px; height: 2px; margin-top: -1px; z-index: 1; pointer-events: none;
  transform-origin: 0 50%; background: linear-gradient(90deg, rgba(232,184,106,.15), #E0B56A 55%, rgba(255,226,170,.95));
  box-shadow: 0 0 8px rgba(232,184,106,.6); border-radius: 2px; opacity: 0;
  transform: rotate(var(--a, 0deg)) translateX(var(--r0, 60px)) scaleX(0);
  transition: opacity .12s ease-out, transform .16s cubic-bezier(.2,.9,.3,1);
}
.orbit-thread.is-on { opacity: 1; transform: rotate(var(--a, 0deg)) translateX(var(--r0, 60px)) scaleX(var(--len, 1)); }
.hero-emblem.is-flying .orbit { visibility: hidden; }
.orbit-fly-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 40; pointer-events: none; visibility: hidden; }
.orbit-fly-layer.is-on { visibility: visible; }
.fly-sym {
  position: absolute; display: grid; place-items: center; border-radius: 50%; transform-origin: 0 0; will-change: transform;
  background: var(--bg); border: 1px solid rgba(212,160,90,.6); box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.fly-sym img { width: 60%; height: 60%; object-fit: contain; }
.orbit-fly .door-sym img { opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .35s var(--ease-out); }
.orbit-fly .door-sym.is-landed img { opacity: 1; transform: none; }
.orbit-fly .door-sym { box-shadow: inset 0 0 0 1px rgba(212,160,90,.18); }
.orbit-fly .door-sym.is-landed { animation: dz-land .5s var(--ease-out); }
@keyframes dz-land { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .emblem-ring.r1 { animation: dz-spin 90s linear infinite; border-top-color: rgba(224,181,106,.75); }
  .emblem-ring.r2 { animation: dz-spin 140s linear infinite reverse; }
  .hero-emblem .emblem { animation: dz-rise .9s var(--ease-out) both; }
  .orbit-disc { animation: dz-pop .6s var(--ease-out) backwards; animation-delay: calc(.25s + var(--i, 0) * 80ms); }
  .orbit-1 { --i: 1; } .orbit-2 { --i: 2; } .orbit-3 { --i: 3; } .orbit-4 { --i: 4; }
  .hero-copy > * { animation: dz-rise .7s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; } .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; } .hero-copy > :nth-child(5) { animation-delay: 240ms; }
}
@keyframes dz-spin { to { transform: rotate(360deg); } }
@keyframes dz-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dz-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@media (max-width: 780px) {
  .hero-v2 { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-emblem { width: min(78vw, 320px); order: -1; }
  .orbit-sym { width: 42px; height: 42px; left: calc(50% - 21px + 44% * var(--x)); top: calc(50% - 21px + 44% * var(--y)); }
  .orbit-label { font-size: 1rem; }
}

/* Cartes des portes */
.doors-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 44px; }
@media (max-width: 1020px) { .doors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .doors-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .doors-grid { grid-template-columns: 1fr; } }
.door-card { display: flex; flex-direction: column; padding: 18px 16px 16px; }
.door-card:hover { transform: translateY(-4px); }
.door-sym {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(212,160,90,.16), rgba(26,20,16,.9) 70%);
  border: 1px solid rgba(212,160,90,.45); transition: transform .3s var(--ease-out);
}
.door-sym img { width: 60%; height: 60%; object-fit: contain; }
.door-card:hover .door-sym { transform: scale(1.06) rotate(-3deg); }
.door-name { font-family: var(--font-title); font-weight: 600; font-size: 1.55rem; color: var(--accent); margin: 0 0 4px; }
.door-card p { font-size: 1.02rem; }
.door-subs { font-family: var(--font-hand); color: var(--copper); font-size: 1.1rem; margin: 0 0 10px; }
.door-card .door-subs { margin-top: auto; }
.door-foot { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: .95rem; }
.door-count { color: var(--muted); }
.door-count b { color: var(--accent); font-weight: 600; }
[data-theme="light"] .door-sym { background: radial-gradient(circle at 50% 40%, #fff8f0, #efe3d1 75%); }

/* À l’affiche */
.featured { margin: 0 0 36px; }
.featured-head .section-lead { color: var(--muted); margin-top: -8px; }
.feat-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .feat-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .feat-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: thin; }
  .feat-rail > * { flex: 0 0 78%; scroll-snap-align: start; }
}

/* Cartes de contenu (vitrines) */
.v-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--bg-card); border: 1px solid rgba(212,160,90,.2); border-radius: var(--radius);
  transition: transform .25s var(--ease-out), border-color .2s ease;
}
a.v-card:hover, a.v-card:focus-visible { transform: translateY(-3px); border-color: rgba(212,160,90,.6); text-decoration: none; }
.v-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(212,160,90,.45); }
.v-media { position: relative; margin: 0; aspect-ratio: 16 / 10; background: #241b14; overflow: hidden; }
.v-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.v-card:hover .v-media img { transform: scale(1.035); }
.demo-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #1A1410; background: rgba(246,239,230,.92); border: 1px dashed #8a5a22; border-radius: 999px; padding: 2px 10px;
}
.v-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.v-kicker { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.v-title { font-family: var(--font-title); font-weight: 600; font-size: 1.4rem; line-height: 1.15; margin: 0; color: var(--ink); }
.v-meta { margin: 0; font-size: .95rem; color: var(--muted); }
.v-summary { margin: 4px 0 0; font-size: 1.04rem; line-height: 1.45; }
.v-details { margin-top: 6px; font-size: .98rem; }
.v-details summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.v-details p { margin: 4px 0 0; color: var(--muted); }

.vitrine { margin: 8px 0 24px; }
.v-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.v-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(212,160,90,.38); font-size: .9rem; font-weight: 600; letter-spacing: .08em; color: var(--accent);
  background: rgba(212,160,90,.06);
}
.v-chip:hover { text-decoration: none; background: rgba(212,160,90,.16); }
.v-sub { margin-top: 34px; }
.v-sub-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.v-sub-sym { width: 44px; height: 44px; padding: 8px; border-radius: 50%; border: 1px solid rgba(212,160,90,.4); background: rgba(26,20,16,.6); flex-shrink: 0; }
[data-theme="light"] .v-sub-sym { background: #fff8f0; }
.v-sub-title { font-family: var(--font-title); font-weight: 600; font-size: 1.35rem; letter-spacing: .1em; margin: 0; color: var(--accent); }
.v-sub-lead { margin: 2px 0 0; color: var(--muted); font-size: 1.02rem; }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.v-empty { color: var(--muted); font-style: italic; border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }

/* En-tête des portes */
.page-hero-v2 { transform: none; gap: 22px; padding: 22px; background: linear-gradient(120deg, rgba(38,30,24,.75), rgba(26,20,16,.4)); }
.page-hero-v2 .door-hero-sym {
  width: 120px; height: 120px; padding: 22px; object-fit: contain; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(212,160,90,.18), rgba(26,20,16,.95) 70%);
}
.page-hero-v2 h1 { font-family: var(--font-title); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 2px; }
.door-tagline { font-family: var(--font-title); font-style: italic; font-size: 1.3rem; margin: 0 0 4px; color: var(--ink); }
.page-hero-v2 .door-subs { margin: 0 0 6px; }
[data-theme="light"] .page-hero-v2 { background: linear-gradient(120deg, #fff8f0, rgba(246,239,230,.6)); }
[data-theme="light"] .page-hero-v2 .door-hero-sym { background: radial-gradient(circle at 50% 40%, #fff8f0, #efe3d1 75%); }

/* Cartes Brass (CMS) marquées fictives */
.brass-editorial-card[data-demo], .merch-card[data-demo] { position: relative; }
.brass-editorial-card[data-demo]::before, .merch-card[data-demo]::before {
  content: var(--demo-label); position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #1A1410; background: rgba(246,239,230,.92); border: 1px dashed #8a5a22; border-radius: 999px; padding: 1px 9px;
}
:root { --demo-label: "Exemple fictif"; }
html[lang="en"] { --demo-label: "Fictional example"; }

/* Thème : bascule sans transitions parasites */
html.theme-switching *:not(.nl-tab), html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .v-card, .v-media img, .door-sym, .btn-gold { transition: none !important; }
  a.v-card:hover, .door-card:hover .door-sym, .v-card:hover .v-media img { transform: none; }
}

/* v2 — réserve la place du contenu chargé depuis le JSON (évite les sauts de mise en page) */
.vitrine[data-vitrine]:empty { min-height: 160vh; }
.feat-rail:empty { min-height: 760px; }
@media (max-width: 640px) { .feat-rail:empty { min-height: 430px; } }
.door-count.is-pending { visibility: hidden; }
.site-scroll-fade { top: 0 !important; transform: translateY(var(--header-h, 72px)); }
@media (min-width: 781px) { .chip[data-theme-toggle] { min-width: 7.8rem; } }

/* ===================== v3 — logo animé du header ===================== */
.brand-mark { position: relative; display: inline-grid; place-items: center; flex-shrink: 0;
  width: 54px; height: 54px; transition: transform .45s var(--ease-out); transform-origin: center; }
.brand-disc { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; isolation: isolate; }
.brand-mark .brand-logo { display: block; width: 100%; height: 100%; box-shadow: none; transition: border-color .3s ease; }
.brand-halo { position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(232,184,106,.55) 0%, rgba(212,160,90,.22) 46%, rgba(212,160,90,0) 70%);
  opacity: .5; transform: none;
  transition: opacity .25s ease; }
.brand-sheen { position: absolute; inset: 0; pointer-events: none; border-radius: 50%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,232,190,.42) 50%, transparent 62%);
  transform: translateX(-120%); }
.brand-veil { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #1a1410; transform-origin: 50% 100%; }
@keyframes dz-halo { from { opacity: .28; transform: scale(.88); } to { opacity: .75; transform: scale(1.1); } }
@keyframes dz-pulse { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes dz-sheen { 0% { transform: translateX(-120%); } 14%, 100% { transform: translateX(120%); } }
/* Tracé d'entrée (1×/session) : le voile se retire du haut (la tige) vers les racines */
.dz-intro .brand-veil { opacity: 1; animation: dz-veil 1.5s cubic-bezier(.65,0,.25,1) .15s both; }
.dz-intro .brand-halo { animation: dz-halo-in 1.9s ease-out both; }
@keyframes dz-veil { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes dz-halo-in { 0% { opacity: 0; transform: scale(.7); } 70% { opacity: .95; transform: scale(1.18); } 100% { opacity: .28; transform: scale(.88); } }
.brand-link:hover .brand-halo, .brand-link:focus-visible .brand-halo { opacity: .8; }
.brand-link:hover .brand-logo, .brand-link:focus-visible .brand-logo { border-color: rgba(232,184,106,.95); }
.site-header.is-compact .brand-mark { transform: scale(.78); }
.site-header.is-compact .brand-link { transform: none; }
[data-theme="light"] .brand-veil { background: #f6efe6; }
[data-theme="light"] .brand-halo { background: radial-gradient(circle, rgba(196,140,60,.45) 0%, rgba(196,140,60,.16) 46%, rgba(196,140,60,0) 70%); }

/* v6 — mode clair seulement : orbite et halo d’accueil plus convaincants sur fond crème.
   Les durées d’animation restent celles du mode sombre. */
[data-theme="light"] .hero-emblem::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(196,140,60,0.48) 0%, rgba(166,104,32,0.22) 40%, rgba(196,140,60,0) 72%);
  opacity: 0.9;
}
[data-theme="light"] .hero-emblem .emblem { filter: none; }
[data-theme="light"] .emblem-ring {
  border-width: 2px;
  border-color: rgba(122, 72, 18, 0.55);
  box-shadow: 0 0 0 1px rgba(196, 140, 60, 0.22), 0 0 28px rgba(166, 104, 32, 0.22);
}
[data-theme="light"] .emblem-ring.r2 {
  border-width: 1.5px;
  border-color: rgba(122, 72, 18, 0.42);
}
[data-theme="light"] .orbit-disc {
  background: #efe3d1;
  border: 2px solid rgba(122, 72, 18, 0.72);
  box-shadow: 0 2px 10px rgba(90, 50, 10, 0.2), 0 0 0 3px rgba(246, 239, 230, 0.7);
}
[data-theme="light"] .orbit-disc img {
  /* #D4A05A sur crème = 2.2:1 ; on assombrit l’or pour viser ≥4.5:1 */
  filter: brightness(0.62) saturate(1.35) contrast(1.08);
}
[data-theme="light"] .orbit-sym.is-lit .orbit-disc,
[data-theme="light"] .orbit-sym:hover .orbit-disc {
  border-color: #6b4214;
  box-shadow: 0 0 0 4px rgba(166, 104, 32, 0.22), 0 0 22px rgba(166, 104, 32, 0.5);
}
[data-theme="light"] .orbit-thread {
  background: linear-gradient(90deg, rgba(107,66,20,.2), #8a5a1c 55%, #c4963a);
  box-shadow: 0 0 8px rgba(138, 90, 28, 0.55);
}
[data-theme="light"] .fly-sym {
  background: #efe3d1;
  border-color: rgba(122, 72, 18, 0.7);
}
@media (prefers-reduced-motion: no-preference) {
  [data-theme="light"] .hero-emblem::before {
    animation: dz-halo 3.6s ease-in-out infinite alternate;
  }
  [data-theme="light"] .emblem-ring.r1 {
    border-color: rgba(122, 72, 18, 0.48);
    border-top-color: #6b4214;
  }
  [data-theme="light"] .emblem-ring.r2 {
    border-color: rgba(122, 72, 18, 0.38);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="light"] .hero-emblem::before {
    animation: none !important;
    opacity: 0.65;
    transform: none;
  }
}
@media (max-width: 760px) { .brand-mark { width: 40px; height: 40px; } .brand-halo { inset: -7px; } }
@media (prefers-reduced-motion: reduce) {
  .brand-halo, .brand-disc, .brand-sheen, .dz-intro .brand-veil, .dz-intro .brand-halo { animation: none !important; }
  .brand-halo { opacity: .45; transform: none; } .brand-veil { display: none; }
}

/* ===================== v3 — navigation des pages longues ===================== */
/* v7 — pas de scroll-behavior:smooth sur html (durée incontrôlable, concurrence avec le JS). Ancres : js/motion.js, ≤280 ms. */
html { scroll-padding-top: calc(var(--header-h, 72px) + var(--toc-h, 0px) + 34px); }
.read-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 300; pointer-events: none; }
.read-progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #a8742e, #D4A05A 40%, #f2cf8c); box-shadow: 0 0 10px rgba(232,184,106,.55); }
/* v6 — mode clair : or/bronze plus sombre, un peu plus épais, ombre pour rester lisible sur fond crème */
[data-theme="light"] .read-progress { height: 4px; }
[data-theme="light"] .read-progress span {
  background: linear-gradient(90deg, #5c3810, #6b4214 42%, #8a5a1c);
  box-shadow: 0 1px 0 rgba(90, 50, 10, 0.28), 0 0 8px rgba(107, 66, 20, 0.55);
}
/* Flèche « défiler » */
.page-hero-v2, .hero-v2 { position: relative; }
.scroll-cue { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none;
  padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(212,160,90,.35); background: rgba(26,20,16,.35);
  transition: opacity .45s ease, transform .45s var(--ease-out); }
[data-theme="light"] .scroll-cue { background: rgba(255,248,240,.7); }
.scroll-cue:hover { text-decoration: none; border-color: rgba(212,160,90,.8); }
.hero-v2 .scroll-cue { right: auto; left: 50%; bottom: -6px; transform: translateX(-50%); }
.scroll-cue svg { animation: dz-cue 1.8s ease-in-out infinite; }
@keyframes dz-cue { 0%, 100% { transform: translateY(-2px); opacity: .7; } 50% { transform: translateY(3px); opacity: 1; } }
.scroll-cue.is-gone { opacity: 0; pointer-events: none; transform: translateY(8px); }
.hero-v2 .scroll-cue.is-gone { transform: translate(-50%, 8px); }
/* Retour en haut */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 80;
  display: inline-flex; align-items: center; gap: 0; height: 46px; min-width: 46px; padding: 0 13px; border-radius: 999px;
  border: 1px solid rgba(212,160,90,.6); background: rgba(26,20,16,.88); color: #E0B56A; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,.35); opacity: 0; transform: translateY(14px) scale(.92); pointer-events: none;
  transition: opacity .3s ease, transform .35s var(--ease-out), border-color .2s ease; font: inherit; }
[data-theme="light"] .to-top { background: rgba(255,248,240,.95); color: #8a5a1c; box-shadow: 0 8px 22px rgba(60,40,20,.18); }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { border-color: #E0B56A; }
.to-top-t { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .9rem; transition: max-width .35s var(--ease-out), margin .35s; }
@media (hover: hover) and (min-width: 781px) { .to-top:hover .to-top-t, .to-top:focus-visible .to-top-t { max-width: 140px; margin-left: 8px; } }
/* Sommaire : ruban collant (mobile / écrans moyens) */
.toc { position: sticky; top: var(--header-h, 72px); z-index: 96; min-height: 46px; margin: 6px -4px 10px;
  background: var(--bg);
  border-bottom: 1px solid rgba(212,160,90,.22);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.toc-title { display: none; }
.toc ol { list-style: none; margin: 0; padding: 7px 4px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }
.toc ol::-webkit-scrollbar { display: none; }
.toc li { flex: 0 0 auto; scroll-snap-align: center; }
.toc a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(212,160,90,.3); color: var(--ink); font-size: .95rem; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.toc a:hover { text-decoration: none; border-color: rgba(212,160,90,.7); }
.toc a[aria-current] { background: rgba(212,160,90,.2); border-color: #D4A05A; color: var(--accent); }
.toc-n { font-size: .78rem; min-width: 1.4em; padding: 1px 6px; border-radius: 999px; background: rgba(212,160,90,.16); color: var(--muted); text-align: center; }
.toc:not(.is-ready) { visibility: hidden; }
/* Grand écran : rail vertical dans la marge gauche */
@media (min-width: 1100px) {
  .toc { position: fixed; top: calc(var(--header-h, 72px) + 28px); left: max(16px, calc((100vw - var(--max)) / 2 - 196px)); width: 172px;
    min-height: 0; margin: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0;
    opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .35s var(--ease-out); }
  .toc.is-ready { opacity: 1; transform: none; }
  .toc-title { display: block; margin: 0 0 10px 12px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
  .toc ol { display: block; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; border-left: 1px solid rgba(212,160,90,.22); }
  .toc a { display: flex; justify-content: space-between; border: 0; border-radius: 0 8px 8px 0; padding: 5px 10px 5px 12px; margin-left: -1px;
    border-left: 2px solid transparent; font-size: .95rem; white-space: normal; line-height: 1.25; color: var(--muted); }
  .toc a[aria-current] { background: linear-gradient(90deg, rgba(212,160,90,.16), transparent); border-left-color: #E0B56A; color: var(--accent); }
}
/* Outils de vitrine : recherche + filtres */
.v-tools { margin: 18px 0 6px; padding: 14px; border-radius: 16px; border: 1px solid rgba(212,160,90,.25);
  background: rgba(26,20,16,.35); display: grid; gap: 12px; }
[data-theme="light"] .v-tools { background: rgba(255,248,240,.75); }
.v-q-wrap { position: relative; display: flex; align-items: center; }
.v-q-label { position: absolute; left: 12px; display: grid; place-items: center; color: var(--accent); pointer-events: none; }
.v-q { width: 100%; height: 46px; padding: 0 44px 0 42px; border-radius: 999px; font: inherit; font-size: 1.05rem;
  color: var(--ink); background: var(--bg); border: 1px solid rgba(212,160,90,.4); outline: none; -webkit-appearance: none; appearance: none; }
.v-q::-webkit-search-cancel-button { display: none; }
.v-q:focus-visible { border-color: #E0B56A; box-shadow: 0 0 0 3px rgba(212,160,90,.25); }
.v-q::placeholder { color: var(--muted); opacity: .85; }
.v-q-clear { position: absolute; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(212,160,90,.16);
  color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.v-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.v-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .95rem; color: var(--ink); background: transparent; border: 1px solid rgba(212,160,90,.32);
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease; }
.v-filter:hover { border-color: rgba(212,160,90,.75); }
.v-filter[aria-pressed="true"] { background: #D4A05A; border-color: #D4A05A; color: #1A1410; }
.v-filter.is-zero { opacity: .45; }
.v-filter-n { font-size: .78rem; padding: 1px 6px; border-radius: 999px; background: rgba(212,160,90,.18); }
.v-filter[aria-pressed="true"] .v-filter-n { background: rgba(26,20,16,.18); }
.v-tools-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.v-status { margin: 0; color: var(--muted); font-size: .95rem; }
.v-toggle-all { font: inherit; font-size: .92rem; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; }
.v-noresult { margin: 18px 0; padding: 26px 18px; text-align: center; border: 1px dashed rgba(212,160,90,.45); border-radius: 16px; }
.v-noresult-t { margin: 0 0 12px; font-family: var(--font-title); font-size: 1.35rem; }
.v-noresult[hidden], .v-card[hidden], .v-sub[hidden], .toc li[hidden] { display: none !important; }
/* Sections repliables */
.v-sub-head { display: block; margin-bottom: 14px; }
.v-sub-h { margin: 0; }
.v-sub-toggle { display: flex; align-items: center; gap: 14px; width: 100%; padding: 6px 4px; border: 0; background: none; cursor: pointer; text-align: left; color: inherit; font: inherit; border-radius: 12px; }
.v-sub-toggle:focus-visible { outline: 2px solid #E0B56A; outline-offset: 2px; }
.v-sub-count { margin-left: auto; font-family: var(--font-body, inherit); font-size: .9rem; letter-spacing: 0; color: var(--muted);
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(212,160,90,.3); white-space: nowrap; }
.v-sub-chev { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(212,160,90,.35); color: var(--accent); flex-shrink: 0; transition: transform .3s var(--ease-out); }
.v-sub.is-collapsed .v-sub-chev { transform: rotate(-90deg); }
.v-sub-toggle:hover .v-sub-chev { border-color: #E0B56A; }
.v-sub-lead { margin: 4px 0 0 62px; }
.v-sub.is-collapsed { margin-top: 18px; }
.v-sub.is-collapsed .v-sub-head { margin-bottom: 0; }
.v-sub.is-collapsed .v-sub-lead { display: none; }
.v-sub + .v-sub { border-top: 1px solid rgba(212,160,90,.14); padding-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .v-sub.is-opening .v-sub-inner { animation: dz-open .4s var(--ease-out); }
}
@keyframes dz-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .v-sub-lead { margin-left: 0; }
  .v-sub-title { font-size: 1.12rem; letter-spacing: .06em; }
  .v-sub-toggle { gap: 10px; }
  .v-sub-count { font-size: .82rem; padding: 2px 8px; }
  .scroll-cue { right: 0; bottom: 0; }
  .v-tools { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
  .to-top, .scroll-cue, .toc, .v-sub-chev, .to-top-t { transition: none; }
}
@media print { .read-progress, .to-top, .scroll-cue, .toc, .v-tools { display: none !important; } }

/* v3.1 — orbite : mouvement réduit = fil et étiquette sans transition */
@media (prefers-reduced-motion: reduce) {
  .orbit-thread, .orbit-label, .orbit-disc { transition: none !important; }
}
/* v3.1 — titres de sous-univers sur une ligne en mobile */
.v-sub-pre { font-size: .72em; letter-spacing: .08em; opacity: .75; margin-right: .15em; }
@media (max-width: 640px) {
  .v-sub-title { font-size: clamp(.92rem, 4.4vw, 1.12rem); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .v-sub-toggle { gap: 8px; }
  .v-sub-sym { width: 36px; height: 36px; padding: 6px; }
}

/* =====================================================================
   v4 — accessibilité, lecteur, infolettre, liens agenda/presse
   ===================================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid var(--ink); outline-offset: 2px; text-decoration: none; }
main:focus, h1[tabindex="-1"]:focus { outline: none; }
.chip:focus-visible, .btn-gold:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
.nav a:focus-visible, .card:focus-visible, .v-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.play-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; color: var(--ink); }
.play-chip .play-ico { color: var(--accent); }
.play-chip.is-playing, .play-chip[aria-pressed="true"] { background: rgba(212,160,90,.16); color: var(--accent); }
.play-chip[aria-busy="true"] { opacity: .7; cursor: progress; }
.hero-listen { margin: 8px 0 4px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.hero-ctas .play-chip { min-height: 44px; }
.footer-links { flex-basis: 100%; order: 3; }
.v-cal { margin: 6px 0 0; font-size: .95rem; }
/* infolettre */
.newsletter { scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.nl-lead { color: var(--muted); }
.nl-form { display: grid; gap: 12px; margin-top: 10px; }
.nl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.nl-field { grid-column: 1 / -1; font-weight: 600; }
.nl-input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1.05rem; min-width: 0; }
.nl-input[aria-invalid="true"] { border-color: var(--terracotta); }
.nl-doors { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nl-doors legend { padding: 0; margin-bottom: 4px; color: var(--muted); font-size: .95rem; }
.nl-door, .nl-consent { display: inline-flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.nl-door input, .nl-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.nl-consent { font-size: .98rem; line-height: 1.4; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-msg { min-height: 1.5em; margin: 0; font-weight: 600; }
.nl-msg[data-kind="ok"] { color: var(--ok); }
.nl-msg[data-kind="err"] { color: var(--terracotta); }
.nl-form.is-done .nl-msg::before { content: "✓ "; }
@media (max-width: 520px) { .nl-row { grid-template-columns: 1fr; } .nl-submit { justify-content: center; } }
.play-chip[hidden] { display: none; }
/* v4 — contrastes (audit axe) */
.lang-switch .chip.is-active, .lang-switch .chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
[data-theme="light"] .lang-switch { background: rgba(255,248,240,.85); }
[data-theme="light"] .lang-switch .chip:not([aria-pressed="true"]) { color: #3d332b; }
.v-sub-pre { opacity: 1; color: var(--muted); }
main p a:not(.chip):not(.btn-gold):not(.brass-action), .site-footer a, .nl-consent a, .press-contacts a, figcaption a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ===================== v5 — orbite sans rognage, replis doux, sommaire à gauche, repères « plus bas » ===================== */
:root { --ease-soft: cubic-bezier(.22, 1, .36, 1); --dur-soft: .28s;
  --rail-pad: max(0px, calc(212px - max(0px, (100vw - var(--max)) / 2) - 20px)); }
::selection { background: rgba(212,160,90,.35); }

/* 1. Orbite : le voile sous le header n'existe qu'une fois la page défilée ; pendant le survol, le héros passe
      au-dessus de la bande kente (sous le header) → disque, halo, agrandissement et étiquette jamais rognés. */
.site-scroll-fade { opacity: var(--fade-k, 0); transition: opacity .3s ease; }
html.dz-orbit-hot .site-scroll-fade { opacity: 0; visibility: hidden; }
html.dz-orbit-hot .hero-v2 { z-index: 97; }
.orbit-label { transition: opacity .26s var(--ease-soft), transform .34s var(--ease-soft); }
.orbit-disc { transition: transform .3s var(--ease-soft), border-color .2s ease, box-shadow .3s var(--ease-soft), background-color .2s ease, opacity .3s ease; }

/* 2. Replier / déplier : hauteur animée (0fr → 1fr), contenu en fondu + léger glissé, chevron qui tourne */
.v-sub { transition: margin-top var(--dur-soft) var(--ease-soft); }
.v-sub-head { transition: margin-bottom var(--dur-soft) var(--ease-soft); }
.v-sub-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-soft) var(--ease-soft); }
.v-sub-inner { min-height: 0; opacity: 1; transform: none;
  transition: opacity .36s ease .05s, transform var(--dur-soft) var(--ease-soft); }
.v-sub.is-collapsed .v-sub-body { grid-template-rows: 0fr; }
.v-sub.is-collapsed .v-sub-inner { opacity: 0; transform: translateY(-10px); transition: opacity .24s ease, transform .36s var(--ease-soft); }
.v-sub.is-collapsed .v-sub-inner, .v-sub.is-anim .v-sub-inner { overflow: hidden; }
.v-sub.is-filtered .v-sub-body { grid-template-rows: 1fr; }
.v-sub.is-filtered .v-sub-inner { opacity: 1; transform: none; }
.v-sub-lead { max-height: 9em; overflow: hidden; transition: max-height var(--dur-soft) var(--ease-soft), opacity .3s ease, margin var(--dur-soft) var(--ease-soft); }
.v-sub.is-collapsed .v-sub-lead { display: block; max-height: 0; opacity: 0; margin-top: 0; }
.v-sub-chev { transition: transform var(--dur-soft) var(--ease-soft), border-color .25s ease, background-color .25s ease; }
.v-sub-toggle:hover .v-sub-chev { background: rgba(212,160,90,.1); }
.v-sub.v-instant, .v-sub.v-instant * { transition: none !important; }
.vitrine.is-filtering .v-card:not([hidden]), .v-noresult:not([hidden]) { animation: dz-soft-in .28s var(--ease-soft) both; }
@keyframes dz-soft-in { from { opacity: 0; transform: translateY(8px); } }

/* Menu mobile : panneau et voile en fondu + glissé, liens en cascade */
@media (max-width: 780px) {
  .nav { display: flex; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-10px) scale(.985); transform-origin: 50% 0;
    transition: opacity .3s ease, transform var(--dur-soft) var(--ease-soft), visibility 0s linear var(--dur-soft); }
  .site-header.nav-open .nav { visibility: visible; opacity: 1; pointer-events: auto; transform: none;
    transition: opacity .34s ease, transform var(--dur-soft) var(--ease-soft), visibility 0s; }
  .nav > * { opacity: 0; transform: translateY(-6px); transition: opacity .28s ease, transform .36s var(--ease-soft); }
  .site-header.nav-open .nav > * { opacity: 1; transform: none; }
  .site-header.nav-open .nav > :nth-child(2) { transition-delay: 35ms; } .site-header.nav-open .nav > :nth-child(3) { transition-delay: 70ms; }
  .site-header.nav-open .nav > :nth-child(4) { transition-delay: 105ms; } .site-header.nav-open .nav > :nth-child(5) { transition-delay: 140ms; }
  .site-header.nav-open .nav > :nth-child(6) { transition-delay: 175ms; } .site-header.nav-open .nav > :nth-child(n+7) { transition-delay: 210ms; }
}
.nav-overlay { opacity: 1; transition: opacity .38s ease; }
@starting-style { .nav-overlay:not([hidden]) { opacity: 0; } }
.nav-overlay.is-leaving { opacity: 0; }
.nav-toggle-bars span { transition: transform .38s var(--ease-soft), opacity .25s ease; }

/* 3. Sommaire : rail à gauche dès 1100 px ; la colonne de contenu se décale juste ce qu'il faut */
@media (min-width: 1100px) {
  .toc { max-height: calc(100vh - var(--header-h, 72px) - 56px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .toc a { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
  html:has(.wrap [data-toc]) :is(main, .site-footer) { padding-left: var(--rail-pad); }
  html:has(.wrap [data-toc]) .kente-strip { margin-left: var(--rail-pad); }
}

/* 4. Repères « il y a plus bas » */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(8px); }
  .rv.rv-in { opacity: 1; transform: none; transition: opacity .28s var(--ease-soft), transform .28s var(--ease-soft); }
}
.dot-nav { position: fixed; right: max(14px, env(safe-area-inset-right)); top: 50%; z-index: 85; display: block;
  transform: translateY(-50%); transition: opacity .4s ease; }
.dot-nav ol > li:not(.nl-dot-li) { display: none; }
.dot-nav:not(.is-ready) { opacity: 0; }
.dot-nav ol { list-style: none; margin: 0; padding: 8px 5px; display: grid; gap: 2px; border-radius: 999px;
  background: var(--bg);
  border: 1px solid rgba(212,160,90,.2); }
.dot-nav a { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; text-decoration: none; outline: none; }
.dot-nav-d { width: 8px; height: 8px; border-radius: 50%; background: rgba(212,160,90,.4);
  transition: transform .35s var(--ease-soft), background-color .3s ease, box-shadow .35s var(--ease-soft); }
.dot-nav a:hover .dot-nav-d { transform: scale(1.35); background: #E0B56A; }
.dot-nav a[aria-current] .dot-nav-d { background: #E0B56A; transform: scale(1.5); box-shadow: 0 0 0 4px rgba(212,160,90,.16), 0 0 12px rgba(232,184,106,.6); }
.dot-nav a:focus-visible .dot-nav-d { outline: 2px solid #E0B56A; outline-offset: 4px; }
.dot-nav-l { position: absolute; right: calc(100% + 10px); top: 50%; white-space: nowrap; font-size: .88rem; letter-spacing: .03em; line-height: 1;
  padding: 6px 11px; border-radius: 999px; background: rgba(26,20,16,.92); color: #E0B56A; border: 1px solid rgba(212,160,90,.4);
  opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .28s var(--ease-soft), transform .34s var(--ease-soft); }
[data-theme="light"] .dot-nav-l { background: rgba(255,248,240,.97); color: #7a4f17; }
.dot-nav a:hover .dot-nav-l, .dot-nav a:focus-visible .dot-nav-l { opacity: 1; transform: translate(0, -50%); }
.next-pill { white-space: nowrap; position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 85; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem;
  background: var(--bg-card);
  border: 1px solid rgba(212,160,90,.45); box-shadow: 0 8px 20px rgba(0,0,0,.28);
  opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity .22s var(--ease-soft), transform .22s var(--ease-soft); }
.next-pill.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.next-pill:hover { text-decoration: none; border-color: #E0B56A; }
.next-pill-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.next-pill-t { font-weight: 700; color: var(--accent); }
.next-pill svg { color: var(--accent); animation: dz-cue 1.8s ease-in-out infinite; }
html.has-player .next-pill { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 1200px) and (hover: hover) {
  .dot-nav ol > li:not(.nl-dot-li) { display: list-item; }
  .next-pill { display: none; }
}
.scroll-cue { box-shadow: 0 0 0 0 rgba(212,160,90,.0); }
@media (prefers-reduced-motion: no-preference) {
  .hero-v2 .scroll-cue:not(.is-gone) { animation: dz-cue-ring 2.6s ease-out 1.2s infinite; }
}
@keyframes dz-cue-ring { 0% { box-shadow: 0 0 0 0 rgba(212,160,90,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(212,160,90,0); } }
@media (prefers-reduced-motion: reduce) {
  .v-sub, .v-sub *, .nav, .nav > *, .nav-overlay, .dot-nav, .dot-nav *, .next-pill, .site-scroll-fade { transition: none !important; }
  .next-pill svg, .vitrine.is-filtering .v-card, .v-noresult { animation: none !important; }
}

/* ===================== v6 — point Infolettre + onglet Lettre DZOTINÚ ===================== */
.nl-dot {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; padding: 0; background: none; color: #E0B56A; cursor: pointer; border-radius: 50%;
  outline: none; -webkit-tap-highlight-color: transparent;
}
.nl-dot-icon { display: grid; place-items: center; width: 18px; height: 18px; transform-origin: 50% 50%; }
.nl-dot-icon svg { display: block; width: 16px; height: 16px; }
[data-theme="light"] .nl-dot { color: #6b4214; }
.nl-dot:hover, .nl-dot:focus-visible, .nl-dot[aria-expanded="true"] { color: #E0B56A; }
[data-theme="light"] .nl-dot:hover,
[data-theme="light"] .nl-dot:focus-visible,
[data-theme="light"] .nl-dot[aria-expanded="true"] { color: #5c3810; }
.nl-dot:focus-visible { outline: 2px solid #E0B56A; outline-offset: 3px; }
.nl-dot.is-done { color: var(--ok, #9ecf9a); }
[data-theme="light"] .nl-dot.is-done { color: #3d7a3a; }
@media (prefers-reduced-motion: no-preference) {
  .nl-dot-icon:not(.is-static) { animation: nl-breathe 2.8s ease-in-out infinite; }
}
@keyframes nl-breathe {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.12); opacity: 1; }
}

.nl-tab {
  position: fixed;
  right: calc(max(14px, env(safe-area-inset-right)) + 44px);
  top: 50%;
  z-index: 86;
  width: min(22.5rem, calc(100vw - 5.5rem));
  max-height: min(70vh, calc(100vh - 160px));
  padding: 0;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(212,160,90,.4);
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
  color: var(--ink);
  /* Safari n’interpole pas calc(100% + 60px) vers 0 : même forme calc() des deux côtés. */
  -webkit-transform: translateY(-50%) translateX(calc(100% + 60px));
  transform: translateY(-50%) translateX(calc(100% + 60px));
  opacity: 0;
  /* Pas de visibility/display/hidden : WebKit saute la transition. */
  pointer-events: none;
  -webkit-transition: -webkit-transform 0.3s ease-out, transform 0.3s ease-out, opacity 0.3s ease-out;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.nl-tab.is-open {
  -webkit-transform: translateY(-50%) translateX(calc(0% + 0px));
  transform: translateY(-50%) translateX(calc(0% + 0px));
  opacity: 1;
  pointer-events: auto;
  -webkit-transition: -webkit-transform 0.42s ease-out, transform 0.42s ease-out, opacity 0.42s ease-out;
  transition: transform 0.42s ease-out, opacity 0.42s ease-out;
}
.nl-tab-inner {
  max-height: min(70vh, calc(100vh - 160px));
  overflow: auto;
  padding: 16px 16px 14px;
  -webkit-overflow-scrolling: touch;
}
[data-theme="light"] .nl-tab {
  background: rgba(255, 248, 240, 0.97);
  border-color: rgba(122, 72, 18, 0.28);
  box-shadow: 0 14px 32px rgba(60, 40, 20, 0.14);
}
.nl-tab-x {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.nl-tab-x:hover, .nl-tab-x:focus-visible { color: var(--ink); }
.nl-tab-x:focus-visible { outline: 2px solid #E0B56A; outline-offset: 2px; }
.nl-tab-title {
  margin: 0 28px 6px 0; font-family: var(--font-display);
  font-size: 1.15rem; letter-spacing: .08em; font-weight: 500;
}
.nl-tab-lead { margin: 0 0 12px; font-size: .98rem; color: var(--muted); line-height: 1.4; }
.nl-tab-form { display: grid; gap: 10px; margin: 0; }
.nl-tab-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.nl-tab-row .nl-input { min-width: 0; min-height: 44px; }
.nl-tab-form .nl-submit { min-height: 44px; padding: 0 16px; white-space: nowrap; }
.nl-tab-form .nl-consent { font-size: .82rem; line-height: 1.35; color: var(--muted); }
.nl-tab-form .nl-msg { min-height: 1.3em; font-size: .9rem; }
@media (max-width: 520px) {
  .nl-tab { right: max(12px, env(safe-area-inset-right)); width: min(22.5rem, calc(100vw - 24px)); }
  .nl-tab.is-open { /* leave a sliver so the envelope stays tappable */
  }
  .nl-tab-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-dot-icon, .nl-dot-icon:not(.is-static) { animation: none !important; opacity: 1; transform: none; }
  .nl-tab, .nl-tab.is-open { transition: none !important; }
}

/* =====================================================================
   v7 — fluidité (transitions courtes) + typographie harmonisée
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
  animation-timing-function: var(--ease-soft, cubic-bezier(.22, 1, .36, 1));
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* Cartes / sections sombres : kicker or lisible, titres Caveat ivoire (AA). */
[data-theme="dark"] .section h2,
[data-theme="dark"] .section-title,
[data-theme="dark"] .card h2,
[data-theme="dark"] .v-title,
[data-theme="dark"] .v-sub-h,
[data-theme="dark"] .merch-card h3,
[data-theme="dark"] .brass-editorial-card h3,
[data-theme="dark"] .brass-editorial h2,
[data-theme="dark"] .press-card h3,
[data-theme="dark"] .ag-title,
[data-theme="dark"] .ag-mtitle,
[data-theme="dark"] .ecoute-heading,
[data-theme="dark"] h2.ecoute-heading {
  font-family: var(--font-hand);
  font-weight: 700;
  color: #F6EFE6; /* 15.9:1 sur #1a1410 */
}
[data-theme="dark"] .ecoute-kicker,
[data-theme="dark"] .v-kicker,
[data-theme="dark"] .ag-kicker,
[data-theme="dark"] .door-subs {
  color: #E8C37A; /* 10.8:1 sur #1a1410 */
}

/* Mode clair, fonds clairs : titres Caveat en encres sombres (AA). Les cartes
   déjà sombres (ex. EP) gardent l’ivoire défini plus haut. */
[data-theme="light"] .section h2,
[data-theme="light"] .section-title,
[data-theme="light"] .card h2,
[data-theme="light"] .v-title,
[data-theme="light"] .v-sub-h,
[data-theme="light"] .merch-card h3,
[data-theme="light"] .brass-editorial-card h3,
[data-theme="light"] .brass-editorial h2,
[data-theme="light"] .press-card h3,
[data-theme="light"] .ag-title,
[data-theme="light"] .ag-mtitle {
  font-family: var(--font-hand);
  font-weight: 700;
  color: #1a1410; /* 15.9:1 sur #f6efe6 / #fff8f0 */
}
[data-theme="light"] .ecoute-kicker,
[data-theme="light"] .v-kicker,
[data-theme="light"] .ag-kicker,
[data-theme="light"] .door-subs {
  color: #8A5A1C; /* ≥ 5.5:1 sur crème ; l’EP sombre surcharge en #E8C37A */
}
[data-theme="light"] .ecoute-spotlight .ecoute-kicker,
[data-theme="light"] .ecoute-spotlight .ecoute-ep-label {
  color: #E8C37A;
}
[data-theme="light"] .ecoute-spotlight .ecoute-heading,
[data-theme="light"] .ecoute-spotlight h2.ecoute-heading {
  font-family: var(--font-hand);
  font-weight: 700;
  color: #F6EFE6;
}

/* Survols de cartes / fiches : même petit levée, sans changement d’échelle. */
a.v-card:hover, a.v-card:focus-visible,
a.brass-editorial-card:hover, a.brass-editorial-card:focus-visible,
.merch-card[data-merch-card]:hover {
  transform: translateY(-3px);
  border-color: rgba(212,160,90,.6);
  text-decoration: none;
}
.merch-card { transition: transform .2s var(--ease-soft, ease), border-color .2s ease, box-shadow .2s ease; }
a.brass-editorial-card { transition: transform .2s var(--ease-soft, ease), border-color .2s ease, box-shadow .2s ease; }

/* =====================================================================
   v9 — (1) Safari : sommaire de gauche sans clignotement
   Le rail garde sa propre couche GPU du début à la fin du fondu (translate3d → translate3d,
   jamais « none ») : Safari ne la détruit plus en fin d'animation et ne repeint plus le fond texturé
   dessous à chaque image. Même fondu doux qu'avant (opacité + léger glissé, .35 s).
   ===================================================================== */
@media (min-width: 1100px) {
  .toc {
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
    -webkit-transform: translate3d(-8px, 0, 0); transform: translate3d(-8px, 0, 0);
  }
  .toc.is-ready { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@media (min-width: 1100px) and (prefers-reduced-motion: reduce) {
  .toc, .toc.is-ready { -webkit-transform: none; transform: none; will-change: auto; }
}

/* =====================================================================
   v9 — (3) Mode clair seulement : traits fins plus lisibles (Safari + Chrome)
   L'or #D4A05A presque transparent disparaissait sur le crème. En clair, les mêmes traits passent
   au bronze #8A5A1C (déjà la couleur des surtitres clairs), un peu plus couvrant. Épaisseurs et formes
   inchangées, sauf le cercle de l'enveloppe (1,5 px). :where() garde la priorité des survols et états actifs.
   Le mode sombre n'est pas touché : tout est sous [data-theme="light"].
   ===================================================================== */
[data-theme="light"] { --line: #c2ab8c; } /* était #d9cbb8 : champs, cartes Brass, agenda, presse, pied de page */
/* traits « contenants » (cartes, panneaux, séparateurs) */
:where([data-theme="light"]) :is(.v-card, .v-tools, .page-hero, .carousel, .media-player, .merch-card) { border-color: rgba(138,90,28,.36); }
:where([data-theme="light"]) .v-sub + .v-sub { border-top-color: rgba(138,90,28,.36); }
:where([data-theme="light"]) .section { border-left-color: rgba(138,90,28,.5); }
[data-theme="light"] .card:not(:hover) { border-color: rgba(138,90,28,.34); }
/* traits « interactifs » (puces, filtres, champs, pastilles, cercles des symboles) */
:where([data-theme="light"]) :is(.lang-switch, .chip, .badge, .orbit-label, .scroll-cue, .door-sym, .door-hero-sym,
  .v-q, .v-filter, .v-sub-sym, .v-sub-count, .v-sub-chev, .to-top, .dot-nav-l) { border-color: rgba(138,90,28,.55); }
:where([data-theme="light"]) .brand-mark .brand-logo { border-color: rgba(138,90,28,.6); }
/* rail du sommaire (grand écran) et ruban (petits écrans) */
@media (min-width: 1100px) { :where([data-theme="light"]) .toc ol { border-left-color: rgba(138,90,28,.42); } }
@media (max-width: 1099px) {
  :where([data-theme="light"]) .toc a { border-color: rgba(138,90,28,.5); }
  :where([data-theme="light"]) .toc { border-bottom-color: rgba(138,90,28,.36); }
}
/* cercle de l'enveloppe Infolettre + onglet */
[data-theme="light"] .dot-nav ol { border: 1.5px solid rgba(122,72,18,.62); }
[data-theme="light"] .nl-tab { border-color: rgba(138,90,28,.5); }
:where([data-theme="light"]) .nav a:is(:hover, [aria-current="page"]) { border-color: rgba(138,90,28,.5); }
:where([data-theme="light"]) .link-list a { border-color: rgba(138,90,28,.45); }
:where([data-theme="light"]) .page-hero-v2 .door-hero-sym { border-color: rgba(138,90,28,.55); }
