/* ============================================================
   GENUINE BV — Design System
   shared/genuine-base.css
   All pages load this file. Page-specific styles stay inline.
   ============================================================ */

/* VARIABLES */
:root {
  --navy:       #0a1f44;
  --navy-deep:  #061535;
  --navy-soft:  #1a3766;
  --accent:     #a8e040;
  --accent-deep:#7bb821;
  --ink:        #0a1f44;
  --ink-soft:   #4a5a78;
  --ink-mute:   #8a96ad;
  --paper:      #fafaf7;
  --paper-2:    #f3f1ea;
  --line:       #e8e4d8;
  --white:      #ffffff;
  --serif:      "Fraunces", Georgia, serif;
  --sans:       "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  flex-shrink: 0;
}
.logo span { color: var(--accent-deep); }

.nav-desktop {
  display: none;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-desktop a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav-desktop a.is-active { color: var(--navy); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after { width: 100%; }

.header-cta {
  display: none;
  padding: 0.6rem 1.1rem;
  background: var(--navy);
  color: var(--white) !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--navy-deep); transform: translateY(-1px); }

.menu-btn {
  background: none;
  border: none;
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  width: 22px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
  .nav-desktop, .header-cta { display: flex; }
  .menu-btn { display: none; }
}

.nav-mobile {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  /* height explicite : contourne le nouveau containing-block créé par
     backdrop-filter sur .site-header — bottom:0 ne fonctionnerait pas */
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px); /* dvh = dynamic viewport height, mobile-safe */
  width: 100%;
  background: var(--paper);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 999; /* au-dessus du header (z-index: 100) */
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile a {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .header-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: center;
}

/* ── TYPOGRAPHY UTILITIES ────────────────────────────────── */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--accent-deep); font-weight: 400; }
.section-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 55ch;
}
.section-lead p { margin-bottom: 1rem; }
.section-lead p:last-child { margin-bottom: 0; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10,31,68,0.05) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  position: relative;
}
.breadcrumb a { color: var(--accent-deep); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  position: relative;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent-deep); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--navy);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  position: relative;
}
.page-hero h1 em { font-style: italic; color: var(--accent-deep); font-weight: 400; }
.page-hero__lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  position: relative;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--sans);
  transition: transform 0.2s, background 0.2s, color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: var(--white) !important;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-2px); }
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }

/* ── SECTION DEFAULTS ────────────────────────────────────── */
section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }

/* ── CTA BAND (common variant) ───────────────────────────── */
.cta-band {
  padding: 5rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
  max-width: 32ch;
  margin: 0 auto 1.25rem;
}
.cta-band p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 55ch;
  margin: 0 auto 2rem;
}
.cta-band--navy {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.cta-band--navy::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(168, 224, 64, 0.1), transparent 60%);
  pointer-events: none;
}
.cta-band--navy h2 { color: var(--paper); }
.cta-band--navy p { color: rgba(250,250,247,0.75); }
.cta-band--navy .btn-primary {
  background: var(--accent);
  color: var(--navy) !important;
  border-color: var(--accent);
}
.cta-band--navy .btn-primary:hover {
  background: var(--accent-deep);
  color: var(--white) !important;
}
.cta-band--paper2 { background: var(--paper-2); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  color: var(--paper);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 250, 247, 0.1);
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand .logo { color: var(--paper); }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p {
  margin-top: 1rem;
  color: rgba(250, 250, 247, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 30ch;
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(250, 250, 247, 0.75);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(250, 250, 247, 0.5);
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── COURSE DETAIL PAGES ─────────────────────────────────── */
.course-body { padding: 4rem 0 6rem; }
.course-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .course-grid { grid-template-columns: 1fr 300px; gap: 4rem; } }

.course-hero-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px -15px rgba(10,31,68,0.2);
}
.course-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.15;
}
.course-content h2:first-child { margin-top: 0; }
.course-content h2 em { font-style: italic; color: var(--accent-deep); font-weight: 400; }
.course-content p { font-size: 1rem; line-height: 1.75; color: var(--ink-soft); margin-bottom: 1rem; }
.course-content ul { list-style: none; margin: 1rem 0 1.5rem; display: grid; gap: 0.5rem; }
@media (min-width: 600px) { .course-content ul { grid-template-columns: repeat(2, 1fr); } }
.course-content ul li { font-size: 0.95rem; color: var(--ink-soft); padding-left: 1.25rem; position: relative; line-height: 1.5; }
.course-content ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.course-sidebar {
  background: var(--navy);
  color: var(--paper);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.course-sidebar::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(168,224,64,0.12), transparent 60%);
  pointer-events: none;
}
.course-sidebar > * { position: relative; }
.sidebar-price { font-family: var(--serif); font-size: 2.8rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--accent); margin-bottom: 0.3rem; }
.sidebar-note { font-size: 0.82rem; color: rgba(250,250,247,0.6); margin-bottom: 1.75rem; }
.sidebar-meta { border-top: 1px solid rgba(250,250,247,0.15); padding-top: 1.25rem; margin-bottom: 1.75rem; }
.sidebar-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.75rem; font-size: 0.88rem; }
.sidebar-label { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 0.8rem; }
.sidebar-val { color: var(--paper); }
.sidebar-actions { display: flex; flex-direction: column; gap: 0.65rem; }
.btn-accent { display: flex; align-items: center; justify-content: center; padding: 0.9rem 1.25rem; background: var(--accent); color: var(--navy) !important; border-radius: 999px; font-weight: 600; font-size: 0.95rem; transition: background 0.2s, transform 0.2s; text-align: center; }
.btn-accent:hover { background: var(--accent-deep); color: var(--white) !important; transform: translateY(-2px); }
.btn-outline-paper { display: flex; align-items: center; justify-content: center; padding: 0.9rem 1.25rem; border: 1px solid rgba(250,250,247,0.3); color: var(--paper); border-radius: 999px; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; text-align: center; }
.btn-outline-paper:hover { border-color: var(--paper); background: rgba(250,250,247,0.08); }

.related-section { background: var(--paper-2); padding: 4rem 0; border-top: 1px solid var(--line); }
.related-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.rel-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem 1.5rem; display: block; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.rel-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -8px rgba(10,31,68,0.15); border-color: transparent; }
.rel-card__cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.4rem; }
.rel-card__title { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--navy); line-height: 1.3; margin-bottom: 0.4rem; }
.rel-card__note { font-size: 0.82rem; color: var(--ink-soft); }
.rel-card__arrow { display: flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 500; color: var(--navy); margin-top: 0.75rem; }
.rel-card__arrow .arrow { transition: transform 0.2s; }
.rel-card:hover .rel-card__arrow .arrow { transform: translateX(4px); }

/* ── COMMON SCRIPT SNIPPET (referenced by all pages) ─────── */
/* Mobile menu + scroll reveal handled by inline <script> per page */
