/* =========================================================
   La Confrérie des Ombres — Hub de stream Ezio_33
   Palette extraite du thème Twitch "Teamfight" :
   noir profond / bleu nuit + accents dorés + texture hex
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Fonds (dégradés du noir vers bleu nuit, comme la bannière) */
    --bg-deep:        #05080b;
    --bg-base:        #0a1014;
    --bg-card:        #0f1620;
    --bg-card-hover:  #131c28;
    --bg-elevated:    #1a2532;
    --bg-panel:       #0d1620;

    --border:         #1f2a38;
    --border-strong:  #2c3a4c;
    --border-gold:    rgba(212, 168, 67, 0.4);

    /* Texte — niveaux conformes WCAG AA (≥ 4.5:1 sur bg-base) */
    --text:           #f5ecd1;     /* parchemin chaud */
    --text-bright:    #ffffff;
    --text-muted:     #b8c2d0;     /* relevé de #a8b3c4 → 4.5:1 minimum */
    --text-dim:       #8a96aa;     /* relevé de #6b7689 → 4.5:1 minimum */

    /* Or (la signature du thème) */
    --gold:           #d4a843;
    --gold-light:     #f0c75e;
    --gold-bright:    #f5d27a;
    --gold-dark:      #a07f2c;
    --gold-deep:      #6b5320;

    /* Twitch (réservé pour le bouton live / branding officiel) */
    --twitch:         #9146ff;
    --twitch-light:   #a970ff;

    /* États */
    --live:           #ff3b46;
    --success:        #6fd17a;
    --warning:        #f0c75e;

    --radius-sm: 4px;
    --radius:    10px;
    --radius-lg: 16px;

    --shadow-sm:    0 2px 6px rgba(0,0,0,0.5);
    --shadow:       0 8px 24px rgba(0,0,0,0.6);
    --shadow-lg:    0 16px 48px rgba(0,0,0,0.7);
    --shadow-gold:  0 0 24px rgba(212,168,67,0.25);
    --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.04);

    --transition: 220ms cubic-bezier(.4,0,.2,1);

    --container: 1280px;
    --container-narrow: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ====== Accessibilité (RGAA V5) ====== */

/* Skip link — visible uniquement au focus clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    background: var(--gold);
    color: #1a1206;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    transition: top 200ms cubic-bezier(.4,0,.2,1);
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--gold-bright);
    outline-offset: 2px;
    color: #1a1206;
}

/* Visually hidden — pour textes lus par lecteurs d'écran */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible global — applique outline clair sur navigation clavier uniquement */
*:focus { outline: none; }
*:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Focus spécifique sur le bouton refresh serveur */
.server-refresh-btn:focus-visible {
    outline-offset: 1px;
}
/* Focus dans les vignettes de jeu — outline interne propre */
.game-entry-main:focus-visible,
.game-clip-btn:focus-visible {
    outline-offset: -3px;
}

/* Main wrapper — pas de focus visible quand on l'atteint via skip link */
main:focus { outline: none; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; display: block; }

