/* ==========================================================================
   LeManagement.ma — Design System
   Premium editorial theme · Light + Dark · French + English
   ========================================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Design tokens (shared) ----- */
:root {
  --gold:        #b8924b;
  --gold-bright: #d8b265;
  --gold-deep:   #8a6d33;
  --crimson:     #c94a4a;
  --bottle:      #6e8a5a;
  --azure:       #5c80a3;
  --plum:        #8a5c7e;

  --serif:   'Newsreader', 'Georgia', serif;
  --display: 'Cormorant Garamond', 'Playfair Display', serif;
  --sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', 'Menlo', monospace;

  --rad-sm:   6px;
  --rad-md:   12px;
  --rad-lg:   20px;

  --ease:     cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.34, 1.56, .64, 1);

  /* ORIGINAL tokens (vertical / section / generic) — DO NOT change. */
  --shell:    1120px;
  --gutter:   clamp(32px, 6vw, 96px);
  --section:  clamp(48px, 6vw, 88px);
  --section-sm: clamp(36px, 4.5vw, 64px);
  /* HORIZONTAL-ONLY additions: narrower content cap + larger left/right padding
     so body content never touches the viewport edge on desktop. */
  --shell-content:  980px;
  --gutter-content: clamp(40px, 7vw, 140px);
  /* HEADER: wider shell + tighter padding so FR nav fits on a single line. */
  --shell-header:   1280px;
  --gutter-header:  clamp(20px, 3.5vw, 48px);
}

/* ----- Light theme (default) ----- */
:root, [data-theme="light"] {
  --bg:           #faf6ee;
  --bg-deep:      #f3ecdc;
  --surface:      #ffffff;
  --surface-2:    #f7f1e3;
  --ink:          #15171c;
  --ink-soft:     #2c3140;
  --ink-mute:     #6a6e7a;
  --paper-mute:   #8e8676;
  --line:         rgba(21, 23, 28, 0.08);
  --line-strong:  rgba(21, 23, 28, 0.18);
  --gold-line:    rgba(184, 146, 75, 0.35);
  --shadow-sm:    0 1px 2px rgba(21,23,28,.04), 0 2px 6px rgba(21,23,28,.04);
  --shadow-md:    0 4px 14px rgba(21,23,28,.06), 0 12px 32px rgba(21,23,28,.08);
  --shadow-lg:    0 12px 28px rgba(21,23,28,.10), 0 30px 60px rgba(21,23,28,.10);
  --noise-opacity: 0.025;
  --hero-tint:    linear-gradient(180deg, rgba(250,246,238,.45) 0%, rgba(250,246,238,.92) 90%);
}

/* ----- Dark theme ----- */
[data-theme="dark"] {
  --bg:           #0d1117;
  --bg-deep:      #070a0f;
  --surface:      #141b24;
  --surface-2:    #1a2330;
  --ink:          #e8dfc9;
  --ink-soft:     #d4cab2;
  --ink-mute:     #b8ae97;
  --paper-mute:   #807863;
  --line:         rgba(232, 223, 201, 0.10);
  --line-strong:  rgba(232, 223, 201, 0.20);
  --gold:         #c9a961;
  --gold-bright:  #e5c37a;
  --gold-deep:    #8a7340;
  --gold-line:    rgba(201, 169, 97, 0.30);
  --shadow-sm:    0 1px 2px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.30);
  --shadow-md:    0 6px 20px rgba(0,0,0,.45), 0 16px 36px rgba(0,0,0,.45);
  --shadow-lg:    0 20px 40px rgba(0,0,0,.55), 0 40px 80px rgba(0,0,0,.45);
  --noise-opacity: 0.04;
  --hero-tint:    linear-gradient(180deg, rgba(13,17,23,.55) 0%, rgba(13,17,23,.92) 90%);
}

/* Honor OS preference if user hasn't picked */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg:           #0d1117;
    --bg-deep:      #070a0f;
    --surface:      #141b24;
    --surface-2:    #1a2330;
    --ink:          #e8dfc9;
    --ink-soft:     #d4cab2;
    --ink-mute:     #b8ae97;
    --paper-mute:   #807863;
    --line:         rgba(232, 223, 201, 0.10);
    --line-strong:  rgba(232, 223, 201, 0.20);
    --gold:         #c9a961;
    --gold-bright:  #e5c37a;
    --gold-deep:    #8a7340;
    --gold-line:    rgba(201, 169, 97, 0.30);
    --shadow-sm:    0 1px 2px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.30);
    --shadow-md:    0 6px 20px rgba(0,0,0,.45), 0 16px 36px rgba(0,0,0,.45);
    --shadow-lg:    0 20px 40px rgba(0,0,0,.55), 0 40px 80px rgba(0,0,0,.45);
    --noise-opacity: 0.04;
    --hero-tint:    linear-gradient(180deg, rgba(13,17,23,.55) 0%, rgba(13,17,23,.92) 90%);
  }
}

