/* ========================================
   RESET ET LAYOUT DE BASE
   ======================================== */

/**
 * RESET UNIVERSEL
 * Supprime les marges et paddings par dÃ©faut de tous les Ã©lÃ©ments
 * et applique box-sizing: border-box pour faciliter le calcul des dimensions
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/**
 * RESET HTML ET BODY
 * - Supprime les marges et paddings
 * - Force la largeur Ã  100% de la fenÃªtre
 * - EmpÃªche le scroll horizontal (overflow-x: hidden)
 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/**
 * SIDEBARS LATÃ‰RALES RÃ‰TRACTABLES
 * Configuration des barres latÃ©rales gauche (navigation) et droite (widgets)
 */
.sidebar {
    background: var(--bg-card);
    overflow-y: auto;
    position: fixed;
    top: 70px; /* Commence juste après le header */
    bottom: 180px; /* S'arrête avant le footer */
    height: auto; /* Hauteur automatique */
    z-index: 50; /* En dessous du footer pour ne pas le cacher */
    transition: transform 0.3s ease;
    padding-top: 0;
    padding-bottom: 1rem; /* Espace en bas pour voir le dernier Ã©lÃ©ment */
}

.sidebar-left {
    left: 0;
    width: 260px;
    border-right: 2px solid var(--border);
    transform: translateX(0); /* Visible par dÃ©faut */
}

.sidebar-right {
    right: 0;
    width: 300px;
    border-left: 2px solid var(--border);
    transform: translateX(0); /* Visible par défaut */
    /* Styles pour éviter le CLS - appliqués dès le départ au lieu d'attendre le JS */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Ã‰tat rÃ©tractÃ© (quand la classe collapsed est ajoutÃ©e) */
.sidebar-left.collapsed {
    transform: translateX(-260px);
}

.sidebar-right.collapsed {
    transform: translateX(300px);
}

/**
 * BOUTONS DE TOGGLE DES SIDEBARS
 * Boutons flottants pour ouvrir/fermer les sidebars
 */
.sidebar-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--glow);
}

.sidebar-toggle-left {
    display: none;
    left: 10px;
}

.sidebar-toggle-right {
    right: 10px;
}

/* Animation du bouton quand la sidebar est ouverte */
.sidebar-toggle.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

/**
 * LAYOUT CONTAINER
 * Conteneur principal du layout de la page
 * 
 * Configuration :
 * - display: block : Affichage simple (les sidebars sont en position fixed)
 * - min-height: 100vh : Hauteur minimale de la fenÃªtre
 * - Les sidebars sont en position fixed et se superposent au contenu
 */
.layout-container {
    display: block;
    min-height: 100vh;
    z-index: 1;
}

:root {
    /* Palette EDG - L'Envol des Gamers (Version Sombre) */
    --primary: #FF6FB1;           /* Rose principal - Ã©nergie, solidaritÃ© */
    --primary-light: #FF8FC4;     /* Rose clair lumineux */
    --primary-dark: #E55A9D;      /* Rose foncÃ© - hover */
    --accent: #A56BFF;            /* Violet accent - modernitÃ© */
    --white: #FFFFFF;             /* Blanc pur - paix */
    --bg: #0f0f0f;                /* Noir profond - fond gÃ©nÃ©ral */
    --bg-secondary: #1a1a1a;      /* Gris trÃ¨s foncÃ© - sections */
    --bg-card: #1e1e1e;           /* Gris foncÃ© - cartes */
    --text: #f5f5f5;              /* Blanc cassÃ© - texte principal */
    --text-muted: #a0a0a0;        /* Gris clair - texte secondaire */
    --border: #2a2a2a;            /* Gris foncÃ© - bordures */
    --border-accent: #FF6FB1;     /* Rose - bordures accentuÃ©es */
    --shadow: rgba(255, 111, 177, 0.3); /* Ombre rose plus visible */
    --glow: rgba(255, 111, 177, 0.5);   /* Effet glow rose */
}

body {
    font-family: 'Open Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Import des polices Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Open+Sans:wght@400;600;700&family=Montserrat:wght@700;800;900&display=swap');

header {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 111, 177, 0.1) 100%);
    border-bottom: 2px solid var(--primary);
    /*padding: 1rem 2rem;*/
    box-shadow: 0 2px 10px var(--shadow);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.main-header {
    position: relative;
    z-index: 1000;
    min-height: 70px;
}

.header-container {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 1rem 1.5rem;
}

/**
 * NAVIGATION PRINCIPALE
 * Barre de navigation dans le header
 * 
 * Layout :
 * - Flexbox pour aligner les Ã©lÃ©ments horizontalement
 * - justify-content: space-between : Espace les Ã©lÃ©ments aux extrÃ©mitÃ©s
 * - align-items: center : Centre verticalement les Ã©lÃ©ments
 * - max-width: 100% : Prend toute la largeur (pas de limitation)
 * - padding: 0 2rem : Espacement horizontal de 2rem de chaque cÃ´tÃ©
 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto; /* Pousse le logo Ã  gauche */
}

.logo h1 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.logo h1::before {
    -webkit-text-fill-color: var(--primary);
    font-size: 1.2rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher img {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lang-switcher img:hover {
    opacity: 1;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.menu a:hover {
    color: var(--primary);
}

.menu a:active {
    color: var(--primary-dark);
}

/**
 * Ã‰LÃ‰MENT MAIN
 * Conteneur principal du contenu de la page
 * 
 * Configuration :
 * - max-width: 100% : Prend toute la largeur disponible (pas de limitation)
 * - margin: 0 : Pas de marges externes
 * - padding: 0 : Pas de padding (le padding est gÃ©rÃ© par les sections internes)
 * - min-height: calc(100vh - 200px) : Hauteur minimale pour que le footer reste en bas
 *   (100vh = hauteur de la fenÃªtre, -200px pour le header et footer approximatifs)
 */
main {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 2rem;
    /*position: relative;*/
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.streamers-grid,
.streamers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.streamer-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow);
}

.streamer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px var(--glow);
    border-color: var(--primary);
}

.streamer-card.live {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 111, 177, 0.15) 100%);
    box-shadow: 0 4px 20px var(--glow);
}