a { color: var(--gold-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ====== Typography ====== */
h1, h2, h3, h4 {
    font-family: 'Cinzel', 'Inter', serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.5px;
    color: var(--text-bright);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--text-muted); }

/* ====== Background ornement : nappes de fumée + grille hex ====== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(60, 90, 130, 0.15), transparent 55%),
        radial-gradient(ellipse at 80% 90%, rgba(212, 168, 67, 0.08), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 35, 55, 0.5), transparent 75%),
        var(--bg-base);
    z-index: -3;
}
/* Motif nid d'abeille doré (texture du thème Teamfight) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><g fill='none' stroke='%23d4a843' stroke-opacity='0.07' stroke-width='1'><polygon points='14,2 42,2 56,18 56,46 42,62 14,62 0,46 0,18'/></g></svg>");
    background-size: 56px 64px;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ====== Navbar ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 12, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 0 rgba(212,168,67,0.08);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}
.brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(212,168,67,0.4);
}
.brand-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 2px;
    line-height: 1.15;
    color: var(--text-bright);
    text-transform: uppercase;
}
.brand-text small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}
.nav-links a:hover {
    color: var(--gold-light);
    background: rgba(212,168,67,0.05);
}
.nav-links a.active {
    color: var(--gold-light);
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--twitch);
    color: white !important;
    padding: 0.55rem 1rem !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}
.nav-cta:hover {
    background: var(--twitch-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(145,70,255,0.45);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--gold-light);
}

/* ====== Buttons ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Cinzel', sans-serif;
}
.btn-primary {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 60%, var(--gold-dark) 100%);
    color: #1a1206;
    border-color: var(--gold-dark);
    box-shadow: var(--shadow-inset), 0 4px 12px rgba(212,168,67,0.3);
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-light) 60%, var(--gold) 100%);
    color: #1a1206;
    transform: translateY(-2px);
    box-shadow: var(--shadow-inset), 0 8px 20px rgba(212,168,67,0.5);
}
.btn-twitch {
    background: var(--twitch);
    color: white;
}
.btn-twitch:hover {
    background: var(--twitch-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(145,70,255,0.5);
}
.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--gold-light);
    border-color: var(--gold);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--gold-deep);
}
.btn-ghost:hover {
    background: rgba(212,168,67,0.06);
    color: var(--gold-light);
    border-color: var(--gold);
}

/* ====== Layout ====== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 1.25rem;
}

section { padding: 4rem 0; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
}
.section-head::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head .eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
}
.section-head h2 { margin: 0; }
.section-head p { margin-top: 0.5rem; max-width: 60ch; }

/* ====== Hero ====== */
.hero {
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: center;
}
.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-bright) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px rgba(212,168,67,0.2);
}
.hero-content .lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 50ch;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.badge svg { width: 14px; height: 14px; color: var(--gold); }
a.badge { transition: border-color 0.2s ease, color 0.2s ease; }
a.badge:hover { border-color: var(--gold); color: var(--text); }

/* ====== Live indicator ====== */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--bg-card);
    color: var(--text-dim);
    border: 1px solid var(--border);
}
.live-pill.is-live {
    background: rgba(255,59,70,0.12);
    color: var(--live);
    border-color: rgba(255,59,70,0.4);
}
.live-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}
.live-pill.is-live .dot {
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.5); }
}

/* ====== Twitch / YouTube embeds ====== */
.embed-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-gold);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,0.15);
}
.embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.embed-frame.with-glow {
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold), 0 0 60px rgba(212,168,67,0.3);
}
/* Ornement coin doré sur embed */
.embed-frame::before,
.embed-frame::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--gold);
    z-index: 2;
    pointer-events: none;
}
.embed-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.embed-frame::after  { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ====== Stats grid ====== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}
.stat {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.stat:hover {
    background: linear-gradient(180deg, var(--bg-card-hover) 0%, var(--bg-card) 100%);
    border-color: var(--gold-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--gold-light);
    display: block;
    line-height: 1.1;
    text-shadow: 0 0 18px rgba(212,168,67,0.4);
}
.stat-label {
    color: var(--text-dim);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.4rem;
    font-weight: 600;
}

/* ====== Cards grid ====== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.card-thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.card:hover .card-thumb img { transform: scale(1.06); }
.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5,8,11,0.7) 100%);
    pointer-events: none;
}
.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.card h3 { margin-bottom: 0.5rem; color: var(--text-bright); font-size: 1.15rem; }
.card p { font-size: 0.9rem; margin-bottom: 1rem; color: var(--text-muted); }
.card .card-link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Cinzel', sans-serif;
}
.card .card-link::after {
    content: '→';
    transition: transform var(--transition);
}
.card:hover .card-link::after { transform: translateX(4px); }

/* ====== Campagne JDR (gros bloc) ====== */
.campaign {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    transition: border-color var(--transition);
    position: relative;
}
.campaign::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.campaign:hover { border-color: var(--gold-deep); }
.campaign-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.campaign-info .card-tag { font-size: 0.72rem; }
.campaign-info h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.campaign-info p { margin-bottom: 1.25rem; }
.campaign-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.campaign-meta strong { color: var(--gold-light); font-family: 'Cinzel', serif; }
.campaign-embed { padding: 2rem 2rem 2rem 0; }
.campaign:nth-child(even) {
    grid-template-columns: 1.6fr 1fr;
}
.campaign:nth-child(even)::before { left: auto; right: 0; background: linear-gradient(180deg, transparent, var(--gold)); }
.campaign:nth-child(even) .campaign-info { order: 2; }
.campaign:nth-child(even) .campaign-embed { padding: 2rem 0 2rem 2rem; }

/* ====== Featured playlist (replays.html) ====== */
.featured-playlist {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,0.15);
    position: relative;
}
.featured-playlist::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright), var(--gold), var(--gold-deep));
}
.featured-info {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-info .card-tag {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}
.featured-info h2 {
    font-size: 1.75rem;
    margin-bottom: 0.85rem;
    color: var(--text-bright);
    line-height: 1.2;
}
.featured-info p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.featured-embed {
    padding: 2rem 2rem 2rem 0;
}

/* ====== Playlists grid ====== */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.playlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}
.playlist-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    color: inherit;
}
.playlist-thumb {
    aspect-ratio: 16 / 9;
    background: var(--bg-deep);
    position: relative;
    overflow: hidden;
}
.playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}
.playlist-card:hover .playlist-thumb img { transform: scale(1.06); }
.playlist-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5,8,11,0.7) 100%);
    pointer-events: none;
}
.playlist-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0,0,0,0.85);
    color: var(--gold-light);
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}
.playlist-body {
    padding: 1.1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.playlist-body h3 {
    color: var(--text-bright);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.playlist-cta {
    margin-top: auto;
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Cinzel', sans-serif;
}

/* Skeleton loading */
.playlist-card.is-loading {
    background: var(--bg-card);
    aspect-ratio: 16 / 11;
    border-color: var(--border);
    pointer-events: none;
    position: relative;
    overflow: hidden;
}
.playlist-card.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 50%, transparent 100%);
    animation: skeleton 1.5s ease-in-out infinite;
}
@keyframes skeleton {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 800px) {
    .featured-playlist { grid-template-columns: 1fr; }
    .featured-info { padding: 1.75rem 1.5rem 0; }
    .featured-embed { padding: 1.5rem; }
}

