@import url('/lang-toggle.css?v=20261007a');
/* ---- Fonts AUTO-HÉBERGÉES (perf + souveraineté) ----
   Plus AUCUNE requête vers fonts.googleapis.com : la chaîne bloquante
   (CSS Google → woff2 gstatic) coûtait ~800 ms de rendu et contredisait le
   discours « hébergé en Suisse ». Fichiers woff2 VARIABLES (axe wght, un seul
   fichier par famille/subset, extraits de Google Fonts) dans /assets/fonts/.
   `font-display: swap` = texte immédiat en font système, swap à l'arrivée.
   Subset latin (couvre le français, œ/€ inclus) préchargé par chaque page
   (<link rel="preload">, cf. docs/seo.md) ; latin-ext ne se télécharge que si
   un caractère l'exige (unicode-range). */

/* DRAPEAUX (🇨🇭 …) — Windows ne fournit aucun glyphe de drapeau : le navigateur
   y affiche les deux lettres du code pays (🇨🇭 → « CH »). Les titres de Kwiiz de
   la bibliothèque publique peuvent en contenir. `unicode-range` réduit aux seuls
   indicateurs régionaux → la police ne rend QUE des drapeaux et ne se télécharge
   que si la page en affiche un. ⚠️ MIROIR de client/src/index.css : même
   fichier, même règle, faire évoluer les deux ensemble.
   Twemoji — graphismes CC-BY 4.0, attribution dans cgu.html §8. */
@font-face {
  font-family: 'Kwiiz Flags';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/jakarta-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Variables ---- */
/* ── SCROLLBAR LÉGÈRE — RÈGLE FIGÉE (2026-07-31, miroir de client/src/index.css) ──
   Le pouce fin arrondi est LA SEULE scrollbar du site : page, rangées de pills,
   toute zone overflow, vertical ET horizontal. Ne JAMAIS utiliser une autre
   scrollbar (native grise/carrée ou style custom local) — même valeurs que
   l'app pour une cohérence totale entre kwiiz.fr et teacher.kwiiz.fr. */
/* ⚠️ Chromium/Safari = styling ::-webkit-scrollbar SEUL. Ne JAMAIS poser
   scrollbar-width/scrollbar-color hors du bloc Firefox ci-dessous (ni en
   global, ni sur une classe) : depuis Chrome 121, ces propriétés standard
   PRENNENT LE PAS et font ignorer tout le styling webkit → retour de la
   scrollbar système, boutons fléchés compris (vécu le 2026-07-31). */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,0.32); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(100,116,139,0.5); background-clip: padding-box; }
/* Pas de boutons fléchés aux extrémités (Windows Chrome/Edge les dessine sinon). */
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* Firefox (pas de ::-webkit-scrollbar) : équivalent via les propriétés standard. */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(100,116,139,0.35) transparent; }
}

:root {
  --bg: #FAFBFF;
  --text: #2D2D3A;
  /* #7A7A8C ne faisait que 4.2:1 sur blanc (AA exige 4.5 en petit texte —
     flagué par Lighthouse sur la bande de réassurance). #6B6B7E = 5.2:1. */
  --text-secondary: #6B6B7E;
  --hero-bg: linear-gradient(150deg, #EEEEFF 0%, #E4F4FF 60%, #F0FFF8 100%);
  --rose: #FFD6E0;
  --blue: #C8E6FF;
  --mint: #C8F0E0;
  --yellow: #FFF3C0;
  --lilac: #E8D5FF;
  --peach: #FFE4CC;
  --accent: #5B6CF9;
  /* Violet APPROFONDI des GRANDS FONDS porteurs de texte (section-cta / Swiss
     made + montagnes du footer, qui doivent rester appariés) : le blanc pur sur
     --accent ne fait que 4.23:1 (< AA 4.5) → tout le texte de ces sections était
     flagué. Sur --accent-deep, blanc = 5.8:1. Les CTA/liens/badges restent en
     --accent (l'identité ne bouge pas). */
  --accent-deep: #4353E8;
  --accent2: #00B37D;
  --swiss: #da291c;
  --dark: #2D2D3A;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --dark-bg: #1C1C28;
  --section-spacing: clamp(64px, 8vw, 100px);
  --border: #E8E6F0;
  --danger: #DC2626;
  /* Teintes de l'orbite « Pourquoi Kwiiz » — source unique (HTML inline + rail) */
  --violet2: #7C3AED;
  --amber: #F59E0B;
  --pink: #E11D48;
  /* Or « Pro » (convention PRO_GOLD du dashboard) — badge Recommandé, carte Pro */
  --gold: #FFD166;
  --gold-deep: #B8860B;
}

/* ---- View Transitions (crossfade entre pages, Chrome 126+/Safari 18+) ---- */
@view-transition { navigation: auto; }
/* Coupé sur téléphone et tablette (23.09.2026) : sur iPhone, après un tap vers
   une autre page, l'image de la page quittée restait affichée, agrandie, et plus
   rien ne répondait (retour Quentin). Le fondu est un ornement : l'ordinateur le garde. */
@media (max-width: 1023px), (hover: none) { @view-transition { navigation: none; } }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-padding-top : la nav sticky fait 64px — sans lui, les ancres atterrissent sous la barre */
html { scroll-behavior: smooth; scrollbar-gutter: stable; scroll-padding-top: 76px; }
/* iOS/iPad — rebond élastique (rubber band) : au-delà du bas de page, Safari
   révèle le CANVAS (= fond de <html>), qui était blanc sous le footer SOMBRE
   → impression de « scroller plus bas que le footer ». On peint donc le
   canvas : couche claire NON RÉPÉTÉE qui couvre le document + 2000px AU-DESSUS
   (rebond en haut = clair, raccord nav), couleur de base sombre partout
   ailleurs (rebond en bas = sombre, raccord footer). ⚠️ Pas un simple gradient
   50 %/50 % : la zone de positionnement d'un background de <html> est la boîte
   du document, au-delà il TUILE → le bas du canvas redevenait clair. Pas de
   `background-attachment: fixed` non plus (ignoré par iOS Safari). */
html { background: linear-gradient(var(--bg), var(--bg)) 0 -2000px / 100% calc(100% + 2000px) no-repeat, var(--dark); }

/* Désactive les ligatures OpenType (fi, fl, ffi…) sur TOUS les éléments —
   Plus Jakarta Sans / Fredoka fusionnent "fi" en un glyphe sans point sur le
   i, ce qui rend des mots comme "Profil", "finit", "afficher" illisibles.
   Même règle que client/src/index.css (dashboard) — cohérence sur tout Kwiiz. */
*, *::before, *::after {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
}
body {
  /* 'Kwiiz Flags' en tête — cf. son @font-face plus haut (drapeaux sur Windows). */
  font-family: 'Kwiiz Flags', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Le body doit couvrir AU MOINS le viewport : depuis que <html> porte le
     dégradé du canvas (rebond iOS), une page plus courte que l'écran
     laisserait sinon apparaître la moitié sombre en pleine page. */
  min-height: 100vh;
  min-height: 100dvh;
}
a { text-decoration: none; color: inherit; }
h1, h2       { font-family: 'Fredoka', sans-serif;          font-weight: 700; line-height: 1.1; }
h3, h4       { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; line-height: 1.2; }

/* ---- Container ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ---- Skip-link a11y (injecté par nav.js) : invisible jusqu'au focus clavier ---- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 110;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Texte réservé aux lecteurs d'écran ET aux moteurs (jamais affiché) : complète un
   libellé que le CONTEXTE VISUEL rend clair mais qui, lu seul, est ambigu — ex. la
   pastille « 1ère » d'une page de discipline, dont la légende de cycle
   « Gymnase / Lycée » est décorative (aria-hidden) → l'ancre du lien devient
   « 1ère année de gymnase ». ⚠️ À réserver à ça : jamais du texte que l'œil ne
   pourrait pas déduire de la page (ce serait du cloaking). */
.kwz-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Header ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  height: 64px;
  /* PAS de border-bottom : le pseudo ::after seul gère le séparateur.
     Un border-bottom: 1px transparent créait un trait blanc visible
     juste au-dessus de la tranche dégradée. */
  /* Effet "tranche 3D" (style sidebar dashboard teacher) :
     - ::after pose une bande dégradée transparent → violet à l'INTÉRIEUR
       du bord bas (8px de haut) → vraie épaisseur de matière
     - double box-shadow externe (proche + diffuse) pour l'ombre portée */
  box-shadow:
    0 4px 8px rgba(91, 108, 249, 0.08),
    0 16px 40px rgba(91, 108, 249, 0.06);
  transition: box-shadow 0.25s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: linear-gradient(to bottom, transparent, rgba(91, 108, 249, 0.22));
  pointer-events: none;
}
.nav.scrolled {
  box-shadow:
    0 4px 10px rgba(91, 108, 249, 0.14),
    0 16px 40px rgba(91, 108, 249, 0.10);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  flex-shrink: 0;
}

/* Logo image (SVG « Kwiiz ») — hauteur fixe, largeur auto (ratio préservé). */
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 28px;
  flex: 1;
}

