*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --navy:#132573;--navy-dark:#0b1a50;--navy-light:#1e3a9e;
  --coral:#FF8D8D;--slate:#2A3D53;--light:#f0f4f9;
  --white:#ffffff;--text:#2E3031;--muted:#6b7280;
  --border:rgba(19,37,115,0.06);--radius:16px;
  --shadow:0 4px 24px rgba(19,37,115,0.10);

  /* ── EFFETS 3D PREMIUM ── */
  --shadow-3d:
    0px 1px 2px rgba(19,37,115,0.05),
    0px 4px 12px rgba(19,37,115,0.08),
    0px 16px 32px rgba(19,37,115,0.08),
    inset 0px 1px 0px rgba(255,255,255,0.6);
  --shadow-btn-3d:
    0 4px 6px -1px rgba(19,37,115,0.12),
    0 10px 20px -5px rgba(19,37,115,0.18),
    inset 0 1px 0 rgba(255,255,255,0.3);
  --shadow-btn-pressed:
    inset 0 4px 8px rgba(0,0,0,0.15),
    0 1px 2px rgba(0,0,0,0.05);

  --purple:#7c3aed;--purple-light:#a78bfa;--purple-bg:rgba(124,58,237,0.08);
  --green:#16a34a;--amber:#b45309;
}
html{scroll-behavior:smooth}

/* ══ LOGIN PAGE ══ */
#auth-gate{
  position:fixed;inset:0;z-index:99999;
  background:linear-gradient(135deg,#0f1e6b 0%,#1e3a9e 50%,#2A3D53 100%);
  display:flex;align-items:center;justify-content:center;padding:1rem;
}
#auth-gate.hidden{display:none}
.auth-card{
  background:rgba(255,255,255,0.80) !important;
  backdrop-filter:blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  border:1px solid rgba(255,255,255,0.45) !important;
  border-radius:28px;padding:2.5rem 2.2rem;
  width:100%;max-width:420px;
  box-shadow:
    0 32px 64px rgba(0,0,0,0.28),
    0 8px 20px rgba(0,0,0,0.12),
    inset 0 1px 1px rgba(255,255,255,0.7) !important;
  transform:perspective(1000px) rotateX(1.5deg);
  animation:loginIn .4s cubic-bezier(.22,1,.36,1);
  transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.auth-card:hover{
  transform:perspective(1000px) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.32),
    0 8px 24px rgba(0,0,0,0.14),
    inset 0 1px 1px rgba(255,255,255,0.8) !important;
}
@keyframes loginIn{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
.auth-logo{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:0.5rem;font-size:1.75rem;font-weight:800;color:var(--navy);font-family:'Sora',sans-serif;}
.auth-logo i{color:var(--coral)}.auth-logo span{color:var(--coral)}
.auth-subtitle{text-align:center;color:var(--muted);font-size:0.85rem;margin-bottom:1.5rem;}
.auth-tabs{display:flex;background:var(--light);border-radius:10px;padding:4px;margin-bottom:1.5rem;gap:4px;}
.auth-tab{flex:1;padding:0.55rem 1rem;border:none;border-radius:8px;font-family:'Sora',sans-serif;font-size:0.88rem;font-weight:600;cursor:pointer;transition:all .2s;background:transparent;color:var(--muted);}
.auth-tab.active{background:#fff;color:var(--navy);box-shadow:0 1px 4px rgba(0,0,0,0.1);}
.auth-form{display:flex;flex-direction:column;gap:0.9rem;}
.auth-label{font-size:0.8rem;font-weight:600;color:var(--text);margin-bottom:4px;display:block;}
.auth-input{border:1.5px solid var(--border);border-radius:10px;padding:0.65rem 0.9rem;font-size:0.9rem;font-family:'Sora',sans-serif;outline:none;transition:border-color .2s;width:100%;box-sizing:border-box;}
.auth-input:focus{border-color:var(--navy);}
.auth-btn{width:100%;background:var(--navy);color:#fff;border:none;border-radius:10px;padding:0.75rem;font-size:0.95rem;font-weight:700;font-family:'Sora',sans-serif;cursor:pointer;transition:transform .15s,box-shadow .15s,opacity .2s;margin-top:0.25rem;
  box-shadow:0 6px 16px rgba(19,37,115,0.35),inset 0 1px 0 rgba(255,255,255,0.15);
  position:relative;
}
.auth-btn:hover{opacity:.93;transform:translateY(-2px);box-shadow:0 10px 24px rgba(19,37,115,0.42),inset 0 1px 0 rgba(255,255,255,0.2);}
.auth-btn:active{transform:translateY(2px);box-shadow:inset 0 4px 8px rgba(0,0,0,0.2),0 1px 2px rgba(0,0,0,0.08);}
.auth-btn.secondary{background:var(--light);color:var(--navy);border:1.5px solid var(--border);margin-top:0;}
.auth-btn.secondary:hover{background:#e8ecf8;}
.auth-error{background:rgba(220,38,38,.09);border:1px solid rgba(220,38,38,.2);border-radius:8px;padding:.6rem .9rem;font-size:.82rem;color:#b91c1c;display:none;}
.auth-error.show{display:block;}
.auth-success{background:rgba(22,163,74,.09);border:1px solid rgba(22,163,74,.2);border-radius:8px;padding:.6rem .9rem;font-size:.82rem;color:#15803d;display:none;}
.auth-success.show{display:block;}
/* ═══ "BIENTÔT DISPONIBLE" (upcoming) states ═══ */
.soon-badge{display:inline-flex;align-items:center;gap:4px;background:rgba(245,158,11,.16);color:#b45309;border:1px solid rgba(245,158,11,.32);font-size:0.6rem;font-weight:800;letter-spacing:.04em;padding:2px 7px;border-radius:50px;text-transform:uppercase;white-space:nowrap;line-height:1.25;vertical-align:middle;}
.is-soon{opacity:.6;}
.is-soon:hover{transform:none !important;box-shadow:none !important;opacity:.72;}
/* ═══ COMPTE DROPDOWN ═══ */
.compte-dropdown{position:relative}
.compte-btn{display:inline-flex;align-items:center;gap:6px}
.compte-menu{position:fixed;right:1.5%;top:72px;background:#fff;border:1.5px solid var(--border);border-radius:18px;box-shadow:0 16px 48px rgba(19,37,115,0.16),0 2px 8px rgba(19,37,115,0.08);min-width:260px;z-index:99999;padding:0.5rem 0.5rem 0.6rem;animation:loginIn .25s ease}
.compte-info{display:flex;align-items:center;gap:12px;padding:0.75rem 0.8rem 0.7rem;background:linear-gradient(135deg,rgba(19,37,115,0.04),rgba(124,58,237,0.04));border-radius:12px;margin-bottom:0.2rem}
.compte-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--navy-light),var(--navy));color:#fff;font-weight:800;font-size:1.1rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 12px rgba(19,37,115,0.25)}
.compte-name{font-weight:800;color:var(--navy);font-size:0.94rem;line-height:1.2}
.compte-email{color:var(--muted);font-size:0.75rem;margin-top:3px;word-break:break-all}
.compte-sep{border:none;border-top:1px solid var(--border);margin:0.4rem 0.3rem}
.compte-item{display:flex;align-items:center;gap:9px;width:100%;background:none;border:none;border-radius:9px;padding:0.55rem 0.8rem;font-size:0.86rem;font-weight:600;color:var(--text);font-family:'Sora',sans-serif;cursor:pointer;transition:background .15s,color .15s,transform .1s;text-align:left}
.compte-item:hover{background:var(--light);color:var(--navy);transform:translateX(2px)}
.compte-item i{opacity:0.7}
.compte-item:hover i{opacity:1}
.compte-item.compte-danger{color:#b91c1c;margin-top:1px}
.compte-item.compte-danger:hover{background:#fef2f2;color:#991b1b;transform:translateX(2px)}
/* Mobile compte info */
.mob-compte-info{display:flex;align-items:center;gap:10px;padding:0.7rem 1.2rem;background:var(--light);border-radius:10px;margin:0.3rem 0}
.mob-compte-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--navy-light),var(--navy));color:#fff;font-weight:700;font-size:0.9rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mob-compte-name{font-weight:700;color:var(--navy);font-size:0.88rem}
.mob-compte-email{color:var(--muted);font-size:0.74rem;word-break:break-all}
/* Confirm modal */
.delete-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:2000;display:flex;align-items:center;justify-content:center}
.delete-modal{background:#fff;border-radius:16px;padding:2rem 1.75rem;max-width:360px;width:90%;box-shadow:0 12px 48px rgba(0,0,0,0.18);animation:loginIn .3s ease}
.delete-modal h3{font-size:1.15rem;font-weight:800;color:var(--navy);margin-bottom:0.5rem}
.delete-modal p{color:var(--muted);font-size:0.88rem;line-height:1.55;margin-bottom:1.25rem}
.delete-modal-btns{display:flex;gap:0.7rem}
.delete-modal-btns button{flex:1;padding:0.65rem;border-radius:10px;border:none;font-family:'Sora',sans-serif;font-weight:700;font-size:0.9rem;cursor:pointer;transition:opacity .2s}
.delete-modal-btns .del-cancel{background:var(--light);color:var(--navy);border:1.5px solid var(--border)}
.delete-modal-btns .del-confirm{background:#dc2626;color:#fff}
.delete-modal-btns button:hover{opacity:.88}
.plan-badges{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:1.25rem;}
.plan-badge{font-size:0.75rem;font-weight:600;padding:5px 14px;border-radius:50px;display:inline-flex;align-items:center;gap:6px;}
.plan-badge.free{background:rgba(22,163,74,.12);color:#15803d;border:1px solid rgba(22,163,74,.25);}
.plan-badge.premium{background:rgba(245,158,11,.12);color:#b45309;border:1px solid rgba(245,158,11,.25);}

body{font-family:'Sora',sans-serif;color:var(--text);background:var(--white);line-height:1.6;overflow-x:hidden}
mjx-container{color:inherit}
.adv-msg-bubble mjx-container{color:rgba(255,255,255,0.88)}

/* Lucide icon sizing */
.icon-sm { width:16px;height:16px;display:inline-block;vertical-align:middle;flex-shrink:0; }
.icon-md { width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0; }
.icon-lg { width:28px;height:28px;display:inline-block;vertical-align:middle;flex-shrink:0; }
.icon-xl { width:36px;height:36px;display:inline-block;vertical-align:middle;flex-shrink:0; }
.icon-2xl { width:48px;height:48px;display:inline-block;vertical-align:middle;flex-shrink:0; }
i[data-lucide] { display:inline-flex;align-items:center;justify-content:center; }

nav.main-nav{position:sticky;top:12px;z-index:200;
  background:rgba(255,255,255,0.88) !important;
  backdrop-filter:blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:none;
  border:1px solid rgba(255,255,255,0.55) !important;
  border-radius:20px !important;
  margin:10px 16px 0;
  padding:0 2%;
  display:flex;align-items:center;justify-content:space-between;height:62px;
  box-shadow:
    0 8px 24px rgba(13,25,83,0.12),
    0 2px 6px rgba(13,25,83,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
  transition:box-shadow 0.3s ease, transform 0.3s ease;
}
nav.main-nav:hover{
  box-shadow:
    0 16px 40px rgba(13,25,83,0.16),
    0 4px 10px rgba(13,25,83,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9) !important;
}
.nav-logo{font-size:1.5rem;font-weight:800;color:var(--navy);text-decoration:none;letter-spacing:-0.5px;cursor:pointer;background:none;border:none;font-family:'Sora',sans-serif;display:flex;align-items:center;gap:8px}
.nav-logo img.logo-img{width:36px;height:36px;object-fit:contain;border-radius:6px}
.nav-logo span{color:var(--coral)}
.nav-links{display:flex;align-items:center;gap:1.2rem}
.nav-links a,.nav-links button{text-decoration:none;color:var(--text);font-size:0.88rem;font-weight:500;transition:color .2s;background:none;border:none;cursor:pointer;font-family:'Sora',sans-serif;display:inline-flex;align-items:center;gap:5px}
.nav-links a:hover,.nav-links button:hover{color:var(--navy)}
/* Force talaba button styles even inside nav-links */
.nav-links .nav-talaba-btn,
.nav-links .nav-talaba-btn:hover{background:linear-gradient(135deg,#f59e0b,#ef4444)!important;color:#fff!important;border-radius:8px;padding:0.42rem 1rem;font-size:0.82rem;font-weight:700;border:none;box-shadow:0 3px 12px rgba(239,68,68,0.4);display:inline-flex;align-items:center;gap:6px;flex-shrink:0}
.nav-links .nav-talaba-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(239,68,68,0.55);opacity:.93}
.nav-talaba-btn{display:inline-flex;align-items:center;gap:6px;background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff!important;border-radius:8px;padding:0.38rem 0.95rem;font-size:0.8rem;font-weight:700;border:none;cursor:pointer;font-family:'Sora',sans-serif;transition:transform .15s,box-shadow .15s,opacity .15s;box-shadow:0 3px 12px rgba(239,68,68,0.4)}
.nav-talaba-btn:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(239,68,68,0.55);opacity:.93}

.btn{display:inline-block;padding:0.5rem 1.3rem;border-radius:8px;font-size:0.85rem;font-weight:600;text-decoration:none;cursor:pointer;transition:transform .2s cubic-bezier(0.2,0.8,0.2,1),box-shadow .2s ease;border:none;font-family:'Sora',sans-serif;
  box-shadow:var(--shadow-btn-3d);
  position:relative;
}
.btn:hover{transform:translateY(-3px) scale(1.02);box-shadow:0 12px 28px rgba(19,37,115,0.22),inset 0 1px 0 rgba(255,255,255,0.3)}
.btn:active{transform:translateY(2px);box-shadow:var(--shadow-btn-pressed) !important}
.btn-primary{background:var(--navy);color:#fff}
.btn-outline{background:transparent;color:var(--navy);border:1.5px solid var(--navy)}
.btn-coral{background:var(--coral);color:#fff}
.btn-purple{background:var(--purple);color:#fff}

.page{display:none}
.page.active{display:block}

.hero{min-height:92vh;background:linear-gradient(135deg,#0f1e6b 0%,#1e3a9e 50%,#2A3D53 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5rem 5%;position:relative;overflow:hidden}
.hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 80% 60% at 50% 30%,rgba(255,141,141,0.12) 0%,transparent 70%)}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.12);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.2);border-radius:50px;padding:0.4rem 1rem;color:rgba(255,255,255,0.9);font-size:0.8rem;font-weight:500;letter-spacing:0.04em;text-transform:uppercase;margin-bottom:1.5rem}
.hero h1{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:800;color:#fff;line-height:1.1;letter-spacing:-1px;max-width:850px;margin-bottom:1.25rem}
.hero h1 em{color:var(--coral);font-style:normal}
.hero p{font-size:1.1rem;color:rgba(255,255,255,0.75);max-width:580px;margin-bottom:2.5rem}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center}
.hero-btn-coral{background:var(--coral);color:#fff;border:none;border-radius:8px;padding:0.7rem 1.6rem;font-size:0.95rem;font-weight:700;cursor:pointer;font-family:'Sora',sans-serif;transition:transform .15s,box-shadow .15s,opacity .15s;box-shadow:0 4px 18px rgba(255,141,141,0.35);display:inline-flex;align-items:center;gap:8px}
.hero-btn-coral:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(255,141,141,0.5);opacity:0.95}
.hero-btn-ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,0.4);border-radius:8px;padding:0.7rem 1.6rem;font-size:0.95rem;font-weight:600;cursor:pointer;font-family:'Sora',sans-serif;transition:background .2s,border-color .2s,transform .15s;display:inline-flex;align-items:center;gap:8px}
.hero-btn-ghost:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.7);transform:translateY(-2px)}
.hero-stats{display:flex;gap:2.5rem;margin-top:4rem;flex-wrap:wrap;justify-content:center}
.hero-stat .num{font-size:2rem;font-weight:800;color:#fff;line-height:1}
.hero-stat .label{font-size:0.78rem;color:rgba(255,255,255,0.6);margin-top:4px}

section{padding:5rem 5%}
.section-inner{max-width:1200px;margin:0 auto}
.section-label{font-size:0.75rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--navy);margin-bottom:0.75rem}
h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;color:var(--slate);line-height:1.2;letter-spacing:-0.5px;margin-bottom:1rem}
h2 em{color:var(--navy);font-style:normal}
.section-desc{color:var(--muted);font-size:1rem;max-width:560px;margin-bottom:3rem}

#ecoles{background:var(--light)}
.schools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1.25rem}
.school-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem 1.25rem;text-align:center;color:var(--text);transition:transform .2s,box-shadow .2s,border-color .2s;display:flex;flex-direction:column;align-items:center;gap:0.85rem;cursor:pointer}
.school-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:rgba(19,37,115,0.25)}
.school-logo-wrap{width:72px;height:72px;border-radius:12px;background:var(--light);display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}
.school-logo-wrap img{width:100%;height:100%;object-fit:contain;padding:6px}
.school-icon-wrap{width:72px;height:72px;border-radius:12px;background:var(--light);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.school-name{font-size:0.95rem;font-weight:700;color:var(--navy)}
.school-tag{font-size:0.72rem;color:var(--muted);background:var(--light);border-radius:50px;padding:3px 10px}

.features-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.5rem}
.feature-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:1.75rem 1.5rem}
.feature-icon{width:44px;height:44px;background:rgba(19,37,115,0.08);border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:1rem;color:var(--navy)}
.feature-card h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:0.5rem}
.feature-card p{font-size:0.88rem;color:var(--muted)}

