

/* ═══════════════════════════════════════════
   DESIGN SYSTEM — variables unifiées
═══════════════════════════════════════════ */
:root {
  /* Base */
  --bg:           #f4f6f1;
  --card:         #ffffff;
  --border:       #e0e8d4;
  --border-light: #edf2e6;

  /* Économie (vert) */
  --accent:       #1e5c1e;
  --accent2:      #3a8c3a;
  --accent3:      #5ab55a;
  --accent-light: #dff2df;
  --accent-pale:  #f0faf0;

  /* Gold / exemple */
  --gold:         #b8730e;
  --gold2:        #d4890f;
  --gold-light:   #fef3dc;

  /* Blue / retenir */
  --blue:         #1652a0;
  --blue2:        #2473d0;
  --blue-light:   #e8f1fd;

  /* Red / piège */
  --red:          #b52f22;
  --red2:         #d9392b;
  --red-light:    #fdecea;

  /* Text */
  --text:         #141a10;
  --text-2:       #2c3824;
  --muted:        #637055;
  --muted-light:  #9aaa8a;

  /* Tags */
  --tag-bg:       #dff2df;

  /* Shadows */
  --shadow:       0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(30,92,30,.07);
  --shadow-md:    0 2px 8px rgba(0,0,0,.08), 0 8px 24px rgba(30,92,30,.10);
  --shadow-lg:    0 4px 16px rgba(0,0,0,.10), 0 16px 40px rgba(30,92,30,.12);
  --shadow-card:  0 0 0 1px rgba(30,92,30,.06), 0 2px 12px rgba(30,92,30,.09);

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);

  /* ─── Matières ─────────────────────────── */
  /* Mercatique */
  --merc:        #bf3d08;
  --merc2:       #e0500e;
  --merc-light:  #fce6d8;
  --merc-pale:   #fff6f1;

  /* RHC */
  --rhc:         #b01656;
  --rhc2:        #d01e6a;
  --rhc-light:   #fce3ef;
  --rhc-pale:    #fff2f8;

  /* Gestion Financière */
  --gf:          #055940;
  --gf2:         #068057;
  --gf-light:    #c9f0e2;
  --gf-pale:     #edfaf4;

  /* MSGN */
  --msgn:        #5a1ec8;
  --msgn2:       #7040e8;
  --msgn-light:  #e5d9fc;
  --msgn-pale:   #f4f0ff;

  /* SGN */
  --sgn:         #0555a0;
  --sgn2:        #1478d8;
  --sgn-light:   #daeaf9;
  --sgn-pale:    #f0f7ff;
  --sgn-purple:  #6030d0;
  --sgn-pur-l:   #ede0fc;
  --sgn-teal:    #0a7c70;
  --sgn-teal-l:  #c2f4ec;
  --sgn-amber:   #a04510;
  --sgn-amb-l:   #feebd6;
  --sgn-red:     #a81c10;
  --sgn-red-l:   #fee4e0;

  /* Management */
  --mgmt:              #055840;
  --mgmt2:             #068056;
  --mgmt-light:        #c8f0e2;
  --mgmt-pale:         #ecfaf4;
  --mgmt-blue:         #1730a0;
  --mgmt-blue-light:   #d8e2fc;
  --mgmt-orange:       #8c3c06;
  --mgmt-orange-light: #fcebd4;
  --mgmt-red:          #901818;
  --mgmt-red-light:    #fde4e4;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c4d4b8; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ─── MATIERE SWITCHER ─── */
.matiere-switcher {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #0d1a0a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 100;
}
.matiere-switcher::-webkit-scrollbar { display: none; }