.nav-link {
  font-size: 15px;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s;
  position: relative;
  /* Un libellé de navigation ne se plie JAMAIS (2026-08-12) : « À propos » et
     « Plan d'études » passaient sur deux lignes dès que la barre se resserrait,
     ce qui déformait toute sa hauteur. La parade historique était une espace
     insécable dans le libellé — invisible, et perdue à la première réécriture de
     la chaîne (vécu le jour même). Ici c'est explicite et ça couvre tout libellé
     futur. ⚠️ Conséquence : la barre ne peut plus absorber un libellé trop long
     en le pliant, elle déborde — d'où les deux crans de compression mesurés en
     bas de ce fichier. */
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-signin svg { flex-shrink: 0; opacity: 0.75; transition: opacity 0.15s; }
.nav-signin:hover { color: var(--text); background: rgba(91,108,249,0.06); }
.nav-signin:hover svg { opacity: 1; }

.nav-cta {
  background: var(--accent2);
  color: white;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-cta:hover { opacity: 0.9; transform: scale(1.02); }

/* Bascule de langue FR ⇄ DE (site allemand, lot L) : une petite pill à droite du
   CTA, rendue par nav.js seulement quand la page déclare son alternative
   hreflang — invisible tant que l'allemand n'est pas allumé. */
/* La bascule elle-même : /lang-toggle.css (composant unique, `.mh-lang`). Ici, sa place dans la barre. */
.nav-lang { margin-left: 10px; }
.nav-lang-mobile { display: none; margin: 6px 0 2px; align-self: flex-start; }
@media (max-width: 799px) {
  .nav-lang { display: none; }
  .nav-lang-mobile { display: inline-flex; }
}

/* CTA direct « Espace enseignant » quand on est CONNECTÉ (2026-08-12) :
   rejoindre son dashboard = 1 clic — le menu avatar reste le hub XP/admin/
   déconnexion mais n'est plus un passage obligé. Hérite tout de .nav-cta. */
.nav-space-cta { white-space: nowrap; }

/* Navbar — état connecté.
   ⚠️ Le menu avatar (nav-user-*, .nud-*, .nav-level-pill) a été RETIRÉ de
   nav.js le 2026-08-13 (connecté = le seul CTA « Espace enseignant ») mais ses
   styles restent : nav.js est en cache navigateur 1 h — un visiteur avec
   l'ancien script rendrait sinon le menu DÉSTYLÉ, dropdown ouvert en vrac dans
   la barre. À purger seulement si on est sûr que plus aucun ancien nav.js ne
   circule (et en même temps que le miroir NAV_CSS de PublicPlanEtudesPage). */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border, #E8E6F0);
}
.nav-user-initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Fredoka', sans-serif;
}
.nav-user-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.nav-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.nav-role-admin { background: #FEE2E2; color: #DC2626; }
.nav-role-pro   { background: #DCFCE7; color: #16A34A; }
.nav-dashboard-btn {
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s, transform 0.15s;
}
.nav-dashboard-btn:hover { opacity: 0.85; transform: scale(1.02); }

/* ── Nav user dropdown (connecté) ── */
.nav-user-menu { position: relative; }
.nav-user-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 10px;
  transition: background 0.15s;
}
.nav-user-btn:hover { background: #F3F4F6; }
.nav-user-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-user-menu.open .nav-user-chevron { transform: rotate(180deg); }
.nav-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  background: white; border-radius: 16px; border: 1px solid #E8E6F0;
  box-shadow: 0 12px 36px rgba(20,16,32,0.16); width: 250px; overflow: hidden;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }
.nud-header { padding: 14px 16px; border-bottom: 1px solid #E8E6F0; }
.nud-name { font-size: 14px; font-weight: 700; color: var(--text); }
.nud-email { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* Pill de niveau dans le bouton (à côté du pseudo) */
.nav-level-pill { display: inline-flex; align-items: center; gap: 3px; background: linear-gradient(180deg, #FCD34D, #F59E0B); color: #7C2D12; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 10px; line-height: 1; padding: 2px 7px; border-radius: 999px; white-space: nowrap; box-shadow: 0 1px 3px rgba(217,119,6,0.35); }

/* En-tête « hero » du dropdown : grand avatar centré + pseudo (façon dashboard) */
.nud-hero { padding: 18px 16px 14px; border-bottom: 1px solid #E8E6F0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.nud-hero .nav-user-avatar, .nud-hero .nav-user-initial { width: 72px; height: 72px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #E8E6F0; }
.nud-hero .nav-user-initial { font-size: 28px; }
.nud-hero-name { font-family: 'Fredoka', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }

/* Carte XP / niveau / pièces (réplique du dashboard) */
.nud-xp { padding: 12px 16px; border-bottom: 1px solid #E8E6F0; }
.nud-xp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.nud-xp-level { display: inline-flex; align-items: center; gap: 5px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px; color: var(--text); }
.nud-xp-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #FCD34D, #F59E0B); color: #7C2D12; font-size: 11px; font-weight: 800; box-shadow: 0 1px 3px rgba(217,119,6,0.4); }
.nud-xp-coins { display: inline-flex; align-items: center; gap: 5px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px; color: #B45309; }
.nud-xp-bar { position: relative; height: 8px; border-radius: 999px; background: #F3F4F6; overflow: hidden; }
.nud-xp-bar span { position: absolute; inset: 0; background: linear-gradient(90deg, #FCD34D, #F59E0B); border-radius: 999px; }
.nud-xp-legend { margin-top: 6px; text-align: center; font-size: 11.5px; color: var(--text-secondary); }
.nud-group { padding: 6px 0; }
.nud-group-sep { border-top: 1px solid #E8E6F0; }
.nud-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  font-size: 14px; color: var(--text); background: none; border: none;
  cursor: pointer; width: 100%; text-align: left; transition: background 0.12s;
  text-decoration: none; font-family: 'Plus Jakarta Sans', sans-serif; white-space: nowrap;
}
.nud-item:hover { background: #F8F8FF; color: var(--text); }
.nud-item-danger { color: #DC2626; }
.nud-item-danger:hover { background: #FEF2F2; color: #DC2626; }
.nud-icon { color: #9B9BAC; display: flex; flex-shrink: 0; align-self: flex-start; margin-top: 1px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  margin-left: auto;
  line-height: 1;
}

/* Mobile overlay */
.nav-backdrop {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(45,45,58,0.4);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0s;
}
/* Menu mobile — refonte 2026-08-13 (retour Quentin : 8 liens géants centrés
   verticalement → le CTA sortait de l'écran, et le menu se fermait au moindre
   scroll). Désormais : liste COMPACTE alignée en haut, le menu SCROLLE en
   interne si besoin, et le CTA reste visible (margin-top:auto + safe-area). */
.nav-mobile {
  display: flex;
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}
/* `>` : les LIENS DE PAGE seulement — en `.nav-mobile a` (0,1,1) la règle
   battait .nav-mobile-cta (0,1,0) : le CTA « Espace enseignant » héritait du
   text-align:left et du filet (retour Quentin 14.08). */
.nav-mobile > a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: color 0.15s, background 0.15s;
  width: 100%;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-mobile > a:hover, .nav-mobile > a.active { color: var(--accent); }
.nav-mobile > a:active { background: rgba(91,108,249,0.07); }
/* CTA POUSSÉ EN BAS de l'écran (toujours visible, jamais sous le fold) —
   `margin-top: auto` le colle au bas quand la liste est courte, et il suit le
   scroll interne quand elle est longue. */
.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
/* La page derrière ne bouge pas pendant que le menu est ouvert (remplace
   l'ancien « ferme au scroll », qui fermait le menu au moindre geste). */
body.nav-menu-open { overflow: hidden; }
.nav-mobile-cta {
  display: block;
  background: var(--accent2);
  color: white !important;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 12px 20px;
  box-sizing: border-box;
}
.nav-mobile-cta-secondary {
  background: var(--accent);
  color: white !important;
}

/* CTA « Mon espace » (connecté) — vit DANS la barre du haut à côté du burger,
   pour garder l'accès au dashboard à UN tap (via le burger il en fallait deux).
   Masqué par un display:none INLINE dans nav.js → seule la media query <800px
   ci-dessous (avec !important pour battre l'inline) l'affiche : un visiteur qui
   a encore l'ancien style.css en cache (1 h) ne voit simplement rien de
   nouveau, jamais un lien nu. Pas de :hover (élément mobile — un effet de
   survol ne s'arme jamais au doigt), juste le press. */
.nav-space-mobile:active { transform: scale(0.97); opacity: 0.9; }

/* ══════════════════════════════════════════════════════════════════════════
   LANDING (index.html) — héros démo + réassurance + features + étapes.
   Toutes les valeurs viennent des variables :root. Préfixe .lp-* pour ne
   jamais entrer en collision avec les composants partagés.
   ══════════════════════════════════════════════════════════════════════════ */

/* Eyebrow de section (partagé par les sections landing) */
.section-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 14px; }

/* ── HÉROS ─────────────────────────────────────────────────────── */
/* Fond : trame de points discrète PAR-DESSUS le dégradé pastel — texture qui
   casse le flat sans bruit (opacité très basse, pas de vibration sous le texte). */
.lp-hero { position: relative; overflow: hidden; background: radial-gradient(rgba(91,108,249,.07) 1.2px, transparent 1.2px) 0 0 / 26px 26px, var(--hero-bg); }
.lp-hero::before, .lp-hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.lp-hero::before { width: 440px; height: 440px; background: var(--lilac); top: -140px; right: -90px; }
.lp-hero::after  { width: 380px; height: 380px; background: var(--mint);  bottom: -150px; left: -110px; }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 76px 0 92px; }

.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(91,108,249,.1); color: var(--accent); border-radius: var(--radius-pill); padding: 6px 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 24px; box-shadow: inset 0 0 0 1px rgba(91,108,249,.16); }
/* Rangée de badges du héros (audience + souveraineté) : le margin-bottom passe
   au conteneur pour que les deux pills restent alignées sur une même ligne.
   Pills légèrement compactées : les deux libellés doivent tenir CÔTE À CÔTE
   dans la colonne copy (~570px) — au format standard, la 2ᵉ passait à la ligne. */
.lp-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.lp-hero-badges .lp-badge { margin-bottom: 0; font-size: 12.5px; padding: 5px 13px; gap: 7px; }
.lp-badge-flag { width: 14px; height: 14px; flex-shrink: 0; }
.lp-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); animation: blink 2s ease-in-out infinite; }

.lp-hero h1 { font-size: clamp(2.9rem, 5.2vw, 4.6rem); color: var(--text); margin-bottom: 22px; letter-spacing: -0.02em; text-wrap: balance; }
/* Le mot accentué = couleur seule, PAS de trait surligneur (pattern template
   banni par le skill design — retiré le 2026-07-05, ne pas le remettre). */
.lp-hero h1 em { color: var(--accent); font-style: normal; }
.lp-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 460px; text-wrap: pretty; }
.lp-sub strong { color: var(--text); font-weight: 600; }

/* Bullets du hero : ce que Kwiiz apporte, en 4 checks compacts */
.lp-hero-points { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-hero-points li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.lp-hero-points li strong { font-weight: 700; }
.lp-hero-points svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--accent2); background: rgba(0,179,125,.12); border-radius: 5px; padding: 2.5px; }

.lp-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.lp-cta { display: inline-flex; align-items: center; gap: 9px; background: var(--accent2); color: #fff; padding: 16px 30px; border-radius: var(--radius-pill); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16.5px; box-shadow: 0 10px 26px rgba(0,179,125,.34); transition: transform .16s ease, box-shadow .16s ease; }
.lp-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 36px rgba(0,179,125,.42); }
.lp-cta svg { width: 19px; height: 19px; }
.lp-ghost { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; transition: gap .16s ease; }
.lp-ghost:hover { gap: 10px; }
.lp-ghost svg { width: 17px; height: 17px; }

/* ── DÉMO ÉLÈVE (téléphone go.kwiiz.fr) ────────────────────────── */
/* Scène du héros : coach + tablette forment UN duo — même respiration entre
   eux (gap fluide) qu'autour d'eux. Le coach cède de la largeur avant de
   coller la tablette (flex-shrink + min-width). */
.lp-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(24px, 2.6vw, 40px); }
/* Scène : porte le téléphone + le halo ambiant. */
.lp-stage { position: relative; width: min(352px, 86vw); }
.lp-stage::before { content: ''; position: absolute; inset: -4% -16%; background: radial-gradient(closest-side, rgba(91,108,249,.20), transparent 72%); z-index: 0; pointer-events: none; }
.lp-tablet {
  position: relative; z-index: 2;
  width: 100%; aspect-ratio: 416 / 552;
  background: #14141d; border-radius: 34px; padding: 16px;
  box-shadow: 0 34px 74px rgba(45,45,58,.30), 0 8px 20px rgba(45,45,58,.14), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: lp-float 6s ease-in-out infinite;
}
@keyframes lp-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.lp-tablet-cam { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14); z-index: 6; }

/* Entrée orchestrée du héros (cascade copy → visuel). Tout est DANS
   no-preference : en mouvement réduit, état statique complet, rien à
   neutraliser. */
@media (prefers-reduced-motion: no-preference) {
  .lp-hero-copy > * { animation: lp-rise .65s cubic-bezier(0.22,0.75,0.28,1) backwards; }
  .lp-hero-copy .lp-badge { animation-delay: .05s; }
  .lp-hero-copy h1 { animation-delay: .13s; }
  .lp-hero-copy .lp-sub { animation-delay: .23s; }
  .lp-hero-copy .lp-actions { animation-delay: .33s; }
  .lp-hero-visual { animation: lp-rise .75s cubic-bezier(0.22,0.75,0.28,1) .28s backwards; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(18px); } }
.lp-screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }

/* Topbar = réplique de la VRAIE barre élève (StudentBarShell, fond nuit
   NIGHT_BAR_BG hsl(230 40% 18%)) : identité Kwiix + compteur + timer pill,
   rectangles de progression dessous (vert = juste, rouge = raté, blanc
   pulsant = en cours — mêmes codes que StudentTopBar). */
.lp-topbar { padding: 8px 12px 8px; background: hsl(230 40% 18%); flex-shrink: 0; transition: background .3s ease; }
/* Bandeau verdict = TOUTE la barre change de fond (règle du vrai jeu) ; le
   contenu normal reste monté (visibility) → hauteur STRICTEMENT identique. */
.lp-topbar.correct { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.lp-topbar.wrong   { background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%); }
.lp-topbar.explain { background: linear-gradient(135deg, #F5B840 0%, #E9A23B 100%); }
.lp-tb-head { position: relative; margin-bottom: 7px; }
.lp-tb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-topbar.correct .lp-tb-row, .lp-topbar.wrong .lp-tb-row, .lp-topbar.explain .lp-tb-row { visibility: hidden; }
.lp-tb-banner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.lp-topbar.correct .lp-tb-banner, .lp-topbar.wrong .lp-tb-banner, .lp-topbar.explain .lp-tb-banner { display: flex; }
.lp-tb-banner b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; }
.lp-tb-banner span { font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 600; opacity: .9; }
/* Progression lisible sur bandeau coloré : liseré foncé (règle du vrai jeu) */
.lp-topbar.correct .lp-progress span, .lp-topbar.wrong .lp-progress span, .lp-topbar.explain .lp-progress span { box-shadow: 0 0 0 1.5px rgba(17,24,39,.38); }
.lp-topbar.correct .lp-progress span:not(.done):not(.ko):not(.now), .lp-topbar.wrong .lp-progress span:not(.done):not(.ko):not(.now), .lp-topbar.explain .lp-progress span:not(.done):not(.ko):not(.now) { background: rgba(255,255,255,.38); }
.lp-tb-id { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px; min-width: 0; }
.lp-tb-id img { display: block; border-radius: 6px; }
.lp-tb-count { color: rgba(255,255,255,.75); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .04em; }
.lp-tb-timer { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lp-tb-timer.low { background: rgba(239,68,68,.85); }
.lp-progress { display: flex; gap: 4px; }
.lp-progress span { flex: 1; height: 6px; border-radius: 2px; background: rgba(255,255,255,.22); transition: background .3s; }
.lp-progress span.done { background: var(--accent2); }
.lp-progress span.ko { background: var(--danger); }
.lp-progress span.now { background: #fff; animation: lp-rect-pulse 1.2s ease-in-out infinite; }
@keyframes lp-rect-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.lp-qbody { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px 18px; }
/* Objectif PER de la question — petit, CENTRÉ, juste sous la barre de progression */
.lp-qper { text-align: center; font-family: 'Inter', sans-serif; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--accent); }
/* Titre : comme in-game, il REMPLIT la zone haute (flex: 1, centré
   verticalement, grosse font) — les réponses restent ancrées en bas. */
.lp-question { flex: 1; display: flex; align-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.22; color: var(--text); letter-spacing: -0.01em; margin-bottom: 18px; }
.lp-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Cartes réponses = réplique de la VRAIE UI élève (QuestionStageView) :
   palette ANSWER_PALETTE (A rose / B bleu / C ambre foncé / D vert), ombre 3D
   « bouton physique » (0 5px 0 teinte foncée), pas de badge de lettre. */
.lp-ans { position: relative; min-height: 78px; border-radius: 18px; border: none; color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; line-height: 1.15; display: flex; align-items: center; justify-content: center; padding: 12px; box-shadow: 0 5px 0 var(--dk), 0 10px 22px rgba(0,0,0,.15); transition: transform .18s ease, opacity .22s, box-shadow .18s ease, filter .18s; }
.lp-ans.c0 { background: #E11D48; --dk: #9F1239; }
.lp-ans.c1 { background: #2563EB; --dk: #1E40AF; }
.lp-ans.c2 { background: #D97706; --dk: #B45309; }
.lp-ans.c3 { background: #059669; --dk: #065F46; }
/* Sélection = ENFONCEMENT physique (comme la vraie carte au tap) */
.lp-ans.is-selected { transform: translateY(4px); box-shadow: 0 1px 0 var(--dk), 0 4px 10px rgba(0,0,0,.16); filter: brightness(.94); }
/* Révélation EN PLACE (règles FIGÉES du vrai jeu, reveal Blooket) : GÉOMÉTRIE
   INCHANGÉE — seules les couleurs changent. Bonne réponse = VERT + ✓ ; mauvais
   choix de l'élève = GRIS, reste ENFONCÉ, pastille ✕ rouge ; le reste = GRIS. */
.lp-ans.is-correct { background: #10B981 !important; --dk: #065F46; filter: none; }
.lp-ans.is-dim { background: #E5E7EB !important; --dk: #D1D5DB; color: #6B7280; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.lp-ans.is-wrong-pick { background: #E5E7EB !important; --dk: #D1D5DB; color: #6B7280; transform: translateY(4px); box-shadow: 0 1px 0 var(--dk), 0 4px 10px rgba(0,0,0,.12); filter: none; }
/* Marques ✓/✕ en coin haut-droite + étiquette « Ta réponse / Bonne réponse »
   en coin haut-gauche — mêmes conventions que le corrigé réel. */
.lp-ans .mark { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.lp-ans .mark.ok { background: #059669; }
.lp-ans .mark.ko { background: #DC2626; }
.lp-ans .rtag { position: absolute; top: -8px; left: 8px; background: #111827; color: #fff; font-family: 'Inter', sans-serif; font-style: normal; font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.lp-tap { position: absolute; inset: 0; border-radius: 18px; background: radial-gradient(circle at center, rgba(255,255,255,.55), transparent 62%); opacity: 0; pointer-events: none; }
.lp-ans.is-selected .lp-tap { animation: lp-tap .5s ease-out; }
@keyframes lp-tap { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.1); } }

/* Écran EXPLICATION — réplique du vrai ExplanationStage : fond JAUNE PASTEL
   #FEF6DC (le bandeau or « Explication » vit dans la topbar), carte BLANCHE
   avec l'ampoule + le texte. Glisse depuis la droite comme le vrai slide. */
.lp-explain { position: absolute; left: 0; right: 0; bottom: 0; top: 62px; z-index: 7; background: #FEF6DC; display: flex; align-items: center; justify-content: center; padding: 18px 16px 64px; transform: translateX(103%); transition: transform .5s cubic-bezier(0.25, 0.9, 0.3, 1); }
.lp-screen.explain .lp-explain { transform: translateX(0); }
.lp-ex-card { background: #fff; border: 1px solid #F3E8C0; border-radius: 16px; padding: 16px 15px; max-width: 268px; box-shadow: 0 10px 30px rgba(180, 140, 20, .14); display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.lp-ex-bulb { width: 38px; height: 38px; border-radius: 50%; background: #FEF3C7; border: 1.5px solid #FCD34D; display: flex; align-items: center; justify-content: center; color: #F59E0B; flex-shrink: 0; }
.lp-ex-bulb svg { width: 20px; height: 20px; }
.lp-ex-card p { font-family: 'Inter', sans-serif; font-size: 13px; line-height: 1.55; color: var(--text); font-weight: 500; }
/* Image d'énoncé (question illustrée — ex. disque de fraction) : centrée entre
   le titre et les réponses, jamais étirée. ⚠️ MODE COMPACT sur tout l'écran
   [data-has-img] : la pile badge + PER + titre + image + 4 cartes doit tenir
   dans ~413px de haut (tablette à 86vw sur iPhone) — titre réduit, cartes
   moins hautes, gaps resserrés. Vérifié à 390/768/1456px de viewport. */
.lp-qimg { align-self: center; width: auto; height: 84px; margin: 2px 0 12px; filter: drop-shadow(0 6px 14px rgba(45,45,58,.14)); }
.lp-screen[data-has-img="1"] .lp-question { flex: 0 1 auto; font-size: 20px; margin-bottom: 8px; }
.lp-screen[data-has-img="1"] .lp-qbody { padding-top: 12px; padding-bottom: 14px; }
.lp-screen[data-has-img="1"] .lp-ans { min-height: 58px; font-size: 15px; }
.lp-screen[data-has-img="1"] .lp-answers { gap: 10px; }
/* Petits téléphones (SE/Android 360-400px : l'écran de la tablette descend à
   ~245-290px de large, le titre passe sur 3 lignes) : un cran plus compact. */
@media (max-width: 400px) {
  .lp-screen[data-has-img="1"] .lp-question { font-size: 17px; margin-bottom: 6px; }
  .lp-qimg { height: 68px; margin-bottom: 10px; }
  .lp-screen[data-has-img="1"] .lp-ans { min-height: 48px; font-size: 14px; }
}
/* ContinueCta = réplique du VRAI bouton d'avancement (ContinueCta.jsx).
   Placement TABLETTE du vrai jeu : BORD DROIT, MI-HAUTEUR (là où tombe le
   pouce) — il ne couvre ainsi aucune carte du corrigé. Entre par la droite. */
.lp-continue { position: absolute; right: 10px; top: 52%; z-index: 9; width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #F5B840 0%, #E9A23B 100%); color: #fff;
  display: none; align-items: center; justify-content: center;
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(233,162,59,.4);
  transition: filter .14s ease; }
.lp-continue.show { display: flex; animation: lp-cta-right .38s cubic-bezier(0.22, 1, 0.36, 1) both, lp-cta-pulse 1.6s ease-out .4s infinite; }
@keyframes lp-cta-right { from { transform: translateY(-50%) translateX(80px); opacity: 0; } to { transform: translateY(-50%) translateX(0); opacity: 1; } }
.lp-continue svg { width: 22px; height: 22px; }
@media (hover: hover) { .lp-continue:hover { filter: brightness(1.12); } }
.lp-continue:active { transform: translateY(-50%) scale(.94); }
@keyframes lp-cta-pulse {
  0%   { box-shadow: 0 8px 20px rgba(233,162,59,.4), 0 0 0 0 rgba(233,162,59,.45); }
  70%  { box-shadow: 0 8px 20px rgba(233,162,59,.4), 0 0 0 12px rgba(233,162,59,0); }
  100% { box-shadow: 0 8px 20px rgba(233,162,59,.4), 0 0 0 0 rgba(233,162,59,0); }
}

.lp-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 10; }
.lp-confetti i { position: absolute; width: 9px; height: 9px; border-radius: 2px; will-change: transform, opacity; }

/* ── Kwiix coach — à gauche de la tablette, réagit aux réponses ──
   Poses SVG auto-hébergées (bot-coach-neutral/happy/dizzy), bulle de
   dialogue pilotée par le JS de la démo. Saute si juste, tremble si faux. */
.lp-coach { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; width: clamp(112px, 11vw, 148px); min-width: 100px; flex-shrink: 1; align-self: center; }
.lp-bubble { position: relative; background: #fff; color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.3; padding: 10px 14px; border-radius: 14px; box-shadow: 0 10px 26px rgba(45,45,58,.14); text-align: center; white-space: nowrap; }
.lp-bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
/* ⚠️ Flottement sur le WRAPPER .lp-coach-fig, réactions oui/non sur l'IMG :
   les deux animations vivent sur des éléments séparés → rejouer une réaction
   (classes retirées/remises par le JS) ne REDÉMARRE plus le flottement, donc
   l'ombre au sol reste en phase (avant : déphasage après chaque réaction →
   ombre à contre-sens). */
.lp-coach-fig { width: 100%; }
.lp-coach-img { width: 100%; height: auto; display: block; }
/* Ombre au sol (pattern maison FloatingKwiix) : FORTE quand le Kwiix est en
   bas (proche du sol), petite et pâle quand il monte. */
.lp-coach-shadow { position: absolute; bottom: -11px; left: 21%; width: 58%; height: 10px; border-radius: 50%; background: rgba(45,45,58,.34); filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
  .lp-coach-fig { animation: lp-coach-float 3.4s ease-in-out infinite; }
  .lp-coach-shadow { animation: lp-coach-shadow 3.4s ease-in-out infinite; }
  .lp-bubble.pop { animation: lp-bubble-pop .35s cubic-bezier(0.34,1.56,0.64,1); }
}
@keyframes lp-coach-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-coach-shadow { 0%, 100% { transform: scaleX(1.06); opacity: .8; } 50% { transform: scaleX(.5); opacity: .18; } }
@keyframes lp-bubble-pop { 0% { transform: scale(.75); } 100% { transform: scale(1); } }
/* Réactions (classes posées par le JS, jamais sous prefers-reduced-motion).
   « yes » = grand saut avec squash & stretch puis double hochement vertical
   (le robot fait OUI de la tête). « no » = grand NON de la tête (balancier
   gauche-droite ample et rapide) qui finit tête basse, dépité. */
.lp-coach-img.yes { animation: lp-coach-yes 1.15s cubic-bezier(0.3,0.7,0.3,1); }
@keyframes lp-coach-yes {
  0%   { transform: translateY(0) scale(1); }
  10%  { transform: translateY(4px) scale(1.06, .88); }
  24%  { transform: translateY(-38px) scale(.94, 1.1) rotate(-5deg); }
  38%  { transform: translateY(0) scale(1.08, .9) rotate(0); }
  50%  { transform: translateY(-18px) scale(1) rotate(4deg); }
  60%  { transform: translateY(0) scale(1); }
  70%  { transform: translateY(-8px); }
  79%  { transform: translateY(0); }
  88%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.lp-coach-img.no { animation: lp-coach-no 1s ease; }
@keyframes lp-coach-no {
  0%   { transform: translateX(0) rotate(0); }
  10%  { transform: translateX(-14px) rotate(-16deg); }
  24%  { transform: translateX(14px) rotate(16deg); }
  38%  { transform: translateX(-12px) rotate(-14deg); }
  52%  { transform: translateX(12px) rotate(14deg); }
  66%  { transform: translateX(-7px) rotate(-8deg); }
  78%  { transform: translateX(3px) rotate(4deg); }
  100% { transform: translateX(0) rotate(0) translateY(6px) scale(.96); }
}
/* 981-1099px (2 colonnes étroites) : plus de place pour le duo côte à côte →
   le coach passe en « sticker » à cheval sur le coin bas-gauche de la TABLETTE.
   ⚠️ Ancré au bord de la tablette (centrée, largeur connue min(352px, 86vw) →
   bord gauche = 50% - min(176px, 43vw)), PAS au bord de la colonne. */
@media (max-width: 1099px) {
  .lp-coach { position: absolute; z-index: 8; width: 92px; min-width: 0; bottom: -16px; left: calc(50% - min(176px, 43vw) - 56px); }
  .lp-bubble { font-size: 12px; padding: 8px 10px; border-radius: 12px; }
}

/* ── Démo interactive : réponses cliquables + verdict raté ── */
.lp-ans { cursor: pointer; }
.lp-answers.locked .lp-ans { pointer-events: none; }
@media (hover: hover) { .lp-answers:not(.locked) .lp-ans:not(.is-selected):hover { transform: translateY(-2px); } }
/* Press physique in-game : MAINTENIR le clic enfonce la carte ; glisser la
   souris hors de la carte et relâcher = elle remonte et rien n'est validé
   (sémantique native de :active + click). Déclaré APRÈS le hover, à même
   spécificité, pour gagner la cascade pendant le clic. */
.lp-answers:not(.locked) .lp-ans:not(.is-dim):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--dk), 0 4px 10px rgba(0,0,0,.16); filter: brightness(.94); }
/* Secousse brève du mauvais choix au moment du reveal (géométrie enfoncée
   conservée — la carte reste GRISE, cf. .is-wrong-pick). */
.lp-ans.is-wrong-pick { animation: lp-ans-shake .4s ease; }
@keyframes lp-ans-shake {
  0%, 100% { transform: translateY(4px) translateX(0); }
  25%      { transform: translateY(4px) translateX(-5px); }
  50%      { transform: translateY(4px) translateX(5px); }
  75%      { transform: translateY(4px) translateX(-3px); }
}

/* Bilan de fin — reprend les codes du vrai bilan élève : fond violet,
   étoiles OR qui popent en cascade, score en grand (Fredoka), Rejouer. */
.lp-result { position: absolute; inset: 0; z-index: 9; background: linear-gradient(180deg, var(--accent) 0%, #7C3AED 100%); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; padding: 30px 24px; text-align: center; transform: translateY(101%); transition: transform .5s cubic-bezier(0.34,1.2,0.64,1); }
.lp-screen.result .lp-result { transform: translateY(0); }
/* ⚠️ lp-pop est utilisé par les ÉTOILES du bilan (supprimé par erreur avec
   l'ancien verdict plein écran — sans lui, étoiles bloquées à scale(0)). */
@keyframes lp-pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* Récompenses du bilan (XP violet clair + pièces or, comme le vrai
   EndOfQuizScreen) */
.lp-result-rewards { display: flex; gap: 8px; }
.lp-result-rewards span { display: inline-flex; align-items: center; gap: 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; }
.lp-result-rewards .xp { background: rgba(255,255,255,.16); color: #fff; }
.lp-result-rewards .coins { background: var(--gold); color: #7A5200; }

/* ── Finale « Côté enseignant » — mini Suivi de classe (registre du VRAI
   SuiviElevesTab : pastilles acquis vert / fragile orange / non acquis rouge,
   fond clair de l'app). Rangées en entrée décalée. ── */
.lp-teacher { position: absolute; inset: 0; z-index: 9; background: #F8F9FF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 26px 20px; text-align: center; transform: translateX(103%); transition: transform .5s cubic-bezier(0.25, 0.9, 0.3, 1); }
.lp-screen.teacher .lp-teacher { transform: translateX(0); }
.lp-t-eyebrow { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); }
.lp-t-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: var(--text); line-height: 1.2; margin-bottom: 2px; }
.lp-t-rows { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 258px; }
.lp-t-row { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 9px 12px; box-shadow: 0 4px 14px rgba(91,108,249,.07); opacity: 0; }
.lp-screen.teacher .lp-t-row { animation: lp-t-in .45s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.lp-screen.teacher .lp-t-row:nth-child(2) { animation-delay: .12s; }
.lp-screen.teacher .lp-t-row:nth-child(3) { animation-delay: .24s; }
@keyframes lp-t-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.lp-t-row img { border-radius: 7px; flex-shrink: 0; }
.lp-t-row .n { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--text); flex: 1; text-align: left; }
.lp-t-row .dots { display: inline-flex; gap: 4px; }
.lp-t-row .dots i, .lp-t-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lp-t-row i.ok, .lp-t-legend i.ok { background: #10B981; }
.lp-t-row i.mid, .lp-t-legend i.mid { background: #F59E0B; }
.lp-t-row i.ko, .lp-t-legend i.ko { background: #EF4444; }
.lp-t-row .pct { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px; padding: 3px 8px; border-radius: 999px; }
.lp-t-row .pct.ok { background: rgba(16,185,129,.12); color: #047857; }
.lp-t-row .pct.mid { background: rgba(245,158,11,.14); color: #B45309; }
.lp-t-row .pct.ko { background: rgba(239,68,68,.12); color: #B91C1C; }
.lp-t-legend { display: flex; gap: 12px; align-items: center; }
.lp-t-legend span { display: inline-flex; align-items: center; gap: 5px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.lp-t-note { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--text-secondary); }
.lp-result-stars { display: flex; gap: 12px; }
.lp-result-stars svg { width: 46px; height: 46px; color: rgba(255,255,255,.26); }
.lp-result-stars svg.on { color: var(--gold); filter: drop-shadow(0 4px 12px rgba(0,0,0,.28)); }
.lp-screen.result .lp-result-stars svg { transform: scale(0); animation: lp-pop .5s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.lp-screen.result .lp-result-stars svg:nth-child(2) { animation-delay: .14s; }
.lp-screen.result .lp-result-stars svg:nth-child(3) { animation-delay: .28s; }
.lp-result-score { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 42px; line-height: 1; }
.lp-result-note { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; opacity: .92; }
.lp-result .lp-again { margin-top: 8px; padding: 12px 28px; border-radius: var(--radius-pill); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15px; background: #fff; color: var(--accent); }

/* Vrai/faux : 2 grandes cartes (vert VRAI / rouge FAUX, comme in-game) */
.lp-answers.tf .lp-ans { min-height: 112px; font-size: 20px; letter-spacing: .06em; }
.lp-ans.cv { background: #059669; --dk: #065F46; }
.lp-ans.cf { background: #E11D48; --dk: #9F1239; }

/* ── Démo multi-types : badge de type + vignettes auto-jouées ──── */
/* Les plateaux auto (ordre/association/catégorisation) sont plus denses
   que 4 cartes QCM → titre plus compact pour que tout tienne à l'écran. */
.lp-screen[data-qtype="order"] .lp-question,
.lp-screen[data-qtype="match"] .lp-question,
.lp-screen[data-qtype="video"] .lp-question,
.lp-screen[data-qtype="cat"] .lp-question { font-size: 19px; margin-bottom: 12px; }

/* Badge du type de question (QCM / Association / …), teinte --tc posée
   par le JS — le hero PROUVE la variété des types. ⚠️ .lp-qbadge, PAS
   .lp-qtype (déjà pris par les cartes de la section Types de questions). */
.lp-qbadge { align-self: center; display: inline-flex; align-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 10px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--tc, var(--accent)); background: color-mix(in srgb, var(--tc, var(--accent)) 11%, transparent); padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 6px; }

/* Main fantôme des vignettes auto : point de contact translucide qui glisse */
.lp-hand { position: absolute; z-index: 5; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(45,45,58,.16); box-shadow: inset 0 0 0 2.5px rgba(255,255,255,.85), 0 4px 14px rgba(45,45,58,.25); opacity: 0; pointer-events: none; transition: transform .38s cubic-bezier(0.3,0.8,0.35,1), opacity .25s; }
.lp-hand.show { opacity: 1; }

/* Remise en ordre : chips empilées qui se rangent une à une */
.lp-answers.order { display: flex; flex-direction: column; gap: 8px; }
.lp-chip { display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 9px 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); box-shadow: 0 2px 6px rgba(45,45,58,.06); transition: border-color .25s, box-shadow .25s, transform .18s; }
.lp-chip .num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #F0EFFA; color: var(--accent); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s; }
.lp-chip .num:empty::before { content: '⋮⋮'; color: #C6C4D4; font-size: 9px; letter-spacing: -2px; }
.lp-chip.press { transform: scale(.96); box-shadow: 0 1px 3px rgba(45,45,58,.1); }
.lp-chip.placed .num { background: var(--accent); color: #fff; }
.lp-chip.ok { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(0,179,125,.14); }
.lp-chip.ok .num { background: var(--accent2); color: #fff; }

/* Association : 2 colonnes + traits SVG entre pastilles.
   ⚠️ Hauteur de carte FIXE (min-height + line-height serré) → les rangées
   gauche/droite restent parfaitement alignées, et les traits horizontaux. */
/* ⚠️ .lp-answers est une GRILLE 2 colonnes (registre QCM 2×2) : sans cet
   override — que order/video/cat ont déjà — la grille d'association tombait
   dans la 1ʳᵉ cellule 1fr = moitié gauche de l'écran (rendu décentré). */
.lp-answers.match { display: block; }
.lp-match-grid { position: relative; display: flex; gap: 34px; }
.lp-match-grid .col { flex: 1; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
/* z-index: 1 sur les cartes : les TRAITS passent SOUS les deux colonnes (comme la
   vraie UI élève). Sans lui, l'ordre DOM (colG → svg → colD) peignait le trait
   PAR-DESSUS les pastilles de gauche (croissant blanc rogné) et SOUS celles de
   droite — asymétrie visible sur le hero. */
.lp-mcard { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 10px; min-height: 46px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px; line-height: 1.2; color: var(--text); text-align: center; transition: background .3s, border-color .3s, color .3s; }
.lp-mcard .t { flex: 1; }
.lp-mcard .dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: #D8D6E4; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #D8D6E4; transition: background .3s, box-shadow .3s; }
.lp-mcard.on { background: var(--mc); border-color: var(--mc); color: #fff; }
.lp-mcard.on .dot { background: #fff; box-shadow: 0 0 0 1.5px var(--mc); }
.lp-match-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.lp-match-lines line { stroke-width: 3.5; stroke-linecap: round; }
/* ⚠️ dasharray/dashoffset posés EN INLINE par le JS avec la LONGUEUR RÉELLE
   du trait (une valeur fixe rendait les diagonales > 200px en pointillés). */
.lp-match-lines line.draw { animation: lp-line-draw .45s ease-out forwards; }
@keyframes lp-line-draw { to { stroke-dashoffset: 0; } }

/* Question vidéo : faux lecteur (vignette sombre + extrait minuté, écho du
   YouTubeRangePicker du produit) + réponses compactes */
.lp-answers.video { display: flex; flex-direction: column; gap: 10px; }
.lp-vplayer { position: relative; border-radius: 14px; background: linear-gradient(135deg, #1B2033 0%, #0F1220 60%, #232A45 100%); padding: 10px 12px 12px; overflow: hidden; }
.lp-vplayer .bar { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.lp-vplayer .bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #E11D48; flex-shrink: 0; }
.lp-vplayer .vt { color: #E6E8F2; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-vplayer .play { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 6px auto 10px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); color: #fff; }
.lp-vplayer .play svg { width: 16px; height: 16px; margin-left: 2px; }
.lp-vplayer .range { position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); }
.lp-vplayer .seg { position: absolute; left: 38%; width: 26%; top: 0; bottom: 0; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 2px rgba(91,108,249,.35); }
.lp-vplayer .times { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-family: 'Inter', sans-serif; font-size: 10px; color: #A9AFC6; }
.lp-vplayer .times .lbl { text-transform: uppercase; letter-spacing: .8px; font-weight: 700; font-size: 8.5px; }
.lp-video-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-answers.video .lp-ans { min-height: 46px; font-size: 13.5px; border-radius: 12px; box-shadow: 0 3px 0 var(--dk), 0 6px 14px rgba(0,0,0,.12); }

/* Catégorisation : plateau de chips + 2 bacs colorés */
.lp-answers.cat { display: flex; flex-direction: column; gap: 12px; }
.lp-cat-tray { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; min-height: 34px; }
.lp-cat-chip { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-pill); padding: 6px 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12px; color: var(--text); box-shadow: 0 2px 6px rgba(45,45,58,.06); transition: transform .18s, box-shadow .25s; }
.lp-cat-chip.press { transform: scale(.94); }
.lp-cat-chip.in-bin { font-size: 11px; padding: 4px 10px; box-shadow: none; }
.lp-cat-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-cat-bin { border: 1.5px solid; border-radius: 14px; min-height: 108px; overflow: hidden; transition: box-shadow .3s; }
.lp-cat-bin.b0 { border-color: rgba(91,108,249,.45); background: rgba(91,108,249,.05); }
.lp-cat-bin.b1 { border-color: rgba(217,119,6,.45); background: rgba(217,119,6,.05); }
.lp-cat-bin .head { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12px; }
.lp-cat-bin.b0 .head { color: var(--accent); }
.lp-cat-bin.b1 .head { color: #D97706; }
.lp-cat-bin .cnt { width: 19px; height: 19px; border-radius: 50%; color: #fff; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.lp-cat-bin.b0 .cnt { background: var(--accent); }
.lp-cat-bin.b1 .cnt { background: #D97706; }
.lp-cat-bin .body { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 8px 10px; align-content: flex-start; }
.lp-cat-bin.ok { box-shadow: 0 0 0 3px rgba(0,179,125,.18); border-color: var(--accent2); }


/* ── BANDE RÉASSURANCE ─────────────────────────────────────────── */
.lp-band { background: #fff; border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); padding: 26px 0; }
.lp-band-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.lp-band-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.lp-band-item svg { width: 17px; height: 17px; }

/* ── SECTIONS KILLER (explication / création / rapports / en classe /
     comparatif) — vocabulaire partagé ─────────────────────────────── */

/* Accent d'un titre : même registre que le h1 (em violet) */
.lp-em { font-style: normal; color: var(--accent); }

/* ── Chiffres réels de la bibliothèque (sous l'orbite) ── */
.lp-lib-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 22px auto 0; padding: 0 24px; }

/* ── Comment ça marche — 3 étapes numérotées ── */
.lp-steps { padding: clamp(3rem, 7vw, 5rem) 0; }
.lp-steps-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.lp-step { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem 1.5rem; box-shadow: 0 6px 24px rgba(91,108,249,.05); }
.lp-step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(91,108,249,.1); color: var(--accent); font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; margin-bottom: .8rem; }
.lp-step h3 { margin: 0 0 .4rem; font-size: 1.06rem; }
.lp-step p { margin: 0; color: var(--text-secondary); font-size: .94rem; line-height: 1.55; }
.lp-steps-cta { text-align: center; margin-top: 2.25rem; }
@media (max-width: 760px) { .lp-steps-grid { grid-template-columns: 1fr; max-width: 440px; } }

/* ── FAQ de la home (réutilise .faq-list, registre FaqAccordion) ── */
.lp-faq { padding: clamp(3rem, 7vw, 5rem) 0; }
.lp-faq-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.lp-faq-list { max-width: 760px; margin: 0 auto; }
.lp-faq-list a { color: #4353E8; font-weight: 600; }
.lp-lib-stat { text-align: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 10px 14px; }
.lp-lib-stat b { display: block; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(26px, 3vw, 34px); color: var(--accent); line-height: 1.1; }
.lp-lib-stat span { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
@media (max-width: 700px) { .lp-lib-stats { grid-template-columns: 1fr 1fr; } }

/* ── Carousel Fonctionnalités ── */
.lp-feat { padding: var(--section-spacing) 0; background: #fff; }
.lp-feat-head { text-align: center; max-width: 640px; margin: 0 auto clamp(26px, 3.5vw, 40px); }
.lp-feat-head h2 { margin: 10px 0 12px; }
.lp-feat-head p { color: var(--text-secondary); }
.lp-car { display: flex; align-items: center; gap: 10px; }
.lp-car-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); outline: none; }
.lp-car-track::-webkit-scrollbar { display: none; }
.lp-car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lp-car-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); box-sizing: border-box; }
.lp-car-slide + .lp-car-slide { margin-left: 14px; }
.lp-car-copy h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 14px; }
/* Le cadre épouse la FORME de l'image (portrait ou paysage) : width auto,
   jamais de bandes blanches de letterboxing. Cliquable → lightbox zoom.js. */
.lp-car-shot { display: block; width: auto; max-width: 100%; height: auto; max-height: 340px; margin: 0 auto; justify-self: center; border-radius: var(--radius-sm); cursor: zoom-in; }
.lp-car-slide img.lp-car-shot { border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(45,45,58,.10); }
.lp-car-arrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(45,45,58,.08); transition: transform .15s, box-shadow .15s, opacity .2s; }
.lp-car-arrow svg { width: 20px; height: 20px; }
.lp-car-arrow:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 6px 18px rgba(45,45,58,.14); }
.lp-car-arrow:active:not(:disabled) { transform: scale(0.94); }
.lp-car-arrow:disabled { opacity: .35; cursor: default; }
.lp-car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.lp-car-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: #D8D6E4; cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.lp-car-dots button.on { background: var(--accent); transform: scale(1.25); }
@media (max-width: 860px) {
  .lp-car-slide { grid-template-columns: 1fr; }
  .lp-car-arrow { display: none; }         /* mobile : swipe natif + points */
  .lp-car-shot { max-height: 260px; }
}

/* Liste de points ✓ */
.lp-checks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.lp-checks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.lp-checks svg { flex-shrink: 0; width: 19px; height: 19px; margin-top: 2px; color: var(--accent2); background: rgba(0,179,125,.12); border-radius: 6px; padding: 3px; }

/* Screenshot produit encadré */
.lp-shot-fig { margin: 0; position: relative; }
.lp-shot { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(45,45,58,.14), 0 6px 18px rgba(45,45,58,.08); }
.lp-shot-fig figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-secondary); }
.lp-shot-wide { max-width: 880px; margin: clamp(36px, 5vw, 56px) auto 0; }

/* Pastille Pro (dorée, discrète) */
.lp-pro-chip { display: inline-flex; align-items: center; margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-pill); background: linear-gradient(135deg, #FFE29B, var(--gold)); color: #7C5A00; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .3px; text-transform: none; vertical-align: middle; }

/* Révélation au scroll (observer inline dans index.html) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(0.22,0.75,0.28,1); }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ── Section COMPARATIF ── */
.lp-vs { padding: var(--section-spacing) 0; background: linear-gradient(180deg, var(--bg) 0%, #F4F2FF 100%); }
.lp-vs-head { text-align: center; max-width: 640px; margin: 0 auto clamp(30px, 4vw, 44px); }
/* ⚠️ Sans `font-size`, ce titre retombait sur le défaut du navigateur (24px) —
   moitié moins que les titres de section voisins. Défaut hérité de la home v1,
   révélé en restaurant le comparatif dans la home actuelle (02.08). Même échelle
   que les têtes de section de v2.css. */
.lp-vs-head h2 { margin: 10px 0 12px; font-size: clamp(1.5rem, 4.2vw, 3rem); letter-spacing: -0.02em; }
.lp-vs-head p { color: var(--text-secondary); }
.lp-vs-table { max-width: 960px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 18px 48px rgba(45,45,58,.08); }
.lp-vs-row { display: grid; grid-template-columns: 1.05fr 1.35fr 1fr; }
.lp-vs-row + .lp-vs-row { border-top: 1px solid var(--border); }
.lp-vs-row > span { padding: 15px 18px; font-size: 14.5px; line-height: 1.5; }
.lp-vs-row .crit { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--text); }
.lp-vs-row .k { background: rgba(91,108,249,.055); color: var(--text); }
.lp-vs-row .k b { color: var(--accent2); font-weight: 800; margin-right: 4px; }
.lp-vs-row .o { color: var(--text-secondary); }
.lp-vs-headrow { background: var(--bg); }
.lp-vs-headrow span { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 7px; }
.lp-vs-headrow .k { background: rgba(91,108,249,.09); color: var(--accent-deep); }
.lp-vs-flag { width: 16px; height: 16px; border-radius: 4px; }
.lp-vs-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-secondary); }
.lp-vs-note a { color: var(--accent-deep); font-weight: 700; }
.lp-vs-note a:hover { text-decoration: underline; }

/* ── Responsive des sections killer ── */
@media (max-width: 900px) {
  .lp-hero-points li { font-size: 14px; }
}
@media (max-width: 640px) {
  /* ── Comparatif mobile : UN tableau, bandeau de marques COLLANT (03.08) ──
     Pattern des pages pricing modernes. La v. précédente (7 mini-cartes, avec
     « KWIIZ / KAHOOT » répété dans chacune = 14 étiquettes) avait perdu ce qui
     fait un comparatif : la lecture EN REGARD et le balayage d'une colonne d'un
     seul trait. Ici : l'en-tête « Kwiiz | Kahoot » s'écrit UNE fois et reste
     collé sous la navbar pendant le défilement des lignes ; le critère devient
     une fine ligne pleine largeur sur fond doux ; la colonne Kwiiz garde sa
     teinte CONTINUE (c'est elle qu'on balaye). ~1/3 de hauteur en moins. */
  /* ⚠️ `overflow: hidden` du tableau (desktop) NEUTRALISE le sticky de ses
     descendants → visible ici, et les coins arrondis sont rendus par les
     enfants de tête et de queue à la place. */
  .lp-vs-table { overflow: visible; }
  .lp-vs-row:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
  .lp-vs-row { grid-template-columns: 1fr 1fr; }
  .lp-vs-headrow span:first-child { display: none; }   /* la colonne critère n'existe plus */
  .lp-vs-headrow {
    position: sticky; top: 64px;   /* pile sous la navbar (sticky, 64px) */
    z-index: 5;
    /* fond OPAQUE : les lignes défilent DERRIÈRE lui */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    /* la cellule Kwiiz est teintée et devient le 1er enfant ici (la colonne
       critère est masquée) : sans ce clip, son fond carré déborde de l'arrondi.
       Sûr : `overflow` ne neutralise le sticky que des DESCENDANTS, pas le sien. */
    overflow: hidden;
  }
  .lp-vs-headrow span { justify-content: center; font-size: 14px; padding: 11px 12px; }
  .lp-vs-row .crit {
    grid-column: 1 / -1;
    text-align: center;   /* séparateur de bloc : il chapeaute les DEUX colonnes */
    padding: 11px 16px 5px; font-size: 13.5px;
    background: linear-gradient(180deg, rgba(45, 45, 58, 0.03), transparent);
  }
  .lp-vs-row .k, .lp-vs-row .o { font-size: 13.5px; padding: 6px 14px 12px; }
}

/* ── FEATURES — orbite autour d'un Kwiix ───────────────────────── */
.lp-features { padding: var(--section-spacing) 0; background: var(--bg); position: relative; overflow: hidden; }
.lp-features::before, .lp-features::after { content: ''; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.lp-features::before { width: 420px; height: 420px; background: var(--lilac); opacity: .38; top: -130px; left: -110px; }
.lp-features::after { width: 380px; height: 380px; background: var(--peach); opacity: .34; bottom: -150px; right: -120px; }
.lp-features .container { position: relative; z-index: 1; }
.lp-features-head { text-align: center; max-width: 600px; margin: 0 auto 18px; }
.lp-features-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--text); margin-bottom: 10px; }
.lp-features-head p { font-size: 16.5px; color: var(--text-secondary); line-height: 1.6; }
/* Indice discret qui amène l'œil vers l'orbe (système solaire) */
.lp-features-cue { display: inline-flex; margin-top: 14px; color: var(--accent); opacity: .6; animation: lp-cue-bob 2s ease-in-out infinite; }
.lp-features-cue svg { width: 24px; height: 24px; }
@keyframes lp-cue-bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: .9; } }

/* Conteneur global : système d'orbite + panneau de détail côte à côte */
.lp-orbit { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 40px; }

/* ── Système SOLAIRE ─────────────────────────────────────────────────────────
   Kwiix = SOLEIL au centre (corona rayonnante). Les 5 planètes sont sur UN SEUL
   anneau, espacées de 72°, portées par un axe unique qui tourne régulièrement
   → jamais de collision. Chaque planète = sphère 3D (CSS) de la couleur de l'atout,
   icône blanche par-dessus. Le contenu est contre-tourné (JS) pour rester droit.  */
.lp-orbit-system { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 auto; }

/* Orbite unique (trajectoire des planètes) — trait pointillé (un peu plus épais)
   + halo diffus pour la profondeur du « disque ». Le pointillé tourne doucement. */
.lp-orbit-path { position: absolute; top: 50%; left: 50%; width: var(--orbit-d, 78%); height: var(--orbit-d, 78%); border-radius: 50%; border: 2.5px dashed rgba(91,108,249,.22); box-shadow: inset 0 0 42px rgba(91,108,249,.06), 0 0 42px rgba(124,58,237,.05); pointer-events: none; animation: lp-path-spin 60s linear infinite; }
@keyframes lp-path-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* SOLEIL : halo chaud pulsé derrière le Kwiix (sans rayons) */
.lp-sun-rays { position: absolute; top: 50%; left: 50%; width: 46%; aspect-ratio: 1/1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle, rgba(255,209,102,.45) 0%, rgba(124,58,237,.22) 42%, transparent 70%);
  animation: lp-sun-glow 4s ease-in-out infinite; }
@keyframes lp-sun-glow { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .95; } 50% { transform: translate(-50%,-50%) scale(1.14); opacity: .6; } }
@keyframes lp-orbit-spin { to { transform: rotate(360deg); } }

/* Noyau : Kwiix central = SOLEIL — bouton cliquable (régénère un Kwiix) */
.lp-orbit-core { position: absolute; top: 50%; left: 50%; width: 33%; aspect-ratio: 1/1; transform: translate(-50%, -50%); border: none; padding: 0; border-radius: 50%; background: radial-gradient(circle at 50% 36%, #fff 0%, #FFF7E6 55%, #FFEFC9 100%); box-shadow: 0 14px 40px rgba(245,158,11,.28), 0 0 44px rgba(255,209,102,.55), 0 0 0 8px rgba(255,255,255,.6), inset 0 -6px 0 rgba(245,158,11,.10); display: flex; align-items: center; justify-content: center; z-index: 4; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .25s cubic-bezier(0.34,1.56,0.64,1), box-shadow .25s; }
.lp-orbit-core::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(245,158,11,.20); animation: lp-orbit-halo 3s ease-in-out infinite; pointer-events: none; }
@keyframes lp-orbit-halo { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.07); opacity: .18; } }
/* Halo au survol : ondes pulsées */
.lp-orbit-halo { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .3s; }
.lp-orbit-halo::before, .lp-orbit-halo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #F59E0B; }
.lp-orbit-core:hover { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 18px 50px rgba(245,158,11,.4), 0 0 60px rgba(255,209,102,.7), 0 0 0 8px rgba(255,209,102,.2); }
.lp-orbit-core:hover .lp-orbit-halo { opacity: 1; }
.lp-orbit-core:hover .lp-orbit-halo::before { animation: lp-halo-ripple 1.4s ease-out infinite; }
.lp-orbit-core:hover .lp-orbit-halo::after  { animation: lp-halo-ripple 1.4s ease-out infinite .7s; }
@keyframes lp-halo-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.lp-orbit-kwiix { width: 74%; height: auto; display: block; filter: drop-shadow(0 8px 12px rgba(45,45,58,.18)); animation: lp-jelly 3s ease-in-out infinite; transform-origin: center bottom; position: relative; z-index: 1; }
.lp-orbit-core.shuffling .lp-orbit-kwiix { animation: lp-kwiix-shuffle .6s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes lp-kwiix-shuffle { 0% { transform: scale(.5) rotate(-25deg); opacity: .4; } 55% { transform: scale(1.14) rotate(8deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
.lp-orbit-hint { position: absolute; bottom: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; background: #F59E0B; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(245,158,11,.45); opacity: 0; transform: scale(.5); transition: opacity .25s, transform .25s cubic-bezier(0.34,1.56,0.64,1); z-index: 2; }
.lp-orbit-hint svg { width: 15px; height: 15px; }
.lp-orbit-core:hover .lp-orbit-hint { opacity: 1; transform: scale(1); }

/* ── Planètes : toutes sur le MÊME axe (rotation régulière, pas de collision) ──
   .lp-planet-orbit fait la taille de l'orbite ; la planète est ancrée au sommet.
   L'axe tourne (JS), le contenu est contre-tourné (JS) → planète toujours droite. */
.lp-planet-orbit { position: absolute; top: 50%; left: 50%; width: var(--orbit-d, 78%); height: var(--orbit-d, 78%); transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 3; will-change: transform; }
.lp-planet { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: none; padding: 0; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }

/* La PLANÈTE = sphère 3D CSS de la couleur de l'atout.
   Volume : dégradé (lumière haut-gauche → couleur → terminateur sombre bas-droite),
   glow de couleur diffus autour + fin anneau lumineux au bord éclairé. */
.lp-planet-ic { position: relative; width: clamp(48px, 7vw, 62px); height: clamp(48px, 7vw, 62px); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background:
    radial-gradient(circle at 34% 28%,
      color-mix(in srgb, var(--c) 12%, #fff) 0%,
      color-mix(in srgb, var(--c) 55%, #fff) 22%,
      var(--c) 52%,
      color-mix(in srgb, var(--c) 55%, #000) 88%,
      color-mix(in srgb, var(--c) 42%, #000) 100%);
  box-shadow:
    inset -5px -6px 12px color-mix(in srgb, var(--c) 60%, #000),
    inset 4px 4px 9px rgba(255,255,255,.35),
    0 8px 18px color-mix(in srgb, var(--c) 40%, transparent),
    0 0 24px color-mix(in srgb, var(--c) 32%, transparent);
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1), box-shadow .3s; }
/* Reflet spéculaire (halo de lumière en haut-gauche) */
.lp-planet-ic::before { content: ''; position: absolute; top: 11%; left: 17%; width: 38%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.9), rgba(255,255,255,.15) 55%, transparent 72%); pointer-events: none; }
.lp-planet-ic svg { width: 23px; height: 23px; position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.lp-planet-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px; color: var(--text); background: rgba(255,255,255,.95); border-radius: var(--radius-pill); padding: 3px 11px; white-space: nowrap; box-shadow: 0 3px 10px rgba(45,45,58,.1); opacity: 0; transform: translateY(-3px); transition: opacity .25s, transform .25s; }
.lp-planet:hover .lp-planet-ic { transform: scale(1.12); }
/* Planète ACTIVE (ou survolée) : agrandie + glow renforcé + label révélé */
.lp-planet-orbit.active .lp-planet-ic,
.lp-planet:hover .lp-planet-ic { box-shadow: inset -5px -6px 12px color-mix(in srgb, var(--c) 60%, #000), inset 4px 4px 9px rgba(255,255,255,.4), 0 12px 26px color-mix(in srgb, var(--c) 50%, transparent), 0 0 34px color-mix(in srgb, var(--c) 45%, transparent); }
.lp-planet-orbit.active .lp-planet-ic { transform: scale(1.18); }
.lp-planet-orbit.active .lp-planet-label,
.lp-planet:hover .lp-planet-label { opacity: 1; transform: translateY(0); }
.lp-planet-orbit.active .lp-planet-ic::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--c); opacity: .5; animation: lp-sat-halo 1.6s ease-in-out infinite; }
@keyframes lp-sat-halo { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.22); opacity: 0; } }

/* ── Panneau de détail ──────────────────────────────────────────── */
/* Le conteneur prend la hauteur du panneau actif (mesurée en JS via --od-h) ;
   la barre de progression se place TOUJOURS sous le texte, jamais dessus. */
.lp-orbit-detail { position: relative; }
.lp-od-stack { position: relative; min-height: var(--od-h, 190px); transition: min-height .3s ease; }
.lp-od { position: absolute; top: 0; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; }
.lp-od.active { display: flex; animation: lp-sc-in .42s cubic-bezier(0.34,1.2,0.64,1); }
@keyframes lp-sc-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.lp-od-eyebrow { display: inline-flex; align-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-radius: var(--radius-pill); padding: 6px 14px; margin-bottom: 16px; }
.lp-od h3 { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--text); line-height: 1.15; margin-bottom: 12px; }
.lp-od p { font-size: 15.5px; color: var(--text-secondary); line-height: 1.7; max-width: 420px; }
@keyframes lp-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Barre de progression segmentée (façon « stories ») SOUS le détail (en flux
   normal → jamais par-dessus le texte). Indique le nombre d'arguments + la
   position, cliquable pour aller à un argument. */
.lp-od-progress { display: flex; gap: 8px; width: 100%; max-width: 340px; margin-top: 22px; }
/* Le BOUTON est une grande cible cliquable (hauteur confortable, fond transparent) ;
   la PISTE visible (fine) est un pseudo-élément centré → facile à viser, élégant. */
.lp-od-seg {
  flex: 1; height: 22px; padding: 0; border: none; background: none; cursor: pointer;
  position: relative; display: flex; align-items: center; -webkit-tap-highlight-color: transparent;
}
.lp-od-seg::before {                 /* piste de fond */
  content: ''; display: block; width: 100%; height: 5px; border-radius: 999px;
  background: rgba(45,45,58,.14); transition: height .15s ease, background .2s ease;
}
.lp-od-seg-fill {                     /* remplissage (progression) par-dessus la piste */
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 5px; width: 0; border-radius: 999px; background: var(--c, var(--accent));
  transition: height .15s ease;
}
/* Survol / focus clavier : la piste s'épaissit (feedback clair) */
.lp-od-seg:hover::before, .lp-od-seg:focus-visible::before { height: 8px; background: rgba(45,45,58,.22); }
.lp-od-seg:hover .lp-od-seg-fill, .lp-od-seg:focus-visible .lp-od-seg-fill { height: 8px; }
.lp-od-seg:focus-visible { outline: none; }
.lp-od-seg.is-active::before { height: 7px; }
.lp-od-seg.is-active .lp-od-seg-fill { height: 7px; }
@media (max-width: 980px) {
  .lp-od-progress { margin-left: auto; margin-right: auto; justify-content: center; }
}

/* ── TYPES DE QUESTIONS (« 10 façons de questionner ») ─────────────
   Grille typographique auto-fit (aucune media query nécessaire) : le nom du
   type + un exemple d'usage concret. Les cartes Audio/Vidéo sont mises en
   avant (teinte violette) — plus-value concurrentielle du produit. */

/* ── COMMENT ÇA MARCHE ─────────────────────────────────────────── */
/* ── SECTION SOMBRE « Chaque élève, son Kwiix » ────────────────── */
.lp-bots { background: var(--dark-bg); padding: var(--section-spacing) 0; }
.lp-bots-head { text-align: center; margin-bottom: 48px; }
.lp-bots-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; margin-bottom: 12px; }
.lp-bots-head p { font-size: 15px; color: rgba(255,255,255,.55); max-width: 520px; margin: 0 auto; line-height: 1.6; }
.lp-bots-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.lp-bot-tile { width: 92px; height: 92px; border-radius: 22px; background: rgba(255,255,255,.06); padding: 9px; cursor: pointer; animation: lp-bot-idle 4s ease-in-out infinite; animation-delay: var(--d, 0s); transition: transform .28s cubic-bezier(0.34,1.56,0.64,1), background .25s ease, box-shadow .25s ease; }
.lp-bot-tile img { width: 100%; height: 100%; display: block; }
/* Saut EN BOUCLE au survol (continue tant que la souris reste ; le swap d'yeux -> happy est géré en JS) */
.lp-bot-tile:hover { background: rgba(255,255,255,.15); box-shadow: 0 18px 32px rgba(0,0,0,.38); animation: lp-bot-hop .62s cubic-bezier(0.34,1.4,0.64,1) infinite; }
@keyframes lp-bot-idle { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes lp-bot-hop {
  0%   { transform: translateY(0) scale(1.1) rotate(0); }
  30%  { transform: translateY(-20px) scale(1.18) rotate(-6deg); }
  55%  { transform: translateY(0) scale(1.12) rotate(4deg); }
  70%  { transform: translateY(-7px) scale(1.14) rotate(-2deg); }
  100% { transform: translateY(0) scale(1.1) rotate(0); }
}

/* ── TARIFS — 2 plans (Gratuit / Pro doré) ─────────────────────────────────── */
/* Fond : lueur or côté Pro + lueur violette opposée par-dessus le dégradé —
   ancre visuellement la carte recommandée sans section criarde. */
.lp-pricing { padding: var(--section-spacing) 0; background:
  radial-gradient(620px 340px at 76% 0%, rgba(255,209,102,.16), transparent 68%),
  radial-gradient(560px 320px at 12% 100%, rgba(91,108,249,.10), transparent 68%),
  linear-gradient(180deg, #F4F2FF 0%, #EDF8F3 100%); }
.lp-pricing-head { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.lp-pricing-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--text); margin-bottom: 12px; }
.lp-pricing-head p { font-size: 16px; color: var(--text-secondary); line-height: 1.65; }

/* ── Pricing comparatif asymétrique : petite carte Gratuite PLUS PETITE et
   CENTRÉE verticalement (hiérarchie = secondaire), collée à gauche de la carte
   Pro « héros » mise en avant. La Pro déborde en hauteur → domine. ── */
.lp-hero-plan-wrap { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); align-items: center; gap: 0; }

/* Carte Gratuite compacte : NON étirée (hauteur naturelle < Pro), centrée en
   hauteur par le wrap. Collée : bord droit fondu sous la Pro (chevauchement léger
   via marge négative + z-index) → effet « accolée à la vedette ». */
.lp-free-card {
  position: relative; z-index: 0; display: flex; flex-direction: column;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 28px 34px 26px 26px; margin-right: -18px;
  box-shadow: -6px 8px 24px rgba(45,45,58,.06);
}
.lp-free-card-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-secondary); }
.lp-free-card-price { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 36px; color: var(--text); line-height: 1; margin-top: 8px; }
.lp-free-card-per { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }
.lp-free-card-list { list-style: none; margin: 18px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-free-card-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text); line-height: 1.4; }
.lp-free-card-list svg { width: 18px; height: 18px; padding: 3px; border-radius: 6px; flex-shrink: 0; margin-top: 1px; }
.lp-free-card-list .ic-yes { background: rgba(0,179,125,.12); color: var(--accent2); }
/* Item avec precision : titre + petite ligne discrete dessous (ex « max 5 questions ») */
.lp-free-card-list li span { display: flex; flex-direction: column; gap: 1px; }
.lp-free-card-list li em { font-style: normal; font-size: 11.5px; color: var(--text-secondary); }
.lp-free-card-cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius-pill); padding: 13px 18px;
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14.5px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.lp-free-card-cta:hover { border-color: var(--accent); color: var(--accent); background: rgba(91,108,249,.05); }
/* « Sans carte bancaire » a QUITTÉ la liste des ✓ (04.08.2026) : ce n'est pas une
   fonctionnalité, c'est la levée d'une objection — sa place est sous le bouton,
   au moment où l'on hésite à cliquer. Pendant du .lp-hero-plan-fine de la Pro. */
.lp-free-card-fine { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: var(--text-secondary); }

.lp-hero-plan {
  position: relative; z-index: 1; background: linear-gradient(180deg, #FFFDF3 0%, #fff 44%);
  border: 2px solid var(--gold); border-radius: var(--radius-xl, 24px);
  padding: 40px 38px 30px; text-align: center;
  box-shadow: 0 18px 48px rgba(255,209,102,.30);
}
/* Badge « Le plus complet » (couronne + reflet balayé) — inchangé */
.lp-plan-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden;
  background: linear-gradient(180deg, #FFE29B, var(--gold)); color: #7C5A00;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px;
  border-radius: var(--radius-pill); padding: 6px 16px;
  box-shadow: 0 6px 16px rgba(255,209,102,.5);
}
.lp-plan-badge svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .lp-plan-badge::after { content: ''; position: absolute; top: 0; bottom: 0; width: 34%; left: -45%; transform: skewX(-18deg); background: linear-gradient(105deg, transparent, rgba(255,255,255,.8), transparent); animation: lp-badge-shine 3.6s ease-in-out infinite; }
}
@keyframes lp-badge-shine { 0%, 55% { left: -45%; } 100% { left: 135%; } }

.lp-hero-plan-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--gold-deep); margin-top: 8px; }
.lp-hero-plan-price { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 58px; color: var(--text); line-height: 1; letter-spacing: -0.01em; margin-top: 6px; }
.lp-hero-plan-month { font-size: 22px; color: var(--text-secondary); font-weight: 600; }
/* Mention de facturation reelle (honnetete : paiement annuel, pas mensuel) */
.lp-hero-plan-billing { font-size: 13px; color: var(--text-secondary); margin-top: 8px; }
/* Accroche prix — le Kwiix + sa tasse restent HORS du bandeau (sur le fond clair
   de la carte → le Kwiix jaune contraste), seul le TEXTE porte le fond jaune. */
.lp-hero-plan-pitch { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 0; max-width: 440px;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; }
.lp-pitch-txt { flex: 1; padding: 12px 18px; border-radius: 16px;
  background: var(--yellow); box-shadow: inset 0 0 0 1px rgba(184,134,11,.20); color: #9A7500; }

/* Mascotte : Kwiix (plus grand) + tasse fumante à SA DROITE (l'anse du SVG est à
   droite → dégagée, plus coupée par le corps du Kwiix). */
.lp-pitch-mascot { position: relative; flex-shrink: 0; width: 88px; height: 60px; }
.lp-pitch-kwiix { position: absolute; left: 0; top: -2px; width: 60px; height: 60px; display: block; }
/* Tasse à droite du Kwiix, calée sur le bas (comme s'il la tendait) */
.lp-coffee { position: absolute; right: -2px; bottom: 0; width: 38px; height: 38px;
  filter: drop-shadow(0 2px 3px rgba(184,134,11,.35)); }
/* SVG retourné horizontalement → l'anse passe à GAUCHE (vers le Kwiix). La
   vapeur (span séparé) n'est pas affectée, elle reste droite. */
.lp-coffee svg { width: 38px; height: 38px; color: var(--gold-deep); display: block; transform: scaleX(-1); }
/* Vapeur animée (3 volutes ondulantes qui montent) au-dessus du BOL de la tasse */
.lp-coffee-steam { position: absolute; left: 7px; width: 22px; top: -9px; height: 15px; pointer-events: none; }
.lp-coffee-steam i { position: absolute; bottom: 0; width: 3px; height: 11px; border-radius: 2px;
  background: linear-gradient(to top, rgba(184,134,11,.6), rgba(184,134,11,0)); opacity: 0; }
.lp-coffee-steam i:nth-child(1) { left: 0px; }
.lp-coffee-steam i:nth-child(2) { left: 8px; }
.lp-coffee-steam i:nth-child(3) { left: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .lp-coffee-steam i { animation: lp-steam 2.6s ease-in-out infinite; }
  .lp-coffee-steam i:nth-child(2) { animation-delay: .5s; animation-duration: 3s; }
  .lp-coffee-steam i:nth-child(3) { animation-delay: 1s; animation-duration: 2.9s; }
}
@keyframes lp-steam {
  0%   { opacity: 0; transform: translateY(3px) scaleY(.5); }
  25%  { opacity: .85; }
  60%  { opacity: .55; transform: translateY(-6px) translateX(2px) scaleY(1); }
  100% { opacity: 0; transform: translateY(-13px) translateX(-1px) scaleY(1.1); }
}

/* 6 bénéfices : grille 2×3, TITRES SEULS autoporteurs (allégé, zéro info cachée,
   lisible mobile). Icône + titre centrés verticalement. */
.lp-hero-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 28px 0 8px; text-align: left; }
.lp-hero-feat { display: flex; align-items: center; gap: 12px; }
.lp-hero-feat-ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255,209,102,.30), rgba(255,209,102,.16)); color: var(--gold-deep); }
.lp-hero-feat-ic svg { width: 20px; height: 20px; }
/* ⚠️ DEUX NIVEAUX par argument (04.08.2026) : un titre court qu'on saisit d'un
   coup d'œil, puis le détail en plus petit et plus clair. Une phrase unique de
   douze mots par ligne se LIT (donc se saute) ; un titre net se BALAIE, et le
   détail n'est là que pour celui qui s'arrête. `align-items: center` du parent
   reste juste : les deux lignes forment un bloc, centré face à son icône. */
.lp-hero-feat .lp-feat-txt { display: flex; flex-direction: column; gap: 1px; }
.lp-hero-feat strong { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.3; }
.lp-hero-feat em { font-style: normal; font-size: 12.5px; line-height: 1.35; color: var(--text-secondary); }
/* Puce avec PREUVE (data-proof-*, v2-preuves.js) : cliquable → fond léger au
   survol SANS transform (le carrousel mobile swipe par-dessus ; et un lift au
   doigt perdrait le tap — règle @media hover). Le chip « Voir » est l'affordance :
   sans lui, personne ne devine qu'une puce de tarif se clique. */
.lp-hero-feat[data-proof-kind] { cursor: pointer; border-radius: 12px; padding: 6px 8px; margin: -6px -8px; transition: background .15s ease; }
@media (hover: hover) {
  .lp-hero-feat[data-proof-kind]:hover { background: rgba(91,108,249,.07); }
  .lp-hero-feat[data-proof-kind]:hover .lp-feat-see { background: var(--accent); color: #fff; }
}
.lp-hero-feat[data-proof-kind]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-feat-see {
  margin-left: auto; flex-shrink: 0; align-self: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 10.5px;
  letter-spacing: .02em; white-space: nowrap;
  color: var(--accent); background: rgba(91,108,249,.10);
  border-radius: 999px; padding: 3px 9px; transition: background .15s ease, color .15s ease;
}

.lp-plan-cta { display: flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); padding: 15px 24px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 15.5px; position: relative; z-index: 1; }
.lp-plan-cta-pro { background: var(--accent2); color: #fff; box-shadow: 0 10px 24px rgba(0,179,125,.32); }
.lp-hero-plan-cta { width: 100%; margin-top: 22px; font-size: 16.5px; padding: 16px 24px; }
.lp-hero-plan-fine { margin-top: 12px; font-size: 12px; color: var(--text-secondary); }
.lp-pricing-note { text-align: center; margin-top: 36px; font-size: 14px; color: var(--text-secondary); }
.lp-pricing-note a { color: var(--accent); font-weight: 600; }
.lp-pricing-note a:hover { text-decoration: underline; }

/* Révélation en cascade au scroll — le JS pose .lp-anim (opt-in) puis .in à
   l'entrée dans le viewport, et RETIRE les deux à la fin (rend la main aux
   transitions hover). Sans JS ou en mouvement réduit : tout visible d'office. */
.lp-hero-plan-wrap.lp-anim .lp-free-card { opacity: 0; transform: translateY(16px); }
.lp-hero-plan-wrap.lp-anim .lp-hero-plan { opacity: 0; transform: translateY(22px); }
.lp-hero-plan-wrap.lp-anim.in .lp-free-card { animation: lp-plan-in .5s cubic-bezier(0.22,0.75,0.28,1) forwards; }
.lp-hero-plan-wrap.lp-anim.in .lp-hero-plan { animation: lp-plan-in .6s cubic-bezier(0.22,0.75,0.28,1) .12s forwards; }
@keyframes lp-plan-in { to { opacity: 1; transform: none; } }

/* ── CTA FINALE — « Swiss made, pour de vrai » : la carte des preuves ────────
   Carte cantonale officielle (couches générées par landing/tools/build-swiss-map.mjs
   — swiss-maps © Interactive Things, BSD-3, données swisstopo) + récit dépliable.
   Décisions détaillées : docs/landing-decisions.md § Section Swiss made. */

/* Flottement du Kwiix (hérité de l'ancienne CTA — réutilisé par .lp-swiss-kwiix). */
@keyframes lp-ctabot-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lp-ctabot-shadow { 0%,100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.62); opacity: .24; } }

/* La section hérite de .section-cta (fond violet, h2 blanc, btn-white). */
    .lp-swiss-sub { max-width: 560px; margin-left: auto; margin-right: auto; }

    /* ── Scène : carte de la Suisse (gauche) + récit épinglé (droite) ── */
    .lp-swiss-scene {
      display: grid; grid-template-columns: 1.15fr 1fr;
      gap: clamp(28px, 5vw, 64px); align-items: center;
      max-width: 980px; margin: 8px auto 44px; text-align: left;
    }

    /* Carte cantonale (swiss-maps © Interactive Things, BSD-3 — données swisstopo).
       ⚠️ Les épingles se positionnent en % du SVG SEUL → .lp-swiss-mapbox est la
       boîte de référence (la légende, en dehors, fausserait les hauteurs). */
    .lp-swiss-mapbox { position: relative; }
    .lp-swiss-ch { width: 100%; height: auto; display: block; overflow: visible; }
    /* Couches — couleurs PLEINES (mélanges accent+blanc) : elles se recouvrent
       proprement sans transparence cumulée. land = le pays · romand = la Suisse
       romande (GE VD VS NE FR JU + Jura bernois), toujours un peu plus claire et
       qui S'ALLUME au survol de l'entrée 4 · inner = frontières cantonales fines ·
       border = LA frontière nationale, pointillée. */
    .lp-swiss-ch .ch-land   { fill: #6A79FA; }
    .lp-swiss-ch .ch-romand { fill: #7583FA; transition: fill .35s ease; }
    /* Zone allumée = VERT Kwiiz (--accent2). Les épingles restent lisibles
       dessus grâce à leur liseré sombre + ombre (cf. .lp-swiss-pin). */
    .lp-swiss-ch .ch-romand.lit { fill: var(--accent2); }
    .lp-swiss-ch .ch-inner  { fill: none; stroke: rgba(255,255,255,.17); stroke-width: 2.2; }
    .lp-swiss-ch .ch-border { fill: none; stroke: rgba(255,255,255,.6); stroke-width: 3.4; stroke-dasharray: 9.5 6; stroke-linecap: round; }

    /* Épingles numérotées — positions GÉOGRAPHIQUES réelles (calculées depuis les
       coordonnées des villes sur la bbox du path). Même pastille que la liste. */
    .lp-swiss-pin {
      position: absolute; transform: translate(-50%, -50%);
      width: 26px; height: 26px; border-radius: 50%;
      background: #fff; color: var(--accent-deep);
      font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 0 0 2px rgba(26,26,46,.5), 0 4px 12px rgba(0,0,0,.45);
      transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), background .2s ease, color .2s ease;
      z-index: 2;
    }
    .lp-swiss-pin::after {
      content: ''; position: absolute; inset: -7px; border-radius: 50%;
      border: 2px solid rgba(255,255,255,.5);
    }
    /* Satellites de l'entrée 3 (Zurich, Lugano) : POINTS discrets sans numéro —
       trois « 3 » identiques se lisaient comme une erreur. Lausanne garde le
       numéro ; le triangle pointillé (.lp-swiss-links) relie les trois lieux au
       survol : la collaboration EPFL·ETH·CSCS devient visible. */
    .lp-swiss-dot { width: 14px; height: 14px; }
    .lp-swiss-dot::after { inset: -5px; }
    .lp-swiss-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s ease; }
    .lp-swiss-links.lit { opacity: 1; }
    .lp-swiss-links line { stroke: rgba(255,255,255,.75); stroke-width: 2; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
    /* Survol (via l'entrée du récit) : pastille VERTE, numéro blanc + zoom. */
    .lp-swiss-pin.hot { transform: translate(-50%, -50%) scale(1.35); background: var(--accent2); color: #fff; }
    @media (prefers-reduced-motion: no-preference) {
      .lp-swiss-pin::after { animation: lp-pin-pulse 2.6s ease-out infinite; animation-delay: calc(var(--i) * .55s); }
      @keyframes lp-pin-pulse {
        0%   { transform: scale(.7); opacity: .9; }
        70%  { transform: scale(1.5); opacity: 0; }
        100% { transform: scale(1.5); opacity: 0; }
      }
      /* Entrée au scroll (pattern .lp-anim des tarifs : opt-in JS, classes RETIRÉES
         une fois jouées — sinon le fill-mode bloquerait le hover des épingles) :
         la frontière pointillée « se dessine » (les tirets glissent le long du
         tracé en apparaissant), puis les épingles popent en cascade. */
      .lp-swiss.lp-anim .ch-border { opacity: 0; }
      .lp-swiss.lp-anim .lp-swiss-pin { opacity: 0; }
      .lp-swiss.lp-anim.in .ch-border { animation: lp-border-in 1.5s ease-out forwards; }
      .lp-swiss.lp-anim.in .lp-swiss-pin { animation: lp-pin-pop .5s cubic-bezier(0.34,1.56,0.64,1) forwards; animation-delay: calc(.9s + var(--i) * .16s); }
      @keyframes lp-border-in {
        from { stroke-dashoffset: 240; opacity: 0; }
        to   { stroke-dashoffset: 0;   opacity: 1; }
      }
      @keyframes lp-pin-pop {
        from { opacity: 0; transform: translate(-50%, -50%) scale(0); }
        to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      }
    }

    /* Kwiix posé sur la carte (côté est, au-dessus des Grisons) — mêmes
       animations de flottement que la CTA actuelle (keyframes de style.css). */
    .lp-swiss-kwiix { position: absolute; left: 71%; top: 30%; width: 88px; z-index: 3; }
    /* height:auto OBLIGATOIRE : l'img porte width/height HTML (anti-CLS) — sans
       lui, le height d'attribut (180px) survit au width:100% CSS → boîte 88×180,
       Kwiix décalé vers le bas et drapeau détaché (bug du 2026-07-12). */
    .lp-swiss-kwiix img { width: 100%; height: auto; display: block; position: relative; z-index: 1; animation: lp-ctabot-float 3s ease-in-out infinite; filter: drop-shadow(0 6px 16px rgba(0,0,0,.3)); }
    .lp-swiss-kwiix .flag { position: absolute; right: -7px; bottom: 2px; width: 24px; z-index: 2; animation: lp-ctabot-float 3s ease-in-out infinite; }
    .lp-swiss-kwiix .flag svg { width: 100%; display: block; }
    .lp-swiss-kwiix .shadow { position: absolute; bottom: -9px; left: 50%; width: 56px; height: 10px; margin-left: -28px; border-radius: 50%; background: rgba(0,0,0,.28); filter: blur(5px); z-index: 0; animation: lp-ctabot-shadow 3s ease-in-out infinite; }

    /* LA phrase, sous la carte. */
    .lp-swiss-caption {
      margin-top: 18px; text-align: center;
      font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600;
      font-size: 14.5px; color: rgba(255,255,255,.92);
    }
    .lp-swiss-caption::before, .lp-swiss-caption::after { content: '—'; opacity: .55; margin: 0 10px; }

    /* Récit COMPACT : 4 titres seulement. La description se DÉPLIE au survol
       (desktop) ou au tap (mobile) — le texte vit là sans faire peur d'emblée.
       Dépliage fluide via grid-template-rows 0fr→1fr (anime une hauteur auto). */
    .lp-swiss-list { display: flex; flex-direction: column; gap: 10px; }
    .lp-swiss-item .n {
      flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
      background: #fff; color: var(--accent-deep);
      font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px;
      display: flex; align-items: center; justify-content: center;
      transition: transform .2s cubic-bezier(0.34,1.56,0.64,1), background .2s ease, color .2s ease;
    }
    /* ⚠️ `.open` SEUL, jamais `:hover` : c'est le JS qui décide de l'entrée
       sélectionnée (il en garde UNE ouverte). Avec `:hover` en parallèle, une
       entrée que le JS vient de fermer se rouvrait sous le curseur resté dessus
       après le décalage de mise en page — deux descriptions ouvertes à la fois. */
    .lp-swiss-item.open .n { transform: scale(1.2); background: var(--accent2); color: #fff; }
    .lp-swiss-head { margin: 0; }
    .lp-swiss-head button {
      display: flex; align-items: center; gap: 14px; width: 100%;
      background: none; border: none; padding: 6px 0; cursor: pointer; text-align: left;
      font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 17px; color: #fff;
    }
    .lp-swiss-head button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
    /* .88 (pas .8) : à .8 la ville tombait à 4.3:1 sur le violet (AA = 4.5). */
    /* Le LIEU est le préfixe, le CLAIM est le message : hiérarchie par la
       TAILLE (pas par la couleur — un seul accent sur fond violet) et jamais de
       claim caché au survol (c'est l'argument lui-même ; les scrolleurs et le
       mobile ne survolent pas). */
    .lp-swiss-head .city { opacity: .8; font-weight: 600; font-size: .85em; letter-spacing: .01em; }
    /* Chevron d'affordance : UNIQUEMENT sur écran tactile (au survol, inutile). */
    .lp-swiss-head .car { display: none; margin-left: auto; flex-shrink: 0; width: 16px; height: 16px; opacity: .6; transition: transform .25s ease; }
    @media (any-hover: none) { .lp-swiss-head .car { display: block; } }
    .lp-swiss-item.open .car { transform: rotate(180deg); }
    .lp-swiss-desc {
      display: grid; grid-template-rows: 0fr; opacity: 0;
      transition: grid-template-rows .3s ease, opacity .25s ease;
    }
    .lp-swiss-desc > div { overflow: hidden; min-height: 0; }
    /* ⚠️ FILET, et il n'est pas décoratif (29.08.2026) : tant que swiss.js n'a
       pas pris la main, le survol seul déplie. Sans lui, un visiteur servi avec
       la CSS FRAÎCHE et un swiss.js encore EN CACHE ne voyait plus rien s'ouvrir
       — le `?v=` ne versionne pas le fichier côté serveur (nginx rend toujours le
       même style.css quel que soit le jeton), donc les deux moitiés d'une page
       peuvent dater de deux déploiements différents pendant une heure. Vécu le
       jour même sur la machine de Quentin. Ça rend aussi la section utilisable
       sans JavaScript. Dès que le JS est là il pose `.js-select` et cette règle
       s'efface : la classe `.open` redevient l'unique source. */
    .lp-swiss:not(.js-select) .lp-swiss-item:hover .lp-swiss-desc { grid-template-rows: 1fr; opacity: 1; }
    .lp-swiss:not(.js-select) .lp-swiss-item:hover .n { transform: scale(1.2); background: var(--accent2); color: #fff; }
    .lp-swiss-item.open .lp-swiss-desc { grid-template-rows: 1fr; opacity: 1; }
    /* ⚠️ La révélation a UNE seule source : la classe `.open`, posée par
       swiss.js (survol de l'entrée OU de son épingle, ou focus clavier). La
       CSS n'ouvre plus rien d'elle-même — voir le commentaire de `.n` ci-dessus
       et l'encadré « le survol sélectionne » de swiss.js. Le titre n'est
       cliquable qu'en tactile sans souris, d'où le curseur neutre ailleurs. */
    @media (any-hover: hover) {
      .lp-swiss-head button { cursor: default; }
    }
    /* ⚠️ Spécificité .lp-swiss .lp-swiss-desc p OBLIGATOIRE : .section-cta p
       (plus bas dans le fichier) pose margin-bottom: 40px — à spécificité égale
       il gagnait et créait un trou énorme sous chaque description ouverte.
       Le fil vertical (border-left) prolonge la pastille numérotée (26px de
       large → centre à 13px) : la description est « accrochée » à son étape. */
    .lp-swiss .lp-swiss-desc p {
      font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6;
      color: rgba(255,255,255,.9); margin: 2px 0 4px 12px;
      border-left: 2px solid rgba(255,255,255,.28);
      padding: 2px 0 2px 26px;
    }
    .lp-swiss .lp-swiss-caption { margin-bottom: 0; }
    .lp-swiss-desc p strong { color: #fff; font-weight: 600; }
    .lp-swiss-desc p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); }
    .lp-swiss-desc p a:hover { text-decoration-color: #fff; }


    @media (max-width: 900px) {
      .lp-swiss-scene { grid-template-columns: 1fr; gap: 34px; }
      .lp-swiss-map { max-width: 460px; margin: 0 auto; width: 100%; }
      .lp-swiss-list { max-width: 520px; margin: 0 auto; }
    }
    @media (max-width: 600px) {
      /* La punchline tient sur 2 lignes : les tirets décoratifs wrappent mal → retirés. */
      .lp-swiss-caption::before, .lp-swiss-caption::after { content: none; }
      /* Téléphones : le récit devient un CARROUSEL à swipe (même pattern que les
         tarifs : scroll-snap CSS pur, full-bleed, peek de la carte suivante).
         Description TOUJOURS visible dans sa carte — plus d'accordéon à tap ni
         de chevron. La carte suisse s'allume selon la carte visible (sync JS). */
      .lp-swiss-list {
        flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory;
        gap: 12px; max-width: none; margin: 0 -24px; padding: 4px 24px 10px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
      }
      .lp-swiss-list::-webkit-scrollbar { display: none; }
      /* Carte du carrousel : la carte ACTIVE (centrée, .open posé par l'IO) est
         nette et surélevée, les voisines sont estompées/réduites → l'œil sait où
         lire. snap-stop: always = un swipe passe UNE carte (pas de saut de 2-3
         sur un flick, désorientant sur 4 étapes numérotées). */
      /* ⚠️ Voile SOMBRE (pas blanc) : un voile blanc translucide ÉCLAIRCIT le
         fond violet et faisait retomber le texte blanc sous l'AA. Le voile
         sombre délimite la carte ET améliore le contraste. La carte active
         (.open) est la plus CLAIRE (voile quasi nul) = même hiérarchie
         « actif = lumineux » qu'avant. */
      /* Anatomie de carte : RUBRIQUE titre en haut (hauteur fixe) + séparateur
         TRAITILLÉ (rappel de la frontière pointillée de la carte suisse) +
         description CENTRÉE verticalement dans l'espace restant. Les cartes
         courtes ont ainsi une structure identique aux longues — plus de texte
         collé en haut avec un vide sous lui. */
      .lp-swiss-item {
        flex: 0 0 82%; scroll-snap-align: center; scroll-snap-stop: always;
        background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.14);
        border-radius: 18px; padding: 14px 18px 16px;
        display: flex; flex-direction: column;
        opacity: .6; transform: scale(.96);
        transition: opacity .25s ease, transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
      }
      .lp-swiss-item.open {
        opacity: 1; transform: scale(1);
        background: rgba(0,0,0,.04); border-color: rgba(255,255,255,.3);
        box-shadow: 0 8px 22px rgba(0,0,0,.16);
      }
      .lp-swiss-head { position: relative; padding-bottom: 12px; margin-bottom: 12px; }
      .lp-swiss-head::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
        background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 7px, transparent 7px 12px);
        border-radius: 1px;
      }
      .lp-swiss-head button { font-size: 16px; align-items: flex-start; }
      .lp-swiss-head button .n { margin-top: 2px; }
      /* La description occupe l'espace restant et s'y centre (le centrage vit
         dans le div interne : la piste 1fr du grid remplit déjà toute la zone). */
      .lp-swiss-item .lp-swiss-desc { grid-template-rows: 1fr; opacity: 1; flex: 1; }
      .lp-swiss-item .lp-swiss-desc > div { display: flex; align-items: center; }
      .lp-swiss .lp-swiss-desc p { border-left: none; margin: 0; padding: 0; }
      .lp-swiss-head .car { display: none; }
      .lp-swiss-head button { padding: 0; cursor: default; }
      /* Épingles TAPABLES sur téléphone (→ défilent le carrousel) : zone de tap
         élargie à 46px via ::before (la pastille de 26px est trop petite au pouce). */
      .lp-swiss-pin { cursor: pointer; }
      .lp-swiss-pin::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
      .lp-swiss-dot::before { inset: -15px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .lp-swiss-kwiix img, .lp-swiss-kwiix .flag, .lp-swiss-kwiix .shadow { animation: none !important; }
      /* Mouvement réduit : les révélations restent (contenu), mais sans animation. */
      .lp-swiss-desc, .lp-swiss-pin, .lp-swiss-item, .lp-swiss-item .n, .lp-swiss-ch .ch-romand, .lp-swiss-head .car { transition: none !important; }
    }

/* ── RESPONSIVE LANDING ────────────────────────────────────────── */
@media (max-width: 980px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 8px; padding: 52px 0 64px; justify-items: center; text-align: center; }
  .lp-sub { max-width: 540px; }
  .lp-actions { justify-content: center; }
  .lp-hero-badges { justify-content: center; }
  /* Mobile : le MESSAGE (H1 + CTA) d'abord, la démo ensuite — le visiteur sait
     ce qu'il regarde avant de voir la démo. */
  .lp-hero-visual { margin-top: 40px; flex-direction: column; gap: 16px; }
  /* Coach : plus de sticker absolu (bulle qui sortait de l'écran) — rangée
     « présentateur » CENTRÉE au-dessus de la tablette : Kwiix à gauche,
     bulle à côté (flèche vers lui). Rien ne déborde, à aucune largeur. */
  .lp-coach { position: static; width: auto; min-width: 0; flex-direction: row-reverse; align-items: center; gap: 10px; }
  .lp-coach-fig { width: 64px; flex-shrink: 0; }
  .lp-coach-shadow { display: none; }
  .lp-bubble::after { bottom: auto; left: -5px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); }
  /* Orbite : empilée, système au-dessus, détail centré dessous */
  .lp-orbit { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .lp-orbit-system { max-width: 400px; }
  .lp-orbit-detail { min-height: 0; text-align: center; }
  .lp-od { position: relative; align-items: center; }
  .lp-od.active { position: relative; }
  .lp-od p { max-width: 480px; }
}
/* ── Kwiix central sur écrans TACTILES (pas de vrai survol) ──────────────────
   Le :hover reste « collé » après un tap → on neutralise les effets de survol.
   Pas d'icône shuffle : au tap, le halo ripple violet est joué en JS (.tap-halo). */
@media (hover: none) {
  .lp-orbit-core:hover { transform: translate(-50%, -50%); box-shadow: 0 18px 44px rgba(91,108,249,.22), inset 0 -6px 0 rgba(91,108,249,.06); }
  .lp-orbit-core:hover .lp-orbit-halo { opacity: 0; }
  .lp-orbit-core:hover .lp-orbit-halo::before,
  .lp-orbit-core:hover .lp-orbit-halo::after { animation: none; }
  .lp-orbit-hint { display: none; }              /* pas d'icône double-flèche sur mobile */
  .lp-orbit-core:active { transform: translate(-50%, -50%) scale(.94); }
  /* Pas de :hover collé sur les planètes en tactile — la mise en avant passe par .active (JS au tap) */
  .lp-planet:hover .lp-planet-ic { transform: none; }
  .lp-planet:hover .lp-planet-label { opacity: 0; transform: translateY(-3px); }
  .lp-planet-orbit.active .lp-planet-ic { transform: scale(1.18); }
  .lp-planet-orbit.active .lp-planet-label { opacity: 1; transform: translateY(0); }
}
/* Halo ripple joué au TAP (mobile) — même effet visuel que le hover desktop */
.lp-orbit-core.tap-halo .lp-orbit-halo { opacity: 1; }
.lp-orbit-core.tap-halo .lp-orbit-halo::before { animation: lp-halo-ripple 1.1s ease-out; }
.lp-orbit-core.tap-halo .lp-orbit-halo::after  { animation: lp-halo-ripple 1.1s ease-out .3s; }

@media (max-width: 768px) {
  .lp-band-inner { gap: 20px 32px; }
  .lp-bots-row { gap: 12px; }
  .lp-bot-tile { width: 76px; height: 76px; border-radius: 18px; padding: 7px; }
  /* Planètes un peu plus compactes sur mobile (le label de l'active reste visible) */
  .lp-planet-ic { width: 44px; height: 44px; }
  .lp-planet-ic svg { width: 20px; height: 20px; }
  .lp-planet-label { font-size: 11.5px; }
}
/* Tarifs : CARROUSEL à swipe — TÉLÉPHONES UNIQUEMENT (≤600px). ⚠️ Pas 768 :
   l'iPad mini portrait (768px) tombait dans le carrousel → cartes de 84 % de
   l'écran, énormes ; dès 601px la grille desktop 2 colonnes tient très bien.
   La carte suivante dépasse toujours (peek) → on ne peut pas rater le 2e plan.
   Full-bleed (marges négatives = padding du .container). padding-top pour le
   badge « Recommandé » qui déborde vers le haut ; padding-bottom pour l'ombre
   portée des cartes (l'overflow du carrousel rognerait les deux sinon).
   justify-content: flex-start OBLIGATOIRE : le center de la règle desktop
   ferait déborder le contenu des DEUX côtés → début de la 1re carte
   inatteignable au scroll (bug classique du flex centré qui overflow). */
/* Tablette : cartes plus étroites → grille un peu resserrée */
@media (min-width: 768px) and (max-width: 1000px) {
  .lp-hero-plan-wrap { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); }
  .lp-hero-plan { padding: 36px 28px 28px; }
  .lp-hero-feats { gap: 16px 16px; }
}
/* Mobile : 1 colonne, la carte Pro (mise en avant) PASSE EN PREMIER, la gratuite
   dessous. On annule l'effet « collé » (marge négative / coins asymétriques). */
@media (max-width: 767px) {
  .lp-hero-plan-wrap { grid-template-columns: 1fr; gap: 16px; }
  .lp-hero-plan { order: 1; padding: 34px 22px 26px; }
  .lp-free-card { order: 2; margin-right: 0; border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(45,45,58,.05); }
  .lp-hero-plan-price { font-size: 50px; }
  .lp-hero-feats { grid-template-columns: 1fr; gap: 15px; margin: 26px 0 6px; }
  .lp-pricing-note { margin-top: 24px; }
}
/* Téléphones : les deux cartes CÔTE À CÔTE à swipe (empilées, la carte Pro de
   ~800px imposait un long scroll avant de tout voir). Pro d'abord (order du
   bloc 767 ci-dessus), la Gratuite dépasse sur le côté = peek qui invite au
   swipe. align-items: flex-start → la Gratuite garde sa hauteur compacte.
   padding-top = place du badge « Recommandé » qui déborde ; padding-bottom =
   place de l'ombre portée (l'overflow les rognerait). Pas de justify center
   sur un conteneur qui overflow (début de piste inatteignable, cf. note tarifs). */
@media (max-width: 600px) {
  .lp-hero-plan-wrap {
    display: flex; align-items: flex-start;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; max-width: none; margin: 0 -24px; padding: 26px 24px 18px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .lp-hero-plan-wrap::-webkit-scrollbar { display: none; }
  .lp-hero-plan { flex: 0 0 86%; scroll-snap-align: center; scroll-snap-stop: always; }
  .lp-free-card { flex: 0 0 80%; scroll-snap-align: center; scroll-snap-stop: always; }
}
/* Blasons des cantons (CTA finale) : sous ~460px la rangée d'un seul tenant ne
   tient plus (7 blasons × 48px) et cassait en 6 + 1 → Berne orphelin sur sa
   ligne. On borne la largeur pour forcer un empilement PROPRE 4 + 3, les deux
   lignes restant centrées par le flex (max-width 250px = 4 blasons + 3 gaps,
   jamais 5). */
@media (max-width: 460px) {
}
@media (max-width: 400px) {
  .lp-hero h1 { font-size: 2.2rem; }
  .lp-orbit-system { max-width: 300px; }
}

/* Réduction de mouvement — décor figé ; la démo du héros reste interactive */
@media (prefers-reduced-motion: reduce) {
  .lp-tablet, .lp-orbit-kwiix, .lp-planet-orbit, .lp-sun-rays, .lp-orbit-core::after, .lp-bot-tile, .lp-badge-dot { animation: none !important; }
  .lp-hero::before, .lp-hero::after { display: none; }
  /* Mouvement réduit : les blasons restent visibles (pas d'anim de pop) */
  /* Démo interactive : elle reste jouable, mais sans secousses ni sauts */
  .lp-coach-fig, .lp-coach-img, .lp-coach-shadow, .lp-ans.is-wrong-pick, .lp-bubble { animation: none !important; }
  .lp-hand { display: none !important; }
  .lp-match-lines line.draw { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* Boutons partagés (utilisés par nav.js aussi) */
/* Font des boutons = Plus Jakarta Sans 700 (convention Kwiiz — même registre que
   .lp-cta / .lp-ghost). Sans ça, .btn-* héritait d'Inter 500 (plus fin, incohérent). */
.btn-primary {
  background: var(--accent2);
  color: white;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--border, #E8E6F0);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  /* ⚠️ Indispensable : la classe sert aussi sur des <button> (état vide de la
     bibliothèque), où le curseur par défaut n'est PAS pointer comme sur un <a>. */
  cursor: pointer;
  /* Le hover (anneau violet + press) vient de la règle CTA centralisée ci-dessus */
}

/* ── CTA FINAL ────────────────────────────────────────────────── */
/* Fond --accent-deep (pas --accent) : contraste AA réel du texte blanc, cf. :root.
   ⚠️ Doit rester la MÊME valeur que le fond de .footer-mountains (transition SVG). */
.section-cta { padding: var(--section-spacing) 0; background: var(--accent-deep); text-align: center; }
.cta-bot { width: 140px; height: 140px; margin: 0 auto 32px; border-radius: 28px; animation: float 4s ease-in-out infinite .5s; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35)); }
.section-cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; margin-bottom: 18px; }
/* Opacités élevées obligatoires : sur le fond violet, un blanc à .7 tombe sous le contraste AA */
.section-cta p { font-size: 17px; color: rgba(255,255,255,.92); margin-bottom: 40px; }
/* Texte en --accent-deep : --accent sur blanc = 4.23:1 (< AA 4.5 à 16px). */
.btn-white { background: #fff; color: var(--accent-deep); border-radius: var(--radius-pill); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; display: inline-block; transition: opacity .15s, transform .15s; }
.btn-white:hover { opacity: .92; transform: scale(1.04); }
.section-cta .btn-white { padding: 16px 40px; font-size: 16px; }
.article-cta .btn-white { padding: 13px 28px; font-size: 15px; }
.cta-sub { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  padding: 0 0 0;
}
.footer-mountains {
  display: block;
  width: 100%;
  height: clamp(120px, 19.5vw, 280px);
  /* Fond = ciel violet (raccord avec la section CTA au-dessus) MAIS bascule
     sombre sur les derniers % : sur iPad la hauteur (19.5vw) est FRACTIONNAIRE
     (ex. 159,9px à 820px) et le raster du SVG peut laisser ~1px du FOND
     visible en bas → trait violet entre montagnes et footer. Ce pixel doit
     être de la couleur du footer. Sans risque : le bas du dessin est 100 %
     montagne (rect anti-saignement y=275). Desktop (280px) et mobile (120px)
     ont des hauteurs entières → jamais concernés. */
  background: linear-gradient(180deg, var(--accent-deep) 0%, var(--accent-deep) 94%, var(--dark) 94%);
}
.footer .container {
  padding-top: 48px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  margin-bottom: 14px;
  line-height: 1;
}

/* Logo image blanc du footer (SVG « Kwiiz » en blanc) — hauteur fixe, ratio préservé. */
.footer-logo-img {
  display: block;
  height: 36px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: #9B9BAC;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 280px;
}

.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-social { display: inline-flex; color: #C8C8D4; border-radius: 8px; padding: 4px; margin: -4px; transition: color 0.15s; }
.footer-social svg { width: 26px; height: 26px; }
.footer-social:hover { color: #fff; }
.footer-social:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Labels swiss made software — UNE carte BLANCHE, les deux logos côte à côte
   dans leur grand format (le logo rouge officiel ne se recolore jamais ; sur le
   footer sombre il vit sur son propre fond clair). Même registre que la carte
   de la home : deux logos de MÊME format se lisent comme une paire, alors que
   la version horizontale empilée sous le +AI en bloc donnait deux objets de
   natures différentes. Les liens vers swissmadesoftware.org sont une exigence
   du label, et chaque logo a le SIEN : standard → /fr/home.html, +AI →
   /fr/about/plus-AI.html.
   ⚠️ display:flex de niveau BLOC : le lien Instagram qui précède est
   inline-flex, en inline-flex la carte se collerait sur sa ligne. */
.footer-labels {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  width: fit-content;
  background: #fff;
  border-radius: 14px;
  padding: 16px 22px;
  margin-top: 18px;
}
.footer-label { display: block; }
/* Anneau au survol et au focus, comme tout élément cliquable. */
.footer-label { border-radius: 8px; padding: 4px; margin: -4px; transition: box-shadow 0.14s ease; }
.footer-label:hover, .footer-label:focus-visible { outline: none; box-shadow: 0 0 0 2.5px rgba(91,108,249,0.5); }
.footer-label img { display: block; height: auto; }
/* Trois logos séparés (23.09.2026) : largeurs CALCULÉES pour que le dossier
   rouge fasse la même taille dans chacun. */
.footer-label-sh { margin-top: 3px; }
.footer-label-sh img { width: 90px; }
.footer-label-sms img { width: 82px; }
.footer-label-ai img { width: 79px; }
/* Accueil B (footer.js, HOME_B) : logos posés à même le fond sombre. */
.footer-labels.footer-labels-b { background: transparent; padding: 0; border-radius: 0; }
.footer-labels-b .footer-label:hover, .footer-labels-b .footer-label:focus-visible { box-shadow: 0 0 0 2.5px rgba(255,255,255,.5); }

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #9B9BAC;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9B9BAC;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.footer-nav-title {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #9B9BAC;
  margin-bottom: 16px;
}

.footer-nav-col a {
  display: block;
  font-size: 14px;
  color: #C8C8D4;
  margin-bottom: 10px;
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: white; }

.footer-bottom {
  padding: 32px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { font-size: 13px; color: #9B9BAC; transition: color 0.15s; }
.footer-legal a:hover { color: white; }

.footer-copy { font-size: 13px; color: #9B9BAC; }

/* ---- PAGES LÉGALES ---- */
.trust-highlight-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mint); border-radius: var(--radius-lg);
  padding: 20px 24px; margin-bottom: 48px;
  color: var(--text); font-size: 14px; line-height: 1.65;
  border-left: 4px solid var(--accent2);
}
.trust-highlight-box svg { color: var(--accent2); flex-shrink: 0; margin-top: 2px; }

/* Mesure de lecture : ~70 caractères/ligne — dans le container 760px les lignes
   montaient à ~95-100 caractères, fatigant sur des textes denses */
.legal-body { max-width: 680px; }
.legal-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-top: 48px; margin-bottom: 14px; padding-top: 32px;
  border-top: 1px solid #EEEDF5;
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-top: 24px; margin-bottom: 10px; }
.legal-body p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; margin-bottom: 14px; }
.legal-body ul li { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body code { background: #F0EEF8; border-radius: 4px; padding: 2px 6px; font-size: 13px; }

.legal-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  margin-bottom: 24px; border-radius: var(--radius-sm); overflow: hidden;
}
.legal-table th {
  background: var(--bg); color: var(--text-secondary); font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 10px 14px; text-align: left; border-bottom: 1px solid #EEEDF5;
}
.legal-table td {
  padding: 10px 14px; border-bottom: 1px solid #F5F5F5;
  color: var(--text-secondary); vertical-align: top; line-height: 1.5;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: #FAFBFF; }
/* Wrapper scrollable : à 360px les colonnes « Finalité / Base légale » se
   compressaient en quelques caractères — la table garde une largeur minimale */
.legal-table-wrap { overflow-x: auto; margin-bottom: 24px; }
.legal-table-wrap .legal-table { margin-bottom: 0; min-width: 520px; }

/* ---- PAGE 404 ---- */
.notfound { text-align: center; padding: var(--section-spacing) 0; background: var(--hero-bg); }
/* Kwiix étourdi de la 404 : même état FLOTTANT que le coach du hero — il monte
   (lp-coach-float) au-dessus d'une ombre au sol qui rétrécit (lp-coach-shadow).
   ⚠️ On REUTILISE les keyframes du coach mais PAS ses classes : `.lp-coach`
   porte des règles de placement propres au héros (sticker absolu < 1099px,
   ombre masquée < 768px) qui casseraient cette page. Plus de drop-shadow sous
   l'image : l'ombre au sol est le seul relief, comme partout ailleurs. */
.notfound-coach { position: relative; width: 132px; margin: 0 auto 22px; }
.notfound-bot { width: 132px; height: 132px; display: block; }
.notfound-bot-shadow { position: absolute; bottom: -11px; left: 21%; width: 58%; height: 10px; border-radius: 50%; background: rgba(45,45,58,.34); filter: blur(5px); }
@media (prefers-reduced-motion: no-preference) {
  .notfound-bot { animation: lp-coach-float 3.4s ease-in-out infinite; }
  .notfound-bot-shadow { animation: lp-coach-shadow 3.4s ease-in-out infinite; }
}
.notfound-code { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: clamp(64px, 10vw, 96px); color: var(--accent); line-height: 1; }
.notfound h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.notfound p { color: var(--text-secondary); max-width: 440px; margin: 0 auto 28px; line-height: 1.7; }
.notfound-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---- PAGE HERO (secondary pages) ---- */
.page-hero {
  background: var(--hero-bg);
  padding: 72px 0 60px;
}
.page-hero h1 {
  font-size: 44px;
  color: var(--text);
  margin-bottom: 16px;
  margin-top: 12px;
}
/* Plans d'études annoncés en tête de la Bibliothèque publique. Une LISTE plutôt
   qu'une énumération dans la phrase : à quatre plans, le paragraphe faisait cinq
   lignes et personne ne le lisait. Chaque entrée rattache un plan à son niveau
   d'école — donc ça se balaye, et ça reste lisible quand un plan s'ajoute. */
.hero-plans {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-plans li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 9px 15px;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}
/* Le niveau d'école passe AU-DESSUS du plan : c'est par lui qu'un enseignant se
   reconnaît, le nom du plan ne vient que confirmer. */
.hero-plans strong {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) {
  .hero-plans { gap: 8px; }
  .hero-plans li { font-size: 13.5px; padding: 8px 13px; }
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.7;
}
/* Le fil d'Ariane peut passer sur PLUSIEURS lignes quand le titre est long
   (best practice : on n'ampute JAMAIS le titre courant — un breadcrumb sur 2
   lignes vaut mieux qu'un « … »). Chaque segment reste ENTIER (nowrap par
   segment) → le retour à la ligne se fait ENTRE segments, jamais au milieu d'un
   mot. `align-items: baseline` garde les segments alignés proprement sur 2 lignes. */
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
}
/* ⚠️ Le breadcrumb est un <p> → la règle `.page-hero p { max-width: 580px }` est
   PLUS spécifique que `.breadcrumb` seul et bridait le fil à 580px (il cassait au
   milieu de l'écran). On surcharge avec une règle au moins aussi spécifique →
   toute la largeur du container (1100px), le fil tient sur une seule ligne. */
.page-hero p.breadcrumb,
p.breadcrumb {
  max-width: none;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a,
.breadcrumb-current,
.breadcrumb-sep { white-space: nowrap; }
.breadcrumb-sep { color: var(--text-secondary); }
/* Dernier segment (titre de la page courante) : affiché EN ENTIER. Il ne tronque
   qu'en tout dernier recours — un titre plus large que la ligne entière — et là
   seulement en ellipsis (rarissime sur desktop, possible sur petit mobile). */
.breadcrumb-current {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- SECTION (generic for secondary pages) ---- */
.section { padding: 80px 0; }
.section-title {
  font-size: 44px;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}
.section-alt { background: var(--lilac); }

/* ---- LIBRARY PAGE ---- */

/* ── FILTRE DE BIBLIOTHÈQUE (.lf-*) ─────────────────────────────────────────────
   MIROIR VISUEL de la barre de filtre du dashboard enseignant :
     · recherche + objectif PER + réinitialiser + compteur → BibliothequeTab.jsx
     · pastilles de discipline (sigles, couleurs PER)       → DisciplineFilterBar.jsx
     · degrés groupés par cycle + bracket cliquable          → DegreeCycleFilter.jsx
   Le HTML est généré par landing/library-filters.js (aucun markup en dur dans les
   pages). Tokens repris du dashboard : radius 8/16, bordure 1.5px, anneau violet
   au survol/focus (.lf-ring — en `outline` pour ne pas être rogné par les rangées
   scrollables, contrairement à un box-shadow).
   Desktop : les rangées de pastilles occupent toute la largeur (flex-grow).
   Mobile (< 768px) : pastilles compactes, rangées scrollables horizontalement. */

/* Anneau d'interactivité partagé (miroir de .kwz-ring, client/src/index.css) */
.lf-ring { transition: outline-color 0.14s ease, transform 0.05s ease; }
.lf-ring:hover,
.lf-ring:focus-visible { outline: 2.5px solid rgba(91, 108, 249, 0.5); outline-offset: 0; }
.lf-ring:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .lf-ring { transition: none; }
  .lf-ring:active { transform: none; }
}


/* Conteneur monté par library-filters.js (toolbar + disciplines + degrés) */
.lf-root { margin-bottom: 22px; }

.lf-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lf-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 280px;
  min-width: 240px;
  height: 42px;
  padding: 0 16px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  transition: border-color 0.15s;
}
.lf-search:focus-within,
.lf-search.is-filled { border-color: var(--accent); }
.lf-search > svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--accent); }
.lf-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
}
.lf-clear {
  flex-shrink: 0;
  display: flex;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.15s;
}
/* `display: flex` gagne sur l'attribut [hidden] → il faut le neutraliser
   explicitement, sinon la croix reste visible sur une recherche vide. */
.lf-clear[hidden] { display: none; }
.lf-clear:hover { color: var(--text); }
.lf-clear svg { width: 16px; height: 16px; }

.lf-bar-side { display: flex; align-items: center; gap: 10px; }
.lf-select,
.lf-reset {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.lf-select { font-size: 13px; outline: none; }
.lf-select.is-active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.lf-reset { font-size: 12.5px; font-weight: 500; }

.lf-count {
  margin-left: auto;
  padding-right: 4px;
  min-width: 90px;
  text-align: right;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lf-count b { font-weight: 700; color: var(--text); }

/* ── Rangée des disciplines : « Toutes » + un SIGLE par discipline (nom complet en
      tooltip). Couleurs PER injectées par pastille via --c1/--c2 (per-colors.js). ── */
/* Rangée 2 (école pro) : les DCO du métier choisi. Même rendu que la rangée de
   disciplines — d'où la double classe. ⚠️ `display: flex` gagne sur l'attribut
   [hidden] : il FAUT le neutraliser, sinon la rangée reste visible et vide hors
   contexte école pro (même piège que .lf-clear, plus haut). */
.lf-dcos[hidden] { display: none; }

.lf-discs {
  display: flex;
  align-items: center;
  /* Gap UNIFORME + pills à largeur de contenu, UNE seule ligne (scroll si ça
     déborde — jamais 2 lignes). MIROIR de DisciplineFilterBar (dashboard),
     revu 2026-07-31 : les cellules flex:1 plafonnées donnaient des écarts/
     compressions inégaux. Ne pas les réintroduire. */
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
  /* padding : place pour l'anneau, que l'overflow rognerait en bord de rangée */
  padding: 3px;
  /* ⚠️ `scroll` (PAS `auto`) : piste toujours présente → hauteur constante, la
     rangée ne saute pas quand le filtrage par degré la fait passer sous le
     seuil de débordement. Piste transparente + pas de pouce sans overflow =
     invisible quand il n'y a rien à scroller. (scrollbar-gutter: stable est
     SANS EFFET sur une barre horizontale — ne réserve que la verticale.)
     ⚠️ PAS de scrollbar-width ici : Chromium ≥ 121 la supporte et elle
     DÉSACTIVE le style ::-webkit-scrollbar global → barre native grise
     (vécu le 16.08.2026). Le pouce fin vient du bloc global en tête. */
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
}
.lf-disc {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1.5px solid var(--c2, var(--border));
  border-radius: var(--radius-pill);
  background: white;
  color: var(--c1, var(--text-secondary));
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lf-disc--all { --c1: var(--accent); --c2: var(--border); letter-spacing: normal; }
.lf-disc[data-active] {
  background: var(--c1, var(--accent));
  border-color: var(--c1, var(--accent));
  color: white;
}

/* ── Rangée des degrés : « Tous » + un groupe par cycle (degrés + bracket cliquable
      physiquement aligné SOUS ses degrés). ── */
.lf-degres {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 3px 3px 4px;
  /* Rangée du HAUT depuis le 03.10.2026 (degrés avant disciplines) : l'air
     sous les brackets de cycle, avant les pastilles de discipline — miroir de
     FILTER_ROWS_GAP (DegreeCycleFilter.jsx). */
  margin-bottom: 4px;
  overflow-x: auto;
  /* pas de scrollbar-width (cf. .lf-discs) : le pouce fin global suffit */
  -webkit-overflow-scrolling: touch;
}
/* « Tous » n'a pas de bracket sous lui → on réserve sa hauteur pour aligner la rangée */
.lf-deg-all { flex-shrink: 0; padding-bottom: 22px; }
.lf-cycle {
  /* part de largeur proportionnelle au nombre de degrés du cycle (--lf-n).
     ⚠️ min-width: max-content (PAS 0) : depuis le 5ᵉ groupe « École pro / CFC »
     (2026-08-08), les cases se partagent une largeur plus serrée — un libellé
     « 1ère » plus large que sa case rétrécie débordait à droite et paraissait
     collé à gauche. On ne rétrécit jamais sous le libellé : la rangée
     (.lf-degres, overflow-x auto) défile quand ça ne tient pas. */
  flex: var(--lf-n, 1) 1 0;
  min-width: max-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lf-cycle-degres { display: flex; gap: 6px; }
.lf-deg {
  flex: 1 1 0;
  min-width: max-content;
  padding: 9px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lf-deg[data-active] { background: var(--accent); border-color: var(--accent); color: white; }

.lf-bracket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #C2C5D6;
}
.lf-bracket:hover,
.lf-bracket[data-active] { color: var(--accent); }

/* Bracket de groupe (┌───┐ + légende) — PARTAGÉ : filtre de la bibliothèque
   (.lf-bracket, cliquable) ET légende de cycle des pages de catégorie
   (.qp-cat-cycle-cap, statique). La couleur vient du `color` du parent. */
.kwz-bracket-line {
  display: block;
  width: 100%;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  border-radius: 3px 3px 0 0;
  transition: border-color 0.15s;
}
.kwz-bracket-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s;
}

@media (max-width: 767px) {
  /* Toolbar = UNE rangée recherche + bouton « Filtres » (patron dashboard) :
     les selects DÉMÉNAGENT dans le sheet (relocateSide) et le compteur vit
     dans son CTA « Voir N Kwiiz » — ne PAS remettre la colonne qui étirait
     le bouton sur toute la largeur. */
  .lf-bar { flex-wrap: nowrap; }
  .lf-search { flex: 1 1 auto; min-width: 0; }
  /* Pastilles compactes : les rangées scrollent au lieu de s'étirer */
  .lf-disc { flex: 0 0 auto; max-width: none; padding: 10px 13px; font-size: 13px; min-width: 44px; }
  .lf-disc--all { padding: 5px 12px; font-size: 11.5px; }
  .lf-cycle { flex: 0 0 auto; }
  .lf-deg { flex: 0 0 auto; min-width: 44px; padding: 10px 12px; font-size: 14px; }
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 22px;
}

/* Carte riche : couverture + corps (badges, description, stats, Jouer, auteur) */
/* Hover = anneau violet + ombre douce, SANS translateY — miroir de
   .kwiiz-clickable (client/src/index.css), même langage que le dashboard. */
.quiz-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid #EEEDF8;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.quiz-card:hover,
.qp-related-card:hover {
  outline: 2.5px solid rgba(91, 108, 249, 0.55);
  outline-offset: 2px;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
}
.quiz-card:active,
.qp-related-card:active {
  transform: scale(0.97);
  transition: transform 0.05s ease-out;
}
.qc-cover { position: relative; height: 130px; flex-shrink: 0; background: #F3F1FB; display: flex; align-items: center; justify-content: center; }
.qc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qc-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ph, var(--accent)) 14%, white);
  color: var(--ph, var(--accent));
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: 2px;
}
.qc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }

.quiz-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
  text-align: center;
  /* Deux lignes RÉSERVÉES, titre centré dedans : entre la couverture et les
     pastilles, à la même hauteur d'une carte à l'autre. */
  min-height: 2.6em; display: flex; align-items: center; justify-content: center;
}

.quiz-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.badge {
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}
.badge-discipline { background: var(--blue); color: #2D7DD2; }
/* Degré : accent plein (le violet clair du modal dashboard se fondait dans le
   dégradé du hero) — même registre que la DegreePill posée sur les couvertures. */
.badge-degre { background: var(--accent); color: white; font-weight: 700; }
.badge-per { background: var(--lilac); color: var(--accent); }

.qc-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 14px; }

.quiz-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.qc-meta { display: inline-flex; align-items: center; gap: 12px; }
.qc-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-secondary); cursor: default; }
.qc-stat svg { width: 13px; height: 13px; }
/* Badge « Vidéo » (01.11.2026) : le Kwiiz contient une question sur un extrait
   vidéo. Violet Kwiiz plein, miroir du VideoBadge de l'app (BibliothequeTab.jsx).
   Le triangle est dessiné en CSS : aucune icône à charger. */
.qc-video { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 7px; border-radius: var(--radius-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; cursor: default; }
.qc-video::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 6px; border-color: transparent transparent transparent currentColor; }

/* CTA « Jouer » : VERT (convention produit — tout CTA de jeu/lancement est vert) */
.quiz-launch-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent2);
  color: white;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 5px 14px rgba(0,179,125,.3);
}
.quiz-launch-btn svg { width: 12px; height: 12px; }


.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}
/* État vide DÉDIÉ du filtre École pro / CFC (2026-08-08) : le référentiel est
   câblé mais le catalogue arrive — un Kwiix souriant qui flotte + l'annonce,
   au lieu du générique « aucun quiz » qui sonne comme un échec de recherche.
   ⚠️ L'ombre est AU SOL (ellipse sous le Kwiix, qui rétrécit et s'éclaircit
   quand il monte) — c'est elle qui ancre le flottement. Un drop-shadow collé
   au robot suit son mouvement et ne donne aucune impression de sol. */
.empty-state-kwiix {
  position: relative;
  width: 96px;
  margin: 0 auto 26px;
  display: block;
}
.empty-state-kwiix img {
  width: 96px;
  height: 96px;
  display: block;
  position: relative;
  z-index: 1;
  animation: empty-kwiix-float 3.4s ease-in-out infinite;
}
.empty-state-kwiix::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 62px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 45, 88, 0.22), rgba(45, 45, 88, 0) 70%);
  animation: empty-kwiix-shadow 3.4s ease-in-out infinite;
}
@keyframes empty-kwiix-float  { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes empty-kwiix-shadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(0.78); opacity: 0.55; } }
/* POLITIQUE DE MOUVEMENT : le flottement est un ornement → coupé en reduce
   (le Kwiix, son ombre et le message restent visibles, seul le mouvement s'arrête). */
@media (prefers-reduced-motion: reduce) {
  .empty-state-kwiix img, .empty-state-kwiix::after { animation: none; }
}
.empty-state-cfc-msg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  max-width: 420px;
  margin: 0 auto;
}

/* Bouton « Voir plus » sous la grille (rendu par lots de PAGE_SIZE cartes) */
.load-more-wrap { text-align: center; margin-top: 36px; }

/* Toute la carte est cliquable (→ page publique du Kwiiz) sans casser le CTA
   « Jouer » : le lien du titre s'étend sur la carte via ::after. */
.quiz-card { position: relative; }
.qc-pagelink { color: inherit; }
.qc-pagelink::after { content: ''; position: absolute; inset: 0; }
/* Au-dessus du lien étendu : le CTA Jouer reste cliquable, les badges reçoivent
   le survol (tooltip title= de l'objectif PER). */
.quiz-card .quiz-launch-btn, .quiz-card .quiz-badges { position: relative; z-index: 1; }

/* ---- PAGE PUBLIQUE D'UN KWIIZ (kwiiz.fr/bibliotheque/<slug>-k-XXXXXX, rendue
        par server/routes/publicQuiz.js — le HTML vient de Node, le style d'ici) ---- */
.qp-hero { padding-bottom: 48px; }
.qp-head {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
.qp-cover {
  /* relative sur les DEUX variantes (button image + div placeholder) : ancre les
     overlays de la couverture (loupe de zoom). */
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: white;
  border: 1px solid #EEEDF8;
  box-shadow: 0 10px 32px rgba(91,108,249,0.10);
}
.qp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qp-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 44px; letter-spacing: 3px;
}
/* Couverture CLIQUABLE (bouton) → ouvre l'image en grand (zoom.js). Reset des
   styles de bouton + loupe qui apparaît au survol (même registre que la vignette
   zoomable du dashboard). */
button.qp-cover {
  position: relative;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.qp-cover-zoom-ovl {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,8,18,0.28);
  color: #fff;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.qp-cover-zoom-ovl svg { width: 34px; height: 34px; }
.qp-cover-zoom:hover .qp-cover-zoom-ovl,
.qp-cover-zoom:focus-visible .qp-cover-zoom-ovl { opacity: 1; }

/* ---- LIGHTBOX D'IMAGE (zoom.js) — miroir du composant React ImageLightbox ----
   Fond sombre flouté, image centrée, description en overlay + crédit discret. */
.kwz-zoom-overlay {
  position: fixed; inset: 0; z-index: 2147483647;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px;
  background: rgba(10,8,18,0.82);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  cursor: zoom-out;
  animation: kwzZoomFade 0.18s ease;
}
@keyframes kwzZoomFade { from { opacity: 0; } to { opacity: 1; } }
.kwz-zoom-close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.16); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.kwz-zoom-close svg { width: 22px; height: 22px; }
.kwz-zoom-close:hover { background: rgba(255,255,255,0.26); }
/* fit-content → le crédit en bas-droite s'aligne sur le bord de l'IMAGE. */
.kwz-zoom-fig {
  margin: 0; display: flex; flex-direction: column; gap: 6px;
  max-width: 100%; min-width: 0; width: fit-content;
}
.kwz-zoom-imgwrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; line-height: 0;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: kwzZoomFade 0.22s ease;
}
.kwz-zoom-imgwrap img {
  max-width: 100%; max-height: calc(100vh - 96px);
  object-fit: contain; cursor: zoom-out; display: block;
}
/* Le plafond de 1100 px vit sur l'ENVELOPPE, jamais sur la seule video : pose
   sur <video>, il laissait le cadre (fit-content = largeur intrinseque) plus
   large que la video, decalee a gauche, la legende courant dans le vide a droite
   (retour Quentin 21.09, tuiles « Variete cognitive » de /pedagogie) — et sur la
   FIGURE aussi, qui est fit-content de ce cadre pour la meme raison. */
.kwz-zoom-fig.is-video, .kwz-zoom-imgwrap.is-video { max-width: min(100%, 1100px); }
.kwz-zoom-imgwrap video {
  max-width: 100%; max-height: calc(100vh - 96px);
  display: block; border-radius: 12px;
}
/* Description en OVERLAY sur le bas de l'image (cohérent avec l'écran de feedback). */
.kwz-zoom-desc {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px;
  background: linear-gradient(to top, rgba(10,8,18,0.85), rgba(10,8,18,0));
  color: #fff; font-size: 14px; line-height: 1.4; text-align: left;
  cursor: zoom-out;
}
/* Crédit/source : mention secondaire, discrète, bas-droite (pattern Unsplash). */
.kwz-zoom-credit {
  font-size: 11.5px; line-height: 1.3;
  color: rgba(255,255,255,0.6); text-align: right; align-self: flex-end; cursor: default;
}
.kwz-zoom-credit a { color: rgba(255,255,255,0.78); text-decoration: underline; }
/* Bande de stats sous la couverture (même registre que StatCard côté app :
   petit libellé au-dessus, valeur en évidence dessous). */
.qp-facts {
  display: flex;
  background: white;
  border: 1px solid #EEEDF8;
  border-radius: var(--radius-md);
  margin-top: 14px;
  padding: 12px 6px;
}
.qp-fact {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px 10px;
  text-align: center;
}
.qp-fact + .qp-fact { border-left: 1px solid var(--border); }
.qp-fact-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.3px; }
.qp-fact-value {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 17px; color: var(--text);
}
.qp-fact-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }
.qp-fact-author {
  font-size: 14px;
  max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Pseudo d'un vrai enseignant → lien vers sa carte publique (le compte système
   « Kwiiz.ch » n'en a pas et reste un simple texte). Souligné au survol comme
   tout lien de contenu de la landing. */
.qp-fact-author-link { color: var(--text); transition: color 0.15s; }
.qp-fact-author-link:hover,
.qp-fact-author-link:focus-visible { color: var(--accent-deep); text-decoration: underline; }

.qp-info h1 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; }
.qp-info .quiz-badges { margin-bottom: 16px; }
.qp-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.7; max-width: 640px; margin: 0 0 22px; }
.qp-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.qp-main { max-width: 780px; }
.qp-main h2 { font-size: 26px; margin-bottom: 16px; }
.qp-per {
  background: var(--lilac);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.qp-per h2 { font-size: 18px; margin-bottom: 8px; }
.qp-per p { font-size: 15px; line-height: 1.6; color: var(--text); }
/* Aperçu des questions : une carte par question (pastille numéro + énoncé),
   propositions en chips neutres — aucune n'est marquée comme correcte. */
/* Accordéons de questions (<details> natif) — convention Kwiiz : fond léger au
   survol de l'en-tête (pas de press-scale), chevron qui pivote, bordure accent
   quand ouvert. */
.qp-qlist { display: flex; flex-direction: column; gap: 12px; }
.qp-q {
  background: white;
  border: 1px solid #EEEDF8;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}
.qp-q[open] { border-color: var(--accent); }
.qp-q-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  transition: background 0.12s ease;
}
.qp-q-head::-webkit-details-marker { display: none; }
.qp-q-head:hover { background: rgba(91,108,249,0.05); }
.qp-q-head:active { background: rgba(91,108,249,0.10); }
.qp-q-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--lilac);
  color: var(--accent);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.qp-q-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 15px;
  line-height: 1.5; color: var(--text);
  margin: 0;
  min-width: 0;
}
.qp-q-caret {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-left: auto; margin-top: 3px;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}
.qp-q[open] .qp-q-caret { transform: rotate(180deg); }
.qp-q-body { padding: 10px 18px 18px; }
/* Une proposition PAR LIGNE ; trop longue → ellipsis, texte complet dans le
   tooltip natif (title=). Curseur default : chip informative, pas cliquable. */
.qp-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 0; padding-left: 38px; }
.qp-chips + .qp-chips { margin-top: 8px; }
.qp-chip {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1.5px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.35;
  cursor: default;
}
.qp-chip-muted { color: var(--text-secondary); font-style: italic; }
.qp-chip-alt { background: var(--lilac); border-color: transparent; }
/* Question match : deux colonnes face à face (comme l'UI de jeu). Les chips
   internes perdent leur retrait (porté par le conteneur). */
.qp-match { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; padding-left: 38px; }
/* ⚠️ `min-width: 0` OBLIGATOIRE : un enfant de grille a `min-width: auto`, donc la
   colonne ne peut pas devenir plus étroite que son contenu — et le contenu est en
   `white-space: nowrap` (chips). Résultat sans cette ligne : une définition longue
   élargit sa colonne, le `max-width: 100%` de la chip ne borne plus rien, l'ellipsis
   ne se déclenche jamais et le texte sort de la carte (jusqu'à 426px de dépassement
   sur mobile, bug corrigé le 2026-07-27). Même piège que `minWidth: 0` côté React. */
.qp-match .qp-chips { padding-left: 0; min-width: 0; }
/* Sous 700px, deux colonnes ne laissent plus assez de place à une définition (elle
   se réduirait à trois mots) → les deux listes s'empilent, chacune pleine largeur.
   Elles restent distinguables : la colonne de droite est en chips lilas. */
@media (max-width: 700px) {
  .qp-match { grid-template-columns: 1fr; row-gap: 8px; }
}
.qp-q-hint { font-size: 12.5px; color: var(--text-secondary); font-style: italic; margin: 10px 0 0; padding-left: 38px; }
/* Texte à trous : le texte, un blanc souligné à la place de chaque mot. */
.qp-cloze { margin: 0; padding-left: 38px; font-size: 14px; line-height: 2; color: var(--text); white-space: pre-wrap; overflow-wrap: break-word; }
.qp-gap { display: inline-block; width: 4.5em; height: 1.1em; margin: 0 2px; vertical-align: -0.2em; border-bottom: 2px solid var(--text-secondary); }
.qp-hintline { font-size: 13px; color: var(--text-secondary); margin-top: 14px; }
/* L'auteur d'une expédition publiée par un enseignant (03.10.2026) : sous le
   chapeau, un lien vers sa carte (le même registre que « Proposé par » d'un Kwiiz). */
.qp-exp-author { margin: 10px 0 0; font-size: 14px; color: rgba(238, 241, 255, .78); }
.qp-exp-author a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.qp-preview { margin-bottom: 48px; }
.qp-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qp-related-card {
  display: flex; flex-direction: column;
  background: white;
  border: 1px solid #EEEDF8;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.qp-related-cover { position: relative; height: 96px; flex-shrink: 0; background: #F3F1FB; }
.qp-related-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qp-related-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 24px; letter-spacing: 2px;
}
/* Pastille degré en overlay haut-gauche de la couverture (même registre que les
   pastilles sombres translucides posées sur les covers du dashboard). Partagée
   entre la grille bibliothèque (.qc-degre) et les cartes liées (.qp-related-degre). */
.qp-related-degre,
.qc-degre {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.3px;
}
/* Corps : titre (2 lignes max, clampé) PUIS rangée de badges discipline + PER.
   Hauteur MIN garantie (cartes égales) ; le titre est poussé en haut, les badges
   collés en bas via margin-top:auto → alignement propre même si le titre fait 1
   ou 2 lignes. */
.qp-related-body {
  display: flex; flex-direction: column;
  min-height: 92px;
  padding: 12px 14px 12px;
  box-sizing: border-box;
}
.qp-related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14.5px;
  color: var(--text); line-height: 1.35;
}
/* Badges de la carte : discipline + objectif PER, aux couleurs PER (mêmes que le
   hero du Kwiiz). Centrés sous le titre, poussés en bas de la carte. */