/* ====== Server cards custom (nouvelle version) ====== */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 2rem;
    /* Bride la grille à 2 colonnes max pour la disposition en triangle inversé */
    max-width: 920px;
    margin-inline: auto;
}
/* Palworld centré sous les deux serveurs du haut (triangle inversé) */
.server-card--center {
    grid-column: 1 / -1;
    width: 100%;
}
/* Bridage de la largeur uniquement en mode 2 colonnes ; empilé, Palworld reste
   pleine largeur comme les autres cartes */
@media (min-width: 920px) {
    .server-card--center {
        max-width: 460px;
        margin-inline: auto;
    }
}
.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.server-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.server-banner {
    position: relative;
    aspect-ratio: 460 / 215;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-deep);
}
.server-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,8,11,0) 30%, rgba(5,8,11,0.95) 100%);
}
.server-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border: 2px solid var(--border-strong);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
/* Petit point lumineux dans le badge pour identifier visuellement le statut */
.server-status-badge::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.server-status-badge.is-online {
    background: linear-gradient(180deg, #1ca54a 0%, #0f7a36 100%);
    color: #ffffff;
    border-color: #6fd17a;
    box-shadow: 0 0 20px rgba(0, 200, 80, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.server-status-badge.is-online::before {
    background: #c4ffd5;
    box-shadow: 0 0 8px #c4ffd5;
}
.server-status-badge.is-offline {
    background: linear-gradient(180deg, #c41e2e 0%, #8a0814 100%);
    color: #ffffff;
    border-color: #ff7c87;
    box-shadow: 0 0 20px rgba(220, 30, 50, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5);
}
.server-status-badge.is-offline::before {
    background: #ffd0d4;
    box-shadow: 0 0 8px #ffd0d4;
}
.server-status-badge.is-transitioning {
    background: linear-gradient(180deg, #d97706 0%, #92400e 100%);
    color: #ffffff;
    border-color: #ffb86b;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.5), 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: blink-soft 1.5s ease-in-out infinite;
}
.server-status-badge.is-transitioning::before {
    background: #ffe5c0;
    box-shadow: 0 0 8px #ffe5c0;
}
@keyframes blink-soft {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}
.server-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 1rem 1.5rem;
}
.server-banner-overlay .server-game {
    display: block;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.35rem;
}
.server-banner-overlay h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-bright);
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.server-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.server-body > p {
    margin-bottom: 1.25rem;
    font-size: 0.92rem;
}
.server-info {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}
.server-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    grid-column: span 1;
}
.server-info li:first-child { grid-column: 1 / -1; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); margin-bottom: 0.25rem; color: var(--text); }
.server-info strong {
    display: block;
    color: var(--gold-light);
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 0.15rem;
}
.server-info li:first-child strong { display: inline; }
.server-info code {
    background: var(--bg-deep);
    color: var(--gold-light);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid var(--border);
}
.server-info .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: background var(--transition);
    flex-shrink: 0;
}
.server-info .dot.is-online { background: #6fd17a; box-shadow: 0 0 8px #6fd17a; animation: pulse 1.8s ease-in-out infinite; }
.server-info .dot.is-transitioning { background: #ffb86b; box-shadow: 0 0 8px #ffb86b; animation: pulse 1s ease-in-out infinite; }
.server-info .dot.is-offline { background: #ff7c87; }

/* Bouton inline "copier l'adresse" dans server-info */
.server-info .server-info-address { grid-column: 1 / -1; }
.copy-address {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    color: var(--gold-light);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.85em;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
}
.copy-address code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
}
.copy-address:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
    background: rgba(212,168,67,0.08);
}
.copy-address svg { opacity: 0.7; transition: opacity var(--transition); }
.copy-address:hover svg { opacity: 1; }
.copy-feedback {
    position: absolute;
    top: -2.2em;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #1a1206;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}
.copy-address.is-copied .copy-feedback { opacity: 1; }

/* Bouton principal "Copier l'adresse" — feedback intégré au label */
.copy-address-btn.is-copied {
    background: linear-gradient(180deg, #6fd17a 0%, #4cae5a 100%) !important;
    color: #0a1014 !important;
    border-color: #4cae5a !important;
}
.server-refresh-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.45rem 0.65rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-dim);
}
.server-updated {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}
.server-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--gold-light);
    cursor: pointer;
    transition: all var(--transition);
}
.server-refresh-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    color: var(--gold-bright);
}
.server-refresh-btn.is-refreshing svg {
    animation: spin 600ms linear;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.server-pwd-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    background: rgba(212, 168, 67, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
.server-pwd-note svg {
    flex-shrink: 0;
    color: var(--gold);
}
.server-pwd-note a {
    color: var(--gold-light);
    font-weight: 600;
}
.server-pwd-note a:hover { color: var(--gold-bright); }

.server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.server-actions .btn { padding: 0.65rem 1rem; font-size: 0.78rem; }

/* ====== Outils (page outils.html) ====== */
.outil-features {
    list-style: none;
    margin: 0.75rem 0 1rem;
    padding: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.outil-features li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1.25rem;
    line-height: 1.45;
}
.outil-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(212, 168, 67, 0.55);
}
.outil-features strong { color: var(--text); }

.outil-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}
.outil-actions .btn { padding: 0.65rem 1rem; font-size: 0.82rem; }

