/* ══════════════════════════════════════════════
   ApiThrive — main.css
   Tokens centralisés dans :root
   ══════════════════════════════════════════════ */

/* ── POLICES AUTO-HEBERGEES (latin + latin-ext) ── */

/* -- JetBrains Mono -- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -- Lora -- */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lora-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/lora-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lora-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lora-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -- Vollkorn -- */
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vollkorn-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vollkorn-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vollkorn-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vollkorn-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/vollkorn-600-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/vollkorn-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/vollkorn-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/vollkorn-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/vollkorn-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vollkorn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/vollkorn-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  /* ── Palette ── */
  --cream:     #f7f5ef;
  --parchment: #ede8da;
  --paper:     #faf9f5;
  --ink:       #1c1a14;
  --ink-soft:  #4a4535;
  --ink-muted: #7a7260;
  --amber:     #c8920a;
  --amber-lt:  #e8b830;
  --amber-bg:  #fdf3d8;
  --rule:      rgba(28, 26, 20, 0.12);

  /* ── Typographie ── */
  --font-head: 'Vollkorn', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;

  /* ── Échelle de tailles ── */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 18px;
  --text-lg:   22px;
  --text-xl:   clamp(32px, 3.5vw, 48px);
  --text-2xl:  clamp(48px, 6vw, 80px);
}

