/* ============================================================
   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); }