.qp-related-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px;
  margin-top: auto; padding-top: 8px;
}
.qp-related-badge {
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  font-size: 11px; font-weight: 700;
  cursor: default;
  white-space: nowrap;
}
.qp-back { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- PAGE DE CATÉGORIE (/bibliotheque/<discipline>[-<degré>]) ----
   Le hero garde EXACTEMENT le padding de .page-hero (72/60) → mêmes marges que
   la biblio (cohérence). Layout : la colonne TEXTE prend sa largeur naturelle
   (bornée par max-width du lead ~680px) ; la colonne KWIIX prend TOUT l'espace
   restant à droite et y centre le Kwiix (pas collé au bord). */
.qp-cat-hero-inner { display: flex; align-items: stretch; gap: 32px; }
/* La colonne texte est assez large pour que la rangée de degrés (jusqu'à 12
   pills : Tous + 1H..11H) tienne sur UNE ligne ; le lead reste borné à 680px
   pour la lisibilité (max-width propre). Le Kwiix récupère l'espace restant. */
.qp-cat-hero-copy { flex: 0 1 auto; min-width: 0; max-width: 800px; }
.qp-cat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 30px; padding: 0 12px;
  border-radius: var(--radius-pill);
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1px;
}
/* Variante « inline » : la pastille de sigle posée dans le breadcrumb (plus petite,
   collée à droite du nom de discipline, sans marge basse). */
