/* ============ LE MAG CAMPUS NANCY — PALETTE (build 1781206973) ============ */
:root{
  /* Palette principale — bleu marine + jaune doré Pigier (école principale du campus) */
  --campus-green: #003e7d;       /* bleu marine Pigier (variable conservée pour compat) */
  --campus-green-dark: #002a55;  /* bleu marine plus sombre */
  --campus-blue-light: #007ab5;  /* bleu vif Pigier secondaire */
  --campus-gold: #fac422;        /* jaune doré Pigier — accent signature */
  --campus-gold-dark: #d9a814;
}

/* ============================================================
   Tablonoir — public veille platform stylesheet
   Dark by default (#000 + accent --cyan) · light toggle (data-theme=light)
   Accent colour injected per thematic via --cyan / --secondary
   ============================================================ */
:root{
  --cyan:#00BFFF; --secondary:#1B1B27;
  --bg:#000; --bg2:#0a0a0f; --panel:#101017; --line:#23232e;
  --txt:#f4f4f7; --muted:#9a9aa8; --muted2:#6c6c7a;
  --inv-bg:#f6f6f9; --inv-txt:#15151c; --inv-muted:#5a5a68; --inv-line:#e2e2ea;
}
html[data-theme=light]{ --bg:#fff; --bg2:#f6f6f9; --panel:#fff; --line:#e2e2ea;
  --txt:#15151c; --muted:#5a5a68; --muted2:#8a8a96;
  --inv-bg:#0a0a0f; --inv-txt:#f4f4f7; --inv-muted:#9a9aa8; --inv-line:#23232e; }

*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ background:var(--bg); color:var(--txt); }
body{ font-family:"Host Grotesk",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased; }
.mono{ font-family:"JetBrains Mono",ui-monospace,monospace; }
a{ color:inherit; text-decoration:none; cursor:pointer; }

/* ---------- top nav ---------- */
.topnav{ position:sticky; top:0; z-index:50; background:rgba(0,0,0,.82);
  backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
html[data-theme=light] .topnav{ background:rgba(255,255,255,.85); }
.topnav-inner{ display:flex; align-items:center; gap:24px; padding:12px 26px; }
.brand{ display:flex; align-items:center; gap:11px; cursor:pointer; }
.brand-mark{ width:30px; height:30px; border-radius:7px; background:var(--cyan);
  position:relative; flex:none; }
.brand-mark::after{ content:""; position:absolute; inset:7px; border:2px solid #000; border-radius:3px; }
.brand-text .name{ font-weight:800; font-size:17px; letter-spacing:-.02em; display:block; }
.brand-text .sub{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted2); }
.nav-search{ flex:1; max-width:560px; margin:0 auto; display:flex; align-items:center; gap:9px;
  background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:9px 14px; color:var(--muted); }
.nav-search input{ flex:1; background:none; border:none; outline:none; color:var(--txt);
  font-family:inherit; font-size:14px; }
.topnav-actions{ display:flex; align-items:center; gap:8px; }
.nav-btn{ display:inline-flex; align-items:center; gap:7px; font-family:inherit; font-size:13px; font-weight:600;
  background:var(--panel); border:1px solid var(--line); color:var(--txt); border-radius:9px;
  padding:8px 13px; cursor:pointer; transition:.15s; }
.nav-btn:hover{ border-color:var(--cyan); color:var(--cyan); }
.nav-btn.icon-only{ padding:8px; }
.nav-btn.primary{ background:var(--cyan); color:#000; border-color:var(--cyan); }
.nav-btn.primary:hover{ filter:brightness(1.1); color:#000; }

/* ---------- layout ---------- */
.app{ display:flex; align-items:flex-start; }
.sidebar{ width:262px; flex:none; position:sticky; top:55px; height:calc(100vh - 55px);
  overflow-y:auto; border-right:1px solid var(--line); padding:22px 14px; }
.sidebar-section{ margin-bottom:26px; }
.sidebar-label{ font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted2);
  padding:0 10px 9px; }
.sidebar-item{ display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px;
  color:var(--muted); cursor:pointer; font-size:13.5px; transition:.13s; }
.sidebar-item:hover{ background:var(--panel); color:var(--txt); }
.sidebar-item.active{ background:var(--panel); color:var(--cyan); }
.sidebar-item .label{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-item .mod-num{ font-family:"JetBrains Mono",monospace; font-size:11px; color:var(--muted2); }
.sidebar-item .mod-count{ font-size:11px; color:var(--muted2); }
.sidebar-footer{ padding:10px; font-size:11px; color:var(--muted2); border-top:1px solid var(--line); }
.main{ flex:1; min-width:0; }

/* ---------- loading / empty ---------- */
.loading,.empty{ display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-height:60vh; gap:16px; color:var(--muted); }
.spinner{ width:34px; height:34px; border:3px solid var(--line); border-top-color:var(--cyan);
  border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- hero ---------- */
.hero{ padding:74px 56px 60px; max-width:1100px; }
.hero-badge{ display:inline-block; font-family:"JetBrains Mono",monospace; font-size:11px; letter-spacing:.14em;
  color:var(--cyan); border:1px solid var(--cyan); border-radius:30px; padding:5px 13px; margin-bottom:26px; }
.hero h1{ font-size:clamp(38px,6vw,76px); font-weight:800; letter-spacing:-.03em; line-height:1.02; }
.hero h1 .accent{ color:var(--cyan); }
.hero-sub{ font-size:19px; color:var(--muted); margin-top:20px; max-width:680px; }
.hero-meta{ margin-top:26px; font-size:12px; color:var(--muted2); letter-spacing:.05em; }

/* ---------- bands (alternating) ---------- */
.band{ padding:54px 56px; border-top:1px solid var(--line); }
.band.inverted{ background:var(--inv-bg); color:var(--inv-txt); border-top:none; }
.band.inverted .band-tag{ color:var(--cyan); }
.band.inverted .res-block,.band.inverted .product-card{ border-color:var(--inv-line); }
.band-tag{ font-family:"JetBrains Mono",monospace; font-size:11px; letter-spacing:.16em; color:var(--cyan);
  margin-bottom:10px; }
.band h2{ font-size:clamp(24px,3vw,34px); font-weight:800; letter-spacing:-.02em; margin-bottom:26px; }
.band.inverted h2,.band.inverted h3{ color:var(--inv-txt); }

/* ---------- stats ---------- */
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; }
.stat{ border:1px solid var(--line); border-radius:13px; padding:22px; background:var(--panel); }
.stat-val{ font-size:34px; font-weight:800; color:var(--cyan); letter-spacing:-.02em; }
.stat-label{ font-size:13.5px; color:var(--muted); margin-top:6px; }
.stat-src{ font-size:10px; color:var(--muted2); margin-top:12px; letter-spacing:.08em; text-transform:uppercase; }

/* ---------- cards ---------- */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.rcard{ border:1px solid var(--inv-line); border-radius:13px; padding:20px; display:block; transition:.15s; background:transparent; }
.rcard:hover{ border-color:var(--cyan); transform:translateY(-2px); }
.rcard-type{ font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--cyan); margin-bottom:9px; }
.rcard-title{ font-size:16px; font-weight:700; line-height:1.3; }
.rcard-desc{ font-size:13px; color:var(--inv-muted); margin-top:8px; }

/* ---------- module grid ---------- */
.mod-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); gap:16px; }
.mod-card{ border:1px solid var(--line); border-radius:15px; padding:24px; background:var(--panel);
  cursor:pointer; transition:.15s; }
.mod-card:hover{ border-color:var(--cyan); transform:translateY(-3px); }
.mod-card-num{ font-size:11px; letter-spacing:.12em; color:var(--cyan); margin-bottom:11px; }
.mod-card-title{ font-size:19px; font-weight:800; letter-spacing:-.01em; }
.mod-card-punch{ font-size:13.5px; color:var(--muted); margin-top:9px; }
.mod-card-foot{ font-size:11px; color:var(--muted2); margin-top:18px; }

