/* =========================================================================
   HETECH ACADÉMIE — Feuille de style sur-mesure
   Palette : vert émeraude profond · or/laiton · crème · marbre
   Typo : Playfair Display (titres) + Inter (corps)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

:root {
  /* Verts */
  --green-950: #07140F;
  --green-900: #0B1F18;
  --green-850: #0E2A21;
  --green-800: #113428;
  --green-700: #1B4D3B;
  --green-600: #246B52;
  --green-500: #2F8A6A;
  --green-400: #4FB591;

  /* Or / laiton */
  --gold-300: #E7CF9E;
  --gold-400: #D8B776;
  --gold-500: #C9A24B;
  --gold-600: #A9853A;

  /* Neutres chauds */
  --cream: #F4EFE4;
  --cream-dim: #D9D2C2;
  --muted: #9DB0A4;
  --line: rgba(216, 183, 118, 0.18);

  --shadow-soft: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 18px 50px -24px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--cream);
  background: var(--green-950);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif { font-family: 'Playfair Display', Georgia, serif; }

::selection { background: var(--gold-500); color: var(--green-950); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Fond aurore + grain marbre global ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 18% 10%, rgba(47, 138, 106, 0.32), transparent 60%),
    radial-gradient(45% 40% at 85% 22%, rgba(201, 162, 75, 0.14), transparent 60%),
    radial-gradient(60% 55% at 60% 95%, rgba(27, 77, 59, 0.55), transparent 72%),
    linear-gradient(160deg, var(--green-950), var(--green-900) 55%, var(--green-850));
  background-size: 160% 160%, 150% 150%, 170% 170%, 100% 100%;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  100% { background-position: 30% 20%, 70% 30%, 40% 80%, 0 0; }
}
/* Grille fine futuriste, estompée vers les bords */
.bg-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216,183,118,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,183,118,0.06) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  opacity: 0.6;
}
@media (prefers-reduced-motion: reduce) { .bg-aurora { animation: none; } }
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Texte doré / eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
}
.gold-text {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500) 45%, var(--gold-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
  white-space: nowrap;
}
.btn-gold {
  color: var(--green-950);
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 14px 34px -12px rgba(201, 162, 75, 0.6);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(201, 162, 75, 0.75); }
.btn-ghost {
  color: var(--cream);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); transform: translateY(-3px); }

/* Reflet animé sur le bouton or */
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
}
.btn-gold:hover::after { left: 130%; }

/* ---------- Cartes verre ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 50;
  transition: top 0.4s var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 22px;
  border-radius: 999px;
  background: rgba(11, 31, 24, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled .nav-inner { background: rgba(7, 20, 15, 0.85); box-shadow: var(--shadow-soft); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  border: 1px solid var(--gold-500);
  box-shadow: inset 0 0 14px rgba(201,162,75,0.25);
}
.brand .name { font-family: 'Playfair Display', serif; font-size: 1.15rem; line-height: 1; }
.brand .name small { display: block; font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.24em; color: var(--gold-400); text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; color: var(--cream-dim); position: relative; padding: 6px 0; transition: color 0.25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--gold-400); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; color: var(--cream); cursor: pointer; padding: 8px; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(7, 20, 15, 0.97);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: 'Playfair Display', serif; font-size: 1.6rem; padding: 12px; color: var(--cream); }
.mobile-menu a:hover { color: var(--gold-300); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 180px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; font-weight: 700; margin: 18px 0 22px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 1.12rem; color: var(--cream-dim); max-width: 30rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta .item .n { font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--gold-300); }
.hero-meta .item .l { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }

.hero-visual { position: relative; }
.hero-visual .frame {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.hero-visual .frame img { width: 100%; height: 520px; object-fit: cover; filter: saturate(0.85) contrast(1.02); }
.hero-visual .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,20,15,0.05), rgba(7,20,15,0.6)),
              linear-gradient(120deg, rgba(27,77,59,0.45), transparent 60%);
}
/* Hero 3D (gemme Three.js) */
.hero3d-wrap { position: relative; height: 540px; display: grid; place-items: center; }
#hero3d { position: relative; z-index: 3; width: 100%; height: 100%; display: block; }
.hero3d-glow { position: absolute; z-index: 1; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47,138,106,0.40), rgba(201,162,75,0.10) 55%, transparent 72%);
  filter: blur(26px); pointer-events: none; animation: glowpulse 7s ease-in-out infinite; }
