/* =============================================================================
   PAGE : ACCUEIL (index.html) — module de page · V4 « Épuré » 2027
   N'utilise que les tokens définis dans /style.css
   ============================================================================= */

/* ---------- Outils du header : direct + recherche ---------- */
.capsule-direct-btn {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--text-4);
    transition: transform var(--dur) var(--ease), background var(--dur-fast);
}
.capsule-direct-btn.inactive { display: none; } /* MP-2.16 : icône visible seulement pendant un direct */
.capsule-direct-btn.live-active {
    color: #fff; background: var(--signal); cursor: pointer;
    animation: tgcPulse 1.8s infinite;
}
.capsule-direct-btn.live-active:hover { transform: scale(1.06); }

.search-widget-container { position: relative; display: flex; align-items: center; }
.search-toggle { display: none; }
.search-widget {
    display: flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 5px 0 14px; width: clamp(170px, 13vw, 260px);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), width var(--dur) var(--ease), background var(--dur-fast);
}
.search-widget:hover { border-color: var(--border-strong); }
.search-widget:focus-within { border-color: var(--accent); background: var(--surface-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); width: clamp(220px, 19vw, 330px); }
.search-icon { color: var(--text-4); font-size: .8rem; }
.search-widget input {
    flex: 1; min-width: 0; min-height: 0; height: 100%; padding: 0;
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    font-size: var(--fs-sm); color: var(--text);
}
.search-widget input:focus, .search-widget input:focus-visible { outline: none; }
.ai-sparkle-btn {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; padding: 0; overflow: hidden; cursor: pointer;
    border: 0; background: var(--surface-3);
    transition: transform var(--dur) var(--ease);
}
.ai-sparkle-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-sparkle-btn:hover { transform: scale(1.08); }
.search-results {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 1060;
    width: min(380px, calc(100vw - 24px)); max-height: 60vh; overflow-y: auto;
    padding: 6px; border-radius: var(--radius-lg);
    background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.search-result-item { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.search-result-item:hover, .search-result-item:focus { background: var(--surface-hover); outline: none; }
.search-result-title { font-weight: 600; font-size: var(--fs-sm); }
.search-result-desc { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- Rythme vertical de la page ---------- */
.home { gap: 0; }
.home > * + * { margin-top: var(--gap); }
.home > .home-section { margin-top: clamp(40px, 5vw, 80px); }

/* ---------- HERO ---------- */
.home-hero {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center;
    gap: clamp(24px, 4vw, 72px);
    padding: clamp(12px, 3.5vw, 56px) 0 clamp(20px, 3vw, 44px);
}
.hero-content { min-width: 0; }
.hero-eyebrow {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    margin: 0 0 var(--space-6); font-size: .85rem; font-weight: 500; color: var(--text-3);
}
.hero-eyebrow .tgc-stars i { font-size: .62rem; }
.hero-title {
    font-family: var(--font-display); font-style: italic; font-weight: 850; font-stretch: 112%;
    font-size: clamp(2.7rem, 1rem + 5.6vw, 6.4rem); line-height: .94; letter-spacing: -.035em;
    margin: 0 0 var(--space-6);
}
.hero-title-sub {
    display: block; margin-bottom: .85rem;
    font-family: var(--font-body); font-style: normal; font-stretch: 100%; font-weight: 500;
    font-size: clamp(1rem, .92rem + .35vw, 1.2rem); letter-spacing: 0; line-height: 1.3; color: var(--text-3);
}
.hero-line { display: block; }
.hero-com { color: var(--brand-blue); }
.hero-edition { color: var(--brand-orange); font-weight: 800; }
.hero-subtitle { font-size: var(--fs-lg); color: var(--text-2); max-width: 44ch; margin: 0 0 var(--space-8); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Logo : disque doux + cercle tricolore coupé de façon asymétrique, qui tourne lentement autour du logo
   (arrêté si le visiteur a demandé « Réduire les animations ») */
.hero-logo-container { position: relative; display: grid; place-items: center; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; }
.hero-logo-ring {
    position: absolute; inset: 5%; border-radius: 50%;
    background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--brand-blue) 16%, transparent), transparent 68%);
}
.hero-logo-ring::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    /* segments bleu / orange / rouge / or séparés par des coupures de tailles différentes */
    background: conic-gradient(from 14deg,
        var(--brand-blue)   0      29%,   transparent 29%    31.5%,
        var(--brand-orange) 31.5%  45%,   transparent 45%    46.3%,
        var(--brand-red)    46.3%  53%,   transparent 53%    58.5%,
        var(--brand-blue)   58.5%  81%,   transparent 81%    82%,
        var(--brand-gold)   82%    85.5%, transparent 85.5%  89.5%,
        var(--brand-blue)   89.5%  100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: heroRingSpin 26s linear infinite;
    will-change: transform;
}
.hero-logo-ring { animation: heroRingGlow 5s ease-in-out infinite; }
@keyframes heroRingSpin { to { transform: rotate(360deg); } }
@keyframes heroRingGlow { 50% { transform: scale(1.03); opacity: .85; } }
.hero-main-logo {
    position: relative; z-index: 1; width: 80%; height: auto; user-select: none;
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .35));
}
:root[data-theme="light"] .hero-main-logo { filter: drop-shadow(0 22px 34px rgba(14, 42, 90, .18)); }

