@font-face { font-family: Outfit; src: url(/fonts/outfit-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Outfit; src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20C0; }

/* Sombre par défaut, comme le reste du site. Le visiteur peut passer au clair (témoin « theme », lu par le serveur : pas de clignotement). */
:root { --bg: #0d0c0e; --text: #f4f1f6; --muted: #a9a3b0; --line: #26232a; --soft: #19171b; --accent: #c98be6; --card: #2a1832; --card-line: #6a3a80; color-scheme: dark; }
:root[data-theme="light"] { --bg: #fff; --text: #17131a; --muted: #6c6472; --line: #e7e2ea; --soft: #f1edf3; --accent: #8a3fa8; --card: #ecdcf2; --card-line: #c9a3d9; color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Outfit, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.h-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 500; margin-right: auto; }
.logo b { color: var(--accent); font-weight: 500; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--card); color: var(--accent); transform: rotate(-12deg); }
.h-search { position: relative; width: min(340px, 46vw); }
.h-search label { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--muted); }
.h-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.h-search label:focus-within { box-shadow: 0 0 0 2px var(--card-line); }
kbd { font: 11px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
#h-results { position: absolute; top: 46px; right: 0; width: min(420px, 90vw); max-height: 60vh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); padding: 6px; }
#h-results a { display: block; padding: 10px 12px; border-radius: 10px; }
#h-results a:hover, #h-results a:focus { background: var(--soft); }
#h-results small { display: block; color: var(--muted); }
#h-results p { margin: 0; padding: 14px 12px; color: var(--muted); }
.h-home { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.h-home:hover { background: var(--soft); }

.h-body { display: grid; grid-template-columns: 290px minmax(0, 1fr) 230px; max-width: 1500px; margin: 0 auto; }
.h-side { position: sticky; top: 65px; align-self: start; max-height: calc(100vh - 65px); overflow: auto; padding: 20px 14px 40px; border-right: 1px solid var(--line); }
.h-side a { display: block; padding: 7px 14px; border-radius: 10px; color: var(--muted); }
.h-side a:hover { color: var(--text); background: var(--soft); }
.h-side a.on { color: var(--accent); background: var(--soft); font-weight: 500; }
.h-root { color: var(--text) !important; }
.h-group { margin-top: 14px; }
.h-group span { display: block; padding: 7px 14px; color: var(--text); }
.h-group a { margin-left: 14px; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; }

.h-main { padding: 46px clamp(18px, 5vw, 80px) 80px; max-width: 1010px; width: 100%; margin: 0 auto; }
.h-main h1 { font-size: clamp(30px, 4vw, 38px); font-weight: 600; line-height: 1.15; margin: 0 0 18px; }
.h-main h2 { font-size: 24px; font-weight: 600; margin: 40px 0 14px; }
.h-main p, .h-main li { font-size: 17px; }
.h-main li { margin: 6px 0; }
.h-main p a, .h-main li a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.h-main hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.h-main code { font: 14px ui-monospace, monospace; background: var(--soft); padding: 2px 6px; border-radius: 6px; }
.h-lead { color: var(--text); }
.h-crumb { color: var(--accent); margin: 0 0 6px; font-weight: 500; }
.h-table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.h-table th, .h-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.h-table th { font-weight: 600; background: var(--soft); }
.h-table td:nth-child(2) { font-weight: 600; font-variant-numeric: tabular-nums; }
.h-main h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prompt { margin: 8px 0 18px; padding: 14px; border-radius: 10px; background: var(--soft); border: 1px dashed var(--card-line); font: 14px/1.55 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.note { background: var(--card); border: 1px solid var(--card-line); border-radius: 12px; padding: 12px 16px; }
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.h-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 2px solid var(--card-line); font-size: 17px; font-weight: 500; transition: transform .15s, border-color .15s; }
.h-card svg { color: var(--accent); }
.h-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.h-nav { display: flex; justify-content: space-between; gap: 16px; }
.h-nav a { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; }
.h-nav a:hover { border-color: var(--card-line); }
.h-nav small { display: block; color: var(--muted); font-weight: 400; }
.h-nav .next { text-align: right; margin-left: auto; }

.h-toc { position: sticky; top: 65px; align-self: start; padding: 40px 20px; font-size: 14px; }
.h-toc b { display: block; margin-bottom: 10px; font-weight: 600; }
.h-toc a { display: block; padding: 5px 0 5px 14px; color: var(--muted); border-left: 1px solid var(--line); }
.h-toc a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 1150px) { .h-body { grid-template-columns: 250px minmax(0, 1fr); } .h-toc { display: none; } }
@media (max-width: 760px) {
  .h-top { padding: 10px 14px; }
  kbd { display: none; }
  .h-body { grid-template-columns: 1fr; }
  .h-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .h-main { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Bouton de thème */
.h-theme { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 18px; } .h-theme:hover { background: var(--soft); }
/* Événement en direct : bandeau, onglet, fenêtre du participant et pastille (mêmes éléments que sur le reste du site) */
.live-bar, .ev-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding: 10px 16px; color: #1a0b00; text-decoration: none; font-weight: 800; letter-spacing: .03em; background: linear-gradient(90deg, #ff7a18, #ffb347, #ff7a18); background-size: 200% 100%; animation: liveSlide 3s linear infinite; position: relative; z-index: 60; }
.live-bar span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; } .live-bar span i { width: 11px; height: 11px; border-radius: 50%; background: #d40000; animation: livePulse 1.1s ease-out infinite; }
.live-bar b { padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .82); color: #fff; font-size: 13px; font-weight: 700; } .live-bar b em { font-style: normal; font-weight: 500; color: #ffd9a8; }
.live-bar u, .live-bar s { text-decoration: none; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #1a0b00; color: #ffb347; } .live-bar s b { background: none; padding: 0; }
.live-bar.live-m4 { animation: none; background: linear-gradient(90deg, #3a2a12, #5a3d14); color: #ffd9a8; }
.ev-bar { color: #fff; background: linear-gradient(90deg, #b565d8, #4aa3ff, #2ecc71, #ffd76a, #ff7a18, #b565d8); background-size: 300% 100%; } .ev-bar em, .ev-bar i { font-style: normal; font-size: 13px; }
@keyframes liveSlide { to { background-position: 200% 0; } } @keyframes livePulse { to { box-shadow: 0 0 0 12px rgba(212, 0, 0, 0); } } @keyframes liveBlink { 50% { opacity: .25; } }
.live-chip { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: inline-flex; gap: 8px; align-items: center; padding: 11px 16px; border-radius: 999px; background: #1a0b00; color: #ffcf8a; font: inherit; font-weight: 700; cursor: pointer; border: 2px solid #ff9f1a; box-shadow: 0 8px 30px rgba(255, 120, 0, .4); } .live-chip[hidden] { display: none; } .live-chip i { width: 10px; height: 10px; border-radius: 50%; background: #e5112b; animation: liveBlink 1.2s ease-in-out infinite; }
dialog.modal { max-width: 560px; width: calc(100% - 32px); padding: 22px; border-radius: 20px; border: 2px solid var(--dc, #ff9f1a); background: #121014; color: #f4f1f6; box-shadow: 0 0 60px rgba(255, 159, 26, .35); } dialog.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(3px); }
.live-modal-top { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 18px; } .live-modal h3 { margin: 0 0 10px; } .live-modal-list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; } .live-modal .hint { color: #a9a3b0; font-size: 14px; }
.lv-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #e5112b; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; } .lv-live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: liveBlink 1.4s ease-in-out infinite; }
dialog.modal .btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; } dialog.modal .btn { display: inline-block; padding: 10px 16px; border-radius: 12px; border: 1px solid #3a3541; background: #1d1a21; color: #f4f1f6; font: inherit; font-weight: 600; cursor: pointer; } dialog.modal .btn-accent { background: #b565d8; border-color: #b565d8; color: #fff; }
dialog.ev-modal .ev-cups { display: grid; gap: 8px; margin: 12px 0; } dialog.ev-modal .ev-cup { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #1d1a21; border-left: 4px solid var(--dc, #b565d8); }

/* Fenêtre du participant : centrée, banderole EN DIRECT, émojis qui dansent, bannières équipe VS équipe */
dialog.lm { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 24px); width: min(640px, calc(100vw - 24px)); max-width: none; padding: 0; overflow: auto; border-radius: 24px; border: 2px solid var(--dc, #ff9f1a); background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--dc, #ff9f1a) 26%, #17131c), #121014 70%); color: #f4f1f6; box-shadow: 0 0 80px color-mix(in srgb, var(--dc, #ff9f1a) 50%, transparent); text-align: center; }
dialog.lm::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.lm-in { padding: 0 22px 22px; display: grid; gap: 14px; justify-items: center; }
.lm-ribbon { width: calc(100% + 44px); margin: 0 -22px; padding: 14px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(90deg, #e5112b, var(--dc, #ff9f1a), #e5112b); background-size: 200% 100%; animation: lm-slide 5s linear infinite; }
.lm-ribbon > div { display: grid; gap: 4px; justify-items: center; } .lm-ribbon b { font-size: 20px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.lm-emo { font-size: 30px; display: inline-block; animation: lm-bounce 1.6s ease-in-out infinite; } .lm-emo.r, .lm-emo.r2 { animation-name: lm-bounce-r; } .lm-emo.l2, .lm-emo.r2 { animation-delay: .4s; font-size: 24px; }
@keyframes lm-bounce { 0%, 100% { transform: translateY(7px) rotate(-18deg); } 50% { transform: translateY(-9px) rotate(18deg); } }
@keyframes lm-bounce-r { 0%, 100% { transform: translateY(-9px) rotate(18deg); } 50% { transform: translateY(7px) rotate(-18deg); } }
@keyframes lm-slide { to { background-position: 200% 0; } }
dialog.lm h3 { margin: 4px 0 0; font-size: 24px; }
.lm-duel { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; } .lm-duel.solo { grid-template-columns: minmax(0, 320px); justify-content: center; }
.lm-team { min-width: 0; min-height: 132px; padding: 14px 10px; border-radius: 16px; border: 1px solid #3a3541; background: linear-gradient(160deg, #2a2140, #171a2e) center / cover; display: grid; gap: 4px; align-content: center; justify-items: center; }
.lm-team.me { border: 2px solid var(--dc, #ff9f1a); box-shadow: 0 0 22px color-mix(in srgb, var(--dc, #ff9f1a) 45%, transparent); }
.lm-team img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; } .lm-team b { font-size: 22px; } .lm-team span { font-size: 14px; overflow-wrap: anywhere; } .lm-team em { font-style: normal; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--dc, #ff9f1a); color: #14111a; }
.lm-vs { align-self: center; font-size: 30px; font-weight: 900; font-style: italic; color: #ffb347; text-shadow: 0 0 18px rgba(255, 179, 71, .7); animation: lm-pulse 1.4s ease-in-out infinite; } @keyframes lm-pulse { 50% { transform: scale(1.18); } }
dialog.lm .live-modal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 16px; } .lm-warm { margin: 0; font-size: 17px; font-weight: 600; color: #ffd76a; }
dialog.lm .btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; } dialog.lm .hint { margin: 0; font-size: 13px; color: #a9a3b0; }
@media (max-width: 520px) { .lm-emo.l2, .lm-emo.r2 { display: none; } .lm-team { min-height: 104px; } .lm-team b { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .lm-emo, .lm-vs, .lm-ribbon { animation: none; } }

/* Banderole de l'événement : bouton pour la fermer, et l'état « bientôt » */
.live-wrap { position: relative; } .live-wrap[hidden] { display: none; } .live-wrap .live-bar { padding-right: 46px; }
.live-x { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; } .live-x:hover { background: #000; }
.live-bar.live-m0 { animation: none; background: linear-gradient(90deg, #4b2a7a, #7a3fc2, #4b2a7a); color: #f3e8ff; } .live-bar.live-m0 span i { animation: none; background: #ffd76a; } .live-bar.live-m0 u { background: #1b0f2e; color: #e3c8ff; }

/* Banderole du mode test */
.test-bar { position: relative; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 8px 44px 8px 14px; background: #10261a; color: #d9ffe8; border-bottom: 1px solid #2e7d4f; font-size: 13.5px; } .test-bar[hidden] { display: none; }
.test-bar b { color: #7be0a0; } .test-bar code { padding: 3px 10px; border-radius: 8px; background: #06140d; border: 1px solid #2e7d4f; font-size: 15px; letter-spacing: .06em; color: #fff; user-select: all; } .test-bar small { color: #9fd8b6; } .test-bar a { color: #7be0a0; }
.tb-btn { padding: 4px 12px; border-radius: 999px; border: 0; background: #7be0a0; color: #06140d; font: inherit; font-weight: 700; cursor: pointer; } .tb-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .5); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.dyn-obs .test-bar, .dyn-obs .live-wrap { display: none !important; }

/* Passage en mode réel : banderole d'annonce (choix de conserver son compte) puis « le site est en mode réel » pendant 8 h. */
.golive-bar { position: relative; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 10px 48px 10px 16px; background: linear-gradient(90deg, #3a1d00, #4a1430); color: #ffe9d6; border-bottom: 2px solid #ff9a3c; font-size: 14px; line-height: 1.45; } .golive-bar[hidden] { display: none; }
.golive-bar p { margin: 0; max-width: 980px; } .golive-bar b { color: #ffc27a; } .golive-bar.live { background: linear-gradient(90deg, #0c2a1a, #10304a); border-color: #3ddc84; color: #dcffe9; } .golive-bar.live b { color: #7cf0ad; }
.golive-bar .gl-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0; } .golive-bar .gl-ask small { color: #ffd9b3; }
.golive-bar .gl-ask button { cursor: pointer; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; border: 2px solid; } .golive-bar .gl-yes { background: #123d24; color: #bfffd6; border-color: #3ddc84; } .golive-bar .gl-no { background: #3d1212; color: #ffc9c9; border-color: #ff6b6b; }
.golive-bar .tb-x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: inherit; font-size: 24px; cursor: pointer; line-height: 1; }
.dyn-obs .golive-bar { display: none !important; }
.real-name { border: 1px dashed #8a6cff; border-radius: 10px; padding: 8px 12px 10px; margin: 6px 0; } .real-name legend { padding: 0 6px; font-weight: 700; } .rn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .rn-row label { flex: 1 1 180px; }
.lg-news { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #12202e; border: 1px solid #2f5f8a; } .lg-news.same { background: #10261a; border-color: #2e7d4f; } .lg-news.changed { background: #2a1d08; border-color: #c98a2b; }
.lg-diff { max-height: 320px; overflow: auto; margin-top: 6px; } .lg-diff p { margin: 4px 0; padding: 4px 8px; border-radius: 6px; } .lg-diff .add { background: rgba(61, 220, 132, .15); } .lg-diff .del { background: rgba(255, 107, 107, .15); text-decoration: line-through; }
.lg-sign { display: block; margin: 8px 0; } .lg-sign input { font: italic 20px Georgia, serif; } .lg-sign small { display: block; opacity: .8; }
