/* ================================================================
   COZY MINIMALIST — Streaming Dashboard (v3)
   Tokens   : Dusty Rose #EBCDC3 × Parme Violet #D6CADD × Champagne #F0E5D8
   Body Text: #4A444B  |  Headings: #2D2831  |  BG: #FDF8F9
   Typo     : Lora (headings) × Outfit (body)
   Glass    : white 70% + blur(16px) | Shadows: parme-tinted only
   Layout   : Floating island nav | Left stream + right chat | 24px cards
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    /* ─── Palette Tokens (strict hex) ─── */
    --bg-main:           #FDF8F9;   /* Primary Background — warm off-white rose  */
    --brand-rose:        #EBCDC3;   /* Primary Brand — Dusty Rose                */
    --brand-rose-hover:  #DDB9AE;   /* Dusty Rose — hover (–10% lightness)       */
    --brand-rose-deep:   #C09087;   /* Dusty Rose — active / pressed state       */
    --accent-parme:      #D6CADD;   /* Secondary Accent — Parme Violet           */
    --accent-parme-hover:#C3B5CB;   /* Parme — hover state                       */
    --surface:           #F0E5D8;   /* Surface / secondary containers            */
    --surface-border:    rgba(240, 229, 216, 0.80); /* Champagne border          */

    /* ─── Text Tokens ─── */
    --text-heading:   #2D2831;   /* Deep saturated violet — clear hierarchy    */
    --text-body:      #4A444B;   /* Deep warm plum/grey — body readability     */
    --text-muted:     #8A8292;   /* Muted / tertiary / placeholders            */

    /* ─── Functional States ─── */
    --live-color:   #C47A72;   /* Warm coral rose — LIVE indicator           */
    --success:      #7EAB8A;   /* Sage green                                  */
    --danger:       #C47A72;
    --warning:      #D4A86A;

    /* ─── Glassmorphism — white 70% (spec: #FFFFFF 70% opacity) ─── */
    --glass-bg:        rgba(255, 255, 255, 0.70);   /* White 70% — spec   */
    --glass-bg-strong: rgba(255, 255, 255, 0.92);   /* White 92% — opaque */
    --glass-border:    rgba(235, 205, 195, 0.65);   /* #EBCDC3 tinted     */
    --glass-hover:     rgba(255, 255, 255, 0.86);   /* White hover state  */

    /* ─── Shadows — parme-tinted, never pure black ─── */
    --shadow-sm:  0  4px 16px rgba(214, 202, 221, 0.18);
    --shadow-md:  0 10px 40px rgba(214, 202, 221, 0.25);
    --shadow-lg:  0 20px 72px rgba(214, 202, 221, 0.34);

    /* ─── Border Radius ─── */
    --radius-sm:   12px;
    --radius-md:   18px;
    --radius-lg:   24px;    /* Cards — spec value                         */
    --radius-xl:   32px;    /* Header, modals                              */
    --radius-pill: 999px;   /* Buttons — spec value                        */

    /* ─── Blur — spec: 16px for nav & modals ─── */
    --blur:        16px;
    --blur-strong: 28px;

    /* ─── Transitions — 300ms for all hover effects (spec) ─── */
    --t-fast:   all 0.20s ease;
    --t-normal: all 0.30s cubic-bezier(0.4, 0, 0.2, 1);   /* 300ms — spec */
    --t-slow:   all 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* ─── Backward-compat aliases (admin inline styles) ─── */
    --text-primary:   #2D2831;   /* → --text-heading */
    --text-secondary: #4A444B;   /* → --text-body    */
    --text-tertiary:  #8A8292;   /* → --text-muted   */
    --primary:        #C09087;   /* → --brand-rose-deep */
    --primary-hover:  #DDB9AE;   /* → --brand-rose-hover */
}

/* ================================================================
   RESET & BASE
================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;   /* Relaxed reading — spec value */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-main);
    color: var(--text-body);
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
}

