/* ========================================
   RESPONSIVE MOBILE - L'Envol des Gamers
   ======================================== */

/**
 * Ce fichier contient tous les styles responsive pour mobile
 * Breakpoints :
 * - 1200px : Tablette landscape
 * - 992px  : Tablette portrait
 * - 768px  : Mobile landscape
 * - 480px  : Mobile portrait
 */

/* ========================================
   FIX GLOBAL - TOUS ÉCRANS
   ======================================== */

/* Empêche le débordement horizontal */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    padding-top: 70px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* Tous les éléments respectent la largeur */
* {
    box-sizing: border-box;
}

/* Conteneurs principaux */
.layout-container,
.main-content,
section {
    max-width: 100%;
}

/* Fix overflow pour éviter le décalage horizontal sur mobile */
@media (max-width: 992px) {
    .event-banner,
    .main-player,
    .streamers-list,
    .player-wrapper,
    .player-container,
    .player-info {
        overflow: hidden !important;
        max-width: 100% !important;
    }
}

/* Images et médias responsives */
img,
video,
iframe {
    max-width: 100%;
    /*height: auto;*/
}

/* Ajuste le padding selon la taille du header */
.main-content {
    padding-top: 1rem;
}

/* ========================================
   TABLETTE LANDSCAPE (< 1200px)
   ======================================== */
@media (max-width: 1200px) {
    /* Contenu principal */
    .main-content {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
    
    /* Grilles de streamers */
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 1.25rem !important;
    }
    
    /* Bannière événement */
    .event-banner {
        padding: 2rem;
    }
}

/* ========================================
   TABLETTE PORTRAIT (< 992px)
   ======================================== */