@keyframes glowpulse { 0%,100% { transform: scale(0.92); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
.hero3d-ring { position: absolute; z-index: 2; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: inset 0 0 70px rgba(216,183,118,0.07); pointer-events: none; }
.hero3d-ring::before { content: ""; position: absolute; inset: -34px; border-radius: 50%;
  border: 1px dashed rgba(216,183,118,0.20); animation: ringspin 46s linear infinite; }
.hero3d-ring::after { content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(79,181,145,0.16); }
@keyframes ringspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero3d-glow, .hero3d-ring::before { animation: none; } }

.float-card {
  position: absolute; padding: 16px 18px; border-radius: 16px; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: rgba(7, 20, 15, 0.78); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: var(--shadow-card);
}
.float-card .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-600), var(--green-800)); color: var(--gold-300); }
.float-card .t { font-weight: 600; font-size: 0.92rem; }
.float-card .s { font-size: 0.74rem; color: var(--muted); }
.fc-1 { top: 26px; left: -28px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { bottom: 28px; right: -26px; animation: floaty 7s ease-in-out infinite 0.6s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; margin: 16px 0 14px; }
.section-head p { color: var(--cream-dim); font-size: 1.05rem; }

/* Bandeau confiance / logos */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-row .label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.trust-row .logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; opacity: 0.8; }
.trust-row .logos span { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--cream-dim); }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card { display: block; padding: 30px; border-radius: 20px; position: relative; cursor: pointer; color: inherit; text-decoration: none; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease); }
.svc-card:hover { transform: translateY(-8px); border-color: rgba(216,183,118,0.4); }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-300);
  opacity: 0; transform: translateX(-6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.svc-card:hover .svc-link { opacity: 1; transform: none; }
.svc-link svg { transition: transform 0.35s var(--ease); }
.svc-card:hover .svc-link svg { transform: translate(2px, -2px); }
@media (hover: none) { .svc-link { opacity: 1; transform: none; } }
.svc-card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(47,138,106,0.25), rgba(27,77,59,0.5));
  border: 1px solid var(--line); color: var(--gold-300);
  transition: transform 0.4s var(--ease);
}
.svc-card:hover .ic { transform: scale(1.08) rotate(-4deg); }
.svc-card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.svc-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- Formations ---------- */
.tier-toggle { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; margin: 0 auto 44px; }
.tier-toggle button { border: 0; background: transparent; color: var(--cream-dim); padding: 10px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s var(--ease); }
.tier-toggle button.active { background: linear-gradient(120deg, var(--gold-300), var(--gold-500)); color: var(--green-950); }

.formations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.formation {
  position: relative; padding: 28px; border-radius: 22px; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.formation:hover { transform: translateY(-8px); border-color: rgba(216,183,118,0.45); box-shadow: var(--shadow-card); }
.formation .cover { height: 150px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; position: relative; }
/* Pochette monogramme (couverture par application, sans dépendre d'une photo) */
.cover-mono { height: 172px; border-radius: 16px; overflow: hidden; margin-bottom: 18px; position: relative; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--green-800), var(--green-950));
  border: 1px solid rgba(255,255,255,0.07); box-shadow: inset 0 1px 0 rgba(255,255,255,0.09); }
/* Facettes lumineuses type gemme + halo de la couleur de l'app */
.cover-mono::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.9;
  background:
    radial-gradient(120% 120% at 78% 4%, color-mix(in srgb, var(--app, #2F8A6A) 78%, transparent), transparent 58%),
    conic-gradient(from 205deg at 66% 22%, rgba(255,255,255,0.12), transparent 70deg, rgba(255,255,255,0.03) 150deg, transparent 215deg, rgba(255,255,255,0.08) 295deg, transparent 360deg); }
/* Vignette + voile bas pour le contraste */
.cover-mono::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(140% 110% at 50% 0%, transparent 55%, rgba(7,20,15,0.5)),
              linear-gradient(180deg, transparent 45%, rgba(7,20,15,0.5)); }
.cover-mono .mono { position: relative; z-index: 2; font-family: 'Playfair Display', serif; font-size: 3.7rem; font-weight: 700;
  background: linear-gradient(160deg, #ffffff, var(--gold-300) 52%, var(--gold-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.55)); letter-spacing: 0.01em;
  transition: transform 0.55s var(--ease); }
.cover-mono .mono svg { width: 58px; height: 58px; }
.formation:hover .cover-mono .mono { transform: scale(1.08) translateY(-2px); }
/* Reflet qui balaie la pochette au survol */
.cover-shine { position: absolute; top: 0; left: -65%; width: 48%; height: 100%; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.20), transparent); transform: skewX(-18deg);
  transition: left 0.75s var(--ease); }
