

:root { color-scheme: dark;
  --ink: #FFFFFF; --muted: #C3B4EA; --bg: #170734; --card: rgba(255, 255, 255, .06); --soft: rgba(255, 255, 255, .1); --line: rgba(255, 255, 255, .12);
  --blue: #FF3EA5; --blue-dark: #7556F2; --blue-soft: rgba(255, 62, 165, .15); --amber: #C7F36A; --amber-soft: #FEF3C7; --gold: #FDE68A; --gold-ink: #713F12;
  --radius: 10px; --radius-sm: 8px; --shadow: 0 8px 24px rgba(54, 38, 22, .08); --wrap: 1200px;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --font-title: 'Rubik', system-ui, sans-serif; --mono: Inter, system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Fond violet profond avec deux halos (violet en haut a gauche, bleu a droite), fixe pendant le defilement. */
body { min-height: 100vh; margin: 0; color: #fff; font-family: var(--font-body); line-height: 1.55;
  background: radial-gradient(900px 600px at 15% -10%, #4B1590 0%, transparent 60%), radial-gradient(800px 600px at 100% 30%, #0E3A7A 0%, transparent 60%), #170734; background-attachment: fixed; }
:root h1, :root h2, :root h3 { font-family: var(--font-title); font-weight: 800; line-height: 1.2; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 12px; }
/* Ordinateur : le contenu s'ecarte de la colonne des rubriques (210 px) et prend toute la largeur restante. */
@media (min-width: 1000px) { :root main.wrap { max-width: none; margin-left: 210px; padding: 20px 28px 0; } }
.small { font-size: 13px; color: #C9BDEB; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Animations communes (formes des vignettes sans image, fete des badges, fenetre de sortie) */
@keyframes wgg-bounce { to { transform: translateY(140%); } }
@keyframes wgg-slide { from { left: 8%; } to { left: 66%; } }
@keyframes wgg-spin { to { transform: rotate(360deg); } }
@keyframes wgg-pulse { 0%, 100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes wgg-fall { to { top: 100%; } }
@keyframes bdg-spin { to { transform: rotate(360deg); } }
@keyframes bdg-pop { to { transform: none; opacity: 1; } }
@keyframes bdg-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) scale(1.1); } }
@keyframes la-in { from { opacity: 0; } to { opacity: 1; } }

/* ══ Pages de texte (a propos, contact, confidentialite, conditions, mentions, cookies) : colonne de lecture ══ */
.page-text { max-width: 820px; margin: 0 auto; padding: 8px 16px 24px; }
.page-text h1 { font-size: 34px; }
.page-text h2 { margin-top: 30px; font-size: 22px; }

/* ══════════════════════════════════════════════════════════════════════════════════════════════════════════════
   FENETRE DE JEU, INTERIEUR (.game-stage) - partage avec l'agent jeux (engine.js) : ne pas modifier sans le prevenir.
   L'interieur reste CLAIR (les plateaux sont dessines pour un fond clair) : variables de couleur claires, texte fonce,
   decor doux aux couleurs du jeu (--c). Pendant la partie, la scene prend la taille du jeu (le moteur l'agrandit a la
   place de l'ecran) ; l'ecran des niveaux garde une hauteur minimale.
   ══════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
.game-stage { position: relative; overflow: hidden; min-height: 480px; border: 0; border-radius: 22px; background: var(--card); box-shadow: 0 12px 34px rgba(54, 38, 22, .09); }
:root .game-stage, :root .game-stage:not(.wgg-choosing) { --ink: #141826; --muted: #4B5570; --card: #fff; --line: #ECE4F6; --soft: #F3EEFA; color: #141826; }
:root .game-stage a { color: #1D4ED8; }
:root .game-stage h1, :root .game-stage h2, :root .game-stage h3 { color: #141826; text-shadow: none; }
.game-frame .game-stage { display: flex; flex-direction: column; min-height: clamp(520px, 72vh, 760px); border: 0; border-radius: 0; box-shadow: none; color-scheme: light;
  background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--c) 16%, #fff) 0%, transparent 70%), radial-gradient(70% 60% at 100% 100%, color-mix(in srgb, var(--c) 10%, #fff) 0%, transparent 70%), #FBFAFE; }
.game-frame .game-stage.wgg-choosing { display: grid; }
.game-frame .game-stage:not(.wgg-choosing) { min-height: 0; }
.game-frame .wgg-play { flex: none; width: 100%; margin: auto 0; padding: 18px 20px 10px; }
.game-frame .game-stage:not(.wgg-choosing) .wgg-play { margin: 0; }
.game-frame .wgg-bar { border-bottom: 1px solid rgba(20, 24, 38, .06); background: rgba(255, 255, 255, .55); }
.game-frame .wgg-bar .wgg-ib { border: 0; background: #fff; color: #141826; box-shadow: 0 1px 0 rgba(20, 24, 38, .06), 0 1px 4px rgba(20, 24, 38, .1); }
.game-frame .wgg-bar .wgg-ib:hover { background: #F3F1F8; }
.game-frame .wgg-bar .wgg-clock { padding: 6px 9px; border-radius: 6px; background: #fff; color: #141826; text-align: center; box-shadow: 0 1px 0 rgba(20, 24, 38, .06), 0 2px 8px rgba(20, 24, 38, .08); }
.game-frame .wgg-bar .wgg-clock::before { content: '⏱'; margin-right: 5px; font-size: 13px; }
.game-frame .wgg-feedback { padding-bottom: 16px; }
@media (max-width: 640px) {
  .game-stage { min-height: 360px; border-radius: 18px; }
  /* Page de jeu sur telephone : pas de recherche ni de fil d'Ariane, le cadre colle aux bords. */
  body:has(.game-frame) .site-header:not(.search-open) .search-form { display: none; }
  body:has(.game-frame) .crumb-row { display: none; }
  body:has(.game-frame) main.wrap { padding-top: 8px; }
  .game-frame .wgg-bar .wgg-clock { padding: 6px 7px; }
  .game-frame .wgg-bar .wgg-clock::before { display: none; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 8px;
  font: 600 15px var(--font-body); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn:hover { color: #fff; }
.btn-blue, .btn-dark, .bdg-ok { background: linear-gradient(120deg, #FF3EA5, #8B3DFF); color: #fff; box-shadow: 0 0 22px rgba(255, 62, 165, .45); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
@media (hover: hover) {
  .btn:hover, .bdg-ok:hover { transform: translateY(-1px); filter: brightness(1.12); }
  .btn-ghost:hover { background: rgba(255, 255, 255, .16); filter: none; }
}
.btn-sm, .save-note .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-icon, .save-note [data-save-close] { width: 32px; min-height: 32px; padding: 0; font-size: 0; }
.save-note [data-save-close]::before { content: '✕'; font-size: 14px; line-height: 1; }
@media (max-width: 640px) { .site-header .btn { min-height: 40px; padding: 0 11px; font-size: 13.5px; } }
@media (max-width: 420px) { .site-header .btn { padding: 0 10px; } }
/* Bouton de la fete d'un badge (« Continue ») : principal, centre sous la medaille. */
.bdg-ok { position: relative; display: block; min-height: 44px; margin: 0 auto; padding: 0 22px; border: 0; border-radius: 8px; font: 600 15px var(--font-body); cursor: pointer; }

.save-note { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 8px;
  padding: 4px 8px 4px 14px; background: rgba(255, 61, 127, .12); border-bottom: 1px solid rgba(255, 61, 127, .3); color: #FFD3E6; font-weight: 600; font-size: 13px; }
.save-note[hidden] { display: none; }
.save-note span { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-note .btn { flex: none; }
.save-note [data-save-close] { order: 3; }
@media (max-width: 640px) {
  .save-note { justify-content: space-between; gap: 6px; padding: 5px 5px 5px 12px; font-size: 12px; }
  .save-note span { flex: 1 1 auto; }
}

/* ── Fenetre « Leave this game? » (confirmation avant de quitter une partie en cours, player.js) ──
   Carte sombre comme le reste du site ; « Keep playing » est le bouton principal (on protege la partie), « Leave » le secondaire. */
.leave-ask { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(10, 8, 30, .6); backdrop-filter: blur(3px); animation: la-in .18s ease; }
.la-card { width: min(400px, 100%); padding: 24px 24px 20px; border-radius: 12px; text-align: center; color: #fff;
  background: #22104A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .5); }
.la-card h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.la-card p { margin: 0 0 18px; color: #C9BDEB; line-height: 1.45; }
.la-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .leave-ask { animation: none; } }

a { color: #7DF0FF; text-decoration: none; }
a:hover { color: #B5F7FF; text-decoration: underline; text-underline-offset: 3px; }
.prose a, .page-text a, .game-facts p a, .game-facts dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.breadcrumb a { color: #A99BD2; }
.breadcrumb a:hover { color: #fff; }
.btn:hover { text-decoration: none; }

.nav-all { --k: #3B82F6; } .nav-puzzle { --k: #F97316; } .nav-strategy { --k: #F43F5E; }
.nav-memory { --k: #A855F7; } .nav-words { --k: #10B981; } .nav-creative { --k: #EC4899; } .nav-cards { --k: #22C55E; }
.catnav { position: fixed; z-index: 15; margin: 0; background: rgba(14, 5, 34, .92); backdrop-filter: blur(10px); }
.catnav .wrap { display: flex; flex-wrap: nowrap; max-width: none; overflow-x: auto; scrollbar-width: none; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { display: flex; align-items: center; color: #E2DCFF; font-weight: 600; text-decoration: none; border-radius: 8px; transition: background .15s, color .15s; }
.catnav a svg { flex: none; color: var(--k); background: none; }
.catnav a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.catnav a[aria-current] { background: rgba(255, 255, 255, .1); color: #fff; }
@media (min-width: 1000px) {
  .catnav { top: 65px; left: 0; bottom: 0; width: 210px; border-right: 1px solid rgba(255, 255, 255, .1); overflow-y: auto; }
  .catnav .wrap { flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 10px; overflow: visible; }
  .catnav a { gap: 8px; min-height: 44px; padding: 0 10px 0 4px; font-size: 14.5px; }
  .catnav a svg { width: 30px; height: 30px; padding: 6px; }
  .catnav a small { margin-left: auto; font-size: 12px; font-weight: 700; color: #8D88AE; }
}
@media (max-width: 999px) { .catnav { display: none; } }

/* ══ CONNEXION ABSENTE (classe no-signin, posee par site/gabarits.mjs) ══
   Tant que la connexion Google n'est pas branchee (googleClientId vide), le site en ligne ne montre aucun bouton ni
   appel a se connecter : ni la partie « Sign in » du panneau du compte, ni l'onglet « Sign in » de la barre du bas, ni
   les boutons des pages Progression et Classement. Le bandeau de progression du jeu suit la meme regle (player.js). */
.no-signin [data-signin], .no-signin [data-signin-only], .no-signin .tab-acct { display: none !important; }

[data-profile-page] h2 { margin: 30px 0 12px; font-size: 21px; }
.pf-empty > p { margin: 0 0 6px; color: #C9BDEB; font-size: 17px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pf-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pf-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A99BD2; }
.pf-v { font: 800 30px/1.1 var(--font-title); color: #fff; }
.pf-s { font-size: 13px; color: #A99BD2; }
.pf-stat .level { width: 100%; height: 6px; margin: 4px 0 2px; background: rgba(255, 255, 255, .1); }
.pf-stat .level span { background: linear-gradient(90deg, #FF3EA5, #8B3DFF); }
.pf-games { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.pf-game { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "img name nums" "img medals nums"; align-items: center; gap: 2px 14px; padding: 10px 14px 10px 10px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background .15s; }
.pf-game:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.pf-img { grid-area: img; width: 56px; height: 56px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(155deg, color-mix(in srgb, var(--c) 45%, #fff), color-mix(in srgb, var(--c) 85%, #111)); }
.pf-img img { width: 78%; height: 78%; object-fit: contain; }
.pf-name { grid-area: name; font: 800 16px var(--font-title); }
.pf-game .bdg-row { grid-area: medals; padding: 0; }
.pf-nums { grid-area: nums; display: flex; gap: 14px; text-align: center; }
.pf-nums small { display: block; font-size: 11px; color: #A99BD2; }
.pf-nums b { font: 800 17px var(--font-title); }
.pf-sign { margin-top: 18px; color: #C9BDEB; font-size: 14px; }
.pf-sign .btn { margin: 0 4px; vertical-align: middle; }
@media (max-width: 640px) { .pf-stats { grid-template-columns: 1fr 1fr; } .pf-v { font-size: 24px; } .pf-games { grid-template-columns: 1fr; } }

/* ── PAGE CLASSEMENT (/leaderboard/, remplie par player.js) : memes cartes d'information que My progress (.pf-stat),
   puis la liste de la semaine (rang, nom, points) quand le serveur repond, ou une phrase et deux actions. ── */
.lb-stats { max-width: 520px; }
.lb-msg { margin: 18px 0 14px; max-width: 640px; color: #C9BDEB; }
.lb-act { display: flex; flex-wrap: wrap; gap: 10px; }
.lb-list { list-style: none; margin: 20px 0 0; padding: 0; max-width: 640px; display: grid; gap: 6px; }
.lb-list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.lb-r { width: 28px; font: 800 18px var(--font-title); color: #A99BD2; text-align: center; }
.lb-list li:nth-child(-n+3) .lb-r { color: #FFD166; }
.lb-p { margin-left: auto; font-weight: 700; color: #fff; }

body { display: flex; flex-direction: column; }
/* Marges automatiques interdites ici : dans une colonne flex, elles feraient prendre au contenu sa largeur naturelle. */
body > main.wrap { flex: 1 0 auto; margin-right: 0; margin-left: 0; max-width: none; }
@media (min-width: 1000px) { body > main.wrap { margin-left: 210px; } }
.site-footer { margin-top: 40px; padding: 34px 0 28px; background: rgba(0, 0, 0, .3); border-top: 1px solid rgba(255, 255, 255, .06); }
.site-footer .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; align-items: start; max-width: none; padding: 0 28px; color: #C3B4EA; font-size: 14px; }
.foot-brand p { margin: 10px 0 0; max-width: 300px; font-size: 14px; line-height: 1.5; color: #A99BD2; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col b { margin-bottom: 2px; font: 700 14px var(--font-title); color: #fff; }
.foot-col a { color: #C3B4EA; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.site-footer .lang { display: flex; gap: 8px; align-items: center; }
/* Choix de la langue : liste du navigateur, habillee comme un champ du site (coins 8 px, fleche dessinee). */
.site-footer select { min-height: 40px; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); font: 600 14px var(--font-body); color: #fff; cursor: pointer;
  -webkit-appearance: none; appearance: none; background: #24104A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C3B4EA' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; }
.site-footer select:hover { border-color: rgba(255, 255, 255, .4); }
@media (min-width: 1000px) { .site-footer { margin-left: 210px; } }
@media (max-width: 640px) {
  .site-footer { margin-top: 34px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .foot-brand { grid-column: 1 / -1; }
}
/* Barre des rubriques fixee en bas (< 1000 px) : le pied de page se prolonge dessous (son fond va jusqu'en bas) au
   lieu de laisser une bande vide sous lui. */
@media (max-width: 999px) { .site-footer { padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom)); } }

.tile { position: relative; display: block; overflow: hidden; border-radius: 12px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #12052B) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover { color: #fff; text-decoration: none; }
/* Une vignette marquee hidden (ex. le jeu du jour retire des jeux d'a cote, site.js) disparait vraiment. */
.tile[hidden] { display: none; }
@media (hover: hover) {
  .tile:hover { z-index: 3; transform: translateY(-4px); box-shadow: inset 0 0 0 2px #7DF0FF, 0 0 26px rgba(125, 240, 255, .55), 0 14px 30px rgba(0, 0, 0, .45); }
}
.tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 43%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(10, 13, 24, .68)); }
.tile .thumb, .pv { position: absolute; left: 10%; top: 9%; width: 80%; height: 68%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .28)); }
.tile .thumb { transition: opacity .35s ease; }
.pv { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.tile.playing .pv { opacity: 1; }
.tile.playing .thumb { opacity: 0; }
.tile .name { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 9px; font: 800 14px/1.12 var(--font-title); text-shadow: 0 1px 2px rgba(0, 0, 0, .42); }
.tile.playing .name { right: auto; text-shadow: none; }
.tile .tag { position: absolute; z-index: 2; top: 7px; left: 7px; padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(17, 24, 39, .56); backdrop-filter: blur(4px); }
.tile .progress { position: absolute; z-index: 2; top: 8px; right: 8px; display: flex; gap: 4px; padding: 5px 7px; border-radius: 6px; background: rgba(12, 10, 28, .6); }
.tile .progress i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: rgba(255, 255, 255, .25); }
.tile .progress i.on.g-bronze { background: #f0a868; box-shadow: 0 0 6px #f59e4b; }
.tile .progress i.on.g-silver { background: #e2e8f0; box-shadow: 0 0 6px #e2e8f0; }
.tile .progress i.on.g-gold { background: #fcd34d; box-shadow: 0 0 6px #fbbf24; }
.tile .progress i.on.g-diamond { background: linear-gradient(135deg, #67e8f9, #c4b5fd, #f0abfc); box-shadow: 0 0 6px #a78bfa; }
.art { position: absolute; inset: 0; }
.art i { position: absolute; display: block; background: rgba(255, 255, 255, .85); }
.a-bounce i { width: 22%; aspect-ratio: 1; border-radius: 50%; left: 39%; top: 12%; animation: wgg-bounce 1.4s ease-in infinite alternate; }
.a-bounce i + i { width: 60%; height: 5%; border-radius: 4px; left: 20%; top: 72%; animation: none; opacity: .6; }
.a-slide i { width: 26%; height: 16%; border-radius: 6px; top: 30%; left: 10%; animation: wgg-slide 2.2s ease-in-out infinite alternate; }
.a-slide i + i { top: 52%; animation-delay: -1.1s; opacity: .65; }
.a-spin i { width: 30%; aspect-ratio: 1; border-radius: 18%; left: 35%; top: 18%; animation: wgg-spin 3s linear infinite; }
.a-pulse i { width: 18%; aspect-ratio: 1; border-radius: 50%; top: 30%; animation: wgg-pulse 1.6s ease-in-out infinite; }
.a-pulse i:nth-child(1) { left: 18%; } .a-pulse i:nth-child(2) { left: 41%; animation-delay: .25s; } .a-pulse i:nth-child(3) { left: 64%; animation-delay: .5s; }
.a-fall i { width: 16%; aspect-ratio: 1; border-radius: 4px; top: -20%; animation: wgg-fall 2s linear infinite; }
.a-fall i:nth-child(1) { left: 20%; } .a-fall i:nth-child(2) { left: 44%; animation-delay: .7s; } .a-fall i:nth-child(3) { left: 68%; animation-delay: 1.3s; }
.a-grid i { width: 22%; aspect-ratio: 1; border-radius: 6px; animation: wgg-pulse 2.4s ease-in-out infinite; }
.a-grid i:nth-child(1) { left: 24%; top: 16%; } .a-grid i:nth-child(2) { left: 52%; top: 16%; animation-delay: .6s; } .a-grid i:nth-child(3) { left: 38%; top: 46%; animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) { .art i { animation: none !important; } .tile { transition: none; } }

.site-header { position: sticky; top: 0; z-index: 20; padding: 10px 0; background: rgba(14, 5, 34, .96); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: none; padding: 0 20px; }
@media (min-width: 1000px) {
  .site-header > .wrap { display: grid; grid-template-columns: 180px minmax(0, 460px) 1fr auto; gap: 10px; }
  .site-header .search-form { max-width: none; }
  .site-header .logo { justify-self: start; }
  .site-header .acct { grid-column: 4; justify-self: end; }
}
@media (max-width: 640px) { .site-header .wrap { gap: 8px; } }

/* ── Compte : bouton de l'en-tete et panneau (player.js) ── */
.acct { position: relative; margin-left: auto; }
.acct-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px 0 6px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  font: 600 14.5px var(--font-body); color: #fff; background: rgba(255, 255, 255, .06); cursor: pointer; transition: background .15s; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .13); }
.acct-av { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; font: 800 13px var(--font-title); color: #fff; background: rgba(255, 255, 255, .12); }
.acct-av svg { width: 19px; height: 19px; }
.acct-av.on, .acct-me .acct-av { background: linear-gradient(140deg, #FF3EA5, #8B3DFF); }
.acct-chev { width: 16px; height: 16px; color: #A99BD2; transition: transform .2s; }
.acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-panel { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 330px; padding: 16px; border-radius: 12px; color: #fff;
  background: #22104A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .5); }
.acct-panel[hidden], .acct-panel [hidden] { display: none; }
.acct-me { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.acct-me .acct-av { width: 44px; height: 44px; font-size: 16px; }
.acct-me > div { flex: 1; min-width: 0; }
.acct-me b { display: block; font: 800 17px var(--font-title); }
.acct-me [data-a="level"] { display: block; font-size: 13px; color: #A99BD2; }
.level { width: 150px; height: 9px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: var(--soft); }
.level span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7E22CE); }
.acct-me .level { width: 100%; height: 6px; }

.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.acct-stats > div { padding: 9px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.acct-stats dt { font-size: 11.5px; line-height: 1.25; color: #A99BD2; }
.acct-stats dd { margin: 2px 0 0; font: 800 20px var(--font-title); }
.acct-quest { margin: 0 0 12px; font-size: 14px; line-height: 1.4; color: #C9BDEB; }
.acct-quest b { display: block; font-size: 12px; color: #A99BD2; }
.acct-quest a { color: #fff; }
.acct-rw { color: #7DF0FF; font-weight: 700; white-space: nowrap; }
.acct-empty { margin: 0 0 12px; font-size: 14px; color: #C9BDEB; }
.acct-links { display: flex; flex-direction: column; margin: 0 -8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.acct-links a { padding: 9px 8px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: #fff; text-decoration: none; }
.acct-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.acct-sign { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.acct-sign p { margin: 0 0 10px; font-size: 13.5px; color: #C9BDEB; }
.acct-sign .btn { width: 100%; }

/* ── Barre du bas (.tabbar), tablette et telephone : quatre onglets, icone au-dessus du nom ; onglet de la page en
   blanc, les autres en gris ; point rose sur « Sign in » quand un joueur a des points sans etre connecte. ── */
.tabbar { display: none; }
@media (max-width: 999px) {
  .acct { position: static; margin-left: auto; }
  .acct-btn { display: none; }
  .acct-panel { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom)); width: auto; max-width: 420px; margin: 0 auto; max-height: calc(100vh - 150px); overflow: auto; }
  .tabbar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(14, 5, 34, .96); border-top: 1px solid rgba(255, 255, 255, .1); }
  .tabbar > a, .tabbar > button { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px;
    border: 0; border-radius: 8px; font: 600 11.5px var(--font-body); color: #A9A4C6; background: none; text-decoration: none; cursor: pointer; }
  .tabbar svg { width: 25px; height: 25px; }
  .tabbar [aria-current], .tabbar [aria-expanded="true"] { color: #fff; }
  .tabbar > a:hover { color: #fff; text-decoration: none; }
  .tab-dot { position: absolute; top: 5px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: #FF3EA5; box-shadow: 0 0 0 2px #0E0522; }
  .tab-dot[hidden] { display: none; }
}
@media (max-width: 640px) {
  .site-header .search-form { display: none; }
  .site-header.search-open .search-form { display: flex; }
}

.logo { --f: 17px; display: inline-flex; flex-direction: column; align-items: stretch; flex: none; color: #fff; font-family: 'Bungee', var(--font-title); font-weight: 400; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
.logo:hover { color: #fff; text-decoration: none; }
.logo em { font-style: normal; }
.logo .c1 { color: #FF9A2E; } .logo .c2 { color: #FF4F8B; } .logo .c3 { color: #B48BFF; }
.logo-l1 { display: flex; align-items: center; justify-content: space-between; font-size: calc(var(--f) * 1.7); line-height: .82; }
.logo-l1 img { width: auto; height: .75em; margin-right: .16em; image-rendering: pixelated; transition: transform .25s ease; }
.logo:hover .logo-l1 img { transform: scale(1.12) rotate(-6deg); }
.logo-l2 { display: block; margin-top: .14em; font-size: var(--f); line-height: .82; }
.foot-brand .logo { --f: 19px; }
@media (max-width: 640px) { .logo { --f: 15px; } }
@media (max-width: 420px) { .logo { --f: 14px; } }

/* ── Recherche (site.js) : champ sombre a loupe ; les suggestions s'ouvrent dessous dans une carte sombre (vignette
   du jeu, nom, rubrique, puis « See all results »). ── */
.search-form { position: relative; display: flex; flex: 1 1 220px; max-width: 420px; }
.search-form .search { flex: 1; width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 8px; font: inherit; color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A99BD2' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 13px 50% / 18px; }
.search-form .search::placeholder { color: #8D88AE; }
.search-form .search:focus { outline: none; border-color: #FF3EA5; box-shadow: 0 0 0 3px rgba(255, 62, 165, .2); }
@media (max-width: 640px) { .search-form { order: 5; flex-basis: 100%; max-width: none; } .search-form .search { min-height: 40px; } }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 70vh; overflow: auto; margin: 0; padding: 6px; list-style: none;
  border-radius: 12px; background: #22104A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px rgba(0, 0, 0, .5); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; color: #fff; text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.suggest .sg-img { display: flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px;
  background: radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--c) 40%, #fff), var(--c)); }
.suggest .sg-img img { width: 78%; height: 78%; object-fit: contain; }
.suggest b { display: block; font: 800 15px var(--font-title); }
.suggest small { font-size: 12px; color: #A99BD2; }
.suggest .sg-all { justify-content: center; font-size: 14px; font-weight: 600; color: #7DF0FF; }
.suggest .sg-none { padding: 10px; font-size: 14px; color: #A99BD2; }

.medal { --s: 56px; --m: #8a8f9e, #e5e7eb, #9ca3af, #f8fafc, #8a8f9e; --g: rgba(148, 163, 184, .5); position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); }
.medal.sm { --s: 30px; } .medal.xs { --s: 26px; } .medal.big { --s: 150px; }
.m-bronze { --m: #7a3e12, #e8a462, #a0561f, #f6c592, #7a3e12; --g: rgba(245, 158, 75, .55); }
.m-silver { --m: #64748b, #f1f5f9, #94a3b8, #ffffff, #64748b; --g: rgba(203, 213, 225, .6); }
.m-gold { --m: #8a5a00, #ffe27a, #c08a12, #fff6c2, #8a5a00; --g: rgba(251, 191, 36, .6); }
.m-diamond { --m: #22d3ee, #a78bfa, #f0abfc, #67e8f9, #ffffff, #22d3ee; --g: rgba(167, 139, 250, .65); }
.medal::before, .medal .face { clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%); }
.m-bronze::before, .m-bronze .face { clip-path: circle(50%); }
.m-silver::before, .m-silver .face { clip-path: inset(3% round 26%); }
.m-diamond::before, .m-diamond .face { clip-path: polygon(30% 2%, 70% 2%, 98% 30%, 98% 70%, 70% 98%, 30% 98%, 2% 70%, 2% 30%); }
.medal::before { content: ''; position: absolute; inset: 0; background: conic-gradient(from 200deg, var(--m)); }
.medal .face { --c0: var(--c, #6D28D9); position: absolute; inset: 11%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(130% 110% at 50% 0%, color-mix(in srgb, var(--c0) 40%, #fff) 0%, var(--c0) 55%, color-mix(in srgb, var(--c0) 70%, #000) 100%); }
.medal .face img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
/* Reflet qui traverse la medaille au survol (et a la fete). */
.medal .face::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%); transform: translateX(-70%); transition: transform .7s ease; }
@media (hover: hover) { .medal:hover .face::after, .bdg:hover .medal .face::after { transform: translateX(70%); } }
.medal.on { filter: drop-shadow(0 4px 10px var(--g)); }
.medal:not(.on)::before { filter: saturate(.45) brightness(1.15); opacity: .7; }
.medal:not(.on) .face { background: radial-gradient(130% 110% at 50% 0%, color-mix(in srgb, var(--c0) 25%, #fff) 0%, color-mix(in srgb, var(--c0) 55%, #9a948c) 60%, color-mix(in srgb, var(--c0) 40%, #4a4550) 100%); }
.medal:not(.on) .face img { filter: saturate(.35) brightness(.95); opacity: .85; }
.medal .lock { position: absolute; right: -2px; bottom: -2px; width: 38%; height: 38%; padding: 7%; border-radius: 50%; background: #fff; color: #5B4A8A; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3); }
.medal.sm .lock, .medal.xs .lock { display: none; }
.medal.sm:not(.on), .medal.xs:not(.on) { opacity: .8; }

/* Paliers (texte) : couleurs claires, lisibles sur le fond sombre. */
.t-bronze { color: #F0A868; } .t-silver { color: #CBD5E1; } .t-gold { color: #FCD34D; } .t-diamond { color: #C4B5FD; }

/* Bloc « Badges in this game » (page de jeu) et badges du joueur (My progress) */
.bdg-box { position: relative; overflow: hidden; padding: 16px 14px 14px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.bdg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.bdg-head h2 { margin: 0; font: 700 11px var(--mono); letter-spacing: .26em; text-transform: uppercase;
  background: linear-gradient(120deg, #F97316, #EC4899 60%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bdg-head span, .bdg-foot { font: 700 11px var(--mono); letter-spacing: .12em; color: #A99BD2; }
.bdg-foot { margin-top: 8px; text-align: right; }
.bdg-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bdg-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding: 12px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.bdg { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 8px; transition: background .2s; }
.bdg.on { background: rgba(255, 255, 255, .08); }
.bdg b { display: block; font: 700 15px/1.2 var(--font-title); color: #fff; }
.bdg p { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: #C9BDEB; }
.bdg .bt { display: inline-block; margin-top: 2px; font: 700 9.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.bdg-row { display: flex; gap: 4px; padding: 6px 0; }
/* Barre de progression vers un badge */
.bp { position: relative; height: 16px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.bp[hidden] { display: none; }
.bp i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6); }
.bp span { position: relative; display: block; text-align: center; font: 700 10px/16px var(--mono); letter-spacing: .06em; color: #fff; }

/* Rangee de medailles dans la barre sous le jeu (seulement quand la colonne des badges passe sous le jeu) */
.badge-strip { display: inline-flex; gap: 4px; margin-left: auto; padding: 5px 10px 5px 6px; border-radius: 8px; text-decoration: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.badge-strip .medal { transition: transform .2s; }
.badge-strip:hover .medal { transform: translateY(-2px); }
@media (min-width: 920px) { .badge-strip { display: none; } }
@media (max-width: 640px) { .badge-strip { margin-left: 0; padding: 4px 8px 4px 5px; } }

/* Fete d'un badge (player.js) : voile sombre flou, rayons a la couleur du palier (--tc), medaille qui arrive en
   tournant, etincelles, nom, points gagnes (recompense : la seule vraie lueur avec les boutons principaux). */
.bdg-pop { --tc: #fbbf24; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; cursor: pointer; background: rgba(5, 4, 14, 0); transition: background .35s, backdrop-filter .35s; }
.bdg-pop.t-bronze { --tc: #f59e4b; } .bdg-pop.t-silver { --tc: #94A3B8; } .bdg-pop.t-diamond { --tc: #c4b5fd; }
.bdg-pop.in { background: rgba(14, 4, 34, .88); backdrop-filter: blur(6px); }
.bdg-pop.out { opacity: 0; transition: opacity .3s; }
.bdg-card { position: relative; width: min(380px, 92vw); text-align: center; color: #fff; opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .35s; }
.bdg-pop.in .bdg-card { opacity: 1; transform: none; }
.bdg-rays { position: absolute; left: 50%; top: 95px; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; animation: bdg-spin 16s linear infinite;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, color-mix(in srgb, var(--tc) 40%, transparent) 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%); }
.bdg-card .medal.big { z-index: 1; margin: 20px auto 22px; opacity: 0; transform: scale(.2) rotate(-30deg); filter: drop-shadow(0 0 24px var(--g)) drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.bdg-pop.in .medal.big { animation: bdg-pop .8s cubic-bezier(.2, 1.5, .4, 1) .1s forwards; }
.bdg-pop.in .medal.big .face::after { transition-delay: .8s; transform: translateX(70%); }
.bdg-sparks { position: absolute; z-index: 2; left: 50%; top: 95px; width: 0; height: 0; pointer-events: none; }
.bdg-sparks i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; opacity: 0; background: var(--tc); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.bdg-pop.in .bdg-sparks i { animation: bdg-spark 1.1s ease-out calc(.35s + var(--w)) forwards; }
.bdg-kicker { position: relative; font: 700 11px var(--mono); letter-spacing: .3em; text-transform: uppercase;
  background: linear-gradient(120deg, #F97316, #EC4899 60%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bdg-name { position: relative; margin: 8px 0 6px; font: 800 34px/1.1 var(--font-title); }
.bdg-desc { position: relative; font-size: 15px; color: #C9BDEB; }
.bdg-pts { position: relative; display: inline-block; margin: 16px 0 18px; padding: 6px 16px; border-radius: 8px; font: 700 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, #f97316, #ec4899 55%, #8b5cf6); box-shadow: 0 8px 22px rgba(236, 72, 153, .4); }
@media (max-width: 640px) { .bdg-name { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .bdg-rays, .bdg-pop.in .bdg-sparks i { animation: none; } .bdg-pop.in .medal.big { animation-duration: .01s; } }

.crumb-row { display: flex; align-items: center; gap: 10px; max-width: 1420px; margin: 0 auto 12px; }
.crumb-row .breadcrumb { margin: 0; }
.breadcrumb { margin: 5px 0 8px; font-size: 14px; color: #A99BD2; }
.back-arrow { display: inline-grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #fff;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); transition: background .2s ease, transform .2s ease; }
.back-arrow svg { width: 18px; height: 18px; }
.back-arrow:hover { background: rgba(255, 255, 255, .24); transform: translateX(-2px); color: #fff; }
.back-arrow:focus-visible { outline: 3px solid #7DF0FF; outline-offset: 2px; }

.game-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 22px; max-width: 1420px; margin: 0 auto; }
.game-main { flex: 1 1 640px; min-width: 0; }
.game-side { display: flex; flex: 0 0 320px; flex-direction: column; gap: 12px; }
@media (max-width: 960px) { .game-side { flex: 1 1 100%; } }

.game-frame { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--card); box-shadow: 0 12px 34px rgba(20, 24, 38, .12), inset 0 0 0 1px var(--line); }
.game-frame > .game-stage { order: 1; }
.game-frame > .game-bar { order: 3; }
.game-frame:fullscreen { border-radius: 0; }
.game-frame:fullscreen .game-stage { flex: 1; min-height: 0; overflow: auto; }
@media (max-width: 640px) { .game-frame { margin: 0 -10px; border-radius: 10px; } }

.game-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--card); }
.gb-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); }
.gb-ico img { width: 80%; height: 80%; object-fit: contain; }
.gb-t { min-width: 0; }
.gb-t h1 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
.gb-t p { margin: 1px 0 0; overflow: hidden; font-size: 13px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.game-bar .badge-strip { display: inline-flex; margin-left: auto; box-shadow: none; }
.gb-btn { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink); cursor: pointer; }
.gb-btn svg { width: 20px; height: 20px; }
.gb-btn:hover { filter: brightness(1.08); }
@media (max-width: 640px) { .game-bar { flex-wrap: wrap; gap: 10px; padding: 10px; } .gb-t h1 { font-size: 19px; } .game-bar .badge-strip { margin-left: 0; } }

/* Emplacements publicitaires : toujours entre deux blocs, jamais sur un jeu ; invisibles tant qu'ils sont vides. */
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 24px 0; }
.ad-slot:empty { min-height: 0; margin: 0; }
.game-main > .ad-slot[data-ad="game-1"] { margin: 16px 0 6px; }
.ad-side:empty { display: none; }

.game-facts { max-width: 960px; margin: 18px auto 8px; padding: 20px 22px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.game-facts h2 { margin: 0 0 12px; font-size: 21px; }
.game-facts h3 { margin: 18px 0 8px; font-size: 16px; }
.game-facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin: 0; }
.game-facts dl > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.game-facts dt { flex: 0 0 104px; color: var(--muted); }
.game-facts dd { min-width: 0; margin: 0; font-weight: 600; }
.game-facts .chips small { margin-left: 4px; font-weight: 700; opacity: .65; }
.game-facts p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .game-facts { padding: 16px; } .game-facts dl { grid-template-columns: 1fr; } }

/* Explications (comment jouer, astuces, a propos, questions) */
.prose { max-width: 780px; }
.game-main > .prose { max-width: 960px; margin-left: auto; margin-right: auto; }
.prose h2 { margin: 28px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.prose p, .prose li { color: #C9BDEB; }
.faq details { margin-bottom: 8px; padding: 12px 16px; border-radius: 8px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.faq summary { font-weight: 600; cursor: pointer; }

/* Colonne de droite : « Play next » */
.game-side .play-next .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-side .play-next .mini .tile { aspect-ratio: 4 / 3; }
.game-side .play-next .mini .tile .name { font-size: 13px; }
@media (max-width: 960px) { .game-side .play-next .mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .game-side .play-next .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Bulle « Don't lose your progress » (comme les grands portails) : sous « Sign in », une fois par visite. */
.save-bulle { position: fixed; z-index: 90; top: 70px; right: 16px; display: flex; align-items: center; gap: 14px; width: min(400px, calc(100vw - 16px)); padding: 14px 40px 14px 14px;
  border-radius: 12px; color: #fff; background: #2A2440; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); cursor: pointer; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.save-bulle.in { opacity: 1; transform: none; }
.save-bulle.bas::before { top: auto; bottom: -7px; }
.save-bulle::before { content: ''; position: absolute; top: -7px; right: 34px; width: 14px; height: 14px; border-radius: 3px; background: #2A2440; transform: rotate(45deg); }
.sb-img { position: relative; display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, #fff), var(--c)); }
.sb-img img { width: 82%; height: 82%; object-fit: contain; }
.sb-img::after { content: '!'; position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 800 13px var(--font-title); background: #F43F5E; box-shadow: 0 0 0 3px #2A2440; }
.sb-txt b { display: block; margin-bottom: 2px; font: 700 17px var(--font-title); }
.sb-txt span { font-size: 14px; line-height: 1.4; color: #C9C3DF; }
.sb-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #C9C3DF; font-size: 16px; cursor: pointer; }
.sb-x:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── Titres de section (« New this week », « Popular games »…) et lien « See all » a droite ── */
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 0 13px; }
.section-title h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; color: #fff; }
.section-title a { font-size: 14px; font-weight: 600; color: #A9A4C6; text-decoration: none; }
@media (max-width: 640px) { .section-title { margin-top: 30px; } .section-title h2 { font-size: 21px; } }

/* ── Puces (etiquettes, rubriques) ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; background: rgba(255, 255, 255, .1); }
.chip:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); }
.chip.on, .chip[aria-current] { background: var(--blue); color: #fff; }

.pbar { display: grid; grid-template-columns: minmax(230px, 1.1fr) auto minmax(220px, 1fr) auto; align-items: center; gap: 14px 26px; margin-bottom: 22px; padding: 14px 18px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(100deg, rgba(255, 62, 165, .16), rgba(139, 61, 255, .1) 35%, rgba(255, 255, 255, .04) 70%); }
.pb-me { display: flex; align-items: center; gap: 13px; min-width: 0; }
.pb-av { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 12px; font: 800 17px var(--font-title); color: #fff;
  background: linear-gradient(140deg, #FF3EA5, #8B3DFF); box-shadow: 0 6px 16px rgba(255, 62, 165, .3); }
.pb-id { flex: 1; min-width: 0; }
.pb-id b { display: block; font: 800 17px/1.2 var(--font-title); }
.pb-lv { display: block; font-size: 13px; color: #C3B4EA; }
.pb-xp { display: block; height: 8px; margin-top: 7px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.pb-xp i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #FF3EA5, #B48BFF); }
.pb-stats { display: flex; gap: 8px; margin: 0; }
.pb-stats > div { min-width: 86px; padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.pb-stats dt { font-size: 11.5px; color: #A99BD2; white-space: nowrap; }
.pb-stats dd { display: flex; align-items: center; gap: 6px; margin: 1px 0 0; font: 800 21px/1.2 var(--font-title); }
.pb-medals { display: inline-flex; gap: 2px; }
.pb-quest { min-width: 0; font-size: 14px; line-height: 1.4; color: #E2DCFF; }
.pb-k { display: block; font-size: 11.5px; color: #A99BD2; }
.pb-quest a { color: #fff; font-weight: 600; }
.pb-rw { color: #7DF0FF; white-space: nowrap; }
.pb-save[hidden] { display: none; }
@media (max-width: 1180px) { .pbar { grid-template-columns: minmax(220px, 1fr) auto; } .pb-quest { grid-column: 1; } .pb-save { grid-column: 2; } }
@media (max-width: 700px) {
  .pbar { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; padding: 14px; }
  .pb-quest, .pb-save { grid-column: auto; }
  .pb-stats > div { flex: 1; min-width: 0; }
  .pb-save { width: 100%; }
}

/* ── Bande du jeu du jour (.daily) ──
   Ordinateur : grille de deux rangees de 132 px remplie colonne par colonne jusqu'au bord droit ; le jeu du jour
   (.daily-feature) prend 4 colonnes sur 2 rangees, les autres jeux (.pick) une case, parfois 2 x 2 (.big).
   Les colonnes en trop sont masquees (overflow), et site.js cache une vignette qui ne tiendrait pas en entier.
   La marge interieure de 10 px laisse la place a une vignette soulevee au survol (sinon coupee en haut).
   Telephone : deux colonnes, le jeu du jour en largeur, puis 4 jeux. */
.daily { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); grid-template-rows: repeat(2, 132px); grid-auto-columns: minmax(168px, 1fr); grid-auto-flow: column dense; gap: 12px;
  box-sizing: border-box; height: calc(132px * 2 + 12px + 20px); margin: 0 -10px; padding: 10px; overflow: hidden; color: #fff; }
.daily .pick { min-height: 0; }
.daily .pick .thumb, .daily .pick .pv { top: 8%; height: 64%; }
.daily .pick .name { font-size: 13px; }
.daily .pick.big { grid-column: span 2; grid-row: span 2; }
.daily .pick.big .thumb, .daily .pick.big .pv { top: 8%; height: 72%; }
.daily .pick.big .name { font-size: 18px; }
@media (max-width: 640px) {
  .daily { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; grid-auto-flow: row; height: auto; margin: 0; padding: 0; overflow: visible; }
  .daily .pick { aspect-ratio: 4 / 3; }
  .daily .pick.big { grid-column: auto; grid-row: auto; }
  .daily .pick:nth-of-type(n+5) { display: none; }
}
/* Le jeu du jour : un seul bloc (vignette + texte) sur un fond tire de la couleur (--c) et de l'image (--img) du jeu ;
   au survol, tout le bloc reagit (et tout le bloc est cliquable, site.js). */
.daily-feature { position: relative; display: grid; grid-column: span 4; grid-row: span 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: 12px; cursor: pointer;
  background: linear-gradient(115deg, color-mix(in srgb, var(--c) 78%, #0B0B16) 0%, color-mix(in srgb, var(--c) 40%, #0B0B16) 55%, color-mix(in srgb, var(--c) 22%, #0B0B16) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 12px 30px color-mix(in srgb, var(--c) 30%, transparent); transition: box-shadow .25s ease, filter .25s ease; }
.daily-feature::before { content: ''; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(40px) saturate(1.4); opacity: .35; transition: opacity .3s ease, transform .4s ease; }
.daily-feature > .tile:first-child, .daily-feature > .tile:first-child:hover { z-index: auto; min-height: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.daily-feature > .tile:first-child::before, .daily-feature > .tile:first-child::after, .daily-feature > .tile:first-child .name { display: none; }
.daily-feature > .tile:first-child .thumb, .daily-feature > .tile:first-child .pv { z-index: 1; top: 7%; height: 78%; transition: transform .35s ease; }
.daily-feature .text { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; overflow: hidden; padding: 18px 22px 18px 6px; color: #fff; }
.daily-feature .text h1, .daily-feature .text h2 { margin: 0; font-size: 26px; letter-spacing: -.035em; color: #fff; }
.daily-feature .text p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .86); }
.daily-feature .text .small, .daily-feature .text .small b { font-size: 12px; color: rgba(255, 255, 255, .86); }
.daily-feature .text .btn { transition: transform .25s ease, box-shadow .25s ease; }
.daily-feature .eyebrow { color: #FFE08A; }
.daily-feature .streak span { width: 26px; height: 26px; font-size: 10px; color: #fff; background: rgba(255, 255, 255, .16); }
@media (hover: hover) {
  .daily .daily-feature:hover { filter: brightness(1.08) saturate(1.1); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 16px 38px color-mix(in srgb, var(--c) 45%, transparent); }
  .daily-feature:hover::before { opacity: .5; transform: scale(1.06); }
  .daily-feature:hover > .tile:first-child .thumb, .daily-feature:hover > .tile:first-child .pv { transform: scale(1.06) rotate(-1deg); }
  .daily-feature:hover .text .btn { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .daily-feature *, .daily-feature::before { transition: none !important; } }
@media (max-width: 640px) {
  .daily-feature { grid-column: span 2; grid-row: auto; grid-template-columns: 132px minmax(0, 1fr); align-items: center; }
  .daily-feature > .tile:first-child { align-self: stretch; min-width: 0; min-height: 132px; aspect-ratio: auto; }
  .daily-feature .text { gap: 6px; padding: 12px 12px 12px 4px; }
  .daily-feature .text h1, .daily-feature .text h2 { font-size: 22px; }
  .daily-feature .text [data-daily-tagline] { font-size: 14px; line-height: 1.35; }
  .daily-feature .text .small { font-size: 11.5px; }
  .daily-feature .streak span { width: 24px; height: 24px; }
}
/* Petit texte du jeu du jour et serie de 7 jours (pastilles L M M J V S D : informations, pas des boutons) */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7DF0FF; }
.streak { display: flex; gap: 6px; }
.streak span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #C9BDEB; background: rgba(255, 255, 255, .1); }
.streak span.done { color: #fff; background: #FF3EA5; box-shadow: 0 0 12px #FF3EA5; }

.week .tile .name { line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
@media (min-width: 801px) {
  .week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column dense; gap: 12px; }
  .week .tile { aspect-ratio: 4 / 3; }
  .week .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .week .tile .thumb, .week .tile .pv { top: 9%; height: 64%; }
  .week .tile:first-child .thumb, .week .tile:first-child .pv { top: 8%; height: 74%; }
  .week .tile:first-child .name { font-size: 18px; }
}
@media (min-width: 1700px) {
  .week { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .week .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .week .big .thumb, .week .big .pv { top: 8%; height: 74%; }
  .week .big .name { font-size: 18px; }
}
@media (max-width: 800px) {
  .week { display: flex; gap: 11px; margin: 0 -2px -12px; padding: 2px 2px 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .week::-webkit-scrollbar { display: none; }
  .week .tile { flex: 0 0 150px; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .week .tile .thumb, .week .tile .pv { top: 9%; height: 64%; }
  .week .tile .name { font-size: 13px; }
}

/* ── « Popular games » (.mosaic) : ordinateur, colonnes de 150 px minimum et rangees de 122 px ; les tailles
   (petite, haute .h2, large .w2, grande) sont posees par site.js pour un rectangle plein (classes m-w2 / m-h2).
   Telephone : deux colonnes, la premiere vignette en largeur. ── */
.mosaic { display: grid; gap: 14px; }
.mosaic .tile:not(.w2) .name { left: 10px; right: 10px; bottom: 9px; font-size: 14px; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
.mosaic .tile:not(.w2) .thumb, .mosaic .tile:not(.w2) .pv { top: 9%; height: 64%; }
@media (min-width: 641px) {
  .mosaic { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 122px; grid-auto-flow: dense; }
  .mosaic .w2 { grid-column: span 2; }
  .mosaic .h2 { grid-row: span 2; }
  .mosaic .w2.h2 .thumb, .mosaic .w2.h2 .pv { top: 9%; height: 70%; }
  .mosaic .w2.h2 .name, .mosaic .tile.m-w2.m-h2 .name { font-size: 18px; }
  .mosaic .tile[style*="grid-row"]:not(.m-h2) .name { font-size: 13px; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mosaic .tile { aspect-ratio: 4 / 3; }
  .mosaic .tile:first-child { grid-column: span 2; aspect-ratio: 8 / 5; }
  .mosaic .tile:not(.w2) .name { left: 6px; right: 6px; bottom: 6px; font-size: 13px; }
}

/* ── « Browse by category » : une carte (.box) par rubrique avec 3 mini-vignettes ── */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cats { grid-template-columns: 1fr; } }
.box { padding: 14px 16px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.box h3 { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-size: 16px; }
.box h3 a { font: 600 13px var(--font-body); }
.box .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.box .mini .tile { aspect-ratio: 1; }
.box .mini .thumb, .box .mini .pv { top: 7%; height: 50%; }
.box .mini .name { left: 6px; right: 6px; bottom: 5px; font-size: 11px; line-height: 1.15; }
.box .mini .art, .mosaic .tile:not(.w2) .art { opacity: .45; }

/* ── Grille simple (tous les jeux, rubriques, etiquettes, 404, page vide de My progress) ── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.grid .tile { aspect-ratio: 4 / 3; }

/* ── Texte de presentation (bas de l'accueil et des rubriques, lu par les moteurs de recherche) ── */
.about-text { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0; padding: 28px 32px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.about-text > div:first-child { flex: 999 1 460px; min-width: 0; }
.about-text > div:last-child { flex: 1 1 220px; }
.about-text h2 { margin: 0 0 8px; font-size: 22px; }
.about-text h3 { margin: 18px 0 6px; font-size: 17px; }
.about-text p { margin: 0 0 10px; color: #C9BDEB; }
@media (max-width: 640px) { .about-text { padding: 22px 18px; } }
/* Rappels retires par erreur des blocs liens et badges lors du menage de l'accueil (memes noms de selecteurs). */
.about-text p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.box .mini .tile .progress { display: none; }

.acc-fond { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 2, 22, .7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.acc-fond[hidden] { display: none; }
html.acc-ouvert { overflow: hidden; }
.acc-boite { position: relative; width: 100%; max-width: 380px; max-height: calc(100vh - 40px); overflow-y: auto; margin: 0; padding: 0 24px 22px; color: #fff; text-align: left;
  background: #22104A; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 24px 60px rgba(0, 0, 0, .6); font-family: var(--font-body); animation: acc-pop .25s ease-out; }
@keyframes acc-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.acc-x { position: absolute; top: 10px; right: 12px; z-index: 2; padding: 6px 10px; border: 0; background: none; color: rgba(255, 255, 255, .85); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.acc-x:hover { color: #fff; }
.acc-verrou .acc-x { display: none; }
.acc-x-gris { color: #A99BD2; } .acc-x-gris:hover { color: #fff; }
.acc-bandeau { margin: 0 -24px 18px; padding: 14px 44px; color: #fff; text-align: center; font-size: .86rem; font-weight: 600; line-height: 1.45;
  background: linear-gradient(120deg, #FF3EA5, #8B3DFF); border-radius: 12px 12px 0 0; }
.acc-bandeau strong { display: block; margin-bottom: 1px; font: 800 1.05rem var(--font-title); letter-spacing: .5px; }
.acc-h { margin: 20px 0 8px; color: #fff; font: 800 1.15rem var(--font-title); }
.acc-sous { margin: 0 0 16px; color: #C3B4EA; font-size: .85rem; font-weight: 500; }
.acc-label { margin: 0 0 8px 2px; color: #A99BD2; font-size: .78rem; font-weight: 700; }
.acc-boite input[type=text], .acc-boite input[type=email], .acc-boite input[type=password], .acc-boite input[name=pseudo] { display: block; width: 100%; margin: 0 0 10px; padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; font: 500 .95rem var(--font-body); outline: none; transition: border-color .15s, background .15s; }
.acc-boite input::placeholder { color: #A99BD2; font-weight: 500; }
.acc-boite input:focus { border-color: #FF3EA5; background: rgba(255, 255, 255, .09); }
.acc-pwd { position: relative; margin-bottom: 10px; }
.acc-pwd input { margin-bottom: 0 !important; padding-right: 46px !important; }
.acc-oeil { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; padding: 6px; border: 0; background: none; color: #A99BD2; cursor: pointer; }
.acc-oeil:hover { color: #fff; }
.acc-aide { position: absolute; bottom: -9px; right: 13px; z-index: 2; padding: 2px 9px; border-radius: 99px; background: #4A3590; color: #fff; font-size: .6rem; font-weight: 700; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .18s; }
.acc-pwd:focus-within .acc-aide { opacity: 1; }
.acc-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 11px 16px; border: 0; border-radius: 8px; background: #fff; color: #1F1F1F; font: 600 .98rem var(--font-body); cursor: pointer; transition: background .15s; }
.acc-google:hover { background: #ECE6FF; }
.acc-ou { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #A99BD2; font-size: .75rem; font-weight: 600; }
.acc-ou::before, .acc-ou::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .12); }
.acc-ok { display: block; width: 100%; min-height: 46px; margin-top: 16px; padding: 12px; border: 0; border-radius: 8px; color: #fff; font: 700 .98rem var(--font-body); cursor: pointer;
  background: linear-gradient(120deg, #FF3EA5, #8B3DFF); box-shadow: 0 0 18px rgba(255, 62, 165, .35); transition: box-shadow .15s; }
.acc-ok:hover { box-shadow: 0 0 26px rgba(255, 62, 165, .55); }
.acc-ok:disabled { opacity: .7; cursor: default; }
.acc-ok-ligne { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.acc-ok-ligne:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.acc-mini { display: block; margin: 8px 0 0 auto; padding: 2px 0; border: 0; background: none; color: #A99BD2; font: 500 .8rem var(--font-body); cursor: pointer; }
.acc-mini:hover { color: #fff; text-decoration: underline; }
.acc-bloc { margin-top: 20px; padding: 14px 16px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); text-align: center; }
.acc-bloc-t { margin-bottom: 10px; color: #C3B4EA; font-size: .85rem; font-weight: 600; }
.acc-creer { display: block; width: 100%; min-height: 44px; padding: 11px 14px; border: 0; border-radius: 8px; color: #fff; font: 700 .95rem var(--font-body); cursor: pointer;
  background: rgba(139, 61, 255, .35); box-shadow: inset 0 0 0 1px rgba(180, 139, 255, .5); transition: background .15s; }
.acc-creer:hover { background: rgba(139, 61, 255, .5); }
.acc-switch { margin-top: 18px; color: #C3B4EA; font-size: .82rem; font-weight: 500; text-align: center; }
.acc-switch button { padding: 0; border: 0; background: none; color: #FF7CC4; font: 700 .82rem var(--font-body); cursor: pointer; }
.acc-switch button:hover { text-decoration: underline; }
.acc-invite { display: block; margin: 14px auto 0; padding: 4px; border: 0; background: none; color: #C3B4EA; font: 500 .84rem var(--font-body); text-decoration: underline; text-decoration-color: rgba(195, 180, 234, .4); text-underline-offset: 3px; cursor: pointer; }
.acc-invite:hover { color: #fff; text-decoration-color: #fff; }
.acc-err, .acc-bien { display: none; margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; line-height: 1.4; }
.acc-err { background: rgba(255, 77, 109, .14); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .4); color: #FFB3C2; }
.acc-err.acc-vert, .acc-bien { background: rgba(52, 211, 153, .14); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .4); color: #8EF0C8; }
.acc-err.on, .acc-bien.on { display: block; }
.acc-nl { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .04); cursor: pointer; user-select: none; }
.acc-nl:hover { border-color: rgba(255, 255, 255, .24); }
.acc-nl:has(input:checked) { border-color: #FF3EA5; }
.acc-nl-t { flex: 1; color: #C3B4EA; font-size: .82rem; font-weight: 500; line-height: 1.35; }
.acc-nl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-nl-c { position: relative; flex-shrink: 0; width: 22px; height: 22px; border: 2px solid #A99BD2; border-radius: 6px; background: transparent; transition: border-color .15s, background .15s; }
.acc-nl-c::after { content: ''; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.acc-nl input:checked + .acc-nl-c { border-color: #FF3EA5; background: #FF3EA5; }
.acc-nl input:checked + .acc-nl-c::after { transform: rotate(45deg) scale(1); }
.acc-nl input:focus-visible + .acc-nl-c { outline: 3px solid #FF3EA5; outline-offset: 2px; }
.acc-bv { padding: 34px 30px; text-align: center; }
.acc-bv-e { margin-bottom: 8px; font-size: 3.2rem; line-height: 1; }
.acc-bv-t { margin: 0 0 4px; color: #fff; font: 800 1.6rem var(--font-title); }
.acc-bv-s { margin: 0 0 18px; color: #C3B4EA; font-size: .9rem; font-weight: 500; line-height: 1.6; }
.acc-bv-l { max-width: 300px; margin: 0 auto 20px; padding: 0; list-style: none; text-align: left; }
.acc-bv-l li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: .9rem; font-weight: 600; }
.acc-bv-l li span:first-child { font-size: 1.3rem; }
.acc-bv-b { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .acc-boite { animation: none; } }