.qp-cat-badge--inline {
  min-width: 0; height: 20px; padding: 0 8px; margin-left: 8px;
  font-size: 11px; letter-spacing: 0.5px; vertical-align: middle;
}
/* Même espacement breadcrumb→H1 que la biblio (.page-hero h1 : margin-top 12px). */
.qp-cat-hero h1 { margin: 12px 0; }
.qp-cat-lead {
  max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); margin: 0;
}

/* Mascotte Kwiix : on RÉUTILISE le composant du héros landing (.lp-coach +
   .lp-bubble + .lp-coach-fig + .lp-coach-shadow) — MÊME markup, MÊME animation,
   MÊME ombre (déjà correcte). `.qp-cat-mascot` n'est QUE le conteneur de
   PLACEMENT : il prend l'espace restant à droite du texte et y centre le coach.
   ⚠️ Ne PAS re-styler le coach ici (zéro duplication) — juste le positionner.
   MASQUÉE sur mobile (< 900px) — cf. media query. */
.qp-cat-mascot {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  min-width: 148px;
}
/* Dans ce contexte, le coach peut être un peu plus grand que dans le héros
   (où il partage la place avec la tablette). */
.qp-cat-mascot .lp-coach { width: clamp(132px, 12vw, 156px); }
/* Les messages catégorie font parfois 2 lignes (« En route pour explorer le
   monde ! ») → on autorise le retour à la ligne (le héros force nowrap). */