.formation:hover .cover-shine { left: 125%; }
.cover-mono .app-tag { position: absolute; bottom: 12px; right: 14px; z-index: 3; font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cream); opacity: 0.92; padding: 4px 9px; border-radius: 999px;
  background: rgba(7,20,15,0.45); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(4px); }
.formation .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.formation:hover .cover img { transform: scale(1.07); }
.formation .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(7,20,15,0.55)); }
.formation .badge {
  position: absolute; top: 12px; left: 12px; z-index: 3; font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; font-weight: 600;
  background: rgba(7,20,15,0.55); border: 1px solid rgba(216,183,118,0.45); color: var(--gold-300);
  backdrop-filter: blur(6px); box-shadow: 0 4px 14px -6px rgba(0,0,0,0.5);
}
.formation h3 { font-size: 1.3rem; margin: 0 0 6px; }
.formation .desc { color: var(--muted); font-size: 0.9rem; margin: 0 0 10px; }
.formation .form-obj { font-size: 0.82rem; color: var(--cream-dim); margin: 0 0 16px; line-height: 1.5; }
.formation .form-obj strong { color: var(--gold-300); }
.formation .feats { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.formation .feats li { font-size: 0.85rem; color: var(--cream-dim); display: flex; gap: 9px; align-items: flex-start; }
.formation .feats svg { flex: none; margin-top: 3px; color: var(--green-400); }
.formation .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; margin-bottom: 16px;
  padding-top: 16px; border-top: 1px solid var(--line); }
.formation .price { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--cream); line-height: 1; }
.formation .price .cur { color: var(--gold-300); }
.formation .per { font-size: 0.82rem; color: var(--muted); }
.formation.featured { border-color: rgba(216,183,118,0.5); }
.formation.featured::before {
  content: "★ Le plus choisi"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500)); color: var(--green-950); font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(201,162,75,0.7); white-space: nowrap;
}
.buy-btn { width: 100%; }

/* Pack en avant */
.bundle { margin-top: 26px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; overflow: hidden; border-radius: 24px; }
.bundle .left { padding: 40px; }
.bundle .right { padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: linear-gradient(150deg, rgba(47,138,106,0.18), rgba(27,77,59,0.35)); border-left: 1px solid var(--line); }
.bundle h3 { font-size: 1.8rem; margin: 10px 0; }
.bundle .price { font-family: 'Playfair Display', serif; font-size: 3rem; }
.bundle ul { columns: 2; gap: 24px; list-style: none; padding: 0; margin: 18px 0 0; }
.bundle ul li { font-size: 0.9rem; color: var(--cream-dim); margin-bottom: 8px; display: flex; gap: 8px; }
.bundle ul li svg { color: var(--green-400); flex: none; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px 24px; border-radius: 18px; position: relative; }
.step .num { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: rgba(216,183,118,0.35); line-height: 1; }
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); position: relative; }
.split .media img { width: 100%; height: 480px; object-fit: cover; }
.split .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(27,77,59,0.4), transparent 55%); }
.feat-list { display: grid; gap: 22px; margin-top: 30px; }
.feat-list .row { display: flex; gap: 16px; }
.feat-list .ic { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,138,106,0.25), rgba(27,77,59,0.5)); border: 1px solid var(--line); color: var(--gold-300); }
.feat-list h4 { margin: 0 0 4px; font-family: 'Inter', sans-serif; font-size: 1.02rem; font-weight: 600; }
.feat-list p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard { padding: 30px; border-radius: 20px; }
.tcard .stars { color: var(--gold-400); letter-spacing: 3px; margin-bottom: 16px; }
.tcard p { font-size: 1rem; color: var(--cream); margin: 0 0 22px; font-style: italic; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.tcard .who .nm { font-weight: 600; font-size: 0.92rem; }
.tcard .who .rl { font-size: 0.78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; color: var(--cream); cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.faq-q .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold-300); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 0 22px; margin: 0; font-size: 0.96rem; }

/* ---------- CTA final ---------- */
.cta-band { border-radius: 30px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 50% 0%, rgba(47,138,106,0.4), transparent 60%),
              linear-gradient(160deg, var(--green-800), var(--green-900)); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 14px 0 14px; }