/* ─── Typographic hierarchy — Lora for all headings ─── */
h1, h2, h3, h4,
.logo-text,
.hero-title,
.section-header h2,
.card-header h3,
.modal-header h2 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    color: var(--text-heading);
    letter-spacing: -0.025em;   /* Slightly tightened — premium feel */
    line-height: 1.25;
}

/* ================================================================
   FOND NUAGEUX — Animated radial gradients
   Colors derived from strict palette tokens
================================================================ */

.gradient-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse 78% 68% at 12% 12%, rgba(235, 205, 195, 0.38) 0%, transparent 60%),
        radial-gradient(ellipse 62% 58% at 88%  8%, rgba(214, 202, 221, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse 68% 58% at 50% 94%, rgba(240, 229, 216, 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 48% 48% at  6% 80%, rgba(235, 205, 195, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 52% 42% at 94% 68%, rgba(214, 202, 221, 0.18) 0%, transparent 50%);
    filter: blur(68px);
    animation: cloudDrift 40s ease-in-out infinite;
}

@keyframes cloudDrift {
    0%,  100% { transform: scale(1.00) translate( 0.0%,  0.0%); }
    25%        { transform: scale(1.06) translate( 0.6%, -0.6%); }
    50%        { transform: scale(1.03) translate(-0.4%,  0.4%); }
    75%        { transform: scale(1.07) translate( 0.3%, -0.3%); }
}

/* ─── Velvet grain (barely perceptible texture) ─── */
.grain-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.028;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.82" numOctaves="4"/></filter><rect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.4"/></svg>');
    pointer-events: none;
    mix-blend-mode: multiply;
}

/* ================================================================
   SIDEBAR RÉSEAUX SOCIAUX
================================================================ */

.fixed-social-sidebar {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--t-normal);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    position: relative;
}

.social-icon::before {
    content: attr(title);
    position: absolute;
    right: calc(100% + 12px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-heading);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: var(--t-fast);
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    transform: translateX(-4px) scale(1.08);
    color: var(--text-heading);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.social-icon.twitch:hover {
    background: rgba(214, 202, 221, 0.35);
    border-color: rgba(214, 202, 221, 0.55);
    box-shadow: 0 6px 28px rgba(214, 202, 221, 0.40);
}

.social-icon.youtube:hover {
    background: rgba(235, 205, 195, 0.30);
    border-color: rgba(235, 205, 195, 0.50);
    box-shadow: 0 6px 28px rgba(235, 205, 195, 0.38);
}

.social-icon.tiktok:hover {
    background: rgba(240, 229, 216, 0.45);
    border-color: rgba(240, 229, 216, 0.65);
    box-shadow: 0 6px 28px rgba(214, 202, 221, 0.32);
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg,
        rgba(235, 205, 195, 0.28) 0%,
        rgba(240, 229, 216, 0.28) 100%);
    border-color: rgba(235, 205, 195, 0.48);
    box-shadow: 0 6px 28px rgba(235, 205, 195, 0.34);
}

/* ================================================================
   HEADER FLOTTANT — Floating "island" pill style
   White 70% glass | blur(16px) | 1px solid #EBCDC3 border (spec)
================================================================ */

.floating-header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1560px;
    z-index: 1000;
}

.header-content {
    background: rgba(255, 255, 255, 0.70);   /* White 70% — spec           */
    backdrop-filter: blur(16px);              /* blur(16px) — spec          */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #EBCDC3;               /* 1px solid #EBCDC3 — spec   */
    border-radius: var(--radius-xl);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(235, 205, 195, 0.20);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(214, 202, 221, 0.30);
}

.logo-text {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.025em;
}

.header-nav {
    display: flex;
    gap: 4px;
    margin-left: 24px;
}

.nav-link {
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: var(--t-fast);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: var(--text-heading);
    background: rgba(214, 202, 221, 0.22);
}

.nav-link.active {
    color: var(--text-heading);
    background: rgba(235, 205, 195, 0.28);
    font-weight: 600;
    border: 1px solid rgba(235, 205, 195, 0.42);
}