.qp-cat-mascot .lp-bubble { white-space: normal; max-width: 210px; }
/* Kwiix + bulle : desktop uniquement (pas de place en dessous). */
@media (max-width: 900px) { .qp-cat-mascot { display: none; } }
/* Pastille de base des pages de catégorie (degré OU discipline) : les deux usages
   partagent la forme, seule la couleur change (neutre vs couleurs PER). */
.qp-cat-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid #E6E4F2;
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.qp-cat-pill:hover { border-color: var(--accent); color: var(--accent); background: #F6F5FF; }

/* ── Rangée des degrés d'une discipline, GROUPÉE PAR CYCLE (2026-07-27) ───────
   Même langage que le filtre de /bibliotheque (.lf-degres) : libellé COURT sous un
   bracket + légende de cycle → « 1ère » n'est jamais ambigu et 10 degrés tiennent
   sur une ligne (« Gymnase 1ère/2ème/3ème » en entier débordait sur 3 lignes).
   ⚠️ Les pastilles restent de VRAIS liens (SEO + filtrage hybride qp-cat-filter.js) ;
   la légende de cycle n'est PAS cliquable (aucune page « cycle » n'existe). */
.qp-cat-degres { margin-top: 22px; }
.qp-cat-degres-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 0 0 8px;
}
.qp-cat-degres-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
/* « Tous » n'a pas de légende sous lui → hauteur réservée pour aligner la rangée */
.qp-cat-deg-all { display: block; padding-bottom: 21px; }
.qp-cat-cycle { display: flex; flex-direction: column; gap: 4px; }
.qp-cat-cycle-row { display: flex; gap: 6px; }
.qp-cat-cycle-row .qp-cat-degre { min-width: 44px; }
/* Légende de cycle = BOUTON de filtre (sélectionne tous les degrés du cycle,
   re-clic = « Tous »). Pas un lien : aucune page « cycle » n'existe côté serveur. */