.live-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.btn-primary,
.btn-twitch {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-twitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover,
.btn-twitch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 111, 177, 0.4);
}

.btn-primary:hover::before,
.btn-twitch:hover::before {
    left: 100%;
}

.donation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.amount {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: bold;
}

.recent-donors ul {
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}

.recent-donors li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.recent-donors li:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.cookie-banner button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: var(--primary);
    color: white;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
}

.admin-card h3 {
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table th {
    background: rgba(192, 132, 252, 0.1);
    color: var(--primary);
}

.message,
.error {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
}

footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .streamers-grid,
    .streamers-list {
        grid-template-columns: 1fr;
    }
}

/* Page d'accueil amÃ©liorÃ©e */
.event-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(192, 132, 252, 0.1) 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.event-logo {
    max-width: 150px;
    height: auto;
}

.event-info {
    flex: 1;
    min-width: 300px;
}

.event-dates {
    color: var(--primary);
    font-weight: bold;
    margin-top: 0.5rem;
}

.donation-total {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 200px;
}

.donation-total .label {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.donation-total .amount {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.main-player {
    margin-bottom: 3rem;
}

.player-controls {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group select,
.control-group input[type="number"] {
    padding: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.timer {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.player-container {
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.player-info {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 8px;
}

.live-indicator {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-right: 1rem;
}

.streamers-mini-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
}

.streamers-mini-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(255, 111, 177, 0.4);
    border-color: var(--primary);
}

.streamers-mini-card.live {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 111, 177, 0.5);
}

.streamers-mini-card.live:hover {
    box-shadow: 0 12px 40px rgba(255, 111, 177, 0.6);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    filter: blur(2px);
    transition: all 0.4s ease;
}

.streamers-mini-card:hover .card-bg {
    opacity: 0.9;
    filter: blur(1px);
    transform: scale(1.05);
}

/* Streamers en ligne - image plus visible */
.streamers-mini-card.live .card-bg {
    opacity: 1;
    filter: none;
}

.streamers-mini-card.live:hover .card-bg {
    opacity: 1;
    filter: none;
}

/* Logo Twitch dÃ©sactivÃ© - L'image de profil est maintenant pleinement visible */

.card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.2) 70%, transparent 100%);
}

.card-content h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    color: var(--white);
}

.offline-badge {
    display: inline-block;
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border);
}

.viewers,
.category {
    font-size: 0.875rem;
    color: var(--white);
    margin: 0.25rem 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.viewers {
    font-weight: 600;
    color: var(--primary-light);
}

.category {
    opacity: 0.9;
    font-style: italic;
    color: var(--accent);
}

@media (max-width: 768px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .player-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        flex-wrap: wrap;
    }
}


/* AmÃ©lioration de la grille des streamers */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.streamers-list {
    margin-top: 2rem;
}

.streamers-list h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Animation d'apparition des cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.streamers-mini-card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.streamers-mini-card:nth-child(1) { animation-delay: 0.05s; }
.streamers-mini-card:nth-child(2) { animation-delay: 0.1s; }
.streamers-mini-card:nth-child(3) { animation-delay: 0.15s; }
.streamers-mini-card:nth-child(4) { animation-delay: 0.2s; }
.streamers-mini-card:nth-child(5) { animation-delay: 0.25s; }
.streamers-mini-card:nth-child(6) { animation-delay: 0.3s; }

/* Effet de brillance sur hover */
.streamers-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.streamers-mini-card:hover::before {
    left: 100%;
}

/* Responsive pour tablette */
@media (max-width: 1024px) {
    .streamers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }
    
    .streamers-mini-card {
        height: 160px;
    }
    
    .card-bg::after {
        width: 70px;
        height: 70px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h4 {
        font-size: 1rem;
    }
    
    .viewers,
    .category {
        font-size: 0.75rem;
    }
}

/* Responsive pour petit mobile */
@media (max-width: 480px) {
    .streamers-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .streamers-mini-card {
        height: 140px;
    }
    
    .card-bg::after {
        width: 60px;
        height: 60px;
    }
}


/* Badge LIVE avec animation */
.live-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-live 2s ease-in-out infinite;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(239, 68, 68, 0.8);
    }
}


/* ========================================
   CHARTE GRAPHIQUE EDG - L'ENVOL DES GAMERS
   ======================================== */

/* Effet colombe stylisÃ©e (motif de fond) - Version sombre */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

/* Effet de particules lumineuses */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* AmÃ©lioration des cartes avec thÃ¨me EDG sombre */
.stat-card,
.admin-card,
.donation-stats .stat-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 111, 177, 0.1) 100%);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover,
.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--glow);
    border-color: var(--primary);
}

/* Badge "En live" avec thÃ¨me EDG */
.live-badge {
    background: linear-gradient(135deg, var(--primary) 0%, #FF4081 100%);
    animation: pulse-edg 2s ease-in-out infinite;
}

@keyframes pulse-edg {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 111, 177, 0.4);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 111, 177, 0.8), 0 0 20px rgba(255, 111, 177, 0.4);
    }
}

/* Footer avec dÃ©gradÃ© EDG sombre */
footer {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 111, 177, 0.05) 100%);
    border-top: 2px solid var(--primary);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

/* BanniÃ¨re Ã©vÃ©nement avec style EDG sombre */
.event-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 111, 177, 0.15) 50%, rgba(165, 107, 255, 0.15) 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px var(--glow);
    position: relative;
    overflow: hidden;
}

.event-banner::before {
    content: '🕊️';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 200px;
    opacity: 0.05;
    transform: rotate(-15deg);
    filter: grayscale(1) brightness(2);
}

.event-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

.event-description strong {
    color: var(--primary);
    font-weight: 700;
}

/* Messages et alertes - Version sombre */
.message,
.error {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid;
}

.message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-color: #4CAF50;
    color: #81C784;
}

.error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-color: #F44336;
    color: #E57373;
}

/* AmÃ©lioration des inputs et selects - Version sombre */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 111, 177, 0.2);
    background: var(--bg-card);
}

/* Slogan dans le header (optionnel) */
.site-slogan {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--accent);
    margin-top: 0.25rem;
}