/* ── BASE ── */
html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── GRAIN OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.04;
  filter: url(#grain);
  pointer-events: none;
  z-index: 9999;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  height: 64px;
  background: color-mix(in srgb, var(--parchment) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-brand {
  display: flex; align-items: center;
  justify-self: start;
  text-decoration: none;
}
.nav-brand picture { display: flex; align-items: center; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber); }

.lang-toggle {
  display: flex; align-items: center;
  justify-self: end;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}
.lang-toggle a {
  display: block;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle a.active {
  background: var(--ink);
  color: var(--cream);
}

/* ── DESIGN LAB (outil preview temporaire) ── */
.design-lab {
  position: absolute;
  bottom: 0; left: 2.5rem;
  transform: translateY(100%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: color-mix(in srgb, var(--parchment) 95%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.design-lab-btn {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s;
}
.design-lab-btn:nth-child(1) { background: var(--amber-lt); }
.design-lab-btn:nth-child(2) { background: var(--amber); }
.design-lab-btn:nth-child(3) { background: #3F2418; }
.design-lab-btn:hover        { transform: scale(1.25); }
.design-lab-btn.active       { outline: 2px solid var(--ink-soft); outline-offset: 2px; }

/* ── LIENS EXTERNES ── */
a[href^="http"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a[href^="http"]:hover {
  color: var(--amber);
  text-decoration-style: solid;
}


/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7rem 0 4rem;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 3vw, 5rem);
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.45fr);
  gap: clamp(3rem, 5vw, 6rem);
  align-items: center;
}

.hero-text {
  display: flex; flex-direction: column; gap: clamp(1.4rem, 1.6vw, 2.2rem);
  align-items: flex-start;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 3.4vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-nowrap { white-space: nowrap; }

.hero-sub {
  font-size: clamp(18px, 1.05vw, 22px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-style: normal;
  font-size: clamp(18px, 0.95vw, 22px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.75rem 1.7rem;
  background: var(--parchment);
  border: none;
  border-left: 3px solid var(--amber);
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(28, 26, 20, 0.15);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.hero-cta:hover {
  background: white;
  color: var(--ink);
}

.hero-chart-wrap {
  display: flex; flex-direction: column;
  width: 100%;
  color: var(--ink);
}
.hero-chart-label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  gap: 1rem;
}
.hero-chart-label b { color: var(--ink); font-weight: 600; }

.hive-chart {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
}

.hero-chart-foot {
  margin-top: 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-legend { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.hero-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero-legend-line { width: 18px; height: 2px; background: currentColor; opacity: 0.85; }

/* ── HERO SCROLL INDICATOR ── */
@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: color 0.2s;
  animation: hero-bounce 2s ease-in-out infinite;
  text-decoration: none;
}
.hero-scroll svg {
  width: 32px;
  height: 32px;
}
.hero-scroll:hover {
  color: var(--amber);
  animation-play-state: paused;
}

/* ── VIDEO ── */
#video {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, #2a1808 0%, #1a0e04 100%);
  box-shadow: 0 8px 30px rgba(28, 26, 20, 0.18);
}

.video-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100.5' height='87'><g stroke='%23c8920a' stroke-width='1.2' fill='none'><polygon points='45.0,40.5 25.1,52.0 5.2,40.5 5.2,17.5 25.1,6.0 45.0,17.5'/><polygon points='95.3,40.5 75.3,52.0 55.4,40.5 55.4,17.5 75.3,6.0 95.3,17.5'/><polygon points='70.1,84.0 50.2,95.5 30.3,84.0 30.3,61.0 50.2,49.5 70.1,61.0'/><polygon points='19.9,84.0 0,95.5 -19.9,84.0 -19.9,61.0 0,49.5 19.9,61.0'/><polygon points='120.4,84.0 100.5,95.5 80.5,84.0 80.5,61.0 100.5,49.5 120.4,61.0'/><polygon points='70.1,-3.0 50.2,8.5 30.3,-3.0 30.3,-26.0 50.2,-37.5 70.1,-26.0'/><polygon points='19.9,-3.0 0,8.5 -19.9,-3.0 -19.9,-26.0 0,-37.5 19.9,-26.0'/><polygon points='120.4,-3.0 100.5,8.5 80.5,-3.0 80.5,-26.0 100.5,-37.5 120.4,-26.0'/></g></svg>");
  background-size: 100.5px 87px;
  background-position: 0 21.75px;
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
}

.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
}

.video-play {
  width: 64px;
  height: 64px;
  color: var(--amber);
  opacity: 0.85;
}

.video-status {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(70% 0.04 80);
  font-weight: 600;
}

.video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

/* ── SECTIONS COMMUNES ── */
section { padding: 6rem 2rem; }

.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

h2 {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.divider {
  width: 48px; height: 2px;
  background: var(--amber);
  margin: 0 0 2rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  border-left: 3px solid var(--amber);
  padding-left: 1.4rem;
  margin-bottom: 2rem;
}
.section-heading .section-label {
  margin-bottom: 0.6rem;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .divider {
  display: none;
}

/* ── SECTION BACKGROUNDS — source de vérité ──────────────────────────
   Pour changer l'habillage d'une section, modifier uniquement sa classe HTML.
   hex-bg          → --parchment + motif nid d'abeilles
   section-hex-deco → --cream    + hexagones de coin
   (aucune classe)  → fond propre défini sur #hero
   ──────────────────────────────────────────────────────────────────── */

/* ── HEX BACKGROUND ── */
.hex-bg { position: relative; background: var(--cream); }
.hex-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: #c8920a;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100.5' height='87.0'><polygon points='45.0,40.5 25.1,52.0 5.2,40.5 5.2,17.5 25.1,6.0 45.0,17.5' fill='white'/><polygon points='95.3,40.5 75.3,52.0 55.4,40.5 55.4,17.5 75.3,6.0 95.3,17.5' fill='white'/><polygon points='70.1,84.0 50.2,95.5 30.3,84.0 30.3,61.0 50.2,49.5 70.1,61.0' fill='white'/><polygon points='19.9,84.0 0.0,95.5 -19.9,84.0 -19.9,61.0 -0.0,49.5 19.9,61.0' fill='white'/><polygon points='120.4,84.0 100.5,95.5 80.5,84.0 80.5,61.0 100.5,49.5 120.4,61.0' fill='white'/><polygon points='70.1,-3.0 50.2,8.5 30.3,-3.0 30.3,-26.0 50.2,-37.5 70.1,-26.0' fill='white'/><polygon points='19.9,-3.0 0.0,8.5 -19.9,-3.0 -19.9,-26.0 -0.0,-37.5 19.9,-26.0' fill='white'/><polygon points='120.4,-3.0 100.5,8.5 80.5,-3.0 80.5,-26.0 100.5,-37.5 120.4,-26.0' fill='white'/></svg>");
  background-size: 100.5px 87.0px;
  background-position: 0 21.75px;
  opacity: 0.035;
}
.hex-bg > * { position: relative; z-index: 1; }

/* ── ABOUT ── */
#about {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.about-text p { color: var(--ink-soft); margin-bottom: 1.2rem; font-size: var(--text-base); }

.about-features { display: flex; flex-direction: column; gap: 1.4rem; }

.feature-card {
  border: none;
  border-radius: 4px;
  padding: 1.3rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  position: relative;
  isolation: isolate;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--cream);
  box-shadow: 0 2px 12px rgba(28, 26, 20, 0.07), 0 0 0 1px rgba(28, 26, 20, 0.05);
  z-index: 0;
  pointer-events: none;
}

.feature-card > div {
  position: relative;
  z-index: 1;
}

.feature-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
}

.feature-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.feature-card p { font-size: var(--text-base); color: var(--ink-muted); line-height: 1.6; }

/* ── CARD BEE STAGE ── */
.card-bee-stage {
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}

/* ── CARD HOVER ANIMATIONS ── */

/* Frémissement au hover */
@keyframes card-wiggle {
  0%   { transform: translateX(0) rotate(0deg); }
  18%  { transform: translateX(-5px) rotate(-0.5deg); }
  36%  { transform: translateX(4px) rotate(0.4deg); }
  54%  { transform: translateX(-2px) rotate(-0.3deg); }
  75%  { transform: translateX(1px) rotate(0.1deg); }
  100% { transform: translateX(0) rotate(0deg); }
}
.card--diviser.card-wiggling {
  animation: card-wiggle 0.5s ease;
}

/* ── TEAM ── */
#team {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.team-intro {
  color: var(--ink-soft);
  font-size: var(--text-base);
  max-width: 100%;
  margin: 0 0 3.2rem;
  line-height: 1.75;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.team-card {
  text-align: center;
  padding: 0.5rem 0.4rem;
}

.team-portrait {
  width: 84px;
  height: 96px;
  background: var(--amber-bg);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
  overflow: hidden;
}
.team-portrait span {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--amber);
  line-height: 1;
}
.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

.team-role {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.team-bio {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.7;
  text-align: left;
}
.team-bio em {
  font-style: italic;
  color: var(--ink);
}

/* ── SECTIONS PARCHMENT + HEXAGONES COINS ── */
.section-hex-deco {
  background: var(--parchment);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.section-hex-deco .section-inner {
  position: relative;
  z-index: 1;
}

.section-hexes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.section-hex {
  position: absolute;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ── FAQ ── */

.faq-list { margin-top: 2rem; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }

.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.3rem 0;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--amber); }

.faq-q-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  text-align: left;
}

.faq-bullet {
  flex-shrink: 0;
  color: var(--ink);
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.faq-bullet polygon { fill: none; fill-opacity: 0; transition: fill 0.25s ease, fill-opacity 0.25s ease; }
.faq-question:hover .faq-bullet { opacity: 1; color: var(--amber); }
.faq-question:hover .faq-bullet polygon { fill: currentColor; fill-opacity: 0.2; }
.faq-question[aria-expanded="true"] .faq-bullet { opacity: 1; color: var(--amber); }
.faq-question[aria-expanded="true"] .faq-bullet polygon { fill: currentColor; fill-opacity: 0.2; }

.faq-chevron { flex-shrink: 0; transition: transform 0.25s; color: var(--amber); }
.faq-chevron.open { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0; opacity: 0;
}
.faq-answer.open { max-height: 400px; opacity: 1; }
.faq-answer p { padding-bottom: 1.4rem; color: var(--ink-soft); font-size: var(--text-base); line-height: 1.75; }

/* ── CONTACT ── */
#contact {
  border-top: 1px solid var(--rule);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-card {
  border-radius: 4px;
  padding: 2rem;
  position: relative;
  isolation: isolate;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: var(--parchment);
  box-shadow: 0 2px 12px rgba(28, 26, 20, 0.07), 0 0 0 1px rgba(28, 26, 20, 0.05);
  z-index: 0;
  pointer-events: none;
}

.contact-card-icons {
  display: none;
}

.contact-card-body {
  position: relative;
  z-index: 1;
}

.contact-card-heading {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.contact-card-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}

.contact-card-title {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0;
}

.contact-card p {
  font-size: var(--text-base);
  color: var(--ink-soft);
  line-height: 1.75;
}
.contact-card p + p { margin-top: 1.4rem; }

.checkboxes-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.contact-note {
  margin-top: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

label {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

input[type="email"],
textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid oklch(50% 0.02 80 / 0.3);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
input[type="email"]:focus,
textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px oklch(75% 0.14 72 / 0.15);
}
textarea { min-height: 130px; }

.form-error { color: #c0391b; font-size: var(--text-sm); }

.checkbox-row {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid oklch(50% 0.02 80 / 0.35);
  border-radius: 3px;
  background: var(--paper);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.checkbox-row input[type="checkbox"]:not(:checked):hover {
  border-color: var(--amber);
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--amber);
  border-color: var(--amber);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%; top: 2px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: translateX(-50%) rotate(45deg);
}
.checkbox-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.checkbox-row span { font-size: var(--text-base); color: var(--ink-soft); position: relative; top: 2px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  background: var(--parchment);
  color: var(--ink);
  border: none;
  border-left: 3px solid var(--amber);
  cursor: pointer;
  padding: 0.75rem 1.7rem;
  border-radius: 2px;
  font-family: var(--font-head);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  box-shadow: 3px 3px 0 rgba(28, 26, 20, 0.15);
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}
.form-submit:hover {
  background: white;
  color: var(--ink);
}

/* ── FORMULAIRE — honeypot, feedback, confidentialité ── */
.form-honeypot { display: none; }

.form-privacy {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: -0.4rem;
}
.form-privacy a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.form-privacy a:hover { color: var(--amber); }

#form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.form-feedback-success {
  background: var(--amber-bg);
  color: var(--ink-soft);
  border: 1px solid var(--amber-lt);
}
.form-feedback-error {
  background: #fef2f0;
  color: #c0391b;
  border: 1px solid #f5c6bc;
}

/* ── PAGES AUTONOMES (confidentialité, confirmation) ── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 2rem 5rem;
}
.page-content h1 {
  font-family: var(--font-head);
  font-size: var(--text-xl);
  margin-bottom: 2.5rem;
}
.page-body { line-height: 1.9; }
.page-body h2 {
  font-family: var(--font-head);
  font-size: var(--text-lg);
  margin: 2.5rem 0 0.8rem;
  color: var(--ink);
}
.page-body p  { margin-bottom: 1.2rem; color: var(--ink-soft); }
.page-body ul { margin: 0 0 1.2rem 1.5rem; }
.page-body li { margin-bottom: 0.4rem; color: var(--ink-soft); }
.page-body a  { color: var(--amber); text-underline-offset: 3px; }

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.65;
  transition: opacity 0.2s;
}
footer a:hover { opacity: 1; }

/* ── FOOTER ── */
footer {
  background: radial-gradient(ellipse 90% 70% at 50% 50%, #2a1808 0%, #1a0e04 100%);
  color: oklch(80% 0.02 80);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 2rem;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='100.5' height='87'><g stroke='%23c8920a' stroke-width='1.2' fill='none'><polygon points='45.0,40.5 25.1,52.0 5.2,40.5 5.2,17.5 25.1,6.0 45.0,17.5'/><polygon points='95.3,40.5 75.3,52.0 55.4,40.5 55.4,17.5 75.3,6.0 95.3,17.5'/><polygon points='70.1,84.0 50.2,95.5 30.3,84.0 30.3,61.0 50.2,49.5 70.1,61.0'/><polygon points='19.9,84.0 0,95.5 -19.9,84.0 -19.9,61.0 0,49.5 19.9,61.0'/><polygon points='120.4,84.0 100.5,95.5 80.5,84.0 80.5,61.0 100.5,49.5 120.4,61.0'/><polygon points='70.1,-3.0 50.2,8.5 30.3,-3.0 30.3,-26.0 50.2,-37.5 70.1,-26.0'/><polygon points='19.9,-3.0 0,8.5 -19.9,-3.0 -19.9,-26.0 0,-37.5 19.9,-26.0'/><polygon points='120.4,-3.0 100.5,8.5 80.5,-3.0 80.5,-26.0 100.5,-37.5 120.4,-26.0'/></g></svg>");
  background-size: 100.5px 87px;
  background-position: 0 21.75px;
  opacity: 0.06;
  mix-blend-mode: screen;
  pointer-events: none;
}

footer p {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  #hero { padding: 6rem 0 3rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.4rem;
  }
  .hero-chart-foot { font-size: 9.5px; }
}

@media (max-width: 700px) {
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .about-grid, .team-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4rem 1.2rem; }
}
