@import url("/v2/leaderboard-table.css?v=20261105table1");
@import url("/v2/templates.css?v=20261120recette2");
@import url("/v2/home-layout.css?v=20261119recette1");
@import url("/v2/sitewide-shell.css?v=20261112ivory1");
@import url("/v2/inner-pages-shell.css?v=20261112ivory1");
/* ==========================================================================
   Doigts Magiques V2 — design system (passe UI/UX du 01/11/2026)
   Fond bleu moyen lumineux, grandes sections empilées sur des surfaces variées
   (ivoire, bleu tendre, abricot), cartes harmonisées, touches or, jeu & scores.
   Tokens d'abord ; aucun code couleur dispersé dans les composants.
   ========================================================================== */

:root {
  /* Bleus */
  --dm-blue-900: #0c2b80;
  --dm-blue-800: #123aa6;
  --dm-blue-700: #1743bb;
  --dm-blue-600: #2457d6;
  --dm-blue-500: #2f68ea;
  --dm-blue-300: #8db0ff;
  --dm-blue-100: #e0eaff;
  /* Accents */
  --dm-gold: #ffc83d;
  --dm-gold-strong: #ffb300;
  --dm-gold-ink: #0b1b4d;
  --dm-cyan: #3fb7ff;
  --dm-mint: #37d6a1;
  --dm-coral: #ff6a4d;
  --dm-violet: #b184ff;
  /* Surfaces & texte */
  --dm-card: #ffffff;
  --dm-card-soft: #f1f6ff;
  --dm-ivory: #fffaf0;
  --dm-ivory-2: #fff3dc;
  --dm-sky: #e5efff;
  --dm-sky-2: #d4e4ff;
  --dm-sun: #ffeccb;
  --dm-sun-2: #ffdfae;
  --dm-ink: #0b1b4d;
  --dm-ink-soft: #3a4a7a;
  --dm-on-blue: #ffffff;
  --dm-on-blue-soft: #eef3ff;
  --dm-line: rgba(255, 255, 255, 0.22);
  --dm-line-dark: #d3def8;
  --dm-ok: #0f9d6b;
  --dm-bad: #d92d3f;
  /* Forme */
  --dm-radius: 20px;
  --dm-radius-sm: 12px;
  --dm-band-r: 40px;
  --dm-shadow: 0 12px 30px rgba(8, 28, 100, 0.2);
  --dm-shadow-sm: 0 4px 14px rgba(8, 28, 100, 0.14);
  --dm-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --dm-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --dm-max: 1180px;
  --dm-header-h: 66px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.v2 {
  margin: 0;
  min-height: 100vh;
  font-family: var(--dm-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--dm-on-blue);
  /* Dégradé ancré en haut de page (pas d'attachement fixe : fiable sur mobile et pour toute longueur de page) */
  background-color: #1c47b2;
  background-image:
    radial-gradient(1000px 520px at 88% -4%, rgba(125, 205, 255, 0.55), transparent 62%),
    radial-gradient(800px 480px at -6% 12%, rgba(190, 150, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #2c64e6 0, #2458d6 900px, #1c47b2 2000px);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* Décor : touches en relief, repères de doigts, empreintes (tuile SVG, statique, ~11 Ko) */
body.v2::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/v2/pattern-keys.svg") repeat;
  background-size: 520px 372px;
  opacity: 0.18;
}

/* Le contenu passe au-dessus du décor fixe ; l'en-tête reste collant et le lien d'évitement absolu */
body.v2 > *:not(.v2-skip):not(.v2-header):not(.top-bar):not(dialog) {
  position: relative;
  z-index: 1;
}

/* Le popover Compte doit flotter, et ne jamais agrandir la page / le footer.
   styles.css le couvre sur les pages SPA ; la V2 SSR utilise v2.css seule. */
body.v2 > #account-guest-popover,
body.v2 > #account-member-popover {
  position: fixed;
  z-index: 10000;
  width: min(224px, calc(100vw - 16px));
  padding: 8px;
  box-sizing: border-box;
  background: #fffdf8;
  border: 1px solid #d9c7ad;
  border-radius: 14px;
  box-shadow: 0 8px 24px #17457733;
}
body.v2 #account-guest-popover a,
body.v2 #account-member-popover a,
body.v2 #account-member-popover button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  box-sizing: border-box;
  color: #16325a;
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
body.v2 #account-guest-popover a:hover,
body.v2 #account-guest-popover a:focus-visible,
body.v2 #account-member-popover a:hover,
body.v2 #account-member-popover a:focus-visible,
body.v2 #account-member-popover button:hover,
body.v2 #account-member-popover button:focus-visible {
  background: #efe6f8;
  outline: 2px solid #8d74b5;
}
body.v2 a[data-nav="account"] { display: inline-flex; align-items: center; gap: 8px; }
body.v2 a[data-nav="account"] .nav-account-avatar { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; align-items: center; justify-content: center; background: #e7eef8; color: #16325a; font-size: 0.7rem; font-weight: 700; flex: none; }
body.v2 a[data-nav="account"] .nav-account-avatar[hidden] { display: none !important; }
body.v2 a[data-nav="account"] .dm-social-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.v2 a {
  color: inherit;
}

.v2 :focus-visible {
  outline: 3px solid var(--dm-gold);
  outline-offset: 3px;
  border-radius: 6px;
}
.v2-band :focus-visible,
.v2-card :focus-visible,
.v2-editorial :focus-visible {
  outline-color: var(--dm-blue-600);
}
/* Les couleurs de bouton l'emportent sur « .v2 a { color: inherit } » */
.v2 a.v2-btn--primary {
  color: var(--ui-primary-text);
}
.v2 a.v2-btn--dark {
  color: #fff;
}
.v2-btn--primary:focus-visible {
  outline-color: var(--ui-brand);
}

.v2 [id] {
  scroll-margin-top: calc(var(--dm-header-h) + 14px);
}

.v2-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  width: max-content;
  max-width: calc(100vw - 24px);
  background: var(--dm-gold);
  color: var(--dm-gold-ink);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s;
}
.v2-skip:focus {
  top: 12px;
}

.v2 [hidden] {
  display: none !important;
}

.v2-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.v2-wrap {
  width: 100%;
  max-width: var(--dm-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ───────── En-tête : tout en haut, compact, hauteur fixe (aucun décalage à l'hydratation) ───────── */
.v2-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--dm-blue-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 6px 18px rgba(6, 20, 80, 0.22);
}
.v2-header-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--dm-header-h);
}
.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  color: #fff;
  flex: 0 0 auto;
  white-space: nowrap;
}
.v2-brand img {
  width: 40px;
  height: 36px;
  display: block;
}
.v2-brand span em {
  font-style: normal;
  color: var(--dm-gold);
}
.v2-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 12px;
}
.v2-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 10px;
  padding: 0;
}
.v2-nav-links a {
  display: block;
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--dm-on-blue-soft);
  white-space: nowrap;
}
.v2-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.v2-nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--dm-gold);
}
.v2-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
/* Compte : largeur réservée, le libellé « Se connecter » ou le pseudo ne décale rien */
.v2-nav-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 9.4rem;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 750;
  font-size: 0.96rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-nav-account:hover {
  background: rgba(255, 255, 255, 0.2);
}
.v2-nav-account.is-member {
  background: #fff;
  color: var(--dm-blue-800);
  border-color: #fff;
}
.v2-menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.v2-burger,
.v2-burger::before,
.v2-burger::after {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.v2-burger {
  position: relative;
}
.v2-burger::before,
.v2-burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.v2-burger::before {
  top: -6px;
}
.v2-burger::after {
  top: 6px;
}
.v2-menu-toggle[aria-expanded="true"] .v2-burger {
  background: transparent;
}
.v2-menu-toggle[aria-expanded="true"] .v2-burger::before {
  transform: translateY(6px) rotate(45deg);
}
.v2-menu-toggle[aria-expanded="true"] .v2-burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1180px) {
  :root {
    --dm-header-h: 60px;
  }
  .v2-brand {
    font-size: 1.2rem;
  }
  .v2-brand img {
    width: 36px;
    height: 32px;
  }
  .js .v2-menu-toggle {
    display: inline-flex;
  }
  /* Panneau déroulant : superposé, il ne pousse jamais le contenu (pas de saut de page) */
  .js .v2-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 18px;
    background: var(--dm-blue-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 18px 30px rgba(6, 20, 80, 0.35);
    max-height: calc(100vh - var(--dm-header-h));
    overflow-y: auto;
  }
  .js .v2-nav.is-open {
    display: flex;
  }
  .js .v2-nav-links {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 4px;
  }
  .js .v2-nav-links a {
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.07);
  }
  .js .v2-nav-actions {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 10px;
  }
  .js .v2-nav-actions .v2-btn,
  .js .v2-nav-account {
    width: 100%;
    max-width: none;
    min-height: 50px;
  }
  /* Sans JS : le menu reste affiché, simplement replié sur plusieurs lignes */
  .v2-header-in {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .v2-nav {
    width: 100%;
    flex-wrap: wrap;
  }
  .v2-nav-links {
    flex-wrap: wrap;
    margin-left: 0;
  }
  .v2-nav-actions {
    margin-left: 0;
  }
}

