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

:root {
  --bg: #060c18;
  --surface: #0b1728;
  --card: #0d1e35;
  --card2: #112240;
  --border: rgba(99, 179, 237, 0.1);
  --border2: rgba(99, 179, 237, 0.2);
  --primary: #00e5c3;
  --primary-dim: rgba(0, 229, 195, 0.08);
  --primary-glow: rgba(0, 229, 195, 0.25);
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --text: #e2f0ff;
  --text-muted: #6b9ab8;
  --text-dim: #3d6080;
  --red: #ef4444;
  --green: #22c55e;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.7);
  --r: 12px;
  --r-lg: 20px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.2; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }

/* ===================== NAV ===================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,12,24,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 0.5rem; align-items: center; }
.nav-links a { padding: 6px 14px; border-radius: 8px; font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.nav-links a:hover { color: var(--text); background: var(--primary-dim); }
.nav-cta { background: var(--primary) !important; color: var(--bg) !important; font-weight: 600 !important; }
.nav-cta:hover { opacity: 0.9; }

/* ===================== HERO ===================== */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 100px 2rem 4rem; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,195,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(59,130,246,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(139,92,246,0.04) 0%, transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,229,195,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 100px; border: 1px solid var(--border2); background: var(--primary-dim); color: var(--primary); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; }
#hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; margin-bottom: 1.5rem; color: var(--text); }
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: linear-gradient(135deg, var(--primary), #3b82f6); color: var(--bg); font-weight: 700; font-size: 1rem; border-radius: 100px; transition: var(--transition); box-shadow: 0 0 32px var(--primary-glow); }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 0 48px var(--primary-glow); color: var(--bg); }

/* ===================== DISCLAIMER ===================== */
.disclaimer-bar {
  background: var(--accent-dim); border-top: 1px solid rgba(245,158,11,0.2); border-bottom: 1px solid rgba(245,158,11,0.2);
  padding: 12px 2rem; text-align: center; font-size: 0.875rem; color: #fbbf24;
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.disc-icon { font-size: 1.1rem; }

/* ===================== SECTIONS ===================== */
.section { padding: 6rem 2rem; }
.section-dark { background: var(--surface); }
.container { max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag { display: inline-block; padding: 4px 14px; border-radius: 100px; background: var(--primary-dim); border: 1px solid var(--border2); color: var(--primary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 1rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0.5rem auto 0; }
.badge-incontournable { font-size: 0.75rem; background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(245,158,11,0.2); padding: 3px 10px; border-radius: 100px; vertical-align: middle; margin-left: 8px; }

/* ===================== INTRO ===================== */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
@media(max-width: 768px) { .intro-grid { grid-template-columns: 1fr; } }
.intro-text p { color: var(--text-muted); margin-bottom: 1rem; }
.intro-text strong { color: var(--text); }
.intro-text em { color: var(--primary); font-style: normal; }
.intro-sources h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.source-card { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1rem; margin-bottom: 0.75rem; transition: var(--transition); }
.source-card:hover { border-color: var(--border2); }
.source-icon { font-size: 1.4rem; flex-shrink: 0; }
.source-card strong { display: block; color: var(--text); font-size: 0.9rem; }
.source-card p { margin: 0; font-size: 0.82rem; color: var(--text-muted); }
.remark-box { background: var(--primary-dim); border: 1px solid rgba(0,229,195,0.2); border-radius: var(--r); padding: 1.5rem; }
.remark-box h4 { color: var(--primary); margin-bottom: 0.5rem; }
.remark-box p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ===================== PRODUITS GRID (Section A) ===================== */
.produits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.prod-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; transition: var(--transition); position: relative; overflow: hidden; }
.prod-card:hover { border-color: var(--border2); transform: translateY(-2px); box-shadow: var(--shadow); }
.prod-card.star { border-color: rgba(245,158,11,0.3); background: linear-gradient(135deg, var(--card), rgba(245,158,11,0.03)); }
.prod-card.star::before { content: '★★★★'; position: absolute; top: 10px; right: 12px; font-size: 0.65rem; color: var(--accent); }
.prod-card h4 { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; padding-right: 40px; }
.prod-card .prod-indications { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.prod-card .prod-posologie { font-size: 0.76rem; color: var(--primary); background: var(--primary-dim); padding: 4px 8px; border-radius: 6px; display: inline-block; margin-bottom: 0.4rem; }
.prod-card .prod-notes { font-size: 0.75rem; color: var(--text-dim); font-style: italic; }
.prod-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 0.4rem; }

/* ===================== PATHOLOGIES ===================== */
.patho-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.patho-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; transition: var(--transition); }
.patho-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.patho-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.patho-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.75rem; }
.patho-card li { font-size: 0.84rem; color: var(--text-muted); padding: 3px 0; padding-left: 12px; position: relative; }
.patho-card li::before { content: '›'; position: absolute; left: 0; color: var(--primary); }

/* ===================== NATURELS TABS ===================== */
.naturels-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn { padding: 8px 20px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.875rem; transition: var(--transition); font-family: inherit; }
.tab-btn:hover { color: var(--text); border-color: var(--border2); }
.tab-btn.active { background: var(--primary-dim); border-color: rgba(0,229,195,0.3); color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.naturel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.naturel-card { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; transition: var(--transition); position: relative; }
.naturel-card:hover { border-color: var(--border2); }
.naturel-card.star { border-color: rgba(245,158,11,0.3); }
.naturel-card h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.naturel-card p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.star-badge { position: absolute; top: 10px; right: 12px; font-size: 0.7rem; color: var(--accent); }
.antidotes-note { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2); border-radius: var(--r); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.875rem; color: #93c5fd; }
.anticancer-list { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; }
.anticancer-list p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.75rem; }
.anticancer-list strong { color: var(--primary); }

/* ===================== HUILES ESSENTIELLES ===================== */
.huiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.huile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; transition: var(--transition); }
.huile-card:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.huile-card.star { border-color: rgba(0,229,195,0.25); }
.huile-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 0.75rem; }
.huile-icon { font-size: 1.8rem; flex-shrink: 0; }
.huile-header h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.huile-badge { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 100px; background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(0,229,195,0.2); }
.huile-badge.warning { background: var(--accent-dim); color: var(--accent); border-color: rgba(245,158,11,0.2); }
.huile-card p { font-size: 0.82rem; color: var(--text-muted); }