.qp-cat-cycle-cap {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
  color: #C2C5D6;
  transition: color 0.15s;
}
.qp-cat-cycle-cap:hover,
.qp-cat-cycle-cap:focus-visible,
.qp-cat-cycle-cap.is-active { color: var(--accent); }
.qp-cat-cycle-cap:focus-visible { outline: none; }
.qp-cat-cycle-cap:focus-visible .kwz-bracket-label { text-decoration: underline; }
.qp-cat-cycle-cap:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .qp-cat-cycle-cap:active { transform: none; } }
/* Pill active (degré courant / « Tous ») — filtrage hybride qp-cat-filter.js. */
.qp-cat-degre.is-active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.qp-cat-degre.is-active:hover { background: var(--accent); color: #fff; }
/* ── Section « Explorer une autre discipline » (BAS de page, 2026-07-27) ──────
   Maillage entre pages de catégorie, GROUPÉ PAR DOMAINE PER (même pattern que le
   nuage de disciplines de l'app). Dans le hero, les 19 disciplines publiées
   empilaient 4 lignes de pastilles au-dessus de la grille. Noms COMPLETS : un sigle
   n'évoque rien hors d'une barre de filtre. Couleurs PER par discipline (--od1
   texte/bordure, --od2 fond au survol) → distinctes des degrés (neutres). */
.qp-cat-explore { padding-top: 0; }
.qp-cat-explore-title { font-size: 22px; margin-bottom: 20px; }
/* Multi-colonnes (et non une grille) : les domaines ont des tailles très inégales
   (6 disciplines pour Langues, 2 pour Numérique) → une grille alignait les rangées
   sur le domaine le plus fourni et laissait un grand vide. Le flux multi-colonnes
   les empile sans trou ; chaque domaine reste insécable. */
.qp-cat-domains { columns: 3; column-gap: 28px; }
@media (max-width: 900px) { .qp-cat-domains { columns: 2; } }
@media (max-width: 600px) { .qp-cat-domains { columns: 1; } }
.qp-cat-domain { min-width: 0; break-inside: avoid; margin-bottom: 22px; }
.qp-cat-domain-label {
  display: block; margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-secondary);
}
.qp-cat-domain-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.qp-cat-other {
  border-color: var(--od2, #E6E4F2); color: var(--od1, var(--text));
  white-space: normal;
}
.qp-cat-other:hover {
  border-color: var(--od1, var(--accent)); color: var(--od1, var(--accent));
  background: var(--od2, #F6F5FF);
}
/* Carte masquée par le filtre de degré (JS ET rendu serveur des pages degré). */
.qp-related-card.is-hidden { display: none; }
/* Message quand un degré n'a (temporairement) aucun quiz visible. */
.qp-cat-empty { margin-top: 28px; text-align: center; color: var(--text-secondary); font-size: 15px; }

@media (max-width: 768px) {
  .qp-head { grid-template-columns: 1fr; gap: 22px; }
  .qp-info h1 { font-size: 28px; }
  .qp-actions .btn-primary, .qp-actions .btn-outline { width: 100%; text-align: center; }
  .qp-chips, .qp-q-hint, .qp-match, .qp-cloze { padding-left: 0; }
}

.library-cta {
  margin-top: 56px;
  background: var(--lilac);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.library-cta h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }
.library-cta p { color: var(--text-secondary); margin: 0; }

/* ---- BLOG PAGE ---- */
/* ── Blog : barre de recherche + filtres par catégorie ───────────────────── */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.blog-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}
.blog-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #EEEDF8;
  background: #fff;
  padding: 0 44px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-search input::placeholder { color: var(--text-secondary); }
.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px rgba(91,108,249,0.15);
}
.blog-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.blog-search-clear:hover { background: #F3F4F6; }
.blog-search.has-value .blog-search-clear { display: flex; }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #EEEDF8;
  background: #fff;
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.blog-filter-pill:hover { border-color: rgba(91,108,249,0.35); }
.blog-filter-pill.active {
  border-color: transparent;
  color: #fff;
}
.blog-filter-pill[data-filter="science"].active    { background: #2D7DD2; }
.blog-filter-pill[data-filter="pratique"].active   { background: var(--accent2); }
.blog-filter-pill[data-filter="pedagogie"].active  { background: #9A7500; }
.blog-filter-pill[data-filter="toutes"].active     { background: var(--accent); }

.blog-results-count {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.blog-empty {
  display: none;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-secondary);
}
.blog-empty.visible { display: block; }
.blog-empty p { font-size: 16px; margin-top: 8px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.blog-card.is-hidden { display: none; }

@media (max-width: 600px) {
  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 22px;
  }
  /* En colonne, flex-grow étirait la barre de recherche sur toute la
     hauteur restante (icône loupe seule dans un grand vide). On la fige. */
  .blog-search { flex: 0 0 auto; width: 100%; min-width: 0; }
  /* Filtres en grille 2×2 (Toutes/Pratique · Science/Pédagogie) :
     plein largeur, aucun débordement horizontal. */
  .blog-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .blog-filter-pill { justify-content: center; }
}

.blog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #EEEDF8;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  color: var(--text);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(91,108,249,0.12);
}

/* Tints de couverture des cartes = MÊMES couleurs que les catégories d'article
   (continuité carte → article ; jamais d'hex en dur dans le HTML) */
.blog-card-img--pratique  { background: var(--mint); }
.blog-card-img--science   { background: var(--blue); }
.blog-card-img--pedagogie { background: var(--yellow); }
.blog-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.blog-card-img img {
  width: auto;
  height: 108px;
  max-width: 80%;
  object-fit: contain;
}

.blog-card-body { padding: 24px; }
.blog-card-body h3 { font-size: 17px; margin: 10px 0 8px; color: var(--text); line-height: 1.4; }
.blog-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }

.blog-tag {
  display: inline-flex;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-science { background: var(--blue); color: #2D7DD2; }
.tag-pratique { background: var(--mint); color: var(--accent2); }
.tag-pedagogie { background: var(--yellow); color: #9A7500; }

.blog-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 4px;
  align-items: center;
}
.blog-meta-sep { opacity: 0.4; }

/* ---- ARTICLES LIÉS (fin d'article, maillage interne, injecté par related.js) ---- */
.related-section {
  padding: 8px 0 64px;
  border-top: 1px solid #EEEDF8;
}
.related-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 26px;
  color: var(--text);
  margin: 40px 0 24px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #EEEDF8;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  color: var(--text);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(91,108,249,0.12);
}
.related-card-img--pratique  { background: var(--mint); }
.related-card-img--science   { background: var(--blue); }
.related-card-img--pedagogie { background: var(--yellow); }
.related-card-img {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.related-card-img img { width: auto; height: 80px; max-width: 78%; object-fit: contain; }
.related-card-body { padding: 18px 20px 22px; }
.related-card-body h3 { font-size: 15px; margin: 9px 0 6px; color: var(--text); line-height: 1.4; }
.related-card-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

@media (max-width: 860px) {
  .related-grid { grid-template-columns: 1fr; gap: 16px; max-width: 480px; margin: 0 auto; }
}

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
}

.contact-info h2 { font-size: 32px; margin-bottom: 16px; }
.contact-info > p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--bg); border-radius: var(--radius-sm); flex-shrink: 0; color: var(--text-secondary); }
.contact-item-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-item-value { font-size: 15px; color: var(--text); font-weight: 500; }

/* Titres de blocs contact : balise h2 (hiérarchie h1→h2 correcte pour le SEO)
   mais rendu « titre de carte » Jakarta — pas le registre Fredoka des h2 de page */
.contact-idea-block h2 { display: flex; align-items: center; gap: 8px; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }

/* Bloc établissement */
.contact-school-block {
  margin-top: 24px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.contact-school-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: white; }
.contact-school-header svg { color: var(--accent2); flex-shrink: 0; }
.contact-school-header h2 { font-size: 1rem; font-weight: 700; color: white; margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }
.contact-school-block p { color: #9B9BAC; font-size: 14px; line-height: 1.65; margin-bottom: 16px; }
.contact-school-block strong { color: #C8C8D4; }
.contact-school-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: fit-content; margin: 0 auto;
  background: var(--accent2); color: white; border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: 13px; font-weight: 600;
  transition: opacity 0.15s;
}
.contact-school-cta:hover { opacity: 0.9; }

.contact-idea-block {
  margin-top: 24px;
  background: var(--lilac);
  border-radius: var(--radius-md);
  padding: 24px;
}
.contact-idea-block h2 { font-weight: 700; margin-bottom: 8px; color: var(--text); font-size: 1.05rem; }
.contact-idea-block p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; line-height: 1.6; }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid #EEEDF8;
}
.contact-form-wrap h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 28px; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1.2; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }

/* Le popup d'un <select> est rendu par Blink (Windows/Linux) : sans padding,
   l'option la plus longue COLLE au bord droit (vecu 20.08 : « Service cantonal,
   direction generale »). macOS rend un popup natif et ignore la regle. */
.form-select option { padding: 6px 14px 6px 8px; }
/* ═══ EYEBROW — COMPOSANT UNIQUE DES PAGES SECONDAIRES (20.08.2026) ═══════
   La pastille au-dessus d'un titre (« TARIFS », « NOTRE APPROCHE »…).
   ⚠️ Toujours un <span> (ou <div>), JAMAIS un <p> : posée en <p>, elle se
   faisait écraser par les règles de paragraphe des sections (.ke-head p →
   pastille 17px COLLÉE au titre sur /etablissement, règles p → 16.3px sur
   /qui-sommes-nous et /pedagogie) — trois pages, trois rendus, le bug qu'on ne
   voit qu'en les comparant. Une seule définition ICI ; les pages migrées n'en
   redéclarent jamais une locale (contrôle lint-landing). Fond sombre :
   ajouter .kwz-eyebrow-dark. */
.kwz-eyebrow { display:inline-flex; align-items:center; gap:8px;
  background:rgba(91,108,249,0.10); color:var(--accent-deep);
  font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:12px;
  padding:6px 14px; border-radius:99px; text-transform:uppercase;
  letter-spacing:0.08em; margin:0 0 16px; }
.kwz-eyebrow-dark { background:rgba(255,255,255,.10); color:#fff; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid #E0DEF0;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  /* ⚠️ 16px MINIMUM (audit mobile 14.08) : sous 16, iOS Safari ZOOME au focus
     et ne dézoome jamais — sur un formulaire de contact c'est le pire endroit.
     Même règle que l'app (docs/responsive-patterns.md § zoom iOS). */
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { min-height: 140px; resize: vertical; }

.form-submit {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.15s, transform 0.15s;
  width: 100%;
}
.form-submit:hover { opacity: 0.9; transform: scale(1.01); }

.form-success {
  display: none;
  margin-top: 16px;
  background: var(--mint);
  color: var(--accent2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}
.form-error {
  display: none;
  margin-top: 16px;
  background: rgba(220,38,38,.08);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}

/* ═══ FAQ — COMPOSANT UNIQUE DU SITE ═════════════════════════════════════════
   UNE seule UI de questionnaire sur kwiiz.fr. Toute page qui pose des questions
   utilise CE balisage, sans exception et sans variante locale :

     <div class="faq-list">
       <details class="faq-item">
         <summary>La question<span class="faq-icon"><svg…chevron…></span></summary>
         <p>La réponse.</p>
       </details>
       … autant de <details> que nécessaire …
     </div>

   + `<script src="faq-smooth.js" defer></script>` : sans lui la FAQ FONCTIONNE
   (le `<details>` natif reste replié/dépliable, y compris sans JS), elle est
   seulement sèche. Le script anime l'ouverture et la fermeture, et n'autorise
   qu'une question ouverte à la fois PAR LISTE.
   ⚠️ `scripts/lint-landing.mjs` vérifie que toute page portant `.faq-list`
   charge bien ce script — une FAQ muette ne part plus en production.

   Registre : UNE carte blanche conteneur, questions séparées par des filets de
   1px, barre d'accent et fond teinté sur la question ouverte, chevron en
   pastille. Pendant côté app : `client/src/components/FaqAccordion.jsx` —
   ⚠️ MÊME registre, toute évolution se fait des DEUX côtés.
   ⚠️ Ces règles vivaient en double : une version sèche ici et une version
   enrichie sous `.kv2` dans v2.css, réservée à la home. Les trois autres FAQ du
   site (contact, établissement, préversion) restaient donc sans repères ni
   animation. Le bloc `.kv2` a été SUPPRIMÉ — ne pas le recréer, tout se passe
   ici. */
.faq-list {
  background: white;
  border: 1.5px solid #EEEDF8;
  border-radius: var(--radius-md);
  overflow: hidden;
  --faq-chip: #F3F3F8;   /* fond de la pastille du chevron, au repos */
}
.faq-item { position: relative; border-top: 1px solid #EEEDF8; transition: background .18s ease; }
.faq-item:first-child { border-top: none; }
/* Barre d'accent sur la question OUVERTE : on retrouve d'un coup d'œil où l'on
   en est dans une longue liste. */
.faq-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: center;
  transition: transform .22s ease; pointer-events: none;
}
.faq-item[open]::before { transform: scaleY(1); }
.faq-item[open] { background: rgba(91, 108, 249, 0.035); }
/* Fermeture EN COURS : les repères s'éteignent PENDANT que la boîte se referme,
   et non après. Sans ce drapeau ils s'accrochent à `[open]`, qui ne tombe qu'à
   la fin de l'animation — ce qui ajoutait un temps de plus au geste. */
.faq-item[data-closing="1"]::before { transform: scaleY(0); }
.faq-item[data-closing="1"] { background: transparent; }
.faq-item[data-closing="1"] > summary { color: var(--text); }
.faq-item[data-closing="1"] .faq-icon { background: var(--faq-chip); color: var(--text-secondary); transform: none; }
.faq-item summary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  transition: background .12s ease, color .18s ease;
}
.faq-item summary:hover  { background: rgba(91, 108, 249, 0.05); }
.faq-item summary:active { background: rgba(91, 108, 249, 0.10); }
.faq-item summary::-webkit-details-marker { display: none; }
/* `--accent-deep` et non `--accent` : du texte violet en petite taille n'atteint
   pas le contraste AA avec le violet clair (règle du projet, theme.js). */
.faq-item[open] > summary { color: var(--accent-deep); }
/* Le chevron gagne une pastille : cible lisible, et repère de plus quand la
   question est ouverte. */
.faq-icon {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px;
  background: var(--faq-chip); color: var(--text-secondary); flex-shrink: 0;
  transition: transform .22s ease, background .18s ease, color .18s ease;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); background: rgba(91, 108, 249, 0.14); color: var(--accent-deep); }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--text-secondary); font-size: 14.5px; line-height: 1.65; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* ---- Utilitaires mobile ---- */
.hide-mobile { /* visible par défaut */ }
.show-mobile { display: none; }

/* ════════════════════════════════════════════════════════════════════════════
   ROADMAP PAGE — parcours horizontal « Livré → Bientôt → Vision »
   3 voies qui se lisent de gauche à droite. Un Kwiix sobre par voie.
   ════════════════════════════════════════════════════════════════════════════ */

.roadmap {
  --rm-done:  var(--accent2);   /* vert  — livré */
  --rm-soon:  var(--accent);    /* violet — bientôt */
  --rm-later: #9B8CFF;          /* lilas — vision */
  --rm-card:  #ECEAF6;          /* bordure carte au repos */
}

/* ── Repères du hero (X livré · Y en chantier · Z en vision) ─────────────────── */
.roadmap-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.roadmap-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 11px 18px;
  background: white;
  border: 1.5px solid color-mix(in srgb, var(--rm-color, var(--accent)) 30%, var(--rm-card));
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(45,45,58,0.05);
}
.roadmap-stat.is-done  { --rm-color: var(--rm-done); }
.roadmap-stat.is-soon  { --rm-color: var(--rm-soon); }
.roadmap-stat.is-later { --rm-color: var(--rm-later); }
.roadmap-stat b {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--rm-color, var(--accent));
}
.roadmap-stat span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

/* ── Une voie = une phase (Livré / Bientôt / Vision) ─────────────────────────── */
.rm-lane {
  --rm-color: var(--rm-done);
  padding: 0;
}
.rm-lane + .rm-lane { margin-top: clamp(52px, 7vw, 84px); }
.rm-lane.is-done  { --rm-color: var(--rm-done); }
.rm-lane.is-soon  { --rm-color: var(--rm-soon); }
.rm-lane.is-later { --rm-color: var(--rm-later); }

/* En-tête de voie : Kwiix + libellé + phrase de contexte */
.rm-lane-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.rm-lane-bot {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(45,45,58,0.14));
}
.rm-lane-titles { min-width: 0; }
.rm-lane-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-color);
  margin-bottom: 5px;
}
.rm-lane-kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--rm-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rm-color) 18%, transparent);
}
.rm-lane-head h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  line-height: 1.15;
  color: var(--text);
}
.rm-lane-head p {
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 560px;
}