/* ========================================
   LAYOUT AVEC SIDEBARS RESPONSIVE
   ======================================== */

/* Header fixe */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #141424 0%, #2a1a2e 100%);
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 2px 10px var(--shadow);
    opacity: 1 !important;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    max-width: 100%;
    gap: 1rem;
    min-height: 70px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: auto; /* Force Ã  droite */
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid var(--border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    background: var(--bg-secondary);
}

.lang-btn:hover {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(255, 111, 177, 0.1);
    transform: translateY(-2px);
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 111, 177, 0.2) 0%, rgba(165, 107, 255, 0.2) 100%);
    box-shadow: 0 0 10px rgba(255, 111, 177, 0.3);
}

.lang-btn:active {
    transform: scale(0.95);
}

.flag-emoji {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-code {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    display: inline-block !important; /* Force l'affichage */
    vertical-align: middle;
    line-height: 1.2;
}

/* S'assurer que le nom est visible sur desktop */
@media (min-width: 769px) {
    .user-name {
        display: inline-block !important;
    }
}

.btn-login {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

/**
 * MENU UTILISATEUR DROPDOWN
 */
.user-menu {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: auto;
    max-height: 38px;
}

.user-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar-fallback {
    font-size: 1rem;
}

.dropdown-arrow {
    font-size: 0.55rem;
    transition: transform 0.3s ease;
    opacity: 0.8;
    flex-shrink: 0;
}

.user-profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 250px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.user-avatar-large-fallback {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
}

.dropdown-username {
    font-weight: 600;
    color: var(--text);
}

.dropdown-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-menu {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 111, 177, 0.1);
    color: var(--primary);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.item-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Layout container - DÃ‰SACTIVÃ‰ */
.layout-container {
    display: block !important;
    grid-template-columns: none !important;
    gap: 0;
    margin-top: 0 !important;
    min-height: auto;
    position: relative;
    z-index: 1;
}

/* Sidebars - Styles supprimÃ©s (les sidebars sont gÃ©rÃ©es plus haut dans le fichier) */

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h3,
.sidebar-header h2,
.sidebar-header .sidebar-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Navigation sidebar */
.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.nav-item:hover {
    background: rgba(255, 111, 177, 0.1);
    border-left-color: var(--primary);
    color: var(--primary);
}

.nav-item:active {
    background: rgba(255, 111, 177, 0.2);
}

.nav-item.active {
    background: rgba(255, 111, 177, 0.15);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 1.5rem;
}

.nav-admin {
    background: rgba(165, 107, 255, 0.1);
    border-left-color: var(--accent);
}

.nav-admin:hover {
    background: rgba(165, 107, 255, 0.2);
    border-left-color: var(--accent);
    color: var(--accent);
}

/**
 * CONTENU CENTRAL (.main-content)
 * Conteneur principal qui englobe tout le contenu de la page
 * S'adapte automatiquement selon l'Ã©tat des sidebars
 * 
 * Configuration par dÃ©faut (sidebars visibles) :
 * - margin-left: 260px : Espace pour la sidebar gauche
 * - margin-right: 300px : Espace pour la sidebar droite
 * - padding: 2rem : Espacement interne
 * - transition: margin 0.3s ease : Animation fluide lors du toggle
 * 
 * Les marges sont ajustÃ©es dynamiquement par JavaScript
 * quand les sidebars sont rÃ©tractÃ©es
 */
.main-content {
    margin-left: 260px;
    margin-right: 300px;
    padding: 2rem;
    transition: margin 0.3s ease;
}

/* Widgets sidebar droite */
.sidebar-widget {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-widget h3 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--primary);
}

.donation-widget {
    text-align: center;
}

.donation-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.donation-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-donate-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-donate-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

.event-widget {
    text-align: center;
}

.event-dates {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.live-streamers-widget {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.live-streamer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 111, 177, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.live-streamer-item:hover {
    background: rgba(255, 111, 177, 0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

.streamer-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.viewer-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.viewer-count::before {
    content: '👁️ ';
}

.no-live,
.loading-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 1rem 0;
}

/* Footer */
.main-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, #141424 0%, #2a1a2e 100%);
    border-top: 2px solid var(--primary);
    padding: 1rem 2rem;
    text-align: center;
    z-index: 100 !important;
    width: 100% !important;
    opacity: 1 !important;
}

.footer-content p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

.footer-slogan {
    font-style: italic;
    color: var(--primary);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    padding: 1.5rem;
    z-index: 2000;
    box-shadow: 0 -4px 20px var(--shadow);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.btn-accept,
.btn-decline {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.btn-decline {
    background: var(--bg-secondary);
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

.btn-decline:hover {
    border-color: var(--primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablette (< 1200px) */
@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Tablette portrait (< 992px) */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .streamers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-content {
        padding: 1.5rem !important;
    }
    
    .header-container {
        padding: 0.75rem 1rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .logo h1::before {
        font-size: 1rem;
    }
    
    .user-name {
        display: none;
    }
    
    /* Sidebars cachÃ©es par dÃ©faut sur mobile */
    .sidebar-left {
        transform: translateX(-260px);
    }
    
    .sidebar-right {
        transform: translateX(300px);
    }
    
    /* Affichage quand active */
    .sidebar-left.active {
        transform: translateX(0);
    }
    
    .sidebar-right.active {
        transform: translateX(0);
    }
    
    /* Contenu principal en pleine largeur sur mobile */
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem;
    }
    
    /* Afficher le bouton menu mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-accept,
    .btn-decline {
        width: 100%;
    }
}

/* Petit mobile (< 480px) */
@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .logo h1::before {
        font-size: 0.9rem;
    }
    
    .lang-btn {
        padding: 0.3rem 0.6rem;
    }
    
    .flag-emoji {
        font-size: 1rem;
    }
    
    .lang-code {
        font-size: 0.7rem;
    }
    
    .btn-login,
    .btn-logout {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}


/* AmÃ©lioration de la section streamers sur la page d'accueil */
.streamers-list {
    width: 100%;
    max-width: 100%;
}

.streamers-list h3 {
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.streamers-list h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

/* Ajustement pour le contenu principal avec la liste de streamers */
.main-content .streamers-list {
    margin-left: 0;
    margin-right: 0;
}

.main-content .streamers-grid {
    padding: 0;
}

/* Responsive - Ajustement du layout pour la page d'accueil */
@media (min-width: 1600px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
}

@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .main-content .streamers-list {
        margin-left: 0;
        margin-right: 0;
    }
    
    .main-content .streamers-grid {
        padding: 0;
    }
}


/* ========================================
   PLAYER CONTROLS - Menu dÃ©pliable moderne
   ======================================== */

.player-controls-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.player-settings-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-settings-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.player-settings-toggle.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.settings-icon {
    font-size: 1.2rem;
    animation: rotate-slow 8s linear infinite;
}

.player-settings-toggle:hover .settings-icon {
    animation: rotate-fast 0.5s ease-in-out;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-fast {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4); }
}

.player-controls {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.player-controls.open {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.controls-header h4 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.close-controls {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-controls:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.control-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.control-section:last-child {
    margin-bottom: 0;
}

.control-section h5 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.control-group {
    margin-bottom: 1rem;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.control-group.inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-group.inline label {
    margin-bottom: 0;
    flex-shrink: 0;
}

.control-group select,
.control-group .time-input {
    width: 100%;
    padding: 0.6rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.control-group.inline .time-input {
    width: 80px;
    text-align: center;
}

.control-group select:focus,
.control-group .time-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.control-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.unit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 8px;
    border: 1px solid var(--primary);
    margin-top: 1rem;
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timer-text #timer-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.timer-countdown {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .player-controls {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .player-controls.open {
        max-height: 80vh;
    }
    
    .control-group.inline {
        flex-wrap: wrap;
    }
    
    .control-section {
        padding: 0.75rem;
    }
}


/* ========================================
   FORMULAIRE D'INSCRIPTION STREAMERS
   ======================================== */

.inscription-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.inscription-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: 12px;
    border: 2px solid var(--primary);
}

.inscription-header h1 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 2rem;
}

.inscription-header .subtitle {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.inscription-header .links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.inscription-header .links a {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.inscription-header .links a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.intro-section, .association-info {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.intro-section h2, .association-info h3 {
    color: var(--primary);
    margin-top: 0;
}

.intro-section p, .association-info p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.inscription-form {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.section-header h2 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.recommendation-box, .organization-info, .links-box {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendation-box h4, .organization-info h4, .links-box h4 {
    color: #ffa500;
    margin-top: 0;
}

.recommendation-box ul, .organization-info ul {
    margin: 0.5rem 0 0 1.5rem;
    color: var(--text-secondary);
}

.links-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.links-list li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.links-list a {
    color: var(--secondary);
    text-decoration: none;
}

.links-list a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.readonly-field {
    background: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.moderator-group {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--secondary);
}

.moderator-group h4 {
    margin: 0 0 1rem 0;
    color: var(--secondary);
}

.mod-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text-primary);
    font-size: 1rem;
}

.form-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-prev, .btn-next, .btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-next {
    background: linear-gradient(135deg, var(--secondary), #6441a5);
    color: white;
    margin-left: auto;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.btn-submit {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    font-weight: 700;
    margin-left: auto;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 0, 0.4);
}

.alert {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.alert-success {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.alert-success h3 {
    color: #00ff00;
    margin-top: 0;
}

.alert-success p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.contact-info li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.contact-info strong {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .inscription-header h1 {
        font-size: 1.5rem;
    }
    
    .inscription-form {
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .mod-inputs {
        grid-template-columns: 1fr;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-next, .btn-submit {
        margin-left: 0;
    }
}


/* ========================================
   CORRECTIONS LAYOUT ET AFFICHAGE
   ======================================== */

/* Fix de la grille des streamers - 3-4 par ligne */
.streamers-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 1rem 0 !important;
}

.streamer-mini-card {
    width: 100% !important;
    min-height: 200px !important;
}

/* Fix du lecteur principal */
.main-player {
    margin-bottom: 3rem;
}

.player-wrapper {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.player-container {
    flex: 1;
    min-height: 480px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#twitch-embed {
    width: 100%;
    /*height: 480px;*/
}

/* Responsive pour les streamers */
@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    }
}

@media (max-width: 1024px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .streamers-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ========================================
   PAGE CLIPS - FIX AFFICHAGE LECTEUR
   ======================================== */

.clips-page {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.clips-page h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.clips-player-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.clips-player {
    flex: 1;
    min-height: 480px;
}

#clip-embed {
    width: 100%;
    min-height: 480px;
    background: #000;
    border-radius: 8px;
}

.clips-controls {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.clips-controls .control-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.clips-controls label {
    color: var(--text-primary);
    font-weight: 500;
}

.clips-controls select,
.clips-controls .time-input {
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
}

.carousel-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.clip-details {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.clip-details h3 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.clip-details p {
    color: var(--text-secondary);
    margin: 0;
}

.clips-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.clip-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.clip-thumbnail:hover,
.clip-thumbnail.active {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.clip-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.clip-duration {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .clips-player-container {
        flex-direction: column;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .clips-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ========================================
   CARTES STREAMERS - FIX VISIBILITÃ‰
   ======================================== */

.streamers-list {
    margin: 3rem 0;
}

.streamers-list h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.streamer-mini-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.streamer-mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(255, 105, 180, 0.3);
}

.streamer-mini-card.live {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.streamer-mini-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    z-index: 0;
}

.streamer-mini-card .card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.streamer-mini-card h4 {
    color: white;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.streamer-mini-card .live-badge {
    display: inline-block;
    background: #ff0000;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin: 0.5rem 0;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.streamer-mini-card .offline-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.streamer-mini-card .viewers {
    color: #00ff00;
    font-size: 0.9rem;
    margin: 0.25rem 0;
    font-weight: 600;
}

.streamer-mini-card .category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.streamer-mini-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

/* Animation d'entrÃ©e */
.streamer-mini-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .streamer-mini-card {
        min-height: 150px;
    }
    
    .streamer-mini-card h4 {
        font-size: 1rem;
    }
}


/* ========================================
   TIMER DE ROTATION AUTOMATIQUE
   ======================================== */

.rotation-timer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(138, 43, 226, 0.15));
    border: 2px solid var(--primary);
    border-radius: 12px;
    margin-top: 1rem;
    animation: pulse-timer 1.5s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 105, 180, 0.35);
    }
}

.rotation-timer .timer-icon {
    font-size: 2rem;
    animation: rotate-timer 2s linear infinite;
}

@keyframes rotate-timer {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotation-timer .timer-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rotation-timer .timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.rotation-timer .timer-countdown {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* Timer pour la page d'accueil */
.timer-container {
    display: none;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.15), rgba(138, 43, 226, 0.15));
    border: 2px solid var(--primary);
    border-radius: 12px;
    margin-top: 1rem;
}

.timer-container .timer-icon {
    font-size: 2rem;
}

.timer-container .timer-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timer-container #timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.timer-container .timer-countdown {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .rotation-timer,
    .timer-container {
        padding: 0.75rem 1rem;
    }
    
    .rotation-timer .timer-countdown,
    .timer-container .timer-countdown {
        font-size: 1.5rem;
    }
}


/* ========================================
   LAYOUT SIMPLE - SANS SIDEBARS
   ======================================== */

/* Sidebars visibles avec systÃ¨me de toggle */
/* Les sidebars sont maintenant contrÃ´lÃ©es par les classes .collapsed via transform */

/* Le header utilise la position fixe dÃ©finie plus haut */
/* Pas besoin de surcharge ici */

/* Body avec padding pour le header fixe */
body {
    padding-top: 70px; /* Espace pour le header fixe */
    margin: 0;
}

/* Le contenu principal utilise maintenant les marges dÃ©finies plus haut pour les sidebars */
/* Les rÃ¨gles de base sont dans la section principale du CSS */

/* Layout container simple */
.layout-container {
    display: block;
    grid-template-columns: none !important;
}

.page-layout {
    display: block !important;
    padding-top: 0 !important;
}


/* ============================================
   BOUTONS D'ACCESSIBILITÃ‰ DANS LE HEADER
   ============================================ */

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.icon-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.icon-btn:active {
    transform: scale(0.95);
}

/* Responsive pour les boutons */
@media (max-width: 768px) {
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-left: 0.25rem;
    }
}


/* ========================================
   TIMER DE ROTATION
   ======================================== */

/**
 * TIMER DISPLAY
 * Affiche le temps restant avant la prochaine rotation
 * Visible sous les dÃ©tails de la vidÃ©o
 */
.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 111, 177, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 1rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.timer-icon {
    font-size: 1.2rem;
    animation: pulse-timer 1.5s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.timer-value {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px var(--glow);
}

#timer-label-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ========================================
   INDICATEUR DE CONTENU MATURE
   ======================================== */

/**
 * MATURE INDICATOR
 * Badge +18 affichÃ© en overlay sur le lecteur vidÃ©o
 * pour les streams avec contenu mature
 */
.mature-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 20, 60, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.mature-icon {
    font-size: 1.5rem;
    animation: pulse-mature 3s ease-in-out infinite;
}

@keyframes pulse-mature {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.mature-text {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}


/* ========================================
   DRAPEAUX DE LANGUE
   ======================================== */

/**
 * LANGUAGE FLAG
 * Drapeau affichÃ© avant le titre du live ou clip
 * pour indiquer la langue du contenu
 */
.language-flag {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}


/* ========================================
   CARROUSEL DE CLIPS
   ======================================== */

/**
 * CLIPS CAROUSEL CONTAINER
 * Conteneur principal du carrousel de clips
 * AffichÃ© uniquement en mode clips (aucun streamer en ligne)
 */
.clips-carousel-container {
    margin-top: 2rem;
    width: 100%;
    padding: 1rem 0;
}

.clips-carousel-container h4 {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

/**
 * CLIPS CAROUSEL
 * Conteneur scrollable horizontal pour les miniatures de clips
 */
.clips-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-secondary);
}

.clips-carousel::-webkit-scrollbar {
    height: 8px;
}

.clips-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.clips-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.clips-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/**
 * CLIP THUMBNAIL
 * Miniature individuelle de clip dans le carrousel
 */
.clip-thumbnail {
    flex: 0 0 250px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    border: 2px solid var(--border);
}

.clip-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px var(--shadow);
    border-color: var(--primary);
}

.clip-thumbnail.active {
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--glow);
    transform: scale(1.05);
}

.clip-thumbnail img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/**
 * CLIP INFO
 * Informations affichÃ©es sous la miniature du clip
 */
.clip-info {
    padding: 0.75rem;
    background: var(--bg-card);
}

.clip-title {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.clip-creator {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.clip-views {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/**
 * PLAYING INDICATOR
 * Indicateur visuel du clip en cours de lecture
 */
.playing-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: pulse-play 2s ease-in-out infinite;
}

@keyframes pulse-play {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .clip-thumbnail {
        flex: 0 0 200px;
    }
    
    .clip-thumbnail img {
        height: 112px;
    }
    
    .playing-indicator {
        font-size: 2rem;
    }
}


/* ========================================
   BOUTONS ICÃ”NES HEADER
   ======================================== */

/**
 * ICON BUTTONS
 * Boutons avec icÃ´nes dans le header (mode sombre, accessibilitÃ©)
 */
.icon-btn {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.icon-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-accessibility {
    font-size: 1.3rem;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}


/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

/**
 * SIDEBAR HEADER
 * En-tÃªte de la sidebar avec titre
 */
.sidebar-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1rem;
}

.sidebar-header h3,
.sidebar-header h2,
.sidebar-header .sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/**
 * SIDEBAR NAV
 * Conteneur de navigation de la sidebar
 */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 0.5rem;
    height: calc(100% - 80px);
}

/**
 * NAV MAIN
 * Section principale de navigation
 */
.nav-main {
    display: flex;
    flex-direction: column;
}

/**
 * NAV FOOTER
 * Section de navigation en bas (connexion, admin)
 */
.nav-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 2px solid var(--border);
}

/**
 * NAV ITEM
 * Ã‰lÃ©ment de navigation individuel
 */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    transform: translateX(5px);
}

.nav-item:active {
    transform: translateX(3px);
}

/**
 * NAV ICON
 * IcÃ´ne de l'Ã©lÃ©ment de navigation
 */
.nav-icon {
    font-size: 1.3rem;
    margin-right: 0.75rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * NAV TEXT
 * Texte de l'Ã©lÃ©ment de navigation
 */
.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/**
 * NAV DIVIDER
 * SÃ©parateur entre les groupes de navigation
 */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 1rem;
}

/**
 * NAV ADMIN
 * Style spÃ©cial pour les liens d'administration
 */
.nav-item.nav-admin {
    background: linear-gradient(135deg, rgba(255, 111, 177, 0.1) 0%, rgba(165, 107, 255, 0.1) 100%);
    border: 1px solid var(--primary);
}

.nav-item.nav-admin:hover {
    background: linear-gradient(135deg, rgba(255, 111, 177, 0.2) 0%, rgba(165, 107, 255, 0.2) 100%);
    border-color: var(--primary-light);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .sidebar-left {
        transform: translateX(-260px);
    }
    
    .sidebar-left:not(.collapsed) {
        transform: translateX(0);
    }
    
    .nav-item {
        padding: 0.875rem 1rem;
    }
    
    .nav-icon {
        font-size: 1.4rem;
    }
    
    .nav-text {
        font-size: 1rem;
    }
}


/* ========================================
   LISTE DES STREAMERS
   ======================================== */

/**
 * STREAMERS LIST SECTION
 * Section contenant la liste des streamers
 */
.streamers-list {
    margin-top: 3rem;
    padding: 2rem 0;
}

/**
 * STREAMERS SECTION
 * Section individuelle (en ligne / hors ligne)
 */
.streamers-section {
    margin-bottom: 3rem;
}

.streamers-section:last-child {
    margin-bottom: 0;
}

.streamers-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/**
 * STREAMERS GRID
 * Grille responsive pour afficher les cartes de streamers
 */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0;
    width: 100%;
}

/**
 * STREAMER MINI CARD
 * Carte individuelle de streamer
 */
.streamer-mini-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.streamer-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--primary);
}

.streamer-mini-card.live {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

/**
 * CARD BACKGROUND
 * Image de fond de la carte (avatar du streamer)
 */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(8px);
    transition: all 0.3s ease;
}

.streamer-mini-card:hover .card-bg {
    opacity: 0.6;
    filter: blur(6px);
    transform: scale(1.1);
}

/**
 * CARD CONTENT
 * Contenu de la carte (nom, statut, infos)
 */
.card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
    justify-content: center;
}

.card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

/**
 * BADGES
 * Badges de statut (live, offline, mature)
 */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 0, 0, 0.7);
    }
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mature-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/**
 * CARD INFO
 * Informations du stream (viewers, catÃ©gorie)
 */
.card-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.viewers {
    font-weight: 600;
    color: var(--primary);
}

.category {
    color: var(--text);
}

/* Responsive */
@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .card-content {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .streamers-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   BOUTON DE CONNEXION TWITCH
   ======================================== */

/**
 * BTN LOGIN
 * Bouton de connexion Twitch dans le header
 */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(145, 70, 255, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #772CE8 0%, #5c16c5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 70, 255, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login::before {
    content: '📺';
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-login {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn-login {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-login::before {
        font-size: 1rem;
    }
}


/* ========================================
   HEADER ACTIONS
   ======================================== */

/**
 * HEADER ACTIONS
 * Conteneur des actions du header (langue, accessibilité, connexion)
 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1000;
    min-height: 44px;
}

/* S'assurer que tous les Ã©lÃ©ments sont cliquables */
.header-actions > * {
    position: relative;
    z-index: 1001;
}

.btn-login {
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

/* Indicateur de live */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid #b91c1c;
    border-radius: 20px;
    animation: pulse-live 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: blink-live 1.5s ease-in-out infinite;
}

.live-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 25px rgba(239, 68, 68, 0.8);
    }
}

@keyframes blink-live {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}


/* ========================================
   MAIN CONTENT
   ======================================== */

/**
 * MAIN CONTENT
 * Contenu principal de la page
 */
.main-content {
    margin-left: 260px;
    margin-right: 300px;
    padding: 2rem;
    padding-bottom: 280px; /* Espace pour le footer fixe */
    min-height: calc(100vh - 70px);
    /*width: calc(100% - 560px);*/
}

/* Quand les sidebars sont rÃ©tractÃ©es */
.sidebar-left.collapsed ~ .main-content {
    margin-left: 0;
    width: calc(100% - 300px);
}

.sidebar-right.collapsed ~ .main-content {
    margin-right: 0;
    width: calc(100% - 260px);
}

.sidebar-left.collapsed ~ .sidebar-right.collapsed ~ .main-content {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 1400px) {
    .main-content {
        margin-right: 0;
        width: calc(100% - 260px);
    }
    
    .sidebar-right {
        transform: translateX(300px);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        padding: 1.5rem 1rem;
        padding-bottom: 280px; /* Espace pour le footer fixe */
    }
}


/* ========================================
   SECTIONS STREAMERS
   ======================================== */

/**
 * STREAMERS LIST
 * Conteneur principal des sections streamers
 */
.streamers-list {
    margin-top: 3rem;
    padding: 2rem 0;
}

/**
 * STREAMERS SECTION
 * Section individuelle (en ligne / hors ligne)
 */
.streamers-section {
    margin-bottom: 3rem;
}

.streamers-section:last-child {
    margin-bottom: 0;
}

.streamers-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/**
 * STREAMERS GRID
 * Grille responsive pour afficher les cartes
 */
.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0;
    width: 100%;
}

/**
 * STREAMER CARD
 * Carte individuelle de streamer
 */
.streamer-mini-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.streamer-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--primary);
}

.streamer-mini-card.live {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: blur(8px);
    transition: all 0.3s ease;
}

.streamer-mini-card:hover .card-bg {
    opacity: 0.6;
    filter: blur(6px);
    transform: scale(1.1);
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
    justify-content: center;
}

.card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.card-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.viewers {
    font-weight: 600;
    color: var(--primary);
}

.category {
    color: var(--text);
}

/* Badges */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 0, 0, 0.7);
    }
}

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.mature-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    background: rgba(220, 20, 60, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .card-content {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .card-content h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .streamers-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   LISTE DES STREAMERS - GRILLE
   ======================================== */

.streamers-list {
    width: 100%;
    margin-top: 2rem;
}

.streamers-section {
    margin-bottom: 3rem;
}

.streamers-section h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.streamer-mini-card {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.streamer-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--primary);
}

.streamer-mini-card.live {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: blur(8px);
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 200px;
    justify-content: center;
}

.card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem 0;
}

