/* ═══════════════════════════════════════════════════════════════════════════
   FORMAI — Design System Premium 2026 v2
   Dark · Violet · Glassmorphism · Pill Navbar · Inter + JetBrains Mono
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ──────────────────────────────────────────────────────────── */
:root {
  /* ── Surfaces ── */
  --bg:           #090912;
  --bg-subtle:    #0D0D18;
  --bg-surface:   #131318;
  --bg-raised:    #1C1C24;
  --bg-elevated:  #24242E;

  /* ── Violet (8B5CF6 = Tailwind violet-500) ── */
  --purple:        #8B5CF6;
  --purple-mid:    #7C3AED;
  --purple-light:  #A78BFA;
  --purple-bright: #C4B5FD;
  --purple-dim:    rgba(139,92,246,0.16);
  --purple-glow:   rgba(139,92,246,0.30);

  /* ── Bordures ── */
  --border:        rgba(255,255,255,0.06);
  --border-subtle: rgba(255,255,255,0.04);
  --border-strong: rgba(255,255,255,0.10);
  --border-purple: rgba(139,92,246,0.28);

  /* ── Texte ── */
  --text:       #E8E8F0;
  --text-muted: #A1A1AA;
  --text-dim:   #52525B;
  --text-faint: rgba(250,250,250,0.30);

  /* ── Sémantique ── */
  --success:    #10B981;
  --success-bg: rgba(16,185,129,0.08);
  --warning:    #F59E0B;
  --warning-bg: rgba(245,158,11,0.08);
  --danger:     #EF4444;
  --danger-bg:  rgba(239,68,68,0.08);

  /* ── Ombres ── */
  --shadow-sm:     0 1px 2px rgba(0,0,0,0.5), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.35);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.65), 0 4px 16px rgba(0,0,0,0.40);
  --shadow-purple: 0 8px 32px rgba(139,92,246,0.28), 0 2px 8px rgba(139,92,246,0.15);
  --glow-purple:   0 0 40px rgba(139,92,246,0.22);
  --shadow:        var(--shadow-md);

  /* ── Géométrie ── */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ── Transitions ── */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    140ms;
  --dur-base:    200ms;
  --dur-slow:    340ms;

  /* ── Alias legacy (compatibilité JS / pages existantes) ── */
  --black:         #090912;
  --black-card:    #131318;
  --black-raised:  #1C1C24;
  --black-border:  rgba(255,255,255,0.07);
  --navy:          #0E0520;
  --navy-dark:     #070312;
  --gray:          #A1A1AA;
  --gray-light:    rgba(255,255,255,0.06);
  --mint:          #8B5CF6;
  --mint-dark:     #7C3AED;
  --light:         #1C1C24;
  --indigo-700:    #4F46E5;
  --indigo-600:    #6366F1;
  --on-dark:       #FAFAFA;
  --on-dark-muted: rgba(250,250,250,0.60);
}

/* ── 2. Reset & base ────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h, 72px);
  color-scheme: dark;
  background: var(--bg);
  /* Scrollbar fine violette (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.45) transparent;
}
/* Scrollbar Chrome/Edge/Safari */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c3aed 0%, #9d6ef8 100%);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8b5cf6 0%, #a78bfa 100%);
}
::-webkit-scrollbar-corner { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  html { scroll-behavior: auto; }
}
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  /* Grain subtil haute qualité — SVG 800×800 évite la pixelisation par tuiles */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
select, input[type="checkbox"], input[type="radio"],
input[type="file"], input[type="range"], label[for] { cursor: pointer; }
::selection { background: rgba(139,92,246,0.28); color: var(--text); }

/* ── 3. Typographie ─────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--text);
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 32;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--text);
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 24;
}
h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}
p { color: var(--text-muted); }

/* Mono font pour code/IDs */
code, pre, .mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  font-size: 0.875em;
}

/* ── 4. Layout ──────────────────────────────────────────────────────────── */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 1.75rem; }
.section    { padding: 7.5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; contain: layout; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.75rem; contain: layout; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }

/* ── 5. Navbar pill ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
  background: linear-gradient(180deg, rgba(8,8,11,0.97) 0%, rgba(8,8,11,0) 100%);
  padding: 0.75rem 1.5rem;
  pointer-events: none;
  transition: background var(--dur-base) var(--ease);
}
.navbar.scrolled {
  background: linear-gradient(180deg, rgba(8,8,11,0.98) 0%, rgba(8,8,11,0.0) 100%);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem 0 1rem;
  /* Glass pill */
  background: rgba(19,19,24,0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  box-shadow:
    0 2px 24px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.025),
    inset 0 1px 0 rgba(255,255,255,0.045);
  pointer-events: all;
  /* Promote GPU */
  transform: translateZ(0);
  will-change: transform;
}

/* Logo */
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.logo span { color: var(--purple-light); }
.logo-img {
  height: 46px;
  width: 46px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-raised);
  box-shadow:
    0 0 0 1.5px rgba(139,92,246,0.32),
    0 0 14px rgba(139,92,246,0.22);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease-spring);
}
.logo:hover .logo-img {
  box-shadow:
    0 0 0 2px rgba(167,139,250,0.55),
    0 0 26px rgba(139,92,246,0.42);
  transform: scale(1.06);
}
.logo-card-img {
  height: 140px;
  width: 140px;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(139,92,246,0.32), 0 2px 12px rgba(0,0,0,0.5);
  transition: box-shadow var(--dur-base) var(--ease);
}
.logo-card-img:hover {
  box-shadow: 0 14px 60px rgba(139,92,246,0.50), 0 4px 20px rgba(0,0,0,0.6);
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--purple-light);
  border-radius: 2px;
  transition: width .22s cubic-bezier(0.34,1.56,0.64,1);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a:hover::after { width: 8px; opacity: .5; }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after { width: 14px; opacity: 1; }

.nav-cta { display: flex; gap: 0.4rem; align-items: center; }
.nav-search-btn { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--radius-sm); color:var(--text-muted); transition:color .15s,background .15s; margin-right:.25rem; }
.nav-search-btn:hover { color:var(--text); background:var(--bg-raised); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px 4px; touch-action: manipulation; cursor: pointer; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--text-muted); border-radius: 2px; transition: var(--dur-base); }