.cta-band p { color: var(--cream-dim); max-width: 36rem; margin: 0 auto 30px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47,138,106,0.25), rgba(27,77,59,0.5)); border: 1px solid var(--line); color: var(--gold-300); }
.contact-info .row .t { font-weight: 600; }
.contact-info .row .s { color: var(--muted); font-size: 0.9rem; }
.form { padding: 34px; border-radius: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 8px; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); color: var(--cream); font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s, background 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-400); background: rgba(255,255,255,0.07); }
.field textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 30px; margin-top: 90px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: 'Inter', sans-serif; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--cream-dim); font-size: 0.9rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--gold-300); }
.footer .about { color: var(--muted); font-size: 0.92rem; max-width: 22rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 0.82rem; }

/* ---------- Modale paiement ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(7,20,15,0.78); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 440px; padding: 34px; border-radius: 22px; transform: translateY(16px) scale(0.98);
  transition: transform 0.35s var(--ease); }
.modal-back.open .modal { transform: none; }
.modal .close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.modal h3 { margin: 0 0 6px; font-size: 1.5rem; }
.modal .mprice { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--gold-300); margin: 4px 0 18px; }
.modal .note { font-size: 0.82rem; color: var(--muted); margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Mode admin (aperçu développement) ---------- */
.btn-admin { padding: 10px 16px; font-size: 0.85rem; color: #fff; gap: 8px;
  background: linear-gradient(120deg, #e5484d, #b3261e); border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 26px -12px rgba(229,72,77,0.65); }
.btn-admin:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(229,72,77,0.8); }
.btn-admin .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: adot 1.6s ease-in-out infinite; }
@keyframes adot { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }
.btn-admin.active { background: linear-gradient(120deg, #22c55e, #15803d); box-shadow: 0 10px 26px -12px rgba(34,197,94,0.7); }

.admin-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 65;
  display: none; align-items: center; gap: 16px; padding: 11px 18px; border-radius: 999px;
  background: rgba(7,20,15,0.92); border: 1px solid var(--line); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft); font-size: 0.85rem; max-width: calc(100vw - 32px); }
.admin-banner.show { display: flex; }
.admin-banner .pill { display: inline-flex; align-items: center; gap: 8px; color: #6ee7b7; font-weight: 600; }
.admin-banner .pill .d { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; }
.admin-banner button { background: none; border: 0; color: var(--gold-300); cursor: pointer; font-weight: 600; font-size: 0.85rem; text-decoration: underline; white-space: nowrap; }

.buy-btn.is-owned { background: linear-gradient(120deg, #34d399, #10b981); color: #04231a;
  box-shadow: 0 12px 30px -14px rgba(16,185,129,0.7); }
.buy-btn.is-owned::after { display: none; }

.bundle { position: relative; }
.owned-badge { position: absolute; top: 14px; right: 14px; z-index: 5; font-size: 0.64rem; letter-spacing: 0.1em; font-weight: 700;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
  background: linear-gradient(120deg, #1c8a5b, #0f6b44); border: 1px solid rgba(216,183,118,0.6); color: #FFFFFF;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.55); }
.owned-badge svg { color: #FFFFFF; }

/* Lecteur de formation (overlay) */
.reader { position: fixed; inset: 0; z-index: 80; background: rgba(4,12,9,0.92); backdrop-filter: blur(8px);
  display: none; padding: 22px; }
.reader.open { display: grid; place-items: center; }
.reader-panel { width: 100%; max-width: 1240px; height: min(92vh, 900px); display: grid; grid-template-columns: 280px 1fr;
  background: linear-gradient(160deg, var(--green-850), var(--green-900)); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-soft); position: relative; }
.reader-close { position: absolute; top: 14px; right: 16px; z-index: 5; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); color: var(--cream); width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.25s; }
.reader-close:hover { background: rgba(255,255,255,0.14); }
.reader-side { border-right: 1px solid var(--line); padding: 26px 18px; overflow-y: auto; background: rgba(0,0,0,0.18); }
.reader-app { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.reader-app .m { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: #fff;
  background: linear-gradient(145deg, var(--app, var(--green-600)), rgba(0,0,0,0.35)); }
.reader-app .t { font-family: 'Playfair Display', serif; font-size: 1.12rem; line-height: 1.1; }
.reader-app .s { font-size: 0.7rem; color: var(--muted); }
.reader-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.reader-chapters li { padding: 9px 12px; border-radius: 10px; font-size: 0.85rem; color: var(--cream-dim); cursor: pointer;
  transition: background 0.25s, color 0.25s; display: flex; gap: 9px; align-items: center; }
.reader-chapters li .k { font-size: 0.72rem; color: var(--muted); width: 18px; flex: none; }
.reader-chapters li:hover { background: rgba(255,255,255,0.05); color: var(--cream); }
.reader-chapters li.active { background: rgba(216,183,118,0.16); color: #E7CF9E; }
.reader-main { padding: 58px 64px; overflow-y: auto; font-size: 1.05rem; line-height: 1.8;
  background: #FBF8EF; color: #243029;
  display: flex; flex-direction: column; align-items: center; }
/* Colonne de lecture centrée (y compris en plein écran) */
.reader-main > * { width: 100%; max-width: 700px; }
.reader-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fca5a5; padding: 4px 10px; border-radius: 999px;
  background: rgba(229,72,77,0.14); border: 1px solid rgba(229,72,77,0.4); }
.reader-main h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 18px 0 22px; line-height: 1.12; }
.reader-body p { color: var(--cream-dim); margin: 0 0 16px; line-height: 1.7; }
.shot { margin: 24px 0; border: 1px dashed rgba(216,183,118,0.45); border-radius: 14px; min-height: 230px;
  display: grid; place-items: center; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px); }
.shot .ic { color: var(--gold-400); margin-bottom: 10px; }
.shot .cap { font-size: 0.84rem; }
.reader-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; }
.reader-nav button { padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  color: var(--cream); cursor: pointer; font-family: inherit; font-size: 0.9rem; font-weight: 600; transition: 0.25s var(--ease); }
.reader-nav button:hover:not(:disabled) { border-color: var(--gold-400); color: var(--gold-300); }
.reader-nav button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ---- Mode diaporama ---- */
.reader-progress { position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 6;
  background: rgba(255,255,255,0.08); border-top-left-radius: 22px; border-top-right-radius: 22px; overflow: hidden; }
.reader-progress span { display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); box-shadow: 0 0 12px rgba(216,183,118,0.7);
  transition: width 0.4s var(--ease); }