/* ───────── Fil d'Ariane ───────── */
.v2-crumbs {
  padding: 16px 20px 0;
  font-size: 0.95rem;
}
.v2-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--dm-on-blue-soft);
}
.v2-crumbs li + li::before {
  content: "›";
  margin-right: 6px;
  opacity: 0.75;
}
.v2-crumbs a {
  color: var(--dm-on-blue-soft);
}
.v2-crumbs [aria-current="page"] {
  color: #fff;
  font-weight: 650;
}

/* ───────── Typographie & sections ───────── */
.v2-main {
  flex: 1;
  padding-bottom: 0;
}
.v2-section {
  padding: 44px 0 8px;
}
.v2-h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.v2-h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.v2-h3 {
  font-size: 1.2rem;
  margin: 0 0 6px;
  line-height: 1.25;
}
.v2-lead {
  font-size: 1.15rem;
  color: var(--dm-on-blue-soft);
  max-width: 62ch;
  margin: 0 0 18px;
}
.v2-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 22px;
}
.v2-sec-head p {
  margin: 0;
  max-width: 62ch;
  color: var(--dm-on-blue-soft);
}
.v2-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dm-gold);
  margin-bottom: 8px;
}

/* En-tête de page (sur le fond bleu) */
.v2-pagehead {
  position: relative;
  padding: 30px 0 76px;
  overflow: clip;
}
.v2-pagehead > .v2-wrap,
.v2-hero > .v2-wrap {
  position: relative;
  z-index: 1;
}
.v2-pagehead .v2-lead {
  margin-bottom: 0;
}
.v2-pagehead .v2-chips {
  margin-top: 6px;
}