/* ── Dropdown admin ──────────────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex; align-items: center; gap: 5px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 14px; font-weight: 700;
    color: var(--warning);
    transition: color .2s ease, background .2s ease;
    white-space: nowrap;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
    color: var(--text-heading);
    background: rgba(214, 202, 221, 0.22);
}
.nav-dropdown-chevron {
    font-size: 9px;
    display: inline-block;
    transition: transform .2s ease;
    opacity: .7;
}
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.open   .nav-dropdown-chevron {
    transform: rotate(180deg);
}
.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 210px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid #EBCDC3;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(214,202,221,.40), inset 0 1px 0 rgba(255,255,255,.99);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown.open   .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-label {
    font-size: 10px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--text-muted);
    padding: 8px 12px 4px;
}
.nav-dropdown-sep {
    height: 1px;
    background: rgba(235,205,195,.50);
    margin: 4px 2px;
}
.nav-dropdown-item {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}
.nav-dropdown-item:hover {
    background: rgba(235,205,195,.30);
    color: var(--text-heading);
}
.nav-dropdown-item svg {
    flex-shrink: 0;
    opacity: .65;
}
.nav-dropdown-item.is-dashboard {
    font-weight: 700;
    color: var(--text-heading);
}
.nav-dropdown-item.is-new {
    color: #3C9B6A;
}
.nav-dropdown-item.is-new:hover {
    background: rgba(60,155,106,.10);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ── Bouton connexion / profil utilisateur ─── */
.header-login-btn {
    padding: 7px 18px;
    background: rgba(255,255,255,.60);
    border: 1.5px solid rgba(235,205,195,.65);
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    color: var(--text-heading);
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}
.header-login-btn:hover {
    background: rgba(235,205,195,.30);
    border-color: #EBCDC3;
    transform: translateY(-1px);
}
.header-user-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 5px;
    background: rgba(255,255,255,.60);
    border: 1.5px solid rgba(235,205,195,.65);
    border-radius: 999px;
    text-decoration: none; color: var(--text-heading);
    transition: all .2s ease; white-space: nowrap;
}
.header-user-btn:hover {
    background: rgba(235,205,195,.28);
    border-color: #EBCDC3; transform: translateY(-1px);
}
.header-user-avatar {
    width: 26px; height: 26px;
    background: linear-gradient(135deg, #EBCDC3, #D6CADD);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: var(--text-heading);
}
.header-user-name { font-size: 13px; font-weight: 700; }

/* ================================================================
   STATUS PILL
================================================================ */

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    color: var(--text-muted);
    transition: var(--t-normal);
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em;
}

.status-pill.live {
    background: linear-gradient(135deg,
        rgba(196, 122, 114, 0.18) 0%,
        rgba(235, 205, 195, 0.24) 100%);
    border-color: rgba(196, 122, 114, 0.32);
    color: var(--live-color);
    box-shadow: 0 0 24px rgba(196, 122, 114, 0.14), var(--shadow-sm);
    animation: pulseLive 3.5s ease infinite;
}

.status-pill.offline {
    background: rgba(240, 229, 216, 0.40);
    border-color: rgba(235, 205, 195, 0.20);
    color: var(--text-muted);
}

.status-pill.small {
    padding: 5px 12px;
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(214, 202, 221, 0.60);
}

.status-pill.live .status-dot {
    background: var(--live-color);
    box-shadow: 0 0 8px rgba(196, 122, 114, 0.70);
    animation: dotPulse 3.5s ease infinite;
}

@keyframes pulseLive {
    0%, 100% { transform: scale(1.00); }
    50%       { transform: scale(1.03); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1;    box-shadow: 0 0  8px rgba(196, 122, 114, 0.70); }
    50%       { opacity: 0.75; box-shadow: 0 0 14px rgba(196, 122, 114, 0.90); }
}

/* ================================================================
   MAIN CONTAINER
================================================================ */