.reader-fs { position: absolute; top: 14px; right: 62px; z-index: 5; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); color: var(--cream); width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.reader-fs:hover { background: rgba(255,255,255,0.14); color: var(--gold-300); }
.reader-theme { position: absolute; top: 14px; right: 110px; z-index: 5; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line); color: var(--cream); width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background 0.25s, color 0.25s; }
.reader-theme:hover { background: rgba(255,255,255,0.14); color: var(--gold-300); }
.reader:fullscreen { padding: 0; }
.reader:fullscreen .reader-panel { max-width: none; width: 100%; height: 100%; border-radius: 0; }
.reader:fullscreen .reader-progress { border-radius: 0; }
.reader-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 46px; height: 46px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--cream);
  background: rgba(7,20,15,0.72); border: 1px solid var(--line); backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.reader-arrow:hover { background: rgba(7,20,15,0.95); border-color: var(--gold-400); color: var(--gold-300); }
.reader-arrow.prev { left: 296px; }
.reader-arrow.next { right: 16px; }
.reader-arrow.prev:hover { transform: translateY(-50%) translateX(-2px); }
.reader-arrow.next:hover { transform: translateY(-50%) translateX(2px); }
.reader-counter { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--gold-300); letter-spacing: 0.04em; }
.reader-nav { align-items: center; }
.reader-main.slide-next { animation: slidenext 0.4s var(--ease); }
.reader-main.slide-prev { animation: slideprev 0.4s var(--ease); }
@keyframes slidenext { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes slideprev { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .reader-arrow.prev { left: 10px; }
  .reader-arrow.next { right: 10px; }
  .reader-arrow { width: 40px; height: 40px; top: auto; bottom: 16px; transform: none; }
  .reader-arrow.prev:hover, .reader-arrow.next:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reader-main.slide-next, .reader-main.slide-prev { animation: none; } }
.reader-steps { color: var(--cream-dim); padding-left: 20px; margin: 0 0 4px; display: grid; gap: 9px; }
.reader-steps li { line-height: 1.6; }
.reader-steps li::marker { color: var(--gold-400); font-weight: 700; }
/* Astuces déroulables */
.reader-tip { margin: 16px 0 0; border: 1px solid rgba(216,183,118,0.4); border-radius: 12px;
  background: rgba(216,183,118,0.08); overflow: hidden; transition: border-color 0.25s; }
.reader-tip[open] { border-color: rgba(216,183,118,0.6); }
.reader-tip > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; font-weight: 600; color: var(--gold-300); font-size: 0.95rem; }
.reader-tip > summary::-webkit-details-marker { display: none; }
.reader-tip > summary .chev { margin-left: auto; color: var(--gold-400); transition: transform 0.3s var(--ease); }
.reader-tip[open] > summary .chev { transform: rotate(90deg); }
.reader-tip .tip-body { padding: 0 16px 15px 44px; color: var(--cream-dim); line-height: 1.75; font-size: 0.97rem; }
.cover-mono .mono.small { font-size: 2rem; letter-spacing: 0; }