/* ----- Base ----- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(at 12% 0%,  rgba(184,146,75,.06),  transparent 55%),
    radial-gradient(at 92% 100%, rgba(92,128,163,.04), transparent 55%);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
[data-theme="dark"] body {
  background-image:
    radial-gradient(at 12% 0%,  rgba(201,169,97,.07),  transparent 55%),
    radial-gradient(at 92% 100%, rgba(107,142,173,.05), transparent 55%);
}

/* paper-grain noise overlay */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::before { mix-blend-mode: screen; }

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

/* ----- Typography ----- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: ''; width: 28px; height: 1px; background: var(--gold);
}
.kicker.no-line::before { display: none; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ----- Layout shell ----- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Content shells (everywhere except the topbar/footer chrome) get a smaller max-width
   AND more horizontal padding so even wide elements (tables, large titles) keep a
   safe outer margin and never reach the viewport edge on desktop. */
main .shell,
.page-head .shell,
section .shell {
  max-width: var(--shell-content);
  padding-inline: var(--gutter-content);
}
/* Exception for home page */
[data-page="home"] main .shell,
[data-page="home"] .page-head .shell,
[data-page="home"] section .shell {
  max-width: var(--shell);
}
/* Footer keeps the normal shell width — it's a chrome strip, not body content. */
footer.footer .shell { padding-inline: var(--gutter-content); }

/* The topbar uses a wider max-width and tighter horizontal padding so longer French
   nav items ("Médiathèque", "Événements", "À propos"...) fit on a single line */
.topbar .shell {
  max-width: var(--shell-header);
  padding-inline: var(--gutter-header);
}

.section    { padding-block: var(--section); }
.section-sm { padding-block: var(--section-sm); }

/* Collapse doubled vertical padding between adjacent sections —
   the bottom padding of one is enough; the next gets a 0 top. */
section + section,
section + .section,
section + .section-sm,
.section + section,
.section-sm + section,
.section + .section,
.section + .section-sm,
.section-sm + .section,
.section-sm + .section-sm {
  padding-top: 0;
}
/* Page-head already provides its own bottom padding — kill the next section's top */
.page-head + section { padding-top: 0; }

.divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
  border: 0; margin: 0;
}

/* ----- Top bar ----- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.005em; color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 6px;
  font-family: var(--display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.brand-name { line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem; letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute); margin-top: 4px;
}

.primary-nav {
  display: flex; align-items: center; gap: 4px;
}
.primary-nav a, .primary-nav .has-menu > a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--rad-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.primary-nav a:hover, .primary-nav .has-menu > a:hover {
  color: var(--ink); background: var(--surface-2);
}
.primary-nav .has-menu > a::after {
  content: ''; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px; margin-left: 2px;
  opacity: .6; transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.primary-nav .has-menu:hover > a::after { transform: rotate(225deg); margin-top: 2px; opacity: 1; }
.primary-nav .current { color: var(--gold); }
/* When the active page is a sub-item, the parent dropdown trigger gets
   a softer gold (so the user sees which menu owns the current page) */
.primary-nav .current-parent > a,
.primary-nav a.current-parent { color: var(--gold); }
.primary-nav .current-parent > a::after { opacity: 1; }
/* Active sub-item inside an open dropdown */
.primary-nav .menu a.current-child {
  color: var(--gold);
  background: color-mix(in oklab, var(--gold) 10%, transparent);
}
.primary-nav .menu a.current-child small { color: var(--gold-deep); }
.primary-nav .has-menu { position: relative; }
.primary-nav .menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--rad-md);
  padding: 8px; min-width: 240px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.primary-nav .has-menu:hover .menu,
.primary-nav .has-menu:focus-within .menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .menu a {
  display: block; padding: 10px 12px; font-size: 0.88rem;
  border-radius: 6px;
}
.primary-nav .menu a:hover { background: var(--surface-2); color: var(--ink); }
.primary-nav .menu a small {
  display: block; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-mute); margin-top: 3px;
}

.topbar-controls { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--rad-sm);
  color: var(--ink-soft);
  border: 1px solid transparent;
  transition: all .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.lang-toggle button {
  padding: 5px 12px; border-radius: 999px;
  color: var(--ink-mute);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang-toggle button.active {
  background: var(--ink); color: var(--bg);
}

.theme-toggle {
  position: relative;
  width: 56px; height: 30px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; padding: 0 4px;
  transition: all .25s var(--ease);
}
.theme-toggle::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .35s var(--ease-out), background-color .25s var(--ease);
}
[data-theme="dark"] .theme-toggle::before { transform: translateX(26px); background: var(--gold-bright); }
.theme-toggle svg { width: 14px; height: 14px; color: var(--ink-mute); }
.theme-toggle .sun { margin-right: auto; }
.theme-toggle .moon { margin-left: auto; }

