/* dragnix.fr — voir DESIGN.md. Mobile d'abord. */

@font-face { font-family: "Fredoka"; src: url("/static/fredoka-latin-wght-normal.6438e7de.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/static/nunito-latin-wght-normal.76388dbf.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  /* Palette de marque */
  --steel: #43608A;
  --orange: #FF8807;
  --brown: #5A1E0F;
  --ice: #EAF3FB;
  --white: #FFFFFF;
  --night: #0F1B2D;

  /* Rôles (thème clair) */
  --bg: var(--ice);
  --surface: var(--white);
  --surface-2: #DCEAF7;
  --text: #1B2A41;
  --muted: #44546E;
  --heading: var(--steel);
  --line: var(--brown);
  --link: var(--steel);
  --focus: var(--brown);
  --shadow: rgba(90, 30, 15, 1);
  --flake: rgba(67, 96, 138, .55);
  --on-orange: var(--brown);
  --tone-blue: #2F6DB5; --tone-green: #2E8B57; --tone-gold: #B77A00; --tone-red: #D9482A; --tone-purple: #7B4FD1; --tone-pink: #CF3A78;
  --nc-gold: #8A5A00; --nc-coral: #B83A22; --nc-mint: #1A6E44; --nc-sky: #1C69B0; --nc-lilac: #6B45C8; --nc-rose: #B8316B;

  --radius: 16px;
  --font-title: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 1rem;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--night);
    --surface: #17294A;
    --surface-2: #1F3560;
    --text: #EAF3FB;
    --muted: #B9C9E0;
    --heading: #CFE0F5;
    --line: #8FA6C9;
    --link: #FFB25A;
    --focus: var(--orange);
    --shadow: rgba(0, 0, 0, .55);
    --flake: rgba(255, 255, 255, .8);
    --tone-blue: #6FAAEA; --tone-green: #4CBF82; --tone-gold: #E6B232; --tone-red: #FF7A55; --tone-purple: #A98BF5; --tone-pink: #F0609C;
    --nc-gold: #FFC947; --nc-coral: #FF8A75; --nc-mint: #5ED6A0; --nc-sky: #7CC4FF; --nc-lilac: #BBA4FF; --nc-rose: #FF8FBF;
  }
}
/* Choix manuel (bouton du menu, retenu sur l'appareil) : mêmes valeurs que ci-dessus */
:root[data-theme="dark"] {
  --bg: var(--night);
  --surface: #17294A;
  --surface-2: #1F3560;
  --text: #EAF3FB;
  --muted: #B9C9E0;
  --heading: #CFE0F5;
  --line: #8FA6C9;
  --link: #FFB25A;
  --focus: var(--orange);
  --shadow: rgba(0, 0, 0, .55);
  --flake: rgba(255, 255, 255, .8);
  --tone-blue: #6FAAEA; --tone-green: #4CBF82; --tone-gold: #E6B232; --tone-red: #FF7A55; --tone-purple: #A98BF5; --tone-pink: #F0609C;
  --nc-gold: #FFC947; --nc-coral: #FF8A75; --nc-mint: #5ED6A0; --nc-sky: #7CC4FF; --nc-lilac: #BBA4FF; --nc-rose: #FF8FBF;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; position: relative; z-index: 1; outline: none; overflow-x: hidden; overflow-x: clip; } /* hidden : repli pour Safari avant 16, qui ignore « clip » */
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-title); color: var(--heading); line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.icon { width: 1.5em; height: 1.5em; flex: none; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--orange); color: var(--on-orange); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: .5rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1.05rem/1.2 var(--font-title); text-decoration: none; cursor: pointer;
  padding: .85rem 1.3rem; min-height: 3rem;
  color: var(--on-orange); background: var(--orange);
  border: 3px solid var(--brown); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--brown);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover { box-shadow: 7px 7px 0 var(--brown); filter: brightness(1.06); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--brown); }