/* Grande silhouette de clavier AZERTY en décor (très peu contrastée, statique) */
.v2-pagehead::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -90px;
  top: 14px;
  width: 780px;
  height: 270px;
  background: url("/v2/bg-keyboard.svg") no-repeat center / contain;
  opacity: 0.2;
  transform: rotate(-5deg);
  pointer-events: none;
}
.v2-pagehead::before {
  width: 600px;
  height: 208px;
  top: 8px;
  opacity: 0.16;
}
@media (max-width: 700px) {
  .v2-pagehead::before {
    width: 420px;
    height: 146px;
    right: -150px;
    opacity: 0.13;
  }
}

/* ───────── Bandes : grands blocs empilés, coins arrondis, surfaces variées ───────── */
.v2-band {
  position: relative;
  padding: 54px 0 96px;
  margin-top: calc(var(--dm-band-r) * -1);
  border-radius: var(--dm-band-r) var(--dm-band-r) 0 0;
  color: var(--dm-ink);
  box-shadow: 0 -10px 28px rgba(8, 28, 100, 0.2);
}
.v2-band--ivory {
  background: linear-gradient(180deg, #fffbf2 0%, var(--dm-ivory-2) 100%);
}
.v2-band--sky {
  background: linear-gradient(180deg, #eaf2ff 0%, var(--dm-sky-2) 100%);
}
.v2-band--sun {
  background:
    radial-gradient(520px 260px at 92% 8%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, var(--dm-sun) 0%, var(--dm-sun-2) 100%);
}
.v2-band .v2-lead,
.v2-band .v2-sec-head p {
  color: var(--dm-ink-soft);
}
.v2-band .v2-kicker {
  color: var(--dm-blue-700);
  background: rgba(23, 67, 187, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
}
.v2-band--sun .v2-kicker {
  color: #8a3b00;
  background: rgba(255, 106, 77, 0.16);
}
.v2-band .v2-h2,
.v2-band .v2-h1 {
  color: var(--dm-ink);
}
.v2-band .v2-chip {
  background: #fff;
  color: var(--dm-ink);
  border-color: var(--dm-line-dark);
}
.v2-band .v2-btn--ghost,
.v2-card .v2-btn--ghost,
.v2-daily-main .v2-btn--ghost,
.v2-play-card .v2-btn--ghost,
.v2-editorial .v2-btn--ghost {
  background: #fff;
  color: var(--dm-blue-700);
  border-color: var(--dm-blue-500);
}
.v2-band .v2-btn--ghost:hover,
.v2-card .v2-btn--ghost:hover,
.v2-daily-main .v2-btn--ghost:hover,
.v2-play-card .v2-btn--ghost:hover,
.v2-editorial .v2-btn--ghost:hover {
  background: var(--dm-blue-100);
}
.v2-band .v2-board-wrap .v2-btn--ghost {
  background: transparent;
}

/* ───────── Boutons ───────── */
.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.v2-btn:active {
  transform: translateY(1px);
}
.v2-btn--primary {
  background: var(--ui-brand);
  color: var(--ui-primary-text);
  box-shadow: none;
}
.v2-btn--primary:hover {
  background: var(--ui-primary-hover);
}
.v2-btn--primary:active {
  box-shadow: none;
}
.v2-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.v2-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
}
.v2-btn--dark {
  background: var(--dm-blue-700);
  color: #fff;
}
.v2-btn--dark:hover {
  background: var(--dm-blue-600);
}
.v2-btn--lg {
  min-height: 58px;
  padding: 14px 34px;
  font-size: 1.2rem;
}
.v2-btn--sm {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.96rem;
  border-radius: 12px;
}
.v2-nav-actions .v2-btn--primary {
  box-shadow: none;
}
.v2-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ───────── Puces ───────── */
.v2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.v2-card .v2-chip,
.v2-daily-main .v2-chip,
.v2-play-card .v2-chip {
  background: var(--dm-card-soft);
  color: var(--dm-ink);
  border-color: var(--dm-line-dark);
}
.v2-chip--facile {
  background: #d6f7e9 !important;
  color: #07553a !important;
  border-color: #98e3c4 !important;
}
.v2-chip--moyen {
  background: #fff1c2 !important;
  color: #5d4300 !important;
  border-color: #f2d36e !important;
}
.v2-chip--difficile {
  background: #ffdcc9 !important;
  color: #7a2a00 !important;
  border-color: #f5ae88 !important;
}
.v2-chip--expert {
  background: #ffd0d6 !important;
  color: #7a0a1e !important;
  border-color: #f08a99 !important;
}
.v2-chip--demo {
  background: rgba(177, 132, 255, 0.28) !important;
  color: #3f1d8a !important;
  border-color: rgba(177, 132, 255, 0.7) !important;
}
.v2-card .v2-chip--demo,
.v2-band .v2-chip--demo {
  background: #efe6ff !important;
  color: #3f1d8a !important;
}

/* ───────── Cartes : un seul gabarit ───────── */
.v2-card {
  background: var(--dm-card);
  color: var(--dm-ink);
  border-radius: var(--dm-radius);
  border: 1px solid rgba(23, 67, 187, 0.1);
  box-shadow: var(--dm-shadow-sm);
  padding: 22px;
}
.v2-card--soft {
  background: var(--dm-card-soft);
}
.v2-card--glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid var(--dm-line);
  box-shadow: none;
}
.v2-card--deep {
  background: linear-gradient(170deg, #1a47b8 0%, #12338f 100%);
  color: #fff;
  border: 0;
  box-shadow: var(--dm-shadow);
}
.v2-card p {
  margin: 0 0 10px;
}
.v2-muted {
  color: var(--dm-ink-soft);
}
.v2-card--glass .v2-muted,
.v2-card--deep .v2-muted,
.v2-on-blue .v2-muted {
  color: var(--dm-on-blue-soft);
}

.v2-grid {
  display: grid;
  gap: 18px;
}
.v2-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.v2-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
}
@media (max-width: 460px) {
  .v2-grid--2,
  .v2-grid--3 {
    grid-template-columns: 1fr;
  }
}

/* Accents de couleur (cartes parcours / jeux) */
.v2-acc-coral {
  --accent: #ff6a4d;
  --accent-soft: #ffe3dc;
  --accent-ink: #9a2b14;
}
.v2-acc-cyan {
  --accent: #1f9de8;
  --accent-soft: #dff1ff;
  --accent-ink: #0b5a91;
}
.v2-acc-violet {
  --accent: #8b5cf6;
  --accent-soft: #ece3ff;
  --accent-ink: #4b1fa8;
}
.v2-acc-mint {
  --accent: #14b88a;
  --accent-soft: #d9f8ec;
  --accent-ink: #07603f;
}
.v2-acc-gold {
  --accent: #f5a800;
  --accent-soft: #fff0c4;
  --accent-ink: #6b4600;
}

/* Pictogramme : même cadre partout (52 px) */
.v2-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 17px;
  background: var(--accent-soft, var(--dm-card-soft));
  color: var(--accent, var(--dm-blue-600));
}
.v2-icon svg {
  display: block;
  width: 44px;
  height: 33px;
}
.v2-icon--game svg {
  width: 36px;
  height: 36px;
}
.v2-icon--game {
  background: var(--accent);
  color: #fff;
}

