/* =================================================================
   AMGMA — Landing page
   Onyx editorial palette, custom CSS only (no framework).
   Source of truth: design_handoff_amgma_landing/AMGMA Landing.html
   ================================================================= */

:root {
  /* Onyx editorial palette */
  --bg: #0E0D10;
  --bg-deep: #08070A;
  --surface: #17161B;
  --surface-2: #1F1D24;
  --line: rgba(244, 235, 217, 0.08);
  --line-strong: rgba(244, 235, 217, 0.16);
  --ink: #F4EBD9;
  --ink-soft: #C9BFA9;
  --ink-faint: #9A9082;        /* WCAG AA ≥ 4.5:1 sur --bg */
  --accent: #E4885F;      /* Book Nova terracotta */
  --accent-deep: #C96A4B;
  --gold: #F0BB62;
  --sage: #9FB089;

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-ui: 'Inter', -apple-system, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ─── Focus visible (clavier) ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible,
.channel:focus-visible { outline-offset: 4px; }

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ─── Film grain overlay ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.nav-links {
  display: flex; gap: 36px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all 0.2s;
  font-weight: 500;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav { padding: 14px 20px; }
}

/* ─── Section scaffolding ─── */
section { position: relative; padding: 120px 32px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px; background: var(--ink-faint);
}
h1, h2, h3 { margin: 0; font-weight: 400; }

/* ─── Hero ─── */
.hero {
  padding-top: 100px;
  padding-bottom: 140px;
  min-height: 100vh;
  display: flex; align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(228, 136, 95, 0.22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; }
.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 400;
  /* Désactive l'opsz auto qui affine les traits à grande taille (barre du "e" invisible) */
  font-optical-sizing: none;
  margin-bottom: 40px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(244, 235, 217, 0.18); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow {
  width: 18px; height: 18px;
  display: inline-block; position: relative;
}
.btn-arrow::before {
  content: '→'; font-family: var(--f-mono);
}

.hero-meta {
  position: absolute;
  bottom: 60px; left: 32px; right: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-meta-right { text-align: right; }
.hero-meta strong { color: var(--ink-soft); font-weight: 500; }
@media (max-width: 780px) {
  /* Le hero est flex → forcer la colonne sinon .hero-meta s'affiche
     à côté de .hero-content */
  .hero { flex-direction: column; }

  .hero-meta {
    position: static;
    margin-top: 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .hero-meta-right { text-align: left; }

  /* Boutons unifiés sur mobile : stack pleine largeur */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn {
    white-space: nowrap;
    padding: 14px 24px;
    font-size: 14px;
    justify-content: center;
    width: 100%;
  }

  /* Product head: laisser le numéro seul sur sa ligne, badges en dessous */
  .product-head { flex-wrap: wrap; gap: 10px; align-items: center; }
  .product-head > span:first-child { flex-basis: 100%; }
  .product-head .tag-live { font-size: 10px; padding: 3px 10px; }

  /* Label rotation du phone: masqué (sortait du viewport) */
  .phone-label { display: none; }

  /* Phone back: évite débordement horizontal */
  .phone-back { transform: rotate(3deg) translate(18px, 14px); }
}

/* Petits mobiles : rapetisser le h1 pour garder le CTA visible above the fold */
@media (max-width: 420px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: auto;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
    margin-bottom: 28px;
  }
  .hero-sub {
    font-size: 17px;
    margin-bottom: 32px;
  }
}

/* ─── Marquee ─── */
.marquee {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  max-width: 100vw;
  background: var(--bg-deep);
}
.marquee-track {
  display: flex; gap: 60px;
  animation: scroll 45s linear infinite;
  width: max-content;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.marquee-track span.dot { color: var(--accent); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ─── Manifesto / About ─── */
.about {
  padding-top: 160px; padding-bottom: 160px;
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-label h2 {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: -1px;
  font-weight: 400;
}
.about-label h2 em { font-style: italic; color: var(--accent); }
.about-body {
  font-size: 22px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.about-body p { margin: 0 0 28px 0; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { font-weight: 500; color: var(--ink); }
.about-body .pull {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
}

/* ─── Principles ─── */
.principles {
  padding-top: 140px; padding-bottom: 140px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.principles-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px;
  gap: 40px;
  flex-wrap: wrap;
}
.principles-head h2 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 350;
  max-width: 780px;
}
.principles-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr; } }
.principle {
  background: var(--bg-deep);
  padding: 40px 36px 44px;
  min-height: 280px;
  display: flex; flex-direction: column;
  position: relative;
}
.principle-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  margin-bottom: 24px;
}
.principle h3 {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.15;
}
.principle h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ─── Product showcase (Book Nova) ─── */
.product {
  padding-top: 160px; padding-bottom: 160px;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.product-glow {
  position: absolute;
  bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(240, 187, 98, 0.12), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.product-head {
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 24px;
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-faint);
}
.product-head .tag-live {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s, filter 0.2s;
}
.product-head .tag-live + .tag-live { background: var(--gold); }
.product-head a.tag-live:hover { transform: translateY(-1px); filter: brightness(1.08); }
.product-title {
  font-family: var(--f-display);
  font-size: clamp(60px, 9vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin-bottom: 32px;
}
.product-title em { font-style: italic; color: var(--accent); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; gap: 48px; } }
.product-lede {
  font-size: 20px; line-height: 1.55; color: var(--ink-soft);
  margin-bottom: 36px;
  font-weight: 300;
}
.feat-list { list-style: none; padding: 0; margin: 0 0 40px 0; }
.feat-list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.feat-list li:last-child { border-bottom: none; }
.feat-list .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  min-width: 30px;
}
.feat-list .label { color: var(--ink); font-weight: 500; }
.feat-list .desc { color: var(--ink-faint); margin-left: auto; font-size: 13px; }
@media (max-width: 500px) { .feat-list .desc { display: none; } }

/* Phone mockup */
.phone-stage {
  position: relative;
  height: 620px;
  display: flex; justify-content: center; align-items: center;
}
.phone {
  width: 280px; height: 580px;
  background: #0B0A0D;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.6),
    0 0 0 1px var(--line-strong),
    inset 0 0 0 2px rgba(244, 235, 217, 0.04);
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}
.phone:hover { transform: rotate(0deg) translateY(-8px); }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 34px;
  background: #FAF4EA;
  overflow: hidden;
  position: relative;
  color: #2B2118;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 24px;
  background: #0B0A0D;
  border-radius: 14px;
  z-index: 10;
}
.phone-back {
  position: absolute;
  width: 260px; height: 540px;
  border-radius: 42px;
  background: linear-gradient(135deg, #1F1D24 0%, #0E0D10 100%);
  border: 1px solid var(--line-strong);
  transform: rotate(4deg) translate(30px, 20px);
  z-index: -1;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Inside phone: a Book Nova-ish hero */
.bn-status {
  display: flex; justify-content: space-between;
  padding: 18px 24px 10px;
  font-family: var(--f-ui);
  font-size: 13px; font-weight: 600;
  color: #2B2118;
}
.bn-body {
  padding: 30px 22px 22px;
  height: calc(100% - 50px);
  display: flex; flex-direction: column;
}
.bn-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  color: #9A8775; margin-bottom: 10px;
}
.bn-h {
  font-family: 'Fraunces', serif;
  font-size: 34px; line-height: 0.95;
  font-weight: 400; letter-spacing: -0.5px;
  color: #2B2118; margin-bottom: 6px;
}
.bn-h em { font-style: italic; color: #C96A4B; }
.bn-sub {
  font-size: 11px; color: #5C4A3A; line-height: 1.5;
  margin-bottom: 20px;
}
.bn-stack {
  flex: 1;
  display: flex; flex-direction: column-reverse;
  align-items: center; gap: 1px;
  margin-bottom: 18px;
}
.bn-book {
  height: 11px; border-radius: 1px;
  display: flex; align-items: center;
  padding: 0 8px;
  font-family: 'Fraunces', serif;
  font-size: 6px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.4px; text-transform: uppercase;
  box-shadow: inset -3px 0 0 rgba(0,0,0,0.15), 0 1px 1px rgba(43,33,24,0.2);
  position: relative;
}
.bn-book::before {
  content: ''; position: absolute; left: 4px; top: 1px; bottom: 1px; width: 1.5px;
  background: rgba(217,164,74,0.6); border-radius: 1px;
}
.bn-cta {
  padding: 14px; text-align: center;
  background: linear-gradient(180deg, #E4885F, #C96A4B);
  color: #fff;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(228,136,95,0.3);
}

/* Phone label tag */
.phone-label {
  position: absolute;
  top: 50%; right: -30px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left top;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Stats ─── */
.stats {
  padding-top: 100px; padding-bottom: 100px;
  border-top: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: left; }
.stat-val {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 1;
  font-weight: 350;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}
.stat-val em { font-style: italic; color: var(--accent); }
.stat-label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── Team ─── */
.team {
  padding-top: 160px; padding-bottom: 160px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.team-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.team-head h2 {
  font-family: var(--f-display);
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 350;
}
.team-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.team-head p {
  font-size: 17px; color: var(--ink-soft); line-height: 1.55;
  margin-top: 24px; max-width: 620px;
}
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
  transition: border-color 0.3s;
}
.member:hover { border-color: var(--line-strong); }
@media (max-width: 600px) { .member { grid-template-columns: 1fr; } }
.avatar {
  width: 140px; height: 170px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--bg-deep) 8px 16px);
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
}
.avatar-initials {
  font-family: var(--f-display);
  font-size: 64px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: -2px;
}
.avatar-tag {
  position: absolute;
  bottom: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--ink-faint);
  text-transform: uppercase;
  background: rgba(14, 13, 16, 0.8);
  padding: 3px 8px; border-radius: 4px;
}
.member-role {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.member-name {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.member-name em { font-style: italic; }
.member-bio {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}
.member-links {
  display: flex; gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.member-links a:hover { color: var(--accent); }

/* ─── Contact ─── */
.contact {
  padding-top: 160px; padding-bottom: 140px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact h2 {
  font-family: var(--f-display);
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-weight: 300;
  margin-bottom: 32px;
}
.contact h2 em { font-style: italic; color: var(--accent); }
.contact-lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.55;
}
.contact-channels {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.channel {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  transition: all 0.2s;
}
.channel:hover { background: var(--surface); border-color: var(--ink-soft); }
.channel-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── Footer ─── */
footer {
  padding: 56px 32px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.footer-wrap {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 30px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .footer-wrap { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.footer-brand em { font-style: italic; color: var(--accent); }
.footer-desc {
  font-size: 14px; color: var(--ink-faint); line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px; font-weight: 500;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}

/* ─── Theme clair (toggle) ─── */
html.theme-light {
  --bg: #F4EBD9;
  --bg-deep: #EDE2CE;
  --surface: #FAF4EA;
  --surface-2: #F2E9D8;
  --line: rgba(43, 33, 24, 0.10);
  --line-strong: rgba(43, 33, 24, 0.18);
  --ink: #2B2118;
  --ink-soft: #5C4A3A;
  --ink-faint: #7A6A58;
}
html.theme-light body { background: var(--bg); color: var(--ink); }
html.theme-light .nav {
  background: rgba(244, 235, 217, 0.72);
}
html.theme-light .hero-glow { opacity: 0.55; }
html.theme-light .btn-primary {
  background: var(--ink); color: var(--bg);
}
html.theme-light .btn-primary:hover { box-shadow: 0 10px 30px rgba(43, 33, 24, 0.25); }
html.theme-light .avatar {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--bg-deep) 8px 16px);
}
html.theme-light .member { background: var(--surface); }
html.theme-light .nav-logo-mark {
  border-color: var(--ink);
}
html.theme-light ::selection { background: var(--accent); color: var(--bg); }

/* ─── Theme toggle FAB ─── */
.theme-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.theme-fab:hover {
  transform: scale(1.08);
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.theme-fab svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.theme-fab .icon-sun { display: none; }
html.theme-light .theme-fab {
  background: rgba(244, 235, 217, 0.78);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(43, 33, 24, 0.18);
}
html.theme-light .theme-fab .icon-moon { display: none; }
html.theme-light .theme-fab .icon-sun { display: block; }
@media (max-width: 600px) {
  .theme-fab { bottom: 16px; right: 16px; width: 42px; height: 42px; }
}

/* View Transitions pour le theme toggle */
@keyframes theme-reveal {
  from { clip-path: circle(0% at var(--x, 50%) var(--y, 50%)); }
  to   { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
}
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: theme-reveal 0.5s ease-in-out; }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.shown { opacity: 1; transform: translateY(0); }

/* Pas de reveal si l'utilisateur préfère moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