.menu-trigger { display: none; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  border-radius: var(--rad-sm);
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold); color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary { background: var(--gold); color: var(--bg-deep); }
[data-theme="dark"] .btn-primary:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-soft); }

.btn-link {
  padding: 0; background: none; color: var(--gold);
  font-family: var(--sans); font-weight: 500; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-link:hover { color: var(--gold-bright); }
.btn-link svg { transition: transform .25s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }

/* Auto-linked names (professor / Ayoub) — discreet gold underline */
a.autolink {
  color: inherit;
  border-bottom: 1px dotted var(--gold-line);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
a.autolink:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 72px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow .stamp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow .stamp::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(184,146,75,.18);
}
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 500; letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic; color: var(--gold);
  font-family: var(--display);
}
.hero .lede { margin-bottom: 36px; font-size: clamp(1.15rem, 1.4vw, 1.3rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  background:
    var(--hero-tint),
    linear-gradient(135deg, var(--gold-deep), var(--ink-soft));
}
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; mix-blend-mode: luminosity;
  opacity: .9;
  filter: contrast(1.04) saturate(.9);
}
[data-theme="dark"] .hero-figure img { mix-blend-mode: luminosity; opacity: .8; }
.hero-figure::after {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-tint);
  pointer-events: none;
}
.hero-caption {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bg);
  z-index: 1;
  display: flex; justify-content: space-between; gap: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

.hero-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.hero-meta > div { padding-right: 24px; border-right: 1px solid var(--line); }
.hero-meta > div:last-child { border-right: 0; padding-right: 0; }
.hero-meta dt {
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-mute); margin-bottom: 8px;
}
.hero-meta dd {
  font-family: var(--display); font-size: 1.4rem; color: var(--ink);
  line-height: 1.2;
}

/* ----- Section heading ----- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 50ch; margin-top: 16px; }

/* ----- Editorial cover (replaces stock photos) ----- */
/* A typography-led "cover" with abstract SVG geometry; used in teaser-media
   and hero figures so the site reads as editorial, not stocky. */