/* ───────── Hero ───────── */
.v2-hero {
  position: relative;
  padding: 36px 0 92px;
  overflow: clip;
}
.v2-hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}
/* Halo lumineux derrière l'illustration : profondeur sans alourdir */
.v2-hero-top::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -30px;
  top: 50%;
  width: 640px;
  height: 640px;
  max-width: 100%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}
.v2-hero-copy,
.v2-hero-art {
  position: relative;
  z-index: 1;
}
.v2-hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  line-height: 1.04;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(8, 28, 100, 0.22);
}
.v2-hero-title em {
  font-style: normal;
  color: var(--dm-gold);
}
.v2-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.v2-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-weight: 700;
  font-size: 0.95rem;
}
.v2-hero-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dm-gold);
}
.v2-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.v2-hero-cta .v2-btn--lg {
  padding: 14px 20px;
  font-size: 1.05rem;
}
.v2-hero-art {
  width: 100%;
  height: auto;
  max-width: 640px;
  justify-self: center;
  filter: drop-shadow(0 18px 22px rgba(6, 22, 90, 0.35));
}
@media (max-width: 860px) {
  .v2-hero {
    padding-top: 26px;
  }
  .v2-hero-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .v2-hero-art {
    max-width: 440px;
  }
}
@media (max-width: 560px) {
  .v2-hero-art {
    max-width: 100%;
  }
  .v2-hero-cta .v2-btn {
    width: 100%;
  }
  /* Mobile : on laisse l'illustration remonter plus vite dans l'écran */
  .v2-hero-points {
    display: none;
  }
  .v2-hero-copy .v2-lead {
    margin-bottom: 16px;
  }
}