/* Lecteur : contenu pédagogique réel */
.reader-ver { font-size: 0.84rem; color: var(--muted); background: rgba(255,255,255,0.04);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; margin: 0 0 18px; }
.reader-ver strong { color: var(--gold-300); }
.reader-intro { color: var(--cream); margin: 0 0 24px; line-height: 1.8; font-size: 1.14rem; }
.reader-pres { background: linear-gradient(150deg, rgba(47,138,106,0.14), rgba(27,77,59,0.22)); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 20px; }
.reader-pres p { margin: 0 0 8px; color: var(--cream-dim); line-height: 1.65; font-size: 0.92rem; }
.reader-pres p:last-child { margin-bottom: 0; }
.reader-pres strong { color: var(--gold-300); }
.reader-soon { color: var(--muted); font-style: italic; background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line); border-radius: 12px; padding: 16px; }
/* Sections de leçon — claires, toujours visibles (dépliables) */
.reader-acc { border: 0; border-top: 1px solid var(--line); border-radius: 0; margin: 26px 0 0; overflow: visible; background: none; }
.reader-acc > summary { cursor: pointer; list-style: none; padding: 22px 0 8px; font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--cream); display: flex; align-items: center; gap: 13px; }
.reader-acc > summary::-webkit-details-marker { display: none; }
.reader-acc > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px;
  background: var(--gold-400); transform: rotate(45deg); transition: transform 0.3s var(--ease); }
.reader-acc:not([open]) > summary::before { opacity: 0.5; transform: rotate(0deg); }
.reader-acc > summary:hover { color: var(--gold-300); }
.acc-body { padding: 6px 0 8px; color: var(--cream); line-height: 1.8; font-size: 1.04rem; }
.acc-body p { margin: 0 0 14px; }
.acc-body ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 11px; }
.acc-body ul li { line-height: 1.7; }
.acc-body ul li::marker { color: var(--gold-400); }
/* Étapes numérotées (pas à pas) */
.acc-body ol { list-style: none; counter-reset: step; margin: 8px 0 16px; padding: 0; display: grid; gap: 14px; }
.acc-body ol > li { counter-increment: step; position: relative; padding: 5px 0 5px 52px; line-height: 1.7; }
.acc-body ol > li::before { content: counter(step); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: var(--gold-300);
  background: rgba(216,183,118,0.12); border: 1px solid rgba(216,183,118,0.34); }
.acc-body li[data-open-chapter] { transition: color 0.2s; }
.acc-body li[data-open-chapter]:hover { color: var(--gold-300); text-decoration: underline; }
.reader-open { margin: 4px 0 18px; }
.acc-body strong { color: var(--cream); }
kbd { font-family: 'Inter', sans-serif; font-size: 0.78rem; padding: 1px 7px; border-radius: 6px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-bottom-width: 2px; color: var(--cream); white-space: nowrap; }

