/* ============================================================
   GLADYS GUIDE — FEUILLE DE STYLE PARTAGÉE
   À utiliser pour toutes les pages du guide utilisateur et du
   centre de ressources (hub, catégories, articles).

   USAGE
   -----
   1. Lie ce fichier dans le <head> de chaque nouvelle page :
        <link rel="stylesheet" href="gladys-guide.css">
      (Les polices Google Fonts sont déjà importées plus bas,
      inutile d'ajouter un <link> Google Fonts séparé.)

   2. Pour teinter une page à la couleur de sa famille, ajoute
      une classe "theme-*" sur la balise <body> :
        theme-accent  → violet   (Prise en main)
        theme-teal    → turquoise (Organiser son travail)
        theme-green   → vert      (Gestion de portefeuille)
        theme-orange  → orange    (Gérer un projet)
        theme-coral   → corail    (Collaborer)
        theme-gold    → or        (Administration)
      Sans classe "theme-*", la page utilise le violet par défaut.
      Tous les éléments qui doivent porter la couleur de famille
      (eyebrow, badges kbd, encarts, liens actifs...) s'adaptent
      automatiquement via les variables --family / --family-soft
      / --family-dark.

   3. Les scripts (accordéon FAQ, sommaire dépliable) ne sont PAS
      inclus ici — ce sont quelques lignes de JS à garder dans
      un <script> en bas de chaque page (voir les pages existantes
      pour l'exemple : accordéon .faq-item / .group / .subgroup).

   CHANGELOG
   ---------
   - v2 : ajout du niveau imbriqué "sous-groupe" dans le sommaire
     (.subgroup / .subgroup-btn / .subsubitems / .chevron-sub),
     et fix .card{display:block} pour utiliser une carte comme
     lien <a> sans double contour.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root{
  /* Neutres */
  --ink:#12172B;
  --muted:#636B85;
  --bg:#F5F6FA;
  --card:#FFFFFF;
  --border:#E4E6F0;
  --navy:#10182E;
  --navy-row:#1B2444;
  --navy-row-hover:#242F55;

  /* Palette de marque (base — sert aussi de fallback aux thèmes) */
  --accent:#6C5CE7;
  --accent-soft:#EFEBFD;
  --accent-dark:#4A3FC7;

  --teal:#2DBFB8;
  --teal-soft:#E9FAF9;
  --teal-dark:#0F7A75;

  --orange:#E8873A;
  --orange-soft:#FCEFE3;
  --orange-dark:#B5641C;

  --coral:#E2685F;
  --coral-soft:#FDEEED;
  --coral-dark:#B23A32;

  --gold:#E0B23A;
  --gold-soft:#FBF3DD;
  --gold-dark:#8C6A12;

  --green:#4FAE7A;
  --green-soft:#EAF7F0;
  --green-dark:#1F7A4C;

  --red:#E0473E;

  /* Couleur "de famille" active sur la page — violet par défaut */
  --family:var(--accent);
  --family-soft:var(--accent-soft);
  --family-dark:var(--accent-dark);
}

/* Classes à poser sur <body> pour teinter une page */
body.theme-accent{ --family:var(--accent); --family-soft:var(--accent-soft); --family-dark:var(--accent-dark); }
body.theme-teal  { --family:var(--teal);   --family-soft:var(--teal-soft);   --family-dark:var(--teal-dark); }
body.theme-orange{ --family:var(--orange); --family-soft:var(--orange-soft); --family-dark:var(--orange-dark); }
body.theme-coral { --family:var(--coral);  --family-soft:var(--coral-soft);  --family-dark:var(--coral-dark); }
body.theme-gold  { --family:var(--gold);   --family-soft:var(--gold-soft);   --family-dark:var(--gold-dark); }
body.theme-green { --family:var(--green);  --family-soft:var(--green-soft);  --family-dark:var(--green-dark); }

/* ============================================================
   2. RESET & TYPOGRAPHIE DE BASE
   ============================================================ */
*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family:'Inter', sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
h1, h2, h3{ font-family:'Sora', sans-serif; }
.mono{ font-family:'IBM Plex Mono', monospace; letter-spacing:.04em; }
a{ color:inherit; text-decoration:none; }