.card-content p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.live-badge {
    display: inline-flex;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.offline-badge {
    display: inline-flex;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.viewers {
    color: var(--primary);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1400px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 1200px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .streamers-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   CARROUSEL DE CLIPS
   ======================================== */

/**
 * CLIPS CAROUSEL CONTAINER
 * Conteneur principal du carrousel de clips
 * Visible uniquement en mode clips (quand aucun streamer n'est en ligne)
 */
.clips-carousel-container {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 15px var(--shadow);
}

.clips-carousel-container h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

/**
 * CLIPS CAROUSEL
 * Conteneur flex avec scroll horizontal pour les miniatures
 */
.clips-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0;
    /* Scrollbar personnalisÃ©e */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-card);
}

/* Scrollbar pour Webkit (Chrome, Safari, Edge) */
.clips-carousel::-webkit-scrollbar {
    height: 8px;
}

.clips-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.clips-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.clips-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/**
 * CLIP THUMBNAIL
 * Miniature individuelle de clip dans le carrousel
 */
.clip-thumbnail {
    flex: 0 0 200px;
    min-width: 200px;
    height: 150px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.clip-thumbnail:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--primary);
}

.clip-thumbnail.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow);
    transform: scale(1.05);
}

.clip-thumbnail:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/**
 * CLIP THUMBNAIL IMAGE
 * Image de prÃ©visualisation du clip
 */