.cover {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  display: grid; place-items: end start;
  padding: clamp(18px, 2vw, 28px);
  isolation: isolate;
  background: var(--cover-bg, linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%));
  color: var(--paper-mute);
  transition: transform .8s var(--ease);
}
.cover .cover-mark {
  position: absolute; top: clamp(16px, 2vw, 26px); right: clamp(16px, 2vw, 26px);
  font-family: var(--mono);
  font-size: .58rem; letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-bright);
  z-index: 2;
}
/* Drop-cap monogram in the bottom-right — large, decorative, never under the badge */
.cover .cover-num {
  position: absolute;
  right: clamp(18px, 2.4vw, 32px);
  bottom: clamp(14px, 2vw, 22px);
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 600;
  color: rgba(229,195,122,.32);
  line-height: .9; z-index: 2;
  font-style: italic;
  pointer-events: none;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cover[data-tone="paper"] .cover-num,
.cover[data-tone="brown"] .cover-num { color: rgba(138,109,51,.45); text-shadow: none; }
.cover .cover-title {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1; color: #e8dfc9;
  max-width: 90%;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.cover .cover-sub {
  position: relative; z-index: 2;
  font-family: var(--mono);
  font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright); margin-top: 8px;
}
/* abstract SVG decoration — drawn in CSS so it doesn't need files */
.cover::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(201,169,97,.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(201,169,97,.08), transparent 50%);
  z-index: 1;
}
.cover::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 220px; height: 220px;
  border: 1px solid rgba(201,169,97,.25);
  border-radius: 50%;
  z-index: 1;
}
/* Variant accents */
.cover[data-tone="ink"]     { --cover-bg: linear-gradient(135deg, #0d1117 0%, #1a2330 100%); }
.cover[data-tone="bottle"]  { --cover-bg: linear-gradient(135deg, #1f2d22 0%, #0d1117 70%); }
.cover[data-tone="azure"]   { --cover-bg: linear-gradient(135deg, #1b2734 0%, #0d1117 75%); }
.cover[data-tone="plum"]    { --cover-bg: linear-gradient(135deg, #2c1f29 0%, #0d1117 75%); }
.cover[data-tone="crimson"] { --cover-bg: linear-gradient(135deg, #2d1717 0%, #0d1117 75%); }
.cover[data-tone="gold"]    { --cover-bg: linear-gradient(135deg, #3a2d12 0%, #0d1117 75%); }
.cover[data-tone="paper"]   {
  --cover-bg: linear-gradient(135deg, #f3ecdc 0%, #e8dfc9 100%);
  color: var(--ink);
}
.cover[data-tone="paper"] .cover-title { color: var(--ink); text-shadow: none; }
.cover[data-tone="paper"] .cover-mark,
.cover[data-tone="paper"] .cover-sub   { color: var(--gold-deep); }
.cover[data-tone="paper"]::after       { border-color: rgba(184,146,75,.4); }
.cover[data-tone="paper"]::before {
  background-image:
    radial-gradient(circle at 80% 20%, rgba(184,146,75,.15), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(184,146,75,.08), transparent 50%);
}

/* Warm brown — matches the book-mock (ouvrage) */
.cover[data-tone="brown"]   {
  --cover-bg:
    radial-gradient(circle at 30% 30%, rgba(229,195,122,.12), transparent 55%),
    linear-gradient(135deg, #1f1812 0%, #15110b 70%, #0a0805 100%);
}
.cover[data-tone="brown"] .cover-mark,
.cover[data-tone="brown"] .cover-sub   { color: var(--gold-bright); }
.cover[data-tone="brown"]::after       { border-color: rgba(229,195,122,.30); }
.cover[data-tone="brown"]::before {
  background-image:
    radial-gradient(circle at 80% 20%, rgba(229,195,122,.20), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(229,195,122,.10), transparent 55%);
}

/* Photo cover — used only where real photos exist (about / events / hero) */
.cover-photo { background-size: cover; background-position: center; }
.cover-photo::before {
  background-image: linear-gradient(180deg, rgba(13,17,23,.05) 0%, rgba(13,17,23,.65) 90%);
}
.cover-photo::after { display: none; }
.cover-photo .cover-title { color: #f3ecdc; }

/* ----- Custom video player with editorial overlay (click-to-play) ----- */
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--rad-lg);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-lg);
  background: #0a0805;
}
.video-player > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0805;
}
.video-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(201,169,97,.18), transparent 65%),
    linear-gradient(160deg, #1b2734 0%, #0d1117 100%);
  transition: opacity .45s var(--ease);
  text-align: center;
  padding: 24px;
}
.video-overlay::before {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid rgba(229,195,122,.25);
  border-radius: calc(var(--rad-lg) - 4px);
  pointer-events: none;
}
.video-overlay .v-tag {
  position: absolute; top: 26px; left: 26px;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-bright);
}
.video-overlay .play-btn {
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: rgba(13,17,23,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  cursor: pointer;
  margin: 0 auto 22px;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.video-overlay .play-btn:hover { transform: scale(1.06); background: rgba(229,195,122,.18); }
.video-overlay .play-btn svg { width: clamp(28px, 3vw, 36px); height: auto; fill: var(--gold-bright); margin-left: 4px; }
.video-overlay .v-title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #e8dfc9;
  line-height: 1.1;
}
.video-overlay .v-sub {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 14px;
}
.video-player.is-playing > .video-overlay { opacity: 0; pointer-events: none; }
.video-player.is-playing > video           { z-index: 3; }

/* ---- Custom controls (replace the ugly native ones, identical across browsers) ---- */
.video-player video::-webkit-media-controls { display: none !important; }
.video-player video::-webkit-media-controls-enclosure { display: none !important; }
.video-player video { -webkit-user-select: none; user-select: none; }

.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.78));
  color: #f3ecdc;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  font-family: var(--mono);
}
.video-player.is-playing .video-controls,
.video-player.is-playing:hover .video-controls,
.video-player.is-playing.show-controls .video-controls {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.video-controls button {
  width: 32px; height: 32px;
  border: 0; background: transparent; color: #f3ecdc;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border-radius: 4px;
  transition: color .2s var(--ease);
}
.video-controls button:hover { color: var(--gold-bright); }
.video-controls button svg { width: 18px; height: 18px; fill: currentColor; }
.video-controls .vc-progress {
  flex: 1; height: 4px; background: rgba(243,236,220,.22);
  border-radius: 2px; cursor: pointer; position: relative;
  transition: height .15s var(--ease);
}
.video-controls .vc-progress:hover { height: 6px; }
.video-controls .vc-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--gold-bright);
  border-radius: 2px;
  width: 0%;
}
.video-controls .vc-progress-buffer {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(243,236,220,.18);
  border-radius: 2px;
  width: 0%;
}
.video-controls .vc-time {
  font-size: .68rem; letter-spacing: .12em;
  color: #e8dfc9; min-width: 86px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.video-controls .vc-volume-wrap { display: flex; align-items: center; gap: 6px; }
.video-controls .vc-volume {
  -webkit-appearance: none; appearance: none;
  width: 64px; height: 3px; background: rgba(243,236,220,.22);
  border-radius: 2px; cursor: pointer; outline: none;
}
.video-controls .vc-volume::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright);
  cursor: pointer; border: 0;
}
.video-controls .vc-volume::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-bright);
  border: 0; cursor: pointer;
}
@media (max-width: 640px) {
  .video-controls { gap: 8px; padding: 10px 12px; }
  .video-controls .vc-volume-wrap { display: none; }
}

/* Loading spinner overlay */
.video-spinner {
  position: absolute; inset: 0; z-index: 4;
  display: none; place-items: center;
  pointer-events: none;
}
.video-player.is-loading .video-spinner { display: grid; }
.video-spinner::before {
  content: ''; width: 48px; height: 48px;
  border: 3px solid rgba(229,195,122,.25);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: vspin .9s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }

/* Codec / playback error message */
.video-error {
  position: absolute; inset: 0; z-index: 6;
  display: none; place-items: center;
  background: #0a0805;
  color: #f3ecdc;
  padding: 24px; text-align: center;
  font-family: var(--serif);
}
.video-player.has-error .video-error { display: grid; }
.video-player.has-error .video-overlay,
.video-player.has-error .video-controls { display: none; }
.video-error h4 {
  font-family: var(--display); font-style: italic;
  font-size: 1.4rem; color: var(--gold-bright);
  margin-bottom: 10px;
}
.video-error p { color: #d4cab2; font-size: .95rem; max-width: 48ch; line-height: 1.5; margin-inline: auto; }
.video-error code {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: .72rem;
  background: rgba(229,195,122,.10); padding: 6px 10px;
  border-radius: 4px; color: var(--gold-bright);
}

/* Photo gallery (ManaJour) */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin-top: 40px;
}
.gallery a {
  position: relative;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
  border-radius: var(--rad-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .25s var(--ease);
}
.gallery a:hover { transform: translateY(-2px); border-color: var(--gold-line); }
.gallery a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5));
  opacity: 0; transition: opacity .25s var(--ease);
}
.gallery a:hover::after { opacity: 1; }
.gallery .g-cap {
  position: absolute; left: 12px; bottom: 10px;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .2em; text-transform: uppercase;
  color: #fff; z-index: 2; opacity: 0;
  transition: opacity .25s var(--ease);
}
.gallery a:hover .g-cap { opacity: 1; }
.gallery .g-1 { grid-column: span 6; aspect-ratio: 4 / 3; }
.gallery .g-2 { grid-column: span 6; aspect-ratio: 4 / 3; }
.gallery .g-3 { grid-column: span 4; aspect-ratio: 1; }
.gallery .g-4 { grid-column: span 4; aspect-ratio: 1; }
.gallery .g-5 { grid-column: span 4; aspect-ratio: 1; }
.gallery .g-6 { grid-column: span 3; aspect-ratio: 3 / 4; }
.gallery .g-7 { grid-column: span 3; aspect-ratio: 3 / 4; }
.gallery .g-8 { grid-column: span 3; aspect-ratio: 3 / 4; }
.gallery .g-9 { grid-column: span 3; aspect-ratio: 3 / 4; }
@media (max-width: 720px) {
  .gallery .g-1, .gallery .g-2 { grid-column: span 12; }
  .gallery .g-3, .gallery .g-4, .gallery .g-5 { grid-column: span 6; }
  .gallery .g-3 { grid-column: span 12; }
  .gallery .g-6, .gallery .g-7, .gallery .g-8, .gallery .g-9 { grid-column: span 6; }
}

/* Editorial hero (no photo) — solid near-black panel, very high contrast */
.hero.hero-editorial { padding-block: clamp(36px, 5vw, 72px) clamp(44px, 5.5vw, 80px); }
.hero.hero-editorial .shell { align-items: start; }
.hero.hero-editorial .hero-figure {
  aspect-ratio: 4 / 5;
  /*min-height: clamp(420px, 50vw, 560px);*/
  border: 1px solid rgba(201,169,97,.45);
  background: #0a0805;                /* near-pure black-brown, always */
  background-image:
    radial-gradient(ellipse at 50% 35%, rgba(201,169,97,.18), transparent 65%);
  box-shadow:
    inset 0 0 0 1px rgba(229,195,122,.10),
    0 24px 64px rgba(0,0,0,.35),
    0 8px 20px rgba(0,0,0,.20);
}
/* The default hero-figure has an ::after that paints a hero-tint (cream in light mode) —
   that's for photo heroes. Kill it on the editorial hero so the dark panel stays dark. */
.hero.hero-editorial .hero-figure::after { display: none !important; }
/* Also kill the original photo caption which collided with the quote author line. */
.hero.hero-editorial .hero-caption { display: none; }
.hero-quote {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: clamp(28px, 4vw, 56px);
  text-align: center;
  color: #fffcef;
  /* corner ornaments via outline lines */
}
.hero-quote::before, .hero-quote::after {
  content: ''; position: absolute;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(229,195,122,.55);
}
.hero-quote::before {
  top: 28px; left: 28px;
  border-right: 0; border-bottom: 0;
}
.hero-quote::after {
  bottom: 28px; right: 28px;
  border-left: 0; border-top: 0;
}
.hero-quote .q-mark {
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 6.5rem);
  line-height: .7;
  color: #e5c37a;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-quote .q {
  font-family: var(--display);
  font-style: italic; font-weight: 600;        /* bolder */
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);    /* slightly bigger */
  line-height: 1.25;
  color: #fffcef;                              /* near pure cream, max contrast on near-black */
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
  /* no text-shadow — solid bg means we don't need it */
  letter-spacing: -0.005em;
}
.hero-quote .qa {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase;
  color: #e5c37a;
  margin-top: 28px;
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500;
}
.hero-quote .qa::before {
  content: ''; display: inline-block; width: 26px; height: 1px;
  background: #e5c37a;
}
.hero-quote .deco { display: none; }   /* removed — corner ornaments are enough */