/* ============================================================
   3. TOP BAR (identique sur toutes les pages)
   ============================================================ */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 48px; border-bottom:1px solid var(--border); background:var(--card);
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:32px; height:32px; border-radius:9px; background:linear-gradient(135deg, var(--accent), #8B7CF0); }
.brand-name{ font-family:'Sora', sans-serif; font-weight:700; font-size:17px; }
.brand-tag{
  font-size:11px; color:var(--muted); font-family:'IBM Plex Mono', monospace;
  border:1px solid var(--border); padding:3px 8px; border-radius:20px; margin-left:6px;
}
.topbar-link{ font-size:14px; color:var(--muted); font-weight:500; display:flex; align-items:center; gap:6px; }
.topbar-link:hover{ color:var(--ink); }
.topbar-nav{ display:flex; align-items:center; gap:28px; }
.topbar-nav a{ font-size:14px; color:var(--muted); font-weight:500; }
.topbar-nav a:hover{ color:var(--ink); }

/* ============================================================
   4. FIL D'ARIANE (pages catégorie / article)
   ============================================================ */
.breadcrumb{
  max-width:1200px; margin:0 auto; padding:24px 48px 0;
  display:flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--muted);
}
.breadcrumb a:hover{ color:var(--family); }
.breadcrumb .sep{ opacity:.4; }
.breadcrumb .current{ color:var(--ink); }

/* ============================================================
   5. HERO (page hub uniquement)
   ============================================================ */
.hero{ max-width:1360px; margin:0 auto; padding:64px 48px 40px; }
.hero.centered{ text-align:center; max-width:1200px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:7px;
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--family);
  text-transform:uppercase; letter-spacing:.12em; margin-bottom:14px;
}
.eyebrow .dot{ width:8px; height:8px; border-radius:50%; background:var(--family); }
.hero h1{ font-size:42px; font-weight:700; line-height:1.15; max-width:720px; letter-spacing:-.01em; }
.hero.centered h1{ max-width:none; font-size:44px; }
.hero p{ margin-top:16px; font-size:16px; color:var(--muted); max-width:560px; line-height:1.6; }
.hero.centered p{ margin-left:auto; margin-right:auto; }

.search-box{
  margin-top:32px; max-width:480px;
  display:flex; align-items:center; gap:10px;
  background:var(--card); border:1px solid var(--border); border-radius:12px;
  padding:13px 16px; box-shadow:0 1px 2px rgba(16,24,46,.03);
}
.search-box input{ border:none; outline:none; font-size:14px; font-family:'Inter'; width:100%; background:transparent; }
.search-box svg{ flex-shrink:0; opacity:.45; }

.jump-row{ display:flex; justify-content:center; gap:12px; margin-top:32px; flex-wrap:wrap; }
.jump-pill{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border); background:var(--card); border-radius:30px;
  padding:9px 18px; font-size:13.5px; font-weight:500; color:var(--ink);
}
.jump-pill:hover{ border-color:var(--family); color:var(--family); }
.jump-pill .dot{ width:8px; height:8px; border-radius:50%; }