/* Compte à rebours */
.countdown-modern { margin-top: var(--space-8); width: fit-content; display: inline-flex; flex-direction: column; gap: 10px; }
.countdown-title { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500; color: var(--text-3); }
.countdown-timer { display: flex; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-solid); overflow: hidden; }
.countdown-item { display: flex; flex-direction: column; align-items: center; min-width: 78px; padding: 12px 10px 10px; }
.countdown-item + .countdown-item { border-left: 1px solid var(--border); }
.countdown-value { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown-label { font-size: .7rem; color: var(--text-3); margin-top: 6px; }
.countdown-modern[hidden] { display: none; }
.countdown-modern { margin: 0 0 var(--space-6); }

/* Bloc « Maintenant » (A1) : ce que le joueur doit faire maintenant, selon la période */
.now-card { display: flex; flex-direction: column; align-items: flex-start; }
.now-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 var(--space-5); }
.now-head[hidden] { display: none; }
.now-badge {
    --c: var(--brand-blue);
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: var(--radius-pill);
    font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent);
}
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.now-sub { font-size: .92rem; color: var(--text-2); }
.now-sub strong { color: var(--text); font-variant-numeric: tabular-nums; }
.now-card[data-phase="open"] .now-badge { --c: var(--ok); }
.now-card[data-phase="open"] .now-dot, .now-card[data-phase="live"] .now-dot { animation: tgcPulse 1.8s infinite; }
.now-card[data-phase="closed"] .now-badge { --c: var(--brand-orange); }
.now-card[data-phase="live"] .now-badge { --c: var(--signal); }
.now-card[data-phase="after"] .now-badge { --c: var(--brand-gold); }
.btn-discord { --btn-c: #fff; --btn-bg: #5865f2; --btn-bd: transparent; }
.btn-discord:hover { --btn-bg: #5865f2; filter: brightness(1.08); }

/* ---------- L'essentiel : 4 chiffres clés + lieu, sur une ligne (A2) ----------
   Les 4 premiers chiffres réglés dans Hub Orga › Édition sont affichés. */
.home-facts {
    display: flex; align-items: stretch;
    background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden;
}
:root[data-theme="light"] .home-facts { box-shadow: var(--shadow-sm); }
.status-stats { flex: 1.4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; min-width: 0; }
.status-stats > div:nth-child(n+5) { display: none; }
.status-stats > div { padding: 16px clamp(12px, 1.4vw, 22px); border-left: 1px solid var(--border); min-width: 0; }
.status-stats > div:first-child { border-left: 0; }
.status-stats dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.status-stats strong {
    font-family: var(--font-display); font-style: italic; font-weight: 800; font-stretch: 108%;
    font-size: clamp(1.45rem, 1rem + 1vw, 2rem); line-height: 1; letter-spacing: -.03em;
    color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.status-stats span { font-size: .8rem; color: var(--text-3); }
.status-venue {
    flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0;
    padding: 14px clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--border);
}
.status-venue > i { color: var(--brand-red); font-size: 1rem; }
.status-venue div { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.status-venue strong { font-weight: 600; color: var(--text); font-size: .92rem; }
.status-venue span { font-size: var(--fs-xs); color: var(--text-3); }
.status-venue .btn { flex-shrink: 0; }

/* ---------- En-têtes de section ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: var(--space-5); }
.section-title {
    margin: 0; font-family: var(--font-display); font-weight: 750;
    font-size: clamp(1.5rem, 1.15rem + 1vw, 2.15rem); line-height: 1.1; letter-spacing: -.03em;
}
.section-title::before { content: ""; display: block; width: 32px; height: 3px; border-radius: 3px; background: var(--stripe); margin-bottom: 14px; }
.section-subtitle { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: var(--fs-sm); color: var(--text-3); }
.section-subtitle .live-dot { background: var(--ok); animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

/* ---------- Actualités ----------
   Une actualité à la fois (carrousel). La hauteur du cadre s'adapte à chaque actualité
   (transition gérée par script.js) : le texte est toujours affiché en entier. */
.news-card { padding: 4px clamp(18px, 2vw, 28px); }
.news-slider-viewport { position: relative; overflow: hidden; transition: height .45s var(--ease); }
.news-slider-track { display: block; }
.news-article-item { display: none; }
.news-article-item.is-active { display: grid; }
.news-article-item.is-enter-next { animation: newsIn .45s var(--ease) both; --news-from: 28px; }
.news-article-item.is-enter-prev { animation: newsIn .45s var(--ease) both; --news-from: -28px; }
@keyframes newsIn { from { opacity: 0; transform: translateX(var(--news-from)); } to { opacity: 1; transform: none; } }
.news-nav { display: flex; align-items: center; gap: 4px; }
.news-nav[hidden], .news-dots[hidden] { display: none; }
.news-count { margin-right: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.news-arrow { border: 1px solid var(--border); }
.news-arrow:hover, .news-arrow:focus-visible { border-color: var(--border-strong); }
/* Points de navigation + barre de progression du point actif */
.news-dots { display: flex; justify-content: center; gap: 4px; padding: 0 0 12px; }
.news-dot { width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.news-dot span { position: relative; display: block; width: 24px; height: 4px; border-radius: 4px; overflow: hidden; background: var(--border-strong); transition: width var(--dur) var(--ease); }
.news-dot:hover span { background: var(--text-4); }
.news-dot.is-active span { width: 34px; background: color-mix(in srgb, var(--brand-blue) 25%, transparent); }
.news-dot.is-active span::after {
    content: ""; position: absolute; inset: 0; background: var(--brand-blue); transform-origin: left center;
    animation: newsProgress var(--news-d, 8s) linear forwards;
}
.news-card.is-paused .news-dot.is-active span::after { animation-play-state: paused; }
.news-card.is-static .news-dot.is-active span::after { animation: none; }
/* L'anneau du logo tourne : ses angles ne doivent pas créer de défilement horizontal */
.tgc-main.home { overflow-x: clip; }
@keyframes newsProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
    .news-slider-viewport { transition: none; }
    .news-article-item.is-enter-next, .news-article-item.is-enter-prev { animation: none; }
}
.news-article-item {
    grid-template-columns: 9.5rem minmax(0, 1fr); column-gap: clamp(16px, 2.4vw, 32px); align-items: start;
    padding: 20px 0;
}
.news-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.news-tag {
    max-width: 100%; padding: 3px 11px; border-radius: var(--radius-pill);
    color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 12%, transparent);
    font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.6;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-pin { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--brand-orange); }
.news-pin i { font-size: .8em; }
.news-date { font-size: .76rem; color: var(--text-3); }
.news-body { min-width: 0; }
.news-body h3 {
    font-family: var(--font-display); font-size: 1.22rem; font-weight: 700;
    letter-spacing: -.015em; line-height: 1.25; margin: 0 0 6px; color: var(--text);
}
.news-text { color: var(--text-2); font-size: .95rem; line-height: 1.6; }
.news-img { display: block; width: 100%; max-height: 300px; object-fit: cover; margin-top: 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); }
/* Liens des actualités (ex. sondage) : visibles et cliquables, ouverts dans un nouvel onglet */
.news-article-item a { color: var(--brand-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; position: relative; z-index: 1; }
.news-article-item a:hover, .news-article-item a:focus-visible { color: var(--brand-orange); }
.news-slider-track > div.u-ta-center, .news-slider-track > .loading-state { padding: 40px 0; margin-top: 0 !important; }

/* ---------- Compteurs d'inscriptions ---------- */
.hub-counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--gap); }
.counter-loading, .counter-error { grid-column: 1 / -1; text-align: center; padding: 28px; color: var(--text-3); }
/* Avant le lancement des inscriptions (message réglé dans le Hub Orga › Édition) */
.ins-teaser { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: clamp(28px, 5vw, 48px) 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.ins-teaser-icon { font-size: 1.6rem; color: var(--brand-orange); }
.ins-teaser-msg { margin: 0; max-width: 46ch; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.ins-teaser-date { margin: 0; font-size: .9rem; color: var(--text-3); }
.ins-teaser-date i { color: var(--brand-blue); margin-right: 4px; }
.day-column { display: flex; flex-direction: column; gap: 10px; }
.day-column .counter-day-title { margin: 0 0 4px; }
.counter-day-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-4); }
.counter-day-title.color-blue::before { background: var(--brand-blue); }
.counter-day-title.color-purple::before { background: var(--brand-orange); }
.counter-day-title.color-orange::before { background: var(--brand-red); }
.events-subgrid { display: flex; flex-direction: column; gap: 10px; }
/* B1 : une carte par jeu (logo, format, jauge, bouton « S'inscrire » qui ouvre directement le bon jeu) */
.ins-game {
    --c: var(--brand-blue);
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-solid);
    transition: border-color var(--dur-fast), box-shadow var(--dur);
}
:root[data-theme="light"] .ins-game { box-shadow: var(--shadow-sm); }
.ins-game:hover { border-color: var(--border-strong); }
.ins-game-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ins-game-logo { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; color: var(--text-3); }
.ins-game-logo img { width: 78%; height: 78%; object-fit: contain; }
.ins-game-name { flex: 1; min-width: 0; }
.ins-game-name h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-game-name p { margin: 3px 0 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .78rem; color: var(--text-3); }
.ins-game-name p i { color: var(--text-4); margin-right: 3px; }
.ins-state { flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 600; white-space: nowrap; color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.ins-game.is-wait .ins-state { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.ins-game.is-full .ins-state, .ins-game.is-cancelled .ins-state { color: var(--danger); background: color-mix(in srgb, var(--danger) 13%, transparent); }
.ins-gauge { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.ins-gauge i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width var(--dur-slow) var(--ease); }
.ins-game.is-wait .ins-gauge i { background: var(--warn); }
.ins-game.is-full .ins-gauge i, .ins-game.is-cancelled .ins-gauge i { background: var(--danger); opacity: .6; }
.ins-game-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.ins-count { font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ins-game.is-cancelled h4 { text-decoration: line-through; opacity: .6; }

/* ---------- Infos & services : Avant / Pendant / Après (A3) ---------- */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.moment {
    display: flex; flex-direction: column; min-width: 0;
    border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface-solid); overflow: hidden;
    transition: border-color var(--dur), box-shadow var(--dur);
}
:root[data-theme="light"] .moment { box-shadow: var(--shadow-sm); }
.moment-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.moment-head h3 { margin: 0; flex: 1; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.moment-step { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--text-3); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.moment-now { display: none; padding: 2px 9px; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 600; color: var(--brand-blue); background: color-mix(in srgb, var(--brand-blue) 13%, transparent); }
/* Moment en cours (selon la période, script.js › renderNow) */
.moment.is-now { border-color: color-mix(in srgb, var(--brand-blue) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 12%, transparent); }
.moment.is-now .moment-now { display: inline-block; }
.moment.is-now .moment-step { color: #fff; background: var(--brand-blue); }
.moment-list { display: flex; flex-direction: column; }

.info-tile {
    --c: var(--text-2);
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 16px; border: 0; background: transparent;
    color: var(--text); text-decoration: none; text-align: left; cursor: pointer; font: inherit;
    transition: background var(--dur-fast);
}
.info-tile + .info-tile { border-top: 1px solid var(--border); }
.info-tile:hover, .info-tile:focus-visible { background: var(--surface-hover); }
.info-tile-icon {
    width: 2.2rem; height: 2.2rem; flex-shrink: 0; border-radius: 10px;
    display: grid; place-items: center; font-size: .92rem;
    color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent);
}
.info-tile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.info-tile-text strong { font-size: .95rem; font-weight: 600; line-height: 1.25; }
.info-tile-text small { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.35; }
.info-tile-go { font-size: .76rem; color: var(--text-4); transition: transform var(--dur) var(--ease), color var(--dur-fast); }
.info-tile:hover .info-tile-go, .info-tile:focus-visible .info-tile-go { transform: translateX(3px); color: var(--text); }

.contact-form-title { margin: 22px 0 10px; font-size: 1rem; font-weight: 700; color: var(--text); }
.contact-form-title i { color: var(--accent); margin-right: 6px; }

/* ---------- Communauté : Discord (C1) + Web TV (C2) ---------- */
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.community-tile { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 2vw, 26px); }
.ct-top { display: flex; align-items: center; gap: 14px; }
.ct-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; }
.ct-icon.is-discord { background: #5865f2; }
.ct-icon.is-twitch { background: #9146ff; }
.ct-titles h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.ct-status { margin: 3px 0 0; display: flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
.discord-card .ct-status.is-on .ct-dot { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.ct-text { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.55; }
.ct-avatars { display: flex; align-items: center; min-height: 0; }
.ct-avatars:empty { display: none; }
.ct-avatars img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--surface-solid); background: var(--surface-2); object-fit: cover; }
.ct-avatars img + img { margin-left: -9px; }
.ct-avatars span { margin-left: 10px; font-size: .8rem; color: var(--text-3); }
.ct-btn { margin-top: auto; align-self: flex-start; --btn-c: #fff; --btn-bd: transparent; }
.ct-btn.is-discord { --btn-bg: #5865f2; }
.ct-btn.is-twitch { --btn-bg: #9146ff; }
.ct-btn:hover { filter: brightness(1.08); }
.ct-btn.is-discord:hover { --btn-bg: #5865f2; }
.ct-btn.is-twitch:hover { --btn-bg: #9146ff; }
/* Web TV en direct */
.webtv-card[data-live="on"] { border-color: color-mix(in srgb, var(--signal) 55%, var(--border)); }
.webtv-card[data-live="on"] .ct-status { color: var(--signal); font-weight: 700; letter-spacing: .04em; }
.webtv-card[data-live="on"] .ct-dot { background: var(--signal); animation: tgcPulse 1.8s infinite; }
.webtv-card[data-live="on"] .ct-btn { --btn-bg: var(--signal); }

/* ---------- Assistant IA (fenêtre flottante) ---------- */

/* ---------- Modales spécifiques ---------- */
.comp-list { display: flex; flex-direction: column; gap: 8px; }
.comp-item {
    --c: var(--accent);
    display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--radius-lg);
    border: 1px solid var(--border); background: transparent; color: var(--text); text-decoration: none;
    transition: border-color var(--dur-fast), background var(--dur-fast);
}
.comp-item > i:first-child { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex-shrink: 0; }
.comp-item span { display: flex; flex-direction: column; flex: 1; }
.comp-item strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.comp-item small { color: var(--text-3); }
.comp-item .comp-arrow { color: var(--text-4); transition: transform var(--dur), color var(--dur); }
.comp-item:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.comp-item:hover .comp-arrow { color: var(--text); transform: translateX(3px); }
.comp-item.is-disabled { opacity: .55; cursor: not-allowed; }
.comp-item.is-disabled:hover { background: transparent; border-color: var(--border); }
.comp-item span.chip { flex: 0; display: inline-flex; }

#ins-message { color: var(--text-2); font-size: var(--fs-lg); }

/* Prix (généré par script.js) */
.prix-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.prix-day-card { --c: var(--brand-blue); border-radius: var(--radius-lg); background: transparent; border: 1px solid var(--border); padding: 18px; }
.prix-day-card.card-samedi { --c: var(--brand-orange); }
.prix-day-card.card-dimanche { --c: var(--brand-red); }
.prix-day-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--text); margin: 0 0 8px; }
.prix-day-title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.prix-game-item { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.prix-game-item .game-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); }
.game-prizes { display: flex; flex-wrap: wrap; gap: 6px; }
.game-prizes span { padding: 3px 10px; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-2); }
.game-prizes .rank-1 { color: var(--gold); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.game-prizes .rank-3 { color: var(--bronze); background: color-mix(in srgb, var(--bronze) 12%, transparent); }

/* ---------- Partenaires (MP-2.14 : fenêtre repensée, liste réglée dans Hub Orga › Partenaires) ---------- */
.partners-modal { width: min(100%, 880px); }
.partners-head { text-align: center; padding: 4px 24px 22px; }
.partners-kicker {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: var(--radius-pill);
    font-size: .76rem; font-weight: 600; color: var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 12%, transparent);
}
.partners-head h2 { margin: 12px 0 6px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); letter-spacing: -.03em; }
.partners-head h2 i { display: none; }
.partners-head p { margin: 0 auto; max-width: 46ch; color: var(--text-3); font-size: var(--fs-sm); }
.partners-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 12px; }
.partners-featured[hidden], .partners-grid[hidden] { display: none; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.partner-card {
    display: flex; flex-direction: column; gap: 12px; padding: 12px; min-width: 0;
    border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-solid);
    color: var(--text); text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur), border-color var(--dur-fast);
}
a.partner-card:hover, a.partner-card:focus-visible { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.partner-logo {
    display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 14px; border-radius: calc(var(--radius-lg) - 4px);
    background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); color: #8a94a6; font-size: 1.6rem;
}
.partner-logo img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform var(--dur-slow) var(--ease); }
a.partner-card:hover .partner-logo img { transform: scale(1.04); }
.partner-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 2px 2px; }
.partner-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.partner-desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; }
.partner-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .76rem; font-weight: 600; color: var(--text-3); transition: color var(--dur-fast); }
.partner-link i { font-size: .85em; }
a.partner-card:hover .partner-link { color: var(--brand-blue); }
/* Partenaires mis en avant : logo à gauche, texte à droite */
.partner-card.is-featured { flex-direction: row; align-items: center; gap: 16px; padding: 14px; border-color: color-mix(in srgb, var(--brand-gold) 40%, var(--border)); }
.partner-card.is-featured .partner-logo { flex: 0 0 42%; }
.partner-card.is-featured .partner-name { font-size: 1.15rem; }
.partners-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); }
@media (max-width: 480px) {
    .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .partner-card.is-featured { gap: 12px; padding: 10px; }
    .partner-card.is-featured .partner-logo { flex-basis: 45%; padding: 10px; }
    .partner-card.is-featured .partner-name { font-size: 1rem; }
}