/* ----- Universal "teasers" grid ----- */
.teasers {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.teaser {
  position: relative;
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .25s var(--ease),
              box-shadow .35s var(--ease);
}
.teaser:hover {
  transform: translateY(-3px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-md);
}
.teaser-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-deep));
  overflow: hidden;
}
.teaser-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.teaser:hover .teaser-media img { transform: scale(1.04); }
.teaser-media .badge {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px;
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
}
.teaser-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.teaser-body h3 { font-size: 1.45rem; }
.teaser-body p { color: var(--ink-mute); font-size: 0.95rem; line-height: 1.55; }
.teaser-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-mute);
}
.teaser-footer .arrow {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-soft);
  transition: all .25s var(--ease);
}
.teaser:hover .teaser-footer .arrow {
  background: var(--gold); color: var(--bg);
}
.teaser.span-3 { grid-column: span 3; }
.teaser.span-6 { grid-column: span 6; }
.teaser.span-8 { grid-column: span 8; }
.teaser.span-12 { grid-column: span 12; }

/* Narrow covers (span-3): shrink the drop-cap and tighten paddings so nothing overlaps. */
.teaser.span-3 .cover { padding: 14px 16px; }
.teaser.span-3 .cover-num   { font-size: clamp(2.2rem, 3.5vw, 3.4rem); right: 14px; bottom: 10px; }
.teaser.span-3 .cover-title { font-size: clamp(1rem, 1.6vw, 1.4rem); max-width: 100%; }
.teaser.span-3 .cover-sub   { font-size: .58rem; letter-spacing: .18em; }
.teaser.span-3 .cover-mark  { font-size: .52rem; letter-spacing: .18em; top: 12px; right: 14px; }
.teaser.span-3 .cover::after { width: 140px; height: 140px; right: -20px; top: -20px; }