/* ====== Dev band (home — "Côté développeur") ====== */
.dev-band {
    padding: 4rem 0;
}
.dev-band-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem 2.75rem;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.07) 0%, rgba(212, 168, 67, 0.015) 100%);
    border: 1px solid rgba(212, 168, 67, 0.22);
    border-radius: var(--radius);
    overflow: hidden;
}
.dev-band-inner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.10) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.dev-band-intro,
.dev-band-tiles { position: relative; z-index: 1; }

.dev-band-intro .eyebrow { color: var(--gold-light); }
.dev-band-intro h2 { margin: 0.4rem 0 0.85rem; }
.dev-band-intro p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    max-width: 52ch;
}

.dev-band-tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}
.dev-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    background: rgba(10, 16, 20, 0.55);
    border: 1px solid rgba(212, 168, 67, 0.18);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dev-tile:hover,
.dev-tile:focus-visible {
    border-color: var(--gold);
    background: rgba(10, 16, 20, 0.78);
    transform: translateX(4px);
}
.dev-tile svg {
    color: var(--gold);
    flex-shrink: 0;
}
.dev-tile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.dev-tile-text strong {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
}
.dev-tile-text span {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

@media (max-width: 860px) {
    .dev-band-inner {
        grid-template-columns: 1fr;
        padding: 2rem 1.75rem;
        gap: 1.75rem;
    }
    .dev-band-inner::before {
        top: -30%;
        right: -30%;
        width: 320px;
        height: 320px;
    }
}

/* ====== Server cards (ancienne version, conservée pour compat) ====== */
.server {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.server:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-lg), var(--shadow-gold); }
.server-head {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-panel) 0%, var(--bg-card-hover) 100%);
    position: relative;
}
.server-head::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.server-head h3 { margin: 0; font-size: 1.4rem; color: var(--text-bright); }
.server-head .game {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0.3rem;
    font-weight: 600;
}
.server-widget {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    background: var(--bg-deep);
    display: block;
}
.server-meta {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.server-meta div { display: flex; align-items: center; gap: 0.45rem; }
.server-meta strong { color: var(--gold-light); font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: 1px; }
.server-meta code {
    background: var(--bg-deep);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gold-light);
    border: 1px solid var(--border);
}