/* ---------- breadcrumb + module/fiche hero ---------- */
.crumb{ padding:20px 56px 0; font-size:12px; color:var(--muted2); }
.crumb a{ color:var(--cyan); }
.mod-hero,.fiche-hero{ padding:60px 56px; background-size:cover; background-position:center; }
.mod-hero-tag,.fiche-hero-code{ font-size:11px; letter-spacing:.14em; color:var(--cyan); margin-bottom:14px; }
.mod-hero h1,.fiche-hero h1{ font-size:clamp(28px,4.5vw,52px); font-weight:800; letter-spacing:-.025em;
  line-height:1.05; max-width:900px; color:#fff; }
.mod-hero p{ font-size:17px; color:#cfcfd8; margin-top:14px; max-width:680px; }

/* ---------- module feed ---------- */
.feed-list{ display:flex; flex-direction:column; gap:8px; }
.feed-item{ display:flex; align-items:center; gap:14px; padding:14px 18px; border:1px solid var(--line);
  border-radius:11px; background:var(--panel); transition:.13s; }
.feed-item:hover{ border-color:var(--cyan); }
.feed-type{ font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.08em; text-transform:uppercase;
  padding:4px 9px; border-radius:20px; border:1px solid var(--cyan); color:var(--cyan); flex:none; }
.feed-title{ flex:1; font-size:14.5px; font-weight:600; }
.feed-src{ font-size:11px; color:var(--muted2); flex:none; }

/* ---------- fiche list ---------- */
.fiche-list{ display:flex; flex-direction:column; }
.fiche-row{ display:flex; align-items:center; gap:16px; padding:15px 4px; border-bottom:1px solid var(--inv-line);
  cursor:pointer; transition:.12s; }
.fiche-row:hover{ padding-left:12px; }
.fiche-row:hover .fiche-go{ color:var(--cyan); }
.fiche-code{ font-size:12px; color:var(--cyan); width:48px; flex:none; }
.fiche-name{ flex:1; font-size:15.5px; font-weight:600; }
.fiche-go{ color:var(--inv-muted); }

/* ---------- accroche ---------- */
.accroche{ font-size:18.5px; line-height:1.65; max-width:820px; color:var(--txt); }

/* ---------- lock / product ---------- */
.lock-grid{ display:grid; grid-template-columns:1fr 320px; gap:36px; align-items:start; }
.plan{ list-style:none; }
.plan li{ padding:11px 0 11px 26px; border-bottom:1px solid var(--inv-line); position:relative;
  font-size:15.5px; font-weight:600; }
.plan li::before{ content:""; position:absolute; left:2px; top:18px; width:7px; height:7px;
  background:var(--cyan); border-radius:2px; }
.product-card{ border:1px solid var(--cyan); border-radius:16px; padding:26px; background:rgba(0,191,255,.05);
  position:sticky; top:70px; }
.product-head{ font-size:15px; font-weight:800; letter-spacing:-.01em; }
.product-media{ display:flex; flex-wrap:wrap; gap:7px; margin:16px 0; }
.media-badge{ font-family:"JetBrains Mono",monospace; font-size:10.5px; padding:5px 10px; border-radius:7px;
  background:var(--panel); border:1px solid var(--inv-line); color:var(--inv-txt); }
.band.inverted .media-badge{ background:rgba(255,255,255,.06); color:var(--inv-txt); border-color:var(--inv-line); }
.product-note{ font-size:13px; color:var(--inv-muted); margin-bottom:18px; }
.unlock-btn{ display:block; text-align:center; background:var(--cyan); color:#000; font-weight:800;
  padding:13px; border-radius:10px; transition:.15s; }
.unlock-btn:hover{ filter:brightness(1.1); }
.product-sub{ text-align:center; font-size:10.5px; color:var(--inv-muted); margin-top:11px; letter-spacing:.06em; }

/* ---------- resources (4 types) ---------- */
.res-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:20px; }
.res-block{ border:1px solid var(--line); border-radius:14px; padding:22px; background:var(--panel); }
.res-block h3{ font-size:15px; font-weight:800; margin-bottom:14px; color:var(--txt); }
.res-block ul{ list-style:none; display:flex; flex-direction:column; gap:2px; }
.res-block li a{ display:flex; flex-direction:column; gap:2px; padding:10px; border-radius:8px; transition:.12s; }
.res-block li a:hover{ background:var(--bg2); }
.res-label{ font-size:14px; font-weight:600; color:var(--txt); }
.res-label::before{ content:"↗ "; color:var(--cyan); }
.res-src{ font-size:10.5px; color:var(--muted2); letter-spacing:.06em; text-transform:uppercase; }

/* ---------- video ---------- */
.video-wrap{ position:relative; width:100%; max-width:840px; aspect-ratio:16/9; border-radius:14px;
  overflow:hidden; border:1px solid var(--inv-line); }
.video-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; }
.video-cap{ font-size:12px; color:var(--inv-muted); margin-top:12px; }

/* ---------- responsive ---------- */
@media(max-width:920px){
  .sidebar{ display:none; }
  .nav-search{ display:none; }
  .hero,.band,.mod-hero,.fiche-hero{ padding-left:24px; padding-right:24px; }
  .crumb{ padding-left:24px; }
  .lock-grid{ grid-template-columns:1fr; }
  .product-card{ position:static; }
}

/* ============================================================
   Multi-thématique : accueil ombrelle, vignettes de veille
   ============================================================ */
.home-hero{ padding-bottom:30px; }
.brand{ text-decoration:none; }

/* sidebar theme dot + home link */
.sidebar-item .dot{ width:9px; height:9px; border-radius:3px; flex:none; }
.home-link{ color:var(--cyan); font-weight:600; }

/* ---- theme cards (umbrella home) ---- */
.theme-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.theme-card{ display:block; border:1px solid var(--line); border-radius:18px; overflow:hidden;
  background:var(--panel); transition:.16s; }
.theme-card:hover{ transform:translateY(-4px); border-color:var(--c); box-shadow:0 12px 40px -18px var(--c); }
.theme-card-bar{ height:8px; background:var(--c); }
.theme-card-body{ padding:24px; }
.theme-card-title{ font-size:22px; font-weight:800; letter-spacing:-.02em; }
.theme-card-title::before{ content:""; display:inline-block; width:10px; height:10px; border-radius:3px;
  background:var(--c); margin-right:10px; vertical-align:middle; }
.theme-card-tag{ font-size:14px; color:var(--muted); margin-top:8px; }
.theme-card-foot{ font-size:11px; color:var(--muted2); margin-top:20px; }

/* ---- vignettes (veille) ---- */
.vignette-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin-bottom:8px; }
.vignette{ display:flex; flex-direction:column; border:1px solid var(--inv-line); border-radius:13px;
  overflow:hidden; background:var(--panel); transition:.15s; min-height:118px; }