.matiere-btn {
  flex-shrink: 0;
  padding: 13px 13px;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,.38);
  cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  position: relative;
}
.matiere-btn:hover { color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.matiere-btn[data-mat="accueil"].active  { color: #ffffff;  border-bottom-color: #ffffff; }
.matiere-btn[data-mat="eco"].active      { color: #6ee87e;  border-bottom-color: #6ee87e; }
.matiere-btn[data-mat="droit"].active    { color: #a5b4fc;  border-bottom-color: #a5b4fc; }
.matiere-btn[data-mat="management"].active { color: #6ee7b7; border-bottom-color: #6ee7b7; }
.matiere-btn[data-mat="annales"].active  { color: #fcd34d;  border-bottom-color: #fcd34d; }
.matiere-btn[data-mat="sgn"].active      { color: #7dd3fc;  border-bottom-color: #7dd3fc; }
.matiere-btn[data-mat="mercatique"].active { color: #fdba74; border-bottom-color: #fdba74; }
.matiere-btn[data-mat="rhc"].active      { color: #f9a8d4;  border-bottom-color: #f9a8d4; }
.matiere-btn[data-mat="gf"].active       { color: #6ee7b7;  border-bottom-color: #6ee7b7; }
.matiere-btn[data-mat="msgn"].active     { color: #c4b5fd;  border-bottom-color: #c4b5fd; }

.matiere-divider { width: 1px; background: rgba(255,255,255,.08); margin: 8px 0; }

/* ─── HEADER ─── */
header {
  background: linear-gradient(135deg, #1a4a1a 0%, #1e6020 55%, #265e26 100%);
  padding: 52px 32px 44px;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 50%, rgba(90,180,90,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(30,96,32,.5) 0%, transparent 60%);
  pointer-events: none;
}
header::after {
  content: 'BAC';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -.04em;
  font-family: 'Outfit', sans-serif;
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 16px;
  background: rgba(255,255,255,.08);
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,.12);
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #6ee87e;
  border-radius: 50%;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
h1 em {
  font-style: normal;
  color: #a3e8a3;
}

.header-desc {
  color: rgba(255,255,255,.60);
  font-size: 15px;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── THEMES NAV ─── */
.themes-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 42px;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* volet selector */
.volet-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #f9fbf6;
  gap: 12px;
}
.volet-bar::before {
  content: '📚 Rubrique :';
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .05em;
  white-space: nowrap;
}
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.volet-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 38px 8px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-width: 250px;
}
.volet-select:hover { border-color: var(--accent2); }
.volet-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,92,30,.12);
}
.select-arrow {
  position: absolute;
  right: 13px;
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
}

/* tab row */
.themes-nav-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  gap: 0;
}
.themes-nav-inner::-webkit-scrollbar { display: none; }
.themes-nav-inner.hidden { display: none; }

.nav-btn {
  padding: 13px 18px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
  flex-shrink: 0;
  position: relative;
}
.nav-btn:hover { color: var(--accent); }
.nav-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.nav-btn.terminale:hover { color: #6d28d9; }
.nav-btn.terminale.active { color: #6d28d9; border-bottom-color: #6d28d9; font-weight: 700; }

/* ─── MAIN ─── */
main { max-width: 920px; margin: 0 auto; padding: 40px 24px 80px; }

.theme-section { display: none; }
.theme-section.visible {
  display: block;
  animation: fadeUp .32s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── THEME TITLE BLOCK ─── */
.theme-title-block {
  margin-bottom: 32px;
  padding: 26px 30px;
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  position: relative;
  overflow: hidden;
}
.theme-title-block::before {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(58,140,58,.12) 0%, transparent 70%);
  pointer-events: none;
}
.theme-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--accent2);
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.theme-title-block h2 {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.theme-title-block .intro {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── SOUS-THÈME CARD ─── */
.soustheme {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.soustheme:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.soustheme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  gap: 14px;
  transition: background .18s;
}
.soustheme-header:hover { background: var(--accent-pale); }

.soustheme-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: var(--tag-bg);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: .05em;
}
.soustheme-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  line-height: 1.35;
}
.chevron {
  color: var(--muted-light);
  font-size: 17px;
  transition: transform .28s var(--ease);
  flex-shrink: 0;
}
.soustheme.open .chevron { transform: rotate(180deg); }

.soustheme-body {
  display: none;
  padding: 6px 22px 24px;
  border-top: 1px solid var(--border-light);
}
.soustheme.open .soustheme-body { display: block; }

/* ─── CONTENU INTERNE ─── */
.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 600px) { .row-2col { grid-template-columns: 1fr; } }

.bloc {
  border-radius: var(--r-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.bloc-notions { background: var(--accent-light); border: 1px solid rgba(30,92,30,.14); }
.bloc-exemple { background: var(--gold-light);   border: 1px solid rgba(184,115,14,.18); }
.bloc-retenir { background: var(--blue-light);   border: 1px solid rgba(22,82,160,.14); }
.bloc-piege   { background: var(--red-light);    border: 1px solid rgba(181,47,34,.14); }

.bloc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bloc-notions .bloc-label { color: var(--accent); }
.bloc-exemple .bloc-label { color: var(--gold); }
.bloc-retenir .bloc-label { color: var(--blue); }
.bloc-piege   .bloc-label { color: var(--red); }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
}
.bloc-notions .tag { background: rgba(30,92,30,.12);   color: var(--accent); }
.bloc-exemple .tag { background: rgba(184,115,14,.12); color: var(--gold); }
.bloc-retenir .tag { background: rgba(22,82,160,.12);  color: var(--blue); }

.def-list { display: flex; flex-direction: column; gap: 9px; }
.def-item { font-size: 13px; line-height: 1.6; display: block; }
.def-term  { font-weight: 700; color: var(--accent); }
.def-sep   { color: var(--muted-light); margin: 0 4px; }

p.body-text {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.75;
  margin-top: 4px;
}

.formule-box {
  font-family: 'JetBrains Mono', monospace;
  background: #eef5ff;
  border: 1px dashed #94bdfa;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--blue);
  margin-top: 10px;
  font-weight: 500;
  line-height: 1.6;
}

/* ─── À RETENIR ─── */
.retenir-section {
  margin-top: 28px;
  background: var(--card);
  border: 1.5px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(30,92,30,.08);
}
.retenir-section h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.key-points { display: flex; flex-direction: column; gap: 9px; }
.key-point {
  display: block;
  font-size: 13.5px;
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.key-point::before {
  content: '→';
  color: var(--accent2);
  font-weight: 800;
  position: absolute;
  left: 0;
  top: 1px;
}

/* ─── MÉTHODO PAGE ─── */
.methodo-hero {
  background: linear-gradient(135deg, #0a6070 0%, #0a8099 100%);
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.methodo-hero::after {
  content: '';
  position: absolute;
  right: -30px; bottom: -30px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.methodo-hero h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.methodo-hero p  { font-size: 13.5px; opacity: .82; font-weight: 300; line-height: 1.6; }

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.score-bloc {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-md);
  padding: 14px 18px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.score-val   { font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.score-label { font-size: 11px; opacity: .72; margin-top: 5px; font-weight: 400; letter-spacing: .04em; }

.methodo-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.step-card {
  display: flex;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  align-items: flex-start;
  transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.step-num {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #0a6070, #0a8099);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10,96,112,.3);
}
.step-content h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.step-content p  { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.step-tip {
  margin-top: 10px;
  background: #f0f9ff;
  border-left: 3px solid #38bdf8;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 9px 12px;
  font-size: 13px;
  color: #0c4a6e;
  font-style: italic;
  line-height: 1.6;
}

/* ─── AEI BLOCK ─── */
.aei-block {
  background: var(--card);
  border: 2px solid #0a7490;
  border-radius: var(--r-lg);
  padding: 26px 26px 22px;
  margin-bottom: 32px;
  box-shadow: 0 2px 16px rgba(10,116,144,.1);
}
.aei-block h3 { font-size: 17px; font-weight: 800; color: #0a7490; margin-bottom: 4px; }
.aei-block .sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.aei-row {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0 16px;
  margin-bottom: 20px;
  align-items: start;
}
.aei-letter {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.aei-a { background: rgba(10,116,144,.12); color: #0a7490; }
.aei-e { background: rgba(79,70,229,.10);  color: #4338ca; }
.aei-i { background: rgba(245,158,11,.12); color: #b45309; }
.aei-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.aei-body p  { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.aei-body .example {
  margin-top: 8px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 12.5px;
  color: var(--muted);
}
.aei-body .example strong { color: var(--text); }

/* ─── GRILLE NOTATION ─── */
.grille-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  background: var(--card);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.grille-table th {
  background: linear-gradient(90deg, #0a6070, #0a8099);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 13px 16px;
  text-align: left;
}
.grille-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.6;
}
.grille-table tr:last-child td { border-bottom: none; }
.grille-table tr:nth-child(even) td { background: #f9fcf9; }
.pts-badge {
  display: inline-block;
  background: rgba(10,116,144,.12);
  color: #0a7490;
  font-weight: 700;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.plan-card h4 { font-size: 13px; font-weight: 700; color: #0a7490; margin-bottom: 8px; }
.plan-part {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text);
}
.plan-part:last-child { border-bottom: none; }
.plan-arrow { color: #0a7490; font-weight: 700; font-size: 16px; }

/* ─── ERREURS LIST ─── */
.erreurs-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.erreur-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fdf2f8;
  border: 1px solid #f8bbd0;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  line-height: 1.6;
}
.erreur-item .ico { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.erreur-item > div { flex: 1; min-width: 0; }
/* Thèmes spécifiques */
.gf   .erreur-item { background: var(--gf-pale);   border-color: rgba(5,89,64,.2);  border-left: 4px solid var(--gf); }
.merc .erreur-item { background: var(--merc-pale); border-color: rgba(191,61,8,.2); border-left: 4px solid var(--merc); }
.rhc  .erreur-item { background: var(--rhc-pale);  border-color: rgba(176,22,86,.2);border-left: 4px solid var(--rhc); }
.msgn .erreur-item { background: var(--msgn-pale); border-color: rgba(90,30,200,.2);border-left: 4px solid var(--msgn); }

/* ─── PHRASES UTILES ─── */
.phrases-utiles {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.phrases-utiles h3 { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.phrase-group { margin-bottom: 14px; }
.phrase-group-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 7px; }
.phrase-item {
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
  padding: 4px 0 4px 13px;
  border-left: 2px solid var(--accent-light);
  margin-bottom: 4px;
  line-height: 1.55;
}

/* ─── AUTEURS PAGE ─── */
.auteurs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.auteur-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.auteur-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.auteur-top {
  padding: 22px 20px 15px;
  border-bottom: 1px solid var(--border-light);
}
.auteur-meta { display: flex; align-items: flex-start; gap: 14px; }
.auteur-avatar {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.auteur-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.auteur-dates {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px;
}
.auteur-courant {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 99px;
  margin-top: 6px;
}
.auteur-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.auteur-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 5px;
}
.auteur-text { font-size: 13px; color: var(--text-2); line-height: 1.65; }

.idee-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  margin: 2px 3px 2px 0;
}

.quand-citer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-sm);
  padding: 10px 13px;
}
.quand-citer .auteur-section-label { color: #92400e; }
.quand-citer .auteur-text { color: #78350f; }

.phrase-cle {
  background: #f0f9ff;
  border-left: 3px solid #38bdf8;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 10px 13px;
  font-size: 12.5px;
  font-style: italic;
  color: #0c4a6e;
  line-height: 1.6;
}

/* courants d'auteurs */
.lib .auteur-avatar  { background: rgba(16,185,129,.12); }
.lib .auteur-courant { background: rgba(16,185,129,.12); color: #065f46; }
.lib .idee-pill      { background: rgba(16,185,129,.10); color: #065f46; }

.key .auteur-avatar  { background: rgba(79,70,229,.10); }
.key .auteur-courant { background: rgba(79,70,229,.10); color: #3730a3; }
.key .idee-pill      { background: rgba(79,70,229,.10); color: #3730a3; }

.mar .auteur-avatar  { background: rgba(239,68,68,.10); }
.mar .auteur-courant { background: rgba(239,68,68,.10); color: #991b1b; }
.mar .idee-pill      { background: rgba(239,68,68,.10); color: #991b1b; }

.inn .auteur-avatar  { background: rgba(245,158,11,.10); }
.inn .auteur-courant { background: rgba(245,158,11,.10); color: #92400e; }
.inn .idee-pill      { background: rgba(245,158,11,.10); color: #92400e; }

.mon .auteur-avatar  { background: rgba(6,182,212,.10); }
.mon .auteur-courant { background: rgba(6,182,212,.10); color: #164e63; }
.mon .idee-pill      { background: rgba(6,182,212,.10); color: #164e63; }

.env .auteur-avatar  { background: rgba(132,204,22,.10); }
.env .auteur-courant { background: rgba(132,204,22,.10); color: #365314; }
.env .idee-pill      { background: rgba(132,204,22,.10); color: #365314; }

.auteurs-intro {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.7;
}
.auteurs-intro strong { color: #92400e; }

/* ─── TIPS PAGE ─── */
.tips-hero {
  background: linear-gradient(135deg, #9d1357 0%, #c42875 100%);
  border-radius: var(--r-xl);
  padding: 30px 30px 26px;
  color: #fff;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.tips-hero::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.tips-hero h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.tips-hero p  { font-size: 13.5px; opacity: .84; font-weight: 300; }

.tips-category { margin-bottom: 36px; }
.tips-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.tips-category-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tips-category-header h3 { font-size: 16px; font-weight: 800; color: var(--text); }
.tips-category-header p  { font-size: 12.5px; color: var(--muted); margin-top: 1px; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  position: relative;
  overflow: hidden;
}
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  border-radius: var(--r-md) 0 0 var(--r-md);
}
.tip-card.pink::before   { background: linear-gradient(180deg, #db2777, #f472b6); }
.tip-card.orange::before { background: linear-gradient(180deg, #ea580c, #fb923c); }
.tip-card.teal::before   { background: linear-gradient(180deg, #0d9488, #2dd4bf); }
.tip-card.blue::before   { background: linear-gradient(180deg, #2563eb, #60a5fa); }
.tip-card.violet::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.tip-card.green::before  { background: linear-gradient(180deg, #16a34a, #4ade80); }
.tip-card.gold::before   { background: linear-gradient(180deg, #d97706, #fbbf24); }

.tip-icon  { font-size: 22px; margin-bottom: 8px; display: block; }
.tip-title { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.tip-body  { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.tip-bonus {
  margin-top: 9px;
  font-size: 12px;
  font-style: italic;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: #f8faf6;
  border: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.5;
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 28px 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #f9fbf6;
}

/* ─── MÉTHODE PAGE (droit/éco) ─── */
.methode-intro {
  background: linear-gradient(135deg, #0c90cc 0%, #0555a0 100%);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin-bottom: 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.methode-intro::after {
  content: '';
  position: absolute;
  right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
}
.methode-intro h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.methode-intro p  { font-size: 13.5px; opacity: .88; line-height: 1.7; }

.methode-steps { display: flex; flex-direction: column; gap: 0; }
.step-block {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}
.step-block:last-child { border-bottom: none; }
.step-circle {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.step-body  { flex: 1; }
.step-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-desc  { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.step-tip-block {
  margin-top: 10px;
  background: #f0f9ff;
  border-left: 3px solid #38bdf8;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #0c4a6e;
  line-height: 1.6;
}
.step-warn {
  margin-top: 10px;
  background: var(--red-light);
  border-left: 3px solid #f87171;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 8px 12px;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.6;
}

.step-s1 .step-circle { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.step-s2 .step-circle { background: linear-gradient(135deg, #0555a0, #0c90cc); }
.step-s3 .step-circle { background: linear-gradient(135deg, #0a7060, #0d9488); }
.step-s4 .step-circle { background: linear-gradient(135deg, #a04510, #d97706); }
.step-s5 .step-circle { background: linear-gradient(135deg, #9d1357, #db2777); }
.step-s6 .step-circle { background: linear-gradient(135deg, #1730a0, #3b5fe8); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.plan-card-simple { border-radius: var(--r-sm); padding: 14px 16px; border: 1px solid transparent; }
.plan-card-title  { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.plan-card-desc   { font-size: 13px; line-height: 1.6; }
.plan-a { background: #f0fdf4; border-color: #86efac; }
.plan-a .plan-card-title { color: #15803d; }
.plan-b { background: #fefce8; border-color: #fde047; }
.plan-b .plan-card-title { color: #854d0e; }
.plan-c { background: #eff6ff; border-color: #93c5fd; }
.plan-c .plan-card-title { color: #1e40af; }

.argument-schema {
  background: var(--card);
  border: 2px solid #0555a0;
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin-top: 10px;
}
.argument-schema-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #0555a0; margin-bottom: 14px; }
.arg-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed #e2e8f0;
}
.arg-row:last-child { border-bottom: none; }
.arg-tag {
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 99px;
  min-width: 80px; text-align: center;
}
.arg-tag-a { background: #e0f2fe; color: #0555a0; }
.arg-tag-j { background: #dcfce7; color: #15803d; }
.arg-tag-i { background: #fef9c3; color: #854d0e; }
.arg-text { font-size: 13px; color: var(--text-2); line-height: 1.65; flex: 1; }

.bareme-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--r-md); overflow: hidden;
  margin-top: 10px; font-size: 13.5px;
}
.bareme-table th {
  background: linear-gradient(90deg, #0555a0, #0c90cc);
  color: #fff; padding: 11px 14px;
  text-align: left; font-weight: 600;
  font-size: 12px; letter-spacing: .04em;
}
.bareme-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top; line-height: 1.55;
}
.bareme-table tr:last-child td { border-bottom: none; }
.bareme-table tr:nth-child(even) td { background: #f8fafc; }
.pts-badge-droit {
  display: inline-block;
  background: #0555a0; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
}

.erreurs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 10px;
}
@media (max-width: 600px) { .erreurs-grid { grid-template-columns: 1fr; } }

.erreur-card { border-radius: var(--r-sm); padding: 14px 16px; }
.erreur-bad  { background: var(--red-light);  border: 1px solid #fca5a5; }
.erreur-good { background: #f0fdf4;  border: 1px solid #86efac; }
.erreur-card .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.erreur-bad  .label { color: #b91c1c; }
.erreur-good .label { color: #15803d; }
.erreur-card p { font-size: 13px; line-height: 1.6; color: var(--text-2); }

.exemple-full {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.exemple-full-header {
  background: linear-gradient(90deg, #0555a0, #0c90cc);
  color: #fff; padding: 12px 20px;
  font-size: 13px; font-weight: 600;
}
.exemple-full-body { padding: 18px 20px; }
.exemple-section { margin-bottom: 14px; }
.exemple-section:last-child { margin-bottom: 0; }
.exemple-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 5px;
}
.exemple-text {
  font-size: 13.5px; line-height: 1.7;
  color: var(--text-2); background: #f8fafc;
  border-radius: var(--r-sm); padding: 10px 14px;
  border-left: 3px solid #0555a0;
}
.exemple-text em { color: #0555a0; font-style: normal; font-weight: 600; }

/* ─── VERBES TABLE ─── */
.verbes-table {
  width: 100%; border-collapse: collapse;
  border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 13.5px; margin-bottom: 0;
}
.verbes-table th {
  background: linear-gradient(90deg, #9d1357, #c42875);
  color: #fff; padding: 11px 16px;
  text-align: left; font-size: 12px;
  font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
}
.verbes-table td { padding: 10px 16px; border-bottom: 1px solid var(--border-light); vertical-align: top; line-height: 1.55; }
.verbes-table tr:last-child td { border-bottom: none; }
.verbes-table tr:nth-child(even) td { background: #fdf2f8; }
.verbe-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 5px;
  background: rgba(157,19,87,.10); color: #9d1357;
  white-space: nowrap;
}

/* ─── CALCULS ─── */
.calculs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.calcul-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s;
}
.calcul-card:hover { box-shadow: var(--shadow-md); }
.calcul-name {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #0a7060; margin-bottom: 6px;
}
.calcul-formule {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px; color: #064c44;
  background: #f0fefa; border: 1px solid #9cf0e0;
  border-radius: 6px; padding: 7px 10px;
  margin-bottom: 6px; line-height: 1.5;
}
.calcul-ex { font-size: 12px; color: var(--muted); font-style: italic; line-height: 1.5; }

/* ─── GRAPHIQUE STEPS ─── */
.graphique-steps { display: flex; flex-direction: column; gap: 10px; counter-reset: gstep; }
.graphique-step {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  font-size: 13.5px; line-height: 1.6;
  counter-increment: gstep;
}
.graphique-step::before {
  content: counter(gstep);
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #0a7060, #0d9488);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 2px 8px rgba(13,148,136,.25);
}

/* ─── REVISION TIMELINE ─── */
.revision-timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 30px;
}
.revision-timeline::before {
  content: '';
  position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #9d1357, #c42875, #f472b6);
  border-radius: 2px;
}
.timeline-item {
  position: relative; margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 13.5px; line-height: 1.6;
  box-shadow: var(--shadow);
}
.timeline-item::before {
  content: '';
  position: absolute; left: -24px; top: 16px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #c42875; border: 2px solid #fff;
  box-shadow: 0 0 0 2px #c42875;
}
.timeline-when {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #c42875; margin-bottom: 4px;
}
.timeline-item strong { color: var(--text); }

/* ─── LEÇONS & ACTIVITÉS ─── */
.lecon-hero {
  background: linear-gradient(135deg, #0d3860 0%, #1462a0 100%);
  border-radius: var(--r-xl); padding: 30px 30px 26px;
  color: #fff; margin-bottom: 32px;
  position: relative; overflow: hidden;
}
.lecon-hero::after {
  content: '';
  position: absolute; right: -20px; bottom: -20px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
}
.lecon-hero h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.lecon-hero p  { font-size: 13.5px; opacity: .84; font-weight: 300; }

.lecon-list { display: flex; flex-direction: column; gap: 18px; }
.lecon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.lecon-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lecon-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; cursor: pointer;
  user-select: none; border-bottom: 1px solid var(--border);
  background: #f8fafc; transition: background .18s;
}
.lecon-header:hover { background: #eef4ff; }
.lecon-num {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, #0d3860, #1462a0);
  color: #fff; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 8px rgba(20,98,160,.25);
}
.lecon-titre { flex: 1; font-size: 15px; font-weight: 700; color: var(--text); }
.lecon-chevron { color: var(--muted-light); font-size: 17px; transition: transform .25s var(--ease); flex-shrink: 0; }
.lecon-card.open .lecon-chevron { transform: rotate(180deg); }
.lecon-body { display: none; padding: 24px 24px 28px; }
.lecon-card.open .lecon-body { display: block; }

/* cours block */
.cours-block {
  background: #f5f8ff; border: 1px solid #c4d8f4;
  border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px;
}
.cours-block-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #1462a0; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.cours-content { font-size: 14px; color: #1a2230; line-height: 1.8; }
.cours-content p { margin-bottom: 10px; }
.cours-content p:last-child { margin-bottom: 0; }
.cours-content strong { color: #1462a0; }
.cours-vide {
  text-align: center; padding: 28px 16px;
  color: #aab; font-size: 13.5px; font-style: italic;
}

/* activités */
.activites-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #6028cc; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.activite-item {
  background: var(--card);
  border: 1px solid #ddd6fe; border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(96,40,204,.07);
}
.activite-item:last-child { margin-bottom: 0; }
.activite-item-header {
  background: #f5f0ff; padding: 12px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #ddd6fe;
}
.activite-badge {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  background: linear-gradient(135deg, #6028cc, #7c3aed);
  color: #fff; padding: 2px 10px; border-radius: 99px;
}
.activite-titre { font-size: 13.5px; font-weight: 700; color: #2c1065; flex: 1; }
.activite-body { padding: 16px 18px; }

.doc-block {
  background: #fafafa; border: 1px solid #e5e7eb;
  border-radius: var(--r-sm); padding: 14px 16px;
  margin-bottom: 14px; font-size: 13.5px;
  line-height: 1.7; color: var(--text-2);
}
.doc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #6b7280; margin-bottom: 8px; }
.doc-texte { font-style: italic; color: var(--text-2); }

.questions-block { display: flex; flex-direction: column; gap: 10px; }
.question-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; line-height: 1.65;
}
.q-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #6028cc, #7c3aed);
  color: #fff; font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 2px 6px rgba(96,40,204,.25);
}
.q-text { flex: 1; color: #1a2230; }
.activite-vide {
  text-align: center; padding: 28px 16px;
  color: #aab; font-size: 13.5px; font-style: italic;
  border: 2px dashed #ddd6fe; border-radius: var(--r-md);
}

/* ─── DROIT LEÇONS ─── */
.lecon-droit .lecon-num { background: linear-gradient(135deg, #2c1ea0, #3730a3); box-shadow: 0 2px 8px rgba(55,48,163,.25); }
.lecon-droit .lecon-header:hover { background: #eef2ff; }
.lecon-droit .cours-block { background: #eef2ff; border-color: #c7d2fe; }
.lecon-droit .cours-block-label { color: #3730a3; }
.lecon-droit .cours-content strong { color: #3730a3; }
.lecon-droit .activite-badge { background: linear-gradient(135deg, #2c1ea0, #3730a3); }
.lecon-droit .activite-titre { color: #1e1b4b; }
.lecon-droit .activite-item { border-color: #c7d2fe; }
.lecon-droit .activite-item-header { background: #eef2ff; border-color: #c7d2fe; }
.lecon-droit .q-num { background: linear-gradient(135deg, #2c1ea0, #3730a3); box-shadow: 0 2px 6px rgba(55,48,163,.25); }
.lecon-droit .activite-vide { border-color: #c7d2fe; }
.lecon-droit-term .lecon-num { background: linear-gradient(135deg, #991810, #b91c1c); box-shadow: 0 2px 8px rgba(185,28,28,.25); }
.lecon-droit-term .lecon-header:hover { background: #fef2f2; }
.lecon-droit-term .cours-block { background: #fef2f2; border-color: #fecaca; }
.lecon-droit-term .cours-block-label { color: #b91c1c; }
.lecon-droit-term .cours-content strong { color: #b91c1c; }
.lecon-droit-term .activite-badge { background: linear-gradient(135deg, #991810, #b91c1c); }
.lecon-droit-term .activite-titre { color: #450a0a; }
.lecon-droit-term .activite-item { border-color: #fecaca; }
.lecon-droit-term .activite-item-header { background: #fef2f2; border-color: #fecaca; }
.lecon-droit-term .q-num { background: linear-gradient(135deg, #991810, #b91c1c); }
.lecon-droit-term .activite-vide { border-color: #fecaca; }

/* ─── TÉLÉCHARGEMENT ─── */
.dl-btn {
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: var(--r-sm); padding: 7px 14px;
  font-size: 12px; font-weight: 700;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }

/* ─── BADGES ─── */
.terminale-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #6d28d9; background: rgba(109,40,217,.10);
  border: 1px solid rgba(109,40,217,.25);
  padding: 2px 9px; border-radius: 99px; margin-bottom: 8px;
}

.theme-title-block.terminale { border-left-color: #6d28d9; background: #faf5ff; }
.theme-title-block.terminale h2 { color: #5b21b6; }
.theme-title-block.terminale .theme-number { color: #7c3aed; }

.soustheme-terminale .soustheme-id { background: rgba(109,40,217,.10); color: #6d28d9; }
.soustheme-terminale .soustheme-header:hover { background: #faf5ff; }

/* ═══ DROIT PALETTE ═══ */
.droit [data-color="d1"] .matiere-header { background: rgba(55,48,163,.06); border-color: rgba(55,48,163,.2); }
.droit [data-color="d1"] .matiere-header h2 { color: #3730a3; }
.droit [data-color="d1"] .soustheme-id { background: rgba(55,48,163,.10); color: #3730a3; }
.droit [data-color="d1"] .soustheme-header:hover { background: #eef2ff; }
.droit [data-color="d1"] .bloc-notions { background: #eef2ff; border-color: rgba(55,48,163,.15); }
.droit [data-color="d1"] .bloc-notions .bloc-label { color: #3730a3; }
.droit [data-color="d1"] .bloc-notions .def-term { color: #3730a3; }
.droit [data-color="d1"] .retenir-section { border-color: #3730a3; }
.droit [data-color="d1"] .retenir-section h3 { color: #3730a3; }
.droit [data-color="d1"] .key-point::before { color: #4f46e5; }
.droit [data-color="d2"] .matiere-header { background: rgba(185,28,28,.05); border-color: rgba(185,28,28,.2); }
.droit [data-color="d2"] .matiere-header h2 { color: #b91c1c; }
.droit [data-color="d2"] .soustheme-id { background: rgba(185,28,28,.10); color: #b91c1c; }
.droit [data-color="d2"] .soustheme-header:hover { background: #fef2f2; }
.droit [data-color="d2"] .bloc-notions { background: #fef2f2; border-color: rgba(185,28,28,.15); }
.droit [data-color="d2"] .bloc-notions .bloc-label { color: #b91c1c; }
.droit [data-color="d2"] .bloc-notions .def-term { color: #b91c1c; }
.droit [data-color="d2"] .retenir-section { border-color: #b91c1c; }
.droit [data-color="d2"] .retenir-section h3 { color: #b91c1c; }
.droit [data-color="d2"] .key-point::before { color: #dc2626; }
.droit .soustheme.open .chevron { transform: rotate(180deg); }
.volet-select-droit { border-color: #3730a3 !important; }

/* ═══ MANAGEMENT PALETTE ═══ */
.management .theme-title-block { border-left-color: var(--mgmt); background: var(--mgmt-pale); }
.management .theme-title-block h2 { color: var(--mgmt); }
.management .theme-title-block .theme-number { color: var(--mgmt2); }
.management .soustheme-id { background: var(--mgmt-light); color: var(--mgmt); }
.management .soustheme-header:hover { background: var(--mgmt-pale); }
.management .bloc-notions { background: var(--mgmt-light); border-color: rgba(5,88,64,.15); }
.management .bloc-notions .bloc-label { color: var(--mgmt); }
.management .bloc-notions .tag { background: rgba(5,88,64,.12); color: var(--mgmt); }
.management .bloc-notions .def-term { color: var(--mgmt); }
.management .retenir-section { border-color: var(--mgmt); }
.management .retenir-section h3 { color: var(--mgmt); }
.management .key-point::before { color: var(--mgmt2); }
.management .nav-btn.active { color: var(--mgmt); border-bottom-color: var(--mgmt); }
.management .nav-btn:hover { color: var(--mgmt); }

/* notion grid */
.notion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-top: 14px;
}
.notion-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; box-shadow: var(--shadow);
}
.notion-card-term { font-size: 12.5px; font-weight: 700; color: var(--mgmt); margin-bottom: 4px; }
.notion-card-def  { font-size: 12px; color: var(--text-2); line-height: 1.55; }

/* SWOT */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width:600px) { .swot-grid { grid-template-columns: 1fr; } }
.swot-card { border-radius: var(--r-md); padding: 14px 16px; }
.swot-f { background:#d1fae5; border:1px solid #6ee7b7; }
.swot-f .swot-label { color:#055840; }
.swot-w { background:#fee2e2; border:1px solid #fca5a5; }
.swot-w .swot-label { color:#901818; }
.swot-o { background:#dbeafe; border:1px solid #93c5fd; }
.swot-o .swot-label { color:#1730a0; }
.swot-t { background:#fef3c7; border:1px solid #fde068; }
.swot-t .swot-label { color:#8c3c06; }
.swot-label { font-size: 10px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; margin-bottom:6px; }
.swot-content { font-size:12.5px; color:var(--text-2); line-height:1.6; }

/* stratégie */
.strategie-schema {
  background: var(--card); border: 2px solid var(--mgmt);
  border-radius: var(--r-md); padding: 20px 22px; margin-top: 10px;
}
.strategie-schema-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--mgmt); margin-bottom:14px; }
.strat-row { display:flex; align-items:flex-start; gap:12px; padding:9px 0; border-bottom:1px dashed #e2e8f0; }
.strat-row:last-child { border-bottom:none; }
.strat-badge { flex-shrink:0; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:3px 9px; border-radius:99px; min-width:90px; text-align:center; }
.strat-badge-diag { background:#d1fae5; color:#055840; }
.strat-badge-obj  { background:#dbeafe; color:#1730a0; }
.strat-badge-opt  { background:#fef3c7; color:#8c3c06; }
.strat-badge-perf { background:var(--msgn-light); color:var(--msgn); }
.strat-text { font-size:13px; color:var(--text-2); line-height:1.65; flex:1; }

.mgmt-tip-hero {
  background: linear-gradient(135deg, #055840 0%, #068056 100%);
  border-radius: var(--r-xl); padding: 30px 30px 26px;
  color:#fff; margin-bottom:32px; position:relative; overflow:hidden;
}
.mgmt-tip-hero::after { content:''; position:absolute; right:-20px; bottom:-20px; width:140px; height:140px; background:radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%); }
.mgmt-tip-hero h2 { font-size:21px; font-weight:800; margin-bottom:6px; }
.mgmt-tip-hero p { font-size:13.5px; opacity:.84; font-weight:300; }

/* Glossaire management */
.def-alpha { display:block; }
.def-alpha-item {
  display:block; background:#fff;
  border:1px solid var(--border); border-left:4px solid var(--mgmt);
  border-radius:var(--r-md); padding:12px 14px; margin-bottom:10px;
  box-shadow:var(--shadow); transition:box-shadow .18s, transform .18s;
}
.def-alpha-item:hover { box-shadow:var(--shadow-md); transform:translateY(-1px); }
.def-alpha-header { display:block; margin-bottom:5px; }
.def-alpha-letter {
  display:inline-block; width:24px; height:24px;
  border-radius:5px; background:var(--mgmt-light);
  color:var(--mgmt); font-weight:800; font-size:11px;
  text-align:center; line-height:24px;
}

/* ═══ SGN PALETTE ═══ */
.sgn .theme-title-block { border-left-color: var(--sgn); background: var(--sgn-pale); }
.sgn .theme-title-block h2 { color: var(--sgn); }
.sgn .theme-title-block .theme-number { color: var(--sgn2); }
.sgn .soustheme-id { background: var(--sgn-light); color: var(--sgn); }
.sgn .soustheme-header:hover { background: var(--sgn-pale); }
.sgn .bloc-notions { background: var(--sgn-light); border-color: rgba(5,85,160,.15); }
.sgn .bloc-notions .bloc-label { color: var(--sgn); }
.sgn .bloc-notions .tag { background: rgba(5,85,160,.12); color: var(--sgn); }
.sgn .bloc-notions .def-term { color: var(--sgn); }
.sgn .retenir-section { border-color: var(--sgn); }
.sgn .retenir-section h3 { color: var(--sgn); }
.sgn .key-point::before { color: var(--sgn2); }
.sgn .nav-btn.active { color: var(--sgn); border-bottom-color: var(--sgn); }
.sgn .nav-btn:hover { color: var(--sgn); }

.sgn-hero {
  background: linear-gradient(135deg, var(--sgn) 0%, var(--sgn2) 100%);
  border-radius: var(--r-xl); padding: 30px 30px 26px;
  color: #fff; margin-bottom: 32px; position: relative; overflow: hidden;
}
.sgn-hero::after { content:''; position:absolute; right:-20px; bottom:-20px; width:140px; height:140px; background:radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%); }
.sgn-hero h2 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.sgn-hero p  { font-size: 13.5px; opacity: .84; font-weight: 300; }
.qg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sgn-light); color: var(--sgn);
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 11px; border-radius: 99px; margin-bottom: 10px;
}
.qg-card {
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--sgn); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s;
}
.qg-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.qg-card-title { font-size: 13.5px; font-weight: 700; color: var(--sgn); margin-bottom: 8px; }
.qg-card-body  { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.capacites-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.capacite-item {
  display: block; font-size: 13px; line-height: 1.6;
  padding: 8px 12px 8px 32px; position: relative;
  background: var(--sgn-pale); border-radius: 7px;
  border: 1px solid rgba(5,85,160,.1);
}
.capacite-item::before { content:'✓'; position:absolute; left:10px; top:9px; color:var(--sgn2); font-weight:800; font-size:13px; }

.sgn-notions-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sgn-chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 99px;
  background: var(--sgn-light); color: var(--sgn);
  border: 1px solid rgba(5,85,160,.2);
}
.sgn-chip.purple { background: var(--sgn-pur-l); color: var(--sgn-purple); border-color: rgba(96,48,208,.2); }
.sgn-chip.teal   { background: var(--sgn-teal-l); color: var(--sgn-teal); border-color: rgba(10,124,112,.2); }
.sgn-chip.amber  { background: var(--sgn-amb-l); color: var(--sgn-amber); border-color: rgba(160,69,16,.2); }
.sgn-chip.red    { background: var(--sgn-red-l); color: var(--sgn-red); border-color: rgba(168,28,16,.2); }

.process-flow { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; margin-top: 12px; }
.process-step {
  flex: 1; min-width: 90px;
  background: var(--sgn-pale); border: 1px solid var(--sgn-light);
  border-radius: var(--r-sm); padding: 10px 12px; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--sgn);
}
.process-arrow { display: flex; align-items: center; justify-content: center; color: var(--sgn2); font-size: 18px; padding: 0 4px; align-self: center; }
@media (max-width:600px) { .process-flow { flex-direction: column; } .process-arrow { transform: rotate(90deg); } }

.tdb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; margin-top: 12px; }
.tdb-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px; text-align: center;
  box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s;
}
.tdb-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tdb-icon  { font-size: 22px; margin-bottom: 4px; }
.tdb-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing:.07em; color: var(--muted); }
.tdb-value { font-size: 18px; font-weight: 800; color: var(--text); margin: 2px 0; }
.tdb-trend { font-size: 11px; color: var(--muted); }

/* ═══ MERCATIQUE PALETTE ═══ */
.merc .theme-title-block { border-left-color: var(--merc); background: var(--merc-pale); }
.merc .theme-title-block h2 { color: var(--merc); }
.merc .theme-title-block .theme-number { color: var(--merc2); }
.merc .soustheme-id { background: var(--merc-light); color: var(--merc); }
.merc .soustheme-header:hover { background: var(--merc-pale); }
.merc .bloc-notions { background: var(--merc-light); border-color: rgba(191,61,8,.15); }
.merc .bloc-notions .bloc-label { color: var(--merc); }
.merc .bloc-notions .def-term { color: var(--merc); }
.merc .retenir-section { border-color: var(--merc); }
.merc .retenir-section h3 { color: var(--merc); }
.merc .key-point::before { color: var(--merc2); }
.merc .nav-btn.active { color: var(--merc); border-bottom-color: var(--merc); }
.merc .nav-btn:hover  { color: var(--merc); }
.merc-maitrise-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.merc-maitrise-item {
  display: block; font-size: 13px; line-height: 1.6;
  padding: 8px 12px 8px 32px; position: relative;
  background: var(--merc-pale); border-radius: 7px;
  border: 1px solid rgba(191,61,8,.12);
}
.merc-maitrise-item::before { content:'✓'; position:absolute; left:10px; top:9px; color:var(--merc2); font-weight:800; font-size:13px; }

/* ═══ RHC PALETTE ═══ */
.rhc .theme-title-block { border-left-color: var(--rhc); background: var(--rhc-pale); }
.rhc .theme-title-block h2 { color: var(--rhc); }
.rhc .theme-title-block .theme-number { color: var(--rhc2); }
.rhc .soustheme-id { background: var(--rhc-light); color: var(--rhc); }
.rhc .soustheme-header:hover { background: var(--rhc-pale); }
.rhc .bloc-notions { background: var(--rhc-light); border-color: rgba(176,22,86,.15); }
.rhc .bloc-notions .bloc-label { color: var(--rhc); }
.rhc .bloc-notions .def-term { color: var(--rhc); }
.rhc .retenir-section { border-color: var(--rhc); }
.rhc .retenir-section h3 { color: var(--rhc); }
.rhc .key-point::before { color: var(--rhc2); }
.rhc .nav-btn.active { color: var(--rhc); border-bottom-color: var(--rhc); }
.rhc .nav-btn:hover  { color: var(--rhc); }
.rhc-maitrise-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.rhc-maitrise-item {
  display: block; font-size: 13px; line-height: 1.6;
  padding: 8px 12px 8px 32px; position: relative;
  background: var(--rhc-pale); border-radius: 7px;
  border: 1px solid rgba(176,22,86,.12);
}
.rhc-maitrise-item::before { content:'✓'; position:absolute; left:10px; top:9px; color:var(--rhc2); font-weight:800; font-size:13px; }

/* ═══ GF PALETTE ═══ */
.gf .theme-title-block { border-left-color: var(--gf); background: var(--gf-pale); }
.gf .theme-title-block h2 { color: var(--gf); }
.gf .theme-title-block .theme-number { color: var(--gf2); }
.gf .soustheme-id { background: var(--gf-light); color: var(--gf); }
.gf .soustheme-header:hover { background: var(--gf-pale); }
.gf .bloc-notions { background: var(--gf-light); border-color: rgba(5,89,64,.15); }
.gf .bloc-notions .bloc-label { color: var(--gf); }
.gf .bloc-notions .def-term { color: var(--gf); }
.gf .retenir-section { border-color: var(--gf); }
.gf .retenir-section h3 { color: var(--gf); }
.gf .key-point::before { color: var(--gf2); }
.gf .nav-btn.active { color: var(--gf); border-bottom-color: var(--gf); }
.gf .nav-btn:hover  { color: var(--gf); }
.gf .formule-box { border-color: rgba(5,89,64,.25); color: var(--gf); background: var(--gf-pale); }
.gf-cascade { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0; align-items: stretch; }
.gf-cascade-step {
  flex: 1; min-width: 100px;
  background: var(--gf-pale); border: 1px solid var(--gf-light);
  border-radius: var(--r-sm); padding: 10px 12px; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--gf); position: relative;
}
.gf-cascade-arrow { display: flex; align-items: center; justify-content: center; color: var(--gf2); font-size: 18px; padding: 0 4px; }
.gf-maitrise-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gf-maitrise-item {
  display: block; font-size: 13px; line-height: 1.6;
  padding: 8px 12px 8px 32px; position: relative;
  background: var(--gf-pale); border-radius: 7px;
  border: 1px solid rgba(5,89,64,.12);
}
.gf-maitrise-item::before { content:'✓'; position:absolute; left:10px; top:9px; color:var(--gf2); font-weight:800; font-size:13px; }

/* ═══ MSGN PALETTE ═══ */
.msgn .theme-title-block { border-left-color: var(--msgn); background: var(--msgn-pale); }
.msgn .theme-title-block h2 { color: var(--msgn); }
.msgn .theme-title-block .theme-number { color: var(--msgn2); }
.msgn .soustheme-id { background: var(--msgn-light); color: var(--msgn); }
.msgn .soustheme-header:hover { background: var(--msgn-pale); }
.msgn .bloc-notions { background: var(--msgn-light); border-color: rgba(90,30,200,.15); }
.msgn .bloc-notions .bloc-label { color: var(--msgn); }
.msgn .bloc-notions .def-term { color: var(--msgn); }
.msgn .retenir-section { border-color: var(--msgn); }
.msgn .retenir-section h3 { color: var(--msgn); }
.msgn .key-point::before { color: var(--msgn2); }
.msgn .nav-btn.active { color: var(--msgn); border-bottom-color: var(--msgn); }
.msgn .nav-btn:hover  { color: var(--msgn); }

/* ─── WRAPPERS HIDDEN ─── */
#eco-wrapper.hidden, #droit-wrapper.hidden, #management-wrapper.hidden,
#sgn-wrapper.hidden, #mercatique-wrapper.hidden, #rhc-wrapper.hidden,
#gf-wrapper.hidden, #msgn-wrapper.hidden, #annales-wrapper.hidden { display: none; }

/* ─── MATIERE HEADER (sections) ─── */
.matiere-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.matiere-header h2 { font-size: 18px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .auteurs-grid   { grid-template-columns: 1fr; }
  .tips-grid      { grid-template-columns: 1fr; }
  .calculs-grid   { grid-template-columns: 1fr; }
  .plans-grid     { grid-template-columns: 1fr; }
  .score-grid     { grid-template-columns: repeat(2, 1fr); }
  main            { padding: 20px 14px 60px; }
  .soustheme-header { padding: 14px 16px; }
  .soustheme-body { padding: 0 16px 16px; }
  h1              { font-size: 1.65rem; }
  .aei-row        { grid-template-columns: 48px 1fr; gap: 0 10px; }
  .step-card      { flex-direction: column; gap: 10px; }
  .step-block     { flex-direction: column; gap: 12px; }
  .themes-nav-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .themes-nav-inner::-webkit-scrollbar { display: none; }
  .nav-btn        { white-space: nowrap; flex-shrink: 0; }
  .swot-grid      { grid-template-columns: 1fr; }
  .notion-grid    { grid-template-columns: 1fr; }
  header          { padding: 36px 18px 30px; }
  .methodo-hero, .tips-hero, .sgn-hero, .mgmt-tip-hero, .lecon-hero { padding: 22px 20px 18px; }
  .volet-select   { min-width: 180px; }
}


/* ═══ RESTAURATION : ACCUEIL · GLOSSAIRE · LOGOS ═══ */
.def-alpha-term {
  display: inline;
  font-weight: 800;
  font-size: 14px;
  color: var(--mgmt);
  vertical-align: middle;
}
.def-alpha-def {
  display: block;
  font-size: 13px;
  color: #445;
  line-height: 1.65;
  margin-top: 4px;
  padding-left: 32px;
}

/* ── ACCUEIL ── */
#accueil-wrapper { display: block; }
#accueil-wrapper.hidden { display: none; }
.accueil-hero {
  background: linear-gradient(135deg, #1a2215 0%, #2d3a1e 50%, #1a2a3a 100%);
  padding: 48px 24px 40px;
  text-align: center;
  color: #fff;
}
.accueil-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.accueil-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.15;
  background: linear-gradient(90deg, #4ade80, #38bdf8, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accueil-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 360px;
  margin: 0 auto 28px;
  font-weight: 300;
  line-height: 1.6;
}
.accueil-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.accueil-stat {
  text-align: center;
}
@media (max-width:480px){ .accueil-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;max-width:300px;margin-left:auto;margin-right:auto} div.accueil-wip.accueil-wip{margin-bottom:22px} }
.accueil-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.accueil-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.accueil-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.accueil-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
  margin-top: 32px;
}
.accueil-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .accueil-cards { grid-template-columns: 1fr; } }
.accueil-card {
  border-radius: 14px;
  padding: 18px 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
  text-align: left;
}
.accueil-card:active { transform: scale(0.97); }
.accueil-card-icon { font-size: 26px; margin-bottom: 8px; display: block; }
.accueil-card-title { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.accueil-card-desc  { font-size: 12px; line-height: 1.5; opacity: .8; }
.accueil-card-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.accueil-card-chip  { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,0.08); }
.ac-eco   { background: #f0fdf4; border-color: #86efac; color: #14532d; }
.ac-droit { background: #eef2ff; border-color: #a5b4fc; color: #1e1b4b; }
.ac-mana  { background: #f0fdf4; border-color: #6ee7b7; color: #064e3b; }
.ac-sgn   { background: #f0f9ff; border-color: #7dd3fc; color: #0c4a6e; }
.ac-annales { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.accueil-tip {
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.accueil-tip-icon { font-size: 24px; flex-shrink: 0; }
.accueil-tip-text { font-size: 13px; color: #78350f; line-height: 1.6; }
.accueil-tip-text strong { font-weight: 800; }


/* ── LOGO NAV ── */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 6px 0 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
}

/* ── LOGO FOOTER ── */
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.accueil-wip {
  display: inline-block;
  margin: 14px auto 0;
  background: rgba(255, 200, 0, 0.12);
  border: 1px solid rgba(255, 200, 0, 0.35);
  color: #fcd34d;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── LOGO ACCUEIL ── */
.accueil-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.accueil-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(0,0,0,0.35));
}

/* ═══════════════════════════════════════════
   ENHANCEMENTS v2 — nav mobile · recherche · dark mode · FAB
═══════════════════════════════════════════ */

/* ---- Groupes dans la barre de matières (desktop) ---- */
.matiere-group-sep{
  display:flex; align-items:center; flex-shrink:0;
  padding:0 14px 0 16px; margin-left:4px;
  font-size:9.5px; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:rgba(255,255,255,.30);
  border-left:1px solid rgba(255,255,255,.10);
}

/* ---- Barre supérieure mobile ---- */
.mobile-topbar{
  display:none; position:sticky; top:0; z-index:120;
  align-items:center; gap:10px;
  background:#0d1a0a; color:#fff; padding:9px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.mtb-btn{
  width:42px; height:42px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.08); border:none; border-radius:11px;
  color:#fff; cursor:pointer; transition:background .2s;
}
.mtb-btn:hover{ background:rgba(255,255,255,.16); }
.mtb-current{ flex:1; min-width:0; font-weight:700; font-size:14.5px; line-height:1.15; }
.mtb-current small{ display:block; font-size:9.5px; font-weight:600; opacity:.5; text-transform:uppercase; letter-spacing:.09em; }
.mtb-current span{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---- Tiroir de navigation ---- */
.drawer-overlay{
  position:fixed; inset:0; z-index:200;
  background:rgba(0,0,0,.5); backdrop-filter:blur(2px);
  opacity:0; visibility:hidden; transition:opacity .25s, visibility .25s;
}
.drawer-overlay.open{ opacity:1; visibility:visible; }
.drawer{
  position:fixed; top:0; left:0; bottom:0; z-index:201;
  width:min(330px,86vw); background:var(--card);
  box-shadow:4px 0 40px rgba(0,0,0,.3);
  transform:translateX(-100%); transition:transform .3s var(--ease);
  display:flex; flex-direction:column; overflow-y:auto;
}
.drawer.open{ transform:translateX(0); }
.drawer-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 20px 16px; border-bottom:1px solid var(--border);
  position:sticky; top:0; background:var(--card); z-index:1;
}
.drawer-head h3{ font-size:16px; font-weight:800; color:var(--text); }
.drawer-close{ background:none; border:none; font-size:26px; color:var(--muted); cursor:pointer; line-height:1; padding:0 4px; }
.drawer-group{ padding:14px 14px 4px; }
.drawer-group + .drawer-group{ border-top:1px solid var(--border-light); }
.drawer-group-label{ font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.11em; color:var(--muted-light); padding:0 6px 9px; }
.drawer-item{
  display:flex; align-items:center; gap:13px; width:100%;
  padding:12px 14px; margin-bottom:3px;
  background:transparent; border:none; border-radius:11px;
  font-family:'Outfit',sans-serif; font-size:14.5px; font-weight:600;
  color:var(--text); cursor:pointer; text-align:left; transition:background .16s;
}
.drawer-item:hover{ background:var(--accent-pale); }
.drawer-item.active{ background:var(--accent-light); color:var(--accent); }
.drawer-item .di-ico{ font-size:18px; width:24px; text-align:center; flex-shrink:0; }

/* ---- Boutons d'action flottants ---- */
.fab-stack{ position:fixed; right:18px; bottom:18px; z-index:140; display:flex; flex-direction:column; gap:10px; }
.fab{
  width:48px; height:48px; border-radius:15px; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  background:var(--card); color:var(--text); box-shadow:var(--shadow-lg);
  transition:transform .18s var(--ease), opacity .25s, visibility .25s, background .2s, color .2s;
}
.fab svg{ width:21px; height:21px; }
.fab:hover{ transform:translateY(-3px) scale(1.05); }
.fab-primary{ background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; }
.fab-top{ opacity:0; visibility:hidden; transform:translateY(12px); }
.fab-top.show{ opacity:1; visibility:visible; transform:translateY(0); }

/* ---- Recherche ---- */
.search-overlay{
  position:fixed; inset:0; z-index:300;
  background:rgba(10,16,8,.55); backdrop-filter:blur(4px);
  opacity:0; visibility:hidden; transition:opacity .2s, visibility .2s;
  display:flex; justify-content:center; align-items:flex-start;
  padding:13vh 16px 16px;
}
.search-overlay.open{ opacity:1; visibility:visible; }
.search-box{
  width:min(640px,100%); background:var(--card); border-radius:20px;
  box-shadow:0 28px 70px rgba(0,0,0,.4); overflow:hidden;
  transform:translateY(-14px); transition:transform .22s var(--ease);
  display:flex; flex-direction:column; max-height:74vh;
}
.search-overlay.open .search-box{ transform:translateY(0); }
.search-input-row{ display:flex; align-items:center; gap:12px; padding:17px 20px; border-bottom:1px solid var(--border); }
.search-input-row svg{ width:20px; height:20px; color:var(--muted); flex-shrink:0; }
#site-search-input{
  flex:1; border:none; outline:none; background:transparent;
  font-family:'Outfit',sans-serif; font-size:16.5px; color:var(--text);
}
#site-search-input::placeholder{ color:var(--muted-light); }
.search-hint{ font-size:11px; font-weight:600; color:var(--muted); background:var(--bg); border:1px solid var(--border); border-radius:6px; padding:3px 8px; flex-shrink:0; }
.search-results{ overflow-y:auto; padding:8px; }
.search-result{
  display:flex; align-items:center; gap:13px; width:100%;
  padding:11px 14px; border:none; background:transparent; border-radius:12px;
  cursor:pointer; text-align:left; font-family:'Outfit',sans-serif; transition:background .14s;
}
.search-result:hover, .search-result.sel{ background:var(--accent-pale); }
.sr-badge{ font-size:9.5px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; padding:4px 9px; border-radius:99px; flex-shrink:0; background:var(--accent-light); color:var(--accent); min-width:62px; text-align:center; }
.sr-text{ flex:1; min-width:0; }
.sr-title{ display:block; font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sr-sub{ display:block; font-size:11.5px; color:var(--muted); }
.search-empty{ padding:30px 16px; text-align:center; color:var(--muted); font-size:13.5px; }
.search-foot{ display:flex; gap:16px; padding:10px 20px; border-top:1px solid var(--border); font-size:11px; color:var(--muted-light); }
.search-foot b{ color:var(--muted); font-weight:700; }

/* ---- highlight on jump ---- */
@keyframes jumpFlash{ 0%,100%{ box-shadow:var(--shadow-card); } 30%{ box-shadow:0 0 0 3px var(--accent2); } }
.jump-flash{ animation:jumpFlash 1.3s var(--ease); }

/* ═══════════ MODE SOMBRE ═══════════ */
html[data-theme="dark"]{
  --bg:#0e130c; --card:#181f17; --border:#2b332a; --border-light:#222a21;
  --text:#e9efe3; --text-2:#c6cfbb; --muted:#94a487; --muted-light:#71805f; --tag-bg:#1b2a1b;
  --accent:#63d27e; --accent2:#7fdc92; --accent3:#9be8a8; --accent-light:#16261a; --accent-pale:#152015;
  --gold:#e3ad42; --gold2:#f0bb55; --gold-light:#2a2210;
  --blue:#5ea3ef; --blue2:#7eb8f5; --blue-light:#13243a;
  --red:#f08c80; --red2:#f5a198; --red-light:#2c1714;
  --shadow:0 1px 3px rgba(0,0,0,.5),0 4px 14px rgba(0,0,0,.4);
  --shadow-md:0 2px 12px rgba(0,0,0,.55);
  --shadow-lg:0 10px 34px rgba(0,0,0,.6);
  --shadow-card:0 0 0 1px rgba(255,255,255,.05),0 2px 14px rgba(0,0,0,.5);
  /* matières */
  --merc:#f0905a; --merc2:#f5a574; --merc-light:#2a1810; --merc-pale:#1d130c;
  --rhc:#f07ab0; --rhc2:#f598c4; --rhc-light:#2a1320; --rhc-pale:#1d0f17;
  --gf:#5fd0a0; --gf2:#7adcb4; --gf-light:#0f2a20; --gf-pale:#0c1d17;
  --msgn:#b08af0; --msgn2:#c4a5f5; --msgn-light:#1f1533; --msgn-pale:#160f24;
  --sgn:#6ab0f0; --sgn2:#8cc4f5; --sgn-light:#13243a; --sgn-pale:#0f1c2e;
  --sgn-purple:#b08af0; --sgn-pur-l:#1f1533; --sgn-teal:#5fd0c0; --sgn-teal-l:#0f2a28;
  --sgn-amber:#e3ad42; --sgn-amb-l:#2a2210; --sgn-red:#f08c80; --sgn-red-l:#2c1714;
  --mgmt:#5fd0a0; --mgmt2:#7adcb4; --mgmt-light:#0f2a20; --mgmt-pale:#0c1d17;
  --mgmt-blue:#5ea3ef; --mgmt-blue-light:#13243a; --mgmt-orange:#e3ad42; --mgmt-orange-light:#2a2210;
  --mgmt-red:#f08c80; --mgmt-red-light:#2c1714;
}
html[data-theme="dark"] body{ background:var(--bg); }
/* surfaces codées en dur → assombries */
html[data-theme="dark"] .cours-block,
html[data-theme="dark"] .exemple-text,
html[data-theme="dark"] .doc-block,
html[data-theme="dark"] .lecon-header,
html[data-theme="dark"] .activite-item-header,
html[data-theme="dark"] .tip-bonus,
html[data-theme="dark"] .aei-body .example,
html[data-theme="dark"] .calcul-formule,
html[data-theme="dark"] .formule-box,
html[data-theme="dark"] .bareme-table tr:nth-child(even) td,
html[data-theme="dark"] .grille-table tr:nth-child(even) td,
html[data-theme="dark"] .verbes-table tr:nth-child(even) td{ background:#1d251c !important; }
html[data-theme="dark"] .cours-content,
html[data-theme="dark"] .q-text,
html[data-theme="dark"] .doc-texte,
html[data-theme="dark"] .arg-text,
html[data-theme="dark"] .exemple-text,
html[data-theme="dark"] .step-desc,
html[data-theme="dark"] p.body-text{ color:var(--text-2); }
html[data-theme="dark"] .lecon-header:hover{ background:#222c20; }
html[data-theme="dark"] footer{ background:#11160f; }
html[data-theme="dark"] .themes-nav{ background:var(--card); }
html[data-theme="dark"] .volet-bar{ background:#141a13; }
html[data-theme="dark"] .volet-select{ background:var(--card); color:var(--text); }
html[data-theme="dark"] .search-hint,
html[data-theme="dark"] .search-foot b{ background:#222c20; }

/* ---- bascule affichage mobile / desktop ---- */
@media (max-width:760px){
  .mobile-topbar{ display:flex; }
  .matiere-switcher{ display:none; }
  .themes-nav{ top:60px; }
  .matiere-group-sep{ display:none; }
  .fab-stack{ right:14px; bottom:14px; }
}
@media (min-width:761px){
  .themes-nav{ top:46px; }
}

/* ═══════════════════════════════════════════
   v3 — recherche visible (barre haute) + dark mode DROIT
═══════════════════════════════════════════ */

/* ---- Déclencheur de recherche dans la barre des matières ---- */
.nav-search-trigger{
  display:flex; align-items:center; gap:7px; flex-shrink:0;
  margin:7px 8px 7px 6px; padding:7px 11px;
  background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.16);
  border-radius:10px; color:rgba(255,255,255,.6);
  font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:500;
  cursor:pointer; transition:background .2s, color .2s, border-color .2s;
}
.nav-search-trigger:hover{ background:rgba(255,255,255,.16); color:#fff; border-color:rgba(255,255,255,.28); }
.nav-search-trigger svg{ width:15px; height:15px; flex-shrink:0; }
.nav-search-trigger .nst-txt{ text-align:left; white-space:nowrap; }
/* à l'étroit : la recherche devient une simple loupe + on resserre les séparateurs */
@media (max-width:1180px){
  .nav-search-trigger .nst-txt, .nav-search-trigger .nst-kbd{ display:none; }
  .nav-search-trigger{ padding:7px 9px; }
  .matiere-group-sep{ display:none; }
}
.nav-search-trigger .nst-kbd{
  font-size:10px; font-weight:700; letter-spacing:.02em;
  background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.14);
  border-radius:5px; padding:2px 6px; color:rgba(255,255,255,.7);
}
@media (max-width:760px){ .nav-search-trigger{ display:none; } }

/* La loupe flottante devient secondaire (la barre haute est le point d'entrée principal sur desktop) */
@media (min-width:761px){ #fab-search{ display:none; } }

/* ═══════════ MODE SOMBRE — DROIT (d1 indigo / d2 rouge) ═══════════ */
/* d1 — Droit civil / indigo */
html[data-theme="dark"] .droit [data-color="d1"] .bloc-notions{ background:#161a2e !important; border-color:rgba(129,140,248,.22); }
html[data-theme="dark"] .droit [data-color="d1"] .bloc-notions .bloc-label,
html[data-theme="dark"] .droit [data-color="d1"] .bloc-notions .def-term{ color:#a5b4fc; }
html[data-theme="dark"] .droit [data-color="d1"] .soustheme-id{ background:rgba(129,140,248,.18); color:#a5b4fc; }
html[data-theme="dark"] .droit [data-color="d1"] .soustheme-header:hover{ background:#1a2033; }
html[data-theme="dark"] .droit [data-color="d1"] .matiere-header{ background:rgba(129,140,248,.08); }
html[data-theme="dark"] .droit [data-color="d1"] .matiere-header h2{ color:#a5b4fc; }
html[data-theme="dark"] .droit [data-color="d1"] .retenir-section{ border-color:#6366f1; }
html[data-theme="dark"] .droit [data-color="d1"] .retenir-section h3,
html[data-theme="dark"] .droit [data-color="d1"] .key-point::before{ color:#a5b4fc; }
/* d2 — Droit pénal / rouge */
html[data-theme="dark"] .droit [data-color="d2"] .bloc-notions{ background:#2c1515 !important; border-color:rgba(240,140,128,.22); }
html[data-theme="dark"] .droit [data-color="d2"] .bloc-notions .bloc-label,
html[data-theme="dark"] .droit [data-color="d2"] .bloc-notions .def-term{ color:#f08c80; }
html[data-theme="dark"] .droit [data-color="d2"] .soustheme-id{ background:rgba(240,140,128,.18); color:#f08c80; }
html[data-theme="dark"] .droit [data-color="d2"] .soustheme-header:hover{ background:#2a1818; }
html[data-theme="dark"] .droit [data-color="d2"] .matiere-header{ background:rgba(240,140,128,.08); }
html[data-theme="dark"] .droit [data-color="d2"] .matiere-header h2{ color:#f08c80; }
html[data-theme="dark"] .droit [data-color="d2"] .retenir-section{ border-color:#f08c80; }
html[data-theme="dark"] .droit [data-color="d2"] .retenir-section h3,
html[data-theme="dark"] .droit [data-color="d2"] .key-point::before{ color:#f08c80; }
/* Onglets thèmes Droit (couleurs posées en inline par le JS) */
html[data-theme="dark"] #droit-nav .nav-btn{ color:var(--muted) !important; }
html[data-theme="dark"] #droit-nav .nav-btn.active{ color:#a5b4fc !important; border-bottom-color:#a5b4fc !important; }
/* Leçons & activités Droit */
html[data-theme="dark"] .lecon-droit .lecon-header,
html[data-theme="dark"] .lecon-droit .cours-block,
html[data-theme="dark"] .lecon-droit .activite-item-header{ background:#161a2e !important; border-color:rgba(129,140,248,.18); }
html[data-theme="dark"] .lecon-droit .cours-block-label,
html[data-theme="dark"] .lecon-droit .activite-titre{ color:#a5b4fc; }
html[data-theme="dark"] .lecon-droit-term .lecon-header,
html[data-theme="dark"] .lecon-droit-term .cours-block,
html[data-theme="dark"] .lecon-droit-term .activite-item-header{ background:#2c1515 !important; border-color:rgba(240,140,128,.18); }
html[data-theme="dark"] .lecon-droit-term .cours-block-label,
html[data-theme="dark"] .lecon-droit-term .activite-titre{ color:#f08c80; }
/* Méthode / barème Droit & SGN (en-têtes bleus codés en dur restent lisibles, on ajuste les fonds pâles) */
html[data-theme="dark"] .exemple-text,
html[data-theme="dark"] .bareme-table tr:nth-child(even) td{ background:#1d251c !important; }


/* ═══ v5 — corrections (oct. 2026) ═══ */
/* Titre d'accueil : couleur pleine plutôt que dégradé sur le texte */
.accueil-hero h1{ background:none !important; -webkit-text-fill-color:currentColor !important; color:#fff !important; }
.accueil-hero h1 .hl{ color:#86efac; }
/* Encart d'inscription (bibliothèque PDF + packs) */
.lead-cta{ display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; margin:0 0 28px; padding:20px 22px;
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-lg); box-shadow:0 2px 6px rgba(0,0,0,.05), 0 10px 28px rgba(30,92,30,.10); }
.lead-cta-text{ flex:1 1 320px; min-width:0; }
.lead-cta-title{ font-size:17px; font-weight:800; color:var(--text); margin-bottom:6px; text-wrap:balance; }
.lead-cta p{ font-size:14px; line-height:1.6; color:var(--text-2); margin:0; }
.lead-cta-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:12px 22px; border-radius:999px;
  background:var(--accent); color:#fff !important; font-weight:700; font-size:15px; text-decoration:none; white-space:nowrap;
  transition:background .2s var(--ease), transform .2s var(--ease); }
.lead-cta-btn:hover{ background:#174a17; transform:translateY(-1px); }
.lead-cta-btn:focus-visible{ outline:3px solid #86efac; outline-offset:3px; }
.quiz-result-card .lead-cta{ margin:18px 0 0; text-align:left; box-shadow:none; }
.lead-cta .lead-legal{ font-size:12px; line-height:1.5; color:var(--muted); margin-top:8px; }
.lead-cta .lead-legal a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
/* Page « S'entraîner » */
.train-wrap{ max-width:820px; margin:40px auto 60px; padding:0 20px; }
.train-list{ list-style:none; padding:0; margin:0 0 30px; border-top:1px solid var(--border); }
.train-list li{ border-bottom:1px solid var(--border); }
.train-list a, .train-list button{ display:flex; gap:16px; align-items:baseline; width:100%; padding:16px 4px; text-align:left;
  background:none; border:0; color:inherit; text-decoration:none; font:inherit; cursor:pointer; }
.train-list a:hover b, .train-list button:hover b{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }
.train-list b{ display:block; font-size:16px; color:var(--text); }
.train-list span{ display:block; font-size:14px; color:var(--muted); margin-top:2px; }
.train-list .tl-ico{ font-size:20px; flex:none; width:28px; }
.train-h2{ font-size:20px; font-weight:800; color:var(--text); margin:0 0 12px; }
.train-note{ font-size:14px; line-height:1.65; color:var(--text-2); margin:0 0 26px; }
/* Tableaux larges : défilement horizontal sur mobile plutôt que débordement de la page */
@media (max-width:640px){ .theme-section table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; } }
/* Sélection et focus aux couleurs du site */
::selection{ background:#bbf7d0; color:#14532d; }
:focus-visible{ outline:2px solid var(--accent2); outline-offset:2px; }

/* Liens légaux du pied de page */
footer .foot-legal{ margin-top:10px; font-size:12px; }
footer .foot-legal a{ color:inherit; text-decoration:underline; text-underline-offset:2px; opacity:.85; }
footer .foot-legal a:hover{ opacity:1; }
@media (max-width:640px){ footer{ padding-left:64px !important; padding-right:64px !important; } }


/* ═══════════════════════════════════════════
   v5 — ONGLET QUIZ
═══════════════════════════════════════════ */
.matiere-btn[data-mat="quiz"].active{ color:#c4b5fd; border-bottom-color:#c4b5fd; }
#quiz-wrapper.hidden{ display:none; }
.quiz-main{ max-width:760px; margin:0 auto; padding:36px 20px 90px; }
.quiz-intro{ font-size:13.5px; color:var(--muted); line-height:1.6; margin-bottom:22px; }
.quiz-menu-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .quiz-menu-grid{ grid-template-columns:1fr; } }
.quiz-subj{ background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:var(--shadow-card); }
.quiz-subj-head{ display:flex; align-items:center; gap:11px; margin-bottom:13px; }
.quiz-subj-ico{ width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:21px; flex-shrink:0; }
.quiz-subj-name{ font-size:15.5px; font-weight:800; color:var(--text); }
.quiz-levels{ display:flex; flex-direction:column; gap:8px; }
.quiz-level-btn{ display:flex; align-items:center; gap:9px; width:100%; padding:11px 14px; border:1px solid var(--border); border-radius:11px; background:var(--bg); cursor:pointer; font-family:'Outfit',sans-serif; font-size:13.5px; font-weight:600; color:var(--text); transition:border-color .15s, background .15s; text-align:left; }
.quiz-level-btn:hover:not(:disabled){ border-color:var(--msgn); background:var(--msgn-pale); }
.quiz-level-btn:disabled{ opacity:.45; cursor:not-allowed; }
.quiz-level-btn .ql-count{ margin-left:auto; font-size:11px; color:var(--muted); font-weight:700; }
.quiz-random{ grid-column:1/-1; background:linear-gradient(135deg,#5a2ea6,#7c3aed); color:#fff; border:none; border-radius:16px; padding:20px 22px; cursor:pointer; text-align:left; display:flex; align-items:center; gap:16px; box-shadow:var(--shadow-md); transition:transform .18s; }
.quiz-random:hover{ transform:translateY(-2px); }
.quiz-random-ico{ font-size:32px; flex-shrink:0; }
.quiz-random h3{ font-size:17px; font-weight:800; margin-bottom:2px; }
.quiz-random p{ font-size:12.5px; opacity:.86; }
/* panneau inline (accordéon sous la matière) */
.quiz-inline{ grid-column:1/-1; margin:2px 0 8px; animation:fadeUp .25s var(--ease) both; }
.quiz-subj.qactive{ border-color:var(--msgn); box-shadow:0 0 0 2px var(--msgn-light); }
.quiz-random.qactive{ outline:3px solid rgba(255,255,255,.45); outline-offset:2px; }
/* play */
.quiz-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:24px; box-shadow:var(--shadow-card); }
.quiz-bar{ height:6px; background:var(--border-light); border-radius:99px; overflow:hidden; margin-bottom:8px; }
.quiz-bar-fill{ height:100%; background:linear-gradient(90deg,var(--msgn),var(--msgn2)); border-radius:99px; transition:width .3s var(--ease); }
.quiz-meta{ display:flex; justify-content:space-between; font-size:11.5px; color:var(--muted); font-weight:700; margin-bottom:18px; letter-spacing:.02em; }
.quiz-q{ font-size:18px; font-weight:700; line-height:1.45; margin-bottom:20px; color:var(--text); }
.quiz-choices{ display:flex; flex-direction:column; gap:10px; }
.quiz-choice{ display:flex; align-items:center; gap:12px; padding:14px 16px; border:1.5px solid var(--border); border-radius:12px; background:var(--card); cursor:pointer; font-family:'Outfit',sans-serif; font-size:14.5px; line-height:1.4; color:var(--text); text-align:left; transition:border-color .15s, background .15s; }
.quiz-choice:hover:not(:disabled){ border-color:var(--msgn); background:var(--msgn-pale); }
.quiz-choice .qc-letter{ width:27px; height:27px; border-radius:8px; background:var(--msgn-light); color:var(--msgn); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.quiz-choice.correct{ border-color:#16a34a; background:#f0fdf4; }
.quiz-choice.correct .qc-letter{ background:#16a34a; color:#fff; }
.quiz-choice.wrong{ border-color:#dc2626; background:#fef2f2; }
.quiz-choice.wrong .qc-letter{ background:#dc2626; color:#fff; }
.quiz-choice:disabled{ cursor:default; }
html[data-theme="dark"] .quiz-choice.correct{ background:#10241a; }
html[data-theme="dark"] .quiz-choice.wrong{ background:#2a1414; }
.quiz-explain{ margin-top:16px; padding:12px 15px; border-radius:11px; background:var(--msgn-pale); border-left:3px solid var(--msgn); font-size:13px; color:var(--text-2); line-height:1.6; display:none; }
.quiz-explain.show{ display:block; }
.quiz-actions{ display:flex; justify-content:flex-end; margin-top:18px; }
.quiz-next{ padding:11px 22px; border:none; border-radius:11px; background:linear-gradient(135deg,var(--msgn),var(--msgn2)); color:#fff; font-family:'Outfit',sans-serif; font-weight:700; font-size:14px; cursor:pointer; transition:transform .15s, opacity .15s; }
.quiz-next:hover:not(:disabled){ transform:translateY(-2px); }
.quiz-next:disabled{ opacity:.4; cursor:default; }
/* result */
.quiz-result-card{ background:var(--card); border:1px solid var(--border); border-radius:18px; padding:32px 24px; text-align:center; box-shadow:var(--shadow-card); }
.quiz-score-ring{ font-size:48px; font-weight:900; color:var(--msgn); line-height:1; }
.quiz-score-sub{ font-size:14px; color:var(--muted); margin-top:6px; }
.quiz-result-msg{ font-size:17px; font-weight:800; margin:14px 0 24px; color:var(--text); }
.quiz-result-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.quiz-btn{ padding:12px 22px; border-radius:12px; font-family:'Outfit',sans-serif; font-weight:700; font-size:14px; cursor:pointer; border:none; transition:transform .15s; }
.quiz-btn:hover{ transform:translateY(-2px); }
.quiz-btn-primary{ background:linear-gradient(135deg,var(--msgn),var(--msgn2)); color:#fff; }
.quiz-btn-ghost{ background:var(--bg); border:1px solid var(--border); color:var(--text); }

/* ═══════════════════════════════════════════
   v6 — AUDIT : accessibilité clavier, cartes spécialités, dark mode cartes
═══════════════════════════════════════════ */
/* cartes spécialités accueil (ex-styles inline) */
.ac-merc { background:#fff7ed; border-color:#fed7aa; color:#9a3412; }
.ac-rhc  { background:#fdf2f8; border-color:#fbcfe8; color:#9d174d; }
.ac-gf   { background:#f0fdf4; border-color:#a7f3d0; color:#065f46; }
.ac-msgn { background:#f5f3ff; border-color:#ddd6fe; color:#4c1d95; }

/* mode sombre — toutes les cartes d'accueil */
html[data-theme="dark"] .ac-eco   { background:#10241a; border-color:#1d5235; color:#9fe6b4; }
html[data-theme="dark"] .ac-droit { background:#15172e; border-color:#33356b; color:#b4bcf7; }
html[data-theme="dark"] .ac-mana  { background:#0f241c; border-color:#1d5240; color:#88e0bd; }
html[data-theme="dark"] .ac-sgn   { background:#10243a; border-color:#1d4a73; color:#8fc6f5; }
html[data-theme="dark"] .ac-annales { background:#2a230f; border-color:#6b591d; color:#f2d38a; }
html[data-theme="dark"] .ac-merc  { background:#2a190f; border-color:#7a4520; color:#f4b48a; }
html[data-theme="dark"] .ac-rhc   { background:#2a131f; border-color:#7a2050; color:#f4a0c8; }
html[data-theme="dark"] .ac-gf    { background:#0f2a20; border-color:#1d6b50; color:#8fe6c0; }
html[data-theme="dark"] .ac-msgn  { background:#1c1533; border-color:#48357a; color:#c4b0f5; }

/* accessibilité : focus clavier visible sur les éléments cliquables non natifs */
.soustheme-header:focus-visible,
.lecon-header:focus-visible,
.accueil-card:focus-visible,
[role="button"]:focus-visible,
.quiz-choice:focus-visible,
.fab:focus-visible,
.matiere-btn:focus-visible,
.nav-btn:focus-visible,
.drawer-item:focus-visible,
.search-result:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 8px;
}
html[data-theme="dark"] .soustheme-header:focus-visible,
html[data-theme="dark"] [role="button"]:focus-visible { outline-color:#7fdc92; }

/* ─── Schémas en HTML (12/11/2026) : remplacent les SVG illisibles sur téléphone ─── */
.sch{--c:#b91c1c;--cl:#fef2f2;--ct:#7f1d1d;margin:0 auto;max-width:640px;font-size:14px;line-height:1.4}
.sch-ind{--c:#3730a3;--cl:#eef2ff;--ct:#312e81}
.sch-red{--c:#b91c1c;--cl:#fef2f2;--ct:#7f1d1d}
.sch-row{display:flex;align-items:stretch;gap:6px}
.sch-card{flex:1;background:var(--cl);border:1.5px solid var(--c);border-radius:10px;padding:10px 12px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:3px}
.sch-card b,.sch-lvl b,.sch-step b{color:var(--c);font-size:15px}
.sch-card span,.sch-lvl span,.sch-step span{color:var(--ct);font-size:13.5px}
.sch-plus{align-self:center;color:var(--c);font-weight:900;font-size:20px}
.sch-result{margin-top:10px;text-align:center;color:var(--c);font-weight:600;font-size:14px}
.sch-pyr{display:flex;flex-direction:column;align-items:center;gap:4px}
.sch-lvl{width:var(--w);min-width:min(100%,230px);background:var(--cl);border:1.5px solid var(--c);border-radius:8px;padding:7px 10px;text-align:center;display:flex;flex-direction:column;gap:1px}
.sch-pyr .sch-lvl:first-child{background:var(--c)}
.sch-pyr .sch-lvl:first-child b,.sch-pyr .sch-lvl:first-child span{color:#fff}
.sch-jud{display:flex;gap:14px;align-items:flex-start}
.sch-col{flex:1;display:flex;flex-direction:column;align-items:stretch}
.sch-head{background:var(--c);color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.05em;font-size:13px;text-align:center;border-radius:8px;padding:8px;margin-bottom:6px}
.sch-step{background:var(--cl);border:1.5px solid var(--c);border-radius:8px;padding:8px 10px;text-align:center;display:flex;flex-direction:column;gap:2px;margin-bottom:6px}
.sch-step small{font-size:12px;color:var(--ct);font-weight:700}
.sch-step.sch-top{background:var(--c)}
.sch-step.sch-top b,.sch-step.sch-top span{color:#fff}
.sch-arrow{text-align:center;color:var(--c);font-weight:700;font-size:13px;margin:-2px 0 4px}
@media (max-width:560px){
  .sch-row{flex-direction:column}
  .sch-plus{margin:-2px 0}
  .sch-jud{flex-direction:column}
  .sch-col{width:100%}
}
html[data-theme="dark"] .sch-ind{--c:#a5b4fc;--cl:#1b1d33;--ct:#c7d2fe}
html[data-theme="dark"] .sch-red{--c:#f8a29a;--cl:#2c1714;--ct:#f5c4be}
html[data-theme="dark"] .sch-pyr .sch-lvl:first-child,html[data-theme="dark"] .sch-step.sch-top,html[data-theme="dark"] .sch-head{background:var(--cl);border:1.5px solid var(--c)}
html[data-theme="dark"] .sch-head{color:var(--c)}
html[data-theme="dark"] .sch-pyr .sch-lvl:first-child b,html[data-theme="dark"] .sch-step.sch-top b{color:var(--c)}
html[data-theme="dark"] .sch-pyr .sch-lvl:first-child span,html[data-theme="dark"] .sch-step.sch-top span{color:var(--ct)}
@media print{.sch{break-inside:avoid}.sch-row{flex-direction:row}.sch-jud{flex-direction:row}}