.main-container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 130px 110px 80px 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ================================================================
   STREAM SECTION — Player + Chat
================================================================ */

.stream-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    width: 100%;
}

.player-column,
.chat-column {
    display: flex;
    flex-direction: column;
}

/* ================================================================
   HERO GLASS — Stream Player card
   border-radius: 24px (spec) | shadow: 0 10px 40px rgba(214,202,221,.25)
================================================================ */

.hero-glass {
    background: rgba(255, 255, 255, 0.70);          /* White 70% glass    */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #EBCDC3;                       /* #EBCDC3 — spec     */
    border-radius: 24px;                             /* 24px — spec        */
    padding: 20px;
    box-shadow:
        0 10px 40px rgba(214, 202, 221, 0.25),       /* spec shadow        */
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Halo rose doux — renforce l'ambiance streaming */
.hero-glass::before {
    content: '';
    position: absolute;
    top: -50px; left: -50px;
    width: 320px; height: 320px;
    background: radial-gradient(circle,
        rgba(235, 205, 195, 0.18) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.player-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);   /* 18px — nested inside 24px container */
    overflow: hidden;
    background: var(--surface);
    box-shadow:
        0 4px 20px rgba(214, 202, 221, 0.18),
        inset 0 0 0 1px rgba(235, 205, 195, 0.20);
}

.player-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ================================================================
   TWITCH CHAT
   border-radius: 24px (spec) | shadow: 0 10px 40px rgba(214,202,221,.25)
================================================================ */

.twitch-chat-wrapper {
    background: rgba(255, 255, 255, 0.70);          /* White 70% glass    */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #EBCDC3;                       /* #EBCDC3 — spec     */
    border-radius: 24px;                             /* 24px — spec        */
    padding: 20px;
    overflow: hidden;
    box-shadow:
        0 10px 40px rgba(214, 202, 221, 0.25),       /* spec shadow        */
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Halo parme — contraste doux avec le rose du player */
.twitch-chat-wrapper::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 300px; height: 300px;
    background: radial-gradient(circle,
        rgba(214, 202, 221, 0.16) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.twitch-chat-wrapper iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: var(--radius-md);   /* 18px — nested inside 24px container */
    min-height: 500px;
    box-shadow: inset 0 0 0 1px rgba(235, 205, 195, 0.16);
    position: relative;
    z-index: 1;
}

/* ================================================================
   HERO CONTENT (info banner below stream)
================================================================ */

.hero-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    border-radius: var(--radius-xl);
    padding: 56px 44px;
    box-shadow:
        0 10px 40px rgba(214, 202, 221, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    background: rgba(235, 205, 195, 0.22);
    color: var(--brand-rose-deep);
    margin-bottom: 24px;
    border: 1px solid rgba(235, 205, 195, 0.40);
}

.hero-badge svg {
    width: 10px;
    height: 10px;
}

.hero-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 52px;
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-heading);
    line-height: 1.2;
}

.hero-description {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    color: var(--text-body);
    line-height: 1.70;
    max-width: 680px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BOUTONS — Pill style (spec: 999px radius)
   Primary: rose→parme gradient, dark text for contrast
================================================================ */

.btn-primary,
.btn-secondary,
.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--t-normal);
    text-decoration: none;
    letter-spacing: 0.01em;
}

/* Dégradé rose poudré → parme, texte sombre pour lisibilité */
.btn-primary {
    background: linear-gradient(135deg,
        var(--brand-rose) 0%,
        var(--accent-parme) 100%);
    color: var(--text-heading);
    box-shadow: 0 6px 24px rgba(214, 202, 221, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg,
        var(--brand-rose-hover) 0%,
        var(--accent-parme-hover) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(214, 202, 221, 0.45);
}

.btn-secondary {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--blur));
    color: var(--text-body);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

.btn-discord {
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #9DA8E2 0%, var(--accent-parme) 100%);
    color: var(--text-heading);
    box-shadow: 0 6px 24px rgba(157, 168, 226, 0.30);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(157, 168, 226, 0.40);
}