.v2-daily {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  border-radius: calc(var(--dm-radius) + 8px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(6, 22, 90, 0.35);
  border: 3px solid var(--dm-gold);
}
.v2-daily-main {
  background: linear-gradient(180deg, #fffdf8, #fff6e4);
  color: var(--dm-ink);
  padding: 28px;
}
.v2-daily-side {
  background: linear-gradient(170deg, #1a47b8, #12338f);
  color: #fff;
  padding: 24px;
}
.v2-daily-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dm-gold);
  color: var(--dm-gold-ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.v2-daily-date {
  font-weight: 700;
}
.v2-daily-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 12px 0 4px;
  color: var(--dm-ink);
}
.v2-daily-title a {
  text-decoration: none;
}
.v2-daily-author {
  margin: 0 0 14px;
  color: var(--dm-ink-soft);
  font-weight: 600;
}
.v2-preview {
  position: relative;
  margin: 16px 0 18px;
  padding: 14px 16px;
  background: #fff;
  border-left: 5px solid var(--dm-blue-500);
  border-radius: 0 var(--dm-radius-sm) var(--dm-radius-sm) 0;
  font-family: var(--dm-mono);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--dm-ink);
  max-height: 5.9em;
  overflow: hidden;
}
.v2-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2.6em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
.v2-daily-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.v2-daily-status {
  margin: 14px 0 0;
  font-weight: 650;
  min-height: 3em;
}
.v2-daily-status strong {
  color: var(--dm-blue-600);
}
.v2-daily-status a {
  color: var(--dm-blue-700);
  font-weight: 800;
}
@media (max-width: 860px) {
  .v2-daily {
    grid-template-columns: 1fr;
  }
  .v2-daily-main {
    padding: 22px 18px;
  }
  .v2-daily-actions .v2-btn {
    width: 100%;
  }
}

/* ───────── Classement ───────── */
.v2-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.1rem;
}
.v2-board {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.v2-board caption {
  text-align: left;
}
.v2-board th,
.v2-board td {
  padding: 9px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.v2-board th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dm-on-blue-soft);
}
.v2-board td:nth-child(3),
.v2-board th:nth-child(3),
.v2-board td:nth-child(4),
.v2-board th:nth-child(4) {
  text-align: right;
}
.v2-board .v2-rank {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}
.v2-board tr:nth-child(1) .v2-rank {
  background: var(--dm-gold);
  color: var(--dm-gold-ink);
}
.v2-board tr:nth-child(2) .v2-rank {
  background: #dfe8ff;
  color: var(--dm-ink);
}
.v2-board tr:nth-child(3) .v2-rank {
  background: #ffb98a;
  color: #3d1a00;
}
.v2-board tr.is-me td {
  background: rgba(255, 200, 61, 0.22);
}
.v2-board .v2-wpm {
  font-weight: 900;
  font-size: 1.05rem;
}
.v2-board-empty {
  margin: 8px 0 0;
  color: var(--dm-on-blue-soft);
}
.v2-board-me {
  margin: 12px 0 0;
  font-weight: 650;
}
.v2-board-note {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--dm-on-blue-soft);
}