/* ── Piliers livrés : rail horizontal de grandes cartes ──────────────────────── */
.rm-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.rm-pillar {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1.5px solid var(--rm-card);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rm-pillar:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(45,45,58,0.09);
  border-color: color-mix(in srgb, var(--rm-color) 45%, var(--rm-card));
}
.rm-pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--rm-color);
  background: color-mix(in srgb, var(--rm-color) 12%, white);
}
.rm-pillar-icon svg { width: 24px; height: 24px; }
.rm-pillar h3 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.3;
}
.rm-pillar p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Grille exhaustive « tout ce qui est déjà en ligne » (check vert) ─────────── */
.rm-shipped {
  margin-top: 30px;
  padding: 26px clamp(18px, 3vw, 30px);
  background: color-mix(in srgb, var(--rm-done) 5%, white);
  border: 1.5px solid color-mix(in srgb, var(--rm-done) 20%, var(--rm-card));
  border-radius: var(--radius-lg);
}
.rm-shipped-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rm-done) 65%, var(--text));
  margin-bottom: 18px;
}
.rm-shipped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px 26px;
}
.rm-shipped-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
}
.rm-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0;
  border-radius: var(--radius-pill);
  background: var(--rm-done);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--rm-done) 40%, transparent);
}
.rm-check svg { width: 14px; height: 14px; }
.rm-shipped-item b {
  font-weight: 600;
  display: block;
}
.rm-shipped-item span {
  color: var(--text-secondary);
  font-size: 13px;
}

/* ── Cartes « Bientôt » / « Vision » — horizontales, état réel ────────────────── */
.rm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.rm-card {
  display: flex;
  gap: 16px;
  background: white;
  border: 1.5px solid var(--rm-card);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.rm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(45,45,58,0.09);
  border-color: color-mix(in srgb, var(--rm-color) 45%, var(--rm-card));
}
.rm-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rm-color);
  background: color-mix(in srgb, var(--rm-color) 12%, white);
}
.rm-card-icon svg { width: 22px; height: 22px; }
.rm-card-body { min-width: 0; }
.rm-card h3 {
  font-size: 16.5px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}
.rm-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}
.rm-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rm-color);
  background: color-mix(in srgb, var(--rm-color) 10%, white);
  border: 1px solid color-mix(in srgb, var(--rm-color) 28%, transparent);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}

/* ── Point de départ + note de transparence ──────────────────────────────────── */
.rm-origin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(48px, 7vw, 72px);
  padding-top: 34px;
  border-top: 1.5px dashed var(--border);
  text-align: center;
  flex-wrap: wrap;
}
.rm-origin img { width: 40px; height: 40px; }
.rm-origin-text { text-align: left; }
.rm-origin-text b {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  display: block;
}
.rm-origin-text span { font-size: 13px; color: var(--text-secondary); }