.tagline{ background:linear-gradient(90deg, var(--accent), #8B7CF0); padding:20px 48px; text-align:center; }
.tagline p{ font-family:'Sora', sans-serif; font-style:italic; font-weight:600; color:#fff; font-size:17px; letter-spacing:-.005em; }

/* ============================================================
   6. EN-TÊTE DE PAGE CATÉGORIE / ARTICLE
   ============================================================ */
.article-header, .cat-header{ max-width:1200px; margin:0 auto; padding:20px 48px 32px; }
.article-header{ border-bottom:1px solid var(--border); }
.article-header h1, .cat-header h1{
  font-size:38px; font-weight:700; line-height:1.18; max-width:760px; letter-spacing:-.01em;
}
.cat-header h1{ font-size:40px; }
.article-header .lead, .cat-header .lead{
  margin-top:14px; font-size:16px; color:var(--muted); max-width:620px; line-height:1.6;
}
.meta-row{ margin-top:22px; display:flex; align-items:center; gap:14px; font-size:13px; color:var(--muted); }
.meta-row .sep{ width:3px; height:3px; border-radius:50%; background:var(--muted); opacity:.5; }
.cat-meta{ margin-top:20px; font-size:13px; color:var(--muted); font-family:'IBM Plex Mono', monospace; }

/* ============================================================
   7. LAYOUTS (grilles à 2 colonnes)
   ============================================================ */
/* Hub / catégorie : contenu + sommaire large (380px) */
.layout{
  max-width:1360px; margin:0 auto; padding:8px 48px 96px;
  display:grid; grid-template-columns:1fr 380px; gap:40px; align-items:start;
}
/* Article : contenu + sidebar étroite (300px) — utiliser .layout--article */
.layout--article{
  max-width:1200px; grid-template-columns:1fr 300px; gap:56px; padding:40px 48px 96px;
}

/* ============================================================
   8. CARTES DE CATÉGORIE (page hub)
   ============================================================ */
.section-label{
  font-size:12px; font-family:'IBM Plex Mono', monospace; color:var(--muted);
  text-transform:uppercase; letter-spacing:.1em; margin:36px 0 16px;
}
.section-label:first-child{ margin-top:0; }
.cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.card{
  display:block;
  background:var(--card); border:1px solid var(--border); border-radius:14px;
  padding:22px; cursor:pointer; transition:.15s ease;
}
.card:hover{ border-color:var(--family); box-shadow:0 4px 16px rgba(108,92,231,.09); transform:translateY(-1px); }
.card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.dot{ width:10px; height:10px; border-radius:50%; display:inline-block; }
.card-count{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--muted);
  background:var(--bg); padding:3px 9px; border-radius:20px;
}
.card h3{ font-size:16px; font-weight:600; margin-bottom:6px; }
.card p{ font-size:13.5px; color:var(--muted); line-height:1.55; }

.intro-text{ font-size:15px; color:var(--muted); line-height:1.75; max-width:640px; margin-bottom:8px; }
.intro-text strong{ color:var(--ink); font-weight:600; }

/* ============================================================
   9. SOMMAIRE / ARBORESCENCE DÉPLIABLE (navy, mirroring l'appli)
   ============================================================ */
.toc-wrap{ position:sticky; top:24px; }
.toc{ background:var(--navy); border-radius:16px; overflow:hidden; box-shadow:0 12px 32px rgba(16,24,46,.16); }
.toc-header{ padding:20px 22px 14px; border-bottom:1px solid rgba(255,255,255,.08); }
.toc-header span{
  color:rgba(255,255,255,.5); font-family:'IBM Plex Mono', monospace;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
}
.toc-header h2{ color:#fff; font-size:16px; margin-top:6px; }
.toc-list{ padding:10px 10px 16px; }
.group{ margin-bottom:2px; }
.group-btn{
  width:100%; display:flex; align-items:center; gap:10px;
  background:none; border:none; cursor:pointer;
  padding:11px 12px; border-radius:9px; color:#fff;
  font-family:'Inter'; font-size:14px; font-weight:500;
}
.group-btn:hover{ background:var(--navy-row-hover); }
.group.current .group-btn{ background:var(--navy-row); }
.group-btn .dot{ flex-shrink:0; }
.group-btn .label{ flex:1; text-align:left; }
.group-btn .count{ font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:rgba(255,255,255,.45); }
.chevron{ width:14px; height:14px; flex-shrink:0; transition:transform .18s ease; stroke:rgba(255,255,255,.55); }
.group.open .chevron{ transform:rotate(90deg); }
.subitems{ max-height:0; overflow:hidden; transition:max-height .22s ease; }
.group.open .subitems{ max-height:400px; }
.subitems a{
  display:flex; align-items:center; gap:10px;
  padding:9px 12px 9px 40px; margin:1px 6px;
  border-radius:8px; font-size:13.5px; color:rgba(255,255,255,.72);
}
.subitems a:hover{ background:var(--navy-row); color:#fff; }
.subitems a.current-page{ background:var(--navy-row); color:#fff; font-weight:600; }
.subitems a::before{ content:''; width:4px; height:4px; border-radius:50%; background:rgba(255,255,255,.35); flex-shrink:0; }
.subitems a:hover::before, .subitems a.current-page::before{ background:var(--family); }

/* ---------- Sous-groupe imbriqué (niveau 3 du sommaire, ex. "Découvrir l'interface") ---------- */
.subgroup{ margin:1px 6px; }
.subgroup-btn{
  width:100%; display:flex; align-items:center; gap:9px;
  background:none; border:none; cursor:pointer;
  padding:9px 12px 9px 40px; border-radius:8px; color:rgba(255,255,255,.85);
  font-family:'Inter'; font-size:13.5px; font-weight:500;
}
.subgroup-btn:hover{ background:var(--navy-row); }
.subgroup-btn .dot{ width:6px; height:6px; flex-shrink:0; }
.subgroup-btn .label{ flex:1; text-align:left; }
.subgroup-btn .count{ font-family:'IBM Plex Mono', monospace; font-size:10px; color:rgba(255,255,255,.4); }
.chevron-sub{ width:11px; height:11px; flex-shrink:0; transition:transform .18s ease; stroke:rgba(255,255,255,.5); }
.subgroup.open .chevron-sub{ transform:rotate(90deg); }
.subsubitems{ max-height:0; overflow:hidden; transition:max-height .22s ease; }
.subgroup.open .subsubitems{ max-height:200px; }
.subsubitems a{
  display:flex; align-items:center; gap:10px;
  padding:8px 12px 8px 62px; margin:1px 6px;
  border-radius:8px; font-size:13px; color:rgba(255,255,255,.65);
}
.subsubitems a:hover{ background:var(--navy-row); color:#fff; }
.subsubitems a::before{ content:''; width:4px; height:4px; border-radius:50%; background:rgba(255,255,255,.3); flex-shrink:0; }
.subsubitems a:hover::before{ background:var(--family); }
.toc-footer{ padding:16px 22px; border-top:1px solid rgba(255,255,255,.08); font-size:12px; color:rgba(255,255,255,.4); }
.hidden-item{ display:none !important; }

/* ============================================================
   10. CORPS D'ARTICLE (typographie, badges, encadrés)
   ============================================================ */
.article{ max-width:680px; }
.article > * + *{ margin-top:22px; }
.article h2{ font-size:22px; font-weight:700; margin-top:44px; padding-top:4px; letter-spacing:-.005em; }
.article h3{ font-size:16px; font-weight:600; margin-top:28px; }
.article p{ font-size:15.5px; line-height:1.75; color:#33394F; }
.article strong{ color:var(--ink); font-weight:600; }
.article ol, .article ul{ padding-left:22px; }
.article li{ font-size:15.5px; line-height:1.8; color:#33394F; }
.article li::marker{ color:var(--family); font-weight:600; }

.kbd{
  display:inline-flex; align-items:center; gap:6px;
  background:var(--family-soft); color:var(--family-dark); font-family:'IBM Plex Mono', monospace;
  font-size:12.5px; padding:2px 9px; border-radius:6px; font-weight:500;
}

.shot{ border:1px dashed var(--border); border-radius:14px; background:var(--card); padding:36px; text-align:center; }
.shot-icon{
  width:44px; height:44px; margin:0 auto 14px; border-radius:12px;
  background:var(--family-soft); display:flex; align-items:center; justify-content:center;
}
.shot p{ font-size:13.5px; color:var(--muted); margin-top:0; }
.shot .shot-title{ font-size:14px; color:var(--ink); font-weight:600; margin-bottom:4px; }

.callout{
  display:flex; gap:12px; background:var(--family-soft); border-left:3px solid var(--family);
  padding:16px 18px; border-radius:0 10px 10px 0;
}
.callout.warn{ background:var(--coral-soft); border-left-color:var(--red); }
.callout .icon{ flex-shrink:0; font-size:15px; }
.callout p{ font-size:14px; color:var(--family-dark); line-height:1.65; }
.callout.warn p{ color:#6B2420; }
.callout strong{ color:var(--family-dark); }
.callout.warn strong{ color:#8C1F16; }

.feature-list{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.feature-list li{
  list-style:none; display:flex; gap:12px; align-items:flex-start;
  background:var(--card); border:1px solid var(--border); border-radius:10px; padding:14px 16px;
}
.feature-list li .fdot{ width:8px; height:8px; border-radius:50%; margin-top:6px; flex-shrink:0; background:var(--family); }
.feature-list li div{ font-size:14.5px; line-height:1.6; color:#33394F; }
.feature-list li strong{ color:var(--ink); }

.sso-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.sso-pill{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--border); border-radius:10px; padding:9px 16px; font-size:13.5px; font-weight:500; background:var(--card);
}
.sso-icon{ width:16px; height:16px; border-radius:4px; flex-shrink:0; }

.theme-row{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.swatch{ width:34px; height:34px; border-radius:9px; }
.swatch.selected{ outline:2px solid var(--family); outline-offset:2px; }

.req-list{ margin-top:14px; display:flex; flex-direction:column; gap:9px; }
.req-list li{ list-style:none; display:flex; align-items:center; gap:10px; font-size:14px; color:#33394F; }
.req-list .check{
  width:18px; height:18px; border-radius:50%; flex-shrink:0;
  background:var(--family-soft); display:flex; align-items:center; justify-content:center;
}
.req-list .check svg{ stroke:var(--family); }

/* ============================================================
   11. COMPOSANTS "MAQUETTE UI" (menus, barre d'outils, favoris)
   ============================================================ */
.menu-mock{
  display:flex; flex-direction:column; gap:0; max-width:220px; margin-top:18px;
  border:1px solid var(--border); border-radius:12px; overflow:hidden; background:var(--card);
  box-shadow:0 8px 20px rgba(16,24,46,.08);
}
.menu-mock .mm-item{
  padding:12px 16px; font-size:14px; font-weight:500; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:10px; color:#33394F;
}
.menu-mock .mm-item:last-child{ border-bottom:none; }
.menu-mock .mm-item.highlight{ background:var(--family-soft); color:var(--family-dark); font-weight:600; }
.menu-mock .mm-item.danger{ color:var(--red); }

.toolbar-mock{
  display:flex; align-items:center; gap:10px; margin-top:18px;
  background:var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 18px; width:fit-content;
}
.tb-square{ width:22px; height:22px; border-radius:6px; background:var(--gold); }
.tb-title{ font-family:'Sora', sans-serif; font-weight:700; font-size:16px; margin-right:6px; }
.tb-avatar{
  width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#6C5CE7,#8B7CF0);
  color:#fff; font-size:10px; font-weight:700; display:flex; align-items:center; justify-content:center;
}
.tb-icon{
  width:30px; height:30px; border-radius:8px; background:var(--bg); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.tb-icon.active{ background:var(--family-soft); border-color:var(--family); }

.fav-mock{ background:var(--navy); border-radius:12px; padding:14px; margin-top:18px; max-width:320px; }
.fav-mock .fav-head{
  color:rgba(255,255,255,.55); font-family:'IBM Plex Mono', monospace; font-size:11px;
  letter-spacing:.08em; text-transform:uppercase; padding:4px 6px 10px; font-weight:700;
}
.fav-mock .fav-row{ display:flex; align-items:center; gap:10px; background:var(--navy-row); border-radius:9px; padding:10px 12px; }
.fav-mock .fav-row .sq{ width:16px; height:16px; border-radius:5px; background:var(--gold); flex-shrink:0; }
.fav-mock .fav-row span{ flex:1; color:#B9AEFF; font-size:14px; font-weight:500; }
.fav-mock .fav-row .dots{ color:rgba(255,255,255,.4); }

/* ============================================================
   12. LISTE D'ARTICLES (page catégorie)
   ============================================================ */
.article-list{ display:flex; flex-direction:column; gap:14px; }
.article-row{
  display:flex; align-items:center; gap:20px;
  background:var(--card); border:1px solid var(--border); border-left:3px solid var(--family);
  border-radius:12px; padding:22px 24px; transition:.15s ease;
}
.article-row:hover{ border-color:var(--family); box-shadow:0 4px 16px rgba(108,92,231,.09); transform:translateX(2px); }
.article-row .num{
  font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--family);
  background:var(--family-soft); width:34px; height:34px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-weight:600;
}
.article-row .body{ flex:1; }
.article-row h3{ font-size:16.5px; font-weight:700; margin-bottom:5px; }
.article-row p{ font-size:13.5px; color:var(--muted); line-height:1.55; }
.article-row .time{ font-size:12px; color:var(--muted); font-family:'IBM Plex Mono', monospace; flex-shrink:0; white-space:nowrap; }
.article-row .arrow{ flex-shrink:0; color:var(--muted); transition:transform .15s ease; }
.article-row:hover .arrow{ color:var(--family); transform:translateX(3px); }

.next-family{ margin-top:44px; padding-top:28px; border-top:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.next-family a{ display:flex; align-items:center; gap:14px; border:1px solid var(--border); border-radius:12px; padding:16px 20px; background:var(--card); }
.next-family a:hover{ border-color:var(--family); }
.next-family .nf-label{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.08em; display:block; margin-bottom:4px;
}
.next-family .nf-title{ font-size:15px; font-weight:600; }

/* ============================================================
   13. FAQ EN ACCORDÉON
   ============================================================ */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-item:first-child{ border-top:1px solid var(--border); }
.faq-btn{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:none; cursor:pointer; text-align:left;
  padding:16px 2px; font-family:'Inter'; font-size:15px; font-weight:600; color:var(--ink);
}
.faq-plus{ width:18px; height:18px; flex-shrink:0; position:relative; }
.faq-plus::before, .faq-plus::after{ content:''; position:absolute; background:var(--family); border-radius:2px; }
.faq-plus::before{ width:100%; height:2px; top:8px; left:0; }
.faq-plus::after{ width:2px; height:100%; left:8px; top:0; transition:transform .18s ease; }
.faq-item.open .faq-plus::after{ transform:rotate(90deg); }
.faq-answer{ max-height:0; overflow:hidden; transition:max-height .22s ease; }
.faq-item.open .faq-answer{ max-height:200px; }
.faq-answer p{ font-size:14.5px; color:var(--muted); line-height:1.7; padding-bottom:18px; }

/* ============================================================
   14. SIDEBAR DROITE (page article)
   ============================================================ */
.side{ position:sticky; top:24px; display:flex; flex-direction:column; gap:16px; }
.side-card{ background:var(--card); border:1px solid var(--border); border-radius:14px; padding:18px; }
.side-card h4{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px;
}
.side-card a{ display:block; font-size:13.5px; padding:7px 0; color:#33394F; }
.side-card a:hover{ color:var(--family); }

.family-card{ background:var(--navy); border-radius:14px; padding:18px; color:#fff; }
.family-card h4{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:rgba(255,255,255,.45);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px;
}
.family-item{ display:flex; align-items:center; gap:9px; padding:8px 8px; border-radius:8px; font-size:13.5px; color:rgba(255,255,255,.7); }
.family-item:hover{ background:var(--navy-row-hover); color:#fff; }
.family-item.active{ background:var(--navy-row); color:#fff; font-weight:500; }
.family-item .fdot{ width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.3); flex-shrink:0; }
.family-item.active .fdot{ background:var(--family); }

.nav-pair{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:56px; padding-top:24px; border-top:1px solid var(--border); }
.nav-pair a{ border:1px solid var(--border); border-radius:12px; padding:14px 16px; background:var(--card); }
.nav-pair a:hover{ border-color:var(--family); }
.nav-pair .nlabel{
  font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.08em; display:block; margin-bottom:5px;
}
.nav-pair .ntitle{ font-size:14px; font-weight:600; color:var(--ink); }
.nav-pair .next{ text-align:right; }

/* ============================================================
   15. CENTRE DE RESSOURCES (hub supérieur — Tutoriels / Livre
   blanc / Blog). Section optionnelle, utilisée uniquement sur
   la page centre-de-ressources.html.
   ============================================================ */
.section{ max-width:1200px; margin:0 auto; padding:72px 48px; }
.section + .section{ border-top:1px solid var(--border); }
.section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; flex-wrap:wrap; gap:16px; }
.section-title{ display:flex; align-items:center; gap:12px; }
.section-title .dot{ width:11px; height:11px; border-radius:50%; }
.section-title h2{ font-size:28px; font-weight:700; letter-spacing:-.005em; }
.section-desc{ font-size:14.5px; color:var(--muted); max-width:420px; }
.see-all{
  font-size:13.5px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:6px;
  border:1px solid var(--border); border-radius:30px; padding:8px 16px; background:var(--card);
}
.see-all:hover{ border-color:var(--family); color:var(--family); }

.feature-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.feature-card{ background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; transition:.15s ease; display:block; }
.feature-card:hover{ border-color:var(--family); box-shadow:0 8px 24px rgba(108,92,231,.10); transform:translateY(-2px); }
.feature-visual{ height:200px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; }
.feature-visual.guide{ background:linear-gradient(145deg, var(--navy), #232E52); }
.feature-visual.video{ background:linear-gradient(145deg, var(--teal), #1C8F89); }
.feature-body{ padding:22px 24px 26px; }
.feature-kicker{
  font-family:'IBM Plex Mono', monospace; font-size:11px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:8px; display:block;
}
.feature-body h3{ font-size:19px; font-weight:700; margin-bottom:8px; }
.feature-body p{ font-size:14px; color:var(--muted); line-height:1.6; margin-bottom:18px; }
.cta-link{ display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:600; color:var(--family); }
.cta-link svg{ transition:transform .15s ease; }
.feature-card:hover .cta-link svg{ transform:translateX(3px); }

.guide-illus{ position:relative; width:200px; }
.guide-illus .row{ display:flex; gap:6px; margin-bottom:6px; }
.guide-illus .chip{ height:26px; border-radius:6px; background:rgba(255,255,255,.1); }
.guide-illus .chip.accent{ background:var(--accent); }
.guide-illus .chip.w1{ width:100%; }
.guide-illus .chip.w2{ width:64%; }
.guide-illus .chip.w3{ width:34%; }

.play-btn{
  width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center; backdrop-filter:blur(2px);
}

.paper-grid{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.paper-card{ background:var(--card); border:1px solid var(--border); border-radius:16px; overflow:hidden; display:flex; transition:.15s ease; }
.paper-card:hover{ border-color:var(--gold); box-shadow:0 8px 24px rgba(224,178,58,.12); transform:translateY(-2px); }
.paper-cover{
  width:150px; flex-shrink:0; padding:22px 18px; display:flex; flex-direction:column; justify-content:flex-end;
  background:linear-gradient(160deg, #2A3B66, var(--navy));
}
.paper-cover.alt{ background:linear-gradient(160deg, #4A5A80, #232E45); }
.paper-cover span{ color:rgba(255,255,255,.55); font-family:'IBM Plex Mono', monospace; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.paper-cover strong{ color:#fff; font-family:'Sora', sans-serif; font-size:14px; line-height:1.3; display:block; margin-top:6px; }
.paper-info{ padding:20px 22px; display:flex; flex-direction:column; justify-content:center; flex:1; }
.paper-info h3{ font-size:16px; font-weight:700; margin-bottom:6px; }
.paper-info p{ font-size:13.5px; color:var(--muted); line-height:1.55; margin-bottom:14px; }

.blog-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.blog-card{ background:var(--card); border:1px solid var(--border); border-radius:16px; padding:22px; transition:.15s ease; display:block; }
.blog-card:hover{ border-color:var(--coral); box-shadow:0 8px 24px rgba(226,104,95,.10); transform:translateY(-2px); }
.blog-tag{ display:inline-block; font-size:11px; font-weight:600; padding:4px 10px; border-radius:20px; margin-bottom:14px; }
.blog-card h3{ font-size:16.5px; font-weight:700; line-height:1.35; margin-bottom:10px; }
.blog-card p{ font-size:13.5px; color:var(--muted); line-height:1.6; margin-bottom:16px; }
.blog-meta{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; color:var(--muted); }

.btn{ font-size:13px; padding:3px 0; }

/* ============================================================
   16. RESPONSIVE
   ============================================================ */
@media (max-width:920px){
  .layout, .layout--article{ grid-template-columns:1fr; }
  .cards, .feature-grid, .paper-grid, .blog-grid{ grid-template-columns:1fr; }
  .toc-wrap, .side{ position:relative; top:0; }
  .hero h1{ font-size:32px; }
  .hero.centered h1{ font-size:32px; }
  .cat-header h1{ font-size:30px; }
  .article-header h1{ font-size:28px; }
  .topbar-nav{ display:none; }
  .topbar, .hero, .breadcrumb, .article-header, .cat-header, .layout, .layout--article, .section, .tagline{
    padding-left:20px; padding-right:20px;
  }
  .article-row{ flex-wrap:wrap; }
  .toolbar-mock{ flex-wrap:wrap; }
}