/* ----- Categories strip ----- */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color .25s var(--ease);
}
.cat-item:last-child { border-right: 0; }
.cat-item:hover { background: var(--surface-2); }
.cat-item .num {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.22em; color: var(--gold);
}
.cat-item h3 {
  font-size: 1.35rem; font-family: var(--display); font-weight: 600;
}
.cat-item p { font-size: .9rem; color: var(--ink-mute); }
.cat-item .ico {
  width: 40px; height: 40px; margin-bottom: 8px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--rad-sm);
  color: var(--gold);
}
.cat-item:hover .ico { background: var(--ink); color: var(--gold-bright); border-color: var(--ink); }

/* ----- Featured / split block ----- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  /*align-items: center;*/
}
.split-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--rad-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--bg-deep));
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { margin-bottom: 18px; }
.split-body .lede { margin-bottom: 26px; }

/* ----- Compendium feature (the Strategic Management) ----- */
.compendium-feature {
  position: relative;
  background:
    radial-gradient(at 0% 0%, rgba(184,146,75,.10), transparent 50%),
    radial-gradient(at 100% 100%, rgba(184,146,75,.06), transparent 55%),
    var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: var(--rad-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
}
[data-theme="dark"] .compendium-feature {
  background:
    radial-gradient(at 0% 0%, rgba(201,169,97,.12), transparent 55%),
    radial-gradient(at 100% 100%, rgba(201,169,97,.06), transparent 55%),
    var(--surface);
}
.compendium-meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-block: 24px 32px;
}
.compendium-meta > div { border-left: 1px solid var(--gold-line); padding-left: 12px; }
.compendium-meta dt {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}
.compendium-meta dd { font-family: var(--display); font-size: 1.1rem; }