/* ================================================================
   SIDEBAR INFO CARDS — 2 colonnes
================================================================ */

.sidebar-glass {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    border-radius: var(--radius-lg);   /* 24px — spec */
    padding: 28px;
    box-shadow:
        0 10px 40px rgba(214, 202, 221, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.card-header h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.card-body {
    font-size: 15px;
    line-height: 1.6;
}

.card-text {
    color: var(--text-body);
    margin-bottom: 18px;
    line-height: 1.65;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.info-item {
    background: rgba(240, 229, 216, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--surface-border);
}

.info-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading);
}

.discord-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    margin-bottom: 18px;
    background: rgba(214, 202, 221, 0.18);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6A5E8A;
    border: 1px solid rgba(214, 202, 221, 0.30);
}

.loading-dots {
    animation: blink 1.5s infinite;
    color: var(--text-muted);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.40; }
}

/* ================================================================
   GRILLES MÉDIAS — 4 colonnes / 8 éléments
================================================================ */

.cards-grid,
.cards-grid-8 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* ================================================================
   SECTIONS CONTENU
================================================================ */

.content-section {
    width: 100%;
    margin-bottom: 16px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.section-header p {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
}

/* ================================================================
   CARDS MÉDIA
   Hover: float effect (translateY) — spec micro-interaction
   Transitions: 350ms–500ms — spec range
================================================================ */

.media-card {
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(235, 205, 195, 0.65);
    border-radius: var(--radius-lg);   /* 24px — spec */
    overflow: hidden;
    transition: var(--t-normal);       /* 300ms — spec */
    cursor: pointer;
    box-shadow:
        0 10px 40px rgba(214, 202, 221, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

/* Float effect — 300ms smooth lift (spec micro-interaction) */
.media-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(214, 202, 221, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: #EBCDC3;
}

.media-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    background: var(--surface);
    overflow: hidden;
}

.media-thumbnail img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--t-slow);   /* 500ms — slow & deliberate */
}

.media-card:hover .media-thumbnail img {
    transform: scale(1.06);
}

/* Badges: frosted glass on light bg */
.media-duration {
    position: absolute;
    bottom: 10px; right: 10px;
    padding: 4px 10px;
    background: rgba(253, 248, 249, 0.92);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    border: 1px solid rgba(235, 205, 195, 0.24);
}

.media-views {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 10px;
    background: rgba(253, 248, 249, 0.92);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(235, 205, 195, 0.24);
}

.media-info {
    padding: 18px 20px 22px;
}

.media-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-heading);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 45px;
}