/* ───────── Parcours (familles) ───────── */
.v2-group + .v2-group {
  margin-top: 30px;
}
.v2-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: var(--dm-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}
.v2-group-title::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 5px;
  background: var(--accent, var(--dm-blue-500));
  transform: rotate(12deg);
}
.v2-family {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 6px solid var(--accent, var(--dm-blue-500));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v2-family:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--accent, var(--dm-gold)), var(--dm-shadow);
}
.v2-family-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-family .v2-chip {
  font-size: 0.82rem;
  padding: 3px 10px;
}
.v2-family .v2-kicker {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--accent-ink, var(--dm-blue-600));
}
.v2-family .v2-h3 a {
  text-decoration: none;
}
.v2-family .v2-h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--dm-radius);
}
.v2-family-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
}
.v2-family-daily {
  display: inline-block;
  background: #fff1c2;
  color: #5d4300;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 800;
}
.v2-go {
  color: var(--accent-ink, var(--dm-blue-600));
  font-weight: 900;
}

/* ───────── Jeux ───────── */
.v2-game {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  color: var(--dm-ink);
  border: 1px solid rgba(23, 67, 187, 0.1);
  border-top: 6px solid var(--accent, var(--dm-blue-500));
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow-sm);
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v2-game-head {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.v2-game .v2-h3 a {
  text-decoration: none;
}
.v2-game .v2-h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--dm-radius);
}
.v2-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--accent, var(--dm-gold)), var(--dm-shadow);
}
.v2-game .v2-go {
  margin: auto 0 0;
  font-weight: 900;
}
.v2-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.v2-badge--free {
  background: #c9f6e3;
  color: #07553a;
}
.v2-badge--premium {
  background: #e7dcff;
  color: #3f1d8a;
}

/* ───────── Éditorial ───────── */
.v2-editorial {
  background: var(--dm-card);
  color: var(--dm-ink);
  border-radius: calc(var(--dm-radius) + 6px);
  border: 1px solid rgba(23, 67, 187, 0.1);
  padding: 34px;
  box-shadow: var(--dm-shadow-sm);
}
.v2-editorial h2 {
  margin-top: 0;
}
.v2-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
}
.v2-benefits li {
  background: var(--accent-soft, var(--dm-card-soft));
  border-radius: var(--dm-radius-sm);
  padding: 16px;
  border-left: 5px solid var(--accent, var(--dm-blue-500));
}
.v2-benefits strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--accent-ink, var(--dm-blue-700));
}
.v2-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 14px 0 18px;
}
.v2-articles a {
  color: var(--dm-blue-600);
  font-weight: 650;
}
@media (max-width: 560px) {
  .v2-editorial {
    padding: 22px 18px;
  }
}