.clip-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clip-thumbnail:hover img {
    transform: scale(1.1);
}

/**
 * CLIP INFO
 * Informations du clip (titre, crÃ©ateur, vues)
 * AffichÃ©es en overlay sur l'image
 */
.clip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: none;
}

.clip-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.clip-creator {
    font-size: 0.75rem;
    color: var(--primary-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

.clip-views {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
}

/**
 * PLAYING INDICATOR
 * Indicateur visuel du clip en cours de lecture
 */
.playing-indicator {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 111, 177, 0.6);
    animation: pulse-playing 1.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes pulse-playing {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 111, 177, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 111, 177, 0.9);
        transform: scale(1.05);
    }
}

/**
 * RESPONSIVE - CARROUSEL DE CLIPS
 */
@media (max-width: 768px) {
    .clips-carousel-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .clips-carousel-container h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .clip-thumbnail {
        flex: 0 0 160px;
        min-width: 160px;
        height: 120px;
    }
    
    .clip-info {
        padding: 0.5rem;
    }
    
    .clip-title {
        font-size: 0.75rem;
    }
    
    .clip-creator {
        font-size: 0.7rem;
    }
    
    .clip-views {
        font-size: 0.65rem;
    }
    
    .playing-indicator {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .clips-carousel-container {
        padding: 0.75rem;
    }
    
    .clip-thumbnail {
        flex: 0 0 140px;
        min-width: 140px;
        height: 105px;
    }
}

/**
 * TOUCH SUPPORT
 * AmÃ©lioration de l'expÃ©rience tactile sur mobile
 */
@media (hover: none) and (pointer: coarse) {
    /* Augmente la taille des cibles tactiles */
    .clip-thumbnail {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Active le momentum scrolling sur iOS */
    .clips-carousel {
        -webkit-overflow-scrolling: touch;
    }
    
    /* DÃ©sactive le hover sur tactile */
    .clip-thumbnail:hover {
        transform: none;
    }
    
    .clip-thumbnail:hover img {
        transform: none;
    }
}


/* ========================================
   PAGE INSCRIPTION - CONNEXION TWITCH
   ======================================== */

/**
 * ALERT TWITCH LOGIN REQUIRED
 * Message affichÃ© quand l'utilisateur n'est pas connectÃ©
 */
.twitch-login-required {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(145, 70, 255, 0.1) 100%);
    border: 2px solid #9146FF;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.2);
}

.twitch-login-required .alert-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.twitch-login-required .alert-content {
    flex: 1;
}

.twitch-login-required h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem 0;
}