.book-mock {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 30% 30%, rgba(201,169,97,.10), transparent 55%),
    linear-gradient(135deg, #1f1812 0%, #15110b 70%, #0a0805 100%);
  border-radius: 3px 14px 14px 3px;
  box-shadow:
    inset 0 0 0 1px rgba(201,169,97,.12),
    inset 8px 0 0 -2px rgba(255,255,255,.04),
    inset 14px 0 0 -12px rgba(0,0,0,.55),
    var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 32px) clamp(28px, 4vw, 40px) clamp(36px, 5vw, 52px);
  color: #f3ecdc;
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--display);
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.book-mock::before {
  content: ''; position: absolute; inset: 12px;
  border: 1px solid rgba(229, 195, 122, 0.45);
  border-radius: 2px;
  pointer-events: none;
}
.book-mock::after {
  content: ''; position: absolute; left: 26px; top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(229,195,122,.4), transparent);
}
.book-mock .bookmark {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: clamp(16px, 3vw, 28px);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.book-mock .bookmark::after {
  content: ''; display: inline-block; width: 30px; height: 1px;
  background: var(--gold-bright);
}
.book-mock .seal {
  position: absolute; bottom: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 28px);
  width: clamp(58px, 7vw, 70px); height: clamp(58px, 7vw, 70px);
  border-radius: 50%;
  border: 1px dashed rgba(229,195,122,.6);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: .58rem;
  letter-spacing: .22em; color: var(--gold-bright);
  text-align: center; line-height: 1.25;
  font-weight: 500;
  background: rgba(13,17,23,.4);
}
.book-mock .title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 600; line-height: 1.08;
  font-style: italic;
  color: #faf6ee;
  letter-spacing: -0.005em;
  max-width: 14ch;
}
.book-mock .subtitle {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: clamp(12px, 2vw, 18px);
  font-weight: 500;
}
.book-mock .author {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--serif); font-size: .85rem;
  color: rgba(243, 236, 220, 0.85);
  border-top: 1px solid rgba(229,195,122,.2);
  max-width: 75%;
}
.book-mock .author strong {
  display: block; color: var(--gold-bright); font-weight: 600;
  font-family: var(--display); font-size: 1.15rem;
  font-style: italic;
  margin-top: 4px;
}

/* ----- ManaJour blocks ----- */
.event-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 28px; align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--rad-md);
  background: var(--surface);
  transition: border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.event-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.event-date {
  text-align: center; padding: 14px 10px;
  border: 1px solid var(--gold-line); border-radius: var(--rad-sm);
  background: color-mix(in oklab, var(--gold) 8%, transparent);
}
.event-date .day { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.event-date .mon { font-family: var(--mono); font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 4px; display: block; }
.event-date .yr  { font-family: var(--mono); font-size: .6rem; color: var(--paper-mute); margin-top: 2px; display: block; }
.event-card.tba .event-date { background: var(--surface-2); border-color: var(--line); }
.event-card.tba .event-date .day { font-size: 1.2rem; color: var(--ink-mute); padding-top: 8px; }

.event-body h3 { font-size: 1.4rem; margin-bottom: 6px; }
.event-body p { color: var(--ink-mute); font-size: .9rem; }
.event-meta {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-mute); margin-top: 8px;
  display: flex; gap: 18px; flex-wrap: wrap;
}
.event-status {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.event-status.past   { color: var(--bottle); border-color: color-mix(in oklab, var(--bottle) 40%, transparent); }
.event-status.soon   { color: var(--gold);   border-color: var(--gold-line); }

/* ----- Blog cards ----- */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post {
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.post .topic {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.post h3 { font-size: 1.35rem; line-height: 1.25; }
.post p { color: var(--ink-mute); font-size: .95rem; }
.post .meta {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: auto; padding-top: 14px;
  display: flex; gap: 12px;
}

/* ----- About block ----- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-mosaic {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.about-mosaic > div {
  border-radius: var(--rad-md);
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
  overflow: hidden;
}
.about-mosaic > div:first-child { grid-row: span 2; }
.about-body { align-self: center; }
.about-body p { color: var(--ink-soft); margin-bottom: 18px; }
.about-body p:last-of-type { margin-bottom: 28px; }

/* ----- Newsletter ----- */
.newsletter {
  border: 1px solid var(--line-strong);
  border-radius: var(--rad-lg);
  padding: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: center;
  background:
    radial-gradient(at 100% 0%, rgba(184,146,75,.06), transparent 55%),
    var(--surface);
}
.newsletter h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--rad-sm); color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem;
}
.newsletter-form input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 20%, transparent);
}

/* ----- Footer ----- */
.footer {
  margin-top: var(--section);
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 72px 56px;
}
.footer .brand { color: var(--ink); }
.footer p.mini { color: var(--ink-mute); font-size: .9rem; max-width: 30ch; margin-top: 16px; }
.footer h4 {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 500;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a {
  font-family: var(--sans); font-size: .92rem;
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.footer ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--paper-mute);
  flex-wrap: wrap; gap: 14px;
}
.socials { display: flex; gap: 6px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--bg); }
.socials svg { width: 16px; height: 16px; }

