/* Identité visuelle — Cours avec Hicham Boumal */
:root{--navy:#173f8a;--blue:#2867d8;--gold:#f2b84b;--green:#2aa876;--bg:#f5f7fb;--surface:#fff;--text:#16233d;--muted:#667085;--line:#e2e7f0;--soft:#edf3ff;--shadow:0 18px 50px rgba(23,63,138,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}a{text-decoration:none;color:inherit}.container{width:min(1140px,92%);margin:auto}
.header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.nav{height:78px;display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;font-size:24px;font-weight:900;box-shadow:0 8px 18px rgba(40,103,216,.25)}.brand span:last-child{display:flex;flex-direction:column;line-height:1.05}.brand strong{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.brand b{font-size:17px;color:var(--navy)}
nav{display:flex;gap:4px;margin-left:auto}nav a{padding:10px 13px;border-radius:10px;color:var(--muted);font-weight:700}nav a:hover,nav a.active{background:var(--soft);color:var(--navy)}.theme-btn,.menu-toggle{width:40px;height:40px;border:1px solid var(--line);background:var(--surface);border-radius:11px;color:var(--text);cursor:pointer;font-size:18px}.menu-toggle{display:none}
.hero{padding:92px 0 82px;background:radial-gradient(circle at 80% 25%,#dceaff 0,transparent 34%),linear-gradient(135deg,#f7faff,#eef4ff)}.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:65px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.17em;font-weight:900;color:var(--blue);margin-bottom:10px}.hero h1{font-size:clamp(42px,6vw,68px);line-height:1.02;letter-spacing:-.05em;margin:0 0 22px}.hero h1 span{color:var(--navy)}.hero h1 em{font-style:normal;color:var(--navy)}.hero p{font-size:18px;color:var(--muted);max-width:650px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 19px;border-radius:12px;font-weight:800;border:1px solid var(--line)}.btn.primary{background:var(--navy);color:#fff;border-color:var(--navy);box-shadow:0 9px 20px rgba(23,63,138,.18)}.btn.secondary,.btn.light{background:#fff}.trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:25px;color:var(--muted);font-size:13px;font-weight:650}
.math-card,.equation-card{position:relative;min-height:340px;border-radius:30px;overflow:hidden;background:linear-gradient(145deg,#102f6b,#1d62c8);color:#fff;padding:40px;box-shadow:var(--shadow);display:flex;flex-direction:column;justify-content:center;transform:rotate(1deg)}.formula,.equation{position:relative;z-index:2;font-size:40px;font-weight:900;text-align:center}.math-lines{position:relative;z-index:2;display:grid;gap:12px;margin-top:45px}.math-lines span{padding:11px 15px;border:1px solid rgba(255,255,255,.18);border-radius:12px;color:#dbe8ff}.equation-note{position:relative;z-index:2;text-align:center;margin:25px auto 0;max-width:370px;color:#dbe8ff}.grid-paper{position:absolute;inset:0;opacity:.12;background-image:linear-gradient(rgba(255,255,255,.8) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.8) 1px,transparent 1px);background-size:28px 28px}
.section{padding:78px 0}.soft{background:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:30px}.section-head h2,.callout h2{font-size:34px;line-height:1.1;margin:0}.section-head p{color:var(--muted)}
.level-grid,.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.level-card,.feature-grid article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;transition:.2s;box-shadow:0 7px 24px rgba(20,40,80,.04)}.level-card:hover,.feature-grid article:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.level-card.featured{border-color:#b8ccf7}.level-card h3{font-size:21px;margin:18px 0 6px}.level-card p,.feature-grid p{color:var(--muted)}.level-card b{color:var(--blue)}.level-number{float:right;color:#dfe7f5;font-size:48px;font-weight:900}.level-badge{display:inline-block;padding:7px 10px;border-radius:9px;background:var(--soft);color:var(--navy);font-weight:900}.feature-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-weight:900;font-size:22px;margin-bottom:18px}.blue{background:#e9f0ff;color:var(--blue)}.gold{background:#fff5dc;color:#b77a08}.green{background:#e7f8f1;color:#16845c}
.callout{padding:34px;border-radius:24px;background:linear-gradient(135deg,#eaf1ff,#f4f7ff);border:1px solid #d8e3fb;display:flex;align-items:center;justify-content:space-between;gap:25px}.callout p{color:var(--muted)}
.page-hero{padding:68px 0;background:#fff;border-bottom:1px solid var(--line)}.page-hero h1{font-size:48px;line-height:1.1;letter-spacing:-.04em;margin:0 0 8px}.page-hero p{color:var(--muted);margin:0}
.filters{display:flex;gap:12px;margin-bottom:28px}.filters input,.filters select{height:50px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 14px;font:inherit;color:var(--text)}.filters input{flex:1}.filters select{min-width:185px}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.resource-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:23px;transition:.2s}.resource-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.tag{display:inline-block;background:var(--soft);color:var(--navy);font-size:11px;font-weight:900;padding:5px 8px;border-radius:7px;margin:0 5px 12px 0}.resource-card h3{margin:3px 0 7px;font-size:20px}.resource-card p{color:var(--muted);font-size:14px}.resource-card .open{color:var(--blue);font-weight:800}.empty{grid-column:1/-1;text-align:center;padding:45px;color:var(--muted)}
footer{background:#0e224c;color:#d7e1f6;margin-top:20px}.footer{padding:48px 0;display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.footer .brand-mark{background:#fff;color:var(--navy)}.footer .brand b{color:#fff}.footer p{color:#9fb0cf}.footer>div:not(:first-child){display:flex;flex-direction:column;gap:7px}.copyright{text-align:center;padding:18px;border-top:1px solid rgba(255,255,255,.1);font-size:13px;color:#9fb0cf}
body.dark{--bg:#0b1220;--surface:#131d30;--text:#eef4ff;--muted:#9daac1;--line:#283750;--soft:#182b50}body.dark .header,body.dark .page-hero,body.dark .soft{background:var(--surface)}body.dark .hero{background:linear-gradient(135deg,#0b1220,#13294e)}body.dark .level-card,body.dark .feature-grid article,body.dark .filters input,body.dark .filters select{background:var(--surface);color:var(--text)}
@media(max-width:820px){.nav{height:70px}.menu-toggle{display:block;margin-left:auto}nav{display:none;position:absolute;top:70px;left:4%;right:4%;background:var(--surface);padding:10px;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);flex-direction:column}nav.open{display:flex}.hero{padding:65px 0}.hero-grid{grid-template-columns:1fr}.math-card,.equation-card{min-height:280px}.level-grid,.feature-grid,.resource-grid{grid-template-columns:1fr}.section-head{display:block}.callout{display:block}.callout .btn{margin-top:20px}.filters{flex-direction:column}.filters select{width:100%}.footer{grid-template-columns:1fr}}

.pdf-card {
  max-width: 650px;
  margin: 30px auto;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pdf-icon {
  font-size: 38px;
  background: #fff1f2;
  padding: 12px;
  border-radius: 12px;
}

.pdf-info {
  flex: 1;
  min-width: 160px;
}

.pdf-info h3 {
  margin: 0 0 8px;
  color: #1e293b;
}

.pdf-info p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1456f0;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

.pdf-button:hover {
  background: #0a2a6b;
}
/* ===== Thème bleu — page d'accueil (palette de la maquette) ===== */
:root{--navy:#0a2a6b;--blue:#1456f0;--blue-2:#2f7bff;--orange:#f58a2b;--gold:#f58a2b;--green:#1fb58a;--bg:#f6f9ff;--surface:#fff;--text:#0b1226;--muted:#5b6788;--line:#e3eaf8;--soft:#eaf1ff;--shadow:0 16px 42px rgba(20,60,160,.12);--font:"Plus Jakarta Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body{font-family:var(--font);background:var(--bg);color:var(--text)}

/* En-tête : carte blanche flottante */
.header{position:sticky;top:0;z-index:60;background:transparent;border:0;backdrop-filter:none;padding:12px 0 0}
.header .nav{position:relative;width:min(1240px,94%);height:74px;gap:20px;padding:0 22px;background:rgba(255,255,255,.96);border-radius:22px;box-shadow:0 10px 34px rgba(20,60,160,.15)}
.logo{display:flex;align-items:center;gap:10px;white-space:nowrap;line-height:1.02;font-weight:800;color:var(--navy)}
.logo-mark{display:grid;place-items:center;color:var(--blue)}
.logo-mark svg{display:block}
.logo-words{font-size:16px}.logo-words b{color:var(--blue);font-size:17px}
nav{gap:2px;margin-left:auto}
nav a{white-space:nowrap;position:relative;border-radius:10px;padding:10px 9px;color:#17224a;font-weight:600;font-size:15px}
nav a:hover{background:transparent;color:var(--blue)}
nav a.active{background:transparent;color:var(--blue);box-shadow:none}
nav a.active:after{content:"";position:absolute;left:12px;right:12px;bottom:2px;height:3px;border-radius:3px;background:var(--blue)}
nav a.btn{margin-left:8px;padding:10px 18px;font-size:14px;color:#fff}
nav a.btn:after{display:none}
.header-search{position:relative;flex:0 1 220px;min-width:150px}
.header-search input{width:100%;height:42px;border:0;border-radius:999px;background:#f0f3fa;padding:0 44px 0 18px;font:inherit;font-size:14px;color:var(--text)}
.header-search input:focus{outline:2px solid var(--blue-2);background:#fff}
.header-search button{position:absolute;right:6px;top:5px;width:32px;height:32px;border:0;background:transparent;color:#6b7699;cursor:pointer;display:grid;place-items:center}
.theme-btn{width:42px;height:42px;border-radius:50%;background:var(--blue);color:#fff;border:0;font-size:18px;box-shadow:0 6px 14px rgba(20,86,240,.3)}
.eyebrow{display:flex;align-items:center;gap:12px;color:var(--blue);font-size:12px;letter-spacing:.14em;font-weight:800;margin-bottom:12px}
.eyebrow-line{display:inline-block;width:34px;height:3px;border-radius:3px;background:var(--orange)}

/* Boutons */
.btn{border-radius:999px;padding:15px 26px;font-weight:700;transition:transform .2s,box-shadow .2s}.btn:hover{transform:translateY(-2px)}
.btn.primary{background:linear-gradient(135deg,#2f7bff,#1456f0);border-color:#1456f0;color:#fff;box-shadow:0 12px 26px rgba(20,86,240,.35)}
.btn.secondary{background:#fff;border-color:transparent;color:#14204a;box-shadow:0 8px 20px rgba(20,60,160,.12)}
.btn svg{width:20px;height:20px;margin-right:10px;flex:none}.btn.primary svg.arrow{margin:0 0 0 10px}

/* Bandeau des atouts */
.feature-strip{position:relative;z-index:5;margin-top:-62px}
.strip-card{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:22px;box-shadow:0 16px 44px rgba(20,60,160,.13);padding:22px 10px}
.strip-item{display:flex;align-items:center;gap:14px;padding:4px 22px;border-left:1px solid var(--line)}.strip-item:first-child{border-left:0}
.strip-ico{flex:none;width:54px;height:54px;border-radius:50%;background:#e6efff;color:var(--blue);display:grid;place-items:center}
.strip-ico svg{width:28px;height:28px}
.strip-item b{display:block;font-size:15px}.strip-item small{display:block;color:var(--muted);font-size:13px;line-height:1.35}

/* Titres de section centrés */
.section{padding:56px 0}
.section-title{text-align:center;margin-bottom:30px}
.section-title h2{font-size:clamp(28px,4vw,38px);margin:0 0 10px;letter-spacing:-.02em}
.section-title h2:after{content:"";display:block;width:56px;height:4px;border-radius:4px;background:var(--blue);margin:12px auto 0}
.section-title p{margin:0;color:var(--muted)}
.section-head h2,.callout h2{font-size:32px;letter-spacing:-.025em}

/* Niveaux */
.level-grid{gap:20px}
.level-card{position:relative;display:flex;align-items:center;gap:18px;padding:26px 28px;border:0;border-radius:22px;overflow:hidden;box-shadow:0 10px 28px rgba(20,60,160,.08);transition:transform .25s,box-shadow .25s}
.level-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(20,60,160,.16)}
.level-card.c1{background:linear-gradient(120deg,#cdf1e3,#e8f8f1)}
.level-card.c2{background:linear-gradient(120deg,#cfe0ff,#e8f0ff)}
.level-card.c3{background:linear-gradient(120deg,#ffdcc4,#fff0e5)}
.lv-ico{flex:none;width:76px;height:76px}.lv-ico svg{width:100%;height:100%}
.lv-text{flex:1;min-width:0}
.level-card h3{margin:0;font-size:32px;line-height:1.1;letter-spacing:-.02em}
.level-card.c1 h3{color:#0b7a58}.level-card.c2 h3{color:var(--blue)}.level-card.c3 h3{color:#d9650f}
.level-card p{margin:2px 0 10px;color:#2b3858}
.lv-links{display:flex;gap:8px;flex-wrap:wrap}
.lv-links a{font-size:12px;font-weight:700;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.75);color:#17224a}
.lv-links a:hover{background:#fff;color:var(--blue)}
.lv-arrow{flex:none;width:52px;height:52px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:22px;color:#17224a;box-shadow:0 6px 16px rgba(20,60,160,.12);transition:transform .25s,background .25s,color .25s}
.level-card:hover .lv-arrow{transform:translateX(5px);background:var(--blue);color:#fff}

/* Domaines & ressources */
.domains-section{margin:0 2.5%;padding:36px 0 40px;border-radius:28px;background:linear-gradient(120deg,#eaf1ff,#f7faff)}
.domains-section .container{width:92%}
.domain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.domain-card{display:flex;align-items:center;gap:13px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:18px;min-width:0;transition:.2s}
.domain-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#b7cdfa}
.domain-icon{flex:0 0 48px;height:48px;display:grid;place-items:center;border-radius:13px;background:#e3edff;color:var(--blue);font-size:22px;font-weight:800}
.domain-card span:nth-child(2){min-width:0}.domain-card b{display:block;font-size:14px}.domain-card small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted)}
.domain-card i{font-style:normal;margin-left:auto;color:var(--blue);font-size:20px}
.resources-title{margin-top:38px}.resources-title h2{margin:0;font-size:28px}
.feature-grid article{border-color:var(--line);border-radius:20px}
.feature-grid .icon{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:#e9f1ff;font-size:22px;margin-bottom:14px}
.feature-grid article:nth-child(2) .icon{background:#ffe9d6}.feature-grid article:nth-child(3) .icon{background:#d9f4e9}

/* Appel à l'action */
.callout{background:linear-gradient(120deg,#1456f0,#2f7bff 60%,#5b9bff);border:0;color:#fff;box-shadow:0 20px 44px rgba(20,86,240,.28)}
.callout p{color:#dbe7ff}.callout .eyebrow{color:#ffd9b3}.callout .eyebrow-line{background:#ffd9b3}
.callout .btn.primary{background:#fff;color:var(--blue);border-color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.18)}

/* Pied de page */
footer{background:#0a1d4d}footer .logo{color:#fff}footer .logo-mark{color:#fff}footer .logo-words b{color:#9fc0ff}footer a:hover{color:#fff}

/* Apparition au défilement */
html.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:var(--rd,0s)}
html.js .reveal.in{opacity:1;transform:none}

@media(max-width:1330px){.header-search{display:none}}
@media(max-width:900px){.domain-grid{grid-template-columns:repeat(2,1fr)}.strip-card{grid-template-columns:repeat(2,1fr);row-gap:18px}.strip-item:nth-child(3){border-left:0}}
@media(max-width:820px){
  .header .nav{height:66px;padding:0 16px}
  nav{top:78px;left:0;right:0}nav a{padding:12px}nav a.active:after{left:12px;right:auto;width:28px}nav a.btn{margin:6px 0 0}
  .level-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .domain-grid{grid-template-columns:1fr}.strip-card{grid-template-columns:1fr}.strip-item{border-left:0;padding:8px 18px}
  .level-card{padding:22px 20px}.level-card h3{font-size:28px}.section{padding:40px 0}
  .logo-words{font-size:14px}.logo-words b{font-size:15px}
}

/* ===== Cours : كروت وحدة تحت وحدة بلون أخضر ===== */
.niveau-block{
  width:min(1140px,92%);
  margin:34px auto 10px;
}
.niveau-block h2{
  font-size:26px;
  color:#0a2a6b;
  margin:0 0 18px;
}

.niveau-block .resource-grid{
  grid-template-columns:1fr;   /* وحدة تحت وحدة */
  gap:12px;
}

.niveau-block .resource-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px;
  background:linear-gradient(120deg,#eef4ff,#ffffff 80%);
  border:1px solid #d6e3ff;
  border-left:6px solid #1456f0;
  border-radius:14px;
}
.niveau-block .resource-card:hover{
  background:#e6efff;
  border-color:#a8c3ff;
  border-left-color:#0a2a6b;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(20,86,240,.14);
}
.niveau-block .resource-card h3{
  margin:0;
  font-size:18px;
  color:#0b1226;
}
.niveau-block .resource-card a{
  flex-shrink:0;
  padding:9px 16px;
  border-radius:999px;
  background:#1456f0;
  color:#fff;
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  transition:background .2s;
}
.niveau-block .resource-card a:hover{
  background:#0a2a6b;
}

/* موبايل */
@media(max-width:600px){
  .niveau-block .resource-card{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* الوضع الداكن */
body.dark .niveau-block h2,
body.dark .niveau-block .resource-card h3{color:#eef4ff}
body.dark .niveau-block .resource-card{
  background:var(--surface);
  border-color:var(--line);
  border-left-color:#4d86ff;
}
body.dark .niveau-block .resource-card:hover{background:#182b50}



/* ===== Exercices : نفس ستيل الدروس ===== */
.niveau-section{
  width:min(1140px,92%);
  margin:34px auto 10px;
}
.niveau-section > h2{
  font-size:26px;
  color:#0a2a6b;
  margin:0 0 18px;
}

.niveau-section .resource-grid{
  grid-template-columns:1fr;
  gap:12px;
}

.niveau-section .resource-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px;
  background:linear-gradient(120deg,#eef4ff,#ffffff 80%);
  border:1px solid #d6e3ff;
  border-left:6px solid #1456f0;
  border-radius:14px;
}
.niveau-section .resource-card:hover{
  background:#e6efff;
  border-color:#a8c3ff;
  border-left-color:#0a2a6b;
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(20,86,240,.14);
}
.niveau-section .resource-card h3{
  margin:0;
  font-size:18px;
  color:#0b1226;
}
.niveau-section .resource-card a{
  flex-shrink:0;
  padding:9px 16px;
  border-radius:999px;
  background:#1456f0;
  color:#fff;
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  transition:background .2s;
}
.niveau-section .resource-card a:hover{background:#0a2a6b}

@media(max-width:600px){
  .niveau-section .resource-card{flex-direction:column;align-items:flex-start}
}

body.dark .niveau-section > h2,
body.dark .niveau-section .resource-card h3{color:#eef4ff}
body.dark .niveau-section .resource-card{
  background:var(--surface);
  border-color:var(--line);
  border-left-color:#4d86ff;
}
body.dark .niveau-section .resource-card:hover{background:#182b50}
/* ===== Animations : Pythagore & Taylor ===== */
.anim-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.anim-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:var(--shadow)}
.anim-card h3{margin:0 0 4px;font-size:22px;color:var(--navy)}
.dark .anim-card h3{color:var(--text)}
.anim-card p{margin:0 0 12px;color:var(--muted);font-size:14px}
.anim-card canvas{width:100%;height:auto;aspect-ratio:4/3;display:block;border-radius:16px;background:var(--soft)}
.anim-controls{display:flex;align-items:center;gap:12px;margin-top:14px;flex-wrap:wrap}
.anim-controls label{font-size:13px;font-weight:700;color:var(--muted);display:flex;align-items:center;gap:8px}
.anim-controls input[type=range]{accent-color:var(--blue);width:120px}
.anim-btn{border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:8px 14px;font-weight:800;cursor:pointer}
.anim-btn:hover{background:var(--soft)}
.anim-result{margin-top:12px;font-weight:800;color:var(--navy);font-size:17px;min-height:26px}
.dark .anim-result{color:var(--text)}
@media(max-width:820px){.anim-grid{grid-template-columns:1fr}}

/* ===== Mode sombre (nouvelle palette) ===== */
body.dark{--bg:#0b1220;--surface:#131d30;--text:#eef4ff;--muted:#9daac1;--line:#283750;--soft:#182b50;--shadow:0 16px 42px rgba(0,0,0,.4)}
body.dark .header .nav{background:rgba(19,29,48,.96)}
body.dark nav a{color:#d7e2ff}body.dark nav a:hover,body.dark nav a.active{color:#7fa8ff}
body.dark nav a.btn{color:#fff}
body.dark .logo-words{color:#fff}body.dark .logo-words b{color:#7fa8ff}body.dark .logo-mark{color:#7fa8ff}
body.dark .header-search input{background:#1d2a44;color:var(--text)}
body.dark .btn.secondary{background:#1d2a44;color:#fff}
body.dark .strip-card,body.dark .domain-card,body.dark .feature-grid article{background:var(--surface);border-color:var(--line)}
body.dark .strip-ico,body.dark .domain-icon{background:#1b2f58;color:#8db4ff}
body.dark .level-card.c1{background:linear-gradient(120deg,#12382f,#173a33)}
body.dark .level-card.c2{background:linear-gradient(120deg,#152a57,#1a3166)}
body.dark .level-card.c3{background:linear-gradient(120deg,#4a2a14,#3b2615)}
body.dark .level-card p{color:#c9d3ea}
body.dark .lv-links a,body.dark .lv-arrow{background:#1d2a44;color:#fff}
body.dark .domains-section{background:linear-gradient(120deg,#0f1a2f,#111c33)}
body.dark .section-head h2,body.dark .resources-title h2,body.dark .section-title h2{color:#fff}
body.dark .anim-card{background:var(--surface)}