/* ====== Programmes (schedule) ====== */
.schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.slot {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: all var(--transition);
    position: relative;
}
.slot:hover {
    border-left-color: var(--gold-bright);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.slot .day {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Cinzel', serif;
}
.slot .time { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.3rem; }
.slot .title { color: var(--text-bright); font-weight: 600; margin-top: 0.85rem; font-size: 1.05rem; font-family: 'Cinzel', serif; }
.slot .desc { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.35rem; }

/* ====== Catalogue de jeux ====== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}
.game-tile {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all var(--transition);
    overflow: hidden;
}
.game-tile::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gold), transparent);
    opacity: 0.6;
}
.game-tile:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-deep);
    transform: translateY(-2px);
}
.game-tile .game-views {
    align-self: flex-start;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: var(--gold);
    background: rgba(212,168,67,0.08);
    border: 1px solid var(--gold-deep);
    padding: 0.15rem 0.55rem;
    border-radius: 100px;
    letter-spacing: 1px;
}
.game-tile .game-name {
    color: var(--text-bright);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.35rem;
    line-height: 1.25;
}
.game-tile .game-tag {
    color: var(--text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-top: 0.15rem;
}

/* Catalogue compact (chaine.html — beaucoup de jeux) */
.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* Nouveau : entry = container avec lien principal + bouton clip optionnel */
.game-entry {
    display: flex;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all var(--transition);
}
.game-entry:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold-deep);
    transform: translateX(2px);
}
.game-entry-main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    color: var(--text);
    font-size: 0.88rem;
    text-decoration: none;
    min-width: 0;
}
.game-entry:hover .game-entry-main { color: var(--gold-light); }

.game-clip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    flex: 0 0 36px;
    border-left: 1px solid var(--border);
    background: var(--bg-deep);
    color: var(--text-dim);
    text-decoration: none;
    transition: all var(--transition);
}
.game-clip-btn:hover {
    background: var(--gold);
    color: #1a1206;
}
.game-clip-btn svg { display: block; }

/* Compat : ancien sélecteur direct (au cas où) */
.games-list a:not(.game-entry-main):not(.game-clip-btn) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    transition: all var(--transition);
    text-decoration: none;
}
.games-list .views {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 1px;
    flex-shrink: 0;
}
.games-list .game-name {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.games-list a.is-recent,
.games-list .game-entry.is-recent {
    border-color: var(--gold-deep);
    background: linear-gradient(90deg, rgba(212,168,67,0.06), var(--bg-card));
}
.game-badge-recent {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 178, 0, 0.18);
    color: #6fd17a;
    border: 1px solid rgba(111, 209, 122, 0.5);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
}
.game-badge-current {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(255,59,70,0.18);
    color: #ff7c87;
    border: 1px solid rgba(255,59,70,0.5);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1;
    box-shadow: 0 0 12px rgba(255,59,70,0.3);
}
.games-list a.is-current,
.games-list .game-entry.is-current {
    border-color: var(--live);
    background: linear-gradient(90deg, rgba(255,59,70,0.08), var(--bg-card));
    box-shadow: 0 0 16px rgba(255,59,70,0.15);
}
.games-list .game-entry.is-current .game-clip-btn { border-left-color: rgba(255,59,70,0.3); }
.games-list-loader {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    font-size: 0.9rem;
    font-style: italic;
}