.media-date {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================================================
   LOADING STATE
================================================================ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 72px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 2.5px solid rgba(214, 202, 221, 0.30);
    border-top-color: var(--brand-rose-hover);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ================================================================
   MODALS
   Overlay: 60% opacity glass + blur(16px) — spec
================================================================ */

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(45, 40, 49, 0.30);   /* Heading-tinted overlay */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.modal-overlay.active {
    display: flex;
}

.modal-glass {
    background: rgba(255, 255, 255, 0.92);     /* White 92% — strong glass   */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #EBCDC3;                  /* #EBCDC3 — spec             */
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 20px 72px rgba(214, 202, 221, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    position: relative;
    animation: modalSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-glass.large {
    max-width: 920px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 22px; right: 22px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(240, 229, 216, 0.40);
    border: 1px solid rgba(235, 205, 195, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t-fast);
    color: var(--text-muted);
}

.modal-close:hover {
    background: rgba(196, 122, 114, 0.14);
    border-color: rgba(196, 122, 114, 0.30);
    color: var(--live-color);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 32px;
}

.modal-header h2 {
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--text-heading);
}

/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 1400px) {
    .stream-section       { grid-template-columns: 1fr 350px; }
    .cards-grid,
    .cards-grid-8         { grid-template-columns: repeat(3, 1fr); }
    .fixed-social-sidebar { right: 18px; }
    .main-container       { padding-right: 90px; }
}

@media (max-width: 1200px) {
    .stream-section { grid-template-columns: 1fr 320px; }
    .sidebar-glass  { grid-template-columns: repeat(2, 1fr); }
    .cards-grid,
    .cards-grid-8   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .main-container {
        padding: 110px 20px 60px;
    }
    .stream-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sidebar-glass { grid-template-columns: 1fr; }
    .hero-title    { font-size: 40px; }
    .cards-grid,
    .cards-grid-8  { grid-template-columns: repeat(2, 1fr); }
    .fixed-social-sidebar { right: 14px; gap: 10px; }
    .social-icon   { width: 44px; height: 44px; }
    .social-icon svg { width: 18px; height: 18px; }
}

@media (max-width: 768px) {
    .floating-header { top: 14px; width: calc(100% - 28px); }

    .header-content {
        flex-wrap: wrap;
        padding: 14px 18px;
        gap: 12px;
    }

    .header-nav {
        order: 3;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: space-around;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link { padding: 7px 13px; font-size: 13px; }

    .main-container { padding: 150px 18px 100px; }

    .hero-glass,
    .twitch-chat-wrapper { padding: 18px; }

    .twitch-chat-wrapper iframe { min-height: 400px; }
    .hero-content     { padding: 40px 24px; }
    .hero-title       { font-size: 32px; }
    .hero-description { font-size: 15px; }

    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; }

    .sidebar-glass { grid-template-columns: 1fr; }
    .cards-grid,
    .cards-grid-8  { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .modal-glass     { padding: 28px; margin: 20px; max-height: 88vh; }
    .modal-header h2 { font-size: 26px; }
    .section-header h2 { font-size: 26px; }
    .status-pill     { padding: 7px 14px; font-size: 12px; }
    .glass-card      { padding: 22px; }

    /* Social sidebar → bottom dock on mobile */
    .fixed-social-sidebar {
        position: fixed;
        bottom: 20px;
        right: 50%;
        top: auto;
        transform: translateX(50%);
        flex-direction: row;
        gap: 10px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid #EBCDC3;
        border-radius: var(--radius-xl);
        padding: 12px 18px;
        box-shadow: var(--shadow-lg);
    }

    .social-icon { width: 42px; height: 42px; }
    .social-icon svg { width: 18px; height: 18px; }

    .social-icon::before {
        bottom: calc(100% + 12px);
        right: 50%;
        transform: translateX(50%) translateY(8px);
    }
    .social-icon:hover::before {
        transform: translateX(50%) translateY(0);
    }
    .social-icon:hover { transform: translateY(-4px) scale(1.08); }
}

@media (max-width: 480px) {
    .logo-text        { display: none; }
    .header-content   { padding: 12px 14px; }
    .logo-img         { width: 34px; height: 34px; }
    .main-container   { padding: 160px 16px 100px; }
    .hero-title       { font-size: 28px; }
    .hero-badge       { font-size: 11px; padding: 5px 12px; }
    .twitch-chat-wrapper iframe { min-height: 350px; }
    .modal-glass      { padding: 22px; border-radius: var(--radius-lg); }
    .floating-header  { top: 10px; width: calc(100% - 20px); }
    .header-nav       { gap: 3px; }
    .nav-link         { padding: 6px 11px; font-size: 12px; }
    .cards-grid,
    .cards-grid-8     { grid-template-columns: 1fr; }
    .fixed-social-sidebar { bottom: 14px; padding: 10px 14px; gap: 8px; }
    .social-icon      { width: 38px; height: 38px; }
    .social-icon svg  { width: 16px; height: 16px; }
}

/* ─── Touch devices — no hover transforms ─── */
@media (hover: none) and (pointer: coarse) {
    .media-card:hover  { transform: none; }
    .media-card:active { transform: scale(0.97); }
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-discord:hover { transform: none; }
    .btn-primary:active,
    .btn-secondary:active,
    .btn-discord:active { transform: scale(0.97); }
}