/* ───────── Page jouable ───────── */
.v2-play-head {
  padding: 18px 0 6px;
}
.v2-play {
  margin-top: 0;
}
.v2-play-card {
  background: var(--dm-card);
  color: var(--dm-ink);
  border-radius: calc(var(--dm-radius) + 6px);
  border: 1px solid rgba(23, 67, 187, 0.1);
  box-shadow: var(--dm-shadow);
  padding: 22px;
}
.v2-hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.v2-hud-item {
  background: var(--dm-card-soft);
  border-radius: var(--dm-radius-sm);
  padding: 10px 14px;
}
.v2-hud-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dm-ink-soft);
  font-weight: 800;
}
.v2-hud-value {
  font-size: 1.7rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--dm-blue-700);
}
@media (max-width: 560px) {
  .v2-hud {
    grid-template-columns: repeat(2, 1fr);
  }
  .v2-play-card {
    padding: 16px 14px;
  }
  .v2-prompt {
    font-size: 1.15rem;
  }
}
.v2-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--dm-line-dark);
  overflow: hidden;
  margin-bottom: 14px;
}
.v2-progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--dm-cyan), var(--dm-blue-500));
  transition: width 0.1s linear;
}
.v2-prompt {
  position: relative;
  font-family: var(--dm-mono);
  font-size: 1.4rem;
  line-height: 2.1;
  letter-spacing: 0.02em;
  background: #f8faff;
  border: 2px solid var(--dm-line-dark);
  border-radius: var(--dm-radius-sm);
  padding: 14px 18px;
  max-height: 11.5em;
  overflow: hidden;
  cursor: text;
  color: #4a5b8c;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.v2-prompt.is-live {
  border-color: var(--dm-blue-500);
  box-shadow: 0 0 0 4px rgba(27, 70, 201, 0.18);
}
.v2-prompt .ch.is-ok {
  color: var(--dm-ok);
}
.v2-prompt .ch.is-cur {
  background: var(--dm-gold);
  color: var(--dm-gold-ink);
  border-radius: 4px;
  box-shadow: 0 0 0 2px var(--dm-gold);
}
.v2-prompt .ch.is-bad {
  background: #ffd5da;
  color: var(--dm-bad);
  border-radius: 4px;
  box-shadow: 0 0 0 2px #ffd5da;
  animation: dm-shake 0.18s linear 1;
}
@keyframes dm-shake {
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}
.v2-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
  pointer-events: none;
}
.v2-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  font-weight: 650;
  color: var(--dm-ink-soft);
}
.v2-status.is-warn {
  color: var(--dm-bad);
}
.v2-play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}
@media (max-width: 560px) {
  .v2-play-actions .v2-btn {
    flex: 1 1 100%;
  }
}
.v2-pause {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 255, 0.94);
  font-weight: 800;
  text-align: center;
  padding: 20px;
  font-family: var(--dm-font);
  font-size: 1.15rem;
  line-height: 1.4;
}
.v2-prompt.is-paused .v2-pause {
  display: flex;
}
.v2-physical-tip {
  display: none;
  margin: 0 0 12px;
  background: #fff1c2;
  color: #5d4300;
  padding: 10px 14px;
  border-radius: var(--dm-radius-sm);
  font-weight: 650;
}
.v2-coarse .v2-physical-tip {
  display: block;
}

/* Résultat */
.v2-result {
  margin-top: 6px;
}
.v2-result-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0 0 14px;
}
.v2-result-wpm {
  font-size: clamp(3rem, 8vw, 4.6rem);
  line-height: 1;
  font-weight: 900;
  color: var(--dm-blue-700);
  font-variant-numeric: tabular-nums;
}
.v2-result-unit {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dm-ink-soft);
}
.v2-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.v2-result-grid > div {
  background: var(--dm-card-soft);
  border-radius: var(--dm-radius-sm);
  padding: 10px 14px;
}
.v2-result-grid dt {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--dm-ink-soft);
}
.v2-result-grid dd {
  margin: 2px 0 0;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--dm-ink);
}
.v2-notice {
  background: var(--dm-card-soft);
  border-left: 5px solid var(--dm-blue-500);
  border-radius: 0 var(--dm-radius-sm) var(--dm-radius-sm) 0;
  padding: 12px 14px;
  margin: 10px 0;
  font-weight: 600;
  color: var(--dm-ink);
}
.v2-notice--ok {
  border-color: var(--dm-ok);
  background: #e3f8ef;
}
.v2-notice--warn {
  border-color: var(--dm-gold-strong);
  background: #fff6d6;
}
.v2-ach {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0;
}
.v2-ach li {
  background: var(--dm-gold);
  color: var(--dm-gold-ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 14px;
}
.v2-xpbar {
  height: 10px;
  border-radius: 999px;
  background: var(--dm-line-dark);
  overflow: hidden;
  margin: 6px 0 2px;
}
.v2-xpbar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--dm-gold), var(--dm-gold-strong));
}