/* ====== Big slot (créneau samedi en avant) ====== */
.big-slot {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--gold-deep);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(212,168,67,0.15);
    margin-bottom: 2rem;
    position: relative;
}
.big-slot::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright), var(--gold), var(--gold-deep));
}
.big-slot-day {
    background: linear-gradient(180deg, rgba(212,168,67,0.15) 0%, rgba(212,168,67,0.04) 100%);
    border-right: 1px solid var(--border);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
}
.big-slot-label {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.big-slot-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 32px rgba(212,168,67,0.25);
    margin: 0.25rem 0;
}
.big-slot-time {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
}
.big-slot-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.big-slot-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-bright);
}
.big-slot-body p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.big-slot-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ====== Bandeau notifications ====== */
.notif-band {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    background: rgba(145, 70, 255, 0.06);
    border: 1px solid rgba(145, 70, 255, 0.25);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    position: relative;
}
.notif-band::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--twitch), transparent);
}
.notif-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--twitch), var(--twitch-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(145,70,255,0.4);
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
}
.notif-content h3 {
    color: var(--text-bright);
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}
.notif-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.35rem 0;
}
.notif-content ol {
    color: var(--text-muted);
    margin: 0.5rem 0 0 1.2rem;
    font-size: 0.92rem;
}
.notif-content li { margin-bottom: 0.25rem; }
.notif-content a { font-weight: 600; }

@media (max-width: 760px) {
    .big-slot { grid-template-columns: 1fr; }
    .big-slot-day { border-right: 0; border-bottom: 1px solid var(--border); padding: 1.75rem; }
    .big-slot-name { font-size: 2.5rem; }
    .big-slot-body { padding: 1.75rem; }
    .notif-band { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
    .notif-icon { width: 48px; height: 48px; }
}

/* ====== Featured band ====== */
.feature-band {
    background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(20,35,55,0.4));
    border-block: 1px solid var(--border);
    padding: 3rem 0;
}

/* ====== Divider doré décoratif ====== */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    color: var(--gold);
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}
.divider svg { width: 24px; height: 24px; }