/* Adresse / carte */
.map-wrapper { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.map-wrapper iframe { display: block; border: 0; }
.address-block { display: flex; flex-direction: column; text-align: center; margin-bottom: 16px; }
.address-block strong { color: var(--text); font-size: var(--fs-lg); }
.menu-img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); }

/* FAQ en accordéon */
.faq-theme-title { --c: var(--brand-blue); display: flex; align-items: center; gap: 10px; margin: 26px 0 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }
.faq-theme-title i { color: var(--c); font-size: .9em; }
.faq-theme-title:first-of-type { margin-top: 0; }
.theme-title-orange { --c: var(--brand-orange); }
.theme-title-green { --c: var(--neon-green); }
.theme-title-red { --c: var(--brand-red); }
.theme-title-gold { --c: var(--brand-gold); }
.faq-item-blue { --faq-c: var(--brand-blue); }
.faq-item-orange { --faq-c: var(--brand-orange); }
.faq-item-green { --faq-c: var(--neon-green); }
.faq-item-red { --faq-c: var(--brand-red); }
.faq-item-gold { --faq-c: var(--brand-gold); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item[open] .faq-question { color: var(--text); }
.faq-question { list-style: none; cursor: pointer; padding: 14px 40px 14px 2px; font-weight: 500; color: var(--text-2); position: relative; transition: color var(--dur-fast); }
.faq-question:hover { color: var(--text); }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 300; color: var(--text-3); transition: transform var(--dur) var(--ease); }
.faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { position: relative; padding: 0 2px 16px 24px; color: var(--text-3); line-height: 1.65; font-size: var(--fs-sm); }
.faq-answer::before { content: ""; position: absolute; left: 2px; top: .3em; width: .95em; height: .95em; background: var(--faq-c, var(--accent)); -webkit-mask: var(--icf-arrow-right) center / contain no-repeat; mask: var(--icf-arrow-right) center / contain no-repeat; }