.vignette:hover{ transform:translateY(-3px); border-color:var(--cyan); }
.vignette-top{ height:34px; background:linear-gradient(135deg,var(--cyan),transparent); display:flex; align-items:center; padding:0 14px; }
.vignette-type{ font-family:"JetBrains Mono",monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  font-weight:600; color:#001018; background:#fff; padding:3px 8px; border-radius:20px; }
.vignette-body{ padding:14px; flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.vignette-title{ font-size:14px; font-weight:700; line-height:1.35; color:var(--txt); }
.band.inverted .vignette-title{ color:var(--inv-txt); }
.vignette-src{ font-size:10.5px; color:var(--muted2); margin-top:10px; letter-spacing:.04em; }

/* type accents */
.vignette.t-vidéo .vignette-top,.vignette.t-vidéo .vignette-top{ background:linear-gradient(135deg,#ff3b5c,transparent); }
.vignette.t-étude .vignette-top{ background:linear-gradient(135deg,#7c5cff,transparent); }
.vignette.t-livre .vignette-top,.vignette.t-mooc .vignette-top{ background:linear-gradient(135deg,#15c47e,transparent); }

/* resource subheadings on fiche */
.res-h{ font-size:13px; font-weight:800; letter-spacing:.02em; margin:22px 0 12px; color:var(--cyan);
  text-transform:uppercase; }
.res-h:first-of-type{ margin-top:4px; }

/* search result source tag */
.fiche-src{ font-size:11px; color:var(--cyan); flex:none; }

/* ---------- Le Récap ---------- */
.recap-band .recap-head{ display:flex; align-items:flex-start; gap:16px; margin-bottom:24px; }
.recap-picto{ width:40px; height:40px; color:var(--cyan); flex:none; margin-top:2px; }
.recap-name{ font-size:23px; font-weight:800; letter-spacing:-.02em; }
.recap-accroche{ font-size:14px; color:var(--muted); margin-top:4px; max-width:600px; }
.band.inverted .recap-accroche{ color:var(--inv-muted); }
.recap-soon{ margin-left:auto; flex:none; font-family:"JetBrains Mono",monospace; font-size:10px;
  letter-spacing:.08em; text-transform:uppercase; color:var(--cyan); border:1px solid var(--cyan);
  border-radius:20px; padding:5px 11px; white-space:nowrap; }
.recap-note{ font-size:12px; color:var(--muted2); margin-top:6px; }

/* ---------- largeur de contenu centrée (écran large) + mobile fin ---------- */
.hero{ padding-left:max(56px,calc((100% - 1240px)/2)); padding-right:max(56px,calc((100% - 1240px)/2)); max-width:none; }
.band{ padding-left:max(56px,calc((100% - 1240px)/2)); padding-right:max(56px,calc((100% - 1240px)/2)); }
.crumb{ padding-left:max(56px,calc((100% - 1240px)/2)); }
.mod-hero,.fiche-hero{ padding-left:max(56px,calc((100% - 1240px)/2)); padding-right:max(56px,calc((100% - 1240px)/2)); }
.vignette-grid{ grid-template-columns:repeat(auto-fill,minmax(258px,300px)); justify-content:start; }
@media(max-width:680px){
  .hero{ padding:60px 18px 36px; }
  .band,.mod-hero,.fiche-hero{ padding:34px 18px; }
  .crumb{ padding:16px 18px 0; }
  .hero h1{ font-size:32px; }
  .lock-grid{ grid-template-columns:1fr; gap:22px; }
  .product-card{ position:static; }
  .recap-band .recap-head{ flex-wrap:wrap; gap:12px; }
  .recap-soon{ margin-left:0; }
  .vignette-grid,.res-grid,.mod-grid,.theme-grid,.stat-grid{ grid-template-columns:1fr; }
  .feed-item{ flex-wrap:wrap; }
}

/* ---------- Le Mag : info d'abord, boutique discrète ---------- */
.recap-synthese{ font-size:16.5px; line-height:1.65; max-width:780px; color:var(--txt); margin:-6px 0 18px; }
.dossier-link{ display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  color:var(--txt); border:1px solid var(--line); border-radius:10px; padding:10px 16px;
  margin:0 0 26px; background:transparent; transition:border-color .15s, color .15s; }
.dossier-link svg{ color:var(--cyan); flex-shrink:0; }
.dossier-link strong{ display:block; font-size:14px; font-weight:700; line-height:1.3; }
.dossier-link .dossier-sub{ display:block; font-size:11.5px; color:var(--muted);
  font-family:"JetBrains Mono", monospace; margin-top:2px; }
.dossier-link:hover{ border-color:var(--cyan); }
.product-card{ border:1px solid var(--inv-line)!important; background:transparent!important; }
.product-head{ font-weight:700; }
.unlock-btn{ background:transparent!important; color:var(--cyan)!important; border:1px solid var(--cyan);
  font-weight:700!important; }
.unlock-btn:hover{ background:var(--cyan)!important; color:#000!important; }
.nav-btn-ghost{ background:transparent; color:var(--muted); border-color:transparent; font-weight:500; }
.nav-btn-ghost:hover{ color:var(--cyan); border-color:var(--line); background:transparent; }

/* ============ Rubrique IA — grille d'outils + page tuto ============ */
.tool-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-top:12px; }
@media (max-width:980px){ .tool-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:620px){ .tool-grid{ grid-template-columns:1fr; } }

.tool-card{ position:relative; display:block; padding:20px 22px 18px; border:1px solid var(--line);
  border-radius:14px; background:transparent; color:var(--txt); text-decoration:none;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.tool-card:hover{ transform:translateY(-2px); border-color:var(--cyan); box-shadow:0 6px 24px -16px rgba(0,0,0,.45); }
.tool-card-by{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.tool-card-title{ font-size:22px; font-weight:800; margin:6px 0 6px; color:var(--txt); }
.tool-card-tag{ font-size:14px; line-height:1.45; color:var(--muted); min-height:42px; }
.tool-card-foot{ margin-top:14px; font-size:12px; color:var(--cyan); font-weight:700; }

.tool-hero{ padding:48px 0 28px; }
.tool-hero-by{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; }
.tool-hero h1{ font-size:54px; line-height:1.05; margin:0 0 14px; font-weight:800; }
.tool-hero-tag{ font-size:18px; color:var(--muted); max-width:780px; line-height:1.5; margin:0; }

.tool-whatfor{ margin-top:14px; color:var(--txt); }
.tool-whatfor strong{ color:var(--cyan); }

.tool-steps{ counter-reset:step; list-style:none; padding:0; margin:6px 0 0; }
.tool-steps li{ position:relative; padding:10px 0 10px 44px; border-bottom:1px solid var(--inv-line); font-size:15.5px; line-height:1.55; }
.tool-steps li:last-child{ border-bottom:none; }
.tool-steps li::before{ counter-increment:step; content:counter(step,decimal-leading-zero);
  position:absolute; left:0; top:10px; width:30px; height:30px; border-radius:50%;
  background:var(--cyan); color:#000; font-family:"JetBrains Mono", monospace; font-size:12px;
  font-weight:700; display:flex; align-items:center; justify-content:center; }

.usecase-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; margin-top:14px; }
@media (max-width:780px){ .usecase-grid{ grid-template-columns:1fr; } }
.usecase{ padding:18px 20px; border:1px solid var(--line); border-radius:12px; background:transparent; }
.usecase-title{ font-weight:700; font-size:15.5px; margin-bottom:6px; color:var(--txt); }
.usecase-desc{ font-size:14.5px; line-height:1.55; color:var(--muted); }

.prompts-list{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.prompt{ border:1px solid var(--inv-line); border-radius:10px; background:transparent; }
.prompt summary{ cursor:pointer; padding:14px 18px; font-size:15px; font-weight:600; list-style:none;
  display:flex; align-items:center; gap:10px; color:var(--txt); }
.prompt summary::-webkit-details-marker{ display:none; }
.prompt summary::after{ content:"+"; margin-left:auto; font-size:18px; color:var(--cyan); font-weight:700; }
.prompt[open] summary::after{ content:"−"; }
.prompt-num{ display:inline-block; padding:2px 8px; border-radius:6px; background:var(--cyan); color:#000;
  font-size:11px; font-weight:700; }
.prompt-text{ margin:0; padding:14px 18px 18px; font-family:"JetBrains Mono", monospace; font-size:13px;
  line-height:1.6; color:var(--txt); white-space:pre-wrap; word-wrap:break-word;
  border-top:1px solid var(--inv-line); background:rgba(0,0,0,.06); }

.tips-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:780px){ .tips-grid{ grid-template-columns:1fr; } }
.tips-col .band-tag{ margin-bottom:10px; }
.tips, .traps{ margin:0; padding:0 0 0 20px; font-size:15px; line-height:1.65; color:var(--txt); }
.tips li, .traps li{ margin-bottom:8px; }
.tips li::marker{ color:var(--cyan); }
.traps li::marker{ color:#E12D39; }

/* Actus sous chaque groupe d'outils IA */
.group-news-head{ margin:26px 0 12px; font-size:11px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.08em; font-weight:700; }

/* ============ Tutoriel complet ============ */
.tuto{ margin-top:14px; display:flex; flex-direction:column; gap:28px; }
.tuto-section{ border-left:3px solid var(--cyan); padding:6px 0 6px 22px; }
.tuto-h{ font-size:18px; font-weight:700; color:var(--cyan); margin:0 0 12px; line-height:1.35; }
.tuto-p{ font-size:15.5px; line-height:1.7; color:var(--txt); margin:0 0 12px; max-width:780px; }
.tuto-p:last-child{ margin-bottom:0; }
@media (max-width:620px){
  .tuto-section{ padding-left:16px; }
  .tuto-h{ font-size:17px; }
  .tuto-p{ font-size:15px; }
}

/* ============ CTA fiche moins voyant ============ */
.unlock-btn.discreet{ display:inline-block; background:transparent!important; color:var(--cyan)!important;
  border:1px solid var(--line); border-radius:8px; padding:9px 14px; font-weight:600!important;
  font-size:13.5px; text-align:left; text-decoration:none; transition:border-color .15s, background .15s; }
.unlock-btn.discreet:hover{ border-color:var(--cyan); background:transparent!important; color:var(--cyan)!important; }
.back-to-module{ margin:24px 0 8px; text-align:center; }
.back-to-module a{ display:inline-block; color:var(--muted); font-size:13.5px; text-decoration:none;
  padding:8px 14px; border:1px dashed var(--line); border-radius:8px;
  transition:color .15s, border-color .15s; }
.back-to-module a:hover{ color:var(--cyan); border-color:var(--cyan); }

/* Le bloc fiche : on rééquilibre — la valeur d'abord, le CTA discret */
.product-head{ font-size:15px; }
.product-note{ font-size:14.5px; line-height:1.6; color:var(--txt); margin-top:8px; }
.product-sub{ font-size:10.5px; color:var(--muted); margin-top:10px; }

/* ============ Correctif contraste — bandes inversées ============ */
/* Tutoriel complet, Astuces et Pièges sont dans .band.inverted :
   il faut forcer la couleur de texte inversée pour ne pas avoir blanc-sur-blanc */

.band.inverted .tuto-h{ color:var(--cyan); }
.band.inverted .tuto-p{ color:var(--inv-txt); }
.band.inverted .tuto-section{ border-left-color:var(--cyan); }

.band.inverted .tips, .band.inverted .traps{ color:var(--inv-txt); }
.band.inverted .tips li, .band.inverted .traps li{ color:var(--inv-txt); }

/* Le bouton CTA discret est dans .band.inverted (lock-grid) :
   bordure inversée et texte qui reste cyan visible sur fond inversé */
.band.inverted .unlock-btn.discreet{ border-color:var(--inv-line); color:var(--cyan)!important; background:transparent!important; }
.band.inverted .unlock-btn.discreet:hover{ border-color:var(--cyan); }

/* Sécurité supplémentaire pour les autres éléments dans .band.inverted */
.band.inverted .product-note{ color:var(--inv-txt); }
.band.inverted .product-head{ color:var(--inv-txt); }
.band.inverted .product-sub{ color:var(--inv-muted); }

/* Et pour le bloc usecase qui peut hériter mal en cas de bande inversée */
.band.inverted .usecase{ border-color:var(--inv-line); }
.band.inverted .usecase-title{ color:var(--inv-txt); }
.band.inverted .usecase-desc{ color:var(--inv-muted); }

/* Petit lien de retour module reste lisible quel que soit le thème */
.back-to-module a{ color:var(--muted); }
.back-to-module a:hover{ color:var(--cyan); }

/* ============ Chaînes YouTube à suivre (page IA) ============ */
.channel-intro{ font-size:15px; line-height:1.6; color:var(--muted); max-width:780px;
  margin:6px 0 22px; }
.channel-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
@media (max-width:980px){ .channel-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:620px){ .channel-grid{ grid-template-columns:1fr; } }

.channel-card{ display:flex; flex-direction:column; gap:10px; padding:18px 20px 16px;
  border:1px solid var(--line); border-radius:12px; background:transparent;
  color:var(--txt); text-decoration:none;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.channel-card:hover{ transform:translateY(-2px); border-color:var(--cyan);
  box-shadow:0 6px 24px -16px rgba(0,0,0,.45); }
.channel-card-top{ display:flex; flex-direction:column; gap:2px; }
.channel-name{ font-size:18px; font-weight:800; color:var(--txt); }
.channel-handle{ font-size:11.5px; color:var(--muted); letter-spacing:.02em; }
.channel-focus{ font-size:14px; line-height:1.55; color:var(--muted); flex:1; }
.channel-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:4px; }
.channel-tag{ display:inline-block; padding:2px 8px; border-radius:6px;
  background:rgba(192,132,252,.12); color:var(--cyan);
  font-family:"JetBrains Mono", monospace; font-size:10.5px; font-weight:600;
  letter-spacing:.02em; }
.channel-go{ margin-top:6px; font-size:12px; color:var(--cyan); font-weight:700; }

/* Variante en bande inversée si jamais on déplace la section */
.band.inverted .channel-card{ border-color:var(--inv-line); color:var(--inv-txt); }
.band.inverted .channel-name{ color:var(--inv-txt); }
.band.inverted .channel-focus{ color:var(--inv-muted); }
.band.inverted .channel-intro{ color:var(--inv-muted); }

/* ============ Logos et icônes ============ */

/* Logo sur les tool-cards (page IA) */
.tool-card-logo{ width:46px; height:46px; border-radius:10px; background:#fff;
  display:flex; align-items:center; justify-content:center; padding:6px;
  margin-bottom:14px; box-shadow:0 2px 6px -2px rgba(0,0,0,.18); }
.tool-card-logo img{ max-width:100%; max-height:100%; display:block; }

/* Logo grand format sur la page outil */
.tool-hero-logo{ width:80px; height:80px; border-radius:18px; background:#fff;
  display:flex; align-items:center; justify-content:center; padding:10px;
  margin-bottom:18px; box-shadow:0 4px 16px -8px rgba(0,0,0,.3); }
.tool-hero-logo img{ max-width:100%; max-height:100%; display:block; }

/* Icône YouTube sur les channel-cards */
.channel-yt-icon{ display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:8px; background:rgba(255,0,0,.08);
  margin-bottom:8px; }
.band.inverted .channel-yt-icon{ background:rgba(255,0,0,.12); }

/* Icône discipline sur les theme-cards de la home */
.theme-card-icon{ width:32px; height:32px; color:var(--c, var(--cyan));
  margin-bottom:10px; opacity:.85; }
.theme-card-icon svg{ width:100%; height:100%; display:block; }
.theme-card:hover .theme-card-icon{ opacity:1; }

/* ============ Visuels v2 ============ */

/* Hero visuel sur la home */
.hero-visual{ position:relative; overflow:hidden; padding:64px 32px 48px;
  border-radius:18px; margin-bottom:32px; isolation:isolate; }
.hero-bg{ position:absolute; inset:0; z-index:-1; }
.hero-bg svg{ width:100%; height:100%; display:block; }

/* Bandeau visuel par discipline */
.theme-hero{ position:relative; overflow:hidden; padding:48px 32px 40px;
  border-radius:14px; margin-bottom:24px; isolation:isolate;
  background:linear-gradient(135deg, color-mix(in srgb, var(--c) 18%, var(--bg)) 0%, var(--bg) 65%); }
.theme-hero-bg{ position:absolute; inset:0; z-index:-1; pointer-events:none;
  display:flex; align-items:center; justify-content:flex-end; padding:0 32px; }
.theme-hero-icon{ width:240px; height:240px; color:var(--c); opacity:.12;
  transform:translateX(60px) rotate(-8deg); }
.theme-hero-icon svg{ width:100%; height:100%; display:block; }
@media (max-width:680px){
  .theme-hero{ padding:36px 22px 32px; }
  .theme-hero-icon{ width:160px; height:160px; transform:translateX(20px); }
}

/* Vignettes avec thumbnail */
.vignette.has-thumb{ display:flex; flex-direction:column; padding:0;
  overflow:hidden; }
.vignette-thumb{ width:100%; aspect-ratio:16/9; background-size:cover;
  background-position:center; background-color:rgba(0,0,0,.05);
  border-bottom:1px solid var(--line); }
.vignette.has-thumb .vignette-top{ padding:10px 14px 0; }
.vignette.has-thumb .vignette-body{ padding:6px 14px 14px; flex:1;
  display:flex; flex-direction:column; gap:8px; }
.vignette.has-thumb .vignette-title{ font-size:14px; line-height:1.4; }
.band.inverted .vignette-thumb{ border-bottom-color:var(--inv-line); }

/* Fix: thumbnail rendu en <img> au lieu de background-image (pour onerror) */
.vignette-thumb{ display:block; overflow:hidden; background:rgba(0,0,0,.05); }
.vignette-thumb img{ width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .35s ease; }
.vignette.has-thumb:hover .vignette-thumb img{ transform:scale(1.03); }

/* ============ Page Module enrichie : grille de fiches ============ */
.module-fiche-intro{ font-size:15px; line-height:1.6; color:var(--muted);
  max-width:780px; margin:8px 0 22px; }
.module-fiche-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:18px; }
@media (max-width:880px){ .module-fiche-grid{ grid-template-columns:1fr; } }

.module-fiche{ display:flex; flex-direction:column; gap:10px; padding:22px 24px 20px;
  border:1px solid var(--line); border-radius:14px; background:transparent;
  transition:border-color .15s ease, box-shadow .15s ease; }
.module-fiche:hover{ border-color:var(--cyan); box-shadow:0 4px 18px -10px rgba(0,0,0,.35); }
.module-fiche-head{ display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-bottom:4px; }
.module-fiche-head .fiche-code{ display:inline-block; padding:3px 9px; border-radius:6px;
  background:rgba(0,191,255,.12); color:var(--cyan); font-size:11.5px;
  font-weight:700; letter-spacing:.02em; }
.module-fiche-badges{ display:flex; flex-wrap:wrap; gap:5px; justify-content:flex-end; }
.module-fiche-title{ font-size:18px; font-weight:800; line-height:1.35;
  margin:0; color:var(--txt); }
.module-fiche-accroche{ font-size:14.5px; line-height:1.55; color:var(--txt);
  margin:0; }
.module-fiche-plan{ list-style:none; padding:0; margin:6px 0 0; }
.module-fiche-plan li{ position:relative; padding:4px 0 4px 18px;
  font-size:13.5px; line-height:1.5; color:var(--muted); }
.module-fiche-plan li::before{ content:""; position:absolute; left:0; top:11px;
  width:6px; height:6px; border-radius:50%; background:var(--cyan); opacity:.6; }
.module-fiche-plan li.more{ font-style:italic; color:var(--muted2); }
.module-fiche-plan li.more::before{ display:none; }

.module-fiche-cta{ display:inline-block; align-self:flex-start;
  margin-top:8px; padding:8px 14px; border:1px solid var(--line);
  border-radius:8px; color:var(--cyan); text-decoration:none;
  font-size:13px; font-weight:600;
  transition:border-color .15s ease, background .15s ease; }
.module-fiche-cta:hover{ border-color:var(--cyan); background:rgba(0,191,255,.06); }

/* ============ FIX badges invisibles + vignettes distinctives par type ============ */

/* Fix : badges Synthèse/Slides/Cours dans les cartes module-fiche (dark mode) */
.module-fiche .media-badge{
  background:rgba(255,255,255,.08)!important;
  color:var(--txt)!important;
  border-color:var(--line)!important;
  padding:3px 9px;
  border-radius:6px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.02em;
}
html[data-theme=light] .module-fiche .media-badge{
  background:rgba(0,0,0,.05)!important;
  color:var(--txt)!important;
}

/* Variation par catégorie de vignette --------------------------------- */
/* Couleur d'accent par kind (visible sur la barre, le type-badge, l'icône) */
.vignette.k-video    { --k:#E12D39; }   /* rouge YouTube/TED */
.vignette.k-article  { --k:#00BFFF; }   /* cyan articles */
.vignette.k-study    { --k:#FFA500; }   /* orange études */
.vignette.k-book     { --k:#22C55E; }   /* vert livres/MOOC */
.vignette.k-news     { --k:#C084FC; }   /* violet news */

/* Type-badge coloré en haut de la vignette */
.vignette .vignette-top{ position:relative; padding:10px 12px 0; z-index:2; }
.vignette .vignette-type{
  display:inline-block; padding:3px 9px; border-radius:6px;
  background:var(--k, var(--cyan)); color:#fff;
  font-family:"JetBrains Mono", monospace; font-size:10px;
  font-weight:700; text-transform:uppercase; letter-spacing:.04em;
}
/* Vignettes avec thumb : type-badge superposé en haut à gauche */
.vignette.has-thumb .vignette-top{
  position:absolute; top:10px; left:10px; padding:0;
}

/* Overlay play sur les vidéos avec thumbnail */
.vignette-thumb{ position:relative; }
.vignette-play{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  pointer-events:none; transition:opacity .2s ease;
}
.vignette.has-thumb:hover .vignette-play{ opacity:.8; }

/* Pour les vignettes SANS thumb : icône grande en background subtil */
.vignette-icon{
  position:absolute; top:50%; right:14px; transform:translateY(-50%);
  width:44px; height:44px; color:var(--k, var(--cyan));
  opacity:.18; pointer-events:none;
}
.vignette:not(.has-thumb){ position:relative; min-height:118px; overflow:hidden; }
.vignette:not(.has-thumb) .vignette-body{ padding-right:60px; }
.vignette:hover .vignette-icon{ opacity:.35; }

/* Barre de gauche colorée par kind (subtile, sur vignette sans thumb) */
.vignette:not(.has-thumb){ border-left:3px solid var(--k, var(--cyan)); }

/* Variante : vignettes vidéo avec thumb — overlay rouge subtil au survol */
.vignette.k-video.has-thumb:hover .vignette-thumb img{ filter:brightness(.85); }

/* ============ DESIGN NIVEAU 1 ============ */

/* --- 1. Hero éditorial (home) ---------------------------------------- */
.hero-editorial{ padding:48px 36px 28px; min-height:auto; }
.hero-editorial-grid{ display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; }
@media (max-width:900px){ .hero-editorial-grid{ grid-template-columns:1fr; gap:22px; } }

.hero-text{ display:flex; flex-direction:column; gap:12px; }
.hero-editorial .hero-badge{ margin-bottom:0; }
.hero-editorial h1{ font-size:38px; line-height:1.15; margin:6px 0 4px; }
.hero-editorial .hero-sub{ font-size:16px; line-height:1.55; color:var(--muted); max-width:520px; margin:0; }
@media (max-width:680px){ .hero-editorial h1{ font-size:30px; } }

.hero-featured{ display:flex; flex-direction:column; gap:10px;
  padding:22px 24px 18px; border-radius:14px; text-decoration:none;
  background:rgba(192,132,252,.08); border:1px solid rgba(192,132,252,.25);
  transition:border-color .15s ease, transform .15s ease; }
.hero-featured:hover{ border-color:#C084FC; transform:translateY(-2px); }
.hero-featured-tag{ font-size:10.5px; color:#C084FC; letter-spacing:.06em; font-weight:700; }
.hero-featured-title{ font-size:20px; font-weight:800; line-height:1.3; color:var(--txt); }
.hero-featured-stand{ font-size:14px; line-height:1.55; color:var(--muted); }
.hero-featured-cta{ font-size:12px; color:#C084FC; font-weight:700; margin-top:4px; }

.hero-ticker{ display:flex; align-items:center; gap:18px;
  margin:26px -16px 0; padding:12px 18px; border-top:1px solid var(--line);
  overflow:hidden; }
.hero-ticker-label{ flex:none; font-size:10.5px; color:var(--cyan);
  font-weight:700; letter-spacing:.05em; }
.hero-ticker-track{ display:flex; gap:28px; overflow-x:auto; scrollbar-width:none;
  flex:1; align-items:center; }
.hero-ticker-track::-webkit-scrollbar{ display:none; }
.hero-ticker-item{ flex:none; display:inline-flex; gap:8px; align-items:baseline;
  text-decoration:none; color:var(--txt); padding:4px 0;
  border-bottom:1px solid transparent; transition:border-color .15s; }
.hero-ticker-item:hover{ border-bottom-color:var(--cyan); }
.hero-ticker-src{ font-size:10.5px; color:var(--muted); }
.hero-ticker-t{ font-size:13.5px; max-width:280px; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; }

/* --- 2. Bottom nav mobile -------------------------------------------- */
.bottom-nav{ display:none; }
@media (max-width:780px){
  .bottom-nav{ position:fixed; bottom:0; left:0; right:0; z-index:50;
    display:flex; justify-content:space-around; align-items:stretch;
    height:62px; padding:6px 8px env(safe-area-inset-bottom);
    background:var(--bg2); border-top:1px solid var(--line);
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
  .bn-item{ display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:3px; flex:1; text-decoration:none; color:var(--muted); font-size:11px;
    font-weight:600; transition:color .15s; padding:4px; border-radius:8px; }
  .bn-item:hover, .bn-item:active{ color:var(--cyan); background:rgba(0,191,255,.07); }
  .bn-accent{ color:#C084FC; }
  .bn-accent:hover, .bn-accent:active{ color:#C084FC; background:rgba(192,132,252,.10); }
  /* Laisser de l'espace au bas du contenu pour ne pas être caché */
  .main{ padding-bottom:84px; }
}

/* --- 3. Skeleton loaders --------------------------------------------- */
.skeleton-page{ padding:24px 32px; }
.skeleton{ background:linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%);
  background-size:200% 100%; border-radius:8px;
  animation:skeleton-shimmer 1.4s infinite linear; }
html[data-theme=light] .skeleton{
  background:linear-gradient(90deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.09) 50%, rgba(0,0,0,.05) 100%);
  background-size:200% 100%; }
@keyframes skeleton-shimmer{
  0%{ background-position:200% 0; }
  100%{ background-position:-200% 0; }
}
.skeleton-hero{ height:200px; margin-bottom:32px; border-radius:14px; }
.skeleton-band{ display:flex; flex-direction:column; gap:14px; }
.skeleton-tag{ height:14px; width:200px; border-radius:4px; }
.skeleton-title{ height:32px; width:60%; border-radius:6px; margin-bottom:10px; }
.skeleton-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-top:8px; }
@media (max-width:900px){ .skeleton-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){ .skeleton-grid{ grid-template-columns:1fr; } }
.skeleton-card{ height:140px; border-radius:12px; }

/* --- 4. Reading time sur tool hero ----------------------------------- */
.reading-time{ color:var(--cyan); font-weight:600; }

/* --- 5. Search live dropdown ----------------------------------------- */
.nav-search{ position:relative; }
.search-preview{ position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 12px 40px -8px rgba(0,0,0,.45);
  overflow:hidden; z-index:60; max-height:480px; overflow-y:auto; }
.search-preview-item{ display:flex; align-items:center; gap:12px;
  padding:12px 16px; text-decoration:none; color:var(--txt);
  border-bottom:1px solid var(--line); transition:background .15s; }
.search-preview-item:last-of-type{ border-bottom:none; }
.search-preview-item:hover{ background:var(--bg2); }
.sp-code{ flex:none; min-width:48px; padding:3px 8px; border-radius:6px;
  background:rgba(0,191,255,.12); color:var(--cyan);
  font-size:11px; font-weight:700; text-align:center; }
.sp-body{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.sp-title{ font-size:14px; font-weight:600; line-height:1.35;
  overflow:hidden; text-overflow:ellipsis; }
.sp-meta{ font-size:11px; color:var(--muted); }
.search-preview-more{ display:block; padding:11px 16px; text-align:center;
  text-decoration:none; color:var(--cyan); font-weight:700; font-size:13px;
  background:var(--bg2); border-top:1px solid var(--line);
  font-family:"JetBrains Mono", monospace; }
.search-preview-more:hover{ background:rgba(0,191,255,.08); }
.search-empty{ padding:18px 16px; color:var(--muted); font-size:13.5px;
  text-align:center; }

/* ============ ANNOTATIONS — surlignage + notes personnelles ============ */

/* Toolbar flottante de sélection */
.ann-toolbar{ position:absolute; z-index:1000; display:flex; align-items:center; gap:4px;
  padding:6px; border-radius:10px;
  background:var(--panel); border:1px solid var(--line);
  box-shadow:0 8px 28px -8px rgba(0,0,0,.45);
  animation:annPop .12s ease-out; user-select:none; -webkit-user-select:none; }
@keyframes annPop{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:translateY(0); } }
.ann-tool-color{ width:26px; height:26px; border-radius:6px; border:1px solid var(--line);
  cursor:pointer; padding:0; transition:transform .12s, border-color .12s; }
.ann-tool-color:hover{ transform:scale(1.1); border-color:var(--cyan); }
.ann-c-yellow{ background:rgba(250,204,21,.85); }
.ann-c-green{  background:rgba(34,197,94,.78); }
.ann-c-pink{   background:rgba(244,114,182,.85); }
.ann-tool-sep{ width:1px; height:18px; background:var(--line); margin:0 2px; }
.ann-tool-note{ padding:0 11px; height:26px; border-radius:6px; border:1px solid var(--line);
  background:transparent; color:var(--txt); cursor:pointer;
  font-size:11.5px; font-weight:700; letter-spacing:.02em;
  transition:border-color .12s, color .12s; }
.ann-tool-note:hover{ border-color:var(--cyan); color:var(--cyan); }

/* Marks (le surlignage lui-même) */
.ann-mark{ padding:1px 3px; border-radius:3px; cursor:pointer; color:inherit;
  transition:filter .15s, box-shadow .15s; }
.ann-mark:hover{ box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); }
.ann-yellow{ background:rgba(250,204,21,.32); }
.ann-green{  background:rgba(34,197,94,.32); }
.ann-pink{   background:rgba(244,114,182,.38); }
html[data-theme=light] .ann-yellow{ background:rgba(250,204,21,.7); }
html[data-theme=light] .ann-green{  background:rgba(34,197,94,.55); }
html[data-theme=light] .ann-pink{   background:rgba(244,114,182,.6); }
.ann-mark[title]:after{ content:"📝"; font-size:.7em; margin-left:3px;
  opacity:.5; vertical-align:super; }

/* Menu (clic sur un highlight existant) */
.ann-menu{ position:absolute; z-index:1000; min-width:190px; padding:10px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:10px;
  box-shadow:0 8px 28px -8px rgba(0,0,0,.45);
  display:flex; flex-direction:column; gap:6px;
  animation:annPop .12s ease-out; }
.ann-menu-note{ font-size:12.5px; line-height:1.5; color:var(--txt);
  padding:8px 10px; background:var(--bg2); border-radius:6px;
  border-left:3px solid var(--cyan); margin-bottom:2px; }
.ann-menu button{ background:transparent; border:1px solid var(--line); color:var(--txt);
  padding:7px 11px; border-radius:6px; cursor:pointer; font-size:12px;
  text-align:left; font-family:inherit;
  transition:border-color .12s, color .12s; }
.ann-menu button:hover{ border-color:var(--cyan); color:var(--cyan); }
.ann-menu button[data-action=remove]:hover{ border-color:#E12D39; color:#E12D39; }

/* Compteur dans la nav */
.notes-count{ display:inline-block; min-width:18px; padding:1px 6px;
  border-radius:10px; background:var(--cyan); color:#000;
  font-size:10.5px; font-weight:800; margin-left:4px; vertical-align:1px;
  font-family:"JetBrains Mono", monospace; }

/* Page « Mes notes » */
.ann-back-link{ display:inline-block; color:var(--cyan); margin:6px 0 16px;
  text-decoration:none; font-size:12px; }
.ann-back-link:hover{ text-decoration:underline; }
.ann-list{ list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap:14px; }
.ann-item{ padding:14px 18px; border:1px solid var(--line); border-radius:10px;
  border-left:4px solid var(--cyan); background:transparent;
  transition:border-color .15s, transform .12s; }
.ann-item:hover{ border-color:var(--cyan); transform:translateX(2px); }
.ann-li-yellow{ border-left-color:rgba(250,204,21,.9); }
.ann-li-green{  border-left-color:rgba(34,197,94,.9); }
.ann-li-pink{   border-left-color:rgba(244,114,182,.9); }
.ann-item-text{ font-size:14.5px; line-height:1.55; color:var(--txt); font-style:italic; }
.ann-item-note{ margin-top:10px; font-size:13px; line-height:1.5; color:var(--txt);
  padding:8px 12px; background:var(--bg2); border-radius:6px; }
.ann-item-meta{ margin-top:12px; font-size:10.5px; color:var(--muted); }
.ann-item-edit, .ann-item-remove{ background:transparent; border:none; color:var(--muted);
  cursor:pointer; font-size:10.5px; text-decoration:underline; padding:0;
  font-family:inherit; }
.ann-item-edit:hover{ color:var(--cyan); }
.ann-item-remove:hover{ color:#E12D39; }

/* Responsive : sur mobile, toolbar plus large */
@media (max-width:600px){
  .ann-toolbar{ padding:8px; gap:6px; }
  .ann-tool-color{ width:32px; height:32px; }
  .ann-tool-note{ height:32px; padding:0 14px; font-size:13px; }
}

/* ============ NEWSLETTER + CONFIDENTIALITE ============ */

/* "Newsletter bientôt" badge devient un lien cliquable */
.recap-soon-live{ background:rgba(192,132,252,.12); color:#C084FC;
  text-decoration:none; padding:5px 12px; border-radius:999px;
  font-weight:700; font-size:11px; letter-spacing:.02em;
  border:1px solid rgba(192,132,252,.35); transition:all .15s ease; }
.recap-soon-live:hover{ background:rgba(192,132,252,.22);
  border-color:#C084FC; transform:translateY(-1px); }

/* Page /newsletter */
.newsletter-hero{ padding:64px 36px 40px; text-align:left;
  border-bottom:1px solid var(--line); }
.nl-hero-tag{ display:inline-block; padding:5px 12px; border-radius:999px;
  background:rgba(192,132,252,.12); color:#C084FC; font-weight:700;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  margin-bottom:18px; border:1px solid rgba(192,132,252,.25); }
.nl-hero-title{ font-size:42px; line-height:1.15; margin:0 0 14px;
  max-width:760px; font-weight:800; letter-spacing:-.01em; }
@media (max-width:680px){ .nl-hero-title{ font-size:30px; } }
.nl-hero-sub{ font-size:17px; line-height:1.55; color:var(--muted);
  max-width:660px; margin:0 0 28px; }
.nl-hero-form{ max-width:520px; }

/* Forme du formulaire */
.nl-form{ display:flex; flex-direction:column; gap:10px; }
.nl-row{ display:flex; gap:8px; }
@media (max-width:520px){ .nl-row{ flex-direction:column; } }
.nl-input{ flex:1; padding:13px 16px; border-radius:10px;
  border:1px solid var(--line); background:var(--bg2); color:var(--txt);
  font-size:15px; font-family:inherit; transition:border-color .15s; }
.nl-input:focus{ outline:none; border-color:var(--cyan); }
.nl-input::placeholder{ color:var(--muted); }
.nl-btn{ padding:13px 22px; border-radius:10px; border:none;
  background:#C084FC; color:#0a0a0a; font-weight:800; font-size:14px;
  cursor:pointer; letter-spacing:.01em; transition:background .15s, transform .15s;
  font-family:inherit; }
.nl-btn:hover{ background:#A855F7; transform:translateY(-1px); }
.nl-btn:active{ transform:translateY(0); }
.nl-honeypot{ position:absolute; left:-9999px; width:1px; height:1px;
  opacity:0; pointer-events:none; }
.nl-fineprint{ font-size:11.5px; color:var(--muted); margin:0; line-height:1.5; }
.nl-fineprint a{ color:var(--cyan); text-decoration:none; }
.nl-fineprint a:hover{ text-decoration:underline; }

/* Sections page newsletter */
.nl-h2{ font-size:24px; margin:0 0 16px; font-weight:800; letter-spacing:-.01em; }
.nl-promise{ padding:48px 36px; }
.nl-promise-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:18px; }
@media (max-width:780px){ .nl-promise-grid{ grid-template-columns:1fr; } }
.nl-promise-card{ padding:22px; border:1px solid var(--line); border-radius:12px;
  background:transparent; transition:border-color .15s, transform .15s; }
.nl-promise-card:hover{ border-color:var(--cyan); transform:translateY(-2px); }
.nl-promise-icon{ font-size:24px; margin-bottom:8px; }
.nl-promise-h{ font-weight:700; font-size:16px; margin-bottom:6px; }
.nl-promise-d{ font-size:13.5px; line-height:1.55; color:var(--muted); }

.nl-cadence{ padding:36px 36px 48px; }
.nl-text{ font-size:15px; line-height:1.6; color:var(--txt); max-width:680px; margin:0; }

.nl-final-cta{ padding:48px 36px 80px; border-top:1px solid var(--line);
  background:rgba(192,132,252,.05); }
.nl-form-card{ max-width:520px; margin-top:18px; }

/* Encart footer (présent partout) */
.nl-footer-box{ margin:48px 36px 0; padding:28px 30px; border-radius:14px;
  background:linear-gradient(135deg, rgba(192,132,252,.08), rgba(0,191,255,.04));
  border:1px solid rgba(192,132,252,.18); }
.nl-footer-box .nl-fb-tag{ font-size:11px; color:#C084FC; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:8px; }
.nl-footer-box h3{ font-size:18px; margin:0 0 6px; font-weight:800; }
.nl-footer-box p{ font-size:13.5px; color:var(--muted); margin:0 0 16px; line-height:1.5; }
.nl-footer-box .nl-form{ max-width:480px; }

/* Encart violet en fin de Récap */
.nl-recap-end{ margin:34px 0 8px; padding:24px 28px; border-radius:14px;
  background:linear-gradient(135deg, rgba(192,132,252,.10), rgba(192,132,252,.04));
  border:1px solid rgba(192,132,252,.25); }
.nl-recap-end .nl-fb-tag{ font-size:10.5px; color:#C084FC; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:6px; }
.nl-recap-end h3{ font-size:17px; margin:0 0 4px; font-weight:800; }
.nl-recap-end p{ font-size:13px; color:var(--muted); margin:0 0 14px; line-height:1.5; }

/* Page /confidentialite */
.legal-page{ max-width:720px; padding:48px 36px 80px; }
.legal-page h1{ font-size:32px; margin:0 0 8px; font-weight:800; letter-spacing:-.01em; }
.legal-page h2{ font-size:17px; margin:32px 0 10px; font-weight:700; color:var(--cyan); }
.legal-page p{ font-size:14.5px; line-height:1.65; color:var(--txt); margin:0 0 12px; }
.legal-page ul{ font-size:14.5px; line-height:1.65; padding-left:22px; margin:0 0 12px; }
.legal-page ul li{ margin-bottom:6px; }
.legal-page a{ color:var(--cyan); text-decoration:none; }
.legal-page a:hover{ text-decoration:underline; }
.legal-page section{ margin:0; }
.legal-meta{ font-size:11.5px; color:var(--muted); font-family:"JetBrains Mono",monospace; }

/* Message de succès après inscription */
.nl-success{ padding:24px 28px; border-radius:12px;
  background:rgba(34,197,94,.10); border:1px solid rgba(34,197,94,.35);
  display:flex; flex-direction:column; gap:6px; align-items:flex-start;
  animation:annPop .25s ease-out; max-width:520px; }
.nl-success-icon{ width:36px; height:36px; border-radius:50%;
  background:#22C55E; color:#000; display:flex; align-items:center;
  justify-content:center; font-weight:900; font-size:20px; margin-bottom:4px; }
.nl-success-h{ font-weight:800; font-size:16px; color:#22C55E; }
.nl-success-d{ font-size:13.5px; line-height:1.55; color:var(--txt); }
.nl-btn:disabled{ opacity:.6; cursor:wait; }

/* ============ HERO BANNER PHOTO (home) ============ */
/* Bandeau photo strict (au-dessus du hero éditorial) */
.home-banner{ position:relative; width:100%;
  height:260px;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.0) 55%, rgba(10,10,10,.88) 100%),
    url("/static/img/hero-home.jpg");
  background-size:auto, cover;
  background-position:center, center 50%;
  background-repeat:no-repeat, no-repeat;
  margin-bottom:-1px; }
.home-banner-tag{ position:absolute; left:36px; bottom:18px;
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 13px; border-radius:999px;
  background:rgba(0,0,0,.55); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  color:#fff; font-family:"JetBrains Mono", monospace;
  font-size:10.5px; letter-spacing:.06em; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.18); }
.home-banner-tag-dot{ width:8px; height:8px; border-radius:50%;
  background:var(--cyan); box-shadow:0 0 8px var(--cyan); }
@media (max-width:780px){
  .home-banner{ height:180px; }
  .home-banner-tag{ left:18px; bottom:14px; font-size:10px; padding:5px 11px; }
}

/* Bandeau vert Eduservices (sans photo, ambiance institutionnelle) */
.home-banner-empty{ height:auto !important; padding:30px 36px !important;
  background:linear-gradient(135deg, var(--campus-green-dark, #002a55) 0%, var(--campus-green, #003e7d) 100%) !important;
  background-image:none !important; }
.home-banner-empty .home-banner-tag{ position:static; background:rgba(0,0,0,.22); }

/* ============ LE MAG NANCY — REFONTE PLUS LUMINEUSE ============ */

/* ========= Schools banner — campus Eduservices Nancy (dark unified) ========= */
.schools-banner{
  padding: 36px 36px 28px;
  background: linear-gradient(180deg, #02182d 0%, #093663 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.schools-banner-head{ margin-bottom: 20px; max-width: 760px; }
.schools-banner-tag{
  display: inline-block; font-family: "JetBrains Mono", monospace;
  color: var(--campus-gold, #fac422); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.schools-banner-head h2{ color: #FFFFFF; font-size: 26px; letter-spacing:-.01em; margin-bottom: 8px; }
.schools-banner-sub{ font-size: 15px; line-height: 1.55; color: #B7C7DA; }

/* Chips campus unifiées (pas de segmentation par école) */
.campus-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.campus-chip{ display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12);
  color:#d4e0ee; font-family:"JetBrains Mono", monospace; font-size:11.5px;
  letter-spacing:.04em; }
.campus-chip::before{ content:""; width:7px; height:7px; border-radius:50%;
  background:var(--campus-gold,#fac422); }

/* ========= Dark accent override : --cyan devient bleu Pigier ========= */
:root{
  --cyan: #007ab5;          /* bleu vif Pigier — remplace le cyan #00BFFF */
  --secondary: #093663;     /* bleu marine secondaire */
  --bg: #02182d;            /* fond bleu marine très sombre Pigier */
  --bg2: #0a2549;
  --panel: #0a2549;
  --line: #1a3a66;
  --txt: #f4f7fb;
  --muted: #9ab0c8;
  --muted2: #6e8aa8;
}
html[data-theme=light]{ --bg:#fff; --bg2:#f6f6f9; --panel:#fff; --line:#e2e2ea;
  --txt:#15151c; --muted:#5a5a68; --muted2:#8a8a96;
  --inv-bg:#0a0a0f; --inv-txt:#f4f4f7; --inv-muted:#9a9aa8; --inv-line:#23232e; }

/* Le hero éditorial reprend le style dark natif (pas d'override) */

/* ============ VISUELS — hero photo, bandeaux thématiques, miniatures ============ */

/* Bandeau photo home : voile bleu marine Pigier (au lieu du noir du mag perso) */
.home-banner{
  background-image:
    linear-gradient(180deg, rgba(2,24,45,.20) 0%, rgba(2,24,45,.32) 55%, rgba(2,24,45,.96) 100%),
    url("/static/img/hero-home.jpg");
}
.home-banner-tag{ background:rgba(2,24,45,.62);
  border-color:rgba(250,196,34,.35); }
.home-banner-tag-dot{ background:var(--campus-gold,#fac422);
  box-shadow:0 0 8px var(--campus-gold,#fac422); }

/* Bandeau photo par thématique (background-image injecté inline par app.js) */
.theme-hero.has-photo{ background-size:cover; background-position:center;
  border-bottom:3px solid var(--campus-gold,#fac422); }
.theme-hero.has-photo .theme-hero-icon{ display:none; }
.theme-hero.has-photo h1{ color:#fff; text-shadow:0 1px 14px rgba(2,24,45,.7); }
.theme-hero.has-photo .hero-sub{ color:#d4e0ee; text-shadow:0 1px 10px rgba(2,24,45,.7); }
.theme-hero.has-photo .hero-badge{ background:rgba(2,24,45,.45);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }

/* Favicon de la source sur les vignettes sans image */
.vignette-fav{ width:16px; height:16px; border-radius:4px;
  vertical-align:-3px; margin-right:6px; background:#fff; padding:1px; }

/* Grille quinconce (masonry) — grosses vignettes façon feed Discover tablette */
.vignette-grid.vignette-masonry{ display:block; columns:300px 3; column-gap:18px; }
.vignette-grid.vignette-masonry .vignette{ display:inline-flex; width:100%;
  margin:0 0 18px; break-inside:avoid; -webkit-column-break-inside:avoid;
  vertical-align:top; min-height:0; }
.vignette-grid.vignette-masonry .vignette-title{ font-size:16.5px; line-height:1.4; font-weight:700; }
.vignette-grid.vignette-masonry .vignette.has-thumb .vignette-body{ padding:12px 16px 16px; }
.vignette-grid.vignette-masonry .vignette:not(.has-thumb) .vignette-body{ padding:18px 64px 18px 18px; }
.vignette-grid.vignette-masonry .vignette-src{ font-size:11px; }

/* Modules en chips compactes sur la page thème */
.module-strip-band{ padding-top:30px; padding-bottom:10px; }
.module-strip{ display:flex; flex-wrap:wrap; gap:10px; }
.module-chip{ display:inline-flex; align-items:center; gap:9px; padding:9px 15px;
  border:1px solid var(--line); border-radius:999px; background:var(--panel);
  color:var(--txt); font-size:13px; font-weight:600; transition:.15s; }
.module-chip:hover{ border-color:var(--campus-gold,#fac422); transform:translateY(-1px); }
.module-chip-num{ color:var(--campus-gold,#fac422); font-size:11px; }

/* Photo sur les cartes thèmes de la home */
.theme-card-photo{ aspect-ratio:16/7; overflow:hidden;
  background:rgba(255,255,255,.03); border-bottom:1px solid var(--line); }
.theme-card-photo img{ width:100%; height:100%; object-fit:cover; display:block;
  filter:saturate(.92); transition:transform .35s ease; }
.theme-card:hover .theme-card-photo img{ transform:scale(1.045); }

/* Compteur modules/ressources lisible sur bandeau photo */
.theme-hero.has-photo .hero-meta{ color:#b9c9da; text-shadow:0 1px 8px rgba(2,24,45,.7); }

/* Header mobile : brand compact (le sous-titre s'étalait sur 4 lignes) */
@media (max-width:680px){
  .topnav-inner{ gap:10px; padding:10px 14px; }
  .brand-text .name{ font-size:14px; line-height:1.2; }
  .brand-text .sub{ display:none; }
}
