@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --bg: #1a1410;
  --bg-card: #261e18;
  --ink: #f6efe6;
  --muted: #cbbba8;
  --line: #3d3229;
  --accent: #d4a05a;
  --accent-ink: #1a1410;
  --ok: #9ecf9a;
  --copper: #c4843f; /* was #b87333 — AA 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.55;
  background-color: var(--bg);
  background-image:
    /* paper / ink grain */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0 0.35 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"),
    /* subtle kente weave */
    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%);
  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: cover;
  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: contrast(1.05) saturate(1.05);
}

.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.85rem; /* was 0.72rem — trop petit pour lisibilité */
  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(--muted);
  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(--muted);
  margin: 0 0 12px;
  max-width: 38em;
}

/* Hero = 2 logos indépendants :
   .logo-hero-merch  → assets/logo-hero-01-merch.jpg
   .logo-hero-sceau  → assets/logo-hero-02-sceau-cercles.jpg
   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: cover;
  border: 2px solid rgba(212,160,90,0.7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  background: #000;
}

.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;
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(212,160,90,0.75);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
  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);
}
.brand-logo:hover {
  /* pas de transform ici : laisse breathe (scale 1.08) intact */
  border-color: rgba(212,160,90,0.95);
  box-shadow: 0 0 0 7px rgba(212,160,90,0.55), 0 6px 16px rgba(0,0,0,0.4);
}
.brand-logo.is-seal-mini:hover {
  box-shadow: 0 0 0 5px rgba(212,160,90,0.65), 0 4px 12px 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(--muted);
  font-size: 0.98rem;
}
.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(--muted);
}
.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: 0.92rem;
  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: 17px; }
  .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: #5c4f43;
  --line: #d9cbb8;
  --accent: #9a6b2e;
  --accent-ink: #f6efe6;
  --copper: #8a5520;
  --terracotta: #a34e30;
  --indigo: #3a3558;
  --ok: #3d7a3a;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.4 0 0 0 0 0.25 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.28'/%3E%3C/svg%3E"),
    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%);
}

[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"] .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;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}


/* 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);
  height: 140px;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(26, 20, 16, 1) 0%,
    rgba(26, 20, 16, 0.92) 22%,
    rgba(26, 20, 16, 0.65) 48%,
    rgba(26, 20, 16, 0.28) 72%,
    rgba(26, 20, 16, 0) 100%
  );
}
[data-theme="light"] .site-scroll-fade {
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 230, 1) 0%,
    rgba(245, 239, 230, 0.94) 22%,
    rgba(245, 239, 230, 0.68) 48%,
    rgba(245, 239, 230, 0.3) 72%,
    rgba(245, 239, 230, 0) 100%
  );
}

/* 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.55;
  filter: contrast(1.2) saturate(1.05);
  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 {
  box-shadow: 0 10px 24px rgba(0,0,0,0.34);
  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-logo.is-breathing {
  transform-origin: center center;
  will-change: transform, box-shadow;
  animation: sankofa-breathe 1.6s ease-in-out infinite alternate;
}
.brand-link.is-brand-breathing .brand-word {
  transform-origin: left center;
  will-change: transform, opacity;
  animation: sankofa-word-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes sankofa-breathe {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(26,20,16,0.5), 0 2px 8px rgba(0,0,0,0.35);
  }
  to {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(212,160,90,0.7), 0 0 24px rgba(212,160,90,0.45), 0 8px 20px rgba(0,0,0,0.4);
  }
}
@keyframes sankofa-word-breathe {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.03); opacity: 0.92; }
}
.brand-logo.is-seal-mini {
  animation: none !important;
  transform: scale(0.74);
  transform-origin: center center;
  transition: transform 0.4s ease-in-out, box-shadow 0.35s ease;
  box-shadow: 0 0 0 2px rgba(212,160,90,0.5), 0 2px 8px rgba(0,0,0,0.35);
}

.chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  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(22px);
  transition: opacity 0.6s ease-out var(--fade-delay, 0ms), transform 0.6s ease-out var(--fade-delay, 0ms);
}
.card.will-fade.is-visible,
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out var(--fade-delay, 0ms),
              transform 0.25s ease, 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: 5.75rem;
    padding: 0 10px;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .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-logo.is-breathing { animation: none !important; }
  .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: 0.92rem;
  color: var(--copper);
  font-weight: 500;
}
.section-lead {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  font-size: 0.98rem;
}
.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: 0.92rem;
  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: 14px;
  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: 0.92rem;
  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: 0.9rem; opacity: 0.8; margin-top: 10px; }
.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: 0.85; }
.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.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}
.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: 0.78; max-width: 36em; }
.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.72rem;
  letter-spacing: 0.36em;
  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.82rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}
@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; }
}
[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;
}
[data-theme="light"] .ecoute-heading,
[data-theme="light"] .ecoute-ep-title { color: #f8f0e4; }

/* 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(--muted); 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.78rem;
  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); }
}