.twitch-login-required p {
    color: var(--text-muted);
    margin: 0.5rem 0;
    line-height: 1.6;
}

/**
 * BTN TWITCH LOGIN
 * Bouton de connexion Twitch stylisÃ©
 */
.btn-twitch-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 70, 255, 0.4);
    margin-top: 1.5rem;
}

.btn-twitch-login:hover {
    background: linear-gradient(135deg, #772CE8 0%, #5c16c5 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.6);
}

.btn-twitch-login:active {
    transform: translateY(-1px);
}

.btn-twitch-login .twitch-icon {
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .twitch-login-required {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .twitch-login-required .alert-icon {
        font-size: 2.5rem;
    }
    
    .twitch-login-required h3 {
        font-size: 1.3rem;
    }
    
    .btn-twitch-login {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .twitch-login-required {
        padding: 1rem;
    }
    
    .btn-twitch-login {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-twitch-login .twitch-icon {
        font-size: 1.25rem;
    }
}

/**
 * ALERT INFO
 * Style gÃ©nÃ©ral pour les alertes informatives
 */
.alert-info {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(145, 70, 255, 0.05) 100%);
    border: 2px solid rgba(145, 70, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}


/* ========================================
   PAGE DONS - TIMER Ã‰VÃ‰NEMENT
   ======================================== */

/**
 * EVENT TIMER
 * Compte Ã  rebours pour l'Ã©vÃ©nement
 */
.event-timer {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 111, 177, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.timer-content {
    text-align: center;
}

.timer-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.time-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    line-height: 1;
    text-shadow: 0 2px 10px var(--glow);
}

.time-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-separator {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0.5rem;
}

.timer-message {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1rem 0 0 0;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .event-timer {
        padding: 1.5rem;
    }
    
    .timer-content h3 {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .time-separator {
        font-size: 1.8rem;
        margin: 0 0.25rem;
    }
}

@media (max-width: 480px) {
    .countdown {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .time-unit {
        min-width: 70px;
    }
    
    .time-separator {
        display: none;
    }
    
    .time-separator:nth-child(3) {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0;
    }
}

/**
 * DONATIONS LIST
 * Liste des dons
 */
.donations-list {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.donations-list table {
    width: 100%;
    border-collapse: collapse;
}

.donations-list th {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.donations-list td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.donations-list tr:last-child td {
    border-bottom: none;
}

.donations-list .amount {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.donate-action {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive table */
@media (max-width: 768px) {
    .donations-list table {
        font-size: 0.9rem;
    }
    
    .donations-list th,
    .donations-list td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .donations-list table,
    .donations-list thead,
    .donations-list tbody,
    .donations-list th,
    .donations-list td,
    .donations-list tr {
        display: block;
    }
    
    .donations-list thead tr {
        display: none;
    }
    
    .donations-list tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0.5rem;
    }
    
    .donations-list td {
        text-align: left;
        padding: 0.5rem;
        border: none;
    }
    
    .donations-list td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* ========================================
   STYLES POUR CONTRÃ”LES DÃ‰SACTIVÃ‰S
   ======================================== */

/* ContrÃ´les dÃ©sactivÃ©s avec opacitÃ© rÃ©duite */
.control-group:has(input:disabled),
.control-group:has(select:disabled) {
    transition: opacity 0.3s ease;
}

/* Inputs et selects dÃ©sactivÃ©s */
input:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Checkbox dÃ©sactivÃ©e */
input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

input[type="checkbox"]:disabled + span {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Label de checkbox dÃ©sactivÃ©e */
.checkbox-label:has(input:disabled) {
    cursor: not-allowed;
}

/* Hint pour les contrÃ´les dÃ©sactivÃ©s */
.control-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* ========================================
   MENU UTILISATEUR DROPDOWN
   ======================================== */

/* Dropdown cachÃ© par dÃ©faut */
.user-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 280px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Dropdown ouvert */
.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header du dropdown */
.dropdown-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-avatar-large-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dropdown-username {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.dropdown-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Menu items */
.dropdown-menu {
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 111, 177, 0.1);
    color: var(--primary);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.item-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Bouton utilisateur actif */
.user-profile-btn.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
}

.user-profile-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .user-dropdown {
        min-width: 260px;
        right: -10px;
    }
    
    .dropdown-header {
        padding: 1rem;
    }
    
    .user-avatar-large,
    .user-avatar-large-fallback {
        width: 40px;
        height: 40px;
    }
    
    .dropdown-username {
        font-size: 0.9rem;
    }
    
    .dropdown-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        min-width: 240px;
        right: -20px;
    }
}

/* ========================================
   FOOTER SOCIAL LINKS
   ======================================== */

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}


.footer-social-nav {
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /*margin: 1rem 0;*/
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link-nav {
    /* display: inline-flex; */
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: rgba(255, 111, 177, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 177, 0.2);
}

.social-link-nav:hover {
    background: rgba(255, 111, 177, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 111, 177, 0.2);
}

.social-icon {
    /* font-size: 1.5rem; */
}

.social-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-donate-footer {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    font-weight: 600;
}

.btn-donate-footer:hover {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 111, 177, 0.4);
}

@media (max-width: 768px) {
    .footer-social {
        gap: 0.5rem;
    }
	
    .footer-social-nav {
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
    
    .social-link-nav {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
    }
    
    .social-icon {
        font-size: 1.2rem;
    }
    
    .social-text {
        font-size: 0.8rem;
    }
}


/* ========================================
   STYLES GLOBAUX POUR LES LIENS
   AmÃ©liore la visibilitÃ© des liens dans tout le site
   ======================================== */

/* Liens dans le contenu principal */
.main-content a:not(.btn):not(.nav-item):not(.card):not([class*="btn-"]),
.faq-answer a,
.content-section a:not(.btn):not([class*="btn-"]),
p a:not(.btn):not([class*="btn-"]),
.alert a:not(.btn):not([class*="btn-"]) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 111, 177, 0.4);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.main-content a:not(.btn):not(.nav-item):not(.card):not([class*="btn-"]):hover,
.faq-answer a:hover,
.content-section a:not(.btn):not([class*="btn-"]):hover,
p a:not(.btn):not([class*="btn-"]):hover,
.alert a:not(.btn):not([class*="btn-"]):hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
    text-shadow: 0 0 8px rgba(165, 107, 255, 0.5);
}

/* Liens avec classe spÃ©cifique pour les boutons de donation, etc. */
a.btn-donation,
a[class*="btn-"] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 111, 177, 0.3);
}

a.btn-donation:hover,
a[class*="btn-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(165, 107, 255, 0.5);
    text-decoration: none !important;
}

/* Liens externes - ajoute une icÃ´ne */
a[href^="http"]:not([class*="btn-"]):not(.nav-item):not(.card)::after {
    content: " ↗";
    font-size: 0.85em;
    opacity: 0.7;
}

/* Liens visitÃ©s - lÃ©gÃ¨rement diffÃ©rents */
.main-content a:visited:not(.btn):not(.nav-item):not(.card):not([class*="btn-"]),
.faq-answer a:visited {
    color: #c084fc;
}


/* ========================================
   LIENS DU FOOTER
   AmÃ©liore la visibilitÃ© des liens lÃ©gaux dans le footer
   ======================================== */

footer a,
.main-footer a,
.footer-content a {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

footer a::after,
.main-footer a::after,
.footer-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

footer a:hover,
.main-footer a:hover,
.footer-content a:hover {
    color: var(--accent) !important;
    text-shadow: 0 0 8px rgba(165, 107, 255, 0.5);
}

footer a:hover::after,
.main-footer a:hover::after,
.footer-content a:hover::after {
    width: 100%;
}

/* SÃ©parateurs entre les liens du footer */
footer a + a::before,
.footer-content a + a::before {
    content: "•";
    margin: 0 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
}
