/* =========================================================
   BloxRadio — thème bleu & blanc
   ========================================================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6fd;
  --surface-3: #e6ecf8;
  --line: #e3e8f3;
  --line-2: #d3dbeb;
  --text: #0b1220;
  --text-2: #3d475c;
  --muted: #6b7489;
  --blue: #335fff;          /* bleu Roblox */
  --blue-dark: #1f45e0;
  --blue-deep: #0f2aa8;
  --blue-soft: #eaf0ff;
  --blue-ring: rgba(51, 95, 255, .18);
  --hot: #ff3b5c;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 24px 60px -30px rgba(15, 42, 168, .35);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--text);
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(51, 95, 255, .14), transparent 60%),
    radial-gradient(700px 420px at -5% 5%, rgba(0, 162, 255, .10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 110px;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(51, 95, 255, .13) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.ico { width: 1em; height: 1em; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Boutons ---------- */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 22px; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(51, 95, 255, .8);
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-main:hover { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 14px 30px -12px rgba(51, 95, 255, .9); }
.btn-main.small { padding: 9px 18px; font-size: 14px; }
.btn-main.wide { width: 100%; padding: 16px; font-size: 16px; }
.btn-main:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 1.5px solid var(--line-2); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; background: #fff;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-soft); }
.btn-outline .ico { font-size: 17px; color: var(--blue); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; font-size: 20px; }
.link { background: none; border: 0; padding: 4px 0; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.link:hover { color: var(--blue); }

.kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--blue); margin-bottom: 12px; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.label .ico { font-size: 15px; color: var(--blue); }
.label.dark, .label.dark .ico { color: var(--blue-deep); }
.big { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Annonce défilante ---------- */
.announce { background: var(--blue); color: #fff; overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 14px; padding: 8px 0; }
.announce-track { display: inline-flex; animation: marquee 30s linear infinite; }
.announce-track span { padding-right: 70px; }
.announce-track span::before { content: "✦"; margin-right: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; gap: 20px; padding: 18px 0; position: sticky; top: 0; z-index: 45; transition: padding .25s; }
/* Fond du menu collant : pleine largeur, apparaît dès qu'on descend */
.top::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1.5px solid var(--line); box-shadow: 0 10px 30px -22px rgba(15, 42, 168, .45);
  opacity: 0; transition: opacity .25s;
}
.top.scrolled { padding: 10px 0; }
.top.scrolled::before { opacity: 1; }
.top.scrolled .nav { box-shadow: none; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.nav {
  margin: 0 auto; display: flex; gap: 4px; padding: 5px;
  background: rgba(255, 255, 255, .85); border: 1.5px solid var(--line); border-radius: 999px; backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -16px rgba(15, 42, 168, .3);
}
.nav a { text-decoration: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--blue); }
.nav a.active { background: var(--blue); color: #fff; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* ---------- Bento ---------- */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "np np show ded"
    "np np game social"
    "hist hist hist hist";
  margin-top: 8px;
}
.tile {
  position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-xl);
  padding: 24px; overflow: hidden; isolation: isolate; text-align: left; color: inherit;
  box-shadow: 0 12px 30px -24px rgba(15, 42, 168, .35);
}
.t-np { grid-area: np; display: flex; flex-direction: column; gap: 24px; padding: 28px; min-height: 460px; }
.t-show { grid-area: show; display: flex; flex-direction: column; gap: 10px; }
.t-ded { grid-area: ded; }
.t-game { grid-area: game; display: flex; flex-direction: column; gap: 14px; }
.t-social { grid-area: social; display: flex; flex-direction: column; gap: 12px; }
.t-history { grid-area: hist; }

/* Titre en cours : la grande tuile bleue */
.t-np { background: var(--blue); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.np-bg {
  position: absolute; inset: -40%; z-index: -1; background: center / cover no-repeat;
  filter: blur(70px) saturate(1.3); opacity: .45; transition: background-image .8s;
}
.t-np::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(51, 95, 255, .55) 0%, rgba(31, 69, 224, .85) 55%, rgba(15, 42, 168, .95) 100%);
}
.t-np::before {
  content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; z-index: -1;
  border-radius: 56px; border: 34px solid rgba(255, 255, 255, .07); transform: rotate(14deg);
}
.np-head { display: flex; align-items: center; gap: 10px; }
.onair {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: #fff; color: var(--hot); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
}
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 13px; font-weight: 700; }
.np-body { display: flex; align-items: flex-end; gap: 26px; flex: 1; }
.np-cover { position: relative; flex: none; }
.np-cover img {
  width: 210px; height: 210px; object-fit: cover; border-radius: 22px; background: rgba(255, 255, 255, .15);
  box-shadow: 0 30px 60px -25px rgba(5, 15, 70, .8); transition: opacity .35s, transform .35s;
}
.np-cover img.fading { opacity: 0; transform: scale(.96); }
.np-cover .eq { position: absolute; right: 12px; bottom: 12px; background: #fff; border-radius: 10px; padding: 7px 8px; }
.np-meta { min-width: 0; padding-bottom: 6px; }
.np-meta small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.np-meta h1 {
  font-size: clamp(26px, 2.9vw, 40px); font-weight: 800; margin-top: 10px; letter-spacing: -0.03em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.np-meta p { font-size: 20px; color: rgba(255, 255, 255, .85); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.np-label { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.np-label b { font-size: 17px; }
.np-label span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.np-progress { position: absolute; left: 28px; right: 28px; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); border-radius: 3px; }
.np-progress span { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; transition: width 1s linear; }

/* Bouton play */
.play {
  position: relative; width: 72px; height: 72px; border-radius: 50%; border: 0; flex: none;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 26px;
  transition: transform .2s;
}
.t-np .play { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -12px rgba(5, 15, 70, .6); }
.play:hover { transform: scale(1.06); }
.play:active { transform: scale(.96); }
.play.small { width: 52px; height: 52px; font-size: 19px; }
.play .i-play { margin-left: 0; } /* le triangle est déjà centré optiquement dans son dessin */
.play .ring { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; }
.i-pause { display: none; }
body[data-player="playing"] .i-play { display: none; }
body[data-player="playing"] .i-pause { display: block; }
body[data-player="playing"] .t-np .play { animation: halo-w 2.2s infinite; }
body[data-player="playing"] .bar .play { animation: halo-b 2.2s infinite; }
body[data-player="loading"] .play .i-play { opacity: .3; }
body[data-player="loading"] .play .ring { border-top-color: currentColor; animation: spin .8s linear infinite; }
.t-np .play .ring { color: #fff; }
@keyframes halo-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); } }
@keyframes halo-b { 0% { box-shadow: 0 0 0 0 rgba(51, 95, 255, .45); } 100% { box-shadow: 0 0 0 14px rgba(51, 95, 255, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Égaliseur */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.eq i { width: 4px; height: 30%; background: var(--blue); border-radius: 2px; }
.eq.small { height: 18px; }
.eq.small i { width: 3px; }
body[data-player="playing"] .eq i { animation: eq 1s ease-in-out infinite; }
body[data-player="playing"] .eq i:nth-child(2) { animation-delay: -.4s; }
body[data-player="playing"] .eq i:nth-child(3) { animation-delay: -.7s; }
body[data-player="playing"] .eq i:nth-child(4) { animation-delay: -.2s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* Volume */
.vol { display: flex; align-items: center; gap: 10px; width: 170px; flex: none; }
.vol-btn { background: none; border: 0; padding: 4px; font-size: 19px; color: var(--muted); display: grid; }
.vol-btn:hover { color: var(--blue); }
.t-np .vol-btn { color: rgba(255, 255, 255, .8); }
.t-np .vol-btn:hover { color: #fff; }
.vol-btn .i-mute { display: none; }
.vol-btn.muted .i-vol { display: none; }
.vol-btn.muted .i-mute { display: block; }
input[type="range"] {
  --val: 70%; --fill: var(--blue); --track: var(--surface-3);
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--fill) var(--val), var(--track) var(--val));
}
.t-np input[type="range"] { --fill: #fff; --track: rgba(255, 255, 255, .25); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--fill); }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--fill); }
.t-np input[type="range"]::-webkit-slider-thumb { border-color: #b9c9ff; }
.t-np input[type="range"]::-moz-range-thumb { border-color: #b9c9ff; }

/* Émission en cours */
.t-show h2 { font-size: 24px; margin-top: 6px; }
.show-bar { height: 5px; background: var(--surface-3); border-radius: 5px; margin-top: auto; overflow: hidden; }
.show-bar span { display: block; height: 100%; background: var(--blue); border-radius: 5px; }
.show-next { font-size: 13px; color: var(--muted); }
.show-next b { color: var(--text); }

/* Dédicace */
.t-ded {
  background: var(--blue-soft); border-color: #cfdcff; color: var(--blue-deep); display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s, border-color .25s;
}
.t-ded:hover { transform: translateY(-3px) rotate(-.6deg); border-color: var(--blue); }
.t-ded-txt { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -0.03em; margin-top: auto; }
.round-arrow { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 18px; transition: transform .25s; }
.t-ded:hover .round-arrow { transform: rotate(45deg); }
.t-ded::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 30px; border: 18px solid rgba(51, 95, 255, .1); transform: rotate(14deg); z-index: -1; }

/* Jeu */
.t-game .ico { --knock: #fff; }
.game-q { font-weight: 700; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-game:not(.is-on) .game-q { color: var(--muted); font-weight: 500; }
.t-game.is-on { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.game-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.prize { display: inline-flex; align-items: center; gap: 7px; background: #fff4d6; color: #9a6200; font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }

/* Communauté */
.t-social p { color: var(--text-2); font-size: 15px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px; transition: border-color .2s, color .2s; }
.social-links a:hover { border-color: var(--blue); color: var(--blue); }
.social-links .ico { font-size: 13px; color: var(--blue); }

/* Historique */
.tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hist-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hist-row li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); }
.hist-row img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; background: var(--surface-3); }
.hist-row div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.hist-row time { font-size: 12px; font-weight: 800; color: var(--blue); }
.hist-row b, .hist-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-row b { font-size: 14px; }
.hist-row span { font-size: 13px; color: var(--muted); }
.hist-row .empty { grid-column: 1 / -1; background: none; border: 1.5px dashed var(--line-2); justify-content: center; color: var(--muted); padding: 18px; }

/* ---------- Sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; margin-top: 120px; }
.split-intro p { color: var(--text-2); font-size: 18px; margin: 20px 0 28px; max-width: 440px; }
.block { margin-top: 120px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.block-sub { color: var(--text-2); max-width: 380px; font-size: 16px; }

/* Chat des dédicaces */
.chat { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1.5px solid var(--line); background: var(--surface-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:first-child { background: var(--blue); }
.chat-head b { font-family: var(--display); font-size: 14px; font-weight: 700; }
.chat-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.chat-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: blink 1.6s infinite; }
.chat-feed { display: flex; flex-direction: column; gap: 18px; padding: 22px 20px; max-height: 470px; min-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 12px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.avatar { width: 38px; height: 38px; border-radius: 11px; transform: rotate(10deg); display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; }
.avatar span { transform: rotate(-10deg); }
.msg-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-top b { font-size: 15px; }
.msg-top time { font-size: 12px; color: var(--muted); }
.msg-top .to { font-size: 13px; color: var(--muted); }
.msg-top .to em { font-style: normal; color: var(--text); font-weight: 700; }
.bubble { display: inline-block; margin-top: 6px; padding: 10px 14px; background: var(--surface-2); border-radius: 4px 16px 16px 16px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; max-width: 100%; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.tag .ico { color: var(--blue); }
.tag.read { background: var(--blue-soft); color: var(--blue-dark); }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 260px; }
.chat-input { display: flex; align-items: center; gap: 12px; margin: 0 14px 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); color: var(--muted); text-align: left; transition: border-color .2s; }
.chat-input:hover { border-color: var(--blue); }
.chat-input span:first-child { flex: 1; }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 17px; }

/* Programme */
.seg { display: flex; gap: 4px; padding: 5px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; position: relative; }
.seg button:hover { color: var(--blue); }
.seg button.today::after { content: ""; position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.seg button[aria-selected="true"] { background: var(--blue); color: #fff; }
.seg button[aria-selected="true"].today::after { background: #fff; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--line); }
.slot { display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; padding: 24px 8px; border-bottom: 1.5px solid var(--line); transition: background .2s; }
.slot:hover { background: var(--surface-2); }
.slot-time { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.slot-time small { display: block; font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.slot h3 { font-size: 22px; }
.slot p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.slot .host { color: var(--text-2); font-weight: 700; }
.slot-badge { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding: 7px 12px; border-radius: 999px; background: #ffe8ec; color: var(--hot); display: inline-flex; align-items: center; gap: 7px; }
.slot-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--hot); animation: blink 1.4s infinite; }
.slot.on { background: linear-gradient(90deg, var(--blue-soft), transparent 75%); border-radius: var(--r-md); border-bottom-color: transparent; }
.slot.on .slot-time { color: var(--blue); }
.slot.past { opacity: .45; }
.timeline .empty { padding: 40px 8px; color: var(--muted); }

/* Équipe */
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.job {
  display: flex; flex-direction: column; gap: 40px; text-align: left; padding: 22px; min-height: 190px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .25s, transform .25s, background .25s, color .25s, box-shadow .25s;
}
.job:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow); }
.job-n { font-family: var(--display); font-size: 13px; color: var(--muted); }
.job:hover .job-n { color: rgba(255, 255, 255, .7); }
.job b { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-top: auto; }
.job-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--blue); margin-top: -26px; }
.job:hover .job-cta { color: #fff; }
.job:hover .job-cta .ico { transform: rotate(45deg); }
.job-cta .ico { transition: transform .25s; }
.closed-card { padding: 34px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.closed-card b { color: var(--text); font-size: 18px; }

/* ---------- Pied de page ---------- */
.foot { margin-top: 140px; border-top: 1.5px solid var(--line); padding-top: 36px; overflow: hidden; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { text-decoration: none; font-weight: 700; color: var(--text-2); }
.foot-nav a:hover { color: var(--blue); }
.foot-word {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: .8; white-space: nowrap;
  font-size: clamp(32px, 9.3vw, 128px); margin: 48px 0 0; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(51, 95, 255, .3);
  background: linear-gradient(180deg, rgba(51, 95, 255, .14), transparent 85%); -webkit-background-clip: text; background-clip: text;
}

/* ---------- Lecteur fixe ---------- */
.bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40;
  width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
  padding: 8px; border-radius: 22px;
  background: rgba(255, 255, 255, .88); border: 1.5px solid var(--line); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 50px -18px rgba(15, 42, 168, .45);
}
.bar img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; flex: none; }
.bar-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.bar-txt b, .bar-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-txt b { font-size: 15px; }
.bar-txt span { font-size: 13px; color: var(--muted); }
.bar-vol { flex: none; width: 170px; margin-right: 10px; padding-left: 14px; border-left: 1.5px solid var(--line); }
.bar .play { margin: 0 2px 0 0; }

/* ---------- Modales ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 32, .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal.open { opacity: 1; }
.sheet {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: var(--r-xl); padding: 32px;
  transform: translateY(16px); transition: transform .25s;
  box-shadow: 0 40px 100px -30px rgba(11, 18, 32, .5);
}
.modal.open .sheet { transform: none; }
.sheet h3 { font-size: 30px; font-weight: 800; padding-right: 40px; }
.sheet-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; font-size: 17px; }
.sheet-x:hover { background: var(--surface-3); }
.sheet-sub { color: var(--muted); margin: 10px 0 22px; }
.sheet-q { font-size: 19px; font-weight: 700; margin: 14px 0 12px; }
.sheet .prize { margin-bottom: 22px; }
.hist-list { list-style: none; margin: 18px 0 0; padding: 0; }
.hist-list li { display: grid; grid-template-columns: 50px 48px 1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.hist-list li:last-child { border-bottom: 0; }
.hist-list time { font-weight: 800; font-size: 13px; color: var(--blue); }
.hist-list img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.hist-list b { display: block; line-height: 1.2; }
.hist-list span { color: var(--muted); font-size: 14px; }

/* ---------- Formulaires ---------- */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; color: var(--text-2); position: relative; }
label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
input:not([type="range"]), textarea, select {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #9aa3b5; }
textarea { resize: vertical; min-height: 100px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-ring); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.counter { position: absolute; right: 12px; bottom: 10px; font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-size: 15px; font-weight: 700; background: var(--text); color: #fff; box-shadow: 0 20px 40px -15px rgba(11, 18, 32, .5); animation: rise .3s ease both; }
.toast.success { background: var(--blue); }
.toast.error { background: var(--hot); }
.toast.out { opacity: 0; transform: translateY(-6px); transition: .3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "np np" "show ded" "game social" "hist hist";
  }
  .hist-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hist-row li:nth-child(n+4) { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .btn-outline span { display: none; }
  .btn-outline { width: 44px; padding: 0; justify-content: center; }
  .top-actions { margin-left: auto; }
  .nav {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; margin: 0;
    flex-direction: column; border-radius: var(--r-lg); padding: 8px; background: #fff;
    display: none; box-shadow: 0 30px 60px -20px rgba(15, 42, 168, .4);
  }
  .nav.open { display: flex; animation: rise .25s ease both; }
  .nav a { padding: 14px 16px; border-radius: 12px; font-size: 16px; }
  .slot { grid-template-columns: 110px 1fr; }
  .slot-badge { grid-column: 2; justify-self: start; }
  .bar-vol { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 96px; }
  .wrap { width: calc(100% - 32px); }
  .top { padding: 16px 0; }
  .logo span { font-size: 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "np" "ded" "show" "game" "social" "hist"; gap: 12px; }
  .tile { padding: 20px; border-radius: 24px; }
  .t-np { padding: 20px; min-height: 0; gap: 20px; }
  .np-body { flex-direction: column; align-items: flex-start; gap: 18px; }
  .np-cover { width: 100%; }
  .np-cover img { width: 100%; height: auto; aspect-ratio: 1; }
  .np-meta h1 { font-size: 28px; }
  .np-meta p { font-size: 17px; }
  .np-controls .vol { display: none; }
  .np-progress { left: 20px; right: 20px; }
  .t-ded { min-height: 150px; }
  .t-ded-txt { font-size: 23px; padding-right: 50px; }
  .hist-row { grid-template-columns: 1fr; gap: 8px; }
  .hist-row li:nth-child(n+4) { display: flex; }
  .hist-row li:nth-child(n+5) { display: none; }
  .split, .block { margin-top: 80px; }
  .chat-feed { padding: 18px 14px; }
  .slot { grid-template-columns: 1fr; gap: 6px; padding: 18px 12px; }
  .slot-time small { display: inline; margin-left: 8px; }
  .slot-badge { grid-column: 1; }
  .row2 { grid-template-columns: 1fr; }
  .modal { place-items: end center; padding: 0; }
  .sheet { border-radius: 26px 26px 0 0; max-height: 92vh; padding: 26px 20px 30px; }
  .sheet h3 { font-size: 25px; }
  .bar { bottom: 10px; border-radius: 20px; }
  .foot { margin-top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Aperçu équipe pendant la maintenance */
.team-preview { background: #ffb020; color: #3d2600; text-align: center; font-weight: 700; font-size: 14px; padding: 9px 16px; }
.team-preview a { color: inherit; font-weight: 800; margin-left: 6px; }

/* Captcha anti-robot */
.captcha { display: flex; flex-direction: column; gap: 7px; }
.captcha-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row img { width: 230px; height: 74px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--blue-soft); }
.captcha-row img.loading { opacity: .35; }
.captcha-new { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-size: 20px; color: var(--blue); display: grid; place-items: center; }
.captcha-new:hover { border-color: var(--blue); }
.captcha-row input { width: 90px !important; flex: none; text-align: center; font-size: 22px !important; font-weight: 800; }
@media (max-width: 640px) { .captcha-row img { width: 100%; max-width: 230px; height: auto; aspect-ratio: 230 / 74; } }