@media (max-width: 992px) {
    /* FORCER LE MENU À ÊTRE CACHÉ AU CHARGEMENT */
    .layout-container {
        position: relative;
    }
    
    /* Header */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        background: transparent;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* Animation du burger en X quand actif */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* CACHER SEULEMENT LE BOUTON FLOTTANT GAUCHE SUR MOBILE (on a le burger) */
    .sidebar-toggle-left,
    #toggle-left {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* GARDER LE BOUTON FLOTTANT DROIT VISIBLE */
    .sidebar-toggle-right,
    #toggle-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Sidebar gauche CACHÉE par défaut sur mobile */
    .sidebar-left {
        position: fixed !important;
        left: 0 !important;
        top: 60px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 999 !important;
        height: calc(100vh - 60px) !important;
        width: 260px !important;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Menu ouvert via le burger - PRIORITÉ ABSOLUE */
    .sidebar-left.active {
        transform: translateX(0) !important;
    }
    
    /* Menu fermé - PRIORITÉ ABSOLUE */
    .sidebar-left:not(.active),
    .sidebar-left.collapsed {
        transform: translateX(-100%) !important;
    }
    
    /* Overlay pour fermer le menu en cliquant à côté */
    .sidebar-left.active::after {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
    
    /* Animation fluide */
    .sidebar-left {
        will-change: transform;
    }
    
    /* Empêcher le scroll du body quand le menu est ouvert */
    body:has(.sidebar-left.active) {
        overflow: hidden;
    }
    
    /* SIDEBAR DROITE FERMÉE PAR DÉFAUT (mais peut s'ouvrir) */
    .sidebar-right {
        position: fixed !important;
        right: 0 !important;
        top: 60px !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 999 !important; /* En dessous du bouton toggle */
        height: calc(100vh - 60px) !important;
        width: 280px !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto !important;
    }
    
    /* Sidebar droite ouverte */
    .sidebar-right:not(.collapsed) {
        transform: translateX(0) !important;
    }
    
    /* Sidebar droite fermée */
    .sidebar-right.collapsed {
        transform: translateX(100%) !important;
    }
    
    /* Overlay quand le panel droit est ouvert */
    .sidebar-right:not(.collapsed)::before {
        content: '';
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        backdrop-filter: blur(2px);
    }
    
    /* Contenu principal pleine largeur - AUCUNE MARGE */
    .main-content {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem;
        box-sizing: border-box !important;
    }
    
    /* Layout container sans sidebars */
    .layout-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Grilles de streamers */
    .streamers-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 1rem !important;
    }
    
    /* Contrôles du lecteur */
    .player-controls-wrapper {
        position: relative;
    }
    
    .player-controls {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* ========================================
   MOBILE LANDSCAPE (< 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Ajuste le padding du body pour le header plus petit */
    body {
        padding-top: 60px;
    }
    
    /* Header optimisé */
    .main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
    }
    
    .header-container {
        padding: 0.5rem 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }
    
    .logo h1 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo h1::before {
        font-size: 0.9rem;
    }
    
    /* Actions du header - Compactes */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        flex-shrink: 0;
    }
    
    /* Sélecteur de langue optimisé pour mobile */
    .lang-switcher {
        position: relative;
        z-index: 1001;
    }
    
    .lang-switcher-btn {
        padding: 0.4rem 0.6rem;
        min-width: auto;
        gap: 0.25rem;
        font-size: 0.8rem;
        border-radius: 20px;
    }
    
    .lang-switcher-btn .flag-img {
        width: 20px;
        height: 14px;
        flex-shrink: 0;
    }
    
    .lang-switcher-btn .lang-code {
        font-size: 0.75rem;
        display: inline-block;
    }
    
    .lang-switcher-btn .arrow {
        font-size: 0.7rem;
    }
    
    /* Dropdown en plein écran sur mobile */
    .lang-dropdown {
        position: fixed !important;
        top: 60px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100vh - 70px) !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Boutons de langue plus grands sur mobile */
    .lang-dropdown .lang-btn {
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .lang-dropdown .lang-btn:last-child {
        border-bottom: none;
    }
    
    .lang-dropdown .lang-btn .flag-img {
        width: 28px !important;
        height: 20px !important;
    }
    
    /* Overlay pour fermer le dropdown */
    .lang-switcher.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Boutons d'icônes */
    .icon-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        padding: 0;
        flex-shrink: 0;
    }
    
    /* Bouton login Twitch optimisé */
    .btn-login {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: 20px;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        min-height: 36px;
        line-height: 1;
    }
    
    /* Icône Twitch dans le bouton */
    .btn-login::before {
        content: '📺';
        font-size: 0.9rem;
    }
    
    /* Menu utilisateur */
    .user-menu {
        position: relative;
    }
    
    .user-profile-btn {
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-name {
        display: none; /* Cache le nom sur mobile */
    }
    
    .user-dropdown {
        position: fixed;
        top: 60px;
        right: 0;
        left: auto;
        width: 280px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    /* Layout container */
    .layout-container {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    
    /* Contenu principal */
    .main-content {
        padding: 1rem 0.75rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Sections */
    section {
        margin-bottom: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Bannière événement */
    .event-banner {
        padding: 1.25rem;
        margin: 0 0 1.5rem 0;
        border-radius: 12px;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
    
    .event-logo {
        max-width: 150px;
        height: auto;
    }
    
    .event-info {
        width: 100%;
    }
    
    .event-description {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }
    
    /* Section lecteur */
    .main-player {
        margin: 0 0 1.5rem 0;
        padding: 0;
    }
    
    .player-controls-wrapper {
        position: relative;
        margin-bottom: 1rem;
    }
    
    /* Bouton options du lecteur */
    .player-settings-toggle {
        width: 100%;
        margin: 0 0 0.75rem 0;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Lecteur vidéo */
    .player-wrapper {
        width: 100%;
        margin: 0;
    }
    
    .player-container {
        border-radius: 0;
        width: 100%;
        position: relative;
        padding-bottom: 56.25%; /* Ratio 16:9 */
        height: 0;
        overflow: hidden;
    }
    
    .player-container iframe,
    .player-container #twitch-embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Indicateur LIVE */
    .live-indicator-overlay {
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 10;
    }
    
    /* Contrôles du lecteur - Modal bottom sheet */
    .player-controls {
        position: fixed;
        top: auto;
        bottom: -100%;
        left: 0;
        right: 0;
        max-height: 80vh;
        border-radius: 20px 20px 0 0;
        z-index: 1001;
        transition: bottom 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .player-controls.open {
        bottom: 0;
    }
    
    /* Overlay pour fermer les contrôles */
    .player-controls.open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
    }
    
    .controls-header {
        padding: 1rem;
        border-bottom: 2px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        background: var(--bg-card);
        z-index: 10;
    }
    
    .controls-header h4 {
        margin: 0;
        font-size: 1.1rem;
    }
    
    .close-controls {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: var(--text);
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .control-section {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .control-section:last-child {
        border-bottom: none;
    }
    
    .control-section h5 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .control-group {
        margin-bottom: 0.75rem;
    }
    
    .control-group label {
        font-size: 0.9rem;
    }
    
    .control-group select,
    .control-group input {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        cursor: pointer;
    }
    
    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    /* Info du stream */
    .player-info {
        padding: 1rem 0.75rem;
    }
    
    .stream-details {
        font-size: 0.9rem;
    }
    
    /* Section streamers */
    .streamers-list {
        padding: 0 0.75rem;
    }
    
    .streamers-list h3 {
        margin-bottom: 1rem;
        padding-left: 0;
    }
    
    /* Grilles de streamers - 2 colonnes */
    .streamers-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100%;
    }
    
    .streamer-mini-card {
        height: 160px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        transition: transform 0.2s ease;
    }
    
    .streamer-mini-card:active {
        transform: scale(0.98);
    }
    
    .card-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-size: cover;
        background-position: center;
        filter: brightness(0.7);
    }
    
    .card-content {
        position: relative;
        z-index: 1;
        padding: 0.75rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
    
    .card-content h4 {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .live-badge,
    .offline-badge {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.7rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .live-badge {
        background: rgba(255, 0, 0, 0.9);
        color: white;
    }
    
    .offline-badge {
        background: rgba(128, 128, 128, 0.8);
        color: white;
    }
    
    .viewers,
    .category {
        font-size: 0.75rem;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        margin: 0.15rem 0;
    }
    
    /* Carrousel de clips */
    .clips-carousel-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .clips-carousel {
        gap: 0.75rem;
    }
    
    .clip-thumbnail {
        flex: 0 0 150px;
        min-width: 150px;
    }
    
    /* Timer */
    .event-timer {
        padding: 1.5rem;
    }
    
    .timer-content h3 {
        font-size: 1.25rem;
    }
    
    .countdown {
        gap: 0.75rem;
    }
    
    .time-unit {
        min-width: 60px;
    }
    
    .time-value {
        font-size: 1.75rem;
    }
    
    .time-label {
        font-size: 0.75rem;
    }
    
    /* Tables */
    .donations-list table {
        font-size: 0.85rem;
    }
    
    .donations-list th,
    .donations-list td {
        padding: 0.5rem;
    }
}

/* ========================================
   MOBILE PORTRAIT (< 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Ajuste le padding du body pour le header encore plus petit */
    body {
        padding-top: 55px; /* Header minimal sur petit mobile */
    }
    
    /* Header */
    .header-container {
        padding: 0.5rem;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .logo h1::before {
        font-size: 0.9rem;
    }
    
    /* Actions du header */
    .header-actions {
        gap: 0.25rem;
    }
    
    /* Bouton login ultra compact */
    .btn-login {
        padding: 0.35rem 0.6rem !important;
        font-size: 0 !important;
        min-height: 32px !important;
        border-radius: 16px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Afficher seulement l'icône et "Twitch" */
    .btn-login::before {
        content: '📺 Twitch' !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    .lang-btn {
        padding: 0.25rem 0.4rem;
    }
    
    .flag-emoji {
        font-size: 0.9rem;
    }
    
    .lang-code {
        display: none; /* Cache le code langue sur très petit écran */
    }
    
    /* Boutons */
    .btn-login {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-left: 0.25rem;
    }
    
    /* Contenu principal */
    .main-content {
        padding: 0.75rem 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    h3 {
        font-size: 1.05rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Bannière événement */
    .event-banner {
        padding: 1rem;
        margin: 0 0 1rem 0;
        border-radius: 10px;
    }
    
    .event-logo {
        max-width: 120px;
    }
    
    .event-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Section lecteur */
    .main-player {
        margin: 0 0 1rem 0;
    }
    
    .player-settings-toggle {
        width: calc(100% - 1rem);
        margin: 0 0.5rem 0.5rem 0.5rem;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    /* Lecteur vidéo - Ratio 16:9 responsive */
    .player-container {
        padding-bottom: 56.25%;
    }
    
    /* Contrôles du lecteur */
    .player-settings-toggle {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .settings-icon {
        font-size: 1rem;
    }
    
    .control-section {
        padding: 0.75rem;
    }
    
    .control-group {
        margin-bottom: 0.75rem;
    }
    
    .control-group label {
        font-size: 0.85rem;
    }
    
    .control-group input,
    .control-group select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    /* Grilles de streamers - 2 colonnes même sur petit mobile */
    .streamers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .streamer-mini-card {
        height: 140px;
    }
    
    .card-content {
        padding: 0.6rem;
    }
    
    .card-content h4 {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .live-badge,
    .offline-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .viewers,
    .category {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    /* Carrousel de clips */
    .clips-carousel-container {
        padding: 0.75rem;
    }
    
    .clips-carousel-container h4 {
        font-size: 1rem;
    }
    
    .clip-thumbnail {
        flex: 0 0 120px;
        min-width: 120px;
    }
    
    /* Timer */
    .countdown {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .time-unit {
        min-width: 50px;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    /* Tables - Mode carte sur mobile */
    .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.75rem;
    }
    
    .donations-list td {
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
        position: relative;
        padding-left: 50%;
    }
    
    .donations-list td:last-child {
        border-bottom: none;
    }
    
    .donations-list td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        text-align: left;
        font-weight: bold;
        color: var(--primary);
    }
    
    /* Boutons Twitch */
    .btn-twitch,
    .btn-twitch-login {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Inscription */
    .twitch-login-required {
        padding: 1rem;
        flex-direction: column;
    }
    
    .login-icon {
        font-size: 2rem;
    }
}

/* ========================================
   FOOTER MOBILE
   ======================================== */
@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        margin: 0.5rem 0;
    }
    
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin: 1rem 0;
    }
	
    .footer-social-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .social-link-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer-slogan {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .footer-legal-links .separator {
        display: none;
    }
}

/* ========================================
   SIDEBAR DROITE - FERMÉE PAR DÉFAUT
   ======================================== */
@media (max-width: 992px) {
    /* Sidebar droite fermée par défaut */
    .sidebar-right {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Bouton toggle droite TOUJOURS VISIBLE */
    .sidebar-toggle-right,
    #toggle-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        right: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 1000 !important; /* Au-dessus du panel */
        background: var(--bg-card) !important;
        border: 2px solid var(--border) !important;
        border-radius: 50% !important;
        width: 48px !important;
        height: 48px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Bouton actif (panel ouvert) */
    .sidebar-toggle-right.active,
    #toggle-right.active {
        background: var(--primary) !important;
        border-color: var(--primary) !important;
    }
}

/* ========================================
   AMÉLIORATION TACTILE
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Augmente la taille des cibles tactiles */
    .nav-item,
    .lang-btn,
    .streamer-mini-card,
    .btn,
    .icon-btn,
    button:not(.close-controls),
    a {
        /*min-height: 44px;*/
        min-width: 44px;
    }
    
    /* Supprime les effets hover sur tactile */
    .streamer-mini-card:hover,
    .nav-item:hover,
    .btn:hover,
    .lang-btn:hover {
        transform: none;
        background: inherit;
    }
    
    /* Ajoute un effet au tap */
    .streamer-mini-card:active,
    .nav-item:active,
    .btn:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
    
    /* Améliore le scroll sur mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
}

/* ========================================
   ORIENTATION PAYSAGE SUR MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    /* Réduit les hauteurs pour optimiser l'espace */
    .player-container iframe,
    #twitch-embed {
        /*height: 180px !important;*/
    }
    
    .streamer-mini-card {
        height: 120px;
    }
    
    .event-banner {
        padding: 1rem;
    }
    
    /* Contrôles en overlay compact */
    .player-controls {
        max-height: 50vh;
    }
}