/* Texte source (SEO) : sur bande claire */
.v2-source blockquote {
  margin: 12px 0 0;
  padding: 16px 20px;
  border-left: 6px solid var(--dm-gold);
  background: #fff;
  color: var(--dm-ink);
  border-radius: 0 var(--dm-radius-sm) var(--dm-radius-sm) 0;
  box-shadow: var(--dm-shadow-sm);
  white-space: pre-line;
  font-size: 1.05rem;
}
.v2-source cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--dm-ink-soft);
}
.v2-source cite a {
  color: var(--dm-blue-700);
}

/* Défis / textes (liste) */
.v2-part {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 6px solid var(--accent, var(--dm-blue-500));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v2-part .v2-h3 a {
  text-decoration: none;
}
.v2-part .v2-h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--dm-radius);
}
.v2-part-num {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--dm-blue-600));
}
.v2-part:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--accent, var(--dm-gold)), var(--dm-shadow);
}
.v2-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 22px;
  border-left: 8px solid var(--dm-gold);
}
.v2-teaser .v2-h3 {
  margin: 0;
}
.v2-teaser a {
  text-decoration-thickness: 2px;
}
.v2-count {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--dm-ink-soft);
}
.v2-note {
  margin-top: 26px;
}

/* Filtres */
.v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(23, 67, 187, 0.1);
  border-radius: var(--dm-radius);
  box-shadow: var(--dm-shadow-sm);
}
.v2-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dm-ink-soft);
}
.v2-filters select {
  font: inherit;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 2px solid var(--dm-line-dark);
  background: #fff;
  color: var(--dm-ink);
  min-width: 160px;
}
@media (max-width: 560px) {
  .v2-filters label,
  .v2-filters select,
  .v2-filters .v2-btn {
    width: 100%;
  }
}

.v2-pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
}

/* ───────── Pied de page ───────── */
.v2-footer {
  position: relative;
  margin-top: calc(var(--dm-band-r) * -1);
  border-radius: var(--dm-band-r) var(--dm-band-r) 0 0;
  background: linear-gradient(180deg, #123aa6 0%, var(--dm-blue-900) 100%);
  padding: 46px 0 40px;
  color: var(--dm-on-blue-soft);
  box-shadow: 0 -10px 28px rgba(8, 28, 100, 0.25);
}
.v2-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
}
.v2-footer-brand img {
  width: 34px;
  height: 31px;
}
.v2-footer-brand em {
  font-style: normal;
  color: var(--dm-gold);
}
.v2-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0 0 14px;
  padding: 0;
}
.v2-footer a {
  color: #fff;
  font-weight: 650;
}
.v2-footer p {
  margin: 4px 0;
}

/* ───────── Mobile : respirations plus serrées, jamais de débordement horizontal ───────── */
@media (max-width: 560px) {
  :root {
    --dm-band-r: 28px;
  }
  .v2-wrap {
    padding: 0 16px;
  }
  .v2-band {
    padding: 40px 0 78px;
  }
  .v2-pagehead {
    padding: 22px 0 60px;
  }
  .v2-card {
    padding: 18px;
  }
  .v2-sec-head .v2-btn {
    width: 100%;
  }
  body.v2::before {
    background-size: 380px 272px;
    opacity: 0.18;
  }
  .v2-lead {
    font-size: 1.06rem;
  }
}
.v2-main,
.v2-band,
.v2-card {
  min-width: 0;
}
.v2-card h3,
.v2-card p {
  overflow-wrap: anywhere;
}

/* ───────── Réduction des animations ───────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .v2-family:hover,
  .v2-game:hover,
  .v2-part:hover {
    transform: none;
  }
}

/* Impression : lisibilité du texte source uniquement */
@media print {
  body.v2 {
    background: #fff;
    color: #000;
  }
  .v2-header,
  .v2-footer,
  body.v2::before,
  .v2-hero::before,
  .v2-pagehead::before {
    display: none;
  }
  .v2-band {
    box-shadow: none;
    margin-top: 0;
    background: #fff;
  }
}


/* Four distinct ways to start: symmetric two-by-two activity cards.
   The guided path has two genuine choices, never an empty third column. */
:root body #activites .dm-tile-grid,
:root body.v2-learning-path #choisir .dm-tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 650px) {
  :root body #activites .dm-tile-grid,
  :root body.v2-learning-path #choisir .dm-tile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* SSR header identity has its final geometry before JavaScript hydrates. */
a[data-nav="account"][data-dm-header-ssr] { display: inline-flex; align-items: center; gap: 8px; }