.btn--ghost { background: var(--surface); color: var(--heading); border-color: var(--line); box-shadow: 4px 4px 0 var(--line); }
.btn--ghost:hover { box-shadow: 7px 7px 0 var(--line); }
.btn--ghost:active { box-shadow: 1px 1px 0 var(--line); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: 4px 4px 0 var(--brown); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--steel); color: #fff; border-bottom: 3px solid var(--brown); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; padding: .35rem 0; }
.brand img { border-radius: var(--radius); }
.brand__name { font: 700 1.5rem/1 var(--font-title); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 3rem; height: 3rem; background: transparent; color: #fff; border: 3px solid #fff; border-radius: var(--radius); cursor: pointer; }
.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.nav a, .nav__summary { display: flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .8rem; color: #fff; text-decoration: none; font: 600 1rem/1.2 var(--font-title); border-radius: var(--radius); transition: background-color .12s ease; }
.nav a:hover, .nav__summary:hover { background: rgba(255, 255, 255, .18); }
.nav a[aria-current="page"] { background: var(--orange); color: var(--on-orange); }
.nav a .icon { width: 1.15em; height: 1.15em; flex: none; }
.site-header :focus-visible { outline-color: #fff; }
.site-header .nav a[aria-current="page"]:focus-visible { outline-color: #fff; }

/* Menus déroulants (« Jeux & points », « Communauté ») : <details> natif (clavier et lecteurs d'écran), refermé par Échap ou un clic ailleurs (core.js) */
.nav__details { position: relative; }
.nav__summary { cursor: pointer; list-style: none; user-select: none; position: relative; }
.nav__summary::-webkit-details-marker { display: none; }
.nav__summary[data-current] { box-shadow: inset 0 -3px 0 var(--orange); }
.nav__gico { width: 1.15em; height: 1.15em; flex: none; }
.nav__chev { width: 1em; height: 1em; transition: transform .2s ease; }
.nav__details[open] > .nav__summary { background: rgba(255, 255, 255, .18); }
.nav__details[open] .nav__chev { transform: rotate(180deg); }
.nav__sub { flex-direction: column; flex-wrap: nowrap; gap: .2rem; }
/* Pastille orange : ce menu contient du nouveau */
.nav__summary[data-new]::after { content: ""; position: absolute; top: .3rem; right: .15rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--steel); }
/* Entrée d'un menu : pastille d'icône colorée, titre, description, « Nouveau » */
.nav__sub a { gap: .7rem; }
.nav__ico { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff; color: var(--tone, var(--steel)); box-shadow: inset 0 0 0 2px var(--tone, var(--steel)); transition: transform .2s ease; }
.nav__sub .nav__ico .icon { width: 1.2rem; height: 1.2rem; }
.nav__txt { display: grid; gap: .1rem; min-width: 0; }
.nav__t { font: 700 1rem/1.15 var(--font-title); }
.nav__d { display: none; font: 600 .82rem/1.25 var(--font-body); opacity: .82; }
.nav__new { margin-left: auto; padding: .15rem .5rem; border-radius: 99px; background: var(--orange); color: var(--on-orange); font: 800 .68rem/1.2 var(--font-title); text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 63.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { flex-basis: 100%; display: none; padding-bottom: .8rem; }
  .js .nav.is-open { display: block; max-height: calc(100dvh - 5.5rem); overflow-y: auto; overscroll-behavior: contain; }
  .js .nav ul { flex-direction: column; }
  .nav__sub { margin: .1rem 0 .3rem 1.1rem; padding-left: .6rem; border-left: 3px solid rgba(255, 255, 255, .35); }
}
@media (min-width: 64rem) {
  .nav ul { flex-wrap: nowrap; }
  .nav .nav__sub { position: absolute; top: calc(100% + .7rem); left: 0; z-index: 30; display: grid; width: 22rem; padding: .5rem; background: var(--surface); border: 3px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 var(--shadow); }
  .nav__group--end .nav__sub { left: auto; right: 0; }
  .nav .nav__group--end .nav__sub:has(li:nth-child(6)) { width: min(41rem, calc(100vw - 2rem)); grid-template-columns: 1fr 1fr; }
  .nav__sub::before { content: ""; position: absolute; top: -.6rem; left: 1.8rem; width: .9rem; height: .9rem; background: var(--surface); border-top: 3px solid var(--line); border-left: 3px solid var(--line); transform: rotate(45deg); border-top-left-radius: 3px; }
  .nav__group--end .nav__sub::before { left: auto; right: 1.8rem; }
  .nav__sub a { color: var(--text); white-space: normal; min-height: 3.4rem; padding: .5rem .65rem; border-radius: 13px; align-items: center; }
  .nav__sub a:hover { background: var(--surface-2); }
  .nav__sub a:focus-visible { outline-color: var(--focus); }
  .nav__sub a[aria-current="page"] { background: color-mix(in srgb, var(--orange) 20%, var(--surface)); color: var(--text); box-shadow: inset 4px 0 0 var(--orange); }
  .nav__ico { background: color-mix(in srgb, var(--tone, var(--steel)) 18%, var(--surface)); }
  .nav__d { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav__summary[data-new]::after { animation: dx-ping 2.2s ease-out infinite; }
  .nav a:not(.nav__account):hover { transform: translateY(-1px); }
  .nav a { transition: background-color .12s ease, transform .15s ease; }
  .nav__sub a:hover { transform: translateX(3px); }
  .nav__sub a:hover .nav__ico { transform: scale(1.12) rotate(-8deg); }
  .nav__details[open] .nav__sub { animation: dx-pop .2s ease-out; }
  .nav__details[open] .nav__sub li { animation: dx-rise .26s ease-out backwards; }
  .nav__details[open] .nav__sub li:nth-child(2) { animation-delay: .03s; }
  .nav__details[open] .nav__sub li:nth-child(3) { animation-delay: .06s; }
  .nav__details[open] .nav__sub li:nth-child(4) { animation-delay: .09s; }
  .nav__details[open] .nav__sub li:nth-child(5) { animation-delay: .12s; }
  .nav__details[open] .nav__sub li:nth-child(6) { animation-delay: .15s; }
  .nav__details[open] .nav__sub li:nth-child(n+7) { animation-delay: .18s; }
  .nav__new { animation: dx-wiggle 3.4s ease-in-out infinite; }
}
@keyframes dx-ping { 0% { box-shadow: 0 0 0 2px var(--steel), 0 0 0 2px rgba(255, 136, 7, .75); } 70%, 100% { box-shadow: 0 0 0 2px var(--steel), 0 0 0 .6rem rgba(255, 136, 7, 0); } }
@keyframes dx-pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dx-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dx-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-6deg); } 94% { transform: rotate(6deg); } 97% { transform: rotate(-3deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.2rem, 6vw, 4rem) 0; }
.section--alt { background: var(--surface-2); border-block: 3px solid var(--line); }
.section__head { max-width: 40rem; margin-bottom: 1.6rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.eyebrow { font: 700 .9rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.page-title { padding: clamp(2rem, 6vw, 3.5rem) 0 1rem; }
.page-title p { max-width: 40rem; }

/* ---------- Cartes ---------- */
.card {
  background: var(--surface); color: var(--text);
  border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line);
  padding: 1.25rem;
}
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bandeau live ---------- */
.live-banner { background: var(--orange); color: var(--on-orange); border-bottom: 3px solid var(--brown); }
.live-banner p { margin: 0; padding: .7rem 0; display: flex; align-items: center; justify-content: center; gap: .6rem; font: 700 1.1rem/1.3 var(--font-title); text-align: center; }
.live-banner a { color: inherit; }

/* ---------- Héros ---------- */
.hero { padding: 0; } /* aucune marge : le pingouin, coupé net en bas de l'image, repose sur le bord de la section */
.hero__grid { display: grid; gap: 1.5rem; align-items: center; }
.hero__art { justify-self: center; width: min(62vw, 17rem); }
.mascot { position: relative; aspect-ratio: 4 / 5; }
.news { display: grid; gap: 1.2rem; max-width: 44rem; } .news__img img { width: 100%; max-width: 28rem; height: auto; border-radius: var(--radius); }
.mascot__hat { position: absolute; left: 51.3%; top: 19.5%; width: 44%; transform: translate(-50%, -100%); pointer-events: none; } .mascot__hat svg { display: block; width: 100%; height: auto; }
.mascot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; /* transition: opacity .2s ease; */ }
.mascot img + img { opacity: 0; }
.mascot.is-ready:hover img + img, .mascot.is-ready:focus-within img + img { opacity: 1; }
.mascot.is-ready:hover img:first-child, .mascot.is-ready:focus-within img:first-child { opacity: 0; }
.hero__text { padding-top: 1.2rem; } /* petit écran : le texte ne colle pas au bandeau (le hero, lui, n'a aucun padding) */
.hero__text h1 { margin-bottom: .2em; }
.hero__text h1 span { color: var(--orange); }
.slogan { font: 700 clamp(1.3rem, 4.5vw, 1.9rem)/1.25 var(--font-title); color: var(--heading); margin-bottom: .3em; }
.tagline { font-size: 1.15rem; color: var(--muted); }
@media (min-width: 48rem) {
  .hero__grid { grid-template-columns: 1.2fr .8fr; }
  .hero__text { padding-top: 0; }
  .hero__art { order: 2; width: min(100%, 22rem); }
}

/* ---------- Lecteur Twitch / vidéos ---------- */
.embed { position: relative; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line); overflow: hidden; background: var(--night); }
.embed.is-playing { aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__facade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1.6rem 1rem 1.8rem; text-align: center; background: linear-gradient(160deg, var(--steel), var(--night)); color: #fff; }
.embed__facade img { width: clamp(6rem, 22vw, 9rem); }
.embed__facade p { margin: 0; max-width: 32rem; font-size: .95rem; color: #DCEAF7; }
.embed-note { font-size: .95rem; color: var(--muted); margin-top: .9rem; }
.video { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .12s ease, box-shadow .12s ease; }
.video:hover { box-shadow: 7px 7px 0 var(--line); }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--line); }
.video__body { padding: 1rem 1.1rem 1.2rem; }
.video__title { font: 600 1.1rem/1.3 var(--font-title); color: var(--heading); margin: 0 0 .3rem; }
.video__date { font-size: .9rem; color: var(--muted); margin: 0; }
.video__body { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.video__tag { display: inline-block; margin: 0 0 .4rem; padding: .1rem .55rem; border: 2px solid var(--line); border-radius: 999px; font: 700 .75rem/1.4 var(--font-title); letter-spacing: .04em; text-transform: uppercase; color: var(--heading); background: var(--surface-2); }
.video__tag--new { background: var(--orange); color: var(--on-orange); }
.video-feature { margin: 0 0 2rem; }
.feature .video__title { font-size: clamp(1.3rem, 4vw, 1.9rem); }
@media (min-width: 760px) { .feature { flex-direction: row; align-items: stretch; } .feature img { width: 62%; border-bottom: 0; border-right: 3px solid var(--line); } .feature .video__body { justify-content: center; padding: 1.5rem; } }
.videos__sub { margin: 0 0 1rem; font-size: 1.15rem; }
.empty { display: grid; gap: 1rem; align-items: center; justify-items: center; text-align: center; }
.empty img { width: 8rem; }
@media (min-width: 40rem) { .empty { grid-template-columns: auto 1fr; text-align: left; justify-items: start; } }

/* ---------- Tuiles (liens, navigation) ---------- */
.tiles { display: grid; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; display: flex; align-items: center; gap: 1rem; min-height: 5.5rem;
  padding: 1rem 1.2rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
a.tile:hover { box-shadow: 7px 7px 0 var(--line); background: var(--surface-2); }
a.tile:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.tile__icon { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; flex: none; background: var(--orange); color: var(--on-orange); border: 3px solid var(--brown); border-radius: var(--radius); }
.tile__icon .icon { width: 1.8rem; height: 1.8rem; }
.tile__body { display: flex; flex-direction: column; min-width: 0; }
.tile__title { font: 700 1.3rem/1.2 var(--font-title); color: var(--heading); }
.tile__text { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.tile__go { margin-left: auto; color: var(--muted); }
.tile--soon { opacity: .75; box-shadow: none; border-style: dashed; }
.tile__tag { margin-left: auto; font: 700 .85rem/1 var(--font-title); padding: .4rem .6rem; border: 2px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.tile--big { min-height: 7rem; }
.tile--big .tile__title { font-size: 1.5rem; }

/* ---------- Prose (blog, pages texte) ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: .8em 1.2em; border-left: 6px solid var(--orange); background: var(--surface); border-radius: var(--radius); }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 6px; font-size: .95em; }
.prose pre { overflow-x: auto; padding: 1em; background: var(--surface-2); border-radius: var(--radius); }
.prose img { border-radius: var(--radius); }
.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; background: var(--surface); border: 3px dashed var(--line); border-radius: var(--radius); margin: 0 0 1.6rem; }
.notice .icon { margin-top: .15rem; color: var(--orange); }
.notice p { margin: 0; }
.badge { display: inline-block; font: 700 .8rem/1 var(--font-title); letter-spacing: .05em; text-transform: uppercase; padding: .35rem .6rem; background: var(--orange); color: var(--on-orange); border: 2px solid var(--brown); border-radius: var(--radius); }
.post-card { display: flex; flex-direction: column; gap: .5rem; }
.post-card h2, .post-card h3 { margin: 0; font-size: 1.4rem; }
.post-card h2 a, .post-card h3 a { color: var(--heading); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.meta { font-size: .92rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.split { display: grid; gap: 1.5rem; align-items: center; }
.split img { width: min(70%, 15rem); justify-self: center; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr auto; } .split--rev { grid-template-columns: auto 1fr; } .split img { width: 15rem; } }
.pedro-card { display: grid; gap: .5rem; margin: 1.2rem 0 1.6rem; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.pedro-card > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .8rem; align-items: baseline; }
.pedro-card dt { font: 700 .85rem/1.3 var(--font-title); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pedro-card dd { margin: 0; font-weight: 700; }
@media (max-width: 30rem) { .pedro-card > div { grid-template-columns: 1fr; gap: .1rem; } }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { font: 600 1rem/1.2 var(--font-title); color: var(--heading); margin-top: .4rem; }

/* ---------- Planning ---------- */
.schedule { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line); overflow: hidden; }
.schedule th, .schedule td { padding: .8rem 1rem; text-align: left; border-bottom: 2px solid var(--surface-2); }
.schedule thead th { background: var(--steel); color: #fff; font-family: var(--font-title); }
.schedule tbody tr:last-child > * { border-bottom: 0; }
.schedule th[scope="row"] { font-family: var(--font-title); color: var(--heading); }
.next-live { font: 700 1.3rem/1.3 var(--font-title); color: var(--heading); }
.week { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .week { grid-template-columns: repeat(2, 1fr); } }
.week__day { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.week__emote { width: 5rem; height: auto; flex: none; }
.week__body { min-width: 0; }
.week__body p { margin: 0; }
.week__name { font: 600 1rem/1.3 var(--font-title); color: var(--muted); }
.week__name time { font-weight: 400; font-family: var(--font-body); font-size: .92rem; }
.week__game { font: 700 1.5rem/1.2 var(--font-title); color: var(--heading); }
.week__tags, .week__note { margin-top: .35rem !important; }
.week__note { font-size: .95rem; color: var(--muted); }
.week__day--off { border-style: dashed; box-shadow: none; }
.week__day--off .week__game { color: var(--muted); }
.week__day.is-today { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.week__today { display: inline-block; margin-top: .4rem !important; padding: .2rem .6rem; font: 700 .8rem/1.2 var(--font-title); letter-spacing: .05em; text-transform: uppercase; background: var(--orange); color: var(--on-orange); border: 2px solid var(--brown); border-radius: var(--radius); }
.rules { counter-reset: regle; list-style: none; padding: 0; display: grid; gap: 1rem; }
.rules li { counter-increment: regle; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.rules li::before { content: counter(regle); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; font: 700 1.3rem/1 var(--font-title); background: var(--orange); color: var(--on-orange); border: 3px solid var(--brown); border-radius: var(--radius); }
.rules strong { display: block; font: 700 1.15rem/1.3 var(--font-title); color: var(--heading); }

/* ---------- Formulaires / livre d'or ---------- */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font: 700 1.05rem/1.3 var(--font-title); color: var(--heading); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  padding: .8rem 1rem; border: 3px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint span:last-child { white-space: nowrap; }
.field .hint { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: .9rem 1.1rem; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 700; }
.status[hidden] { display: none; }
.status--ok { border-color: var(--steel); }
.status--err { border-color: var(--orange); }
.messages { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.message__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .5rem; }
.message__author { font: 700 1.15rem/1.2 var(--font-title); color: var(--heading); }
.message__date { font-size: .9rem; color: var(--muted); }
.message__text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.shop__until { font-weight: 700; }
/* /admin/ : visuel (affiche) du planning */
.plan-visual { margin-top: 1.2rem; display: grid; gap: .8rem; }
.plan-visual__canvas { width: 100%; max-width: 40rem; height: auto; border: 3px solid var(--line); border-radius: var(--radius); }
.plan-visual__canvas[data-format="story"], .plan-visual__canvas[data-format="day"] { max-width: 20rem; }
.plan-visual__format select { width: 100%; }
.plan-art h4 { margin: .4rem 0 .2rem; }
.plan-art__list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.plan-art__item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
/* /admin/ : statistiques */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .8rem; margin: 1rem 0 0; }
.stat { display: flex; flex-direction: column-reverse; gap: .2rem; padding: .8rem 1rem; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat__n { margin: 0; font: 700 1.7rem/1.1 var(--font-title); }
.stat__label { margin: 0; font-size: .92rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.stats-table th, .stats-table td { padding: .45rem .7rem; text-align: right; border-bottom: 2px solid var(--line); white-space: nowrap; }
.stats-table th:first-child, .stats-table thead th { text-align: left; }
/* Jeux : défi de la semaine */
.quests__goal { margin: .4rem 0 .6rem; font-weight: 700; }
.week__row { display: flex; align-items: center; gap: .9rem; }
.week__bar { flex: 1; height: 1.1rem; min-width: 0; accent-color: var(--orange); }
.week__count { font-weight: 700; white-space: nowrap; }
/* Classement : saisons passées */
.seasons__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.2rem; }
.seasons__item .champs__podium { margin-top: .5rem; }
/* Pedro râle sous les messages qui contiennent « manchot » (src/js/account/pedro.js) */
.pedro-note { display: flex; align-items: flex-end; gap: .6rem; margin-top: .8rem; }
.pedro-note__pic { flex: none; width: 3rem; height: 3rem; border-radius: 50%; border: 3px solid var(--line); background: var(--surface-2, var(--surface)); object-fit: cover; }
.pedro-note__bubble { position: relative; margin: 0; padding: .55rem .9rem; border: 3px solid var(--line); border-radius: 1rem 1rem 1rem .2rem; background: var(--surface-2, var(--surface)); font-size: .95rem; line-height: 1.4; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) { .pedro-note__bubble { animation: pedro-pop .35s cubic-bezier(.2, .9, .3, 1.3) both; transform-origin: 0 100%; } }
@keyframes pedro-pop { from { opacity: 0; transform: scale(.7) translateY(.4rem); } to { opacity: 1; transform: none; } }

/* ---------- Comptes, avatars, profil ---------- */
.avatar { width: 3rem; height: 3rem; flex: none; object-fit: cover; background: var(--avatar-bg, var(--surface-2)); border: 3px solid var(--line); border-radius: var(--radius); }
.avatar--big { width: 6rem; height: 6rem; }
.gb-auth { margin-bottom: 1.4rem; }
.gb-me { display: grid; gap: .8rem; justify-items: start; }
.gb-me p { margin: 0; }
.section-gap { margin-top: 1.4rem; }
.btn--small { min-height: 2.5rem; padding: .4rem .9rem; font-size: .95rem; box-shadow: 3px 3px 0 var(--line); }
.identities { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.identities li { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.identities__name { font: 700 1.1rem/1.2 var(--font-title); color: var(--heading); }
.identities__state { color: var(--muted); font-size: .95rem; }
.identities .btn { margin-left: auto; }
.danger summary { cursor: pointer; font-weight: 700; margin-top: 1.2rem; color: var(--heading); }
.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--orange); }
.message__who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.message__image { display: block; margin-top: .9rem; }
.message__image img { max-width: 100%; max-height: 26rem; border: 3px solid var(--line); border-radius: var(--radius); }
.field input[type="file"] { padding: .6rem .8rem; }
.nav__account { display: flex; align-items: center; gap: .5rem; }
.nav a.nav__account .icon { width: 1.3em; height: 1.3em; }
@media (min-width: 64rem) {
  .nav__account-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Pied de page ---------- */
.ice-strip { position: relative; z-index: 1; height: 4.2rem; margin-top: 3rem; background: var(--surface); border-top: 3px solid var(--line); overflow: hidden; }
.slider { position: absolute; bottom: -.2rem; left: 0; width: 5rem; height: auto; animation: glisse 18s cubic-bezier(.45, .05, .55, .95) infinite; }
.site-footer { position: relative; z-index: 1; background: var(--steel); color: #fff; padding: 2rem 0 1.2rem; border-top: 3px solid var(--brown); }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: #fff; }
.footer__grid { display: grid; gap: 1.5rem; }
.footer__brand { font: 700 1.6rem/1 var(--font-title); margin: 0 0 .3rem; }
.footer__text { margin: 0 0 .8rem; color: #DCEAF7; }
.footer__mail { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; flex-wrap: wrap; }
.footer__nav { display: grid; gap: 1.2rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.footer__title { font: 700 .85rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: #DCEAF7; margin: 0 0 .6rem; }
.footer__links, .footer__socials { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.footer__links a { display: inline-block; padding: .3rem 0; }
.footer__socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.footer__copy { margin: 1.4rem auto 0; font-size: .9rem; color: #DCEAF7; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.3fr 2fr auto; align-items: start; gap: 2rem; } }

/* ---------- Neige ---------- */
.snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.flake { position: absolute; top: -12px; background: var(--flake); border-radius: var(--radius); animation: neige linear infinite; }

/* ---------- Animations autorisées (voir DESIGN.md) ---------- */
@keyframes glisse {
  0% { transform: translateX(-6rem) rotate(0deg); }
  15% { transform: translateX(8vw) rotate(-4deg); }
  100% { transform: translateX(calc(100vw + 2rem)) rotate(3deg); }
}
@keyframes neige {
  from { transform: translate3d(0, -5vh, 0); }
  to { transform: translate3d(var(--drift, 30px), 105vh, 0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s ease-out both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slider { animation: none; left: 70%; }
  .snow { display: none; }
  * { transition: none !important; }
}


/* Blog écrit depuis le site : rédaction (/admin/) */
.textarea--tall, .field textarea.textarea--tall { min-height: 22rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .98rem; line-height: 1.5; }
.admin-post { display: grid; gap: .5rem; }
.admin-post__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.admin-post__head h3 { margin: 0; font-size: 1.3rem; overflow-wrap: anywhere; }
.badge--draft { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.prose img { max-width: 100%; height: auto; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Accueil : mêmes contours épais et ombres franches que le reste du site ---------- */
.hero__text h1 { font-size: clamp(3.4rem, 13vw, 6.5rem); line-height: .95; letter-spacing: -.02em; }
.hero__art { width: min(70vw, 19rem); align-self: end; }
.hero__grid { gap: 1rem; }
@media (min-width: 48rem) {
  .hero__grid { min-height: 32rem; }
  .hero__text { padding: 3rem 0; }
  .hero__art { width: min(100%, 25rem); }
}
.next-card { display: flex; align-items: center; gap: .9rem; margin-top: 1.6rem; max-width: 33rem; padding: .9rem 1.1rem; background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line); }
.next-card .icon { width: 2.2rem; height: 2.2rem; color: var(--orange); }
.next-card p { margin: 0; }
.next-card__label { font: 700 .8rem/1 var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem !important; }
.next-card .next-live { font-size: 1.05rem; line-height: 1.35; }

.embed__facade { min-height: clamp(14rem, 38vw, 24rem); }
.embed__title { margin: 0; font: 700 clamp(1.3rem, 4vw, 1.8rem)/1.2 var(--font-title); }

/* La semaine en un coup d'œil */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .8rem; }
.strip .week__day { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .9rem .5rem 1rem; height: 100%; }
.strip .week__emote { width: 4.2rem; }
.strip .week__game { font-size: 1.05rem; }
.strip .week__name { font-size: .9rem; }
.strip .week__name time { display: block; }
.strip .week__tags { margin-top: .3rem !important; }
.strip .badge { font-size: .62rem; padding: .25rem .4rem; }
.strip .week__today { font-size: .66rem; padding: .2rem .45rem; }
@media (max-width: 63.99rem) {
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: .9rem; padding: .3rem var(--gutter) 1rem; margin-inline: calc(var(--gutter) * -1); }
  .strip > li { flex: 0 0 8.6rem; scroll-snap-align: start; }
}

/* Vidéos : défilement horizontal sur mobile */
@media (max-width: 39.99rem) {
  .videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: .2rem var(--gutter) 1rem; margin-inline: calc(var(--gutter) * -1); }
  .videos > li { flex: 0 0 78%; scroll-snap-align: center; }
}

/* Explorer le site : le premier bloc est plus large */
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > li { grid-column: span 2; }
  .bento > li:first-child { grid-column: span 4; }
}
.bento__item {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; height: 100%; min-height: 11.5rem;
  padding: 1.2rem 7.5rem 1.2rem 1.2rem; overflow: hidden; text-decoration: none; color: var(--text);
  background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.bento__item:hover { box-shadow: 7px 7px 0 var(--line); background: var(--surface-2); }
.bento__item:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.bento__icon { margin-bottom: auto; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--orange); color: var(--on-orange); border: 3px solid var(--brown); border-radius: var(--radius); }
.bento__title { font: 700 1.5rem/1.15 var(--font-title); color: var(--heading); }
.bento__text { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.bento__art { position: absolute; right: .6rem; bottom: 0; width: 7rem; height: auto; }
@media (min-width: 64rem) { .bento > li:first-child .bento__art { width: 9.5rem; right: 1.2rem; } .bento > li:first-child .bento__item { padding-right: 12rem; min-height: 13rem; } }

/* ---------- Autocollants : les emotes sont des stickers (contour blanc découpé, légèrement penchés) ---------- */
.sticker {
  --tilt: -4deg;
  border-radius: 14px;
  transform: rotate(var(--tilt));
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(2px 6px 0 rgba(11, 20, 36, .35));
  transition: transform .18s ease;
}
/* Lecteur : l'autocollant colle au coin du cadre et déborde */
.live-stage { position: relative; margin-top: clamp(3.2rem, 8vw, 4rem); }
.live-stage__sticker { position: absolute; z-index: 2; top: -3rem; right: -.2rem; width: clamp(5.5rem, 14vw, 8.5rem); --tilt: 8deg; }
.embed__facade { gap: 1.1rem; }
.embed__facade .embed__title { font-size: clamp(1.6rem, 5vw, 2.6rem); }
/* Semaine : chaque jour porte son autocollant, qui dépasse du haut de la carte */
.strip { padding-top: 2.6rem; row-gap: 2.6rem; }
.strip .week__day { padding-top: 1.6rem; }
.strip .week__emote { width: 4.8rem; margin-top: -3.4rem; }
.strip > li:nth-child(odd) .week__emote { --tilt: -5deg; }
.strip > li:nth-child(even) .week__emote { --tilt: 4deg; }
.strip .week__day:hover .week__emote { transform: rotate(calc(var(--tilt) * -1)) translateY(-4px); }
@media (max-width: 63.99rem) { .strip { padding-top: 3.4rem; } }
/* Explorer : l'autocollant dépasse du coin haut droit du bloc */
.bento { row-gap: 2.4rem; }
.bento__item { overflow: visible; padding-right: 1.2rem; }
.bento__art { top: -1.5rem; right: 1.1rem; bottom: auto; width: 6.2rem; --tilt: 6deg; }
.bento > li:nth-child(even) .bento__art { --tilt: -5deg; }
.bento__item:hover .bento__art { transform: rotate(calc(var(--tilt) * -1)) translateY(-5px); }
@media (min-width: 64rem) { .bento > li:first-child .bento__art { width: 8.6rem; right: 1.6rem; top: -2rem; } .bento > li:first-child .bento__item { padding-right: 1.2rem; } }
.empty .sticker { --tilt: -6deg; }

/* ---------- Glisse : le pingouin arrive en glissant, une seule fois, avec ses traits de vitesse ---------- */
.hero { overflow-x: clip; }
@supports not (overflow: clip) { .hero { overflow-x: hidden; } }
.hero__art { position: relative; }
.mascot { z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: arrive 1.15s cubic-bezier(.16, .84, .3, 1) both; transform-origin: 50% 100%; }
  .hero__art::after {
    content: ""; position: absolute; z-index: 0; left: 80%; top: 28%; width: min(45vw, 28rem); height: 42%; pointer-events: none;
    background: repeating-linear-gradient(to bottom, var(--line) 0 3px, transparent 3px 22px);
    -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent);
    transform-origin: 0 50%; animation: trail 1.15s ease-out both;
  }
}
@keyframes arrive {
  0% { transform: translateX(70vw) rotate(12deg); }
  70% { transform: translateX(-1.5vw) rotate(-2.5deg); }
  100% { transform: none; }
}
@keyframes trail {
  0% { opacity: .9; transform: scaleX(.1); }
  45% { opacity: .9; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .sticker, .bento__art { transition: none; } }

/* ---------- Autocollants et glisse sur les autres pages ---------- */
.split > img, .gallery img, .empty img, .week .week__emote {
  --tilt: -4deg;
  border-radius: 14px; transform: rotate(var(--tilt));
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(2px 6px 0 rgba(11, 20, 36, .35));
}
.gallery li:nth-child(even) img, .week li:nth-child(even) .week__emote { --tilt: 3deg; }
.split--rev > img { --tilt: 4deg; }
@media (prefers-reduced-motion: no-preference) {
  .split > img { animation: arrive-lite .9s cubic-bezier(.16, .84, .3, 1) both; }
}
@keyframes arrive-lite { from { transform: translateX(40vw) rotate(10deg); } to { transform: rotate(var(--tilt)); } }

/* Page 404 : le pingouin glisse hors de la page */
.lost { position: relative; height: 5.4rem; margin-top: 2.2rem; overflow: hidden; border-top: 3px solid var(--line); }
.lost__penguin { position: absolute; bottom: -.2rem; left: 40%; width: 5rem; height: auto; }
@media (prefers-reduced-motion: no-preference) { .lost__penguin { animation: slide-away 3.4s cubic-bezier(.45, .05, .55, .95) both; } }
@keyframes slide-away { from { left: 100%; } to { left: -6rem; } }

/* Badge « en live maintenant » (carte de l'accueil, rempli par live.js) */
.next-card__join { margin-left: auto; flex: none; }
.next-card.is-live { background: var(--orange); border-color: var(--brown); box-shadow: 4px 4px 0 var(--brown); color: var(--on-orange); }
.next-card.is-live .icon, .next-card.is-live .next-card__label, .next-card.is-live .next-live { color: var(--on-orange); }
.next-card.is-live .btn { background: var(--surface); color: var(--heading); }

/* Dernier article (accueil) */
.post-card--latest { position: relative; max-width: 40rem; padding-right: 7.5rem; }
.post-card__sticker { position: absolute; top: -1.6rem; right: 1.2rem; width: 6rem; --tilt: 6deg; }

/* Espace de rédaction : onglets, planning */
.admin-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-bottom: 1.4rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.tab { font: 700 1rem/1.2 var(--font-title); padding: .6rem 1.1rem; background: var(--surface); color: var(--heading); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--line); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--orange); color: var(--on-orange); border-color: var(--brown); box-shadow: 3px 3px 0 var(--brown); }
.plan-days { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.plan-day { display: grid; gap: .5rem; padding: .8rem; background: var(--surface-2); border: 2px solid var(--line); border-radius: 16px; }
.plan-day input[type="text"], .plan-day select { width: 100%; font: inherit; color: var(--text); background: var(--surface); padding: .6rem .8rem; border: 2px solid var(--edge); border-radius: 12px; }
.plan-day__sel { display: flex; align-items: center; gap: .5rem; } .plan-day__pic { border-radius: 10px; flex: none; }
.plan-day__more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; } .plan-day__more input[type="text"] { flex: 1 1 14rem; width: auto; }
.plan-day__hours { display: flex; gap: .4rem; } .plan-day__hours input { width: 100%; min-width: 0; font: inherit; color: var(--text); background: var(--surface); padding: .6rem .5rem; border: 2px solid var(--edge); border-radius: 12px; }
@media (min-width: 48rem) { .plan-day { grid-template-columns: 7rem 1fr 13rem 9rem auto auto; align-items: center; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }

/* Bouton clair / sombre */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-left: auto; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .85); border-radius: var(--radius); cursor: pointer; }
.theme-toggle:hover { background: rgba(255, 255, 255, .16); }
.theme-toggle .icon { width: 1.4rem; height: 1.4rem; }
.theme-toggle__moon { display: none; }
:root[data-theme-now="light"] .theme-toggle__moon { display: block; }
:root[data-theme-now="light"] .theme-toggle__sun { display: none; }
@media (min-width: 64rem) { .theme-toggle { order: 3; margin-left: 0; } .nav { order: 2; } }
.admin-bar__actions { margin-top: 0; }

/* Réactions avec les pingouins */
.reactions { margin-top: 2.4rem; max-width: 44rem; }
.reactions h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.reactions__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.reaction { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .4rem; font: 700 1.05rem/1 var(--font-title); color: var(--heading); background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 3px 3px 0 var(--line); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.reaction img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.reaction:hover { box-shadow: 5px 5px 0 var(--line); }
.reaction:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.reaction[aria-pressed="true"] { border-color: var(--brown); background: var(--orange); color: var(--on-orange); box-shadow: 3px 3px 0 var(--brown); }
.reaction:disabled { opacity: .6; cursor: progress; }
.reactions .status { margin-top: 1rem; }

/* Réactions sous les messages du livre d'or (version compacte) */
.msg-reactions { margin-top: .9rem; }
.msg-reactions__list { display: flex; flex-wrap: wrap; gap: .45rem; }
.reaction--small { gap: .3rem; padding: .2rem .55rem .2rem .25rem; font-size: .9rem; border-width: 2px; box-shadow: 2px 2px 0 var(--line); }
.reaction--small img { width: 1.75rem; height: 1.75rem; }
.msg-reactions__note { margin-top: .6rem; font-size: .95rem; }

/* Évite le saut de mise en page quand l'éditeur bascule entre ses cartes. */
[data-blog-admin] { min-height: 70vh; }

/* Ajouter à mon agenda */
.agenda { margin-top: 1.6rem; }
.agenda__label { display: flex; align-items: center; gap: .5rem; font-weight: 800; margin-bottom: .7rem; }
.agenda__label svg { width: 1.4rem; height: 1.4rem; }
.agenda .hint { margin-top: .8rem; max-width: 40rem; font-size: .9rem; color: var(--muted); }

/* Message épinglé du livre d'or */
.message--pinned { border-color: var(--brown); box-shadow: 6px 6px 0 var(--brown); }
.message__pin { display: inline-block; margin: 0 0 .6rem; padding: .15rem .7rem; font: 800 .85rem/1.4 var(--font-title); color: var(--on-orange); background: var(--orange); border: 2px solid var(--brown); border-radius: 999px; }

/* Sondage de l'accueil */
.poll { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 40rem; }
.poll__option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 3.2rem; padding: .7rem 1rem; overflow: hidden; text-align: left; font: 700 1.05rem/1.3 var(--font-title); color: var(--heading); background: var(--surface); border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--line); cursor: pointer; isolation: isolate; }
.poll__option::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--pct, 0) * 1%); background: rgba(255, 136, 7, .35); background: color-mix(in srgb, var(--orange) 35%, transparent); transition: width .3s ease; }
.poll__option:hover:not(:disabled) { box-shadow: 6px 6px 0 var(--line); }
.poll__option[aria-pressed="true"] { border-color: var(--brown); box-shadow: 4px 4px 0 var(--brown); }
.poll__option[aria-pressed="true"] .poll__label::before { content: "✓ "; }
.poll__option:disabled { cursor: default; }
.poll__count { font: 700 .9rem/1 var(--font-body); color: var(--muted); white-space: nowrap; }
.poll__total { margin-top: 1rem; color: var(--muted); }
.poll-archive { margin-top: 1.5rem; max-width: 40rem; }
.poll-archive summary { cursor: pointer; font: 700 1.05rem/1.3 var(--font-title); color: var(--heading); padding: .5rem 0; }
.poll-old__list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.poll-old__q { font-size: 1.1rem; margin: 0 0 .2rem; }
.poll-old__meta { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.poll-old__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.poll-old__opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; overflow: hidden; font: 700 .95rem/1.3 var(--font-title); color: var(--heading); background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); isolation: isolate; }
.poll-old__opt::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1; width: calc(var(--pct, 0) * 1%); background: rgba(255, 136, 7, .35); background: color-mix(in srgb, var(--orange) 35%, transparent); }
@media (prefers-reduced-motion: reduce) { .poll__option::before { transition: none; } }

/* Fan-arts */
.fanarts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.fanart { display: flex; flex-direction: column; gap: .8rem; padding: .8rem; }
.fanart__image { display: block; overflow: hidden; border: 3px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--surface-2, var(--surface)); }
.fanart__image img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: contain; }
.fanart__title { font: 700 1.1rem/1.3 var(--font-title); color: var(--heading); margin: 0; }
.fanart__artist { margin: .1rem 0 0; color: var(--muted); }
.fanart__links { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-weight: 700; }

/* Clips */
.clips { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.clip { padding: .8rem; display: flex; flex-direction: column; gap: .6rem; }
.clip__link { display: flex; flex-direction: column; gap: .6rem; color: inherit; text-decoration: none; }
.clip__link img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 272; object-fit: cover; border: 3px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--surface-2); }
.clip__title { font: 700 1.05rem/1.3 var(--font-title); color: var(--heading); }
.clip__link:hover .clip__title { text-decoration: underline; }
.clip__meta { margin: 0; color: var(--muted); font-size: .92rem; }

/* Commentaires sous les articles */
.comments { margin-top: 2.4rem; max-width: 44rem; }
.comments h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.comments .messages { margin: 1rem 0; }
.comment--pending { border-style: dashed; }
.comment__pending { margin: .6rem 0; color: var(--muted); font-size: .92rem; }
.comments .form { margin-top: 1.2rem; }
.comment__actions { margin-top: .8rem; }
.comment__replies { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 4px solid var(--line); display: grid; gap: .9rem; }
.comment__reply-form { margin-top: .9rem; display: grid; gap: .7rem; }

/* /admin/ : onglet Quiz */
.quiz-admin__choices { margin: .4rem 0 .8rem; padding-left: 1.2rem; }
.quiz-admin__right { font-weight: 800; }

/* Jeux du jour : la pêche de Pedro (scène animée), la question du jour (jeu télé), les défis du jour — page /jeux/ et fenêtre d'accueil */
.jeux { display: grid; gap: 1.6rem; }
.scene [hidden], .meter[hidden], .catchcard[hidden] { display: none !important; }
.quests { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.3rem; }
.quests__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.25rem; }
.quests__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.quest { display: flex; align-items: center; gap: .55rem; padding: .35rem .85rem .35rem .45rem; border: 3px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 700; transition: background-color .3s ease, border-color .3s ease; }
.quest__box { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 3px solid var(--line); border-radius: 50%; color: transparent; transition: background-color .25s ease, color .25s ease; }
.quest__box .icon { width: .95rem; height: .95rem; }
.quest__state { color: var(--muted); font-size: .9rem; font-weight: 700; }
.quest.is-done { border-color: var(--tone-green); background: color-mix(in srgb, var(--tone-green) 16%, var(--surface)); }
.quest.is-done .quest__box { background: var(--tone-green); border-color: var(--tone-green); color: #fff; animation: dx-tick .45s cubic-bezier(.3, 1.8, .5, 1); }
.quests__total { margin: 0 0 0 auto; font: 700 1.1rem/1.2 var(--font-title); color: var(--heading); }
#quests-points { font-size: 1.9rem; }
.arcade { display: grid; gap: .9rem; padding: 1rem; border: 4px solid var(--line); border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: 8px 8px 0 var(--shadow); }
.arcade--quiz { overflow: clip; }
.arcade__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.5rem; }
.arcade__help { margin: 0; color: var(--muted); font-size: .95rem; }
.arcade__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.btn--big { min-height: 3.6rem; padding: .7rem 1.7rem; font-size: 1.2rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.btn--big:disabled { opacity: .6; cursor: default; }

/* La scène de pêche */
.scene { --sc-sky-a: #6FBDF6; --sc-sky-b: #E1F2FF; --sc-sea-a: #3C93DB; --sc-sea-b: #16508F; --sc-berg: #F4FAFF; --sc-berg-far: #BFD9F0; --sc-ice: #E9F4FF; --sc-wave-a: #5DAAEA; --sc-wave-b: #86C1F4; --sc-sun: #FFE08A;
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 4px solid var(--line); border-radius: var(--radius); background: #6FBDF6; user-select: none; -webkit-user-select: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene { --sc-sky-a: #0A1431; --sc-sky-b: #2B4A82; --sc-sea-a: #1B4478; --sc-sea-b: #091B38; --sc-berg: #9DB4D6; --sc-berg-far: #50698F; --sc-ice: #C9DBF2; --sc-wave-a: #2C5C98; --sc-wave-b: #3C74B5; --sc-sun: #E8EEFF; } }
:root[data-theme="dark"] .scene { --sc-sky-a: #0A1431; --sc-sky-b: #2B4A82; --sc-sea-a: #1B4478; --sc-sea-b: #091B38; --sc-berg: #9DB4D6; --sc-berg-far: #50698F; --sc-ice: #C9DBF2; --sc-wave-a: #2C5C98; --sc-wave-b: #3C74B5; --sc-sun: #E8EEFF; }
.scene__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sky-a { stop-color: var(--sc-sky-a); } .sky-b { stop-color: var(--sc-sky-b); }
.sea-a { stop-color: var(--sc-sea-a); } .sea-b { stop-color: var(--sc-sea-b); }
.scene .sun { fill: var(--sc-sun); }
.scene .berg { fill: var(--sc-berg); } .scene .berg--far { fill: var(--sc-berg-far); }
.scene .flake { fill: #fff; opacity: .85; }
.scene .wave--a { fill: var(--sc-wave-a); opacity: .75; } .scene .wave--b { fill: var(--sc-wave-b); opacity: .55; }
.scene .swim__body, .scene .swim__tail { fill: rgba(255, 255, 255, .16); }
.swim--0 { --y: 250px; } .swim--1 { --y: 292px; } .swim--2 { --y: 330px; }
.scene .ice { fill: var(--sc-ice); } .scene .ice-light { fill: #fff; opacity: .9; }
.scene .rod { fill: none; stroke: #7A4A2A; stroke-width: 4; stroke-linecap: round; }
.scene .fline { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 1.4; }
.scene .bobber__top { fill: #E8442A; stroke: #fff; stroke-width: 1; } .scene .bobber__bottom { fill: #fff; }
.scene .drop { fill: #fff; opacity: .9; } .scene .shade { fill: rgba(8, 28, 58, .38); }
.scene .ripple { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .bang circle { fill: #FFD166; stroke: var(--brown); stroke-width: 2.5; transform-box: fill-box; transform-origin: center; } .scene .bang text { fill: var(--brown); font: 800 22px var(--font-title); }
/* Les prises : couleurs par espèce */
.fishshape { --fc: #B9C7D6; } .fishshape .f-body, .fishshape .f-tail, .fishshape .f-fin { fill: var(--fc); stroke: rgba(8, 28, 58, .35); stroke-width: 1.2; stroke-linejoin: round; }
.fishshape .f-tail, .fishshape .f-fin { filter: brightness(.88); } .fishshape .f-belly { fill: rgba(255, 255, 255, .45); } .fishshape .f-eye { fill: #1B2A41; }
.fishshape--sardine { --fc: #B9C7D6; } .fishshape--hareng { --fc: #7F9FC0; } .fishshape--truite { --fc: #C98C7A; } .fishshape--saumon { --fc: #F28C6B; } .fishshape--thon { --fc: #3D5F93; }
.fishshape--poisson-or { --fc: #FFC233; filter: drop-shadow(0 0 7px #FFD166); }
.fishshape .f-boot { fill: #7A4A2A; stroke: #3E2A1A; stroke-width: 2; stroke-linejoin: round; } .fishshape .f-sole { fill: #3E2A1A; } .fishshape .f-lace { fill: none; stroke: #EEE; stroke-width: 2.4; stroke-linecap: round; }
/* Pedro, qui réagit */
.scene__pedro { position: absolute; left: 2.5%; bottom: 52.5%; width: 21%; aspect-ratio: 1; pointer-events: none; }
.pedro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; border-radius: 24% 24% 0 0; opacity: 0; }
.scene[data-mood="idle"] .pedro--idle, .scene[data-mood="bite"] .pedro--bite, .scene[data-mood="effort"] .pedro--effort, .scene[data-mood="happy"] .pedro--happy, .scene[data-mood="rich"] .pedro--rich, .scene[data-mood="sad"] .pedro--sad { opacity: 1; }
/* Messages et jauges par-dessus la scène */
.scene__banner { position: absolute; top: 9%; left: 50%; margin: 0; padding: .4rem 1.2rem; border: 3px solid var(--brown); border-radius: 99px; background: #fff; color: var(--brown); font: 800 clamp(1.05rem, 3.2vw, 1.6rem)/1.1 var(--font-title); white-space: nowrap; box-shadow: 4px 4px 0 var(--brown); pointer-events: none; transform: translateX(-50%); }
.scene__banner.is-alert { background: var(--orange); } .scene__banner.is-bad { background: #FFD9D0; } .scene__banner.is-good { background: #D6F5E3; }
.meter { position: absolute; left: 50%; bottom: .8rem; width: min(26rem, 88%); padding: .5rem .75rem .6rem; border-radius: 14px; background: rgba(15, 27, 45, .82); color: #fff; transform: translateX(-50%); pointer-events: none; }
.meter__label { margin: 0 0 .3rem; font: 700 .92rem/1.2 var(--font-title); text-align: center; }
.meter__track { position: relative; height: .95rem; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.meter__fill { position: absolute; inset: 0; background: linear-gradient(90deg, #7CCBFF, #FFD166 60%, #FF6B4A); transform-origin: left; transform: scaleX(var(--p, 0)); }
.meter__zone { display: none; position: absolute; top: 0; bottom: 0; left: 27%; width: 46%; background: rgba(94, 214, 160, .6); }
.meter__mark { display: none; position: absolute; top: 0; bottom: 0; width: 7px; border-radius: 3px; background: #fff; left: calc(var(--p, 0) * (100% - 7px)); }
.scene[data-phase="reel"] .meter__fill, .scene[data-phase="landing"] .meter__fill { display: none; }
.scene[data-phase="reel"] .meter__zone, .scene[data-phase="reel"] .meter__mark { display: block; }
.meter__progress { height: .6rem; margin-top: .45rem; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.meter__progress-fill { display: block; height: 100%; background: #FFB25A; transform-origin: left; transform: scaleX(var(--p, 0)); }
.catchcard { position: absolute; left: 50%; top: 46%; display: grid; gap: .15rem; justify-items: center; width: min(17rem, 72%); padding: .9rem 1rem; border: 4px solid var(--brown); border-radius: 18px; background: #fff; color: var(--brown); text-align: center; box-shadow: 6px 6px 0 var(--brown); transform: translate(-50%, -50%); }
.catchcard p { margin: 0; }
.catchcard__kicker { font: 800 .85rem/1.1 var(--font-title); text-transform: uppercase; letter-spacing: .06em; }
.catchcard__name { font: 800 1.6rem/1.1 var(--font-title); }
.catchcard__pts { font: 800 2.2rem/1.1 var(--font-title); color: var(--steel); } .catchcard__pts span:last-child { font-size: 1rem; }
.catchcard__note { font-size: .88rem; font-weight: 700; }
.catchcard.is-rare { background: linear-gradient(135deg, #FFF3C4, #FFD166 55%, #FFF3C4); box-shadow: 6px 6px 0 var(--brown), 0 0 2rem rgba(255, 209, 102, .9); }
.catchcard.is-boot { background: #E8E2DA; }
.scene__tools { position: absolute; top: .6rem; right: .6rem; display: flex; align-items: center; gap: .45rem; }
.scene__streak, .scene__sound { display: inline-flex; align-items: center; gap: .3rem; min-height: 2.2rem; padding: .2rem .7rem; border: 3px solid var(--brown); border-radius: 99px; background: #fff; color: var(--brown); font: 800 .85rem/1 var(--font-title); }
.scene__streak { background: var(--orange); } .scene__streak .icon, .scene__sound .icon { width: 1.05rem; height: 1.05rem; }
.scene__sound { cursor: pointer; }
@media (max-width: 34rem) { .scene__sound span { display: none; } .scene__streak, .scene__sound { min-height: 1.9rem; padding: .15rem .5rem; } .scene__tools { top: .35rem; right: .35rem; } .meter { bottom: .4rem; padding: .35rem .6rem .45rem; } .meter__label { font-size: .8rem; } } .scene__sound[aria-pressed="true"] { background: #D6F5E3; }
.scene__sound:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fish-book { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.fish { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem .7rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.fish--unknown { border-style: dashed; color: var(--muted); }
.fish__name { font-weight: 700; }
.fish__meta { color: var(--muted); font-size: .92rem; text-align: right; }

/* La question du jour, façon jeu télé */
.quiz__question { margin: 0; font: 700 1.2rem/1.35 var(--font-title); color: var(--heading); }
.qgame { position: relative; display: grid; gap: .95rem; }
.qgame__top { display: flex; align-items: center; gap: .9rem; }
.qgame__host { position: relative; flex: none; width: 4.6rem; height: 4.6rem; overflow: hidden; border: 3px solid var(--line); border-radius: 50%; background: var(--surface-2); }
.qgame__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.qgame[data-mood="idle"] .qgame__face--idle, .qgame[data-mood="happy"] .qgame__face--happy, .qgame[data-mood="sad"] .qgame__face--sad { opacity: 1; }
.qgame__bubble { flex: 1; padding: .7rem 1rem; border: 3px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.qgame__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .qgame__grid { grid-template-columns: 1fr 1fr; } .qgame--compact .qgame__grid { grid-template-columns: 1fr; } }
.qcard { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 4.2rem; padding: .6rem .9rem; border: 3px solid var(--tone, var(--line)); border-radius: 16px; background: var(--surface); color: var(--text); font: 700 1.05rem/1.25 var(--font-title); text-align: left; cursor: pointer; box-shadow: 4px 4px 0 var(--tone, var(--line)); transition: transform .12s ease, box-shadow .12s ease, opacity .3s ease, background-color .3s ease; }
.qcard:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tone, var(--line)); }
.qcard:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tone, var(--line)); }
.qcard:disabled { cursor: default; }
.qcard__letter { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border: 2px solid var(--tone, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--line)) 24%, var(--surface)); font: 800 1.15rem/1 var(--font-title); }
.qcard__text { min-width: 0; overflow-wrap: anywhere; }
.qgame.is-locking .qcard:not(.is-picked) { opacity: .4; }
.qcard.is-picked { background: color-mix(in srgb, var(--orange) 26%, var(--surface)); border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.qcard.is-right { border-color: var(--tone-green); background: color-mix(in srgb, var(--tone-green) 24%, var(--surface)); box-shadow: 4px 4px 0 var(--tone-green), 0 0 1.4rem color-mix(in srgb, var(--tone-green) 60%, transparent); }
.qcard.is-right::after { content: "✓"; margin-left: auto; color: var(--tone-green); font: 900 1.5rem/1 var(--font-title); }
.qcard.is-wrong { border-color: var(--tone-red); background: color-mix(in srgb, var(--tone-red) 18%, var(--surface)); box-shadow: 4px 4px 0 var(--tone-red); }
.qcard.is-wrong::after { content: "✗"; margin-left: auto; color: var(--tone-red); font: 900 1.5rem/1 var(--font-title); }
.qcard.is-dim { opacity: .42; }
.qgame__result { min-height: 1.5rem; }
.quiz__verdict { margin: 0 0 .3rem; font: 800 1.15rem/1.3 var(--font-title); }
.quiz__verdict--ok { color: var(--heading); }
.qgame__pts { margin: 0 0 .3rem; font: 700 1.1rem/1.2 var(--font-title); }
.qgame__pts-n { font-size: 2rem; color: var(--heading); }
.confetti { position: absolute; left: 50%; top: 45%; z-index: 5; width: .55rem; height: .95rem; border-radius: 2px; pointer-events: none; }
.confetti--0 { background: #FF8807; } .confetti--1 { background: #2F6DB5; } .confetti--2 { background: #2E8B57; } .confetti--3 { background: #CF3A78; } .confetti--4 { background: #FFD166; }
.quiz-pop { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.4rem; border: 4px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 6px 6px 0 var(--shadow); }
.quiz-pop::backdrop { background: rgba(15, 27, 45, .6); }
.quiz-pop h2 { margin: 0 0 .3rem; font-size: 1.4rem; }

/* Mouvements : seulement pour les personnes qui n'ont pas demandé à réduire les animations */
@media (prefers-reduced-motion: no-preference) {
  .scene .flake { animation: dx-snow 8s linear infinite; }
  .scene .flake:nth-child(3n) { animation-duration: 11s; animation-delay: -3s; } .scene .flake:nth-child(3n+1) { animation-duration: 6.5s; animation-delay: -5s; } .scene .flake:nth-child(5n) { animation-delay: -7s; }
  .scene .wave--a { animation: dx-wave 7s linear infinite; } .scene .wave--b { animation: dx-wave 5s linear infinite reverse; }
  .scene .swim { animation: dx-swim 16s linear infinite; } .scene .swim--1 { animation-duration: 22s; animation-delay: -9s; } .scene .swim--2 { animation-duration: 28s; animation-delay: -18s; }
  .scene .drop { animation: dx-drop .8s ease-out forwards; }
  .scene .ripple { animation: dx-ripple 1.6s ease-out forwards; }
  .scene .bang circle { animation: dx-bang .45s cubic-bezier(.3, 1.7, .5, 1); }
  .scene__pedro { animation: dx-bob 3.2s ease-in-out infinite; }
  .scene[data-mood="happy"] .scene__pedro, .scene[data-mood="rich"] .scene__pedro { animation: dx-hop .55s ease-out 3; }
  .scene[data-mood="effort"] .scene__pedro { animation: dx-jolt .3s linear infinite; }
  .scene[data-mood="sad"] .scene__pedro { animation: dx-droop 1s ease-out forwards; }
  .scene[data-phase="bite"] .scene__pedro { animation: dx-jolt .18s linear infinite; }
  .scene[data-phase="reel"] .rod { animation: dx-rodpull .32s ease-in-out infinite alternate; transform-origin: 150px 128px; }
  .scene__banner.is-in { animation: dx-bannerpop .38s cubic-bezier(.3, 1.6, .5, 1); }
  .catchcard { animation: dx-cardpop .5s cubic-bezier(.3, 1.6, .5, 1); }
  .catchcard.is-rare { animation: dx-cardpop .5s cubic-bezier(.3, 1.6, .5, 1), dx-shine 1.8s ease-in-out .5s infinite alternate; }
  .qgame__bubble { animation: dx-slidein .45s ease-out; }
  .qcard { animation: dx-cardin .4s ease-out backwards; }
  li:nth-child(2) > .qcard { animation-delay: .07s; } li:nth-child(3) > .qcard { animation-delay: .14s; } li:nth-child(4) > .qcard { animation-delay: .21s; }
  .qcard.is-picked { animation: dx-suspense .5s ease-in-out infinite alternate; }
  .qcard.is-right { animation: dx-glowpop .6s ease-out; }
  .qcard.is-wrong { animation: dx-shake .5s ease-out; }
  .qgame.is-revealed[data-mood="happy"] .qgame__host { animation: dx-hop .55s ease-out 2; }
  .qgame__result.is-pop .qgame__pts-n { display: inline-block; animation: dx-pts .6s cubic-bezier(.3, 1.8, .5, 1); }
  .confetti { animation: dx-confetti 1.5s cubic-bezier(.2, .7, .4, 1) forwards; }
}
@keyframes dx-snow { from { transform: translateY(-20px); } to { transform: translateY(230px); } }
@keyframes dx-wave { to { transform: translateX(-40px); } }
@keyframes dx-swim { from { transform: translate(-60px, var(--y)); } to { transform: translate(700px, var(--y)); } }
@keyframes dx-drop { 0% { transform: translate(0, 0); opacity: .95; } 55% { transform: translate(var(--dx), var(--dy)); opacity: .95; } 100% { transform: translate(var(--dx), 0); opacity: 0; } }
@keyframes dx-ripple { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(6); opacity: 0; } }
@keyframes dx-bang { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes dx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2%); } }
@keyframes dx-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14%); } }
@keyframes dx-droop { from { transform: translateY(0) rotate(0); } to { transform: translateY(2%) rotate(-4deg); } }
@keyframes dx-jolt { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.2%, 0); } 75% { transform: translate(1.2%, -1%); } }
@keyframes dx-rodpull { from { transform: rotate(-1.6deg); } to { transform: rotate(2.4deg); } }
@keyframes dx-bannerpop { from { transform: translateX(-50%) scale(.4); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@keyframes dx-cardpop { from { transform: translate(-50%, -50%) scale(.5); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes dx-shine { from { filter: brightness(1); } to { filter: brightness(1.12); } }
@keyframes dx-slidein { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dx-cardin { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dx-suspense { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes dx-glowpop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes dx-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes dx-pts { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes dx-tick { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes dx-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 230px)) rotate(var(--r)); opacity: 0; } }

/* Boutique de Pedro : couleurs de pseudo, badges animés, pingouins à débloquer */
html [data-nc="gold"] { color: var(--nc-gold); }
html [data-nc="coral"] { color: var(--nc-coral); }
html [data-nc="mint"] { color: var(--nc-mint); }
html [data-nc="sky"] { color: var(--nc-sky); }
html [data-nc="lilac"] { color: var(--nc-lilac); }
html [data-nc="rose"] { color: var(--nc-rose); }
.wallet { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; }
.wallet__balance { font: 700 2rem/1 var(--font-title); color: var(--heading); }
.shop { display: grid; gap: 1.4rem; }
.shop__grid { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.shop__item { display: grid; gap: .5rem; align-content: start; padding: .9rem; border: 3px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.shop__item.is-owned { border-style: dashed; }
.shop__preview { display: flex; align-items: center; justify-content: center; min-height: 4.5rem; font: 700 1.3rem/1.2 var(--font-title); }
/* Pingouin rare pas encore acheté (choix de la photo de profil) */
.avatar-choice.is-locked { opacity: .6; position: relative; }
.avatar-choice__lock { display: block; margin-top: .15rem; font: 700 .72rem/1.1 var(--font-title); color: var(--muted); text-align: center; }
.shop__preview .avatar-choice__pic { width: 4.5rem; height: 4.5rem; }
.shop__name { margin: 0; font: 700 1.05rem/1.25 var(--font-title); color: var(--heading); }
.shop__desc { margin: 0; color: var(--muted); font-size: .92rem; }
.shop__price { font-weight: 800; }
.shop__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vitrine { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.badge-chip[data-anim], .badge-card__icon[data-anim] { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .badge-chip[data-anim="shine"]::after, .badge-card__icon[data-anim="shine"]::after { content: ""; position: absolute; inset: -20% auto -20% -60%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: dx-shine 2.8s ease-in-out infinite; pointer-events: none; }
  .badge-chip[data-anim="glow"], .badge-card__icon[data-anim="glow"] { animation: dx-glow 3s ease-in-out infinite; }
}
@keyframes dx-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes dx-glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone, var(--line)) 0%, transparent); } 50% { box-shadow: 0 0 .7rem .1rem color-mix(in srgb, var(--tone, var(--line)) 70%, transparent); } }

/* Carte des pingouins */
.map { display: grid; gap: 1.4rem; }
.map__summary { margin: 0; font: 700 1.3rem/1.3 var(--font-title); color: var(--heading); }
.map__figure { margin: 0; padding: 1rem; }
.map__svg { display: block; width: 100%; height: auto; }
.map__svg path { fill: var(--surface-2); stroke: var(--line); stroke-width: .5; vector-effect: non-scaling-stroke; }
.map__svg path[data-level] { cursor: pointer; stroke-width: 1; }
.map__svg path[data-level="1"] { fill: color-mix(in srgb, var(--orange) 35%, var(--surface-2)); }
.map__svg path[data-level="2"] { fill: color-mix(in srgb, var(--orange) 60%, var(--surface-2)); }
.map__svg path[data-level="3"] { fill: var(--orange); }
.map__svg path[data-level="4"] { fill: var(--steel); }
.map__svg path:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.map__info { margin: .6rem 0 0; font-weight: 700; color: var(--text); text-align: center; }
.map__list { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .35rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.map__row { display: flex; justify-content: space-between; gap: .8rem; padding: .35rem .7rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); }
.map__n { color: var(--muted); font-size: .92rem; text-align: right; }

/* /admin/ : sondages, fan-arts */
.poll-opts, .fa-links, .poll-results { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
.fa-link { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .fa-link { grid-template-columns: 1fr 2fr; } }
.fa-item { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; }
.fa-item img { width: 6rem; height: 6rem; object-fit: cover; border: 3px solid var(--line); border-radius: 12px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
fieldset.field legend { font-weight: 800; padding: 0; margin-bottom: .4rem; }

/* Page Setup */
.setup h3 { margin-bottom: .8rem; }
.spec { margin: 0; display: grid; gap: .8rem; }
.spec > div { display: grid; gap: .1rem; }
.spec dt { font: 800 .85rem/1.3 var(--font-title); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.spec dd { margin: 0; overflow-wrap: anywhere; }

/* Photos du setup : une grande photo de tête, puis des blocs photo(s) + fiche de matériel */
.setup-photo { margin: 0; overflow: hidden; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--line); background: var(--surface-2); }
.setup-photo img { display: block; width: 100%; height: auto; }
.setup-photo figcaption { padding: .55rem .9rem; font-weight: 700; font-size: .95rem; color: var(--muted); border-top: 3px solid var(--line); background: var(--surface); }
.setup-block { display: grid; gap: 1.6rem; align-items: start; }
.setup-block__media { display: grid; gap: 1.6rem; }
.setup-block__info { display: grid; gap: 1.6rem; }
@media (min-width: 64rem) {
  .setup-block { grid-template-columns: 1.35fr 1fr; gap: 2.4rem; }
  .setup-block--rev { grid-template-columns: 1fr 1.35fr; }
  .setup-block--rev .setup-block__media { order: 2; }
  .setup-block--nophoto { grid-template-columns: 1fr; }
}
.setup h2 { font-size: 1.25rem; margin-bottom: .8rem; }

/* /admin/ : aperçu d'un brouillon dans la liste */
#ed-lv-code, #acc-code-input { text-transform: uppercase; letter-spacing: .12em; }
.me__rename-row #ed-lv-code { flex: 0 1 11rem; font-size: 1.15rem; font-weight: 700; }
#ed-lv-code::placeholder, #acc-code-input::placeholder { text-transform: none; letter-spacing: normal; }
#ed-bot pre { overflow-x: auto; padding: 1em; background: var(--surface-2); border-radius: var(--radius); font-size: .85rem; }
#ed-bot summary { cursor: pointer; font-weight: 700; margin-top: 1rem; color: var(--heading); }
#ed-bot code { overflow-wrap: anywhere; }
.admin-preview { margin-top: 1rem; }
.admin-preview h4 { margin: 0 0 .6rem; font: 700 1.1rem/1.3 var(--font-title); color: var(--heading); }

/* ---------- Badges : pastilles à côté d'un pseudo, collection du profil ---------- */
.message__who { flex-wrap: wrap; }
/* ---------- Profil : en-tête, onglets, photo, fonds ---------- */
.page-title--compact { padding: clamp(1.4rem, 4vw, 2.2rem) 0 .4rem; }
.page-title--compact h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); margin-bottom: 0; }
.me { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem 1.2rem; align-items: center; padding: 1rem 1.2rem; background: linear-gradient(135deg, var(--surface) 55%, color-mix(in srgb, var(--orange) 20%, var(--surface))); }
.me .avatar--big { width: 5.5rem; height: 5.5rem; }
.me__body { min-width: 0; }
.me__name { font-size: clamp(1.5rem, 5vw, 2rem); margin: 0; overflow-wrap: anywhere; }
.me__stats { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: .2rem 0 .7rem; color: var(--muted); font-size: .95rem; }
.me__rename { display: grid; gap: .25rem; max-width: 30rem; }
.me__rename label { font: 700 .9rem/1.2 var(--font-title); color: var(--heading); }
.me__rename-row, .inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.me__rename-row input, .inline-form input { width: auto; flex: 1 1 9rem; min-width: 0; padding: .45rem .8rem; font-size: 1rem; min-height: 2.5rem; }
.me__rename .hint { margin: 0; font-size: .85rem; color: var(--muted); }
.page-title--compact + .section { padding-top: 1rem; }
.tabs { margin: 1rem 0 0; gap: .5rem; }
#account .tab { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; font-size: .95rem; box-shadow: 2px 2px 0 var(--line); }
#account .tab .icon { width: 1.15em; height: 1.15em; }
.panel { margin-top: 1rem; }
.panel > * + * { margin-top: 1rem; }
.panel__title { font-size: 1.3rem; margin: 0 0 .5rem; }
.card-maker .btn-row { margin: .6rem 0 0; }
.card-canvas { display: block; width: 100%; max-width: 36rem; height: auto; aspect-ratio: 1200 / 630; margin-top: 1rem; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--shadow); }
.card-canvas[hidden] { display: none; }
.panel p { margin: 0 0 .6rem; }
.pick { margin-top: 1rem; }
.pick:first-of-type { margin-top: .4rem; }
.pick__title { font: 700 .95rem/1.2 var(--font-title); margin: 0 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pick .hint, .panel .hint { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-row .btn[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.btn-row--tight { margin-top: .8rem; gap: .5rem; }
.btn--small .icon { width: 1.1em; height: 1.1em; }

/* Fonds d'avatar : valeurs fixes (les mêmes dans les deux thèmes), identifiants = supabase/20-fond-avatar.sql */
[data-bg="ice"] { --avatar-bg: #CFE6FA; }
[data-bg="snow"] { --avatar-bg: #FFFFFF; }
[data-bg="sun"] { --avatar-bg: #FFD166; }
[data-bg="orange"] { --avatar-bg: #FF9A3C; }
[data-bg="coral"] { --avatar-bg: #FF8A80; }
[data-bg="rose"] { --avatar-bg: #F7A8C8; }
[data-bg="lilac"] { --avatar-bg: #C3B1FF; }
[data-bg="mint"] { --avatar-bg: #8EE6C0; }
[data-bg="sky"] { --avatar-bg: #7CCBFF; }
[data-bg="night"] { --avatar-bg: #0F1B2D; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 2.2rem; height: 2.2rem; padding: 0; cursor: pointer; border: 3px solid var(--line); border-radius: 50%; background: var(--avatar-bg, var(--surface-2)); }
.swatch[data-bg=""] { background: linear-gradient(135deg, var(--surface-2) 44%, var(--line) 44% 56%, var(--surface-2) 56%); }
.swatch:hover { transform: scale(1.1); }
.swatch[aria-pressed="true"] { outline: 3px solid var(--orange); outline-offset: 2px; }
.swatch:disabled { opacity: .6; cursor: progress; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.9rem, 1fr)); gap: .5rem; }
.avatar-choice { display: grid; place-items: center; padding: .25rem; cursor: pointer; background: var(--surface); border: 3px solid var(--line); border-radius: 14px; transition: background-color .12s ease; }
.avatar-choice:hover { background: var(--surface-2); }
.avatar-choice[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange); }
.avatar-choice:disabled { opacity: .6; cursor: progress; }
.avatar-choice__pic { display: grid; place-items: center; width: 100%; border-radius: 10px; background: var(--avatar-bg, transparent); }
.avatar-choice img { width: 100%; max-width: 3.2rem; height: auto; }

/* ---------- Badges : une couleur par famille, pastilles à côté d'un pseudo, collection du profil ---------- */
[data-tone="blue"] { --tone: var(--tone-blue); }
[data-tone="green"] { --tone: var(--tone-green); }
[data-tone="gold"] { --tone: var(--tone-gold); }
[data-tone="red"] { --tone: var(--tone-red); }
[data-tone="purple"] { --tone: var(--tone-purple); }
[data-tone="pink"] { --tone: var(--tone-pink); }
.message__who { flex-wrap: wrap; }
.badges { display: inline-flex; gap: .3rem; align-items: center; }
.badge-chip { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 2px solid var(--tone, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--surface-2)) 24%, var(--surface)); color: color-mix(in srgb, var(--tone, var(--heading)) 60%, var(--text)); }
.badge-chip .icon { width: .9rem; height: .9rem; }
.badge-grid { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.badge-card { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon body" "pin pin"; gap: .4rem .6rem; align-items: center; padding: .6rem .7rem; border: 2px solid var(--tone, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--tone, var(--surface-2)) 14%, var(--surface)); }
.badge-card__icon { grid-area: icon; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 2px solid var(--tone, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--surface-2)) 26%, var(--surface)); color: color-mix(in srgb, var(--tone, var(--heading)) 60%, var(--text)); }
.badge-card__icon .icon { width: 1.3rem; height: 1.3rem; }
.badge-card__body { grid-area: body; display: grid; gap: .1rem; min-width: 0; }
.badge-card__body strong { font: 700 .98rem/1.2 var(--font-title); color: var(--heading); }
.badge-card__body .meta { margin: 0; font-size: .8rem; line-height: 1.3; }
.badge-card__pin { grid-area: pin; justify-self: start; min-height: 1.9rem; padding: .1rem .75rem; cursor: pointer; font: 700 .82rem/1 var(--font-title); color: var(--text); background: transparent; border: 2px solid var(--tone, var(--line)); border-radius: 99px; }
.badge-card__pin:hover { background: color-mix(in srgb, var(--tone, var(--line)) 18%, var(--surface)); }
.badge-card__pin.is-on { background: color-mix(in srgb, var(--tone, var(--line)) 32%, var(--surface)); }
.badge-card__pin.is-on::before { content: "✓ "; }
.badge-card__pin:disabled { opacity: .6; cursor: progress; }
.badge-grid--locked { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.badge-card.is-locked { --tone: var(--line); background: transparent; border-style: dashed; grid-template-areas: "icon body"; }
.badge-card.is-locked .badge-card__icon { background: transparent; color: var(--muted); }

/* ---------- Crédits ---------- */
.credits { display: grid; gap: 1.3rem; }
@media (min-width: 48rem) { .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); } .credits__group:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.credits__jump { margin-top: 1.1rem; }
.credits__jump ul, .credit__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.credits__jump a, .credit__link { display: inline-flex; align-items: center; gap: .4rem; min-width: 2.75rem; min-height: 2.75rem; padding: .3rem .95rem; font: 700 .95rem/1.2 var(--font-title); color: var(--heading); text-decoration: none; background: var(--surface); border: 2px solid var(--line); border-radius: 99px; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.credits__jump a:hover, .credit__link:hover { background: var(--surface-2); box-shadow: 2px 2px 0 var(--line); text-decoration: underline; text-underline-offset: 3px; }
.credits__jump a:focus-visible, .credit__link:focus-visible { border-radius: 99px; outline-offset: 3px; background: var(--surface-2); }
.credits__note { margin-top: .9rem; }
.credits__note .icon, .credit__link .icon { width: 1.1em; height: 1.1em; }
.credit__link .credit__ext { width: .85em; height: .85em; opacity: .75; }
.credits__group { border-top-width: 10px; border-top-color: var(--tone, var(--line)); }
.credits__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.credits__head > div { min-width: 0; }
.credits__group h2 { font-size: 1.45rem; line-height: 1.15; margin: 0 0 .2rem; }
.credits__group .meta { margin: 0; }
.credits__icon, .credit__mono { display: grid; place-items: center; flex: none; border: 2px solid var(--tone, var(--line)); border-radius: 50%; background: color-mix(in srgb, var(--tone, var(--surface-2)) 26%, var(--surface)); color: color-mix(in srgb, var(--tone, var(--heading)) 60%, var(--text)); }
.credits__icon { width: 3.1rem; height: 3.1rem; transform: rotate(-6deg); }
.credits__icon .icon { width: 1.7rem; height: 1.7rem; }
.credits__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.credit { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; gap: .5rem .75rem; padding: .75rem; background: color-mix(in srgb, var(--tone, var(--line)) 9%, var(--surface)); border: 2px solid color-mix(in srgb, var(--tone, var(--line)) 70%, var(--line)); border-radius: 14px; transition: transform .18s ease, box-shadow .18s ease; }
.credit:hover, .credit:focus-within { box-shadow: 3px 3px 0 var(--tone, var(--line)); }
.credit__mono { width: 3rem; height: 3rem; font: 700 1.6rem/1 var(--font-title); transition: transform .18s ease; }
.credit:nth-child(odd) .credit__mono { transform: rotate(-5deg); }
.credit:nth-child(even) .credit__mono { transform: rotate(4deg); }
.credit__body { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.credit__name--link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.credit__name--link:hover { color: var(--link); }
.member-link { color: inherit; text-decoration: none; }
a.member-link:hover { text-decoration: underline; text-underline-offset: .18em; }
a.member-link--pic { display: inline-flex; border-radius: 50%; }
a.member-link--pic:hover { text-decoration: none; filter: brightness(1.06); }
.member { display: grid; gap: 1.2rem; }
.member__credit h2 { display: flex; align-items: center; gap: .5rem; }
.member__note { display: block; margin: 0; color: var(--muted); font-size: .95rem; }
.member [hidden] { display: none; }
.member .credit__links { margin-top: .6rem; }
.credit__name { font: 700 1.12rem/1.2 var(--font-title); color: var(--heading); overflow-wrap: anywhere; }
.credit__role { padding: .05rem .65rem; font: 700 .82rem/1.4 var(--font-body); color: var(--text); background: color-mix(in srgb, var(--tone, var(--line)) 20%, var(--surface)); border: 1.5px solid var(--tone, var(--line)); border-radius: 99px; }
.credit__links { grid-column: 1 / -1; }
.credits__thanks { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.2rem; background: color-mix(in srgb, var(--orange) 14%, var(--surface)); }
.credits__thanks img { width: clamp(5rem, 22vw, 8.75rem); transform: rotate(-4deg); }
.credits__thanks h2 { font-size: 1.5rem; margin: 0 0 .3rem; }
.credits__thanks p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .credits__jump a:hover, .credit__link:hover { transform: translateY(-2px); }
  .credit:hover { transform: translateY(-3px); }
  .credit:hover .credit__mono { transform: rotate(0deg) scale(1.1); }
}

/* ---------- Overlay OBS (page nue, fond transparent) : petite carte façon notification Android, en haut au centre ---------- */
body.overlay { background: transparent; margin: 0; min-height: 0; overflow: hidden; }
body.overlay::before, body.overlay::after { display: none; }
body.overlay main { display: flex; justify-content: center; align-items: flex-start; }
.ovl { display: flex; align-items: center; gap: .65em; margin: .7em; padding: .5em 1em .5em .55em; font-size: calc(1.5rem * var(--ovl-scale, 1)); color: #fff; background: rgba(32, 33, 36, .94); border-radius: 1.5em; box-shadow: 0 0 .7em rgba(255, 136, 7, .55), 0 0 1.4em rgba(255, 136, 7, .25), 0 0 0 1px rgba(255, 170, 70, .45); }
.ovl[hidden] { display: none; }
.ovl__logo { flex: none; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--steel); }
.ovl__txt { display: grid; gap: .1em; min-width: 0; }
.ovl__label { margin: 0; font: 600 .62em/1.2 var(--font-body); letter-spacing: .02em; color: #B8BCC4; white-space: nowrap; }
.ovl__code { margin: 0; font: 700 1.55em/1.05 var(--font-title); letter-spacing: .16em; color: #fff; }
.ovl--alert .ovl__code { font: 700 1.1em/1.15 var(--font-title); letter-spacing: .03em; max-width: 12em; }
.ovl.is-in { animation: ovl-in .45s cubic-bezier(.2, .9, .3, 1.15), ovl-glow 2.4s ease-in-out .45s infinite; } /* halo orange qui respire */
.ovl.is-out { animation: ovl-out .32s ease-in forwards; }
@keyframes ovl-glow { 50% { box-shadow: 0 0 .95em rgba(255, 136, 7, .8), 0 0 1.7em rgba(255, 136, 7, .4), 0 0 0 1px rgba(255, 170, 70, .6); } }
@keyframes ovl-in { from { opacity: 0; transform: translateY(-160%); } to { opacity: 1; transform: none; } }
@keyframes ovl-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-160%); } }
/* L'overlay est un décor de stream, pas une page lue par une personne : il s'anime toujours (OBS suit parfois le réglage « animations » de Windows) */

/* ---------- « Ne rate plus un live » ---------- */
.notify { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 46rem; }
.notify__item { display: grid; gap: .6rem; align-content: start; }
.notify__item h3 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.notify__item h3 .icon { flex: none; }
.notify__item p { margin: 0; }

/* ---------- Vote de la semaine et « À l'honneur » ---------- */
.weekly { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .8rem; }
.weekly__count { color: var(--muted); font-size: .9rem; }
.weekly__note { flex-basis: 100%; margin: 0; font-size: .95rem; }
.weekly .btn[aria-pressed="true"] { border-color: var(--brown); box-shadow: 3px 3px 0 var(--brown); }
.honor-tag { display: inline-block; margin: 0 0 .6rem; padding: .25rem .7rem; font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--heading); background: var(--surface); border: 2px solid var(--line); border-radius: 99px; }
.fanart--honor { box-shadow: 6px 6px 0 var(--orange); }
.honor { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 46rem; }
.honor__item { padding: 0; overflow: hidden; }
.honor__link { display: grid; gap: .3rem; padding-bottom: 1rem; color: inherit; text-decoration: none; }
.honor__link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.honor__label { margin: .6rem 1rem 0; font: 700 .8rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.honor__title { margin: 0 1rem; font: 700 1.1rem/1.3 var(--font-title); color: var(--heading); }
.honor__by { margin: 0 1rem; color: var(--muted); font-size: .9rem; }
.honor__link:hover .honor__title, .honor__link:focus-visible .honor__title { text-decoration: underline; }
.board__tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.board__tabs .btn[aria-pressed="true"] { border-color: var(--brown); box-shadow: 3px 3px 0 var(--brown); }
.board { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .7rem; max-width: 40rem; }
.board__row { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; }
.board__row--top { background: var(--surface-2); }
.board__rank { min-width: 3rem; font: 700 1.2rem/1 var(--font-title); color: var(--heading); }
.board__name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.board__pts { color: var(--muted); white-space: nowrap; }
.board__me { max-width: 40rem; }
.champ { display: flex; align-items: center; gap: .5rem; max-width: 40rem; margin: 0 0 1rem; font-weight: 700; color: var(--heading); }
.champ .icon { flex: none; width: 1.4em; height: 1.4em; color: var(--tone-gold); }
.champs { max-width: 40rem; margin-bottom: 1.2rem; border-color: var(--tone-gold); }
.champs h2 { display: flex; align-items: center; gap: .5rem; font-size: 1.35rem; margin: 0 0 .2rem; }
.champs h2 .icon { width: 1.3em; height: 1.3em; color: var(--tone-gold); }
.champs__podium { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.champs__row { display: flex; align-items: center; gap: 1rem; }
.champs__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.presents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.present { padding: .35rem .8rem; font: 700 1rem/1.2 var(--font-title); color: var(--heading); background: var(--surface-2); border: 2px solid var(--line); border-radius: 99px; overflow-wrap: anywhere; }
.board__rules { max-width: 40rem; }
.board__rules summary { cursor: pointer; font-weight: 700; }