/* Glossaire : terme expliqué (bulle au survol / focus) */
.gloss { position: relative; border-bottom: 1.5px dotted var(--gold-500); cursor: help; color: inherit; outline: none; }
.gloss:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; border-radius: 2px; }
.gloss-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 40; width: 280px; max-width: 78vw;
  background: #0E2A21; color: var(--cream); border: 1px solid var(--gold-500); border-radius: 12px;
  padding: 11px 13px; font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 400; line-height: 1.55;
  text-transform: none; letter-spacing: 0; box-shadow: 0 18px 40px -16px rgba(0,0,0,0.7);
  opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.gloss-pop::after { content: ""; position: absolute; top: 100%; left: 22px; border: 7px solid transparent; border-top-color: #0E2A21; }
.gloss-pop strong { color: var(--gold-300); }
.gloss:hover .gloss-pop, .gloss:focus .gloss-pop, .gloss:focus-within .gloss-pop { opacity: 1; visibility: visible; transform: none; }

/* ====================== Lecteur : page de lecture CLAIRE (e-book) ====================== */
.reader-main h2 { color: #102E26; }
.reader-tag { color: #B3261E; background: rgba(229,72,77,0.10); border-color: rgba(229,72,77,0.40); }
.reader-ver { background: rgba(16,46,38,0.05); border-color: rgba(16,46,38,0.14); color: #5A6A60; }
.reader-ver strong { color: #A9853A; }
.reader-intro { color: #2E3C34; }
.reader-pres { background: linear-gradient(150deg, rgba(47,138,106,0.12), rgba(201,162,75,0.12)); border-color: rgba(16,46,38,0.14); }
.reader-pres p { color: #38463E; }
.reader-pres strong { color: #A9853A; }
.reader-soon { color: #5A6A60; background: rgba(16,46,38,0.04); border-color: rgba(16,46,38,0.2); }
.reader-acc { border-top-color: rgba(16,46,38,0.12); }
.reader-acc > summary { color: #102E26; }
.reader-acc > summary:hover { color: #A9853A; }
.acc-body { color: #2C3A32; }
.acc-body strong { color: #102E26; }
.acc-body ol > li::before { color: #8A6A2E; background: rgba(169,133,58,0.14); border-color: rgba(169,133,58,0.42); }
.acc-body ul li::marker { color: #A9853A; }
.acc-body li[data-open-chapter]:hover { color: #8A6A2E; }
.reader-main kbd { background: #ECE3D0; border-color: #CBB98F; border-bottom-color: #B8A878; color: #14241D; }
.reader-tip { background: rgba(201,162,75,0.13); border-color: rgba(169,133,58,0.45); }
.reader-tip > summary { color: #8A6A2E; }
.reader-tip > summary .chev { color: #A9853A; }
.reader-tip .tip-body { color: #4A5A50; }
.reader-nav button { border-color: rgba(16,46,38,0.2); color: #1C2A23; background: rgba(16,46,38,0.04); }
.reader-nav button:hover:not(:disabled) { border-color: #A9853A; color: #8A6A2E; }
.reader-counter { color: #A9853A; }
.reader-main .mockup { border-color: rgba(16,46,38,0.14); box-shadow: 0 16px 40px -22px rgba(0,0,0,0.4); }
.reader-main .mockup .cap { color: #5A6A60; border-top-color: rgba(16,46,38,0.12); background: rgba(16,46,38,0.04); }
/* Contrôles bien visibles sur la page claire */
.reader-close, .reader-fs, .reader-theme { background: rgba(16,46,38,0.9); color: var(--cream); border-color: rgba(255,255,255,0.14); }
.reader-close:hover, .reader-fs:hover, .reader-theme:hover { background: #0E2A21; color: var(--gold-300); }

/* ====================== Lecteur : THÈME NUIT (bascule) ====================== */
.reader.theme-night .reader-main { background: linear-gradient(160deg, #0E2A21, #0B1F18); color: var(--cream); }
.reader.theme-night .reader-main h2 { color: var(--cream); }
.reader.theme-night .reader-tag { color: #fca5a5; background: rgba(229,72,77,0.14); border-color: rgba(229,72,77,0.4); }
.reader.theme-night .reader-ver { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--muted); }
.reader.theme-night .reader-ver strong { color: var(--gold-300); }
.reader.theme-night .reader-intro { color: var(--cream); }
.reader.theme-night .reader-pres { background: linear-gradient(150deg, rgba(47,138,106,0.14), rgba(27,77,59,0.22)); border-color: var(--line); }
.reader.theme-night .reader-pres p { color: var(--cream-dim); }
.reader.theme-night .reader-pres strong { color: var(--gold-300); }
.reader.theme-night .reader-soon { color: var(--muted); background: rgba(255,255,255,0.03); border-color: var(--line); }
.reader.theme-night .reader-acc { border-top-color: var(--line); }
.reader.theme-night .reader-acc > summary { color: var(--cream); }
.reader.theme-night .reader-acc > summary:hover { color: var(--gold-300); }
.reader.theme-night .acc-body { color: var(--cream); }
.reader.theme-night .acc-body strong { color: var(--cream); }
.reader.theme-night .acc-body ol > li::before { color: var(--gold-300); background: rgba(216,183,118,0.12); border-color: rgba(216,183,118,0.34); }
.reader.theme-night .acc-body ul li::marker { color: var(--gold-400); }
.reader.theme-night .acc-body li[data-open-chapter]:hover { color: var(--gold-300); }
.reader.theme-night .reader-main kbd { background: rgba(255,255,255,0.08); border-color: var(--line); border-bottom-color: var(--line); color: var(--cream); }
.reader.theme-night .reader-tip { background: rgba(216,183,118,0.08); border-color: rgba(216,183,118,0.4); }
.reader.theme-night .reader-tip > summary { color: var(--gold-300); }
.reader.theme-night .reader-tip > summary .chev { color: var(--gold-400); }
.reader.theme-night .reader-tip .tip-body { color: var(--cream-dim); }
.reader.theme-night .reader-nav button { border-color: var(--line); color: var(--cream); background: rgba(255,255,255,0.04); }
.reader.theme-night .reader-nav button:hover:not(:disabled) { border-color: var(--gold-400); color: var(--gold-300); }
.reader.theme-night .reader-counter { color: var(--gold-300); }
.reader.theme-night .reader-main .mockup { border-color: var(--line); box-shadow: var(--shadow-card); }
.reader.theme-night .reader-main .mockup .cap { color: var(--muted); border-top-color: var(--line); background: rgba(0,0,0,0.18); }
.reader.theme-night .reader-close, .reader.theme-night .reader-fs, .reader.theme-night .reader-theme { background: rgba(255,255,255,0.06); color: var(--cream); border-color: var(--line); }
.reader.theme-night .reader-close:hover, .reader.theme-night .reader-fs:hover, .reader.theme-night .reader-theme:hover { background: rgba(255,255,255,0.14); color: var(--gold-300); }

/* Maquette d'écran (illustration générée — à remplacer par une vraie capture) */
.mockup { margin: 24px 0 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.mockup svg { display: block; width: 100%; height: auto; }
.mockup .cap { font-size: 0.78rem; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.18); }

@media (max-width: 760px) {
  .reader-panel { grid-template-columns: 1fr; height: min(90vh, 760px); }
  .reader-side { display: none; }
  .reader-main { padding: 54px 24px 30px; }
}

/* Barre de progression scroll */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transition: width 0.1s linear; }

/* ---------- Couche futuriste (accents tech, glow) ---------- */
.nav-inner { border-color: rgba(216, 183, 118, 0.24); }
.nav.scrolled .nav-inner { box-shadow: 0 18px 50px -22px rgba(0,0,0,0.7), 0 0 0 1px rgba(216,183,118,0.16), 0 0 34px -14px rgba(47,138,106,0.55); }
.btn-gold { box-shadow: 0 12px 30px -14px rgba(201,162,75,0.6), inset 0 0 0 1px rgba(255,255,255,0.18); }

/* Cartes : crochet d'angle révélé + glow au survol */
.svc-card::after, .formation::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px;
  border-top: 1px solid rgba(216,183,118,0.5); border-right: 1px solid rgba(216,183,118,0.5);
  border-top-right-radius: 7px; opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.svc-card:hover::after, .formation:hover::after { opacity: 1; }
.svc-card:hover, .formation:hover {
  box-shadow: 0 30px 64px -30px rgba(0,0,0,0.78), 0 0 0 1px rgba(216,183,118,0.34), 0 0 44px -16px rgba(47,138,106,0.6);
}
/* Liseré supérieur lumineux sur les panneaux verre */
.glass { position: relative; }

@media (max-width: 620px) { .hero3d-wrap { height: 380px; } }

/* ---------- Cartes de formation : fond clair (crème/ivoire) ---------- */
.formation {
  background: linear-gradient(180deg, #FBF8EF, #EFE7D4);
  border: 1px solid rgba(169,133,58,0.32);
  color: #14241D;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.formation h3 { color: #102E26; }
.formation .desc { color: #4C5B52; }
.formation .form-obj { color: #3C4A42; }
.formation .form-obj strong { color: #A9853A; }
.formation .feats li { color: #46554C; }
.formation .feats svg { color: #246B52; }
.formation .price { color: #102E26; }
.formation .price .cur { color: #A9853A; }
.formation .per { color: #7A8A7E; }
.formation .price-row { border-top-color: rgba(16,46,38,0.14); }
.formation::after { border-top-color: rgba(169,133,58,0.65); border-right-color: rgba(169,133,58,0.65); }
.formation:hover {
  border-color: rgba(169,133,58,0.6);
  box-shadow: 0 30px 64px -26px rgba(0,0,0,0.5), 0 0 0 1px rgba(169,133,58,0.45), 0 0 40px -18px rgba(47,138,106,0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards, .formations, .testimonials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bundle, .footer-grid { grid-template-columns: 1fr; }
  .bundle .right { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-cta a.btn { display: none; }
  .burger { display: inline-flex; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 620px) {
  .section-pad { padding: 72px 0; }
  .hero { padding: 140px 0 60px; }
  .cards, .formations, .testimonials, .steps { grid-template-columns: 1fr; }
  .bundle ul { columns: 1; }
  .hero-visual .frame img { height: 380px; }
  .float-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