/* ====== Footer ====== */
footer.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
    position: relative;
}
footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-grid h2 {
    font-family: 'Cinzel', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--text-muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-about p { font-size: 0.9rem; }
.footer-about .brand { margin-bottom: 1rem; }

.socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.social-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}
.social-link.is-twitch:hover { background: var(--twitch); border-color: var(--twitch); color: white; box-shadow: 0 0 20px rgba(145,70,255,0.4); }
.social-link.is-youtube:hover { background: #ff0000; border-color: #ff0000; color: white; box-shadow: 0 0 20px rgba(255,0,0,0.4); }
.social-link.is-twitter:hover { background: #1da1f2; border-color: #1da1f2; color: white; }
.social-link.is-discord:hover { background: #5865F2; border-color: #5865F2; color: white; }
.social-link svg { width: 20px; height: 20px; }

.copy {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.85rem;
}
.copy a { color: var(--text-muted); }
.copy a:hover { color: var(--gold-light); }

/* ====== Support grid (Soutenir la chaîne) ====== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.support-card:hover {
    border-color: var(--gold-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.support-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.85rem;
    line-height: 1;
}
.support-card h3 {
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}
.support-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex: 1;
}
.support-card .btn {
    align-self: flex-start;
    padding: 0.55rem 0.95rem;
    font-size: 0.78rem;
}

/* ====== Article (legacy tutorials) ====== */
.tuto-article {
    max-width: 820px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
}
.tuto-article::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.tuto-article h1 { margin-bottom: 1rem; }
.tuto-article h2 { margin-top: 2rem; color: var(--gold-light); }
.tuto-article p { margin-bottom: 1rem; }
.tuto-article a { color: var(--gold-light); border-bottom: 1px dotted var(--gold-deep); }
.tuto-article a:hover { color: var(--gold-bright); border-bottom-color: var(--gold); }
/* Reset : les boutons dans .tuto-article ne doivent PAS hériter du style "lien doré
   souligné en pointillé" — sinon le texte des btn-primary devient or sur or = illisible. */
.tuto-article a.btn { border-bottom: 0; }
.tuto-article a.btn-primary    { color: #1a1206; }
.tuto-article a.btn-secondary  { color: var(--text); }
.tuto-article a.btn-ghost      { color: var(--text); }
.tuto-article a.btn-twitch     { color: #ffffff; }
.tuto-article a.btn-primary:hover    { color: #1a1206; }
.tuto-article a.btn-secondary:hover  { color: var(--gold-light); }
.tuto-article a.btn-ghost:hover      { color: var(--gold-light); }
.tuto-article a.btn-twitch:hover     { color: #ffffff; }
.tuto-article img {
    border-radius: var(--radius);
    margin: 1.5rem auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.tuto-article ul, .tuto-article ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-muted);
}
.tuto-article li { margin-bottom: 0.5rem; }
.tuto-article code {
    background: var(--bg-deep);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: var(--gold-light);
    font-size: 0.9em;
    border: 1px solid var(--border);
}

/* ====== Page header (compact) ====== */
.page-header {
    padding: 4rem 0 2.5rem;
    text-align: center;
    position: relative;
}
.page-header .eyebrow {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.page-header h1 {
    margin: 0.7rem 0 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-bright) 70%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-header p {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ====== Utilities ====== */
.center { text-align: center; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.gold { color: var(--gold-light); }

/* ====== Responsive ====== */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .campaign, .campaign:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .campaign-info, .campaign:nth-child(even) .campaign-info { order: 0; padding: 1.75rem 1.75rem 0; }
    .campaign-embed, .campaign:nth-child(even) .campaign-embed { padding: 1.75rem; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(8,12,18,0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 0.25rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;          /* retire les liens fermés de l'ordre de tabulation (RGAA 10.13 / 12.8) */
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links a { padding: 0.95rem 1rem; min-height: 44px; display: flex; align-items: center; }
    .nav-cta { justify-content: center; }
    section { padding: 2.5rem 0; }
    .hero { padding: 1.5rem 0 2.5rem; }
    .tuto-article { padding: 1.5rem; }

    /* Headers de section : layout vertical */
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head + * { margin-top: 0.5rem; }

    /* Grilles passe sur 1 colonne quand l'écran est trop étroit */
    .games-list { grid-template-columns: 1fr 1fr; }
    .schedule { grid-template-columns: 1fr; }

    /* Embeds : ne pas déborder */
    iframe, .embed-frame { max-width: 100%; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .brand-text { font-size: 0.95rem; }
    .brand img { width: 38px; height: 38px; }
    .btn { padding: 0.75rem 1.2rem; font-size: 0.8rem; min-height: 44px; }
    .nav-cta { min-height: 44px; }

    /* Touch targets ≥ 44x44 sur mobile (WCAG 2.5.5, critère RGAA) */
    .nav-toggle { min-width: 44px; min-height: 44px; }
    .social-link { width: 44px; height: 44px; }
    .server-refresh-btn { width: 44px; height: 44px; }
    .game-clip-btn { min-width: 48px; flex-basis: 48px; }
    .game-entry-main { min-height: 44px; }

    /* Hero — éviter la coupe sur petit écran */
    .hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .hero .lead { font-size: 1rem; }

    /* Stats grid : 2 colonnes sur très petit écran */
    .stats { grid-template-columns: repeat(2, 1fr); }

    /* Section padding réduit */
    section { padding: 2rem 0; }
    .container, .container-narrow { padding: 0 1rem; }

    /* Badges hero : empilement vertical */
    .hero-badges { gap: 0.4rem; }
    .badge { font-size: 0.72rem; padding: 0.3rem 0.65rem; }
}

/* Très petit écran (≤ 360px) — derniers ajustements */
@media (max-width: 360px) {
    .stats { grid-template-columns: 1fr; }
    h1 { font-size: 1.6rem; }
    .big-slot-name { font-size: 2rem; }
}

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