/* ----- Course header / inner pages ----- */
.page-head {
  padding-block: clamp(36px, 4.5vw, 64px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
/* a breath of air before the next section, without doubling */
.page-head + section { padding-top: clamp(20px, 2.5vw, 36px); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.page-head .crumb {
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-mute); margin-bottom: 24px;
}
.page-head .crumb a { color: var(--gold); }
.page-head .lede { max-width: 65ch; }

.toc-list li {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: grid; grid-template-columns: 50px 1fr auto;
  gap: 18px; align-items: center;
  font-family: var(--display);
}
.toc-list li:last-child { border-bottom: 1px solid var(--line); }
.toc-list .num {
  font-family: var(--mono); font-size: .75rem; color: var(--gold);
  letter-spacing: .12em;
}
.toc-list .title { font-size: 1.15rem; }
.toc-list .meta { font-family: var(--mono); font-size: .65rem; color: var(--paper-mute); letter-spacing: .15em; text-transform: uppercase; }

/* ----- Pricing card (Ouvrage) ----- */
.pricing {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px); /*align-items: center;*/
}
.price-card {
  border: 1px solid var(--gold-line);
  border-radius: var(--rad-lg);
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(at 100% 0%, rgba(184,146,75,.08), transparent 55%),
    var(--surface);
  display: flex; flex-direction: column; gap: 18px;
}
.price-card .price {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--display);
}
.price-card .price .amt { font-size: 3.2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.price-card .price .cur { font-size: 1.2rem; color: var(--gold); }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.price-card ul li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .95rem; color: var(--ink-soft);
}
.price-card ul li::before {
  content: '✦'; color: var(--gold); flex: none; line-height: 1.4;
}

/* ----- Contact ----- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact-info dl { display: grid; gap: 22px; margin-top: 24px; }
.contact-info dt {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.contact-info dd { font-family: var(--display); font-size: 1.2rem; }
.contact-form { display: grid; gap: 18px; }
.contact-form label {
  font-family: var(--mono); font-size: .65rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--paper-mute);
  display: block; margin-bottom: 6px;
}
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--rad-sm); color: var(--ink);
  font-family: var(--sans); font-size: 0.95rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--gold) 20%, transparent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ----- Animations ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ----- Mobile ----- */
@media (max-width: 980px) {
  .hero-grid, .split, .compendium-feature, .about, .pricing, .newsletter, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-figure { aspect-ratio: 4 / 3; max-height: 460px; }
  .cat-strip, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-item:nth-child(2) { border-right: 0; }
  .cat-item:nth-child(1), .cat-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .teasers .teaser { grid-column: span 6; }
  .teasers .teaser.span-3 { grid-column: span 6; }
  .teasers .teaser.span-8, .teasers .teaser.span-12 { grid-column: span 12; }
  .section-head { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 90px 1fr; }
  .event-card > .event-status { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .menu-trigger { display: grid; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .hero-meta > div:nth-child(2) { border-right: 0; }
  .teasers .teaser { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 48px 32px; }
  .lang-toggle button { padding: 4px 8px; }

  /* Newsletter form must not overflow on mobile — stack the input + submit
     button vertically and let each take 100% width. */
  .newsletter { padding: 28px 22px; }
  .newsletter-form { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .newsletter-form input { width: 100%; min-width: 0; }
  .newsletter-form .btn,
  .newsletter-form button { width: 100%; }

  /* Editorial covers: on tiny screens the giant cover-num drop-cap collides
     with the cover-mark badge and the title. Shrink it and pad the title
     so they don't overlap. */
  .cover { padding: 18px; }
  .cover .cover-mark { font-size: .54rem; top: 14px; right: 14px; max-width: 60%; text-align: right; }
  .cover .cover-num { font-size: clamp(2.2rem, 12vw, 3.6rem); right: 14px; bottom: 12px; }
  .cover .cover-title { font-size: clamp(1.2rem, 5.5vw, 1.7rem); max-width: 78%; }
  .cover .cover-sub { font-size: .58rem; max-width: 78%; }

  /* Top-bar: keep brand-name visible but allow it to shrink, never wrap */
  .topbar-inner { gap: 8px; padding-inline: 0; }
  .brand-name { font-size: 1.05rem; }
}

/* (vertical padding tweaks intentionally removed — only horizontal side space
    is customised, via the .shell overrides higher up in this file.)               */

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(10px);
  padding: 24px var(--gutter);
  display: none; flex-direction: column;
  transform: translateY(-100%); transition: transform .35s var(--ease);
}
.drawer.open { display: flex; transform: translateY(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  font-family: var(--display); font-size: 1.4rem;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer nav a small {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper-mute);
}

/* ----- Utility ----- */
.center-text { text-align: center; }
.center-text .section-head { grid-template-columns: 1fr; justify-items: center; }
.center-text .section-head h2 { max-width: 22ch; }
.center-text .lede { margin-inline: auto; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  