/* =========================================================================
   ODE — Odyssée d'Entrepreneur
   Feuille unique.
   Couleurs + polices : kit de marque ODE (bronze/or sur noir, Cinzel + Inter).
   Mise en page, échelles, poids, absence de cartes : référence « Dala ».
   Le violet et l'ambre de Dala sont écartés : l'or ODE #DAAE67 et le bronze
   clair #DABF97 les remplacent partout.
   ========================================================================= */

:root {
  /* — Couleurs : kit ODE — */
  --bg:              #0B0B0C;
  --surface:         #111111;
  --surface-raised:  #16171A;
  --border:          #2C2A27;
  --border-strong:   #44403A;

  --text:            #E5DFD7;
  --text-secondary:  #C4BDB3;
  --text-muted:      #A8A29A;

  --gold:            #DAAE67;   /* remplace l'Electric Iris de Dala */
  --bronze-light:    #DABF97;   /* remplace le Saffron Spark de Dala */
  --bronze-dark:     #A67C52;   /* décor uniquement, jamais < 18px */
  --on-gold:         #111111;

  /* — Polices : kit ODE — */
  --font-display: "Cinzel", "Marcellus", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* — Poids : convention Dala — */
  --w-body:  200;
  --w-mid:   400;
  --w-label: 600;

  /* — Échelle typographique Dala, ramenée par clamp() — */
  --t-display:      clamp(1.9rem, 6.1vw, 5.5rem);      /* 30 → 88px  */
  --t-heading-lg:   clamp(1.75rem, 5.2vw, 4.875rem);   /* 28 → 78px  */
  --t-heading:      clamp(1.625rem, 3.6vw, 3rem);      /* 26 → 48px  */
  --t-heading-sm:   clamp(1.5rem, 2.9vw, 2.625rem);    /* 24 → 42px  */
  --t-subheading:   clamp(1.25rem, 2.2vw, 2.25rem);    /* 20 → 36px  */
  --t-heading-xs:   clamp(1.25rem, 1.7vw, 1.6875rem);  /* 20 → 27px  */
  --t-heading-2xs:  clamp(1.125rem, 1.4vw, 1.5rem);    /* 18 → 24px  */
  --t-body:         1.125rem;                          /* 18px       */
  --t-nav:          0.875rem;                          /* 14px       */
  --t-caption:      0.75rem;                           /* 12px       */

  /* — Espacement : base 6px (Dala) — */
  --s-6: 6px;  --s-12: 12px; --s-18: 18px; --s-24: 24px;
  --s-30: 30px; --s-36: 36px; --s-60: 60px; --s-96: 96px; --s-120: 120px;

  --max: 1280px;
  --radius: 24px;
  --gutter: clamp(20px, 5vw, 60px);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: var(--w-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  overflow-wrap: break-word;
  font-family: var(--font-display);
  font-weight: var(--w-mid);
  margin: 0;
  color: var(--text);
}

p { margin: 0 0 var(--s-18); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--bronze-light); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--on-gold); }

/* --------------------------------------------------------------- utilities */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: var(--s-12);
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: var(--w-label);
  font-size: var(--t-nav);
  padding: var(--s-12) var(--s-24);
  border-radius: var(--radius);
}
.skip:focus { left: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-24);
  max-width: none;
}
.eyebrow--muted { color: var(--text-muted); }

.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.65;
  color: var(--text-secondary);
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Un seul « pill » plein par vue — l'action principale. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-body);
  font-size: var(--t-nav);
  font-weight: var(--w-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px var(--s-30);
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background .18s ease;
}
.pill:hover { background: var(--bronze-light); color: var(--on-gold); }

.ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  font-family: var(--font-body);
  font-size: var(--t-nav);
  font-weight: var(--w-mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 15px 0;
}
.ghost:hover { color: var(--text); }

/* -------------------------------------------------------------------- nav */

.nav { padding-block: var(--s-30); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-24);
  flex-wrap: wrap;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  font-family: var(--font-display);
  font-weight: var(--w-mid);
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav__brand img { width: 30px; }
.nav__brand:hover { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav__links a {
  display: inline-block;
  font-size: var(--t-nav);
  font-weight: var(--w-label);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--s-12) var(--s-18);
  border-radius: var(--radius);
}
.nav__links a:hover { color: var(--text); }
.nav__links a[aria-current="page"] { color: var(--gold); }

/* ---------------------------------------------------------------- section */

.section { padding-block: clamp(var(--s-60), 8vw, var(--s-120)); }
.section--tight { padding-block: clamp(var(--s-36), 5vw, var(--s-96)); }

/* Rythme Dala : deux colonnes asymétriques, grande gouttière, pas de cartes. */
.duo {
  display: grid;
  gap: var(--s-36) clamp(var(--s-36), 6vw, var(--s-96));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.duo--hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; }
.duo--label { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }

@media (max-width: 900px) {
  .duo, .duo--hero, .duo--label { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------- hero */

.hero { padding-block: clamp(var(--s-36), 5vw, var(--s-96)) clamp(var(--s-60), 8vw, var(--s-120)); }

.hero__title {
  font-size: var(--t-display);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-30);
}
.hero__title .line { display: block; }
.hero__title .line--gold { color: var(--gold); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--s-30);
  flex-wrap: wrap;
  margin-top: var(--s-36);
}