/* Hauteur totale navbar = 52px pill + 2*0.75rem padding = 52 + 24 = 76px */
/* Le sidebar utilise top: 76px pour rester aligné */
:root { --navbar-h: 76px; }
body { padding-top: var(--navbar-h); }
/* Hero plein-écran : compense le padding-top du body */
.hp, .hero-fullscreen { margin-top: calc(-1 * var(--navbar-h)); padding-top: var(--navbar-h); }

/* ── 6. Boutons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.15rem;
  border-radius: 50px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: all var(--dur-base) var(--ease);
  position: relative;
  will-change: transform;
  clip-path: none;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  border-radius: inherit;
}
.btn:hover::after { opacity: 0.04; }
.btn:active { transform: scale(0.97); }

/* Primary — violet premium */
@keyframes btnShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}
.btn-primary {
  background: linear-gradient(135deg,
    #6d28d9 0%, #7c3aed 25%, #a78bfa 50%, #7c3aed 75%, #6d28d9 100%);
  background-size: 200% 100%;
  animation: btnShimmer 4s ease-in-out infinite alternate;
  color: white;
  border-color: transparent;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow:
    0 6px 20px rgba(109,40,217,.42),
    0 2px 6px rgba(109,40,217,.28);
  overflow: hidden;
  transition: box-shadow 250ms var(--ease), transform 250ms var(--ease), filter 250ms var(--ease);
}
.btn-primary:hover {
  filter: brightness(1.12);
  box-shadow:
    0 6px 20px rgba(109,40,217,.42),
    0 2px 6px rgba(109,40,217,.28);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(109,40,217,.3);
  filter: brightness(0.97);
  transition-duration: 80ms;
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}
/* Small "Voir →" cards — elevation only, no glow */
.btn-primary.btn-sm:hover {
  filter: none;
  box-shadow: 0 6px 20px rgba(109,40,217,.42), 0 2px 6px rgba(109,40,217,.28);
  transform: translateY(-1px);
}

/* Navy / secondary */
.btn-navy {
  background: var(--bg-raised);
  color: var(--text-muted);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-navy:hover {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border-purple);
  transform: translateY(-1px);
}

/* Outline */
.btn-outline {
  background: transparent;
  border-color: rgba(139,92,246,0.35);
  color: var(--purple-light);
}
.btn-outline:hover {
  background: rgba(139,92,246,0.10);
  border-color: var(--purple);
  color: var(--purple-bright);
  transform: translateY(-1px);
}

.btn-outline-mint {
  background-image: linear-gradient(135deg, rgba(124,58,237,.28) 0%, rgba(109,40,217,.18) 100%);
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  border-color: rgba(167,139,250,.32);
  color: var(--purple-light);
  transition:
    background-size .3s cubic-bezier(0.4,0,0.2,1),
    color .22s var(--ease),
    border-color .22s var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}
.btn-outline-mint:hover {
  background-size: 100% 100%;
  color: var(--purple-bright);
  border-color: rgba(167,139,250,.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.28), 0 2px 8px rgba(109,40,217,.18);
}

.btn-lg  { padding: 0.82rem 1.7rem; font-size: 0.95rem; font-weight: 600; }
.btn-sm  { padding: 0.36rem 0.85rem; font-size: 0.8rem; }
.btn-xs  { padding: 0.22rem 0.6rem; font-size: 0.72rem; }
.btn-full { width: 100%; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.38; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── 7. Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  text-align: center;
  color: white;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 50% -5%,  rgba(139,92,246,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 82% 55%,  rgba(99,102,241,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 18% 75%,  rgba(167,139,250,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,139,250,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; }
.hero h1 {
  color: white;
  margin-bottom: 1.2rem;
  background: linear-gradient(160deg, #FFFFFF 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: rgba(255,255,255,0.58);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.72;
}
.hero-badges { display: flex; justify-content: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.badge-hero {
  background:
    linear-gradient(rgba(8,8,20,.88), rgba(8,8,20,.88)) padding-box,
    linear-gradient(135deg, rgba(167,139,250,.44) 0%, rgba(99,102,241,.18) 100%) border-box;
  border: 1px solid transparent;
  color: var(--purple-light);
  padding: 0.32rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-cta { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

/* ── 8. Stats ───────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 1.65rem 0;
}
.stats-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--purple-light);
  display: block;
  font-variation-settings: 'opsz' 28;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.02em; margin-top: 0.12rem; }

/* ── 9. Cards glassmorphism ─────────────────────────────────────────────── */
.card {
  background: rgba(19,19,24,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease);
  will-change: transform;
}
/* Spotlight hover — gradient depuis le haut */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 55% at 50% -10%, rgba(139,92,246,0.15) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 64px rgba(0,0,0,.70),
    0 8px 24px rgba(0,0,0,.45),
    0 0 0 1px rgba(139,92,246,.18),
    0 0 40px rgba(139,92,246,.14);
  border-color: rgba(139,92,246,.28);
}
.card:hover::before { opacity: 1; }

/* Image de couverture */
.card-img {
  width: 100%;
  height: 190px;
  overflow: hidden;
  position: relative;
  background: #060310;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.formation-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease);
}
.card:hover .formation-cover { transform: scale(1.05); }
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(139,92,246,.04) 0%,
    rgba(9,9,18,.15) 40%,
    rgba(9,9,18,.72) 80%,
    rgba(9,9,18,.88) 100%
  );
  pointer-events: none;
}
.card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #0E0520 0%, #1A0A35 100%);
}

/* Cover detail page */
.formation-detail-cover {
  width: calc(100% + 4rem);
  margin: -2rem -2rem 1.75rem -2rem;
  height: 200px;
  overflow: hidden;
  background: #060310;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.formation-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.55rem; flex-wrap: wrap; }

/* Badges */
.badge {
  padding: 0.18rem 0.6rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-mint  { background: rgba(167,139,250,0.12); color: var(--purple-light); border: 1px solid rgba(167,139,250,0.20); }
.badge-navy  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.badge-green { background: rgba(16,185,129,0.10); color: #34D399; border: 1px solid rgba(16,185,129,0.18); }

.card-title { font-weight: 600; font-size: 0.95rem; color: var(--text); margin-bottom: 0.35rem; line-height: 1.42; letter-spacing: -0.012em; }
.card-desc  { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 0.85rem; line-height: 1.56; }

.card-body > div:last-child { margin-top: auto; }

.card-footer {
  padding: 0.85rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.18);
  flex-shrink: 0;
  z-index: 1;
}

/* ── Btn "Voir" ── */
.btn-see {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  border: 1px solid rgba(139,92,246,0.38);
  background: rgba(139,92,246,0.10);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease-spring);
}
.btn-see::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.18) 0%, rgba(139,92,246,0.10) 100%);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.btn-see:hover {
  background: rgba(139,92,246,0.18);
  border-color: rgba(167,139,250,0.60);
  color: var(--purple-bright);
  box-shadow: 0 0 16px rgba(139,92,246,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
  transform: translateY(-1px) scale(1.02);
}
.btn-see:hover::before { opacity: 1; }
.btn-see:active { transform: scale(0.97); }
.btn-see::after {
  content: '→';
  font-size: 0.74rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-see:hover::after { opacity: 1; transform: translateX(0); }

.price        { font-weight: 700; font-size: 1.2rem; color: var(--purple-light); letter-spacing: -0.025em; }
.price-before { font-size: 0.82rem; text-decoration: line-through; color: var(--text-dim); margin-left: 0.35rem; }
.stars        { color: #F59E0B; font-size: 0.84rem; }

/* ── 10. Sections & titres ──────────────────────────────────────────────── */
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { color: var(--text); margin-bottom: 0.7rem; }
.section-title p { max-width: 560px; margin: 0 auto; line-height: 1.7; }
.accent-line {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  margin: 0.9rem auto 0;
  opacity: 0.65;
}

/* ── 11. Feature cards ──────────────────────────────────────────────────── */
.feature-card {
  background: rgba(19,19,24,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.28), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--glow-purple);
  border-color: rgba(139,92,246,0.22);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 1.9rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { color: var(--text); margin-bottom: 0.4rem; }

/* ── 12. Pricing ────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.pricing-card {
  background: rgba(19,19,24,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.035);
  position: relative;
  transition: all var(--dur-base) var(--ease);
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.pricing-card.featured {
  border-color: rgba(139,92,246,0.38);
  background: linear-gradient(160deg, rgba(139,92,246,0.08) 0%, rgba(19,19,24,0.82) 60%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(139,92,246,0.14), var(--glow-purple);
}
.pricing-card.featured::before {
  content: 'POPULAIRE';
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--purple-mid));
  color: white;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.22rem 0.9rem; border-radius: 50px;
  box-shadow: 0 2px 12px rgba(139,92,246,0.40);
}
.pricing-name  { font-size: 0.75rem; font-weight: 700; color: var(--purple-light); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.pricing-price { font-size: 3rem; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.045em; font-variation-settings: 'opsz' 28; }
.pricing-price sup { font-size: 1.3rem; vertical-align: top; margin-top: 0.55rem; font-weight: 600; }
.pricing-per  { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.75rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.52rem 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.pricing-features li::before { content: '✓'; color: var(--purple-light); font-weight: 700; flex-shrink: 0; }

/* ── 13. Formulaires ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.38rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  background: rgba(28,28,36,0.85);
  color: var(--text);
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-select option { background: var(--bg-surface); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(139,92,246,0.55);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
.form-error { color: var(--danger); font-size: 0.78rem; margin-top: 0.28rem; }
.form-card {
  background: rgba(19,19,24,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 480px;
  width: 100%;
}

/* ── 14. Dashboard & sidebar ────────────────────────────────────────────── */
.dashboard-layout { display: flex; min-height: calc(100vh - var(--navbar-h)); }
.sidebar {
  width: 240px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  color: var(--text);
  padding: 1.25rem 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.sidebar-section { padding: 0 0.75rem; margin-bottom: 1.5rem; }
.sidebar-title {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  padding: 0 0.6rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
  letter-spacing: -0.01em;
  position: relative;
  text-decoration: none;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transform: translateX(3px);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(139,92,246,0.20) 0%, rgba(139,92,246,0.06) 100%);
  color: var(--purple-light);
  box-shadow: inset 3px 0 0 var(--purple);
  transform: translateX(3px);
  font-weight: 600;
}
.sidebar-link .icon { font-size: 1rem; width: 18px; text-align: center; opacity: 0.88; }
.sidebar-link svg {
  width: 16px; height: 16px; flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 160ms var(--ease), color 160ms var(--ease);
}
.sidebar-link:hover svg,
.sidebar-link.active svg {
  opacity: 1;
  color: var(--purple-light);
}
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
  background: var(--bg);
}

/* ── 15. Progress bars ──────────────────────────────────────────────────── */
.progress-bar { height: 4px; background: var(--bg-elevated); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 4px;
  transition: width 0.65s var(--ease-out);
  box-shadow: 0 0 8px rgba(139,92,246,0.45);
}
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 0.32rem; color: var(--text-dim); }

/* ── 16. Tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left;
  padding: 0.68rem 1rem;
  background: var(--bg-raised);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
td { padding: 0.72rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }

/* ── 17. Notifications & alertes ────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 5.5rem; right: 1.5rem;
  background: rgba(28,28,36,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  padding: 0.88rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex; align-items: center; gap: 0.7rem;
  animation: slideIn var(--dur-base) var(--ease-out);
  border-left: 3px solid var(--purple);
  max-width: 360px;
  pointer-events: none;
}
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.alert { padding: 0.82rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.875rem; border: 1px solid; }
.alert-success { background: var(--success-bg); color: #34D399; border-color: rgba(16,185,129,0.20); }
.alert-error   { background: var(--danger-bg);  color: #FCA5A5; border-color: rgba(239,68,68,0.20); }
.alert-info    { background: var(--purple-dim);  color: var(--purple-light); border-color: var(--border-purple); }

/* ── 18. Footer ─────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .logo { color: var(--text); margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.84rem; line-height: 1.65; }
.footer-col h4 {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.footer-col a { display: block; font-size: 0.84rem; margin-bottom: 0.48rem; color: var(--text-dim); transition: color var(--dur-fast) var(--ease); }
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.65rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; flex-wrap: wrap; gap: 1rem;
  color: var(--text-dim);
}
.footer-bottom-links { display: flex; gap: 1.25rem; align-items: center; }
.footer-bottom-links a { color: var(--text-dim); font-size: 0.78rem; transition: color var(--dur-fast) var(--ease); }
.footer-bottom-links a:hover { color: var(--purple-light); }
.footer-heart { color: #f472b6; display: inline; }

/* Footer — réseaux sociaux */
.footer-social { display: flex; gap: 0.62rem; margin-top: 1rem; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer-social-link:hover {
  background: rgba(124,58,237,0.15);
  border-color: var(--border-purple);
  color: var(--purple-light);
}
.footer-social-link svg { width: 15px; height: 15px; fill: currentColor; }

/* Footer — newsletter strip */
.footer-nl {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
  margin-bottom: 2.5rem;
}
.footer-nl-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.footer-nl-inner h4 {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin: 0; white-space: nowrap;
}
.footer-nl-inner p { font-size: 0.82rem; color: var(--text-muted); margin: 0.18rem 0 0; }
.footer-nl-form {
  display: flex; gap: 0.5rem; flex-shrink: 0;
  flex-wrap: wrap;
}
.footer-nl-input {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  color: var(--text);
  font-size: 0.84rem;
  font-family: inherit;
  width: 240px; max-width: 100%;
  transition: border-color var(--dur-fast) var(--ease);
}
.footer-nl-input::placeholder { color: var(--text-dim); }
.footer-nl-input:focus { outline: none; border-color: var(--border-purple); }
.footer-nl-btn {
  background: linear-gradient(145deg, #9d6ef8 0%, #7c3aed 58%, #6d28d9 100%);
  color: #fff; border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem; font-weight: 600;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(109,40,217,.32);
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}
.footer-nl-btn:hover {
  background: linear-gradient(145deg, #ab82fa 0%, #9d6ef8 48%, #7c3aed 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(109,40,217,.44);
}

/* ── 19. Utilitaires ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-navy   { color: var(--purple-light); }
.text-mint   { color: var(--purple-light); }
.text-gray   { color: var(--text-muted); }
.bg-light    {
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(14,12,24,.97) 12%,
    rgba(17,14,28,.96) 50%,
    rgba(14,12,24,.97) 88%,
    var(--bg) 100%
  );
}
.bg-navy     { background: var(--bg-surface); }
.bg-mint     { background: var(--purple); }
.mt-1 { margin-top: 0.5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }.mb-2 { margin-bottom: 1rem; }.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(139,92,246,0.18);
  border-top-color: var(--purple-light);
  border-radius: 50%;
  animation: spin 0.55s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 20. Accessibilité ──────────────────────────────────────────────────── */

/* Skip-nav : lien "Aller au contenu" masqué hors-écran, visible au focus clavier */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-nav:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  padding: .5rem 1.1rem;
  background: var(--purple);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  outline: 3px solid var(--purple-bright);
  outline-offset: 2px;
}

/* Focus visible global — tous les éléments interactifs */
:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Annuler le outline natif uniquement quand :focus-visible est supporté */
:focus:not(:focus-visible) { outline: none; }

/* Boutons — focus toujours visible */
.btn:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(139,92,246,0.20);
}

/* Liens de nav — focus */
.nav-links a:focus-visible,
.sidebar-link:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* text-dim : contraste minimum garanti sur fond sombre */
/* #71717A sur #08080B → ≈ 4.1:1 (WCAG AA large text / AA- normal text) */
:root { --text-dim: #71717A; }

/* Réduction de mouvement — respecter la préférence utilisateur */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ── 21. Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Dashboard stats : 4 → 2 colonnes */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(14,14,17,0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    z-index: 200;
    gap: 0.18rem;
    box-shadow: var(--shadow-lg);
    animation: navSlideDown 0.15s ease-out;
    pointer-events: auto;
  }
  .nav-links.open a {
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-cta { margin-left: auto; }
  .hamburger { display: flex; cursor: pointer; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
  .nav-cta .btn-outline { display: none; }

  /* Sidebar dashboard masquée — remplacée par overlay mobile */
  .sidebar { display: none !important; }
  .dashboard-layout { flex-direction: column; }
  .main-content { padding: 1.25rem 1rem; }

  /* ── Sidebar mobile : overlay glissant depuis la gauche ── */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: var(--navbar-h); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 399;
    animation: overlayFadeIn 240ms ease forwards;
  }
  .sidebar-overlay.open { display: block; }
  @keyframes overlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .sidebar.sidebar-mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: calc(var(--navbar-h) + 14px); left: 0;
    height: calc(100dvh - var(--navbar-h) - 14px);
    height: calc(100vh  - var(--navbar-h) - 14px);
    z-index: 400;
    width: 280px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top-right-radius: 14px;
    animation: sidebarSlideIn 260ms cubic-bezier(.22,1,.36,1) forwards;
  }
  @keyframes sidebarSlideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
  }

  /* ── Bouton burger ouvre la sidebar dashboard ── */
  .dash-menu-btn {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .84rem;
    font-weight: 600;
    padding: .38rem .75rem;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
  }
  .dash-menu-btn:hover { background: rgba(139,92,246,.12); color: var(--purple-light); }
  .dash-menu-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

  /* Dashboard stats : 4 → 2 colonnes sur tablette */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nl-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-nl-input { width: 100%; }
  .stats-grid  { gap: 2rem; }
  .hero        { padding: 4.5rem 0 3.5rem; }

  /* Grilles de cartes → 1 colonne */
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  /* Boutons quiz et modales */
  .quiz-modal { width: 95vw; max-height: 90vh; }

  /* Formation detail layout → colonne */
  .detail-layout { grid-template-columns: 1fr !important; }
  .sticky-card { position: static !important; }
}

/* Masquer le bouton burger dashboard sur desktop */
@media (min-width: 769px) {
  .dash-menu-btn  { display: none !important; }
  .sidebar-overlay { display: none !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta .nav-search-btn { display: none; }
  #nav-signup { font-size: 0.78rem; padding: 0.45rem 0.85rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }

  /* Dashboard stats : 4 → 2 colonnes sur mobile */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Enrollment cards : layout vertical */
  .enrollment-card { flex-direction: column; align-items: stretch; }
  .enrollment-card .thumb { width: 100%; height: 120px; }
  .enrollment-card > a.btn { width: 100%; justify-content: center; }
}

@media (min-width: 1440px) {
  .container { max-width: 1340px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTENU PÉDAGOGIQUE — Leçons
   ══════════════════════════════════════════════════════════════════════════ */
.lesson-content-view {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.925rem;
}
.lesson-content-view h2 {
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  line-height: 1.3;
  letter-spacing: -0.022em;
}
.lesson-content-view h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.65rem 0 0.5rem;
  letter-spacing: -0.012em;
}
.lesson-content-view h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0 0.3rem;
}
.lesson-content-view p { margin-bottom: 0.65rem; }
.lesson-content-view ul, .lesson-content-view ol { margin: 0.5rem 0 1rem 1.35rem; }
.lesson-content-view li { margin-bottom: 0.32rem; }
.lesson-content-view strong { color: var(--text); }
.lesson-content-view em { color: var(--text-muted); font-style: italic; }
.lesson-content-view blockquote {
  background: rgba(0,0,0,0.28);
  border-left: 2px solid var(--purple);
  padding: 0.65rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0.7rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}
.lesson-content-view table {
  margin: 1rem 0;
  font-size: 0.85rem;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lesson-content-view table th,
.lesson-content-view table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.lesson-content-view table th {
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
}

.block-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.52rem; font-size: 0.85rem; }
.block-icon { font-size: 0.95rem; line-height: 1; }
.block-body > :last-child { margin-bottom: 0; }

.tip-box {
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.16);
  border-left: 3px solid var(--purple-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.88rem 1.1rem;
  margin: 1.1rem 0;
}
.tip-box strong { color: var(--purple-light); display: block; margin-bottom: 0.32rem; font-size: 0.85rem; }
.tip-box p, .tip-box ul, .tip-box li { color: var(--text-muted); margin: 0; font-size: 0.875rem; }
.tip-box ul { margin-top: 0.4rem; margin-left: 1.1rem; }

.warning-box {
  background: rgba(245,158,11,0.05);
  border: 1px solid rgba(245,158,11,0.18);
  border-left: 3px solid var(--warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.88rem 1.1rem;
  margin: 1.1rem 0;
}
.warning-box strong { color: var(--warning); display: block; margin-bottom: 0.32rem; font-size: 0.85rem; }
.warning-box p, .warning-box ul, .warning-box li { color: var(--text-muted); font-size: 0.875rem; }
.warning-box ul { margin-top: 0.4rem; margin-left: 1.1rem; }

.cas-pratique {
  background: rgba(16,185,129,0.04);
  border: 1px solid rgba(16,185,129,0.14);
  border-left: 3px solid var(--success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.88rem 1.1rem;
  margin: 1.1rem 0;
}
.cas-pratique p, .cas-pratique ul, .cas-pratique li, .cas-pratique ol { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.32rem; }
.cas-pratique ul, .cas-pratique ol { margin-left: 1.1rem; margin-top: 0.25rem; }

.exercice {
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin: 1.1rem 0;
}
.exercice > p:first-child { color: var(--text); font-weight: 500; margin-bottom: 0.62rem; font-size: 0.875rem; }
.exercice p, .exercice ol, .exercice ul { color: var(--text-muted); font-size: 0.875rem; }
.exercice ol, .exercice ul { margin-left: 1.2rem; margin-top: 0.32rem; }
.exercice li { margin-bottom: 0.42rem; }
.exercice em { color: var(--text-dim); font-style: italic; font-size: 0.84rem; }

.recap {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-top: 2px solid var(--purple-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 0.88rem 1.1rem;
  margin: 1.5rem 0 0;
}
.recap strong { color: var(--purple-light); display: block; margin-bottom: 0.42rem; font-size: 0.85rem; }
.recap ul { margin-left: 1.2rem; }
.recap li { color: var(--text-muted); font-size: 0.845rem; margin-bottom: 0.28rem; }

.prompt-example {
  background: rgba(0,0,0,0.30);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.88rem 1.1rem;
  margin: 0.88rem 0;
}
.prompt-example > p { color: var(--text); font-size: 0.84rem; margin-bottom: 0.42rem; font-weight: 600; }
.prompt-example blockquote {
  background: rgba(139,92,246,0.05);
  border-left: 2px solid var(--purple);
  padding: 0.62rem 0.9rem;
  font-size: 0.84rem;
  font-style: normal;
  color: var(--text-muted);
  margin: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.synthese-pdf {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.synthese-pdf .pdf-header {
  text-align: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(167,139,250,0.05));
  border-radius: var(--radius-sm);
  margin-bottom: 1.75rem;
  border: 1px solid rgba(139,92,246,0.15);
}
.synthese-pdf .pdf-header h1 { font-size: 0.9rem; color: var(--purple-light); font-weight: 700; margin-bottom: 0.32rem; }
.synthese-pdf .pdf-header h2 { font-size: 1.22rem; color: var(--text); margin-bottom: 0.2rem; font-weight: 700; }
.synthese-pdf .pdf-subtitle { font-size: 0.78rem; color: var(--text-dim); }
.synthese-pdf h3 { color: var(--purple-light); border-bottom: 1px solid var(--border); padding-bottom: 0.32rem; margin: 1.5rem 0 0.62rem; font-size: 0.95rem; }
.synthese-pdf ul, .synthese-pdf ol { margin-left: 1.2rem; }
.synthese-pdf li { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.32rem; }
.synthese-pdf table { margin: 0.62rem 0; font-size: 0.84rem; }
.synthese-pdf p { color: var(--text-muted); font-size: 0.875rem; }

.comparison-table thead th { background: rgba(139,92,246,0.08); }
.exercise-table thead th { background: rgba(16,185,129,0.06); }

/* ══════════════════════════════════════════════════════════════════════════
   MODAL LEÇON
   ══════════════════════════════════════════════════════════════════════════ */
.lesson-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}
.lesson-modal-backdrop.open { display: flex; }
.lesson-modal {
  background: rgba(19,19,24,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 800px;
  margin: auto;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(0,0,0,0.5);
  animation: modalIn var(--dur-base) var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.lesson-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(19,19,24,0.95);
  backdrop-filter: blur(20px);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.lesson-modal-title { font-weight: 600; color: var(--text); font-size: 0.95rem; letter-spacing: -0.012em; }
.lesson-modal-meta { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.12rem; }
.lesson-modal-close {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 50px;
  padding: 0.3rem 0.78rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.lesson-modal-close:hover { border-color: var(--border-purple); color: var(--purple-light); background: rgba(139,92,246,0.08); }
.lesson-modal-body {
  padding: 1.75rem 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 72px);
}
.lesson-row.has-content { cursor: pointer; }
.lesson-row.has-content:hover { background: rgba(139,92,246,0.05); color: var(--text); }
.lesson-row.synthese-row:hover { background: rgba(16,185,129,0.04); }
/* ── Boutons d'action leçon — glassmorphism premium ──────────────────────── */
.lesson-act-btn {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .34rem .88rem;
  border-radius: 50px;
  font-size: .77rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(139,92,246,.2);
  background: rgba(124,58,237,.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(124,58,237,.10), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease,
              color .22s ease, border-color .22s ease;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  line-height: 1;
}
.lesson-act-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(124,58,237,.28), inset 0 1px 0 rgba(255,255,255,.06);
  background: rgba(124,58,237,.14);
  color: var(--purple-light);
  border-color: rgba(139,92,246,.45);
}
.lesson-act-btn:active { transform: translateY(0); transition-duration: .08s; }
.lesson-act-btn.is-active {
  background: rgba(124,58,237,.18);
  color: var(--purple-light);
  border-color: rgba(139,92,246,.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,.13), 0 4px 14px rgba(124,58,237,.28);
  animation: lessonBtnPulse 2.6s ease-in-out infinite;
}
@keyframes lessonBtnPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(124,58,237,.13), 0 4px 14px rgba(124,58,237,.28); }
  50%      { box-shadow: 0 0 0 6px rgba(124,58,237,.06), 0 6px 20px rgba(124,58,237,.34); }
}
.lesson-act-btn .act-icon { flex-shrink:0; opacity:.85; }
.lesson-act-btn.is-active .act-icon { opacity:1; }

/* Video button — accent violet plus marqué */
.lesson-act-btn.btn-video {
  border-color: rgba(139,92,246,.32);
  background: rgba(124,58,237,.1);
}
.lesson-act-btn.btn-video:hover {
  background: rgba(124,58,237,.2);
  box-shadow: 0 6px 20px rgba(124,58,237,.32);
}

/* Responsive: empilement vertical sur mobile */
@media (max-width: 600px) {
  #lesson-actions { gap:.35rem !important; }
  .lesson-act-btn { font-size:.72rem; padding:.3rem .7rem; }
  #lesson-audio-time { display:none; }
}

/* Legacy alias */
.lesson-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.26rem 0.7rem;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.lesson-print-btn:hover { color: var(--purple-light); border-color: var(--border-purple); }

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-reveal {
  opacity: 0;
  animation: cardReveal 0.28s var(--ease-out) forwards;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-raised) 25%,
    var(--bg-elevated) 50%,
    var(--bg-raised) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.skeleton-img  { height: 170px; border-radius: 0; }
.skeleton-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.62rem; }
.skeleton-line { height: 11px; }
.skeleton-line.s { width: 40%; }
.skeleton-line.m { width: 68%; }
.skeleton-line.l { width: 90%; }
.skeleton-footer {
  padding: 0.82rem 1.1rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.skeleton-price { height: 22px; width: 64px; border-radius: var(--radius-sm); }
.skeleton-btn   { height: 30px; width: 52px; border-radius: 50px; }

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

/* ══════════════════════════════════════════════════════════════════════════
   PAGES SPÉCIFIQUES
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Métier grid (index.html) ─────────────────────────────────────────── */
.metier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.metier-card {
  display: flex;
  flex-direction: column;
  background: rgba(19,19,24,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.035);
  position: relative;
  overflow: hidden;
}
.metier-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -15%, rgba(139,92,246,0.14) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .22s;
}
.metier-card:hover {
  border-color: rgba(139,92,246,0.28);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(139,92,246,0.10);
  transform: translateY(-2px);
}
.metier-card:hover::before { opacity: 1; }
.metier-card--featured {
  border-color: rgba(139,92,246,0.28);
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(19,19,24,0.80) 100%);
}
.metier-card--studio {
  border-color: rgba(52,211,153,0.32);
  background: linear-gradient(135deg, rgba(52,211,153,0.07) 0%, rgba(19,19,24,0.80) 100%);
}
.metier-icon { font-size: 1.9rem; margin-bottom: .7rem; position: relative; z-index: 1; }
.metier-name { font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: .7rem; position: relative; z-index: 1; }
.metier-gains {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .32rem;
  flex: 1;
  position: relative;
  z-index: 1;
}
.metier-gains li {
  font-size: .84rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.metier-gains li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: 700;
}
.metier-cta { font-size: .82rem; font-weight: 600; color: var(--purple-light); margin-top: auto; position: relative; z-index: 1; }
.metier-card--studio .metier-cta { color: #34D399; }
@media (max-width: 900px) { .metier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .metier-grid { grid-template-columns: 1fr; } }

/* ── Prompt Studio ────────────────────────────────────────────────────── */
.studio-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.studio-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.studio-preview {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: .85rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 220px;
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  line-height: 1.65;
}
.studio-preview .ph {
  color: var(--purple-light);
  background: rgba(139,92,246,.12);
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
}
.metier-tab {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .52rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .85rem;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  text-align: left;
  margin-bottom: .32rem;
}
.metier-tab:hover { border-color: var(--border-purple); color: var(--purple-light); }
.metier-tab.active { background: linear-gradient(135deg, var(--purple), #7C3AED); color: white; border-color: transparent; box-shadow: 0 2px 10px rgba(139,92,246,.32); }
.task-btn {
  padding: .42rem .88rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
}
.task-btn:hover { border-color: var(--border-purple); color: var(--purple-light); }
.task-btn.active { background: var(--purple); color: white; border-color: transparent; box-shadow: 0 2px 8px rgba(139,92,246,.28); }
.studio-field { margin-bottom: 1rem; }
.studio-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-muted); margin-bottom: .32rem; }
.studio-field input,
.studio-field textarea,
.studio-field select {
  width: 100%;
  padding: .58rem .85rem;
  background: var(--bg-raised);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .875rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color .15s;
  box-sizing: border-box;
}
.studio-field input:focus,
.studio-field textarea:focus,
.studio-field select:focus { outline: none; border-color: rgba(139,92,246,0.55); box-shadow: 0 0 0 3px rgba(139,92,246,0.10); }
@media (max-width: 860px) { .studio-layout { grid-template-columns: 1fr; } }

/* ── Formation detail — responsive ──────────────────────────────────────── */
@media (max-width: 620px) {
  #f-beforeafter > div { grid-template-columns: 1fr !important; }
  #f-beforeafter > div > div + div {
    border-top: 1px solid var(--border);
    border-right: none !important;
  }
}

/* ── Scrollbar globale ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.09) transparent; }

/* ── Bouton PDF module ───────────────────────────────────────────────────── */
.btn-pdf-module {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .72rem; font-weight: 700; padding: .25rem .6rem;
  border-radius: 6px; border: 1px solid rgba(124,58,237,.4);
  color: var(--purple-light); background: rgba(124,58,237,.08);
  text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn-pdf-module:hover { background: rgba(124,58,237,.18); border-color: var(--purple-light); }
.btn-pdf-module.disabled {
  opacity: .35; cursor: not-allowed; pointer-events: none;
}

/* ── Badges quiz module ──────────────────────────────────────────────────── */
.module-score-badge { font-size:.72rem; font-weight:700; padding:.2rem .55rem; border-radius:50px; }
.module-score-badge.pass { background:rgba(52,211,153,.12); color:#34d399; border:1px solid rgba(52,211,153,.25); }
.module-score-badge.fail { background:rgba(239,68,68,.1); color:#f87171; border:1px solid rgba(239,68,68,.2); }
.module-lock-badge { font-size:.72rem; color:var(--text-dim); }
.module-unlock-banner { font-size:.8rem; color:var(--text-muted); background:rgba(239,68,68,.07); border:1px solid rgba(239,68,68,.15); border-radius:8px; padding:.6rem .9rem; margin-bottom:.75rem; }

/* ── Leçon quiz cliquable ────────────────────────────────────────────────── */
.lesson-row.quiz-lesson { cursor:pointer; }
.lesson-row.quiz-lesson:hover { background:rgba(124,58,237,.08); }

/* ── Module freemium ─────────────────────────────────────────────────────── */
.module-item.free-preview > .module-header {
  border-left: 3px solid rgba(52,211,153,.55);
}
.module-free-badge {
  display:inline-flex; align-items:center; gap:.25rem;
  font-size:.68rem; font-weight:700; padding:.18rem .5rem;
  border-radius:50px; background:rgba(52,211,153,.12);
  color:#34d399; border:1px solid rgba(52,211,153,.28);
}
.module-free-banner {
  font-size:.8rem; color:#34d399;
  background:rgba(52,211,153,.07);
  border:1px solid rgba(52,211,153,.18);
  border-radius:8px; padding:.6rem .9rem;
  margin-bottom:.75rem; display:flex; align-items:center; gap:.5rem;
}
.freemium-cta-block {
  margin:.5rem 0 1.5rem;
  background:linear-gradient(135deg,rgba(124,58,237,.08),rgba(52,211,153,.05));
  border:1px solid rgba(124,58,237,.2);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.freemium-cta-inner {
  padding:1.75rem 1.5rem;
  text-align:center;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body { animation: none; }
  .card-reveal { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM UX — Features 9–19
   Spotlight · Gradient borders · Section flow · Cursor · Transitions
══════════════════════════════════════════════════════════════════════════ */

/* ── F9: Cursor spotlight (JS sets --sx/--sy on each [data-spl] element) ── */
[data-spl] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
[data-spl]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 280px at var(--sx, -400px) var(--sy, -400px),
    rgba(139,92,246,.18) 0%,
    rgba(139,92,246,.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity .18s ease;
}
[data-spl]:hover::after { opacity: 1; }

/* For cards that already use both pseudo-elements, attach spotlight to ::after */
.card[data-spl]::after {
  z-index: 0;
}

/* ── F10: Animated gradient border on premium/popular cards ─────────────── */
@property --card-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes rotateBorder { to { --card-angle: 360deg; } }

.card-premium {
  --card-angle: 0deg;
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(rgba(19,19,24,.92), rgba(19,19,24,.92)) padding-box,
    conic-gradient(from var(--card-angle),
      transparent 0%,
      rgba(124,58,237,.55) 18%,
      rgba(167,139,250,.85) 30%,
      rgba(99,102,241,.65) 42%,
      transparent 60%
    ) border-box !important;
  animation: rotateBorder 6s linear infinite;
}
/* Fallback for browsers without @property */
@supports not (background: conic-gradient(from 1deg, red, blue) border-box) {
  .card-premium {
    border: 1.5px solid rgba(139,92,246,.45) !important;
    animation: none;
    box-shadow: 0 0 0 1px rgba(139,92,246,.18), var(--shadow-md);
  }
}

/* ── F11: Section separators & flow backgrounds ──────────────────────────── */
.section-sep {
  height: 1px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139,92,246,.14) 30%,
    rgba(167,139,250,.22) 50%,
    rgba(139,92,246,.14) 70%,
    transparent 100%
  );
  margin: 0;
  padding: 0;
  display: block;
}
/* Subtle colored "breath" zones at section boundaries */
.section-flow-in::before {
  content: '';
  display: block;
  height: 80px;
  margin-bottom: -80px;
  background: linear-gradient(180deg, transparent 0%, rgba(18,14,32,.6) 100%);
  pointer-events: none;
}

/* ── F12: Icon normalization — consistent 1.6px thin stroke everywhere ───── */
.learn-icon svg,
.proof-icon svg,
.benefit-check svg,
.module-card svg,
.feature-icon svg,
.section-label svg {
  stroke-width: 1.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learn-icon,
.proof-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(139,92,246,.10);
  border: 1px solid rgba(139,92,246,.18);
  flex-shrink: 0;
  margin-bottom: 1rem;
}
.learn-icon svg,
.proof-icon svg {
  width: 21px; height: 21px;
  color: var(--purple-light);
}

/* ── F14: Partner logos ──────────────────────────────────────────────────── */
.partners-section {
  padding: 3rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.partners-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.partner-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-dim);
  opacity: .45;
  filter: grayscale(1);
  transition: opacity .3s ease, color .3s ease, filter .3s ease;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}
.partner-logo-text:hover {
  opacity: .85;
  color: var(--text-muted);
  filter: grayscale(0);
}

/* ── F14: Testimonial avatar frames ─────────────────────────────────────── */
.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background:
    linear-gradient(rgba(19,19,24,.9), rgba(19,19,24,.9)) padding-box,
    linear-gradient(135deg, rgba(167,139,250,.6) 0%, rgba(99,102,241,.35) 100%) border-box;
  border: 1.5px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  color: var(--purple-bright);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(139,92,246,.2);
}
.testimonial-author-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: .85rem;
  margin-top: auto;
}

/* F16: curseur custom retiré — curseur natif navigateur restauré */

/* ── F17: Page-entry animation ───────────────────────────────────────────── */
body {
  animation: pgIn .40s cubic-bezier(0.22,1,0.36,1) both;
}
/* Aucun transform sur body — tout transform sur body (même translateY(0))
   crée un containing block qui casse position:fixed de ses enfants (Nova, navbar).
   L'entrée de page est un simple fondu ; le slide est appliqué sur <main> en HTML. */
@keyframes pgIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-leaving {
  animation: pgOut .22s cubic-bezier(0.4,0,1,1) forwards !important;
  pointer-events: none;
}
/* Nova reste cliquable même pendant une transition de page */
.page-leaving #nova-bubble,
.page-leaving #nova-panel { pointer-events: auto !important; }
@keyframes pgOut {
  to { opacity: 0; }
}

/* ── Reduced-motion overrides for all premium features ───────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-spl]::after,
  .card-premium { animation: none !important; transition: none !important; }

  body { animation: none !important; }
  .page-leaving { animation: none !important; }
}


/* ── Scroll reveals ─────────────────────────────────────────────────────── */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .48s var(--ease), transform .48s var(--ease);
}
.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* .skeleton défini plus haut — pas de doublon ici */
.card-skeleton {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-skeleton .sk-img   { height: 168px; }
.card-skeleton .sk-body  { padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; }
.card-skeleton .sk-title { height: 18px; width: 80%; }
.card-skeleton .sk-sub   { height: 12px; width: 55%; }
.card-skeleton .sk-row   { height: 12px; width: 70%; }
.card-skeleton .sk-price { height: 22px; width: 40%; margin-top: .25rem; }

/* ── Animated mesh gradient background ─────────────────────────────────── */
/*
  Usage: add class="mesh-bg" to any dark section wrapper.
  blur is fixed and never animated — only transform + opacity composite.
  Will-change is kept on both for GPU promotion.
*/
.mesh-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);          /* fixed — never animated */
  pointer-events: none;
  will-change: transform, opacity;
}
.mesh-bg::before {
  width: 60%;
  padding-top: 60%;
  background: radial-gradient(circle at 40% 40%, rgba(124,58,237,.55) 0%, rgba(79,70,229,.28) 45%, transparent 72%);
  top: -22%;
  left: -14%;
  animation: meshBlob1 20s ease-in-out infinite;
}
.mesh-bg::after {
  width: 50%;
  padding-top: 50%;
  background: radial-gradient(circle at 55% 50%, rgba(109,40,217,.50) 0%, rgba(139,92,246,.25) 48%, transparent 74%);
  bottom: -24%;
  right: -10%;
  animation: meshBlob2 25s ease-in-out infinite 5s;
}
@keyframes meshBlob1 {
  0%   { opacity:.18; transform: translate(0,   0)    scale(1); }
  26%  { opacity:.30; transform: translate(7%,  11%)  scale(1.10); }
  52%  { opacity:.22; transform: translate(12%, 4%)   scale(1.04); }
  78%  { opacity:.28; transform: translate(4%,  -7%)  scale(0.96); }
  100% { opacity:.18; transform: translate(0,   0)    scale(1); }
}
@keyframes meshBlob2 {
  0%   { opacity:.16; transform: translate(0,    0)    scale(1); }
  30%  { opacity:.26; transform: translate(-9%,  -7%)  scale(1.08); }
  58%  { opacity:.20; transform: translate(-5%,  -14%) scale(0.96); }
  80%  { opacity:.28; transform: translate(-12%, -4%)  scale(1.06); }
  100% { opacity:.16; transform: translate(0,    0)    scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mesh-bg::before, .mesh-bg::after { animation: none; opacity: .18; }
}

/* ── Scroll-to-top ─────────────────────────────────────────────────────── */
#scroll-top-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 800;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.88);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease-spring), background 0.15s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#scroll-top-btn:hover {
  background: var(--bg-overlay);
  color: var(--text);
  border-color: var(--border-purple);
}

/* ── Toast notifications ───────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
/* Annule les règles du système .toast legacy pour les toasts du container centré */
#toast-container .toast {
  position: static;
  bottom: auto;
  right: auto;
  z-index: auto;
  pointer-events: auto;
}
.toast {
  padding: 0.62rem 1.1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: toastIn 0.22s var(--ease-spring) forwards;
  white-space: nowrap;
}
.toast.out { animation: toastOut 0.18s var(--ease) forwards; }
.toast-success { background: rgba(16,185,129,0.18); border: 1px solid rgba(16,185,129,0.28); color: #6ee7b7; }
.toast-error   { background: rgba(239,68,68,0.18);  border: 1px solid rgba(239,68,68,0.28);  color: #fca5a5; }
.toast-info    { background: rgba(139,92,246,0.18); border: 1px solid rgba(139,92,246,0.28); color: var(--purple-light); }
@keyframes toastIn  { from { opacity:0; transform:translateY(8px) scale(.94); } to { opacity:1; transform:none; } }
@keyframes toastOut { from { opacity:1; transform:none; } to { opacity:0; transform:translateY(4px) scale(.96); } }

/* ── Breadcrumb ────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s var(--ease); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-dim); }
.breadcrumb .bc-sep { color: var(--text-dim); opacity: 0.5; }