.arabic-banner{background:var(--navy);color:#fff;text-align:center;padding:4rem 5%;direction:rtl}
.arabic-banner h2{font-family:'Noto Kufi Arabic',sans-serif;color:#fff;font-size:clamp(1.5rem,4vw,2.5rem);margin-bottom:1.5rem}
.arabic-banner p{font-family:'Noto Kufi Arabic',sans-serif;color:rgba(255,255,255,0.75);font-size:1rem;max-width:560px;margin:0 auto 2rem}
.btn-arabic{background:var(--coral);color:#fff;border-radius:8px;padding:0.6rem 1.6rem;font-family:'Noto Kufi Arabic',sans-serif;font-size:0.9rem;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:transform .15s}
.btn-arabic:hover{transform:translateY(-1px)}

.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.75rem}
.article-card{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;color:var(--text);transition:transform .2s,box-shadow .2s;background:#fff;display:flex;flex-direction:column}
.article-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.article-card-header{padding:1.5rem 1.5rem 1rem;background:linear-gradient(135deg,#0f1e6b,#1e3a9e);position:relative;min-height:110px;display:flex;flex-direction:column;justify-content:flex-end}
.article-school-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.25);border-radius:50px;padding:3px 10px;font-size:0.7rem;font-weight:600;color:#fff;text-transform:uppercase;letter-spacing:0.06em;margin-bottom:0.6rem;width:fit-content}
.article-card-header h3{font-size:1.05rem;font-weight:700;color:#fff;line-height:1.35}
.article-card-body{padding:1.2rem 1.5rem;flex:1;display:flex;flex-direction:column;gap:0.85rem}
.article-meta-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.article-pill{display:inline-flex;align-items:center;gap:5px;background:var(--light);border:1px solid var(--border);border-radius:50px;padding:3px 10px;font-size:0.72rem;font-weight:600;color:var(--navy)}
.article-pill.green{background:rgba(22,163,74,0.1);border-color:rgba(22,163,74,0.2);color:#166534}
.article-pill.amber{background:rgba(245,158,11,0.1);border-color:rgba(245,158,11,0.2);color:#b45309}
.article-pill.red{background:rgba(220,38,38,0.1);border-color:rgba(220,38,38,0.2);color:#991b1b}
.article-desc{font-size:0.84rem;color:var(--muted);line-height:1.55}
.article-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.article-info-item{background:var(--light);border-radius:8px;padding:0.6rem 0.8rem}
.article-info-item .label{font-size:0.68rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:0.06em}
.article-info-item .value{font-size:0.82rem;font-weight:700;color:var(--navy);margin-top:2px}
.article-card-footer{padding:0.9rem 1.5rem;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.article-source{font-size:0.72rem;color:var(--muted);display:flex;align-items:center;gap:5px}
.article-cta{font-size:0.78rem;font-weight:600;color:var(--navy);text-decoration:none;display:flex;align-items:center;gap:4px;transition:gap .15s}
.article-cta:hover{gap:8px}
.article-links-row{display:flex;gap:6px;flex-wrap:wrap;padding:0 1.5rem 0.85rem}
.art-link-btn{display:inline-flex;align-items:center;gap:5px;background:var(--light);border:1.5px solid var(--border);border-radius:6px;padding:4px 10px;font-size:0.7rem;font-weight:600;color:var(--navy);text-decoration:none;transition:background .15s,border-color .15s;cursor:pointer}
.art-link-btn:hover{background:rgba(19,37,115,0.08);border-color:rgba(19,37,115,0.3)}
.art-link-btn.yt{background:rgba(255,0,0,0.06);border-color:rgba(255,0,0,0.18);color:#c00}
.art-link-btn.yt:hover{background:rgba(255,0,0,0.12)}

#videos{background:var(--slate)}
.videos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:1.75rem}
.video-wrap{border-radius:var(--radius);overflow:hidden;border:1px solid rgba(255,255,255,0.1)}
.video-label{padding:0.75rem 1rem;background:rgba(255,255,255,0.06);font-size:0.82rem;font-weight:600;color:rgba(255,255,255,0.8);display:flex;align-items:center;gap:10px}
.video-play-dot{width:22px;height:22px;border-radius:50%;background:var(--coral);color:#fff;display:flex;align-items:center;justify-content:center;font-size:0.55rem;flex-shrink:0}
.video-wrap iframe{width:100%;aspect-ratio:16/9;display:block;border:none}

.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
.contact-info h3{font-size:1.1rem;font-weight:700;color:var(--navy);margin-bottom:1rem}
.contact-info p{color:var(--muted);font-size:0.9rem;margin-bottom:0.5rem;display:flex;align-items:center;gap:8px}
.contact-info a{color:var(--navy)}
.contact-form{display:flex;flex-direction:column;gap:1rem}
.form-group{display:flex;flex-direction:column;gap:5px}
label{font-size:0.82rem;font-weight:600;color:var(--text)}
input,textarea{padding:0.6rem 0.9rem;font-size:0.9rem;border:1px solid var(--border);border-radius:8px;font-family:'Sora',sans-serif;color:var(--text);background:#fff;width:100%;transition:border-color .2s;outline:none}
input:focus,textarea:focus{border-color:var(--navy)}
textarea{resize:vertical;min-height:120px}

footer{background:var(--navy-dark);color:rgba(255,255,255,0.7);padding:3rem 5%}
.footer-inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:2.5rem;padding-bottom:2.5rem;border-bottom:1px solid rgba(255,255,255,0.1)}
.footer-brand p{font-size:0.85rem;margin-top:0.75rem;max-width:340px}
.footer-logo{font-size:1.4rem;font-weight:800;color:#fff;text-decoration:none;background:none;border:none;cursor:pointer;font-family:'Sora',sans-serif;display:flex;align-items:center;gap:8px}
.footer-logo img{width:30px;height:30px;object-fit:contain;border-radius:4px}
.footer-logo span{color:var(--coral)}
.footer-col h4{font-size:0.82rem;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:0.1em;margin-bottom:1rem}
.footer-col a,.footer-col button{display:flex;align-items:center;gap:6px;color:rgba(255,255,255,0.6);text-decoration:none;font-size:0.85rem;margin-bottom:0.5rem;transition:color .2s;background:none;border:none;cursor:pointer;font-family:'Sora',sans-serif;text-align:left}
.footer-col a:hover,.footer-col button:hover{color:#fff}
.footer-socials{display:flex;gap:10px;margin-top:1rem;flex-wrap:wrap}
.social-icon{width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,0.08);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,0.7);text-decoration:none;font-size:0.85rem;transition:background .2s,color .2s}
.social-icon:hover{background:var(--coral);color:#fff}
.footer-bottom{max-width:1200px;margin:1.5rem auto 0;font-size:0.8rem;color:rgba(255,255,255,0.4);text-align:center}

#leaderboard-page{background:var(--light);min-height:100vh}
.lb-hero{background:linear-gradient(135deg,#0f1e6b,#1e3a9e);padding:3rem 5%;text-align:center}
.lb-hero h1{color:#fff;font-size:2.2rem;font-weight:800;margin-bottom:0.5rem}
.lb-hero p{color:rgba(255,255,255,0.7);font-size:0.95rem}
.lb-podium{display:flex;align-items:flex-end;justify-content:center;gap:1rem;margin:2.5rem auto 1rem;max-width:600px}
.lb-podium-item{flex:1;text-align:center;display:flex;flex-direction:column;align-items:center}
.lb-avatar{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:800;color:#fff;margin:0 auto 8px;border:3px solid transparent}
.lb-podium-item.rank-1 .lb-avatar{background:linear-gradient(135deg,#FFD700,#FFA500);border-color:#FFD700;width:80px;height:80px;font-size:1.6rem}
.lb-podium-item.rank-2 .lb-avatar{background:linear-gradient(135deg,#C0C0C0,#888);border-color:#C0C0C0}
.lb-podium-item.rank-3 .lb-avatar{background:linear-gradient(135deg,#CD7F32,#8B4513);border-color:#CD7F32}
.lb-stand{border-radius:8px 8px 0 0;width:100%;display:flex;align-items:center;justify-content:center;font-size:1.4rem;font-weight:800;color:#fff;padding:1rem 0.5rem}
.rank-1 .lb-stand{background:linear-gradient(180deg,#FFD700,#FFA500);min-height:90px}
.rank-2 .lb-stand{background:linear-gradient(180deg,#C0C0C0,#888);min-height:70px}
.rank-3 .lb-stand{background:linear-gradient(180deg,#CD7F32,#8B4513);min-height:55px}
.lb-name{font-size:0.82rem;font-weight:700;color:rgba(255,255,255,0.9);margin-bottom:4px}
.lb-score-badge{font-size:0.72rem;color:rgba(255,255,255,0.6);background:rgba(255,255,255,0.1);border-radius:50px;padding:2px 8px}
.lb-table-wrap{max-width:900px;margin:0 auto;padding:0 5% 4rem}
.lb-table{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.lb-table thead tr{background:var(--navy);color:#fff}
.lb-table thead th{padding:1rem 1.2rem;text-align:left;font-size:0.82rem;font-weight:600;letter-spacing:0.06em;text-transform:uppercase}
.lb-table tbody tr{border-bottom:1px solid var(--border);transition:background .15s}
.lb-table tbody tr:hover{background:rgba(19,37,115,0.04)}
.lb-table tbody td{padding:0.9rem 1.2rem;font-size:0.88rem}
.lb-rank-cell{font-weight:800;color:var(--navy);font-size:1rem}
.lb-user-cell{display:flex;align-items:center;gap:10px}
.lb-mini-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--navy-light),var(--navy));color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:0.8rem;flex-shrink:0}
.lb-bar-wrap{flex:1;background:var(--light);border-radius:50px;height:8px;overflow:hidden}
.lb-bar{height:100%;background:linear-gradient(90deg,var(--navy),var(--navy-light));border-radius:50px}
.lb-badge{font-size:0.68rem;font-weight:700;padding:2px 8px;border-radius:50px}
.badge-gold{background:rgba(255,215,0,0.15);color:#b8860b}
.badge-silver{background:rgba(192,192,192,0.2);color:#666}
.badge-bronze{background:rgba(205,127,50,0.15);color:#8b4513}
.badge-normal{background:rgba(19,37,115,0.08);color:var(--navy)}

.overlay{display:none;position:fixed;inset:0;z-index:500;background:rgba(10,18,60,0.55);backdrop-filter:blur(4px);align-items:center;justify-content:center}
.overlay.open{display:flex}
.modal-box{background:#fff;border-radius:20px;padding:2.5rem;max-width:520px;width:90%;text-align:center;animation:modalIn .3s ease;position:relative;max-height:90vh;overflow-y:auto}
@keyframes modalIn{from{transform:scale(0.9);opacity:0}to{transform:scale(1);opacity:1}}
.modal-close{position:absolute;top:1rem;right:1rem;background:rgba(0,0,0,0.06);border:none;color:var(--muted);font-size:1.1rem;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}
.choice-buttons{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1.5rem}
.choice-btn{border:2px solid var(--border);border-radius:var(--radius);padding:1.5rem 1rem;cursor:pointer;transition:all .2s;text-align:center;background:#fff}
.choice-btn:hover{border-color:var(--navy);background:rgba(19,37,115,0.04);transform:translateY(-2px);box-shadow:var(--shadow)}
.choice-btn .c-icon{display:flex;justify-content:center;margin-bottom:0.6rem;color:var(--navy)}
.choice-btn h3{font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:0.3rem}
.choice-btn p{font-size:0.78rem;color:var(--muted);margin:0}

.subpage-header{background:linear-gradient(135deg,#0f1e6b,#1e3a9e);padding:1.5rem 5%}
.back-btn{background:rgba(255,255,255,0.15);border:none;color:#fff;padding:0.4rem 0.9rem;border-radius:8px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.82rem;margin-bottom:0.75rem;display:inline-flex;align-items:center;gap:6px;transition:background .15s}
.back-btn:hover{background:rgba(255,255,255,0.25)}
.subpage-header h1{color:#fff;font-size:1.5rem;font-weight:800}
.subpage-header p{color:rgba(255,255,255,0.65);font-size:0.85rem;margin-top:0.25rem}
.subpage-meta{display:flex;gap:8px;margin-top:0.75rem;flex-wrap:wrap}
.meta-pill{background:rgba(255,255,255,0.15);color:rgba(255,255,255,0.9);font-size:0.75rem;padding:4px 12px;border-radius:50px;font-weight:500}

#maitrise-page{background:var(--light);min-height:100vh}
.maitrise-choices{max-width:1100px;margin:2.5rem auto;padding:0 5%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.5rem}
.maitrise-choice-card{background:#fff;border:2px solid var(--border);border-radius:20px;padding:2.5rem 2rem;cursor:pointer;transition:all .25s;text-align:center;position:relative;overflow:hidden}
.maitrise-choice-card::after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;opacity:0;transition:opacity .25s}
.maitrise-choice-card.c-drive::after{background:linear-gradient(90deg,var(--navy),var(--navy-light))}
.maitrise-choice-card.c-yt::after{background:linear-gradient(90deg,#ff0000,#ff6b6b)}
.maitrise-choice-card.c-maitrise::after{background:linear-gradient(90deg,#7c3aed,#a78bfa)}
.maitrise-choice-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px rgba(0,0,0,0.12);border-color:transparent}
.maitrise-choice-card:hover::after{opacity:1}
.maitrise-choice-icon{display:flex;justify-content:center;margin-bottom:1rem;color:var(--navy)}
.maitrise-choice-card h3{font-size:1.2rem;font-weight:800;color:var(--navy);margin-bottom:0.5rem}
.maitrise-choice-card p{font-size:0.85rem;color:var(--muted);line-height:1.5}

#modules-page{background:var(--light);min-height:100vh}
.modules-body{max-width:1100px;margin:2rem auto;padding:0 5%}
.modules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.module-card{background:#fff;border:2px solid var(--border);border-radius:20px;overflow:hidden;cursor:pointer;transition:all .25s;position:relative}
.module-card:hover{transform:translateY(-5px);box-shadow:0 16px 48px rgba(0,0,0,0.13);border-color:transparent}
.module-card-img{width:100%;height:180px;object-fit:cover;display:block}
.module-card-img-placeholder{width:100%;height:180px;display:flex;align-items:center;justify-content:center;color:#fff}
.module-card-body{padding:1.5rem}
.module-card h3{font-size:1.05rem;font-weight:800;color:var(--navy);margin-bottom:0.4rem}
.module-card p{font-size:0.82rem;color:var(--muted);line-height:1.5;margin-bottom:1rem}
.module-card-btn{width:100%;padding:0.6rem;border:none;border-radius:10px;font-family:'Sora',sans-serif;font-size:0.82rem;font-weight:700;cursor:pointer;transition:all .15s}

#module-video-page{background:#1a1a2e;min-height:100vh}
.mv-layout{display:grid;grid-template-columns:1fr 360px;height:calc(100vh - 120px)}
.mv-main{display:flex;flex-direction:column;background:#0f0f1a;overflow-y:auto}
.mv-player-wrap{background:#000;width:100%;aspect-ratio:16/9;position:relative;flex-shrink:0}
.mv-player-wrap iframe{width:100%;height:100%;border:none;display:block}
.mv-info{padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,0.06)}
.mv-lesson-title{font-size:1rem;font-weight:700;color:#fff;margin-bottom:0.5rem}
.mv-pill{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);color:rgba(255,255,255,0.6);font-size:0.72rem;padding:3px 10px;border-radius:50px;margin-right:6px;display:inline-block}
.mv-sidebar{background:#12122a;border-left:1px solid rgba(255,255,255,0.06);overflow-y:auto}
.mv-sidebar-header{padding:1rem 1.25rem;border-bottom:1px solid rgba(255,255,255,0.06)}
.mv-sidebar-title{font-size:0.88rem;font-weight:700;color:#fff}
.mv-sidebar-sub{font-size:0.72rem;color:rgba(255,255,255,0.4);margin-top:2px}
.mv-playlist-section{border-bottom:1px solid rgba(255,255,255,0.06)}
.mv-playlist-header{padding:0.7rem 1.25rem;background:rgba(255,255,255,0.04);cursor:pointer;display:flex;align-items:center;justify-content:space-between;transition:background .15s}
.mv-playlist-header:hover{background:rgba(255,255,255,0.07)}
.mv-playlist-name{font-size:0.78rem;font-weight:700;color:rgba(255,255,255,0.7);text-transform:uppercase;letter-spacing:0.05em}
.mv-playlist-count{font-size:0.68rem;color:rgba(255,255,255,0.35)}
.mv-playlist-arrow{font-size:0.65rem;color:rgba(255,255,255,0.4);transition:transform .2s}
.mv-playlist-arrow.open{transform:rotate(180deg)}
.mv-playlist-videos{display:none}
.mv-playlist-videos.open{display:block}
.mv-video-row{display:flex;align-items:center;gap:10px;padding:0.7rem 1.25rem;border-bottom:1px solid rgba(255,255,255,0.03);cursor:pointer;transition:background .15s}
.mv-video-row:hover{background:rgba(255,255,255,0.04)}
.mv-video-row.active{background:rgba(124,58,237,0.15);border-left:3px solid var(--purple)}
.mv-video-thumb{width:56px;height:36px;border-radius:5px;background:rgba(255,255,255,0.05);display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0;overflow:hidden}
.mv-video-thumb img{width:100%;height:100%;object-fit:cover}
.mv-video-info{flex:1;min-width:0}
.mv-video-name{font-size:0.75rem;font-weight:500;color:rgba(255,255,255,0.8);line-height:1.35;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mv-video-dur{font-size:0.65rem;color:rgba(255,255,255,0.35);margin-top:2px}

#maitrise-docs-page{background:var(--light);min-height:100vh}
.maitrise-docs-body{max-width:1100px;margin:2rem auto;padding:0 5%}
.doc-type-choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1.25rem;margin-bottom:2.5rem}
.doc-type-card{background:#fff;border:2px solid var(--border);border-radius:16px;padding:2rem 1.25rem;cursor:pointer;transition:all .2s;text-align:center;position:relative;overflow:hidden}
.doc-type-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px}
.doc-type-card.c-cours::before{background:linear-gradient(90deg,var(--navy),var(--navy-light))}
.doc-type-card.c-astuces::before{background:linear-gradient(90deg,var(--coral),#ff6b6b)}
.doc-type-card.c-drives::before{background:linear-gradient(90deg,var(--purple),var(--purple-light))}
.doc-type-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px rgba(0,0,0,0.1);border-color:transparent}
.doc-type-icon{display:flex;justify-content:center;margin-bottom:0.75rem;color:var(--navy)}
.doc-type-card h3{font-size:0.95rem;font-weight:800;color:var(--navy);margin-bottom:0.3rem}
.doc-type-card p{font-size:0.76rem;color:var(--muted)}

#fiches-doc-page{background:var(--light);min-height:100vh}
.fiches-doc-body{max-width:1200px;margin:0 auto;padding:2.5rem 5%}
.fiches-doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.fiche-doc-item{background:#fff;border:1.5px solid rgba(19,37,115,0.12);border-radius:14px;padding:1.25rem;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.fiche-doc-item::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--navy),var(--navy-light))}
.fiche-doc-item:hover{transform:translateY(-3px);box-shadow:0 6px 24px rgba(19,37,115,0.12);border-color:rgba(19,37,115,0.3)}
.fiche-doc-num{width:34px;height:34px;background:rgba(19,37,115,0.08);border-radius:8px;color:var(--navy);font-weight:800;font-size:0.9rem;display:flex;align-items:center;justify-content:center;margin-bottom:0.75rem}
.fiche-doc-item h4{font-size:0.85rem;font-weight:700;color:var(--text);margin-bottom:0.25rem}
.fiche-doc-item .meta{font-size:0.72rem;color:var(--muted);margin-bottom:0.75rem}
.fiche-doc-open-btn{width:100%;padding:0.4rem;background:rgba(19,37,115,0.06);border:1.5px solid rgba(19,37,115,0.15);border-radius:6px;color:var(--navy);font-family:'Sora',sans-serif;font-size:0.75rem;font-weight:600;cursor:pointer;transition:all .15s}
.fiche-doc-open-btn:hover{background:var(--navy);color:#fff}
.fiche-add-section{background:#fff;border-radius:14px;border:2px dashed var(--border);padding:1.5rem;text-align:center;margin-bottom:1.5rem}
.fiche-add-section h3{font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:1rem}
.fiche-add-form{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.fiche-add-form input{flex:1;min-width:150px;max-width:300px;padding:0.5rem 0.8rem;border:1px solid var(--border);border-radius:8px;font-family:'Sora',sans-serif;font-size:0.83rem;outline:none}
.fiche-add-form button{background:var(--navy);color:#fff;border:none;padding:0.5rem 1rem;border-radius:8px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.83rem;font-weight:600}

#drives-page{background:var(--light);min-height:100vh}
.drives-body{max-width:1100px;margin:2rem auto;padding:0 5%}
.drives-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem}
.drive-item{background:#fff;border:1px solid var(--border);border-radius:14px;padding:1.5rem;display:flex;align-items:center;gap:1rem;transition:all .2s;cursor:pointer}
.drive-item:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(19,37,115,0.25)}
.drive-item-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;color:var(--navy);flex-shrink:0}
.drive-item h4{font-size:0.88rem;font-weight:700;color:var(--navy);margin-bottom:3px}
.drive-item p{font-size:0.75rem;color:var(--muted)}
.drive-add-section{background:#fff;border-radius:14px;border:2px dashed var(--border);padding:1.5rem;text-align:center;margin-bottom:1.5rem}
.drive-add-form{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.drive-add-form input{flex:1;min-width:200px;max-width:400px;padding:0.5rem 0.8rem;border:1px solid var(--border);border-radius:8px;font-family:'Sora',sans-serif;font-size:0.83rem;outline:none}
.drive-add-form button{background:var(--purple);color:#fff;border:none;padding:0.5rem 1rem;border-radius:8px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.83rem;font-weight:600}

#fiches-page{background:var(--light);min-height:100vh}
.fiches-body{max-width:1200px;margin:0 auto;padding:2.5rem 5%}
.fiches-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem}
.fiche-item{background:#fff;border:1.5px solid rgba(124,58,237,0.18);border-radius:16px;padding:1.5rem 1.25rem;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.fiche-item::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--purple),var(--navy))}
.fiche-item:hover{transform:translateY(-4px);box-shadow:0 8px 32px rgba(124,58,237,0.15);border-color:var(--purple)}
.fiche-num{width:38px;height:38px;background:var(--purple-bg);border-radius:10px;color:var(--purple);font-weight:800;font-size:1rem;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}
.fiche-item h3{font-size:0.95rem;font-weight:700;color:var(--text);margin-bottom:0.25rem}
.fiche-item .fiche-meta{font-size:0.75rem;color:var(--muted);margin-bottom:0.75rem}
.fiche-level{display:inline-block;font-size:0.7rem;font-weight:700;padding:3px 10px;border-radius:50px;margin-bottom:0.75rem}
.level-debutant{background:rgba(34,197,94,0.12);color:#16a34a}
.level-intermediaire{background:rgba(245,158,11,0.12);color:#b45309}
.level-avance{background:rgba(239,68,68,0.12);color:#dc2626}
.fiche-stars{color:#fbbf24;font-size:0.9rem;margin-bottom:0.75rem}
.fiche-start-btn{width:100%;padding:0.5rem;background:var(--purple-bg);border:1.5px solid rgba(124,58,237,0.25);border-radius:8px;color:var(--purple);font-family:'Sora',sans-serif;font-size:0.8rem;font-weight:600;cursor:pointer;transition:all .15s}
.fiche-start-btn:hover{background:var(--purple);color:#fff}

.mode-modal{background:#fff;border-radius:20px;padding:2.5rem 2rem;max-width:580px;width:92%;text-align:center;animation:modalIn .3s ease;position:relative}
.mode-modal-icon{margin-bottom:0.75rem;display:flex;justify-content:center;color:var(--navy)}
.mode-modal h2{font-size:1.5rem;font-weight:800;color:var(--text);margin-bottom:0.3rem}
.mode-modal .mode-sub{font-size:0.85rem;color:var(--muted);margin-bottom:1.25rem}
.mode-tags{display:flex;gap:8px;justify-content:center;margin-bottom:1.75rem;flex-wrap:wrap}
.mode-tag{background:var(--light);border:1px solid var(--border);border-radius:50px;padding:4px 14px;font-size:0.78rem;font-weight:500;color:var(--text)}
.modes-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem}
.mode-card{border:2px solid var(--border);border-radius:14px;padding:1.25rem 1rem;cursor:pointer;transition:all .2s;text-align:left;position:relative;background:#fff}
.mode-card:hover{border-color:var(--navy);background:rgba(19,37,115,0.03)}
.mode-card.selected{border-color:var(--navy);background:rgba(19,37,115,0.06)}
.mode-card.disabled{opacity:0.55;cursor:not-allowed}
.mode-xp-badge{position:absolute;top:10px;right:10px;background:rgba(245,158,11,0.12);color:#b45309;font-size:0.68rem;font-weight:700;padding:2px 8px;border-radius:50px}
.mode-card-icon{margin-bottom:0.5rem;color:var(--navy)}
.mode-card h3{font-size:0.95rem;font-weight:700;color:var(--text);margin-bottom:0.3rem}
.mode-card p{font-size:0.78rem;color:var(--muted);margin-bottom:0.6rem}
.mode-chips{display:flex;gap:5px;flex-wrap:wrap}
.mode-chip{background:var(--light);border:1px solid var(--border);border-radius:50px;padding:2px 9px;font-size:0.68rem;color:var(--muted);font-weight:500}
.soon-badge{font-size:0.65rem;background:var(--light);border:1px solid var(--border);color:var(--muted);padding:2px 8px;border-radius:50px;margin-top:6px;display:inline-block}
.mode-modal-footer{display:flex;gap:0.75rem}
.mode-start-btn{flex:1;padding:0.8rem;background:var(--navy);color:#fff;border:none;border-radius:12px;font-family:'Sora',sans-serif;font-size:1rem;font-weight:700;cursor:pointer;transition:all .15s}
.mode-start-btn:hover{background:var(--navy-light);transform:translateY(-1px)}
.mode-cancel-btn{padding:0.8rem 1.5rem;background:var(--light);color:var(--muted);border:1px solid var(--border);border-radius:12px;font-family:'Sora',sans-serif;font-size:0.9rem;font-weight:600;cursor:pointer}

#exams-page{background:#fff;min-height:100vh}
.exams-body{max-width:1000px;margin:0 auto;padding:3rem 5%}
.exams-page-title{font-size:2rem;font-weight:800;color:var(--text);text-align:center;margin-bottom:0.5rem}
.exams-page-sub{text-align:center;color:var(--muted);font-size:0.9rem;margin-bottom:2.5rem}
.exams-legend{display:flex;gap:1.5rem;justify-content:center;margin-bottom:2rem;flex-wrap:wrap}
.legend-item{display:flex;align-items:center;gap:8px;font-size:0.82rem;color:var(--muted)}
.legend-dot{width:20px;height:20px;border-radius:50%;flex-shrink:0}
.exams-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1.25rem}
.exam-item{text-align:center;cursor:pointer;transition:transform .2s}
.exam-item:hover{transform:translateY(-3px)}
.exam-circle{width:72px;height:72px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 0.75rem;font-size:1.6rem;transition:transform .2s}
.exam-item:hover .exam-circle{transform:scale(1.08)}
.exam-label{font-size:0.82rem;font-weight:600;color:var(--text)}

#zone-pratique-page{background:var(--light);min-height:100vh}
.zp-layout{max-width:1200px;margin:0 auto;padding:2rem 5%;display:grid;grid-template-columns:300px 1fr;gap:1.5rem;align-items:start}
.pomodoro-widget{background:#fff;border-radius:var(--radius);padding:1.5rem;border:1px solid var(--border);text-align:center}
.pomodoro-widget h3{font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:1rem;display:flex;align-items:center;justify-content:center;gap:6px}
.pomodoro-ring{width:120px;height:120px;margin:0 auto 1rem;position:relative}
.pomodoro-ring svg{transform:rotate(-90deg)}
.ring-bg{fill:none;stroke:var(--light);stroke-width:8}
.ring-fill{fill:none;stroke:var(--coral);stroke-width:8;stroke-linecap:round;transition:stroke-dashoffset 1s linear}
.pomodoro-time{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:800;color:var(--navy)}
.pomo-phase{font-size:0.75rem;font-weight:600;color:var(--muted);margin-bottom:0.75rem;text-transform:uppercase;letter-spacing:0.06em}
.pomo-btns{display:flex;gap:8px;justify-content:center}
.pomo-btn{padding:0.4rem 0.85rem;border-radius:8px;border:1.5px solid var(--border);background:#fff;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.78rem;font-weight:600;color:var(--navy);transition:all .15s}
.pomo-btn:hover{background:var(--navy);color:#fff;border-color:var(--navy)}
.pomo-sessions{font-size:0.72rem;color:var(--muted);margin-top:0.75rem}
.stats-widget{background:#fff;border-radius:var(--radius);padding:1.5rem;border:1px solid var(--border)}
.stats-widget h3{font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:1rem;display:flex;align-items:center;gap:6px}
.stat-row{display:flex;align-items:center;justify-content:space-between;padding:0.5rem 0;border-bottom:1px solid var(--border);font-size:0.82rem}
.stat-row:last-child{border-bottom:none}
.stat-label{color:var(--muted)}
.stat-val{font-weight:700;color:var(--navy)}
.fiches-side{background:#fff;border-radius:var(--radius);padding:1.5rem;border:1px solid var(--border)}
.fiches-side h3{font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:1rem}
.fiche-mini{background:var(--light);border-radius:8px;padding:0.75rem;border-left:3px solid var(--purple);margin-bottom:0.6rem}
.fiche-mini h4{font-size:0.8rem;font-weight:700;color:var(--navy);margin-bottom:0.3rem}
.fiche-mini p{font-size:0.74rem;color:var(--muted);line-height:1.4}
.qcm-zone{background:#fff;border-radius:var(--radius);padding:1.75rem;border:1px solid var(--border)}
.qcm-mode-tabs{display:flex;gap:6px;margin-bottom:1.5rem}
.qcm-mode-tab{flex:1;padding:0.55rem 0.5rem;border:1.5px solid var(--border);border-radius:8px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.75rem;font-weight:600;color:var(--muted);background:#fff;transition:all .15s;text-align:center}
.qcm-mode-tab.active{border-color:var(--navy);background:rgba(19,37,115,0.06);color:var(--navy)}
.mode-xp{display:block;font-size:0.65rem;font-weight:700;color:var(--coral);margin-top:2px}
.qcm-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem;gap:1rem}
.qcm-progress-wrap{flex:1}
.qcm-progress-label{font-size:0.72rem;color:var(--muted);margin-bottom:4px}
.qcm-progress-bar{height:6px;background:var(--light);border-radius:50px;overflow:hidden}
.qcm-progress-fill{height:100%;background:linear-gradient(90deg,var(--purple),var(--navy));border-radius:50px;transition:width .4s}
.qcm-level-badge{font-size:0.72rem;font-weight:700;padding:4px 10px;border-radius:50px;background:rgba(245,158,11,0.12);color:#b45309;white-space:nowrap}
.qcm-question{font-size:1rem;font-weight:600;color:var(--text);margin-bottom:1.5rem;line-height:1.55}
.qcm-options{display:flex;flex-direction:column;gap:0.75rem;margin-bottom:1.25rem}
.qcm-option{display:flex;align-items:center;gap:12px;border:1.5px solid var(--border);border-radius:12px;padding:0.85rem 1rem;cursor:pointer;transition:all .15s}
.qcm-option:hover{border-color:var(--purple);background:rgba(124,58,237,0.03)}
.qcm-option.selected{border-color:var(--purple);background:rgba(124,58,237,0.07)}
.qcm-option.correct{border-color:#16a34a;background:rgba(22,163,74,0.08)}
.qcm-option.wrong{border-color:#dc2626;background:rgba(220,38,38,0.08)}
.opt-letter{width:30px;height:30px;border-radius:8px;background:rgba(124,58,237,0.1);color:var(--purple);font-weight:700;font-size:0.85rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.qcm-option.selected .opt-letter{background:var(--purple);color:#fff}
.qcm-option.correct .opt-letter{background:#16a34a;color:#fff}
.qcm-option.wrong .opt-letter{background:#dc2626;color:#fff}
.opt-text{font-size:0.88rem;color:var(--text)}
.qcm-footer{display:flex;align-items:center;justify-content:space-between}
.hint-btn{background:none;border:1.5px solid var(--border);border-radius:8px;padding:0.45rem 0.9rem;font-family:'Sora',sans-serif;font-size:0.78rem;font-weight:600;color:var(--muted);cursor:pointer;display:flex;align-items:center;gap:6px}
.validate-btn{background:var(--navy);color:#fff;border:none;border-radius:10px;padding:0.65rem 1.5rem;font-family:'Sora',sans-serif;font-size:0.9rem;font-weight:700;cursor:pointer;transition:all .15s}
.validate-btn:hover{background:var(--navy-light);transform:translateY(-1px)}
.validate-btn:disabled{opacity:0.4;cursor:not-allowed;transform:none}
.qcm-feedback{border-radius:10px;padding:1rem 1.2rem;font-size:0.85rem;margin-top:1rem;display:none}
.qcm-feedback.show{display:block}
.correct-fb{background:rgba(22,163,74,0.1);border:1px solid rgba(22,163,74,0.3);color:#166534}
.wrong-fb{background:rgba(220,38,38,0.1);border:1px solid rgba(220,38,38,0.3);color:#991b1b}
.next-btn{background:var(--coral);color:#fff;border:none;border-radius:8px;padding:0.55rem 1.2rem;font-family:'Sora',sans-serif;font-size:0.85rem;font-weight:600;cursor:pointer;transition:all .15s}
.next-btn:hover{opacity:0.9;transform:translateY(-1px)}
.open-q-zone{background:#fff;border-radius:var(--radius);padding:1.75rem;border:1px solid var(--border)}
.open-q-question{font-size:1rem;font-weight:600;color:var(--text);margin-bottom:1.25rem;line-height:1.55;background:var(--light);padding:1rem;border-radius:10px;border-left:4px solid var(--purple)}
.open-q-area{width:100%;min-height:120px;border:1.5px solid var(--border);border-radius:10px;padding:0.85rem;font-family:'Sora',sans-serif;font-size:0.88rem;resize:vertical;outline:none;transition:border-color .2s;margin-bottom:1rem}
.open-q-area:focus{border-color:var(--purple)}
.open-q-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0.75rem}
.show-correction-btn{background:var(--navy);color:#fff;border:none;border-radius:10px;padding:0.65rem 1.5rem;font-family:'Sora',sans-serif;font-size:0.9rem;font-weight:700;cursor:pointer;transition:all .15s}
.correction-box{margin-top:1rem;background:rgba(22,163,74,0.07);border:1px solid rgba(22,163,74,0.25);border-radius:10px;padding:1rem 1.2rem;font-size:0.85rem;color:#166534;display:none}
.correction-box.show{display:block}

#bacplus2-page{background:var(--navy-dark);min-height:100vh}
.bp2-nav{position:sticky;top:0;z-index:200;background:rgba(11,26,80,0.95);backdrop-filter:blur(10px);border-bottom:1px solid rgba(255,255,255,0.08);padding:0 5%;display:flex;align-items:center;justify-content:space-between;height:68px}
.bp2-hero{min-height:80vh;background:linear-gradient(135deg,#050d2e 0%,#0f1e6b 50%,#1a0a3d 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5rem 5%;position:relative;overflow:hidden}
.bp2-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse 60% 50% at 50% 40%,rgba(124,58,237,0.18) 0%,transparent 70%)}
.bp2-eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(124,58,237,0.15);border:1px solid rgba(124,58,237,0.3);border-radius:50px;padding:0.4rem 1.1rem;color:rgba(255,255,255,0.85);font-size:0.78rem;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;margin-bottom:1.5rem}
.bp2-hero h1{font-size:clamp(2.5rem,6vw,5rem);font-weight:800;color:#fff;line-height:1.05;letter-spacing:-1.5px;max-width:900px;margin-bottom:1rem}
.bp2-hero h1 .accent{background:linear-gradient(135deg,#a78bfa,#7c3aed);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.bp2-hero h1 .accent2{color:var(--coral)}
.bp2-hero-sub{font-size:1.05rem;color:rgba(255,255,255,0.6);max-width:600px;margin-bottom:3rem;line-height:1.65}
.bp2-packs{display:grid;grid-template-columns:1fr 1fr;gap:2rem;max-width:900px;margin:0 auto;width:100%;position:relative;z-index:1}
.pack-card{border:1.5px solid rgba(255,255,255,0.1);border-radius:20px;padding:2rem;cursor:pointer;transition:all .3s;text-align:left;position:relative;overflow:hidden;background:rgba(255,255,255,0.04);backdrop-filter:blur(8px)}
.pack-card::before{content:'';position:absolute;inset:0;opacity:0;transition:opacity .3s}
.pack-card.pack-ing::before{background:linear-gradient(135deg,rgba(124,58,237,0.15),rgba(19,37,115,0.2))}
.pack-card.pack-lic::before{background:linear-gradient(135deg,rgba(255,141,141,0.1),rgba(124,58,237,0.1))}
.pack-card:hover{border-color:rgba(255,255,255,0.3);transform:translateY(-6px);box-shadow:0 20px 60px rgba(0,0,0,0.4)}
.pack-card:hover::before{opacity:1}
.pack-icon{font-size:2.8rem;margin-bottom:1rem}
.pack-card h2{font-size:1.4rem;font-weight:800;color:#fff;margin-bottom:0.5rem}
.pack-card .pack-sub{font-size:0.85rem;color:rgba(255,255,255,0.55);margin-bottom:1.25rem;line-height:1.5}
.pack-schools{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1.5rem}
.pack-school-tag{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.12);border-radius:50px;padding:4px 12px;font-size:0.72rem;font-weight:600;color:rgba(255,255,255,0.75)}
.pack-cta{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(135deg,var(--purple),#4f46e5);color:#fff;padding:0.7rem 1.4rem;border-radius:10px;font-size:0.88rem;font-weight:700;transition:transform .15s,opacity .15s;border:none;cursor:pointer;font-family:'Sora',sans-serif}
.pack-cta:hover{transform:translateY(-1px);opacity:0.9}
.bp2-video-section{padding:5rem 5%;text-align:center}
.bp2-video-title{font-size:1.8rem;font-weight:800;color:#fff;margin-bottom:0.5rem}
.bp2-video-sub{color:rgba(255,255,255,0.5);font-size:0.9rem;margin-bottom:2rem}
.bp2-video-wrap{max-width:800px;margin:0 auto;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,0.1);box-shadow:0 24px 80px rgba(0,0,0,0.5)}
.bp2-video-wrap iframe{width:100%;aspect-ratio:16/9;display:block;border:none}

#pack-detail-page{background:var(--light);min-height:100vh}
.pack-detail-nav{position:sticky;top:0;z-index:200;background:#fff;border-bottom:1px solid var(--border);padding:0 5%;display:flex;align-items:center;gap:1rem;height:64px}
.pd-branches{max-width:1200px;margin:2.5rem auto;padding:0 5%;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.branch-card{background:#fff;border:2px solid var(--border);border-radius:20px;padding:2rem;cursor:pointer;transition:all .25s;text-align:center;position:relative;overflow:hidden}
.branch-card::after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;opacity:0;transition:opacity .25s}
.branch-card.b-cours::after{background:linear-gradient(90deg,var(--navy),var(--navy-light))}
.branch-card.b-videos::after{background:linear-gradient(90deg,var(--purple),var(--purple-light))}
.branch-card.b-exams::after{background:linear-gradient(90deg,var(--coral),#ff6b6b)}
.branch-card:hover{transform:translateY(-5px);box-shadow:0 12px 40px rgba(0,0,0,0.12);border-color:transparent}
.branch-card:hover::after{opacity:1}
.branch-icon{display:flex;justify-content:center;margin-bottom:1rem;color:var(--navy)}
.branch-card h3{font-size:1.15rem;font-weight:800;color:var(--navy);margin-bottom:0.5rem}
.branch-card p{font-size:0.85rem;color:var(--muted);line-height:1.5}

#cours-page{background:var(--light);min-height:100vh}
.cours-body{max-width:1100px;margin:2rem auto;padding:0 5%}
.drive-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25rem;margin-bottom:2rem}
.drive-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:1.25rem;display:flex;align-items:center;gap:1rem;transition:all .2s;cursor:pointer}
.drive-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(19,37,115,0.25)}
.drive-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--navy)}
.drive-card h4{font-size:0.88rem;font-weight:700;color:var(--navy)}
.drive-card p{font-size:0.75rem;color:var(--muted)}
.cours-upload-section{background:#fff;border-radius:var(--radius);border:2px dashed var(--border);padding:2rem;text-align:center;margin-bottom:1.5rem;transition:border-color .2s}
.cours-upload-section:hover{border-color:var(--navy)}
.upload-icon{margin-bottom:0.75rem;display:flex;justify-content:center;color:var(--navy)}
.cours-upload-section h3{font-size:1rem;font-weight:700;color:var(--navy);margin-bottom:0.4rem}
.cours-upload-section p{font-size:0.82rem;color:var(--muted);margin-bottom:1rem}
.upload-btn{background:var(--navy);color:#fff;border:none;padding:0.6rem 1.4rem;border-radius:8px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.85rem;font-weight:600}

#video-course-page{background:#1a1a2e;min-height:100vh}
.vc-layout{display:grid;grid-template-columns:1fr 360px;height:calc(100vh - 64px)}
.vc-main{display:flex;flex-direction:column;background:#0f0f1a;overflow-y:auto}
.vc-player-wrap{background:#000;width:100%;aspect-ratio:16/9;position:relative}
.vc-player-wrap iframe{width:100%;height:100%;border:none;display:block}
.vc-info{padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,0.06)}
.vc-lesson-title{font-size:1.05rem;font-weight:700;color:#fff;margin-bottom:0.5rem}
.vc-lesson-meta{display:flex;gap:10px;flex-wrap:wrap}
.vc-pill{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);color:rgba(255,255,255,0.6);font-size:0.72rem;padding:3px 10px;border-radius:50px}
.vc-tabs{display:flex;gap:0;border-bottom:1px solid rgba(255,255,255,0.06)}
.vc-tab{padding:0.75rem 1.25rem;font-family:'Sora',sans-serif;font-size:0.8rem;font-weight:600;color:rgba(255,255,255,0.45);background:none;border:none;cursor:pointer;border-bottom:2px solid transparent;transition:all .15s}
.vc-tab.active{color:#fff;border-bottom-color:var(--purple)}
.vc-tab-content{padding:1.25rem 1.5rem;flex:1}
.vc-overview{font-size:0.85rem;color:rgba(255,255,255,0.65);line-height:1.7}
.vc-sidebar{background:#12122a;border-left:1px solid rgba(255,255,255,0.06);overflow-y:auto}
.vc-sidebar-header{padding:1rem 1.25rem;border-bottom:1px solid rgba(255,255,255,0.06)}
.vc-sidebar-title{font-size:0.88rem;font-weight:700;color:#fff}
.vc-sidebar-sub{font-size:0.72rem;color:rgba(255,255,255,0.4);margin-top:2px}
.vc-section{margin-bottom:0}
.vc-section-hdr{padding:0.75rem 1.25rem;background:rgba(255,255,255,0.03);border-bottom:1px solid rgba(255,255,255,0.05);font-size:0.78rem;font-weight:700;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:0.06em}
.vc-lesson-row{display:flex;align-items:center;gap:10px;padding:0.75rem 1.25rem;border-bottom:1px solid rgba(255,255,255,0.04);cursor:pointer;transition:background .15s}
.vc-lesson-row:hover{background:rgba(255,255,255,0.04)}
.vc-lesson-row.active{background:rgba(124,58,237,0.12);border-left:3px solid var(--purple)}
.vc-check{width:18px;height:18px;border-radius:50%;border:2px solid rgba(255,255,255,0.2);flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:0.55rem;transition:all .15s}
.vc-check.done{background:#16a34a;border-color:#16a34a;color:#fff}
.vc-lesson-info{flex:1}
.vc-lesson-name{font-size:0.8rem;font-weight:500;color:rgba(255,255,255,0.8);line-height:1.35}
.vc-lesson-dur{font-size:0.68rem;color:rgba(255,255,255,0.35);margin-top:2px}
.vc-dl-btn{background:rgba(255,255,255,0.06);border:none;color:rgba(255,255,255,0.4);border-radius:6px;width:24px;height:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:0.65rem;flex-shrink:0;transition:all .15s}
.vc-dl-btn:hover{background:rgba(124,58,237,0.2);color:#a78bfa}

#pack-exams-page{background:#fff;min-height:100vh}

.advisor-fab{position:fixed;bottom:28px;right:28px;z-index:1000;width:62px;height:62px;border-radius:50%;background:linear-gradient(135deg,var(--navy) 0%,#1e3a9e 100%);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 28px rgba(19,37,115,0.45);transition:transform .2s,box-shadow .2s;color:#fff}
.advisor-fab:hover{transform:scale(1.1);box-shadow:0 10px 36px rgba(19,37,115,0.55)}
.fab-badge{position:absolute;top:-4px;right:-4px;background:var(--coral);color:#fff;font-size:0.55rem;font-weight:700;padding:2px 5px;border-radius:50px;letter-spacing:0.04em}
.advisor-overlay{position:fixed;inset:0;z-index:1001;background:rgba(10,18,60,0.45);opacity:0;pointer-events:none;transition:opacity .3s}
.advisor-overlay.open{opacity:1;pointer-events:all}
.advisor-panel{position:fixed;bottom:0;right:0;z-index:1002;width:min(480px,100vw);height:min(680px,100dvh);background:#0f1630;border-radius:20px 20px 0 0;display:flex;flex-direction:column;transform:translateY(110%);transition:transform .35s cubic-bezier(.32,1,.5,1);overflow:hidden;box-shadow:0 -8px 48px rgba(0,0,0,0.5)}
.advisor-panel.open{transform:translateY(0)}
.adv-loading-overlay{position:absolute;inset:0;z-index:10;background:rgba(15,22,48,0.85);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;opacity:0;pointer-events:none;transition:opacity .2s}
.adv-loading-overlay.show{opacity:1;pointer-events:all}
.adv-loading-spinner{width:36px;height:36px;border-radius:50%;border:3px solid rgba(255,255,255,0.15);border-top-color:#a78bfa;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.adv-loading-text{color:rgba(255,255,255,0.6);font-size:0.82rem}
.adv-header{display:flex;align-items:center;gap:12px;padding:14px 16px 12px;background:rgba(255,255,255,0.04);border-bottom:1px solid rgba(255,255,255,0.07);flex-shrink:0}
.adv-logo{font-size:1.6rem}
.adv-header-text{flex:1}
.adv-header-title{font-size:0.95rem;font-weight:700;color:#fff}
.adv-header-sub{font-size:0.68rem;color:rgba(255,255,255,0.45);margin-top:2px}
.adv-header-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.adv-free-badge{background:rgba(0,184,122,0.18);color:#4ade80;font-size:0.65rem;font-weight:700;padding:3px 8px;border-radius:50px;border:1px solid rgba(74,222,128,0.25);white-space:nowrap}
.adv-status-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 6px #4ade80;animation:pulse-dot 2s ease-in-out infinite}
@keyframes pulse-dot{0%,100%{opacity:1}50%{opacity:.4}}
.adv-close{background:rgba(255,255,255,0.08);border:none;color:rgba(255,255,255,0.6);font-size:0.85rem;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}
.adv-close:hover{background:rgba(255,255,255,0.15);color:#fff}
.adv-filters{display:flex;align-items:center;gap:6px;padding:10px 14px;overflow-x:auto;flex-shrink:0;border-bottom:1px solid rgba(255,255,255,0.06);scrollbar-width:none}
.adv-filters::-webkit-scrollbar{display:none}
.adv-filter-label{font-size:0.7rem;color:rgba(255,255,255,0.35);white-space:nowrap}
.adv-chip{background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.1);color:rgba(255,255,255,0.6);font-size:0.72rem;font-weight:500;padding:4px 10px;border-radius:50px;cursor:pointer;white-space:nowrap;transition:all .15s;font-family:'Sora',sans-serif}
.adv-chip.active{background:rgba(167,139,250,0.18);border-color:#a78bfa;color:#c4b0ff}
.adv-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,0.1) transparent}
.adv-msg{display:flex;gap:10px;align-items:flex-start}
.adv-msg.user{flex-direction:row-reverse}
.adv-msg-avatar{width:30px;height:30px;border-radius:50%;flex-shrink:0;background:rgba(167,139,250,0.2);color:#c4b0ff;display:flex;align-items:center;justify-content:center;font-size:0.8rem;font-weight:700}
.adv-msg.user .adv-msg-avatar{background:rgba(255,141,141,0.2);color:#FF8D8D}
.adv-msg-bubble{max-width:320px;padding:10px 13px;border-radius:14px;font-size:0.83rem;line-height:1.65;color:rgba(255,255,255,0.88);background:rgba(255,255,255,0.07)}
.adv-msg.user .adv-msg-bubble{background:var(--navy);border-radius:14px 14px 4px 14px}
.adv-msg.bot .adv-msg-bubble{border-radius:14px 14px 14px 4px}
.adv-msg-bubble strong{color:#c4b0ff}
.adv-msg-bubble code{background:rgba(167,139,250,0.15);padding:1px 5px;border-radius:4px;font-size:0.8rem;color:#c4b0ff}
.adv-msg-time{font-size:0.65rem;color:rgba(255,255,255,0.25);margin-top:4px;padding:0 2px}
.adv-msg.user .adv-msg-time{text-align:right}
.adv-welcome{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);border-radius:14px;padding:13px 15px;max-width:340px}
.adv-welcome-title{font-size:0.88rem;font-weight:700;color:#fff;margin-bottom:6px}
.adv-welcome-sub{font-size:0.78rem;color:rgba(255,255,255,0.65);line-height:1.5}
.adv-welcome-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.adv-welcome-tag{background:rgba(167,139,250,0.12);border:1px solid rgba(167,139,250,0.2);color:#c4b0ff;font-size:0.66rem;padding:2px 8px;border-radius:50px}
.adv-quick-prompts{padding:0 14px 10px;display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.adv-quick{background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);color:rgba(255,255,255,0.6);font-size:0.72rem;padding:5px 11px;border-radius:50px;cursor:pointer;font-family:'Sora',sans-serif;transition:all .15s}
.adv-quick:hover{background:rgba(167,139,250,0.12);border-color:#a78bfa;color:#c4b0ff}
.adv-input-area{padding:10px 14px 14px;border-top:1px solid rgba(255,255,255,0.07);flex-shrink:0}
.adv-input-row{display:flex;gap:8px;align-items:flex-end}
.adv-textarea{flex:1;background:rgba(255,255,255,0.07);border:1px solid rgba(255,255,255,0.12);color:#fff;border-radius:12px;padding:9px 13px;font-family:'Sora',sans-serif;font-size:0.83rem;line-height:1.5;resize:none;outline:none;max-height:120px;transition:border-color .15s}
.adv-textarea::placeholder{color:rgba(255,255,255,0.3)}
.adv-textarea:focus{border-color:rgba(167,139,250,0.5)}
.adv-send{width:38px;height:38px;border-radius:10px;flex-shrink:0;background:linear-gradient(135deg,#7c3aed,#4f46e5);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
.adv-send:hover{transform:scale(1.06)}
.adv-send:disabled{opacity:0.4;cursor:not-allowed;transform:none}
.adv-input-hint{font-size:0.62rem;color:rgba(255,255,255,0.2);margin-top:6px;text-align:center}
.toast{position:fixed;bottom:108px;right:28px;z-index:9999;background:#1a1a2e;color:#fff;padding:10px 18px;border-radius:10px;font-size:0.82rem;font-weight:500;box-shadow:0 6px 24px rgba(0,0,0,0.4);transform:translateY(20px);opacity:0;pointer-events:none;transition:all .3s}
.toast.show{transform:translateY(0);opacity:1}

.hamburger{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px;border-radius:8px;transition:background .2s}
.hamburger:hover{background:rgba(19,37,115,0.08)}
.hamburger span{display:block;width:22px;height:2px;background:var(--navy);border-radius:2px;transition:transform .3s,opacity .3s}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;position:fixed;top:68px;left:0;right:0;background:#fff;border-bottom:1px solid var(--border);z-index:199;padding:1rem 5%;flex-direction:column;gap:0.2rem;box-shadow:0 8px 24px rgba(19,37,115,0.1)}
.mobile-menu.open{display:flex}
.mobile-menu a,.mobile-menu button{text-decoration:none;color:var(--text);font-size:0.95rem;font-weight:500;background:none;border:none;cursor:pointer;font-family:'Sora',sans-serif;padding:0.7rem 0.5rem;border-radius:8px;display:flex;align-items:center;gap:8px;transition:background .15s,color .15s;width:100%;text-align:left}
.mobile-menu a:hover,.mobile-menu button:hover{background:var(--light);color:var(--navy)}
.mobile-menu .mob-talaba{background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff!important;border-radius:8px;padding:0.6rem 1rem;justify-content:center;margin-bottom:0.5rem;font-weight:700}
.mobile-menu-overlay{display:none;position:fixed;inset:0;top:68px;z-index:198;background:rgba(0,0,0,0.3)}
.mobile-menu-overlay.open{display:block}
@media(max-width:768px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .contact-layout,.bp2-packs,.pd-branches,.maitrise-choices,.modules-grid,.doc-type-choices{grid-template-columns:1fr}
  .footer-inner{grid-template-columns:1fr;gap:1.5rem}
  .videos-grid{grid-template-columns:1fr}
  .zp-layout{grid-template-columns:1fr}
  .modes-grid{grid-template-columns:1fr}
  .vc-layout,.mv-layout{grid-template-columns:1fr}
  .vc-sidebar,.mv-sidebar{display:none}
}
@media(max-width:480px){
  .schools-grid{grid-template-columns:repeat(2,1fr)}
  .fiches-grid,.fiches-doc-grid{grid-template-columns:repeat(2,1fr)}
  .blog-grid{grid-template-columns:1fr}
}
/* ══════════════════════════════════════════════════════════════
   NOUVEAUX COMPOSANTS DYNAMIQUES & PROFESSIONNELS
   ══════════════════════════════════════════════════════════════ */

/* 1. News Ticker */
.news-ticker {
  background: linear-gradient(135deg, var(--navy), #1e3a9e);
  color: #fff; padding: 0; overflow: hidden; height: 36px;
  display: flex; align-items: center; position: relative; z-index: 300;
}
.ticker-label {
  background: var(--coral); color: #fff; font-weight: 800; font-size: 0.72rem;
  padding: 0.25rem 0.9rem; white-space: nowrap; flex-shrink: 0; letter-spacing: .5px;
  height: 100%; display: flex; align-items: center;
}
.ticker-track {
  display: flex; gap: 0; align-items: center; animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.78rem; font-weight: 500; padding: 0 2.5rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.ticker-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 2. Progression Bar (Lab de l'Élève) */
.lab-banner {
  background: linear-gradient(135deg, #132573 0%, #1e3a9e 50%, #7c3aed 100%);
  color: #fff; padding: 1.25rem 5%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
}
.lab-left { display: flex; flex-direction: column; gap: 4px; }
.lab-title { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 7px; }
.lab-subtitle { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.lab-progress-wrap { flex: 1; max-width: 320px; min-width: 180px; }
.lab-progress-label { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; display: flex; justify-content: space-between; }
.lab-progress-bar-bg { background: rgba(255,255,255,0.2); border-radius: 99px; height: 10px; overflow: hidden; }
.lab-progress-bar-fill { background: linear-gradient(90deg, #4ade80, #a3e635); height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(.22,1,.36,1); }
.lab-actions { display: flex; align-items: center; gap: 0.7rem; }
.lab-filter-select {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 8px; padding: 0.4rem 0.75rem; font-family: 'Sora', sans-serif;
  font-size: 0.8rem; cursor: pointer; outline: none;
}
.lab-filter-select option { color: var(--text); background: #fff; }
.lab-reset-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; border-radius: 8px; padding: 0.4rem 0.75rem; font-size: 0.78rem;
  cursor: pointer; font-family: 'Sora', sans-serif; transition: background .2s;
}
.lab-reset-btn:hover { background: rgba(255,255,255,0.2); }

/* 3. Stats Live Widget */
.live-stats-bar {
  background: var(--light); border-bottom: 1px solid var(--border);
  padding: 0.5rem 5%; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.live-stat { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.live-stat strong { color: var(--navy); font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.4); } 50% { box-shadow: 0 0 0 5px rgba(74,222,128,0); } }

/* 4. Keyword Search */
.search-hero {
  padding: 1.5rem 5%; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 68px; z-index: 190;
}
.search-bar-wrap { display: flex; gap: 0.75rem; align-items: center; max-width: 640px; margin: 0 auto; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input {
  width: 100%; padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  border: 2px solid var(--border); border-radius: 12px;
  font-family: 'Sora', sans-serif; font-size: 0.9rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(19,37,115,0.08); }
.search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); display: none; }
.search-count-badge { background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 99px; }

/* 5. Concours Simulator */
#quiz { padding: 2.5rem 5%; background: var(--light); }
.quiz-hero { text-align: center; max-width: 700px; margin: 0 auto 2rem; }
.quiz-hero h2 { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.timer-widget { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 0.5rem 1rem; }
.timer-display { font-size: 1.3rem; font-weight: 800; color: var(--navy); min-width: 55px; }
.quiz-card { background: #fff; border-radius: var(--radius); padding: 1.75rem 2rem; max-width: 700px; margin: 0 auto; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.quiz-option { background: var(--light); border: 2px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 0.6rem; cursor: pointer; transition: all .2s; }
.quiz-option:hover { background: #e8ecf8; border-color: var(--navy); }

/* 6. Animations & Helpers */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.fade-in-section.visible { opacity: 1; transform: none; }

/* Responsive adjustments */
@media(max-width:700px){
  .lab-banner { flex-direction: column; align-items: flex-start; }
  .quiz-bar { flex-direction: column; align-items: stretch; }
  .search-bar-wrap { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════════
   TABLEAU DE BORD
   ══════════════════════════════════════════════════════════════ */

/* Hero header */
.db-hero-header {
  background: linear-gradient(135deg, #132573 0%, #1e3a9e 60%, #7c3aed 100%);
  color: #fff; padding: 2rem 5%; display: flex; align-items: center;
  justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.db-greeting { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.db-subline { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.db-streak-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px; padding: 0.9rem 1.2rem;
}
.db-streak-num { font-size: 1.7rem; font-weight: 800; line-height: 1; color: #fbbf24; }
.db-streak-label { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

/* Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px; padding: 24px 5%;
}

/* Cards */
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow-3d) !important;
  border: 1px solid rgba(255,255,255,0.6); display: flex; flex-direction: column; gap: 1rem;
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease;
  transform: translateY(0);
}
.stat-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0px 24px 44px rgba(19,37,115,0.13),
    0px 4px 10px rgba(19,37,115,0.05),
    inset 0px 1px 0px rgba(255,255,255,0.9) !important;
}
.stat-card-head { display: flex; align-items: center; gap: 12px; }
.stat-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-title { font-size: 0.95rem; font-weight: 800; color: var(--navy); }
.stat-card-sub { font-size: 0.74rem; color: var(--muted); margin-top: 2px; }

/* Focus ring */
.focus-ring-wrap {
  display: flex; align-items: center; justify-content: center; position: relative;
}
.focus-ring-svg { width: 140px; height: 140px; }
.focus-ring-inner {
  position: absolute; text-align: center;
}
.focus-ring-time { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.focus-ring-label { font-size: 0.7rem; color: var(--muted); }
.focus-sessions { display: flex; gap: 6px; flex-wrap: wrap; }
.focus-session-pill {
  background: var(--light); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 5px 12px; font-size: 0.75rem; font-weight: 600;
  color: var(--text); display: flex; gap: 6px; align-items: center;
}
.focus-session-pill.active { background: rgba(19,37,115,0.07); border-color: var(--navy); color: var(--navy); }
.focus-session-pill span { color: var(--muted); font-weight: 400; }

/* Predict */
.predict-estimation {
  background: rgba(124,58,237,0.06); border: 1px solid rgba(124,58,237,0.15);
  border-radius: 10px; padding: 0.65rem 0.9rem; font-size: 0.83rem; color: var(--text);
  display: flex; gap: 8px; align-items: flex-start; line-height: 1.5;
}
.gauge-wrap { display: flex; flex-direction: column; gap: 6px; }
.gauge-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.gauge-pct { color: var(--navy); font-weight: 800; font-size: 0.9rem; }
.gauge-bg { background: var(--light); border-radius: 99px; height: 12px; overflow: hidden; }
.gauge-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 45%, #22c55e 100%);
  transition: width 1.5s cubic-bezier(.22,1,.36,1);
}
.gauge-ticks { display: flex; justify-content: space-between; font-size: 0.65rem; color: var(--muted); }
.predict-reco {
  display: flex; gap: 10px; background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.25); border-radius: 10px;
  padding: 0.65rem 0.9rem; font-size: 0.8rem; line-height: 1.5; color: var(--text);
}
.predict-reco-icon { font-size: 1.1rem; flex-shrink: 0; }
.predict-module-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--purple); color: #fff; border: none; border-radius: 9px;
  padding: 0.55rem 1.1rem; font-family: 'Sora', sans-serif; font-size: 0.83rem;
  font-weight: 700; cursor: pointer; transition: opacity .2s, transform .15s; margin-top: 2px;
}
.predict-module-btn:hover { opacity: .88; transform: translateY(-1px); }

/* Progress chart row */
.progress-stats-row {
  display: flex; justify-content: space-around; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 0.8rem;
}
.progress-stat-item { text-align: center; }
.progress-stat-val { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.progress-stat-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

/* Radar legend & upgrade */
.radar-legend { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.radar-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.radar-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.upgrade-teaser {
  background: linear-gradient(135deg, rgba(245,158,11,0.07), rgba(239,68,68,0.07));
  border: 1.5px solid rgba(245,158,11,0.2); border-radius: 11px;
  padding: 0.8rem 1rem; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.upgrade-teaser-text { font-size: 0.8rem; color: var(--text); line-height: 1.45; flex: 1; }
.btn-upgrade {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; border: none; border-radius: 9px;
  padding: 0.5rem 1rem; font-family: 'Sora', sans-serif;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .15s; white-space: nowrap;
  box-shadow: 0 3px 12px rgba(239,68,68,0.3);
}
.btn-upgrade:hover { opacity: .88; transform: translateY(-1px); }

@media(max-width:700px){
  .dashboard-grid { grid-template-columns: 1fr; padding: 16px 5%; }
  .db-hero-header { flex-direction: column; align-items: flex-start; }
}

/* ══ SETTINGS PAGE ══ */
.settings-layout{display:flex;min-height:calc(100vh - 68px);gap:0;max-width:1100px;margin:0 auto;padding:2rem 5% 4rem;}
.settings-sidebar{width:220px;flex-shrink:0;}
.settings-sidebar-inner{position:sticky;top:88px;display:flex;flex-direction:column;gap:4px;}
.settings-tab{display:flex;align-items:center;gap:8px;padding:0.65rem 1rem;border:none;border-radius:10px;background:none;color:var(--muted);font-family:'Sora',sans-serif;font-weight:600;font-size:0.88rem;cursor:pointer;text-align:left;transition:background .15s,color .15s;}
.settings-tab:hover{background:var(--light);color:var(--navy);}
.settings-tab.active{background:var(--navy);color:#fff;}
.settings-content{flex:1;padding-left:2.5rem;min-width:0;}
.settings-pane{display:none;}
.settings-pane.active{display:block;animation:fadeInUp .3s ease;}
.settings-pane-header{margin-bottom:1.5rem;}
.settings-pane-title{font-size:1.4rem;font-weight:800;color:var(--navy);margin-bottom:4px;}
.settings-pane-sub{font-size:0.87rem;color:var(--muted);}
.settings-card{background:#fff;border:1.5px solid var(--border);border-radius:16px;padding:1.25rem 1.4rem;margin-bottom:1.25rem;box-shadow:0 2px 10px rgba(19,37,115,0.06);}
.settings-card-title{display:flex;align-items:center;gap:7px;font-weight:800;color:var(--navy);font-size:0.93rem;margin-bottom:1.1rem;}
.settings-field-group{margin-bottom:1rem;}
.settings-label{display:block;font-weight:700;color:var(--navy);font-size:0.82rem;margin-bottom:5px;}
.settings-input{width:100%;border:1.5px solid var(--border);border-radius:10px;padding:0.6rem 0.9rem;font-size:0.88rem;font-family:'Sora',sans-serif;outline:none;transition:border-color .2s;background:#fff;color:var(--text);}
.settings-input:focus{border-color:var(--navy);}
.settings-textarea{resize:vertical;min-height:80px;}
.settings-hint{font-size:0.76rem;color:var(--muted);margin-top:4px;display:block;}
.settings-btn-save{display:inline-flex;align-items:center;gap:7px;background:var(--navy);color:#fff;border:none;border-radius:10px;padding:0.65rem 1.3rem;font-family:'Sora',sans-serif;font-weight:700;font-size:0.88rem;cursor:pointer;transition:opacity .2s,transform .15s;}
.settings-btn-save:hover{opacity:0.88;transform:translateY(-1px);}
.settings-btn-save:disabled{opacity:0.55;cursor:not-allowed;transform:none;}
.settings-btn-outline{display:inline-flex;align-items:center;gap:7px;background:var(--light);color:var(--navy);border:1.5px solid var(--border);border-radius:10px;padding:0.6rem 1.1rem;font-family:'Sora',sans-serif;font-weight:700;font-size:0.85rem;cursor:pointer;transition:background .15s;}
.settings-btn-outline:hover{background:#eaf0ff;}
/* Profile progress */
.profile-progress-card{background:linear-gradient(135deg,rgba(19,37,115,0.04),rgba(255,141,141,0.08));border:1.5px solid var(--border);border-radius:16px;padding:1.1rem 1.4rem;margin-bottom:1.25rem;}
.progress-bar-bg{width:100%;height:8px;background:var(--border);border-radius:99px;overflow:hidden;margin-bottom:6px;}
.progress-bar-fill{height:100%;background:linear-gradient(90deg,var(--navy),var(--coral));border-radius:99px;transition:width .5s ease;}
.progress-hint{font-size:0.78rem;color:var(--muted);}
/* Avatar */
.avatar-preview-row{display:flex;align-items:center;gap:18px;}
.settings-avatar-big{width:70px;height:70px;border-radius:50%;background:linear-gradient(135deg,var(--navy-light),var(--navy));color:#fff;font-weight:800;font-size:1.6rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 4px 16px rgba(19,37,115,0.22);overflow:hidden;}
.settings-avatar-big img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
/* Password strength */
.pwd-strength-bar{width:100%;height:5px;background:var(--border);border-radius:99px;overflow:hidden;margin-top:6px;}
.pwd-strength-fill{height:100%;border-radius:99px;transition:width .3s,background .3s;}
.pwd-strength-label{font-size:0.76rem;font-weight:700;margin-top:3px;display:block;}
/* Theme selector */
.theme-selector-row{display:flex;gap:14px;}
.theme-option{display:flex;flex-direction:column;align-items:center;gap:7px;padding:12px;border:2px solid var(--border);border-radius:12px;cursor:pointer;font-family:'Sora',sans-serif;font-size:0.82rem;font-weight:700;color:var(--muted);transition:border-color .2s,color .2s;min-width:90px;}
.theme-option.active{border-color:var(--navy);color:var(--navy);}
.theme-preview{width:60px;height:40px;border-radius:8px;border:1px solid var(--border);}
.light-preview{background:linear-gradient(135deg,#f5f7ff 60%,#fff);}
.dark-preview{background:linear-gradient(135deg,#132573 60%,#1e3a9e);}
/* Notifications toggles */
.notif-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0.75rem 0;border-bottom:1px solid var(--border);}
.notif-row:last-child{border-bottom:none;}
.notif-label{font-weight:700;color:var(--navy);font-size:0.87rem;}
.notif-sub{font-size:0.77rem;color:var(--muted);margin-top:2px;}
.toggle-switch{position:relative;display:inline-block;width:44px;height:24px;flex-shrink:0;}
.toggle-switch input{opacity:0;width:0;height:0;}
.toggle-slider{position:absolute;cursor:pointer;inset:0;background:var(--border);border-radius:24px;transition:.3s;}
.toggle-slider:before{position:absolute;content:'';width:18px;height:18px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.3s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
input:checked+.toggle-slider{background:var(--navy);}
input:checked+.toggle-slider:before{transform:translateX(20px);}
/* Badges */
.badge-disabled{display:inline-block;background:#fef3c7;color:#b45309;font-size:0.72rem;font-weight:700;border-radius:99px;padding:2px 9px;margin-top:4px;}
.badge-active{display:inline-block;background:#dcfce7;color:#16a34a;font-size:0.72rem;font-weight:700;border-radius:99px;padding:2px 9px;}
/* Login history */
.login-history-item{display:flex;align-items:center;justify-content:space-between;padding:0.6rem 0;border-bottom:1px solid var(--border);}
.login-history-item:last-child{border-bottom:none;}
/* Skeleton */
.settings-skeleton-wrap{max-width:700px;margin:2.5rem auto;padding:0 5%;}
.skel-line{background:linear-gradient(90deg,#eef2ff 25%,#e0e7ff 50%,#eef2ff 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:10px;}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
/* Visitor preview modal */
.visitor-preview-card{background:#fff;border-radius:20px;padding:1.8rem;max-width:380px;width:90%;box-shadow:0 24px 64px rgba(19,37,115,0.2);}
/* Responsive */
@media(max-width:700px){
  .settings-layout{flex-direction:column;padding:1rem 4% 3rem;}
  .settings-sidebar{width:100%;}
  .settings-sidebar-inner{flex-direction:row;flex-wrap:wrap;gap:6px;position:static;}
  .settings-tab{font-size:0.78rem;padding:0.5rem 0.8rem;}
  .settings-content{padding-left:0;margin-top:1.5rem;}
  .theme-selector-row{flex-wrap:wrap;}
}

/* ══ DARK MODE ══ */
[data-theme="dark"] {
  --navy:#a8b8f8;
  --navy-dark:#c5d0fa;
  --navy-light:#7b91ed;
  --coral:#ff9f9f;
  --slate:#b0bec5;
  --light:#1e2235;
  --white:#12151f;
  --text:#e8eaf0;
  --muted:#8892a4;
  --border:rgba(168,184,248,0.18);
  --shadow:0 4px 24px rgba(0,0,0,0.35);
  --purple:#b197fc;
  --purple-light:#c4b0ff;
  --purple-bg:rgba(177,151,252,0.12);
  --green:#4ade80;
  --amber:#fbbf24;
}
[data-theme="dark"] body,
[data-theme="dark"] {
  background:#0e1120;
  color:#e8eaf0;
}
[data-theme="dark"] nav.main-nav,
[data-theme="dark"] nav[style*="background:#fff"],
[data-theme="dark"] nav[style*="background: #fff"] {
  background:#13172a !important;
  border-bottom-color:rgba(168,184,248,0.15) !important;
}
[data-theme="dark"] .page {
  background:#0e1120;
}
/* Auth gate stays readable */
[data-theme="dark"] #auth-gate {
  background:rgba(10,12,25,0.97);
}
[data-theme="dark"] .auth-card {
  background:#13172a;
  border-color:rgba(168,184,248,0.15);
}
[data-theme="dark"] .auth-input {
  background:#1a1f35;
  border-color:rgba(168,184,248,0.2);
  color:#e8eaf0;
}
[data-theme="dark"] .auth-input::placeholder { color:#596275; }
[data-theme="dark"] .auth-tab { color:#8892a4; }
[data-theme="dark"] .auth-tabs { background:#1a1f35; }
[data-theme="dark"] .auth-tab.active { background:#232843; color:#a8b8f8; }
/* Cards */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .profile-progress-card,
[data-theme="dark"] .visitor-preview-card,
[data-theme="dark"] .delete-modal,
[data-theme="dark"] .db-hero-header {
  background:#13172a !important;
  border-color:rgba(168,184,248,0.15) !important;
}
[data-theme="dark"] .compte-menu {
  background:#13172a;
  border-color:rgba(168,184,248,0.18);
  box-shadow:0 16px 48px rgba(0,0,0,0.5);
}
[data-theme="dark"] .compte-item:hover { background:#1e2235; }
[data-theme="dark"] .compte-sep { border-top-color:rgba(168,184,248,0.12); }
/* Inputs */
[data-theme="dark"] .settings-input {
  background:#1a1f35;
  border-color:rgba(168,184,248,0.2);
  color:#e8eaf0;
}
[data-theme="dark"] .settings-input::placeholder { color:#596275; }
[data-theme="dark"] .settings-input:focus { border-color:#a8b8f8; }
[data-theme="dark"] .settings-input[readonly] { background:#13172a; }
/* Sidebar */
[data-theme="dark"] .settings-sidebar-inner .settings-tab { color:#8892a4; }
[data-theme="dark"] .settings-tab:hover { background:#1e2235; color:#a8b8f8; }
[data-theme="dark"] .settings-tab.active { background:#a8b8f8; color:#0e1120; }
/* Buttons */
[data-theme="dark"] .settings-btn-outline {
  background:#1a1f35;
  border-color:rgba(168,184,248,0.25);
  color:#a8b8f8;
}
[data-theme="dark"] .settings-btn-outline:hover { background:#232843; }
[data-theme="dark"] .back-btn {
  background:#1a1f35 !important;
  border-color:rgba(168,184,248,0.2) !important;
  color:#a8b8f8 !important;
}
/* Theme options */
[data-theme="dark"] .theme-option { border-color:rgba(168,184,248,0.2); color:#8892a4; }
[data-theme="dark"] .theme-option.active { border-color:#a8b8f8; color:#a8b8f8; }
/* Notif rows */
[data-theme="dark"] .notif-row { border-bottom-color:rgba(168,184,248,0.1); }
/* Progress bar */
[data-theme="dark"] .progress-bar-bg { background:rgba(168,184,248,0.15); }
/* Skeleton */
[data-theme="dark"] .skel-line {
  background:linear-gradient(90deg,#1a1f35 25%,#232843 50%,#1a1f35 75%);
  background-size:200% 100%;
}
/* Mobile menu */
[data-theme="dark"] #mobileMenu {
  background:#13172a;
  border-bottom-color:rgba(168,184,248,0.15);
}
[data-theme="dark"] #mobileMenu button { color:#a8b8f8 !important; }
/* Hero section */
[data-theme="dark"] .hero { background:#0e1120; }
[data-theme="dark"] .hero-badge { background:#1a1f35; color:#a8b8f8; border-color:rgba(168,184,248,0.2); }
[data-theme="dark"] .hero h1, [data-theme="dark"] .hero p { color:#e8eaf0; }
/* Sections */
[data-theme="dark"] section { background:#0e1120; }
[data-theme="dark"] #features { background:#0e1120; }
[data-theme="dark"] #videos { background:#13172a !important; }
[data-theme="dark"] #contact { background:#0e1120; }
[data-theme="dark"] .feature-card {
  background:#13172a;
  border-color:rgba(168,184,248,0.15);
}
/* Footer */
[data-theme="dark"] footer, [data-theme="dark"] .footer-main {
  background:#080a14 !important;
  border-top-color:rgba(168,184,248,0.1) !important;
}
[data-theme="dark"] footer button, [data-theme="dark"] footer a { color:#8892a4 !important; }
/* Leaderboard */
[data-theme="dark"] .lb-card, [data-theme="dark"] .lb-row {
  background:#13172a;
  border-color:rgba(168,184,248,0.15);
}
/* Dashboard */
[data-theme="dark"] .db-hero-header { background:linear-gradient(135deg,#13172a,#1a1f35) !important; }
[data-theme="dark"] .dashboard-grid .stat-card { background:#13172a; }
/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background:#13172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background:#2d3454; border-radius:99px; }
/* Toggle slider checked in dark mode */
[data-theme="dark"] input:checked+.toggle-slider { background:#a8b8f8; }
/* Badge */
[data-theme="dark"] .badge-disabled { background:#2d2210; color:#fbbf24; }
[data-theme="dark"] .badge-active { background:#0f2a1a; color:#4ade80; }
/* Login history */
[data-theme="dark"] .login-history-item { border-bottom-color:rgba(168,184,248,0.1); }
/* Advisor panel */
[data-theme="dark"] #advisorPanel {
  background:#13172a;
  border-color:rgba(168,184,248,0.15);
}
[data-theme="dark"] .adv-msg-bubble {
  background:#1a1f35;
  color:#e8eaf0;
}
[data-theme="dark"] .adv-msg.user .adv-msg-bubble {
  background:#232843;
}

/* ═══════════════════════════════════════════════
   PREPALAB MAÎTRISE — AI ADVISOR + TABLETTE
   ═══════════════════════════════════════════════ */

/* Card on home page */
.maitrise-choice-card.c-maitrise {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a9e 100%);
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}
.maitrise-choice-card.c-maitrise::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(167,139,250,0.15);
  border-radius: 50%;
}
.maitrise-choice-card.c-maitrise h3 { color: #fff; }
.maitrise-choice-card.c-maitrise p { color: rgba(255,255,255,0.8); }
.maitrise-choice-card.c-maitrise .maitrise-choice-icon { background: rgba(255,255,255,0.1); border-radius: 14px; }
.maitrise-badge-new {
  position: absolute;
  top: 14px; right: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* MAÎTRISE PAGE LAYOUT */
#maitrise-ai-page {
  min-height: 100vh;
  background: #0b0e1a;
}
.maitrise-ai-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,14,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 4%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.maitrise-ai-nav-title {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.maitrise-ai-nav-title span { color: #a78bfa; }

/* SUBJECT SELECTOR BAR */
.maitrise-subject-bar {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 4%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.maitrise-subject-bar::-webkit-scrollbar { display: none; }
.maitrise-subject-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all .2s;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
}
.maitrise-subject-chip:hover { background: rgba(167,139,250,0.15); color: #a78bfa; border-color: #a78bfa; }
.maitrise-subject-chip.active { background: #a78bfa; color: #fff; border-color: #a78bfa; }

/* THREE-COLUMN LAYOUT */
.maitrise-grid {
  display: grid;
  grid-template-columns: 340px 1fr 300px;
  gap: 0;
  height: calc(100vh - 105px);
  overflow: hidden;
}

/* LEFT: IA ADVISOR */
.maitrise-advisor-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  background: #0d1120;
}
.maitrise-advisor-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.maitrise-advisor-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.maitrise-advisor-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
}
.maitrise-advisor-status {
  font-size: 0.72rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 4px;
}
.maitrise-advisor-status::before {
  content: '';
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.maitrise-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.maitrise-chat-msgs::-webkit-scrollbar { width: 4px; }
.maitrise-chat-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.maitrise-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.maitrise-msg.user { flex-direction: row-reverse; }
.maitrise-msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#a78bfa);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: #fff;
  font-weight: 700;
}
.maitrise-msg.user .maitrise-msg-avatar {
  background: linear-gradient(135deg,#132573,#1e3a9e);
}
.maitrise-msg-bubble {
  max-width: 85%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
}
.maitrise-msg.user .maitrise-msg-bubble {
  background: rgba(19,37,115,0.5);
  border-color: rgba(30,58,158,0.4);
  color: #fff;
}
.maitrise-msg-bubble strong { color: #c4b0ff; }
.maitrise-msg-bubble .latex-block {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #86efac;
  border-left: 3px solid #4ade80;
}
.maitrise-typing {
  display: flex;
  gap: 4px;
  padding: 10px 13px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  width: fit-content;
}
.maitrise-typing span {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite;
}
.maitrise-typing span:nth-child(2) { animation-delay: .2s; }
.maitrise-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.maitrise-input-area {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 12px 14px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  background: #0d1120;
}
.maitrise-textarea {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem;
  padding: 9px 12px;
  resize: none;
  outline: none;
  max-height: 100px;
  overflow-y: auto;
  transition: border-color .2s;
}
.maitrise-textarea::placeholder { color: rgba(255,255,255,0.3); }
.maitrise-textarea:focus { border-color: #a78bfa; }
.maitrise-send-btn {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,#7c3aed,#a78bfa);
  border: none;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: transform .15s;
}
.maitrise-send-btn:hover { transform: scale(1.05); }
.maitrise-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* CENTER: TABLETTE */
.maitrise-tablette-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #111527;
}
.maitrise-tablette-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}
.maitrise-tab-btn {
  flex: 1;
  padding: 13px 8px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Sora', sans-serif;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
}
.maitrise-tab-btn.active {
  color: #fff;
  border-bottom-color: #a78bfa;
  background: rgba(167,139,250,0.08);
}
.maitrise-tab-btn:hover:not(.active) { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.75); }
.maitrise-tab-btn .tab-emoji { font-size: 1rem; }
/* Tab Colors */
.maitrise-tab-btn.tab-visuels.active { border-bottom-color: #60a5fa; }
.maitrise-tab-btn.tab-cours.active { border-bottom-color: #4ade80; }
.maitrise-tab-btn.tab-concours.active { border-bottom-color: #fb923c; background: rgba(251,146,60,0.08); }

.maitrise-tablette-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  /* ✅ Animation de fondu entre onglets */
  animation: fadeTabIn 0.35s ease;
}
@keyframes fadeTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.maitrise-tablette-content::-webkit-scrollbar { width: 4px; }
.maitrise-tablette-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* Empty state */
.maitrise-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  gap: 14px;
  text-align: center;
  color: rgba(255,255,255,0.3);
}
.maitrise-empty-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
}
.maitrise-empty-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.maitrise-empty-sub { font-size: 0.82rem; max-width: 260px; line-height: 1.5; }

/* Visual card */
.maitrise-visual-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.maitrise-visual-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.maitrise-visual-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}
.maitrise-visual-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.maitrise-visual-body { padding: 16px; }
.maitrise-visual-explanation {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-top: 10px;
}

/* Schema/formula block */
.maitrise-schema-block {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #86efac;
  line-height: 1.7;
  white-space: pre-wrap;
}
.maitrise-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.maitrise-formula-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.maitrise-formula-name {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.maitrise-formula-expr {
  font-size: 0.92rem;
  color: #c4b0ff;
  font-weight: 700;
}

/* Example card */
.maitrise-example-card {
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.maitrise-example-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #4ade80;
  margin-bottom: 8px;
}
.maitrise-example-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 8px;
}
.maitrise-example-body {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}
.maitrise-example-body .highlight {
  background: rgba(74,222,128,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #86efac;
  font-family: monospace;
}
.maitrise-solution-toggle {
  margin-top: 10px;
  padding: 7px 14px;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.25);
  border-radius: 8px;
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
}
.maitrise-solution-body {
  display: none;
  margin-top: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* Concours card */
.maitrise-concours-card {
  background: rgba(251,146,60,0.06);
  border: 1px solid rgba(251,146,60,0.2);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}
.maitrise-concours-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fb923c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.maitrise-concours-source {
  font-size: 0.68rem;
  background: rgba(251,146,60,0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

/* RIGHT: LATEX MEMO */
.maitrise-latex-col {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  background: #0d1120;
}
.maitrise-latex-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.maitrise-latex-title {
  font-weight: 700;
  font-size: 0.87rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
}
.maitrise-latex-badge {
  font-size: 0.6rem;
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.maitrise-latex-copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all .2s;
}
.maitrise-latex-copy-btn:hover { background: rgba(96,165,250,0.1); color: #60a5fa; border-color: #60a5fa; }
.maitrise-latex-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.maitrise-latex-scroll::-webkit-scrollbar { width: 3px; }
.maitrise-latex-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.maitrise-latex-empty {
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
  padding: 30px 10px;
  line-height: 1.6;
}
.maitrise-latex-section {
  margin-bottom: 16px;
}
.maitrise-latex-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.maitrise-latex-block {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  color: #a5f3fc;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
}
.maitrise-rendered-block {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 0.83rem;
  line-height: 1.7;
  min-height: 36px;
}
.maitrise-astuce-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.maitrise-astuce-item:last-child { border-bottom: none; }
.maitrise-astuce-dot {
  width: 6px; height: 6px;
  background: #fbbf24;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.maitrise-piege-block {
  background: rgba(239,68,68,0.18);
  border: 1.5px solid rgba(239,68,68,0.45);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #fecaca; /* ✅ Contraste élevé */
  line-height: 1.6;
  box-shadow: 0 0 0 2px rgba(239,68,68,0.06);
}
.maitrise-piege-label {
  font-weight: 800;
  color: #ff6b6b; /* ✅ Alerte bien visible */
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 900px) {
  .maitrise-grid {
    grid-template-columns: 1fr;
    height: auto;
    overflow: auto;
  }
  .maitrise-advisor-col,
  .maitrise-tablette-col,
  .maitrise-latex-col {
    min-height: 360px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .maitrise-latex-col { border-bottom: none; }
}

/* Quick prompts for Maîtrise */
.maitrise-quick-prompts {
  padding: 8px 14px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.maitrise-quick-btn {
  padding: 4px 11px;
  font-size: 0.72rem;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px;
  color: #c4b0ff;
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  transition: all .15s;
}
.maitrise-quick-btn:hover { background: rgba(167,139,250,0.2); }

/* ══════════════════════════════════════════════════════
   PREPALAB v2 — NEW FEATURES CSS
   ══════════════════════════════════════════════════════ */

/* ── Quick-action buttons after each AI reply ── */
.maitrise-action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 10px 46px;
}
.maitrise-action-btns button {
  font-family: 'Sora', sans-serif;
  font-size: 0.7rem;
  padding: 4px 11px;
  border-radius: 12px;
  border: 1px solid rgba(96,165,250,0.25);
  background: rgba(96,165,250,0.08);
  color: #93c5fd;
  cursor: pointer;
  transition: all .15s;
}
.maitrise-action-btns button:hover {
  background: rgba(96,165,250,0.2);
  border-color: rgba(96,165,250,0.4);
  transform: translateY(-1px);
}

/* ── Dynamic Chart.js wrapper ── */
.maitrise-chart-wrapper {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 14px 8px;
  margin-bottom: 14px;
}

/* ── Mermaid diagram wrapper ── */
.maitrise-mermaid-wrap {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  overflow-x: auto;
  font-size: 0.8rem;
}
.maitrise-mermaid-wrap svg {
  max-width: 100%;
  height: auto;
}

/* ── Schema block improvements ── */
.maitrise-schema-block {
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(96,165,250,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #86efac;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.6;
  margin-bottom: 12px;
  border-left: 3px solid #60a5fa;
}

/* ── Typing indicator animation ── */
.maitrise-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 14px 14px 14px 4px;
  width: fit-content;
}
.maitrise-typing span {
  width: 7px; height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}
.maitrise-typing span:nth-child(2) { animation-delay: 0.2s; }
.maitrise-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Radar chart for competency ── */
.maitrise-radar-section {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Visual explanation text ── */
.maitrise-visual-explanation {
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(96,165,250,0.3);
}

/* ── Concours card source badge ── */
.maitrise-concours-source {
  font-size: 0.7rem;
  background: rgba(251,146,60,0.15);
  border: 1px solid rgba(251,146,60,0.3);
  color: #fb923c;
  padding: 2px 9px;
  border-radius: 10px;
  margin-left: 8px;
  font-weight: 700;
}

/* ── Responsive fix for action buttons on mobile ── */
@media (max-width: 700px) {
  .maitrise-action-btns { padding-left: 14px; }
  .maitrise-chart-wrapper canvas { max-height: 180px !important; }
}

/* ── KaTeX LaTeX rendering — dark mode overrides ── */
.katex { color: #e2e8f0 !important; font-size: 1em; }
.katex-display { color: #f1f5f9 !important; margin: 10px 0; overflow-x: auto; }
.katex-display > .katex { font-size: 1.1em; }
.katex .base { color: inherit; }
/* Inline math inside maitrise cards */
.maitrise-example-card .katex,
.maitrise-concours-card .katex,
.maitrise-rendered-block .katex,
.maitrise-msg-bubble .katex { color: #93c5fd !important; }
.maitrise-example-card .katex-display,
.maitrise-concours-card .katex-display { color: #bfdbfe !important; }
/* ÉNONCÉ block */
.maitrise-example-enonce {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  padding: 10px 0;
}


/* ══════════════════════════════════════════════
   🎯 3D PREMIUM OVERRIDES — PrepaLab Maîtrise IA
   ══════════════════════════════════════════════ */

/* ── Cartes en relief global ── */
.school-card, .article-card, .choice-btn,
.drive-item, .drive-card,
.maitrise-example-card, .maitrise-concours-card,
.concours-card, .menu-item, .prog-card,
.notif-item, .flashcard-front, .flashcard-back {
  box-shadow: var(--shadow-3d) !important;
  transition: transform 0.25s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.25s ease !important;
  transform: translateY(0) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
  position: relative;
}

/* ── Effet survol : monte sur l'axe Z ── */
.school-card:hover, .article-card:hover, .choice-btn:hover,
.drive-item:hover, .drive-card:hover,
.maitrise-example-card:hover, .maitrise-concours-card:hover,
.concours-card:hover, .menu-item:hover, .prog-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow:
    0px 24px 44px rgba(19,37,115,0.14),
    0px 6px 12px rgba(19,37,115,0.06),
    inset 0px 1px 0px rgba(255,255,255,0.9) !important;
}

/* ── Boutons physiques ── */
.main-btn, .action-btn, .nav-talaba-btn,
.subject-btn, .topic-btn, .send-btn,
.header-btn, .modal-btn, .quiz-btn {
  box-shadow: var(--shadow-btn-3d) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  position: relative;
}

.main-btn:hover, .action-btn:hover,
.subject-btn:hover, .topic-btn:hover,
.header-btn:hover, .modal-btn:hover, .quiz-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 8px 20px rgba(19,37,115,0.22),
    0 3px 8px rgba(19,37,115,0.12),
    inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

.main-btn:active, .action-btn:active,
.subject-btn:active, .topic-btn:active,
.quiz-btn:active {
  transform: translateY(2px) !important;
  box-shadow: var(--shadow-btn-pressed) !important;
}

/* ── Panneau latéral en verre ── */
.sidebar, .maitrise-sidebar, .left-panel {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 4px 0 32px rgba(19,37,115,0.08), inset -1px 0 0 rgba(255,255,255,0.6) !important;
}

/* ── Fenêtres modales glassmorphism ── */
.modal, .popup, .dropdown-menu,
.compte-menu, .tooltip-card {
  background: rgba(255,255,255,0.92) !important;
  backdrop-filter: blur(16px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(130%) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    0 6px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8) !important;
}

/* ── Input fields avec reflet lumineux ── */
.auth-input:focus,
input:focus, textarea:focus, select:focus {
  box-shadow:
    0 0 0 3px rgba(19,37,115,0.1),
    0 2px 8px rgba(19,37,115,0.08),
    inset 0 1px 3px rgba(0,0,0,0.04) !important;
}

/* ── Tags / Badges en relief ── */
.badge, .tag, .pill, .subject-tag,
.plan-badge, .status-pill {
  box-shadow: 0 2px 6px rgba(19,37,115,0.10), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.badge:hover, .tag:hover, .pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(19,37,115,0.14), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ── Coins arrondis harmonisés ── */
.compte-menu { border-radius: 20px !important; }
.delete-modal { border-radius: 20px !important; box-shadow: 0 24px 60px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.6) !important; }

/* ── Reflet lumineux sur la nav flottante ── */
nav.main-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  border-radius: 999px;
  pointer-events: none;
}

/* ── Background principal avec texture subtile ── */
body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(19,37,115,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(124,58,237,0.03) 0%, transparent 60%),
    var(--white) !important;
}

/* ── Dark mode : préserver les effets 3D ── */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .school-card,
[data-theme="dark"] .drive-item,
[data-theme="dark"] .drive-card,
[data-theme="dark"] .choice-btn {
  box-shadow:
    0px 1px 2px rgba(0,0,0,0.3),
    0px 4px 12px rgba(0,0,0,0.25),
    0px 16px 32px rgba(0,0,0,0.2),
    inset 0px 1px 0px rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
}

[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .school-card:hover,
[data-theme="dark"] .drive-item:hover,
[data-theme="dark"] .drive-card:hover {
  transform: translateY(-6px) scale(1.015) !important;
  box-shadow:
    0px 28px 50px rgba(0,0,0,0.35),
    0px 6px 12px rgba(0,0,0,0.18),
    inset 0px 1px 0px rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] nav.main-nav {
  background: rgba(15,22,60,0.88) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] nav.main-nav::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ══════════════════════════════════════════════════════════
   ESPACE CPGE — STYLES
══════════════════════════════════════════════════════════ */

/* Carte Pack CPGE sur la page Talaba */
.pack-cpge {
  background: linear-gradient(135deg, rgba(30,58,138,0.06) 0%, rgba(96,165,250,0.08) 100%);
  border-color: rgba(59,130,246,0.25);
}
.pack-cpge:hover {
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59,130,246,0.15);
}
.pack-cpge .pack-school-tag {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
  border: 1px solid rgba(59,130,246,0.2);
}

/* Animation douce lors des transitions de vues CPGE */
.cpge-view {
  animation: cpgeFadeIn 0.25s ease-out forwards;
}

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

/* Conteneur principal CPGE */
.cpge-container {
  width: 100%;
}

/* Hover sur l'icône SVG e-CPGE */
.pack-card img,
.pack-cpge .pack-icon svg {
  transition: transform 0.2s ease;
}
.pack-cpge:hover .pack-icon svg {
  transform: scale(1.07);
}

/* ══ CPGE : Vues à 2 cartes — grandes cartes centrées ══ */

/* Vue Année (SUP / SPÉ) — 2 grandes cartes centrées */
#cpge-view-annee .pd-branches,
#cpge-view-phasecnc .pd-branches {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 860px;
  margin: 3rem auto;
  padding: 0 5%;
}

#cpge-view-annee .branch-card,
#cpge-view-phasecnc .branch-card {
  flex: 0 1 360px;
  min-height: 260px;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px solid var(--border);
  box-shadow: 0 4px 20px rgba(19,37,115,0.06);
}

#cpge-view-annee .branch-card .branch-icon,
#cpge-view-phasecnc .branch-card .branch-icon {
  margin-bottom: 0.5rem;
}

#cpge-view-annee .branch-card .branch-icon i,
#cpge-view-phasecnc .branch-card .branch-icon i {
  width: 56px !important;
  height: 56px !important;
}

#cpge-view-annee .branch-card h3,
#cpge-view-phasecnc .branch-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

#cpge-view-annee .branch-card p,
#cpge-view-phasecnc .branch-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Vue Menu principal — 3 cartes bien équilibrées */
#cpge-view-menu .pd-branches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1050px;
  margin: 3rem auto;
  padding: 0 5%;
}

#cpge-view-menu .branch-card {
  min-height: 220px;
  padding: 2.5rem 2rem;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

#cpge-view-menu .branch-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

/* Vue Filière & Matière — grille adaptative */
#cpge-view-filiere .pd-branches,
#cpge-view-matiere .pd-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1050px;
  margin: 3rem auto;
  padding: 0 5%;
}

#cpge-view-filiere .branch-card,
#cpge-view-matiere .branch-card {
  min-height: 180px;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

/* Page CPGE — fond dégradé bleu cohérent */
#cpge-page {
  background: linear-gradient(160deg, #f0f4ff 0%, #ffffff 60%);
  min-height: 100vh;
}

/* Responsive mobile */
@media (max-width: 640px) {
  #cpge-view-annee .pd-branches,
  #cpge-view-phasecnc .pd-branches {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  #cpge-view-annee .branch-card,
  #cpge-view-phasecnc .branch-card {
    width: 100%;
    min-height: 180px;
    padding: 2rem 1.5rem;
  }
  #cpge-view-menu .pd-branches {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════
   UDEMY PLAYER — INTÉGRÉ DANS PREPALAB FOR TALABA
══════════════════════════════════════════════════════════ */

/* View system inside video-course-page */
#video-course-page .uv-view { display:none; }
#video-course-page .uv-view[style*="display:block"],
#video-course-page .uv-view[style*="display:flex"] { display:block; }
#uv-player { display:none; flex-direction:column; }
#uv-player[style*="display:flex"],
#uv-player.uv-active { display:flex !important; height:calc(100vh - 0px); overflow:hidden; }

/* Top bar (sem + chap views) */
.uv-topbar {
  background:#fff;border-bottom:1px solid rgba(19,37,115,0.12);
  padding:0 2rem;height:62px;display:flex;align-items:center;
  gap:1.25rem;position:sticky;top:0;z-index:50;
  box-shadow:0 2px 12px rgba(19,37,115,0.06);
}
.uv-topbar-sep { color:rgba(19,37,115,0.2);font-size:0.9rem; }
.uv-topbar-title {
  font-size:1rem;font-weight:700;color:#2E3031;
  flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.uv-top-progress { display:flex;align-items:center;gap:8px;flex-shrink:0; }
.uv-prog-track { width:100px;height:6px;background:rgba(19,37,115,0.12);border-radius:50px;overflow:hidden; }
.uv-prog-bar { height:100%;background:#16a34a;border-radius:50px;transition:width .4s; }
.uv-prog-label { font-size:0.75rem;font-weight:700;color:#16a34a; }

/* Semester grid */
.uv-sem-main { max-width:1100px;margin:0 auto;padding:2rem 1.5rem;display:flex;flex-direction:column;gap:2.5rem; }
.uv-sem-section-header { display:flex;align-items:center;gap:10px;margin-bottom:1.25rem; }
.uv-sem-dot { width:12px;height:12px;border-radius:50%;flex-shrink:0; }
.uv-sem-section-header h2 { font-size:1.25rem;font-weight:800;color:#2E3031; }
.uv-sem-badge { font-size:0.72rem;font-weight:700;padding:3px 10px;border-radius:50px;background:#F5F7FF;color:#6b7280;border:1px solid rgba(19,37,115,0.12); }
.uv-sem-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem; }

/* Course cards */
.uv-course-card {
  background:#fff;border:2px solid rgba(19,37,115,0.12);border-radius:14px;
  overflow:hidden;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;
}
.uv-course-card:hover { transform:translateY(-4px);box-shadow:0 16px 40px rgba(0,0,0,0.1);border-color:transparent; }
.uvc-stripe { height:5px;width:100%; }
.uvc-body { padding:1.25rem 1.1rem;display:flex;flex-direction:column;gap:0.5rem;flex:1; }
.uvc-emoji { font-size:2rem;line-height:1; }
.uvc-name { font-size:0.97rem;font-weight:800;color:#2E3031;line-height:1.3; }
.uvc-sem { display:inline-flex;margin-top:auto;padding:2px 9px;border-radius:50px;font-size:0.68rem;font-weight:700;width:fit-content; }

/* Chapters view */
.uv-chap-hero { }
.uv-chap-inner { padding:2rem 5%;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap; }
.uv-chap-emoji { font-size:3.5rem;line-height:1;flex-shrink:0; }
.uv-chap-text { flex:1;min-width:0; }
.uv-chap-name { font-size:1.5rem;font-weight:800;color:#fff;margin-bottom:0.3rem; }
.uv-chap-sub { font-size:0.9rem;color:rgba(255,255,255,0.7); }
.uv-chap-sem-badge { display:inline-block;margin-top:0.6rem;padding:3px 12px;border-radius:50px;background:rgba(255,255,255,0.2);color:#fff;font-size:0.75rem;font-weight:700;border:1px solid rgba(255,255,255,0.3); }
.uv-chap-main { max-width:860px;margin:0 auto;padding:2rem 1.5rem; }
.uv-chap-grid { display:flex;flex-direction:column;gap:0.75rem; }
.uv-chap-card {
  background:#fff;border:1.5px solid rgba(19,37,115,0.12);border-radius:14px;
  padding:1.1rem 1.25rem;display:flex;align-items:center;gap:1rem;cursor:pointer;transition:all .15s;
}
.uv-chap-card:hover { box-shadow:0 4px 24px rgba(19,37,115,0.10);border-color:rgba(19,37,115,0.2);transform:translateX(3px); }
.uv-chap-num { width:38px;height:38px;border-radius:10px;background:#F5F7FF;color:#132573;font-weight:800;font-size:0.9rem;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.uv-chap-card-info { flex:1;min-width:0; }
.uv-chap-card-title { font-size:0.95rem;font-weight:700;color:#2E3031; }
.uv-chap-card-meta { font-size:0.75rem;color:#6b7280;margin-top:4px;display:flex;align-items:center;gap:8px; }
.uv-mini-bar { height:3px;background:rgba(19,37,115,0.12);border-radius:50px;overflow:hidden;margin-top:6px;width:100px; }

/* Player header */
.uv-player-header {
  background:#1c1d1f;border-bottom:1px solid #3e4143;
  height:56px;display:flex;align-items:center;justify-content:space-between;
  padding:0 1.25rem;flex-shrink:0;gap:1rem;z-index:10;
}
.uvph-left { display:flex;align-items:center;gap:0.75rem;min-width:0;flex:1; }
.uvph-back { background:none;border:1px solid #3e4143;color:#f7f9fa;width:32px;height:32px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:all .15s; }
.uvph-back:hover { background:#2d2f31; }
.uvph-logo { font-size:1rem;font-weight:800;color:#f7f9fa;display:flex;align-items:center;gap:6px;white-space:nowrap;flex-shrink:0;font-family:'Sora',sans-serif; }
.uvph-logo span { color:#FF8D8D; }
.uvph-sep { color:#3e4143;flex-shrink:0; }
.uvph-title { font-size:0.88rem;font-weight:600;color:#9e9ea7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:'Sora',sans-serif; }
.uvph-right { display:flex;align-items:center;gap:0.85rem;flex-shrink:0; }
.uvph-prog-wrap { display:flex;align-items:center;gap:8px; }
.uvph-prog-bg { width:90px;height:5px;background:#3e4143;border-radius:50px;overflow:hidden; }
.uvph-prog-bar { height:100%;background:#16a34a;border-radius:50px;transition:width .4s; }
.uvph-prog-label { font-size:0.72rem;font-weight:700;color:#9e9ea7;white-space:nowrap;font-family:'Sora',sans-serif; }
.uvph-toggle { background:none;border:1px solid #3e4143;color:#9e9ea7;width:32px;height:32px;border-radius:8px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;flex-shrink:0; }
.uvph-toggle:hover { background:#2d2f31;color:#f7f9fa; }

/* Player body */
.uv-player-body { flex:1;display:flex;overflow:hidden;min-height:0; }
.uv-player-left { flex:1;overflow-y:auto;min-width:0;background:#000;display:flex;flex-direction:column; }
.uv-video-wrap {
  position:relative;width:100%;background:#000;
  aspect-ratio:16/9;max-height:calc(100vh - 56px - 160px);flex-shrink:0;
}
.uv-video-wrap iframe, .uv-video-wrap video {
  position:absolute;inset:0;width:100%;height:100%;border:none;display:block;
}
.uv-no-video {
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:0.75rem;background:#111;
  color:rgba(255,255,255,0.25);font-size:0.85rem;
}
.uv-player-info { background:#fff;padding:1.5rem 1.75rem;border-bottom:1px solid rgba(19,37,115,0.12);flex-shrink:0; }
.uv-chap-label { font-size:0.72rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px; }
.uv-sec-title { font-size:1.25rem;font-weight:800;color:#2E3031;margin-bottom:6px;line-height:1.3; }
.uv-sec-desc { font-size:0.88rem;color:#6b7280;line-height:1.6; }
.uv-tabs { background:#fff;border-bottom:2px solid rgba(19,37,115,0.12);display:flex;flex-shrink:0; }
.uv-tab { padding:0.75rem 1.5rem;background:none;border:none;font-family:'Sora',sans-serif;font-size:0.85rem;font-weight:600;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s; }
.uv-tab:hover { color:#132573; }
.uv-tab.active { color:#132573;border-bottom-color:#132573; }
.uv-tab-content { background:#fff;padding:1.5rem 1.75rem;flex:1;min-height:120px; }
.uv-overview-text { font-size:0.88rem;color:#6b7280;line-height:1.7; }
.uv-notes-area { width:100%;min-height:160px;border:1.5px solid rgba(19,37,115,0.12);border-radius:10px;padding:0.75rem;font-family:'Sora',sans-serif;font-size:0.88rem;resize:vertical;outline:none;color:#2E3031; }
.uv-notes-area:focus { border-color:#132573; }

/* Player sidebar */
.uv-sidebar {
  width:380px;flex-shrink:0;background:#1c1d1f;
  display:flex;flex-direction:column;overflow:hidden;
  border-left:1px solid #3e4143;transition:width .3s,opacity .3s;
}
.uv-sidebar.hidden { width:0;opacity:0;pointer-events:none;border:none; }
.uv-sidebar-top { padding:1rem 1.25rem;border-bottom:1px solid #3e4143;display:flex;align-items:center;justify-content:space-between;flex-shrink:0; }
.uv-sidebar-title { font-size:0.88rem;font-weight:800;color:#f7f9fa;font-family:'Sora',sans-serif; }
.uv-sidebar-close { background:none;border:none;color:#9e9ea7;cursor:pointer;font-size:1rem;line-height:1;padding:2px;transition:color .15s; }
.uv-sidebar-close:hover { color:#f7f9fa; }
.uv-sidebar-body { flex:1;overflow-y:auto; }
.uv-sidebar-body::-webkit-scrollbar { width:5px; }
.uv-sidebar-body::-webkit-scrollbar-thumb { background:#3e4143;border-radius:10px; }

/* Chapter accordion */
.uv-ch-group { border-bottom:1px solid #3e4143; }
.uv-ch-header { padding:0.9rem 1.25rem;cursor:pointer;display:flex;align-items:flex-start;gap:0.75rem;transition:background .15s;background:#2d2f31; }
.uv-ch-header:hover { background:rgba(255,255,255,0.05); }
.uv-ch-arrow { font-size:0.65rem;color:#9e9ea7;margin-top:4px;transition:transform .2s;flex-shrink:0;display:inline-block; }
.uv-ch-arrow.open { transform:rotate(0deg); }
.uv-ch-arrow:not(.open) { transform:rotate(-90deg); }
.uv-ch-title-text { font-size:0.83rem;font-weight:700;color:#f7f9fa;line-height:1.35;margin-bottom:3px;font-family:'Sora',sans-serif; }
.uv-ch-meta-text { font-size:0.7rem;color:#9e9ea7;font-family:'Sora',sans-serif; }
.uv-ch-sections { max-height:0;overflow:hidden;transition:max-height .28s ease; }
.uv-ch-sections.open { max-height:2000px; }

/* Section rows */
.uv-sec-row { display:flex;align-items:flex-start;gap:0.75rem;padding:0.75rem 1.25rem 0.75rem 1.5rem;cursor:pointer;transition:background .15s;border-bottom:1px solid rgba(255,255,255,0.04); }
.uv-sec-row:hover { background:rgba(255,255,255,0.05); }
.uv-sec-row.active { background:rgba(255,255,255,0.08); }
.uv-sec-row.active .uv-sec-title-text { color:#fff;font-weight:700; }
.uv-sec-check { width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,0.25);display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer;transition:all .2s;font-size:0.7rem;color:#fff;margin-top:1px; }
.uv-sec-check:hover { border-color:rgba(255,255,255,0.6); }
.uv-sec-check.done { background:#16a34a;border-color:#16a34a; }
.uv-sec-info { flex:1;min-width:0; }
.uv-sec-title-text { font-size:0.83rem;color:rgba(255,255,255,0.75);line-height:1.35;margin-bottom:3px;font-family:'Sora',sans-serif; }
.uv-sec-type-label { font-size:0.68rem;color:#9e9ea7;font-family:'Sora',sans-serif; }

/* QCM */
.uv-qcm-tab { display:flex;flex-direction:column;gap:1.5rem; }
.uv-qcm-item { background:#F5F7FF;border:1.5px solid rgba(19,37,115,0.12);border-radius:12px;padding:1.25rem;transition:border-color .2s; }
.uv-qcm-item.correct { border-color:#16a34a;background:rgba(22,163,74,.05); }
.uv-qcm-item.wrong { border-color:#dc2626;background:rgba(220,38,38,.04); }
.uv-qcm-q-num { font-size:.72rem;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem; }
.uv-qcm-q-text { font-size:.95rem;font-weight:700;color:#2E3031;margin-bottom:1rem;line-height:1.5; }
.uv-qcm-opts { display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem; }
.uv-qcm-opt { display:flex;align-items:center;gap:.7rem;padding:.6rem .85rem;border:1.5px solid rgba(19,37,115,0.12);border-radius:9px;cursor:pointer;transition:all .15s;background:#fff;user-select:none; }
.uv-qcm-opt:hover { border-color:#132573;background:#F5F7FF; }
.uv-qcm-opt input[type=radio] { display:none; }
.uv-qcm-opt:has(input:checked) { border-color:#132573;background:rgba(19,37,115,.06); }
.uv-qcm-opt.is-correct { border-color:#16a34a!important;background:rgba(22,163,74,.1)!important; }
.uv-qcm-opt-letter { width:26px;height:26px;border-radius:50%;background:#F5F7FF;border:1.5px solid rgba(19,37,115,0.12);display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:800;color:#132573;flex-shrink:0; }
.uv-qcm-opt:has(input:checked) .uv-qcm-opt-letter { background:#132573;color:#fff;border-color:#132573; }
.uv-qcm-opt.is-correct .uv-qcm-opt-letter { background:#16a34a;color:#fff;border-color:#16a34a; }
.uv-qcm-opt-text { font-size:.88rem;color:#2E3031;flex:1; }
.uv-qcm-actions { display:flex;gap:.6rem;margin-bottom:.75rem; }
.uv-qcm-btn { padding:.5rem 1.1rem;border-radius:9px;font-family:'Sora',sans-serif;font-size:.82rem;font-weight:700;cursor:pointer;border:none;transition:all .15s; }
.uv-qcm-btn.verify { background:#132573;color:#fff; }
.uv-qcm-btn.verify:hover { background:#1e3a9e; }
.uv-qcm-btn.correction { background:#F5F7FF;color:#132573;border:1.5px solid rgba(19,37,115,0.12); }
.uv-qcm-btn.correction:hover { background:#e8ecf8;border-color:#132573; }
.uv-qcm-feedback { display:none;border-radius:9px;padding:.75rem 1rem;font-size:.85rem; }
.uv-qcm-result { display:flex;align-items:flex-start;gap:.65rem; }
.uv-qcm-result-icon { font-size:1.1rem;flex-shrink:0;margin-top:1px; }
.uv-qcm-result.correct { background:rgba(22,163,74,.1);border:1px solid rgba(22,163,74,.25);border-radius:9px;padding:.7rem 1rem; }
.uv-qcm-result.wrong { background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.2);border-radius:9px;padding:.7rem 1rem;color:#b91c1c; }
.uv-qcm-result.correction { background:rgba(19,37,115,.07);border:1px solid rgba(19,37,115,.15);border-radius:9px;padding:.7rem 1rem;color:#132573; }
.uv-qcm-expl { margin-top:.4rem;font-size:.82rem;color:#6b7280;line-height:1.6; }
.uv-qcm-count { display:inline-flex;align-items:center;justify-content:center;background:#7c3aed;color:#fff;border-radius:50px;font-size:.65rem;font-weight:700;padding:1px 6px;margin-left:4px; }

/* Utilities */
.uv-loading { text-align:center;padding:3rem;color:#6b7280;font-size:0.88rem;display:flex;align-items:center;justify-content:center;gap:10px; }
.uv-spinner { display:inline-block;width:20px;height:20px;border:3px solid rgba(0,0,0,0.08);border-top-color:#132573;border-radius:50%;animation:spin .7s linear infinite; }
.uv-empty { text-align:center;padding:3rem 2rem;background:#fff;border-radius:14px;border:2px dashed rgba(19,37,115,0.12); }
.uv-empty h3 { font-size:1rem;font-weight:700;color:#2E3031;margin-bottom:0.5rem; }
.uv-empty p { font-size:0.85rem;color:#6b7280; }

/* Responsive */
@media(max-width:768px){
  .uv-sidebar { position:fixed;right:0;top:56px;bottom:0;width:100%;z-index:20;transform:translateX(100%);transition:transform .3s; }
  .uv-sidebar.mobile-open { transform:translateX(0); }
  .uv-sidebar.hidden { display:flex!important;width:100%;opacity:1;pointer-events:auto;transform:translateX(100%); }
  .uv-player-body { flex-direction:column; }
  .uv-video-wrap { aspect-ratio:16/9;max-height:none; }
  .uvph-prog-wrap { display:none; }
  .uv-sem-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
  .uv-topbar { padding:0 1rem; }
}
@media(max-width:480px){
  .uv-sem-grid { grid-template-columns:1fr 1fr; }
  .uv-sem-main { padding:1.25rem 1rem; }
}

/* ═══════════════════════════════════════════════════
   HERO BUTTONS 3D
═══════════════════════════════════════════════════ */
.hero-btn-3d {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0.78rem 1.7rem; font-size: 0.96rem; font-weight: 800;
  font-family: 'Sora', sans-serif; border: none; border-radius: 10px;
  cursor: pointer; text-decoration: none; transition: all 0.12s ease;
  position: relative; top: 0;
}
.hero-btn-postbac {
  background: #fff; color: #e53e3e;
  border: 2.5px solid #e53e3e;
  box-shadow: 0 6px 0 #9b1c1c, 0 12px 28px rgba(229,62,62,0.22);
}
.hero-btn-postbac:hover { top: -3px; box-shadow: 0 9px 0 #9b1c1c, 0 18px 32px rgba(229,62,62,0.3); }
.hero-btn-postbac:active { top: 4px; box-shadow: 0 2px 0 #9b1c1c; }

.hero-btn-cpge {
  background: transparent; color: #fff;
  border: 2.5px solid rgba(255,255,255,0.75);
  box-shadow: 0 6px 0 rgba(255,255,255,0.18), 0 12px 28px rgba(0,0,0,0.18);
}
.hero-btn-cpge:hover { top: -3px; background: rgba(255,255,255,0.1); box-shadow: 0 9px 0 rgba(255,255,255,0.22), 0 18px 32px rgba(0,0,0,0.22); }
.hero-btn-cpge:active { top: 4px; box-shadow: 0 2px 0 rgba(255,255,255,0.12); }

/* ═══════════════════════════════════════════════════
   NEURAL-COACH SECTION
═══════════════════════════════════════════════════ */
.neural-coach-section { background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 100%); padding: 5rem 0; }
.neural-coach-section h2 { margin-bottom: 0.25rem; }

.tactical-container { display: flex; flex-direction: column; align-items: center; gap: 2.5rem; margin-top: 2.5rem; }

/* Selector buttons */
.selector-3d {
  display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center;
}
.btn-tactic {
  padding: 0.6rem 1.3rem; border-radius: 10px; font-family: 'Sora', sans-serif;
  font-size: 0.88rem; font-weight: 700; cursor: pointer; border: none;
  background: #fff; color: var(--navy);
  box-shadow: 6px 6px 12px rgba(19,37,115,0.12), -3px -3px 8px rgba(255,255,255,0.9);
  transition: all 0.15s; position: relative; top: 0;
}
.btn-tactic:hover { top: -2px; box-shadow: 8px 8px 16px rgba(19,37,115,0.16), -4px -4px 10px rgba(255,255,255,0.95); }
.btn-tactic:active { top: 3px; box-shadow: 2px 2px 6px rgba(19,37,115,0.15), inset 2px 2px 6px rgba(19,37,115,0.08); }
.btn-tactic.active {
  background: var(--navy); color: #fff;
  box-shadow: 4px 4px 10px rgba(19,37,115,0.35), inset 2px 2px 6px rgba(0,0,0,0.15);
  top: 2px;
}

/* 3D Card */
.card-3d-wrap { perspective: 1200px; width: 100%; max-width: 680px; }
.card-3d {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: 0 20px 60px rgba(19,37,115,0.13), 0 4px 18px rgba(19,37,115,0.08),
              inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1.5px solid rgba(19,37,115,0.08);
  transform: rotateX(2deg) rotateY(-1deg);
  transition: transform 0.55s cubic-bezier(.25,.8,.25,1), box-shadow 0.55s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}
.card-3d::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--coral));
  border-radius: 20px 20px 0 0;
}
.card-3d:hover { transform: rotateX(0deg) rotateY(0deg) translateY(-6px); box-shadow: 0 32px 72px rgba(19,37,115,0.18), 0 8px 24px rgba(19,37,115,0.1); }
.card-3d.flipping { animation: card-flip 0.5s cubic-bezier(.25,.8,.25,1); }
@keyframes card-flip {
  0%   { transform: rotateY(0deg) rotateX(2deg); opacity: 1; }
  40%  { transform: rotateY(90deg) rotateX(0deg) scale(0.95); opacity: 0; }
  60%  { transform: rotateY(-90deg) rotateX(0deg) scale(0.95); opacity: 0; }
  100% { transform: rotateY(0deg) rotateX(2deg); opacity: 1; }
}

.tactic-icon { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.card-3d h3 { font-size: 1.35rem; font-weight: 900; color: var(--navy); margin-bottom: 1.75rem; }

/* Pillars */
.pillars { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.75rem; }
.pillar {
  padding: 1rem 1.25rem; border-radius: 12px;
  border-left: 4px solid transparent;
  background: var(--light);
}
.pillar-scan  { border-left-color: #3b82f6; background: rgba(59,130,246,0.06); }
.pillar-draft { border-left-color: #8b5cf6; background: rgba(139,92,246,0.06); }
.pillar-rush  { border-left-color: var(--coral); background: rgba(255,141,141,0.07); }

.pillar-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 800; color: var(--text);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0.4rem;
}
.pillar-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: 0.72rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pillar-scan  .pillar-num { background: #3b82f6; }
.pillar-draft .pillar-num { background: #8b5cf6; }
.pillar-rush  .pillar-num { background: var(--coral); }
.pillar p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* AI tip */
.ai-tip {
  background: linear-gradient(135deg, rgba(19,37,115,0.06), rgba(19,37,115,0.02));
  border: 1.5px dashed rgba(19,37,115,0.18);
  border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.ai-tip-badge {
  font-size: 0.72rem; font-weight: 800; color: var(--navy);
  text-transform: uppercase; letter-spacing: .08em;
}
.ai-tip p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; font-style: italic; }

@media (max-width: 600px) {
  .card-3d { padding: 1.75rem 1.25rem 1.5rem; }
  .card-3d h3 { font-size: 1.1rem; }
  .hero-btn-3d { font-size: 0.85rem; padding: 0.7rem 1.2rem; }
}

/* ══════════════════════════════════════════════════════════
   PREPALAB MENTOR — Complete Styles
   ══════════════════════════════════════════════════════════ */

/* ─── TOPBAR ─── */
.mentor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.mentor-topbar-left { display: flex; align-items: center; gap: 12px; }
.mentor-logo-glow {
  position: absolute;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(167,139,250,0.3), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.mentor-logo-icon { font-size: 1.6rem; position: relative; }
.mentor-brand { font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.mentor-brand-accent { color: #a78bfa; }
.mentor-status-line { font-size: 0.7rem; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.mentor-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; animation: mentor-pulse 2s infinite; display: inline-block; }
@keyframes mentor-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
.mentor-topbar-right { display: flex; align-items: center; gap: 8px; }
.mentor-nav-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  font-family: 'Sora', sans-serif;
  transition: background 0.2s;
}
.mentor-nav-btn:hover { background: rgba(255,255,255,0.13); }
.mentor-nav-back { border-color: rgba(167,139,250,0.3); color: #a78bfa; }
.mentor-fiche-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #a78bfa;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 4px;
}

/* ─── LAYOUT ─── */
.mentor-layout {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* ─── SIDEBAR ─── */
.mentor-sidebar {
  width: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: width 0.3s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.mentor-sidebar.open {
  width: 300px;
  overflow-y: auto;
}
.mentor-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
.mentor-sidebar-close { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1rem; }
.mentor-sidebar-upload { padding: 12px; }
.mentor-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(167,139,250,0.3);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
  min-height: 80px;
}
.mentor-upload-zone:hover { border-color: rgba(167,139,250,0.6); }
.mentor-fiches-list { padding: 0 12px; flex: 1; }
.mentor-fiche-empty { font-size: 0.72rem; color: rgba(255,255,255,0.3); text-align: center; padding: 1rem 0; line-height: 1.5; white-space: normal; }
.mentor-fiche-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}
.mentor-fiche-item.active { border-color: #a78bfa; background: rgba(167,139,250,0.1); }
.mentor-fiche-name { font-size: 0.75rem; color: rgba(255,255,255,0.8); overflow: hidden; text-overflow: ellipsis; }
.mentor-sidebar-section { padding: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.mentor-sidebar-sub-title { font-size: 0.72rem; color: #a78bfa; font-weight: 600; margin-bottom: 8px; }
.mentor-relevant-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 8px;
  margin-bottom: 6px;
  white-space: normal;
}
.mentor-relevant-item-title { font-size: 0.75rem; color: #c4b5fd; font-weight: 600; }
.mentor-relevant-item-extract { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-top: 2px; line-height: 1.4; }

/* ─── MAIN AREA ─── */
.mentor-main {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mentor-phase { display: none; }
.mentor-phase.mentor-phase-active { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─── PHASE 0: HERO ─── */
.mentor-phase0-hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  position: relative;
}
.mentor-phase0-orb {
  position: absolute;
  top: -30px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(167,139,250,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.mentor-phase0-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #fff 40%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mentor-phase0-sub { font-size: 0.9rem; color: rgba(255,255,255,0.5); max-width: 500px; margin: 0 auto; }

/* ─── SUBJECT BAR ─── */
.mentor-subject-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.mentor-chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
}
.mentor-chip:hover, .mentor-chip.active {
  background: rgba(167,139,250,0.2);
  border-color: #a78bfa;
  color: #c4b5fd;
}

/* ─── QUESTION BOX ─── */
.mentor-question-box {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  transition: border-color 0.2s;
}
.mentor-question-box:focus-within { border-color: rgba(167,139,250,0.5); }
.mentor-question-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Sora', sans-serif;
  resize: none;
  line-height: 1.6;
  min-height: 72px;
}
.mentor-question-textarea::placeholder { color: rgba(255,255,255,0.3); }
.mentor-question-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.mentor-mode-selector { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mentor-mode-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.mentor-mode-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.mentor-mode-radio input[type="radio"] { accent-color: #a78bfa; }
.mentor-mode-text { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.mentor-ask-btn {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border: none;
  color: #fff;
  padding: 9px 22px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.mentor-ask-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.mentor-ask-btn:active { transform: scale(0.98); }

/* ─── QUICK SUGGESTIONS ─── */
.mentor-quick-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mentor-quick-label { font-size: 0.75rem; color: rgba(255,255,255,0.3); white-space: nowrap; }
.mentor-quick-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.mentor-quick-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.55);
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: 'Sora', sans-serif;
  transition: all 0.2s;
}
.mentor-quick-chip:hover { background: rgba(167,139,250,0.12); color: #c4b5fd; border-color: rgba(167,139,250,0.3); }

/* ─── LOADING PHASE ─── */
.mentor-loading-orb {
  width: 100px; height: 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1rem;
}
.mentor-loading-orb.small { width: 60px; height: 60px; margin: 1rem auto; }
.mentor-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(167,139,250,0.4);
  animation: mentor-ring-pulse 1.5s ease-out infinite;
}
.mentor-pulse-ring.small { border-width: 1.5px; }
@keyframes mentor-ring-pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.mentor-loading-text { text-align: center; font-size: 1rem; font-weight: 600; color: #fff; }
.mentor-loading-sub { text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 4px; }
.mentor-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  margin: 1.5rem auto 0;
}
.mentor-ls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transition: all 0.3s;
}
.mentor-ls.mentor-ls-active {
  color: #c4b5fd;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
}
.mentor-ls.mentor-ls-done { color: #4ade80; }

/* ─── SESSION HEADER ─── */
.mentor-session-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
}
.mentor-avatar-wrap { position: relative; }
.mentor-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(167,139,250,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(167,139,250,0.3);
}
.mentor-avatar-glow {
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(167,139,250,0.2), transparent);
  border-radius: 16px;
  pointer-events: none;
}
.mentor-session-q {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  flex: 1;
}
.mentor-session-meta { font-size: 0.72rem; color: rgba(255,255,255,0.35); margin-top: 3px; }
.mentor-new-q-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
}

/* ─── TEXT EXPLANATION ─── */
.mentor-explanation-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.5rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  line-height: 1.8;
  min-height: 200px;
}
.mentor-explanation-content h2 {
  color: #a78bfa;
  font-size: 1.05rem;
  margin: 1rem 0 0.5rem;
  border-bottom: 1px solid rgba(167,139,250,0.2);
  padding-bottom: 4px;
}
.mentor-explanation-content h3 { color: #c4b5fd; font-size: 0.92rem; margin: 0.8rem 0 0.3rem; }
.mentor-explanation-content code {
  background: rgba(167,139,250,0.12);
  color: #c4b5fd;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
}
.mentor-explanation-content .mentor-formula-block {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid #a78bfa;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin: 10px 0;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #c4b5fd;
}
.mentor-explanation-content .mentor-note {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #fcd34d;
  margin: 8px 0;
}
.mentor-explanation-content .mentor-important {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #fca5a5;
  margin: 8px 0;
}
.mentor-explanation-content .mentor-example {
  background: rgba(74,222,128,0.07);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
}
.mentor-explanation-content .mentor-visual-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
  text-align: center;
}
.mentor-explanation-content svg { max-width: 100%; }
.mentor-typing-cursor { display: inline-block; width: 2px; height: 1em; background: #a78bfa; animation: mentor-blink 0.8s step-end infinite; vertical-align: text-bottom; margin-left: 2px; }
@keyframes mentor-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ─── PROCEED BUTTONS ─── */
.mentor-phase-proceed {
  background: rgba(167,139,250,0.07);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
}
.mentor-proceed-msg { font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.mentor-proceed-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mentor-proceed-yes {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border: none;
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}
.mentor-proceed-skip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Sora', sans-serif;
}
.mentor-proceed-alt {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  color: #86efac;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Sora', sans-serif;
}

/* ─── VIDEO IA ─── */
.mentor-video-upload-step {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(167,139,250,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mentor-video-upload-icon { font-size: 3rem; }
.mentor-video-upload-title { font-size: 1.1rem; font-weight: 600; color: #fff; }
.mentor-video-upload-desc { font-size: 0.82rem; color: rgba(255,255,255,0.45); max-width: 500px; line-height: 1.6; }
.mentor-pdf-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167,139,250,0.2);
  border: 1.5px solid rgba(167,139,250,0.4);
  color: #c4b5fd;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}
.mentor-pdf-upload-btn:hover { background: rgba(167,139,250,0.3); }
.mentor-video-skip { margin-top: 4px; }
.mentor-skip-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Sora', sans-serif;
}
.mentor-canvas-wrap {
  position: relative;
  background: #06080f;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.mentor-canvas { display: block; width: 100%; height: auto; background: #06080f; }
.mentor-canvas-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mentor-ctrl-btn {
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.3);
  color: #c4b5fd;
  padding: 5px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
}
.mentor-progress-wrap { flex: 1; display: flex; align-items: center; gap: 8px; }
.mentor-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; cursor: pointer; }
.mentor-progress-fill { height: 100%; background: #a78bfa; border-radius: 2px; width: 0%; transition: width 0.1s linear; }
.mentor-time { font-size: 0.72rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.mentor-speed-sel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'Sora', sans-serif;
}
.mentor-subtitles {
  min-height: 48px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  border-radius: 0 0 14px 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-style: italic;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  line-height: 1.5;
}
.mentor-chapters { margin-top: 1rem; }
.mentor-chapters-title { font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.mentor-chapter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}
.mentor-chapter-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mentor-chapter-item.active { background: rgba(167,139,250,0.1); color: #c4b5fd; }
.mentor-chapter-time { font-size: 0.72rem; color: rgba(255,255,255,0.35); min-width: 40px; }

/* ─── YOUTUBE ─── */
.mentor-yt-searching { display: flex; flex-direction: column; align-items: center; padding: 2rem; }
.mentor-yt-intro { font-size: 0.88rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; line-height: 1.6; }
.mentor-yt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mentor-yt-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.mentor-yt-card:hover { border-color: rgba(239,68,68,0.4); transform: translateY(-2px); }
.mentor-yt-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #111;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentor-yt-play {
  width: 50px; height: 50px;
  background: rgba(239,68,68,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 2;
}
.mentor-yt-info { padding: 12px; }
.mentor-yt-channel { font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.mentor-yt-title { font-size: 0.82rem; font-weight: 600; color: #fff; line-height: 1.4; }
.mentor-yt-duration { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 5px; }
.mentor-yt-reason { font-size: 0.7rem; color: #86efac; margin-top: 5px; }
.mentor-yt-watched { margin-top: 1rem; padding: 1rem; background: rgba(255,255,255,0.03); border-radius: 12px; }
.mentor-yt-watched-msg { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 0.75rem; }

/* ─── QUIZ ─── */
.mentor-quiz-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}
.mentor-quiz-icon { font-size: 1.5rem; }
.mentor-quiz-title { font-size: 0.95rem; font-weight: 600; color: #fff; }
.mentor-quiz-sub { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.mentor-quiz-progress { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mentor-quiz-prog-bar { width: 100px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.mentor-quiz-prog-fill { height: 100%; background: #a78bfa; border-radius: 2px; transition: width 0.4s ease; }
.mentor-quiz-area { display: flex; flex-direction: column; gap: 1rem; }
.mentor-quiz-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.25rem;
}
.mentor-quiz-qnum { font-size: 0.72rem; color: #a78bfa; font-weight: 600; margin-bottom: 6px; }
.mentor-quiz-qtext { font-size: 0.9rem; color: #fff; font-weight: 500; margin-bottom: 1rem; line-height: 1.5; }
.mentor-quiz-options { display: flex; flex-direction: column; gap: 8px; }
.mentor-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  text-align: left;
  font-family: 'Sora', sans-serif;
  width: 100%;
}
.mentor-quiz-option:hover { background: rgba(167,139,250,0.1); border-color: rgba(167,139,250,0.3); }
.mentor-quiz-option.correct { background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.35); color: #86efac; }
.mentor-quiz-option.wrong { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.mentor-quiz-option.disabled { pointer-events: none; }
.mentor-quiz-explanation {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  display: none;
}
.mentor-quiz-explanation.visible { display: block; }

/* SCORE */
.mentor-quiz-score-display { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 2rem; }
.mentor-score-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(167,139,250,0.15);
  border: 3px solid #a78bfa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mentor-score-num { font-size: 1.3rem; font-weight: 700; color: #fff; }
.mentor-score-pct { font-size: 0.75rem; color: #a78bfa; }
.mentor-score-msg { font-size: 0.88rem; color: rgba(255,255,255,0.7); text-align: center; max-width: 400px; }

/* ─── EXERCISES ─── */
.mentor-exercises-area { display: flex; flex-direction: column; gap: 1.25rem; }
.mentor-exo-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.25rem;
}
.mentor-exo-num { font-size: 0.72rem; color: #60a5fa; font-weight: 600; margin-bottom: 6px; }
.mentor-exo-text { font-size: 0.88rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 1rem; }
.mentor-exo-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.85rem;
  font-family: 'Sora', sans-serif;
  outline: none;
  resize: vertical;
  min-height: 70px;
}
.mentor-exo-input:focus { border-color: rgba(96,165,250,0.5); }
.mentor-exo-submit {
  margin-top: 8px;
  background: rgba(96,165,250,0.2);
  border: 1px solid rgba(96,165,250,0.35);
  color: #93c5fd;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Sora', sans-serif;
}
.mentor-exo-correction {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(74,222,128,0.07);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  display: none;
}
.mentor-exo-correction.visible { display: block; }

/* ─── SUMMARY ─── */
.mentor-summary-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1.5rem;
  text-align: center;
}
.mentor-summary-icon { font-size: 2.5rem; }
.mentor-summary-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.mentor-summary-subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.mentor-summary-content {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  line-height: 1.8;
}
.mentor-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}
.mentor-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.mentor-stat-value { font-size: 1.4rem; font-weight: 700; color: #a78bfa; }
.mentor-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 3px; }
.mentor-summary-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.mentor-action-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Sora', sans-serif;
  transition: background 0.2s;
}
.mentor-action-btn:hover { background: rgba(255,255,255,0.13); }
.mentor-action-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-color: transparent;
  color: #fff;
}

/* Mobile */
@media (max-width: 700px) {
  .mentor-phase0-title { font-size: 1.4rem; }
  .mentor-question-bottom { flex-direction: column; align-items: flex-start; }
  .mentor-sidebar.open { width: 100%; position: absolute; top: 56px; left: 0; height: calc(100vh - 56px); z-index: 100; }
  .mentor-yt-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   PREPALAB v3.0 — NOUVELLES CLASSES CSS
═══════════════════════════════════════════════════ */

/* ── KaTeX dans les blocs Mentor ── */
.mentor-texte-content .katex,
.mentor-summary-content .katex,
.mentor-qcm-card .katex,
.mentor-qcm-question-text .katex,
#mentor-qcm-question-zone .katex { color: #c4b5fd !important; }
.mentor-texte-content .katex-display,
.mentor-summary-content .katex-display { color: #e9d5ff !important; margin: 12px 0; }
.mentor-formula-block .katex-display { font-size: 1.15em; }

/* ── Classes HTML v3 utilisées par l'IA ── */
.mentor-section {
  color: #a78bfa;
  font-size: 1.05rem;
  margin: 1.2rem 0 0.5rem;
  border-bottom: 1px solid rgba(167,139,250,0.2);
  padding-bottom: 4px;
  font-weight: 700;
}
.mentor-list { padding-left: 1.4rem; margin: 0.5rem 0; }
.mentor-list li { margin-bottom: 0.35rem; color: rgba(255,255,255,0.82); font-size: 0.88rem; line-height: 1.6; }
.mentor-formula-block {
  background: rgba(167,139,250,0.08);
  border-left: 3px solid #a78bfa;
  border-radius: 0 10px 10px 0;
  padding: 12px 18px;
  margin: 12px 0;
  text-align: center;
  overflow-x: auto;
}
.mentor-note {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #fcd34d;
  margin: 10px 0;
}
.mentor-important {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: #fca5a5;
  margin: 10px 0;
}
.mentor-example {
  background: rgba(74,222,128,0.07);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* ── Boutons communs Mentor ── */
.mentor-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border: none;
  color: #fff;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}
.mentor-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.mentor-btn-secondary {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.78);
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Sora', sans-serif;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.mentor-btn-secondary:hover { background: rgba(255,255,255,0.13); }
.mentor-btn-tertiary {
  background: transparent;
  border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa;
  padding: 9px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Sora', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.mentor-btn-tertiary:hover { background: rgba(167,139,250,0.08); }
.mentor-btn-hint-sm {
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fcd34d;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: 'Sora', sans-serif;
  transition: background 0.2s;
}
.mentor-btn-validate-adp {
  background: linear-gradient(135deg, #4f8ef7, #a78bfa);
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  transition: opacity 0.2s;
}
.mentor-btn-validate-adp:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── QCM Adaptatif ── */
.mentor-qcm-header-bar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.mentor-qcm-meta-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.mentor-qcm-progress-bar-wrap { background: rgba(255,255,255,0.07); border-radius: 4px; height: 6px; overflow: hidden; }
.mentor-qcm-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 1.25rem;
  animation: fadeSlideUp 0.3s ease;
}
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.mentor-qcm-question-text { font-size: 0.96rem; color: rgba(255,255,255,0.9); line-height: 1.65; }
.mentor-qcm-options-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 0.75rem; }
.mentor-qcm-option {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  transition: background 0.18s, border-color 0.18s;
  line-height: 1.5;
}
.mentor-qcm-option:hover { background: rgba(79,142,247,0.1); border-color: rgba(79,142,247,0.3); }
.mentor-qcm-option.selected { background: rgba(167,139,250,0.15); border-color: rgba(167,139,250,0.45); }
.mentor-qcm-option .opt-letter {
  min-width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem;
  margin-right: 0.65rem; flex-shrink: 0;
}
.mentor-qcm-option.selected .opt-letter { border-color: #a78bfa; color: #a78bfa; }
.mentor-qcm-actions-row { display: flex; gap: 0.75rem; align-items: center; margin-top: 1rem; flex-wrap: wrap; }

/* ── Mode Radio : 4 boutons Manim ── */
.mentor-mode-selector { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mentor-mode-radio { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.mentor-mode-radio input { accent-color: #a78bfa; }
.mentor-mode-text { font-size: 0.82rem; color: rgba(255,255,255,0.7); white-space: nowrap; }
.mentor-mode-label { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-right: 4px; white-space: nowrap; }

/* ── Manim Short Module ── */
.mentor-manim-card {
  background: var(--mentor-bg-card, #161b22);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.mentor-manim-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(79,142,247,0.07));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mentor-manim-header h3 { margin: 0 0 0.25rem; color: #fff; font-size: 0.97rem; }
.mentor-manim-sub { color: rgba(255,255,255,0.45); font-size: 0.78rem; margin: 0; }
.mentor-manim-actions {
  padding: 1rem 1.5rem;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mentor-manim-preview { padding: 1.25rem 1.5rem; }
.mentor-manim-code-wrap {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.mentor-manim-code-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.mentor-copy-btn {
  background: rgba(79,142,247,0.15);
  border: 1px solid rgba(79,142,247,0.3);
  color: #4f8ef7; border-radius: 5px;
  padding: 2px 10px; cursor: pointer; font-size: 0.76rem;
  transition: background 0.2s; font-family: 'Sora', sans-serif;
}
.mentor-copy-btn:hover { background: rgba(79,142,247,0.28); }
.mentor-manim-code {
  margin: 0; padding: 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.72rem;
  color: #e6edf3;
  overflow-x: auto;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre;
  line-height: 1.6;
  tab-size: 4;
}
.mentor-manim-instructions {
  background: rgba(0,0,0,0.3);
  border-radius: 8px; padding: 1rem;
}
.mentor-manim-instructions h4 { color: rgba(255,255,255,0.6); font-size: 0.82rem; margin: 0 0 0.6rem; }
.mentor-terminal {
  display: block;
  background: #000;
  color: #4ade80;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}
.mentor-terminal-note { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.4rem; }
.mentor-terminal-note code { background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 3px; }
.mentor-manim-rendering {
  text-align: center; padding: 2rem 1rem;
  color: rgba(255,255,255,0.65);
}
.mentor-manim-spinner {
  width: 40px; height: 40px;
  border: 3px solid rgba(167,139,250,0.2);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mentor-manim-result { padding: 1.5rem; text-align: center; }
.mentor-manim-result h4 { color: #4ade80; margin-bottom: 1rem; }
.mentor-manim-error {
  background: rgba(248,81,73,0.08);
  border: 1px solid rgba(248,81,73,0.25);
  color: #fca5a5;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ── Canvas vidéo amélioré ── */
.mentor-canvas {
  width: 100%; max-width: 800px;
  border-radius: 12px;
  display: block;
  background: #06080f;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

/* ── Video canvas controls improved ── */
.mentor-canvas-controls {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.mentor-ctrl-btn {
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  color: #a78bfa;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-family: 'Sora', sans-serif;
  white-space: nowrap;
  transition: background 0.2s;
}
.mentor-ctrl-btn:hover { background: rgba(167,139,250,0.28); }

/* ── Subtitles improved ── */
.mentor-subtitles {
  min-height: 48px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  text-align: center;
  margin-top: 10px;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

/* ── Video player phase layout ── */
.mentor-canvas-wrap { position: relative; }

/* Mobile adjustments for new components */
@media (max-width: 700px) {
  .mentor-manim-code { font-size: 0.66rem; max-height: 300px; }
  .mentor-manim-actions { flex-direction: column; }
  .mentor-qcm-option { font-size: 0.82rem; }
  .mentor-mode-selector { gap: 5px; }
  .mentor-mode-text { font-size: 0.76rem; }
}

/* ═══════════════════════════════════════
   PACK SCHOOL CARDS (pages des packs)
═══════════════════════════════════════ */
.pack-school-card {
  padding: 2rem 1.75rem !important;
  gap: 1.1rem !important;
  border-radius: 18px !important;
  border: 1.5px solid var(--border) !important;
  transition: transform .25s, box-shadow .25s, border-color .25s !important;
}
.pack-school-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(19,37,115,0.14) !important;
  border-color: rgba(19,37,115,0.35) !important;
}
.pack-school-card .school-logo-wrap {
  width: 80px;
  height: 80px;
}
.pack-school-card .school-logo-wrap img {
  width: 80px !important;
  height: 80px !important;
  object-fit: contain !important;
}
.pack-school-card .school-icon-wrap {
  width: 80px !important;
  height: 80px !important;
}
.pack-school-card .school-name {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}
.pack-school-card .school-tag {
  font-size: 0.8rem !important;
}

/* Grille plus large pour les pages de packs */
#ecoles-medecine-page .schools-grid,
#ecoles-ingenieur-page .schools-grid,
#ecoles-economie-page .schools-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

[data-theme="dark"] .pack-school-card {
  background: var(--card-dark, rgba(255,255,255,0.04)) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
[data-theme="dark"] .pack-school-card:hover {
  border-color: rgba(167,139,250,0.4) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4) !important;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Packs 3 colonnes
═══════════════════════════════════════ */
@media (max-width: 900px) {
  #ecoles-postbac-page .packs-grid-3col {
    grid-template-columns: 1fr !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   NEW LANDING PAGE — PREPALAB REDESIGN
   ═══════════════════════════════════════════════════════════════════ */

/* ── Wrap ── */
.landing-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════ HERO ══════════ */
.landing-hero {
  min-height: 100vh;
  background: linear-gradient(145deg,#0b1a50 0%,#132573 40%,#1e3a9e 72%,#2A3D53 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.lh-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lh-bg-particles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: floatOrb 14s ease-in-out infinite;
}
.lh-bg-particles span:nth-child(1) {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,141,141,0.13) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
.lh-bg-particles span:nth-child(2) {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
  top: 30%; right: -80px;
  animation-delay: 3s;
}
.lh-bg-particles span:nth-child(3) {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,141,141,0.09) 0%, transparent 70%);
  bottom: -60px; left: 35%;
  animation-delay: 6s;
}
.lh-bg-particles span:nth-child(4) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(30,58,158,0.25) 0%, transparent 70%);
  top: 60%; left: 10%;
  animation-delay: 2s;
}
.lh-bg-particles span:nth-child(5) {
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,141,141,0.08) 0%, transparent 70%);
  top: 15%; right: 25%;
  animation-delay: 8s;
}
.lh-bg-particles span:nth-child(6) {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(19,37,115,0.18) 0%, transparent 70%);
  bottom: 10%; right: -50px;
  animation-delay: 5s;
}
@keyframes floatOrb {
  0%   { opacity: 0; transform: scale(0.8) translateY(20px); }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.1) translateY(-20px); }
}

/* Grid texture overlay */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lh-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  width: 100%;
}

/* Badge */
.lh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  animation: fadeSlideDown .7s cubic-bezier(.22,1,.36,1) both;
}

/* Title */
.lh-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 1.4rem;
  animation: fadeSlideDown .7s .1s cubic-bezier(.22,1,.36,1) both;
}
.lh-title em {
  font-style: normal;
  color: var(--coral);
  position: relative;
}

/* Sub */
.lh-sub {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-bottom: 2.8rem;
  line-height: 1.72;
  animation: fadeSlideDown .7s .2s cubic-bezier(.22,1,.36,1) both;
}
.lh-sub strong { color: rgba(255,255,255,0.95); }

/* ── CTA ROW ── */
.lh-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3.5rem;
  animation: fadeSlideDown .7s .3s cubic-bezier(.22,1,.36,1) both;
}

.lh-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  border: none;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .2s;
  min-width: 270px;
}
.lh-btn:hover {
  transform: translateY(-4px) scale(1.02);
}
.lh-btn:active {
  transform: translateY(1px) scale(0.99);
}

.lh-btn-primary {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: #fff;
  box-shadow: 0 6px 0 #9b1c1c, 0 16px 40px rgba(229,62,62,0.35);
}
.lh-btn-primary:hover {
  box-shadow: 0 10px 0 #9b1c1c, 0 24px 48px rgba(229,62,62,0.45);
}

.lh-btn-secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  box-shadow: 0 6px 0 rgba(0,0,0,0.25), 0 16px 32px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.lh-btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 10px 0 rgba(0,0,0,0.28), 0 24px 40px rgba(0,0,0,0.22);
}

.lh-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lh-btn-primary .lh-btn-icon { background: rgba(255,255,255,0.2); }

.lh-btn-label {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lh-btn-title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
}
.lh-btn-hint {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
  font-weight: 400;
}

/* ── STATS ── */
.lh-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 1.25rem 2rem;
  animation: fadeSlideDown .7s .4s cubic-bezier(.22,1,.36,1) both;
}
.lh-stat {
  padding: 0 1.6rem;
  text-align: center;
}
.lh-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}
.lh-stat-lbl {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.58);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.lh-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* Scroll hint */
.lh-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bobDown 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bobDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═════════ ABOUT SECTION ═════════ */
.landing-about {
  background: #fff;
  padding: 6rem 5%;
}
.la-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.la-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
}
.la-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 1.5rem;
}
.la-title em {
  font-style: normal;
  color: var(--navy-light);
  background: linear-gradient(135deg, var(--navy-light), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.la-body {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.la-body strong { color: var(--navy); font-weight: 700; }
.la-body:last-of-type { margin-bottom: 1.75rem; }

.la-trust-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.la-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}

/* Features list */
.la-features-col {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.la-feat {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: var(--light);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.la-feat:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
}
.la-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lf-blue   { background: rgba(19,37,115,0.10); color: var(--navy); }
.lf-coral  { background: rgba(255,141,141,0.15); color: #c53030; }
.lf-green  { background: rgba(22,163,74,0.12); color: var(--green); }
.lf-purple { background: rgba(124,58,237,0.12); color: var(--purple); }
.lf-amber  { background: rgba(180,83,9,0.10); color: var(--amber); }

.la-feat-title {
  font-weight: 800;
  font-size: 0.93rem;
  color: var(--navy);
  margin-bottom: 3px;
}
.la-feat-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ═════════ REPEAT CTA ═════════ */
.landing-cta-repeat {
  background: linear-gradient(135deg, #0b1a50 0%, #132573 50%, #1e3a9e 100%);
  padding: 5rem 5%;
  position: relative;
  overflow: hidden;
}
.landing-cta-repeat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,141,141,0.10) 0%, transparent 70%);
}
.lcr-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.lcr-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.8px;
}
.lcr-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 2.5rem;
}
.lcr-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.lcr-btns .lh-btn {
  min-width: auto;
  padding: 0.85rem 1.6rem;
  gap: 0.7rem;
}

/* ═════════ FOOTER OVERRIDE ═════════ */
.landing-wrap footer {
  background: #0a1230;
  border-top: none;
}

/* ═════════ ANIMATIONS ═════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 900px) {
  .la-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
@media (max-width: 640px) {
  .lh-cta-row { flex-direction: column; align-items: stretch; }
  .lh-btn { min-width: unset; width: 100%; }
  .lh-stats { flex-direction: column; gap: 1rem; }
  .lh-stat-sep { display: none; }
  .lh-stat { padding: 0; }
  .lcr-btns { flex-direction: column; }
  .lcr-btns .lh-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   FIXES MULTIPAGE — z-index, pointer-events, clickability
   ═══════════════════════════════════════════════════════════ */

/* Fix compte dropdown z-index so it's above everything */
.compte-dropdown {
  position: relative;
  z-index: 1001;
}
.compte-menu {
  z-index: 1002 !important;
  position: absolute;
  pointer-events: auto !important;
}

/* Fix nav buttons clickability */
.main-nav {
  z-index: 999;
  position: sticky;
  top: 0;
}
.nav-links button,
.nav-links .compte-dropdown,
.nav-logo {
  position: relative;
  z-index: 1000;
  pointer-events: auto !important;
  cursor: pointer;
}

/* Fix parametres button in compte menu */
.compte-item {
  position: relative;
  z-index: 1003;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Ensure pages don't overlap with nav */
.page {
  position: relative;
  z-index: 1;
}
.page.active {
  z-index: 2;
}

/* Auth gate on top of everything */
#auth-gate {
  z-index: 9999 !important;
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
#auth-gate.hidden,
#auth-gate[style*="display:none"],
#auth-gate[style*="display: none"] {
  display: none !important;
}

/* Fix advisor panel z-index */
.advisor-panel {
  z-index: 8000 !important;
}
.advisor-overlay {
  z-index: 7999 !important;
}
.advisor-fab {
  z-index: 8001 !important;
  pointer-events: auto !important;
}

/* Mobile menu fixes */
.mobile-menu {
  z-index: 9000 !important;
}
.mobile-menu button {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* School overlay fix */
.overlay {
  z-index: 8500 !important;
}

/* ════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS — corrections d'audit (avant déploiement)
   ════════════════════════════════════════════════════════════ */
/* Classement : la table scrolle horizontalement au lieu d'être coupée
   par body{overflow-x:hidden} */
.lb-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.lb-table{min-width:520px}
/* Footer : casser les longues chaînes (emails / handles) */
.footer-col a,.footer-col button{overflow-wrap:anywhere;word-break:break-word}
/* Menu mobile aligné sous la barre de nav flottante (était 68px, nav ≈ 72px) */
.mobile-menu,.mobile-menu-overlay{top:76px}

@media (max-width:768px){
  .social-icon{width:40px;height:40px}              /* cibles tactiles ≥40px */
  .footer-col a,.footer-col button{min-height:38px}
}

@media (max-width:600px){
  /* le bouton WhatsApp flottant ne doit pas masquer la dernière colonne du footer */
  footer{padding-bottom:96px}
}

@media (max-width:480px){
  /* Modales pack / école : empiler les 2 boutons de choix */
  .choice-buttons{grid-template-columns:1fr}
  .modal-box{padding:1.6rem}
  /* Classement : héros + podium compacts */
  .lb-hero{padding:2.2rem 5%}
  .lb-hero h1{font-size:1.5rem}
  .lb-hero h1 i{width:24px!important;height:24px!important}
  .lb-podium{gap:.5rem;margin:1.8rem auto 1rem}
  .lb-avatar{width:50px;height:50px;font-size:1.1rem}
  .lb-podium-item.rank-1 .lb-avatar{width:62px;height:62px;font-size:1.3rem}
  .lb-name{font-size:.74rem}
}