.faq-search {
    position: sticky; top: -1px; z-index: 2; display: flex; align-items: center; gap: 10px;
    margin: 0 0 14px; padding: 0 14px; height: 46px; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--surface-solid);
}
.faq-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.faq-search i { color: var(--text-4); }
.faq-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: var(--fs-sm); color: var(--text); }
.faq-search input:focus { outline: none; }
.faq-empty { padding: 18px; margin-bottom: 10px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); text-align: center; }
.faq-empty[hidden] { display: none; }
.faq-empty p { margin: 0 0 12px; color: var(--text-2); }
.faq-empty .cluster { justify-content: center; }
.faq-item[hidden], .faq-theme-title[hidden], .faq-more[hidden] { display: none; }
.faq-list { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.faq-list li::marker { color: var(--text-4); }
.faq-cta { margin-top: 10px; }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-3); }
.faq-more span { flex: 1 1 100%; }
mark.faq-hit { background: color-mix(in srgb, var(--brand-gold) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Contact */
.contact-box { --c: var(--accent); display: flex; color: inherit; text-decoration: none; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.contact-box.is-link { cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.contact-box.is-link:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.icon-circle { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); flex-shrink: 0; }
.contact-box h3 { margin: 0; font-size: .78rem; font-weight: 500; color: var(--text-3); font-family: var(--font-body); }
.contact-box p { margin: 1px 0 0; font-size: var(--fs-md); font-weight: 600; color: var(--text); }
.contact-box > div:not(.icon-circle) { flex: 1; min-width: 0; }
.contact-go { color: var(--text-4); font-size: .8rem; transition: transform var(--dur) var(--ease), color var(--dur-fast); }
.contact-box.is-link:hover .contact-go { color: var(--text); transform: translateX(3px); }

/* ---------- Bandeau défilant : bouton pause (C3) ---------- */
.ticker-toggle {
    flex-shrink: 0; position: relative; width: 38px; height: 100%; margin-right: calc(var(--gutter) - 10px);
    border: 0; background: var(--bg-2); color: var(--text-3); cursor: pointer;
}
.ticker-toggle::before, .ticker-toggle::after { content: ""; position: absolute; top: 50%; width: 3px; height: 11px; margin-top: -5.5px; border-radius: 2px; background: currentColor; }
.ticker-toggle::before { left: 15px; }
.ticker-toggle::after { left: 21px; }
.ticker-toggle[aria-pressed="true"]::before { left: 15px; width: 0; height: 0; margin-top: -6px; border-radius: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.ticker-toggle[aria-pressed="true"]::after { display: none; }
.ticker-toggle:hover, .ticker-toggle:focus-visible { color: var(--text); }
.news-ticker.is-paused .ticker-content, .news-ticker:focus-within .ticker-content { animation-play-state: paused !important; }

/* ---------- Barre « S'inscrire » sur mobile (B4) ---------- */
.reg-bar { display: none; }
@media (max-width: 760px) {
    html.has-reg-bar { --bottombar-h: 140px; }
    html.has-reg-bar .reg-bar {
        position: fixed; z-index: 1000; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom));
        display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; min-height: 54px;
        border-radius: 18px; border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--border));
        background: var(--surface-glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
        box-shadow: var(--shadow-lg); animation: tgcFadeUp var(--dur) var(--ease);
    }
    .reg-bar-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
    .reg-bar-text strong { font-size: .88rem; }
    .reg-bar-text span { font-size: .74rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .reg-bar-close { width: 34px; height: 34px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
    position: fixed; z-index: 8000; left: var(--gutter); bottom: calc(var(--gutter) + var(--bottombar-h));
    width: min(400px, calc(100vw - 2 * var(--gutter)));
    padding: 20px; border-radius: var(--radius-xl);
    background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.cookie-banner.hidden { opacity: 0; transform: translateY(24px); pointer-events: none; }
.cookie-inner-content h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 8px; }
.cookie-inner-content h3 i { color: var(--brand-gold); }
.cookie-inner-content p { font-size: var(--fs-sm); color: var(--text-3); margin: 0 0 14px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; }
.cookie-more { text-align: center; margin: 12px 0 0 !important; }
.cookie-more a { color: var(--text-3); font-size: var(--fs-xs); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .home-facts { flex-direction: column; }
    .status-venue { border-left: 0; border-top: 1px solid var(--border); }
    .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .moment[data-moment="avant"] { grid-row: span 2; }
}
@media (max-width: 900px) {
    .search-widget { width: 190px; }
    .search-widget:focus-within { width: 220px; }
    .home-hero { grid-template-columns: minmax(0, 1fr); }
    .hero-logo-container { order: -1; max-width: 200px; justify-self: start; }
    .community-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .home-hero { padding-top: 4px; gap: 16px; }
    .hero-logo-container { max-width: 150px; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
    .hero-subtitle { margin-bottom: var(--space-6); }
    .now-card { align-items: stretch; }
    .hero-actions .btn { flex: 1 1 100%; }
    .countdown-modern { width: 100%; }
    .countdown-item { flex: 1; min-width: 0; }
    .countdown-value { font-size: 1.6rem; }
    .status-venue { flex-wrap: wrap; }
    .status-venue .btn { margin-left: 28px; }
    .news-article-item { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
    .news-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
    .news-highlight-card .section-head { flex-wrap: nowrap; align-items: center; }
    .news-count { display: none; }
    .moments { grid-template-columns: minmax(0, 1fr); }
    .moment[data-moment="avant"] { grid-row: auto; }
    .moment.is-now { order: -1; }
    .search-toggle { display: inline-grid; }
    .search-widget-container .search-widget {
        position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 8px); width: auto !important; height: 48px; z-index: 1070;
        background: var(--surface-solid); box-shadow: var(--shadow-lg);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
    }
    .search-widget-container.is-open .search-widget { opacity: 1; visibility: visible; transform: none; }
    .search-results { position: fixed; top: calc(var(--header-h) + 64px); left: 12px; right: 12px; width: auto; }
    .ai-speech-bubble { display: none; }
}
@media (max-width: 480px) {
    .status-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .status-stats > div:nth-child(3) { border-left: 0; }
    .status-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (min-width: 2400px) {
    .hero-logo-container { max-width: 30rem; }
}
.home-section[hidden] { display: none !important; }

/* ===== MP-2.16 : accueil épuré ===== */
/* U3 · un seul logo visible en haut sur mobile (celui de l'en-tête) */
@media (max-width: 760px) { .hero-logo-container { display: none; } }
/* U4 · Infos & services : une couleur d'accent, pas de sous-titres, moments hors période atténués */
.info-tile-icon { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.info-tile { padding-block: 12px; }
.moments:has(.moment.is-now) .moment:not(.is-now) { opacity: .62; transition: opacity var(--dur-fast); }
.moments:has(.moment.is-now) .moment:not(.is-now):hover,
.moments:has(.moment.is-now) .moment:not(.is-now):focus-within { opacity: 1; }
/* U8 · titres de section plus calmes (le titre italique très gras est réservé au H1) */
.section-title { font-size: clamp(1.35rem, 1.1rem + .6vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; }
/* U8 · l'orange du logo est réservé à l'action principale du moment (hero) */
.now-card .btn-primary { --btn-bg: var(--brand-orange); --btn-c: #1a0d00; }
:root[data-theme="light"] .now-card .btn-primary { --btn-c: #ffffff; }
.now-card .btn-primary:hover { box-shadow: 0 10px 24px -12px var(--brand-orange); }
/* U5 · actualités : résumé + « Lire la suite » */
.news-text.is-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.news-more {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer;
    color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: 600;
}
.news-more:hover i { transform: translateX(3px); }
.news-more i { transition: transform var(--dur-fast); }
.news-modal { width: min(100%, 680px); }
.news-modal-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--text-3); font-size: var(--fs-xs); }
.news-modal-title { margin: 0 0 14px; padding-right: 40px; font-size: var(--fs-xl); }
.news-modal .news-text { color: var(--text-2); line-height: 1.65; }
.news-modal .news-img { margin-top: 16px; max-width: 100%; border-radius: var(--radius-md); }