/* Alzheimer protocol */
.alzheimer-protocol { background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(59,130,246,0.06)); border: 1px solid rgba(139,92,246,0.25); border-radius: var(--r-lg); padding: 2rem; }
.alzheimer-protocol h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.protocol-source { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.protocol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media(max-width: 640px) { .protocol-grid { grid-template-columns: 1fr; } }
.protocol-card { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.protocol-time { display: block; font-size: 0.82rem; font-weight: 600; color: var(--purple); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.protocol-formula { font-size: 0.83rem; color: var(--text); line-height: 2; background: rgba(0,0,0,0.2); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.5rem; }
.protocol-card p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ===================== TRUCS ===================== */
.trucs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.truc-card { background: var(--card2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; }
.truc-icon { font-size: 1.8rem; display: block; margin-bottom: 0.75rem; }
.truc-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.truc-card p { font-size: 0.83rem; color: var(--text-muted); }
.truc-card strong { color: var(--text); }

/* ===================== SEARCH TABLE ===================== */
#tableau { background: var(--surface); }
.search-box { position: relative; max-width: 700px; margin: 0 auto 1.5rem; }
.search-box input {
  width: 100%; padding: 16px 50px 16px 50px;
  background: var(--card); border: 2px solid var(--border2);
  border-radius: 100px; color: var(--text); font-size: 1rem;
  font-family: inherit; outline: none; transition: var(--transition);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-dim); }
.search-box input::placeholder { color: var(--text-dim); }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 1.1rem; pointer-events: none; }
.clear-btn { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: var(--border2); border: none; color: var(--text-muted); cursor: pointer; width: 26px; height: 26px; border-radius: 50%; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.clear-btn:hover { background: var(--border); color: var(--text); }
.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; align-items: center; }
.tag-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.quick-tag { padding: 5px 14px; border-radius: 100px; border: 1px solid var(--border2); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.8rem; transition: var(--transition); font-family: inherit; }
.quick-tag:hover, .quick-tag.active { background: var(--primary-dim); border-color: rgba(0,229,195,0.4); color: var(--primary); }
.result-count { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.5rem; min-height: 1.2rem; }
.table-wrapper { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--card2); }
th { padding: 14px 16px; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; font-size: 0.85rem; border-bottom: 1px solid rgba(99,179,237,0.05); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(0,229,195,0.02); }
.td-nom { font-weight: 600; color: var(--text); }
.td-nom.star-row::after { content: ' ★★★★'; color: var(--accent); font-size: 0.7rem; }
.td-cat { font-size: 0.75rem; }
.cat-badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.72rem; font-weight: 500; }
.cat-vitamine { background: rgba(34,197,94,0.1); color: #4ade80; }
.cat-antiparasitaire { background: rgba(239,68,68,0.1); color: #f87171; }
.cat-medicament { background: rgba(59,130,246,0.1); color: #60a5fa; }
.cat-antioxydant { background: rgba(139,92,246,0.1); color: #a78bfa; }
.cat-oligotherapie { background: rgba(245,158,11,0.1); color: #fbbf24; }
.cat-plante { background: rgba(16,185,129,0.1); color: #34d399; }
.cat-huile { background: rgba(236,72,153,0.1); color: #f472b6; }
.cat-chelateur { background: rgba(99,179,237,0.1); color: #7dd3fc; }
.cat-default { background: var(--border); color: var(--text-muted); }
.td-indications { max-width: 280px; }
.ind-tag { display: inline-block; padding: 2px 8px; border-radius: 100px; background: var(--primary-dim); color: var(--primary); font-size: 0.7rem; margin: 2px; border: 1px solid rgba(0,229,195,0.15); }
.ind-tag.highlight { background: rgba(0,229,195,0.2); border-color: rgba(0,229,195,0.4); font-weight: 600; }
.td-posologie { font-size: 0.78rem; color: var(--text-muted); max-width: 180px; }
.td-notes { font-size: 0.76rem; color: var(--text-dim); max-width: 220px; font-style: italic; }
.no-results { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.no-results span { display: block; font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }

/* ===================== FOOTER ===================== */
footer { background: var(--card); border-top: 1px solid var(--border); padding: 3rem 2rem 1.5rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
@media(max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
footer .nav-logo { font-size: 1.2rem; margin-bottom: 0.75rem; }
footer p { font-size: 0.82rem; color: var(--text-dim); }
footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.75rem; }
footer li { font-size: 0.8rem; color: var(--text-dim); padding: 3px 0; }
.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: 0.78rem; color: var(--text-dim); }

/* ===================== RESPONSIVE ===================== */
@media(max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 1rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .patho-grid, .produits-grid, .huiles-grid, .naturel-grid, .trucs-grid { grid-template-columns: 1fr; }
  th:nth-child(4), th:nth-child(5), td:nth-child(4), td:nth-child(5) { display: none; }
}

/* ===================== SCROLL BAR ===================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeInUp 0.5s ease forwards; }

/* ===================== BOUTON AMAZON AFFILIÉ ===================== */
.amz-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  padding: 6px 14px;
  background: var(--primary-dim);
  color: var(--primary) !important;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid rgba(0,229,195,0.25);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  width: 100%;
  justify-content: center;
}
.amz-btn:hover { background: rgba(0,229,195,0.15); border-color: rgba(0,229,195,0.45); transform: translateY(-1px); }

.amz-btn-sm {
  margin-top: 0;
  padding: 4px 10px;
  width: auto;
  font-size: 0.9rem;
}

.td-amz { text-align: center; white-space: nowrap; }

.amz-li-btn {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--primary-dim);
  color: var(--primary) !important;
  border: 1px solid rgba(0,229,195,0.2);
  border-radius: 4px;
  font-size: 0.72rem;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.6;
}
.amz-li-btn:hover { background: rgba(0,229,195,0.15); border-color: rgba(0,229,195,0.4); }

/* ===================== SPA PAGES ===================== */
.page { display: none; }
.page.active { display: block; }
.full-section { min-height: calc(100vh - 64px); padding-top: 80px; }

/* Nav active state */
.nav-links a.nav-active { color: var(--primary) !important; background: var(--primary-dim); }

/* Hero two buttons */
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-weight: 700; font-size: 1rem; border-radius: 100px; transition: var(--transition); cursor: pointer; }
.hero-btn-pdf { background: linear-gradient(135deg, var(--primary), #3b82f6); color: var(--bg); box-shadow: 0 0 32px var(--primary-glow); }
.hero-btn-pdf:hover { transform: translateY(-2px); box-shadow: 0 0 48px var(--primary-glow); color: var(--bg); }
.hero-btn-search { background: transparent; color: var(--text-muted); border: 1px solid var(--border2); }
.hero-btn-search:hover { color: var(--text); background: var(--primary-dim); border-color: var(--primary); }

/* ===================== HAMBURGER NAV ===================== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media(max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(6,12,24,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
  .nav-cta { text-align: center; margin-top: 0.5rem; }
}

/* ===================== INTRO VIDEO PLEIN ÉCRAN ===================== */
#page-intro.active {
  display: block !important;
  position: fixed !important;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  /* dvh = dynamic viewport height (exclut la barre d'adresse mobile) */
  height: calc(100dvh - 64px);
  overflow: hidden;
}

.intro-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.intro-video-wrap.hidden {
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.intro-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay tap-to-play (accès direct URL ou mobile sans geste) */
.video-tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video-tap-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(0,229,195,0.2);
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  animation: pulse-play 2s ease-in-out infinite;
}
@keyframes pulse-play {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,195,0.4); }
  50%       { box-shadow: 0 0 0 16px rgba(0,229,195,0); }
}
.video-tap-overlay p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
@media(max-width: 768px) {
  .video-tap-btn { width: 80px; height: 80px; font-size: 2.4rem; }
  .video-tap-overlay p { font-size: 1rem; }
}

/* Boutons overlay vidéo */
.video-skip-btn,
.video-unmute-btn {
  position: absolute;
  z-index: 10;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  color: rgba(255,255,255,0.9);
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-skip-btn {
  top: 14px; right: 14px;
  padding: 8px 16px;
  font-size: 0.82rem;
}
.video-unmute-btn {
  bottom: 20px; right: 20px;
  font-size: 1.5rem;
  padding: 8px 14px;
  line-height: 1;
  animation: pulse-unmute 2s ease-in-out infinite;
}
@keyframes pulse-unmute {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.video-skip-btn:hover,
.video-unmute-btn:hover { background: rgba(0,0,0,0.85); }
.video-skip-btn:active,
.video-unmute-btn:active { transform: scale(0.95); }

@media(max-width: 768px) {
  .video-unmute-btn { bottom: 16px; right: 16px; font-size: 1.8rem; padding: 10px 14px; }
  .video-skip-btn   { top: 12px; right: 12px; padding: 10px 18px; font-size: 0.9rem; }
}

/* Book reader — caché derrière la vidéo au départ */
.book-reader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 0.2s;
}

.book-reader.visible {
  z-index: 3;
  opacity: 1;
  pointer-events: all;
}

/* ===================== BOOK READER ===================== */
#page-intro {
  display: flex;
  flex-direction: column;
}

.book-topbar {
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.book-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-pageno {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 1rem;
}

.book-viewport {
  flex: 1;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
}

.book-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 1rem;
}

.book-content {
  max-width: 860px;
}

.book-arrow {
  width: 62px;
  min-width: 62px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--text-dim);
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#pdf-prev { border-right: 1px solid var(--border); }
#pdf-next { border-left: 1px solid var(--border); }

.book-arrow:hover:not(:disabled) {
  color: var(--primary);
  background: var(--primary-dim);
}

.book-arrow:active:not(:disabled) {
  background: rgba(0,229,195,0.15);
}

.book-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.book-footer {
  padding: 0.5rem 1.75rem 0.65rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.book-progress-track {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.book-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.book-footer-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.book-hint { font-style: italic; }

/* ===== Contenu des pages ===== */
.kindle-page {
  background: transparent;
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.93rem;
  line-height: 1.75;
}

.kindle-page h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.5rem;
  line-height: 1.25;
  text-align: center;
}

.kindle-page h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.kindle-page h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.75rem 0 0.75rem;
}

.kindle-page p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.kindle-page strong { color: var(--text); }

/* ── Entrée produit ── */
.p-entry {
  display: grid;
  grid-template-columns: minmax(170px, 260px) 1fr;
  gap: 0.4rem 1.25rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(99,179,237,0.07);
  align-items: baseline;
}

.p-entry:last-of-type { border-bottom: none; }

.p-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.p-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.kp-star { color: var(--accent); font-style: normal; font-weight: 700; font-size: 0.75rem; }

/* ── Note / Remarque ── */
.kp-note {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.8rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.85rem;
  color: #fbbf24;
  line-height: 1.6;
}

/* ── Liste à puces ── */
.kp-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.25rem;
}

.kp-list li {
  padding: 0.4rem 0 0.4rem 1.3rem;
  position: relative;
  border-bottom: 1px solid rgba(99,179,237,0.07);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.kp-list li:last-child { border-bottom: none; }

.kp-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.kp-list li b { color: var(--text); }

@media(max-width: 768px) {
  .book-arrow { width: 44px; min-width: 44px; font-size: 2.2rem; }
  .book-scroll { padding: 1.5rem 0.25rem; }
  .book-hint { display: none; }
  .p-entry { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.6rem 0; }
  .p-name { font-size: 0.9rem; }
}