.helmet {
  width: min(100%, 460px);
  margin-inline: auto;
  filter: drop-shadow(-18px -18px 60px rgba(218, 174, 103, 0.14));
}

/* --------------------------------------- constellation du casque (Dala) */

/* Champ de particules fixe, derrière le contenu, qui se métamorphose
   d'une section à l'autre. Le contenu est élevé au-dessus. */
.constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body > header,
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

.helmet-host {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 260px;
}
.helmet-canvas {
  display: block;
  margin-inline: auto;
  filter: drop-shadow(-18px -18px 70px rgba(218, 174, 103, 0.16));
}

/* ------------------------------------------------- titres de section Dala */

.h-lg {
  font-size: var(--t-heading-lg);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.h-md {
  font-size: var(--t-heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h-sm {
  font-size: var(--t-heading-sm);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.h-xs {
  font-size: var(--t-heading-xs);
  line-height: 1.25;
  letter-spacing: 0;
}

.stack > * + * { margin-top: var(--s-30); }
.stack-tight > * + * { margin-top: var(--s-18); }

/* ------------------------------------------------------- liste d'épisodes */

.episodes { list-style: none; margin: 0; padding: 0; }

.episodes > li { border-top: 1px solid var(--border); }
.episodes > li:last-child { border-bottom: 1px solid var(--border); }

.ep {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s-18) clamp(var(--s-24), 4vw, var(--s-60));
  align-items: baseline;
  padding-block: clamp(var(--s-30), 4vw, var(--s-60));
  color: var(--text);
}
.ep:hover { color: var(--text); }
.ep:hover .ep__title { color: var(--gold); }

.ep__num {
  font-family: var(--font-display);
  font-size: var(--t-heading-2xs);
  color: var(--bronze-light);
  letter-spacing: 0.08em;
}
.ep__title {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--w-mid);
  font-size: var(--t-subheading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color .18s ease;
}
.ep__desc { display: block; margin-top: var(--s-18); color: var(--text-secondary); font-size: 1rem; max-width: 62ch; }
.ep__meta {
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ep { grid-template-columns: minmax(0, 1fr); gap: var(--s-12); }
  .ep__meta { white-space: normal; }
}

/* ----------------------------------------------------------- page épisode */

.ep-head__title {
  font-size: var(--t-heading-lg);
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin-bottom: var(--s-30);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-18);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.meta-line li + li::before { content: "·"; margin-right: var(--s-18); color: var(--border-strong); }

/* Lecteur — pas de carte : un filet, et le vide autour. */
.player {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--s-36);
}
.player__label {
  display: block;
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-18);
}
.player audio {
  width: 100%;
  height: 46px;
  border-radius: var(--radius);
  background: var(--surface-raised);
  color-scheme: dark;
}
.player__note { margin-top: var(--s-18); font-size: 0.9375rem; color: var(--text-muted); max-width: 62ch; }

/* Chapitrage : grille typographique, aucun conteneur. */
.chapters { list-style: none; margin: 0; padding: 0; }

.chapters > li { border-top: 1px solid var(--border); }
.chapters > li:last-child { border-bottom: 1px solid var(--border); }

.chapter {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--s-18);
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: var(--s-18) var(--s-6);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--w-body);
  line-height: 1.5;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color .15s ease;
}
.chapter:hover { color: var(--text); }
.chapter:hover .chapter__time { color: var(--bronze-light); }

.chapter__time {
  font-variant-numeric: tabular-nums;
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.1em;
  color: var(--gold);
  transition: color .15s ease;
}

.chapter[aria-current="true"] { color: var(--text); }
.chapter[aria-current="true"] .chapter__time { color: var(--bronze-light); }
.chapter[aria-current="true"] .chapter__label { box-shadow: inset 0 -1px 0 var(--bronze-dark); }

@media (max-width: 560px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
}

/* Invités */
.guests { display: grid; gap: var(--s-36) clamp(var(--s-36), 6vw, var(--s-60)); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guest__name { font-size: var(--t-heading-xs); line-height: 1.2; margin-bottom: var(--s-12); }
.guest p { font-size: 1rem; color: var(--text-secondary); }

/* Écoute / plateformes — texte, pas de faux boutons. */
.platforms { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-12); }
.platforms li {
  font-size: 1rem;
  color: var(--text-muted);
  padding-block: var(--s-6);
}
.platforms li.is-soon::after {
  content: "bientôt";
  margin-left: var(--s-12);
  font-size: var(--t-caption);
  font-weight: var(--w-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-60);
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-24) var(--s-60);
  align-items: baseline;
  justify-content: space-between;
}
.footer a { color: var(--text-secondary); }
.footer a:hover { color: var(--gold); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-24); list-style: none; margin: 0; padding: 0; }

/* ------------------------------------------------------------ préférences */

@media (max-width: 560px) {
  .meta-line { display: grid; gap: var(--s-6); }
  .meta-line li + li::before { content: none; }
  .nav { padding-block: var(--s-18); }
  .nav__inner { gap: var(--s-12); }
  .nav__links { margin-left: 0; width: 100%; gap: 0; }
  .nav__links a { font-size: 0.8125rem; padding: var(--s-12) var(--s-12); }
  .nav__links li:first-child a { padding-left: 0; }
  .footer__inner { gap: var(--s-24); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