.roadmap-note {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.roadmap-note a { color: var(--accent); font-weight: 500; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rm-lane-head { gap: 14px; }
  .rm-lane-bot { width: 52px; height: 52px; }
  .rm-shipped-grid { grid-template-columns: 1fr; }
  .rm-card { flex-direction: column; gap: 12px; }
}

/* ---- RESPONSIVE ---- */
/* Nav — HAMBURGER jusqu'à 799px : la nav desktop même compacte a besoin
   d'~820px réels (l'iPad mini portrait 768px coupait « S'inscrire »).
   800–999px = nav desktop compacte (bloc plus bas) ; ≥1000px = pleine taille. */
@media (max-width: 799px) {
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-toggle { display: block; }
  /* Connecté : pill « Mon espace » à côté du burger (cf. bloc .nav-space-mobile) */
  .nav-space-mobile {
    display: inline-flex !important;
    align-items: center;
    margin-left: auto;
    background: var(--accent2);
    color: white !important;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    white-space: nowrap;
    transition: transform 0.1s ease, opacity 0.15s ease;
  }
  /* La pill prend le margin-left:auto → le burger revient à un simple écart */
  .nav-space-mobile + .nav-toggle { margin-left: 6px; }
}

@media (max-width: 768px) {
  /* Utilitaires */
  .hide-mobile { display: none !important; }
  .show-mobile { display: inline !important; }

  /* CTA final (partagé — cta.js) */
  .section-cta h2 { font-size: 2rem; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  /* 2 colonnes (demande Quentin 20.08) : Decouvrir a gauche sur deux rangees,
     Kwiiz en haut a droite, Se connecter dessous.
     1 colonne faisait defiler tout le footer ; 3 colonnes de ~87px cassaient
     chaque lien en deux lignes (audit 14.08). */
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-nav-col:first-child { grid-row: 1 / span 2; }
  /* En-tête d'article : 60px de bandeau coloré avant le 1er paragraphe (34
     pages) — réduit sur téléphone (audit 14.08). */
  .article-header { padding: 32px 0 28px; }
  .footer-bottom { padding: 20px 0; flex-direction: column; align-items: flex-start; }

  /* Contact (pages secondaires) */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Pages légales/secondaires — :where() garde la spécificité d'un sélecteur
     élément ; sans l'exclusion, .lp-hero (padding porté par son inner) cumulait
     64px de plus en mobile */
  section:where(:not(.lp-hero)) { padding: 64px 0; }
  /* ── MARGE COMMUNE nav → premier contenu : ~28px sur TOUTES les pages ──
     Mesuré avant (audit Quentin 14.08) : 12px sur la home, 70 sur parents,
     91-103 ailleurs — aucune cohérence. La PREMIÈRE section d'une page perd
     le padding de rythme inter-sections (64) au profit de la marge commune ;
     la home fait pareil dans v2.css (16 + inner 12 = 28). Le bandeau coloré
     .page-hero garde sa propre anatomie, réduite juste en dessous. */
  main > section:first-of-type:not(.page-hero), .lp-hero { padding-top: 28px; }
  /* L'inner du lp-hero (52px) et les heros à styles DANS la page (et/qsn, 56px,
     chargés après cette feuille) re-gonflaient l'écart : on les cale aussi.
     Cible visuelle commune ≈ 40px de blanc sous la nav, toutes pages. */
  .lp-hero .lp-hero-inner { padding-top: 0; }
  main .et-hero, main .qsn-hero { padding-top: 12px; }
  .section { padding: 56px 0; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 32px; }
  .library-cta { flex-direction: column; }
  .section-title { font-size: 1.8rem; }
}

/* ── LA NAVBAR SE COMPRIME EN DEUX CRANS ─────────────────────────────────────
   Sous 800px → hamburger (bloc « Nav » plus haut) : à 768px même la compacte
   coupait le CTA. Au-dessus de 1199px → barre pleine taille (15px).
   Entre les deux, deux paliers mesurés, réglés le 2026-08-12 en passant de 7 à
   8 liens (ajout d'« À propos »).
   ⚠️ MÉTHODE — ces valeurs ne s'estiment pas à l'œil : on mesure, dans une
   iframe à la largeur voulue, l'écart entre le bord droit du DERNIER lien et le
   bord gauche du bloc « Se connecter / Démarrer ». C'est cet écart qui décide,
   pas le rendu à 1440px où tout tient toujours.
   ⚠️ 8 liens est le PLAFOND : un 9ᵉ se paie en en retirant un autre (c'est ce
   qui a été fait le 02.08, « Accueil » → « Tarifs »), ou impose de remesurer. */

/* Cran INTERMÉDIAIRE 1000-1199px — AJOUTÉ le 2026-08-12.
   Il comble un trou qui existait AVANT le 8ᵉ lien : à 1000-1080px la barre
   repassait en 15px alors que la place manquait, et la PAGE défilait
   horizontalement (mesuré à 7 liens : 63px de débordement à 1002px de large).
   Personne ne l'avait vu parce qu'un écran de 1024px tombe juste au-dessus du
   point de bascule, et que nos machines sont plus larges.
   Marge restante après réglage : 62px à 1000px, 170px à 1199px. */
@media (min-width: 1000px) and (max-width: 1209px) {
  .nav-links { gap: 0; margin-left: 12px; }
  .nav-link { font-size: 13px; padding: 6px 8px; }
  .nav-right { gap: 4px; }
  .nav-signin { font-size: 13.5px; padding: 6px 7px; }
  .nav-cta { padding: 9px 15px; font-size: 13.5px; }
  .logo-img { height: 35px; }
  .nav .container { padding: 0 16px; }
  /* Même arbitrage qu'en bande compacte : connecté, le pseudo et la pastille de
     niveau cèdent la place — l'avatar suffit, le détail vit dans le menu. */
  .nav-user-name, .nav-level-pill { display: none; }
}

/* Cran COMPACT 800-999px — iPad portrait (810/834px) et petites fenêtres.
   Resserré le 2026-08-12 pour absorber le 8ᵉ lien : sans ça la barre débordait
   de 38px à 800px. La taille de police reste à 12px et la hauteur de cible à
   31px — c'est le padding horizontal et les marges qui ont cédé, pas la
   lisibilité ni le confort du doigt.
   Marge restante : 0px à 800px (elles se touchent, sans se chevaucher), 28px à
   834px, 94px à 900px. */
@media (min-width: 800px) and (max-width: 999px) {
  .nav-links { display: flex; gap: 0; margin-left: 4px; }
  .nav-link { font-size: 12px; padding: 6px 5px; }
  .nav-right { display: flex; gap: 4px; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  /* CTA et bouton inscription compacts */
  .nav-signin { font-size: 13px; padding: 6px 4px; }
  .nav-cta { padding: 8px 10px; font-size: 12.5px; }
  /* Connecté : le CTA « Espace enseignant » + le bouton avatar ne tiennent pas
     tous deux au complet — le pseudo et la pastille de niveau cèdent la place
     (l'avatar + chevron suffisent, le détail vit dans le menu déroulant). */
  .nav-user-name, .nav-level-pill { display: none; }
  /* Logo un peu plus petit */
  .logo-img { height: 32px; }
  /* Container : moins de padding horizontal pour gagner de la place */
  .nav .container { padding: 0 10px; }
}

/* ── Tablette — iPad mini portrait (601px–768px) ─────────────────────────── */
@media (min-width: 601px) and (max-width: 768px) {
  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { order: -1; }
  .contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .contact-items { display: none; }
  .contact-idea-block, .contact-school-block { margin-top: 0; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .logo-img { height: 34px; }
}

/* ============================================
   ARTICLE PAGES
   ============================================ */

.article-header {
  padding: 60px 0 56px;
}
.article-header--science  { background: var(--blue); }
.article-header--pratique { background: var(--mint); }
.article-header--pedagogie { background: var(--yellow); }

.article-header .container {
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-tag {
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.article-header--science  .article-tag { background: white; color: #2D7DD2; }
.article-header--pratique .article-tag { background: white; color: var(--accent2); }
.article-header--pedagogie .article-tag { background: white; color: #9A7500; }

.article-date, .article-read {
  font-size: 14px;
  color: var(--text-secondary);
}

.article-header h1 {
  font-size: 48px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 680px;
}

.lead {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
}

/* Reading column */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 88px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  transition: color 0.15s;
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }

.article-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 14px;
  line-height: 1.25;
}

/* Sous-titre d'un article. Sans cette règle, le h3 gardait les marges nulles
   du style global : la liste ou le paragraphe suivant se collait au titre
   (5 articles touchés, constaté le 17.10.2026). `>` : un h3 posé dans une
   carte maison d'un article garde son propre style. */
.article-body > h3 {
  font-size: 20px;
  color: var(--text);
  margin: 34px 0 10px;
  line-height: 1.3;
}
.article-body > h2 + h3 { margin-top: 18px; }

.article-body p {
  font-size: 17px;
  color: #3D3D4E;
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body em { font-style: italic; }
.article-body strong { font-weight: 600; color: var(--text); }

/* Liens DANS le corps d'un article. Le reset global `a { color: inherit }` les
   rendait STRICTEMENT indistinguables du texte : ni couleur, ni soulignement,
   ni graisse — donc invisibles, sur les 44 articles du blog. `--accent-deep` et
   non `--accent` : à cette taille, l'accent ne passe pas le seuil AA. */
.article-body p a,
.article-body ul li a,
.article-body ol li a,
.article-body figcaption a,
.article-body .article-callout a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness .12s ease;
}
.article-body p a:hover,
.article-body ul li a:hover,
.article-body ol li a:hover,
.article-body figcaption a:hover,
.article-body .article-callout a:hover { text-decoration-thickness: 2px; }

.article-body ul {
  margin: 4px 0 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body ul li {
  font-size: 17px;
  color: #3D3D4E;
  line-height: 1.7;
  padding-left: 22px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Liste numérotée NUE (sans classe) : mêmes registres que la liste à puces.
   Sans padding, les numéros sortaient de la colonne à gauche. Les listes
   d'étapes maison (`ol.xp-steps`, `ol.tt-steps`…) gardent leur style. */
.article-body ol:not([class]) {
  margin: 4px 0 20px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.article-body ol:not([class]) li {
  font-size: 17px;
  color: #3D3D4E;
  line-height: 1.7;
  padding-left: 4px;
}
.article-body ol:not([class]) li::marker {
  color: var(--accent-deep);
  font-weight: 700;
}

.article-callout {
  background: var(--lilac);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.article-callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.article-source {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #EEEDF8;
  line-height: 1.6;
}

.article-cta {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}
.article-cta h3 {
  font-size: 26px;
  color: white;
  margin-bottom: 10px;
}
.article-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ── Cover illustration (dans le header) ─────────────────────────────────── */
.article-cover {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 0 24px;
}
.article-cover-inner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #EEEDF8;
  box-shadow: 0 16px 44px rgba(45,45,58,0.12);
}
/* Halo décoratif derrière l'illustration — reprend la couleur du tag en fond de carte blanche */
.article-cover-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cover-tint, var(--lilac));
  opacity: 0.5;
  -webkit-mask: radial-gradient(closest-side, #000 60%, transparent 100%);
          mask: radial-gradient(closest-side, #000 60%, transparent 100%);
}
.article-cover-inner img {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 240px;
  object-fit: contain;
}

/* ── Figure illustrative entre deux sections ─────────────────────────────── */
.article-figure {
  margin: 40px 0;
  text-align: center;
}
.article-figure-media {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(45,45,58,0.08);
}
.article-figure-media--science  { background: var(--blue); }
.article-figure-media--pratique { background: var(--mint); }
.article-figure-media--pedagogie { background: var(--yellow); }
.article-figure-media--lilac    { background: var(--lilac); }
.article-figure-media img {
  width: 100%;
  max-width: 340px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
/* Capture d'écran DANS un article : pleine largeur de la colonne de texte.
   `.article-figure-media` encadre une ILLUSTRATION et plafonne l'image à
   340×200 — une capture d'interface y serait illisible. On réutilise en
   revanche `.article-figure` pour la marge et la légende. */
.article-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px -12px rgba(45,45,58,.30), 0 2px 6px rgba(45,45,58,.06);
}
.article-figure figcaption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ── Mockup : carte-question média — fac-similé FIDÈLE de la vraie UI élève
   (MediaPrompt.jsx + AnswerGrid.jsx), non interactif. Même fond de scène gris,
   même pastille play violette, même barre de progression, mêmes 4 couleurs
   pleines de réponse que le jeu réel. ─────────────────────────────────────── */
.quiz-mockup {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid #EEEDF8;
  background: #fff;
  box-shadow: 0 16px 48px rgba(45,45,58,0.10);
  overflow: hidden;
}
.quiz-mockup-stage {
  position: relative;
  background: #fff;
  padding: 28px 24px 20px;
  text-align: center;
}
.quiz-mockup-prompt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 18px;
}
.quiz-mockup-player {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.quiz-mockup-player img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.quiz-mockup-play {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.quiz-mockup-play svg { margin-left: 3px; }
.quiz-mockup-seekbar {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 5px;
  border-radius: 999px;
  background: rgba(91,108,249,0.18);
  margin: 12px auto 0;
}
.quiz-mockup-seekbar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 32%;
  border-radius: 999px;
  background: var(--accent);
}
.quiz-mockup-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
  background: #fff;
}
.quiz-mockup-answer {
  border-radius: var(--radius-md);
  border: none;
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}
.quiz-mockup-answer--red    { background: #EF4444; }
.quiz-mockup-answer--blue   { background: #3B82F6; }
.quiz-mockup-answer--green  { background: #22C55E; }
.quiz-mockup-answer--yellow { background: #EAB308; }
.quiz-mockup-answer.is-correct {
  transform: scale(1.03);
}
.quiz-mockup-answer--red.is-correct    { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #EF4444; }
.quiz-mockup-answer--blue.is-correct   { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #3B82F6; }
.quiz-mockup-answer--green.is-correct  { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #22C55E; }
.quiz-mockup-answer--yellow.is-correct { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #EAB308; }
.quiz-mockup-caption {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 20px 18px;
  font-style: italic;
}

/* ── Screenshot RÉEL du produit (capture d'écran, pas un fac-similé) ─────────
   À utiliser quand on montre un vrai écran Kwiiz (bibliothèque, studio Kwiix,
   éditeur…) plutôt qu'une reconstitution CSS. Cadre navigateur discret +
   ombre marquée pour détacher la capture du fond de page. ─────────────────── */
.article-screenshot {
  margin: 36px 0;
  text-align: center;
}
.article-screenshot-frame {
  border-radius: var(--radius-lg);
  border: 1.5px solid #EEEDF8;
  background: #fff;
  box-shadow: 0 20px 56px rgba(45,45,58,0.14);
  overflow: hidden;
}
.article-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.article-screenshot figcaption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 14px;
  font-style: italic;
  line-height: 1.5;
}

/* ── Mockup : bandeau d'étoiles / gamification ───────────────────────────── */
.stars-mockup {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #FFF3C0 0%, #FFE9B3 100%);
  padding: 32px 24px;
  text-align: center;
}
.stars-mockup-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.stars-mockup-row svg { filter: drop-shadow(0 4px 8px rgba(154,117,0,0.25)); }
.stars-mockup-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #7A5C00;
}
.stars-mockup-sub {
  font-size: 14px;
  color: #9A7500;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .article-cover-inner { min-height: 150px; padding: 22px 18px; }
  .article-cover-inner img { max-height: 170px; }
  .quiz-mockup-answers { grid-template-columns: 1fr; }
  .article-figure-media { padding: 24px 18px; }
}

/* Progress bar — reading indicator */
.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 99;
  transition: width 0.1s linear;
  width: 0%;
}

@media (max-width: 768px) {
  .article-header h1 { font-size: 32px; }
  .lead { font-size: 17px; }
  .article-body h2 { font-size: 22px; }
  .article-body p, .article-body ul li, .article-body ol:not([class]) li { font-size: 16px; }
  .article-body > h3 { font-size: 18px; margin-top: 28px; }
  .article-cta { padding: 28px 20px; }
  .article-cta h3 { font-size: 22px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   PARCOURS VERTICAL GAMIFIÉ — rail à droite + Kwiix qui suit le scroll (desktop)
   Injecté par progress-rail.js. Masqué en tactile / < 1100px / faible hauteur.
   ════════════════════════════════════════════════════════════════════════════ */
.lp-rail {
  position: fixed; top: 50%; right: 30px; transform: translateY(-50%);
  height: min(58vh, 460px); width: 60px; z-index: 60;
  --rail-c: var(--accent);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.lp-rail.is-ready { opacity: 1; }
.lp-rail > * { pointer-events: auto; }

/* La ligne verticale (piste) */
.lp-rail-line {
  position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 3px; border-radius: 999px; background: rgba(45,45,58,.12); overflow: hidden;
  transition: background .3s ease;
}
/* Sur un fond NON CLAIR (sombre OU coloré, ex. violet du CTA) : ligne éclaircie. */
.lp-rail.on-dark .lp-rail-line { background: rgba(255,255,255,.28); }
.lp-rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--accent), var(--violet2) 45%, var(--accent2));
  border-radius: 999px; transition: height .18s ease-out, background .3s ease;
}
/* Le fill (parcouru) commence par du violet = COULEUR du fond CTA → invisible.
   Sur fond non clair, on le rend BLANC : parfaitement visible sur violet/sombre. */
.lp-rail.on-dark .lp-rail-fill { background: #fff; }

/* Stations (points) */
.lp-rail-dot {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border: none; background: none; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lp-rail-dotcore {
  width: 11px; height: 11px; border-radius: 50%;
  background: #fff; border: 2.5px solid rgba(45,45,58,.28);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s, background .25s, box-shadow .25s;
}
/* Sur fond sombre : points non atteints = bordure claire (restent visibles) */
.lp-rail.on-dark .lp-rail-dot:not(.is-active):not(.is-done) .lp-rail-dotcore {
  background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.5);
}
.lp-rail-dot.is-done .lp-rail-dotcore { background: var(--c); border-color: var(--c); }
.lp-rail-dot.is-active .lp-rail-dotcore {
  background: var(--c); border-color: var(--c); transform: scale(1.5);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent);
}
/* Sur fond non clair : ANNEAU BLANC autour des points colorés (done + actif) →
   un point violet reste visible même sur le fond violet du CTA. */
.lp-rail.on-dark .lp-rail-dot.is-done .lp-rail-dotcore { border-color: #fff; }
.lp-rail.on-dark .lp-rail-dot.is-active .lp-rail-dotcore {
  border-color: #fff;
  box-shadow: 0 0 0 5px rgba(255,255,255,.25);
}
/* Libellé de la station : apparaît (glisse depuis la droite) quand active/survolée */
.lp-rail-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px;
  color: #fff; background: var(--c); padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.lp-rail-label::after {
  content: ''; position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-left-color: var(--c);
}
/* Étiquette TRANSITOIRE : visible ~2s quand on ARRIVE à une station
   (classe .is-announce posée par le JS), puis s'efface — sinon elle chevauche
   le contenu proche du rail (ex. la tablette du héros). Toujours au survol. */
.lp-rail.is-announce .lp-rail-dot.is-active .lp-rail-label,
.lp-rail-dot:hover .lp-rail-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Le Kwiix voyageur qui descend le long du rail (plus grand + drapeau sur la tête) */
.lp-rail-kwiix {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 62px; height: 62px; z-index: 2;
  transition: top .18s ease-out;
  display: flex; align-items: flex-end; justify-content: center;
}
/* Kwiix nu (pas de fond ni bordure) — ressort via un drop-shadow qui suit sa forme */
.lp-rail-kwiix img {
  width: 58px; height: 58px; display: block;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.4)) drop-shadow(0 0 3px rgba(0,0,0,.25));
  animation: lp-rail-bob 2.4s ease-in-out infinite;
}
.lp-rail-kwiix-shadow {
  position: absolute; bottom: -4px; left: 50%; width: 34px; height: 6px; margin-left: -17px;
  background: rgba(0,0,0,.22); border-radius: 50%; filter: blur(3px);
  animation: lp-rail-bob-shadow 2.4s ease-in-out infinite;
}
@keyframes lp-rail-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes lp-rail-bob-shadow { 0%,100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(.7); opacity: .28; } }

/* Masquer sous 1100px (le JS ne l'injecte déjà pas, ceinture + bretelles) et si trop court */
@media (max-width: 1100px) { .lp-rail { display: none; } }
@media (max-height: 560px) { .lp-rail { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .lp-rail-kwiix img, .lp-rail-kwiix-shadow { animation: none !important; }
}

/* ─── Anneau violet au survol/focus + press sur TOUS les CTA de la landing ────
   Cohérence avec le dashboard (.kwz-ring / PrimaryCTA). On utilise `outline`
   (pas box-shadow) → ça N'ÉCRASE PAS les ombres colorées existantes des CTA et
   ce n'est pas rogné par l'overflow d'un parent. Léger enfoncement au clic.
   ⚠️ Ce bloc DOIT rester en FIN de fichier : plusieurs boutons posent leur
   propre `transform` au :hover (scale 1.02…) — pendant le clic, :hover et
   :active matchent à spécificité égale, donc seul l'ordre de déclaration
   permet au press scale(0.97) de gagner. */
.lp-cta, .btn-primary, .nav-cta, .nav-dashboard-btn,
.quiz-launch-btn, .form-submit, .contact-school-cta, .btn-outline, .lp-plan-cta {
  outline: 2.5px solid transparent; outline-offset: 0;
  transition: outline-color .16s ease, transform .1s ease, box-shadow .16s ease, background .15s ease, opacity .15s ease;
}
.lp-cta:hover, .lp-cta:focus-visible,
.btn-primary:hover, .btn-primary:focus-visible,
.nav-cta:hover, .nav-cta:focus-visible,
.nav-dashboard-btn:hover, .nav-dashboard-btn:focus-visible,
.quiz-launch-btn:hover, .quiz-launch-btn:focus-visible,
.form-submit:hover, .form-submit:focus-visible,
.contact-school-cta:hover, .contact-school-cta:focus-visible,
.btn-outline:hover, .btn-outline:focus-visible,
.lp-plan-cta:hover, .lp-plan-cta:focus-visible {
  outline-color: rgba(91,108,249,0.5);
}
.lp-cta:active, .btn-primary:active, .nav-cta:active,
.nav-dashboard-btn:active, .quiz-launch-btn:active, .form-submit:active,
.contact-school-cta:active, .btn-outline:active, .lp-plan-cta:active { transform: scale(0.97); }

/* Boutons blancs posés sur fond VIOLET (CTA final, articles) → anneau BLANC
   (le violet ne ressortirait pas sur le fond violet). */
.btn-white { outline: 2.5px solid transparent; transition: outline-color .16s ease, transform .1s ease, opacity .15s ease; }
.btn-white:hover, .btn-white:focus-visible { outline-color: rgba(255,255,255,0.75); }
.btn-white:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .lp-cta:active, .btn-primary:active, .nav-cta:active,
  .nav-dashboard-btn:active, .quiz-launch-btn:active, .form-submit:active,
  .contact-school-cta:active, .btn-outline:active, .btn-white:active { transform: none; }
}

/* ═══ Bibliothèque publique — SHEET DE FILTRES MOBILE (2026-08-14) ═══════════
   Miroir du patron dashboard (bouton « Filtres » à compteur + bottom sheet :
   degrés en accordéon par cycle, PER/métier, Réinitialiser, CTA « Voir les N
   Kwiiz »). UNIQUEMENT ≤767px : au-delà, le bouton est masqué et la barre
   desktop (selects + rangée de degrés + compteur) reste identique.
   Logique : landing/library-filters.js § SHEET MOBILE. */
.lf-filters-btn {
  display: none;
  align-items: center; gap: 6px; flex: 0 0 auto;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid #EEEDF8; background: #fff; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--text);
}
.lf-filters-btn.is-active { border-color: var(--accent); background: #EEF0FE; color: var(--accent); }
.lf-filters-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
}
.lf-sheet { position: fixed; inset: 0; z-index: 220; }
.lf-sheet-scrim {
  position: absolute; inset: 0; background: rgba(20, 20, 40, 0.45);
  opacity: 0; transition: opacity 0.24s ease;
}
.lf-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; max-height: 85dvh;
  background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.lf-sheet.open .lf-sheet-scrim { opacity: 1; }
.lf-sheet.open .lf-sheet-panel { transform: translateY(0); }
.lf-sheet-head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 18px;
}
.lf-sheet-close {
  width: 34px; height: 34px; border-radius: 999px; border: none;
  background: #F3F4F6; color: #6B6B7E; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
/* ⚠️ Le SVG inline n'a NI width NI height : sans cette règle il se rend à
   taille nulle → rond gris VIDE (bug vécu le 15.08, iPhone). Même patron que
   .lf-clear svg. */
.lf-sheet-close svg { width: 16px; height: 16px; }
.lf-sheet-body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 4px 18px 16px;
}
.lf-sheet-label {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary);
  margin: 10px 0 8px;
}
.lf-acc { display: flex; flex-direction: column; gap: 8px; }
.lf-acc-box { background: #fff; border: 1.5px solid #EEEDF8; border-radius: 12px; overflow: hidden; }
.lf-acc-box.has-picked { border-color: var(--accent); }
.lf-acc-head {
  width: 100%; display: flex; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 12px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14.5px;
  color: var(--text);
}
.lf-acc-head > span:first-child { flex: 1; min-width: 0; }
.lf-acc-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800;
}
.lf-acc-caret {
  flex-shrink: 0; width: 8px; height: 8px;
  border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg); transition: transform 0.2s; margin-top: -3px;
}
.lf-acc-caret.open { transform: rotate(225deg); margin-top: 3px; }
.lf-acc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 14px 14px; }
/* Pastille cochable : AUCUNE coche à la sélection (la couleur suffit, la
   géométrie ne bouge jamais — même règle que l'accordéon du dashboard). */
.lf-acc-chip {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid #EEEDF8; background: #fff; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13.5px;
  color: var(--text); white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.lf-acc-chip[data-active] { background: var(--accent); border-color: var(--accent); color: #fff; }
.lf-acc-chip--all { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--accent); }
.lf-acc-chip--all[data-active] { color: #fff; }
.lf-sheet-selects { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.lf-sheet-selects .lf-bar-side { display: flex; flex-direction: column; gap: 10px; }
.lf-sheet-selects .lf-select { width: 100%; }
.lf-sheet-reset {
  display: block; margin: 16px auto 4px; background: none; border: none;
  cursor: pointer; text-decoration: underline;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}
.lf-sheet-foot {
  flex-shrink: 0; padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.07); background: #fff;
}
.lf-sheet-cta {
  width: 100%; min-height: 50px; border: none; border-radius: 999px;
  background: var(--accent2); color: #fff; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px;
}
body.lf-sheet-open { overflow: hidden; }
@media (max-width: 767px) {
  .lf-filters-btn { display: inline-flex; }
  /* La barre mobile = recherche + Filtres. Le reste vit dans le sheet (les
     selects y DÉMÉNAGENT via relocateSide) ; la rangée de degrés desktop et le
     compteur disparaissent (le compte vit dans le CTA du sheet). */
  .lf-degres { display: none; }
  .lf-count { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   EXPÉDITIONS — pages publiques du catalogue Kwiiz Quest (02.10.2026).
   La charte de l'onglet Kwiiz Quest, transposée en CSS statique : le ciel
   étoilé (NIGHT_SKY_GRADIENT de StarrySky.jsx), des PLANÈTES pour les Kwiiz
   (la sphère de Planet.jsx : couverture rognée au disque, vignette vers le
   limbe, reflet, halo à la couleur de la discipline), un rail pointillé, la
   planète d'or au bout, Saturne et son Kwiix. Rendu par publicQuiz.js
   (renderExpeditionPage / renderExpeditionsIndex). Variables : --pc = la
   couleur PER de la discipline (posée inline par le serveur).
   ═══════════════════════════════════════════════════════════════════════ */
.qp-exp-sky {
  position: relative;
  color: #fff;
  background: linear-gradient(170deg, hsl(222 47% 11%) 0%, hsl(230 40% 16%) 50%, hsl(222 47% 11%) 100%);
  overflow: hidden;
}
/* Trois couches d'étoiles en dégradés radiaux : aucune image, aucune requête. */
.qp-exp-sky::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 28%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 76%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 21% 86%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 50%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 46%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 40%, rgba(255,255,255,.6) 50%, transparent 51%);
  background-size: 520px 420px, 640px 380px, 700px 520px, 560px 460px, 480px 400px, 620px 540px,
                   530px 470px, 690px 430px, 450px 390px, 610px 510px, 580px 440px, 500px 360px;
}
.qp-exp-sky > * { position: relative; z-index: 1; }
/* Le hero reprend l'anatomie de .page-hero (bibliothèque, catégories, pages d'un
   Kwiiz) : mêmes paddings, fil d'Ariane et chapeau en 18px. Ces pages sont dans
   la même arborescence, le fil ne doit pas rétrécir d'une page à l'autre. */
.qp-exp-hero { padding: 72px 0 60px; }
.qp-exp-hero p.breadcrumb { font-size: 18px; line-height: 1.7; }
.qp-exp-hero .breadcrumb, .qp-exp-hero .breadcrumb-sep { color: rgba(255,255,255,.55); }
.qp-exp-hero .breadcrumb a { color: #9DAAFF; }
.qp-exp-hero .breadcrumb-current { color: rgba(255,255,255,.85); }
.qp-exp-hero h1 { color: #fff; font-size: 44px; margin: 6px 0 16px; }
.qp-exp-kicker { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #9DAAFF; margin-top: 12px; }
.qp-exp-hero .qp-cat-lead { color: rgba(255,255,255,.78); max-width: 640px; font-size: 18px; line-height: 1.7; }
.qp-exp-hero .qp-cat-lead strong { color: #fff; }
.qp-exp-hero .qp-hintline { color: rgba(255,255,255,.62); }
.qp-exp-hero .qp-actions { margin-top: 22px; }
.qp-exp-ghost {
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.3); color: #fff;
  border-radius: var(--radius-pill); padding: 12px 26px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; text-decoration: none;
  transition: background .15s, transform .1s; backdrop-filter: blur(8px);
}
.qp-exp-ghost:hover { background: rgba(255,255,255,.16); }
.qp-exp-ghost:active { transform: scale(.97); }
/* Saturne et son Kwiix, à droite, qui flottent (le même mouvement que le coach). */
.qp-exp-saturn { flex: 0 0 auto; align-self: center; width: clamp(180px, 22vw, 300px); position: relative; }
.qp-exp-saturn::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,108,249,.42), rgba(91,108,249,.1) 55%, transparent 72%); }
.qp-exp-saturn img { position: relative; width: 100%; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); }
@media (prefers-reduced-motion: no-preference) { .qp-exp-saturn img { animation: lp-coach-float 4s ease-in-out infinite; } }
@media (max-width: 768px) {
  .qp-exp-hero { padding: 48px 0 40px; }
  .qp-exp-hero h1 { font-size: 32px; }
  .qp-exp-saturn { display: none; }
}

/* ── Le rail de planètes ──────────────────────────────────────────────── */
.qp-exp-rail-section { padding: 36px 0 64px; }
.qp-exp-rail-title { color: #fff; font-size: 24px; margin-bottom: 26px; }
.qp-exp-rail { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 18px; justify-content: center; position: relative; }
.qp-exp-rail > li { width: 180px; position: relative; }
.qp-exp-step { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: #fff; position: relative; }
/* Le trajet pointillé entre deux planètes (à hauteur du centre de la sphère). */
.qp-exp-rail > li + li::before {
  content: ''; position: absolute; top: 68px; right: 100%; width: 18px; height: 0;
  border-top: 3px dotted rgba(255,255,255,.35);
}
.qp-exp-sphere {
  width: 136px; height: 136px; border-radius: 50%; position: relative; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--pc, #5B6CF9) 70%, #1a1f4a) 0%, color-mix(in srgb, var(--pc, #5B6CF9) 35%, #0b1030) 100%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 0 34px color-mix(in srgb, var(--pc, #5B6CF9) 45%, transparent), 0 18px 30px rgba(0,0,0,.45);
  transition: transform .2s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow .2s;
}
.qp-exp-sphere img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: luminosity; opacity: .78; }
/* La vignette vers le limbe + le reflet (PlanetVolume de Planet.jsx). */
.qp-exp-sphere::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 34% 26% at 30% 22%, rgba(255,255,255,.5), rgba(255,255,255,0) 100%),
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--pc, #5B6CF9) 0%, transparent) 30%, color-mix(in srgb, var(--pc, #5B6CF9) 35%, rgba(0,0,0,.3)) 60%, rgba(0,0,0,.72) 100%);
}
.qp-exp-sphere::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 82% 88%, rgba(0,0,0,.45), rgba(0,0,0,0) 60%); }
.qp-exp-sphere .qp-exp-abbr { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 26px; color: rgba(255,255,255,.85); letter-spacing: .04em; }
a.qp-exp-step:hover .qp-exp-sphere, a.qp-exp-step:focus-visible .qp-exp-sphere { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 3px rgba(255,255,255,.3), 0 0 48px color-mix(in srgb, var(--pc, #5B6CF9) 60%, transparent), 0 22px 34px rgba(0,0,0,.5); }
/* Le numéro lumineux sous la sphère (le rang du rail chez l'enseignant). */
.qp-exp-num {
  margin-top: -16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; color: #fff; position: relative; z-index: 2;
  background: radial-gradient(circle at 35% 30%, #2A3170, #151A3A 70%); border: 2px solid #9DAAFF;
  box-shadow: 0 0 0 4px rgba(157,170,255,.18), 0 0 18px 3px rgba(157,170,255,.55);
}
/* Trois lignes RÉSERVÉES au titre (coupé au-delà, le titre complet est au
   survol) : d'une planète à l'autre, titres et pastilles de mode tombent sur
   les mêmes lignes, quelle que soit la longueur du titre. */
.qp-exp-step-title {
  margin-top: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; line-height: 1.3; color: #fff;
  height: 3.9em; display: flex; align-items: center; justify-content: center;
}
/* Le titre est CENTRÉ verticalement dans ses trois lignes, entre la planète et
   la pastille de mode ; la coupe à trois lignes vit sur le texte lui-même. */
.qp-exp-step-title > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qp-exp-step-meta { margin-top: 5px; font-size: 12.5px; color: rgba(255,255,255,.6); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.qp-exp-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.qp-exp-chip--flash { background: #FFD166; color: #3B2A00; box-shadow: 0 0 12px rgba(255,209,102,.4); }
.qp-exp-chip--quiz { background: var(--accent); color: #fff; box-shadow: 0 0 12px rgba(91,108,249,.45); }
/* La planète d'or, au bout du rail. */
.qp-exp-gold .qp-exp-gold-img { width: 136px; height: 136px; position: relative; }
.qp-exp-gold .qp-exp-gold-img::before { content: ''; position: absolute; inset: -22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,209,102,.45), rgba(255,209,102,.12) 55%, transparent 72%); }
.qp-exp-gold .qp-exp-gold-img img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
@media (prefers-reduced-motion: no-preference) { .qp-exp-gold .qp-exp-gold-img::before { animation: qp-exp-pulse 2.8s ease-in-out infinite; } }
@keyframes qp-exp-pulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
/* La planète d'or n'a pas de numéro : son titre descend de la hauteur qu'il
   occupe (34 px, remonté de 16) pour rester sur la ligne des autres. */
.qp-exp-gold .qp-exp-step-title { color: #FFD166; margin-top: 28px; }
/* Elle se clique (modale de la récompense) : un <button> remis à plat. */
button.qp-exp-gold { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.qp-exp-gold .qp-exp-gold-img img { transition: transform .2s cubic-bezier(0.34, 1.4, 0.64, 1); }
button.qp-exp-gold:hover .qp-exp-gold-img img, button.qp-exp-gold:focus-visible .qp-exp-gold-img img { transform: translateY(-4px) scale(1.05); }
button.qp-exp-gold:focus-visible { outline: 2px solid #FFD166; outline-offset: 6px; border-radius: 16px; }
button.qp-exp-gold .qp-exp-step-meta { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }

/* ── La modale de la planète d'or (03.10.2026) ──────────────────────────────
   Plein écran transparent (le clic sur le voile ferme), une carte « nuit » au
   centre : planète d'or + Gaby qui flotte + trois étoiles, un titre, une ligne,
   quatre tuiles 2 × 2 (icône, titre, une phrase), le CTA. Position fixe redite :
   `.qp-exp-sky > *` la passerait en relative si elle y était posée. */
.qp-exp-modal {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 20px;
  border: 0; background: transparent; display: none; place-items: center; box-sizing: border-box; overflow-y: auto;
}
.qp-exp-modal[open] { display: grid; }
.qp-exp-modal::backdrop { background: rgba(8, 10, 28, .82); backdrop-filter: blur(3px); }
/* Une boîte des pages d'expédition est ouverte (vidéo, modes de jeu, planète
   d'or) : la page derrière ne défile plus (posée par qp-exp.js). */
body.qp-exp-lock { overflow: hidden; }
.qp-exp-modal-card {
  position: relative; width: min(560px, 100%); padding: 26px 28px 28px; border-radius: 24px; text-align: center; color: #fff;
  background: linear-gradient(170deg, hsl(222 47% 13%) 0%, hsl(230 40% 20%) 100%);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.qp-exp-modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1;
}
.qp-exp-modal-close:hover, .qp-exp-modal-close:focus-visible { background: rgba(255,255,255,.18); outline: 3px solid rgba(255,255,255,.3); }
.qp-exp-modal-hero { position: relative; width: 220px; height: 170px; margin: 0 auto 6px; }
.qp-exp-modal-hero::before { content: ''; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,209,102,.38), transparent 70%); }
.qp-exp-modal-gold { position: absolute; left: 50%; top: 6px; width: 120px; height: 120px; margin-left: -60px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.qp-exp-modal-gaby { position: absolute; left: -6px; top: 22px; width: 96px; height: 96px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); }
.qp-exp-modal-stars { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 4px; color: #FFD166; filter: drop-shadow(0 0 8px rgba(255,209,102,.6)); }
.qp-exp-modal-stars svg { fill: currentColor; display: block; }
@media (prefers-reduced-motion: no-preference) { .qp-exp-modal-gaby { animation: lp-coach-float 4s ease-in-out infinite; } }
.qp-exp-modal-card h2 { color: #fff; font-size: 26px; margin: 8px 0 4px; }
.qp-exp-modal-lead { margin: 0 0 18px; font-size: 15px; color: rgba(255,255,255,.72); }
.qp-exp-modal-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: center; }
.qp-exp-modal-list li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.qp-exp-modal-icon { width: 30px; height: 30px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,209,102,.16); color: #FFD166; }
.qp-exp-modal-icon svg { width: 17px; height: 17px; }
.qp-exp-modal-list strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; line-height: 1.3; color: #fff; }
.qp-exp-modal-list li > span:last-child { font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.7); }
.qp-exp-modal-cta { display: inline-flex; justify-content: center; }
/* La pastille de mode du rail se clique (modale des modes de jeu). */
.qp-exp-chip[data-qp-mode] { cursor: pointer; transition: transform .15s ease, outline-color .15s ease; outline: 2px solid transparent; outline-offset: 2px; }
.qp-exp-chip[data-qp-mode]:hover, .qp-exp-chip[data-qp-mode]:focus-visible { outline-color: rgba(255,255,255,.7); }
.qp-exp-chip[data-qp-mode]:active { transform: scale(.95); }
/* Modale des modes de jeu : bascule iOS, l'extrait, deux phrases. */
.qp-exp-modes .qp-exp-modal-card { max-width: 560px; }
/* Les deux panneaux occupent la MÊME case de grille : la modale prend la
   taille du plus grand, et la bascule ne bouge ni ne redimensionne rien. */
.qp-exp-mode-panels { display: grid; }
.qp-exp-mode-panel { grid-area: 1 / 1; }
.qp-exp-mode-panel[hidden] { display: block; visibility: hidden; }
.qp-exp-modes .qp-exp-modal-lead { margin-bottom: 14px; }
.qp-exp-mode-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.qp-exp-mode-tab {
  border: 0; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; color: rgba(255,255,255,.72);
  transition: background .15s ease, color .15s ease;
}
.qp-exp-mode-tab:hover { color: #fff; }
.qp-exp-mode-tab:focus-visible { outline: 2px solid #9DAAFF; outline-offset: 2px; }
.qp-exp-mode-tab--quiz[aria-selected="true"] { background: var(--accent); color: #fff; }
.qp-exp-mode-tab--flash[aria-selected="true"] { background: #FFD166; color: #3B2A00; }
.qp-exp-mode-clip { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: hsl(230 40% 18%); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 34px rgba(0,0,0,.4); }
.qp-exp-mode-clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qp-exp-mode-panel p { margin: 14px 4px 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.8); }
@media (max-width: 560px) {
  .qp-exp-modal { padding: 12px; }
  .qp-exp-modal-card { padding: 22px 16px 20px; }
  .qp-exp-modal-list { grid-template-columns: 1fr; }
  .qp-exp-modal-cta { width: 100%; }
}
.qp-exp-rail-section .qp-back { margin-top: 36px; }
@media (max-width: 768px) {
  .qp-exp-rail { gap: 22px 8px; }
  .qp-exp-rail > li { width: 46%; }
  .qp-exp-rail > li + li::before { display: none; }
  .qp-exp-sphere, .qp-exp-gold .qp-exp-gold-img { width: 112px; height: 112px; }
}

/* ── « Comment ça marche » : trois cartes de verre sur le ciel ───────────── */
.qp-exp-how { padding: 48px 0 72px; }
.qp-exp-how h2 { color: #fff; font-size: 24px; margin-bottom: 18px; }
.qp-exp-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* Centrées, comme les cartes de verre de l'onglet Kwiiz Quest (QuestEmptyHero). */
.qp-exp-glass { padding: 22px 18px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); color: #fff; text-align: center; }
.qp-exp-glass-icon { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(157,170,255,.16); color: #9DAAFF; border: 1px solid rgba(255,255,255,.14); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; }
.qp-exp-glass strong { display: block; margin: 12px 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; }
.qp-exp-glass p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); }
@media (max-width: 768px) { .qp-exp-how-grid { grid-template-columns: 1fr; } }

/* ── L'index : le filtre de la bibliothèque, puis une section par discipline,
   avec les mêmes cartes que « D'autres expéditions » (expeditionCardHtml). ── */
.qp-exp-list { padding-top: 40px; }
.qp-exp-group { margin-top: 28px; }
.qp-exp-group[hidden] { display: none; }
/* Le hero de l'index est COURT : on vient ici pour choisir une expédition. */
.qp-exp-hero--index { padding: 48px 0 24px; }
.qp-exp-hero--index .qp-exp-saturn { width: clamp(150px, 15vw, 210px); }

/* ── Index : « Les expéditions te permettent de différencier » (03.10.2026) ──
   Deux vidéos du Guide en CARTES HORIZONTALES compactes (vignette + titre) :
   le hero de l'index doit rester court, on vient y choisir une expédition.
   Toute la carte ouvre la vidéo en grand (qp-exp.js). */
.qp-exp-videos { padding: 4px 0 44px; }
.qp-exp-videos h2 { color: #9DAAFF; font-size: 20px; margin-bottom: 14px; text-align: center; }
.qp-exp-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.qp-exp-video-btn {
  width: 100%;
  position: relative; display: block; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius-md); background: hsl(230 40% 18%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 34px rgba(0,0,0,.4);
  transition: box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.qp-exp-video-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.qp-exp-video-btn:hover img { transform: scale(1.04); }
.qp-exp-video-btn:hover { box-shadow: 0 0 0 2px rgba(157,170,255,.7), 0 18px 34px rgba(0,0,0,.4); }
.qp-exp-video-btn:focus-visible { outline: 2px solid #9DAAFF; outline-offset: 3px; }
.qp-exp-video-btn:active { transform: scale(.98); }
.qp-exp-video-play {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.qp-exp-video-play::after { content: ''; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--accent); }
.qp-exp-video-time { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: var(--radius-pill); background: rgba(15,18,40,.78); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 11px; }
/* Le lecteur : un <dialog> plein écran (⚠️ position fixe redite : `.qp-exp-sky > *`
   le passerait en relative), la vidéo centrée en 16:9, un clic sur le voile ferme. */
.qp-exp-player {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 24px;
  border: 0; background: transparent; display: none; place-items: center; box-sizing: border-box;
}
.qp-exp-player[open] { display: grid; }
.qp-exp-player::backdrop { background: rgba(8, 10, 28, .9); }
.qp-exp-player-frame { width: min(1100px, 100%, calc((100vh - 96px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.qp-exp-player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.qp-exp-player-close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.qp-exp-player-close:hover { background: rgba(255,255,255,.2); outline: 3px solid rgba(255,255,255,.35); }
@media (max-width: 768px) {
  .qp-exp-videos { padding-bottom: 32px; }
  .qp-exp-videos h2 { font-size: 18px; }
  .qp-exp-video-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 440px; }
  .qp-exp-player { padding: 12px; }
  .qp-exp-hero--index { padding: 32px 0 20px; }
}

/* ── Les planètes d'une expédition hors de sa page (03.10.2026) ────────────
   --xs : celle de son PREMIER Kwiiz, sur la carte d'une fiche ;
   --mini : une par Kwiiz, dans la rangée d'une carte d'expédition. */
.qp-exp-sphere--xs { width: 52px; height: 52px; box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 18px color-mix(in srgb, var(--pc, #5B6CF9) 45%, transparent); }
.qp-exp-sphere--xs .qp-exp-abbr { font-size: 13px; }
.qp-exp-sphere--mini { width: var(--qp-mini, 40px); height: var(--qp-mini, 40px); box-shadow: 0 0 0 1.5px rgba(255,255,255,.16), 0 0 12px color-mix(in srgb, var(--pc, #5B6CF9) 45%, transparent); }
.qp-exp-sphere--mini .qp-exp-abbr { font-size: 10px; }

/* Sous les boutons d'un Kwiiz qui fait partie d'une expédition : une carte
   « nuit » (la charte Kwiiz Quest) qui ramène au parcours. Toute la carte est
   le lien ; « Voir l'expédition » n'est que son libellé d'action. */
.qp-exp-links { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; max-width: 620px; }
.qp-exp-link {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  border-radius: var(--radius-md); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, hsl(222 47% 13%) 0%, hsl(230 40% 20%) 100%);
  box-shadow: 0 8px 22px rgba(23,27,59,.22);
  transition: box-shadow .2s, filter .2s; -webkit-tap-highlight-color: transparent;
}
.qp-exp-link:hover { filter: brightness(1.12); box-shadow: 0 0 0 3px rgba(91,108,249,.45), 0 10px 26px rgba(23,27,59,.28); }
.qp-exp-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.qp-exp-link:active { filter: brightness(.96); }
.qp-exp-link-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qp-exp-link-kicker { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9DAAFF; }
.qp-exp-link-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-exp-link-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; white-space: nowrap;
}
@media (max-width: 560px) {
  .qp-exp-link-tail { display: none; }
  .qp-exp-link-title { white-space: normal; }
  .qp-exp-link-cta { padding: 8px 11px; font-size: 0; gap: 0; }
  .qp-exp-link-cta span { font-size: 16px; }
}

/* La CARTE d'une expédition (index et « D'autres expéditions ») : le gabarit
   des « Autres quiz » d'une fiche, la couverture remplacée par un bout de ciel
   où le parcours se lit — une petite planète par Kwiiz reliées par un trajet
   pointillé, « +N » au-delà de cinq, la planète d'or au bout. */
.qp-exp-others h2 { font-size: 26px; margin-bottom: 16px; }
.qp-exp-others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
/* « Dernières expéditions » en tête de l'index (28.10.2026) : même grille de cartes,
   un titre et une ligne, séparée de la grille complète par un filet. */
.qp-exp-latest { margin: 8px 0 34px; padding-bottom: 30px; border-bottom: 1px solid #E6E8F4; }
.qp-exp-latest h2 { font-size: 26px; margin: 0 0 4px; }
.qp-exp-latest-lead { margin: 0 0 16px; color: var(--text-secondary); }
.qp-exp-mini { text-decoration: none; }
.qp-exp-mini-sky {
  position: relative; height: 128px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(1px 1px at 14% 24%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 78%, rgba(255,255,255,.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 56%, rgba(255,255,255,.7) 50%, transparent 51%),
    linear-gradient(170deg, hsl(222 47% 11%) 0%, hsl(230 40% 18%) 100%);
}
.qp-exp-mini-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.qp-exp-mini-row::before { content: ''; position: absolute; left: 24px; right: 24px; top: 50%; border-top: 2px dotted rgba(255,255,255,.3); }
.qp-exp-mini-row > * { position: relative; flex-shrink: 0; }
.qp-exp-more {
  display: grid; place-items: center; min-width: var(--qp-mini, 40px); height: var(--qp-mini, 40px); padding: 0 6px; box-sizing: border-box;
  border-radius: 999px; background: hsl(230 40% 22%); border: 1.5px solid rgba(255,255,255,.28);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 13px; color: #fff;
}
.qp-exp-mini-gold { width: calc(var(--qp-mini, 40px) + 6px); height: calc(var(--qp-mini, 40px) + 6px); filter: drop-shadow(0 0 8px rgba(255,209,102,.55)); }
.qp-exp-mini-gold img { width: 100%; height: 100%; display: block; }
.qp-exp-mini-row { transition: transform .2s cubic-bezier(0.34, 1.4, 0.64, 1); }
.qp-exp-mini:hover .qp-exp-mini-row { transform: scale(1.05); }
/* Le corps reprend la carte d'un Kwiiz de la bibliothèque : titre centré, puis
   la pastille de discipline et une description courte, le parcours en pied. */
/* Rangées à HAUTEUR RÉSERVÉE (titre 2 lignes, description 2 lignes) : d'une
   carte à l'autre, pastilles, descriptions et « Parcours de N Kwiiz » tombent
   à la même hauteur, quelle que soit la longueur du texte. */
.qp-exp-mini .qp-related-body { flex: 1; min-height: 0; padding: 14px 16px 14px; gap: 8px; }
.qp-exp-mini .qp-related-title { font-size: 15.5px; min-height: 2.7em; display: flex; align-items: center; justify-content: center; overflow: visible; }
.qp-exp-mini-title > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qp-exp-mini-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.qp-exp-mini-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13px; color: var(--text-secondary); line-height: 1.5; min-height: 3em;
}
/* « Parcours de N Kwiiz » : à côté de la discipline depuis le 03.10.2026 (demande
   Quentin), plus en pied de carte. Même hauteur que la pastille de discipline. */
.qp-exp-mini-route {
  border-radius: var(--radius-pill); padding: 3px 9px; background: #F1F2F7;
  font-size: 11.5px; font-weight: 700; color: var(--text-secondary); white-space: nowrap;
}
/* Infobulle d'une planète (posée par qp-exp.js sur <body>, jamais rognée par
   le ciel de la carte) : le nom du Kwiiz, ou la liste de ceux que « +N » cache. */
/* « +N » garde son centrage en grille (.qp-exp-more) : la classe ne touche que les planètes. */
.qp-exp-tip:not(.qp-exp-more) { display: inline-flex; }
.qp-exp-tipbox {
  position: fixed; z-index: 1000; max-width: 280px; pointer-events: none;
  background: #1F2233; color: #fff; border-radius: 10px; padding: 7px 11px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 12.5px; font-weight: 600; line-height: 1.45;
  white-space: pre-line; box-shadow: 0 8px 24px rgba(17, 24, 39, .28);
  opacity: 0; transform: translate(-50%, calc(-100% - 6px)); transition: opacity .12s ease;
}
.qp-exp-tipbox.is-on { opacity: 1; }
@media (max-width: 900px) { .qp-exp-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Au téléphone, deux colonnes, un ciel plus bas et des planètes plus petites :
   six cartes en une colonne faisaient plus de trois écrans. */
@media (max-width: 560px) {
  .qp-exp-others-grid { gap: 10px; }
  .qp-exp-mini-sky { height: 92px; --qp-mini: 20px; }
  .qp-exp-mini-row { gap: 3px; padding: 0 6px; }
  .qp-exp-more { font-size: 10px; padding: 0 4px; }
  .qp-exp-mini .qp-related-body { padding: 10px 10px; min-height: 84px; }
  .qp-exp-mini .qp-related-title { font-size: 13.5px; }
}
