/* ======================================================
   global_responsive_animations.css - ENS-NDJ
   Responsive Design CORRIGÉ
   ====================================================== */
   

/* ======================================================
   DESKTOP (≥992px) - Configuration par défaut
   ====================================================== 
@media (min-width: 992px) {
    body {
        display: grid;
        grid-template-columns: var(--sidebar-width) 1fr;
    }
    .left-panel { display: flex; }
    .right-main-content { grid-column: 2; }
    .desktop-header-wrapper { display: block; }
    .mobile-header-wrapper { display: none !important; }
    .mobile-menu { display: none !important; }
}*/

/* ======================================================
   TABLETTE (768px - 991px)
   ====================================================== */
@media (min-width: 768px) and (max-width: 991.98px) {
   
    
    .left-panel { display: none !important; }
    .right-main-content { grid-column: auto !important; }
    
    .desktop-header-wrapper { display: none !important; }
    .mobile-header-wrapper { display: block !important; }
    
    .mobile-nav-bar {
        height: 60px;
        padding: 0 var(--space-md);
    }
    .mobile-logo-img { height: 42px; }
    .mobile-home-btn, .mobile-search-btn, .mobile-menu-toggle { width: 40px; height: 40px; }
    .mobile-lang-btn { padding: 10px 16px; }
    
    .mobile-menu { top: 68px; }
    .mobile-nav-grid { grid-template-columns: repeat(4, 1fr); }
    .mobile-app-grid { grid-template-columns: repeat(5, 1fr); }
    
    main.main-content { padding: var(--space-md); }
    
    .sponsor-banderole { justify-content: center; text-align: center; }
    .footer-info-text { text-align: center; width: 100%; }
    .sponsor-logos { justify-content: center; width: 100%; }
}

/* ======================================================
   MOBILE STANDARD (481px - 767px)
   ====================================================== */
@media (min-width: 481px) and (max-width: 767.98px) {
   
    
    .left-panel { display: none !important; }
    .right-main-content { grid-column: auto !important; }
    
    .desktop-header-wrapper { display: none !important; }
    .mobile-header-wrapper { display: block !important; }
    
    .mobile-nav-bar {
        height: var(--header-height-mobile);
        padding: 0 var(--space-sm);
        gap: 6px;
    }
    .mobile-logo-img { height: 36px; }
    
    .mobile-menu { top: var(--header-height-mobile); }
    .mobile-nav-grid { grid-template-columns: repeat(3, 1fr); }
    .mobile-app-grid { grid-template-columns: repeat(4, 1fr); }
    
    main.main-content { padding: var(--space-md); }
    
    .sponsor-banderole { 
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }
    .footer-info-text { text-align: center; }
    .social-icons-footer { justify-content: center; }
    .sponsor-logos { justify-content: center; }
    .sponsor-logo { height: 40px; }
}

/* ======================================================
   PETIT MOBILE (361px - 480px)
   ====================================================== */
@media (min-width: 361px) and (max-width: 480.98px) {
    
    
    .left-panel { display: none !important; }
    .right-main-content { grid-column: auto !important; width: 100%; }
    
    .desktop-header-wrapper { display: none !important; }
    .mobile-header-wrapper { display: block !important; }
    
    .mobile-nav-bar {
        height: 52px;
        padding: 0 6px;
        gap: 4px;
    }
    .mobile-logo-img { height: 32px; }
    .mobile-home-btn, .mobile-search-btn { width: 32px; height: 32px; font-size: 0.85rem; }
    .mobile-lang-btn { padding: 6px 10px; font-size: 0.8rem; min-width: 40px; }
    .mobile-menu-toggle { width: 32px; height: 32px; }
    .hamburger-icon { width: 16px; }
    
    .mobile-menu { top: 60px; padding: var(--space-sm); }
    .mobile-nav-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .mobile-app-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .mobile-nav-item { padding: var(--space-sm); min-height: 70px; }
    .nav-item-icon { font-size: 1.1rem; }
    .nav-item-label { font-size: 0.65rem; }
    .app-item-icon { width: 38px; height: 38px; font-size: 1rem; }
    .app-item-label { font-size: 0.6rem; }
    
    main.main-content { padding: var(--space-sm); }
    .container-right { padding: 0 var(--space-sm); }
    
    .sponsor-banderole { padding: var(--space-sm); gap: var(--space-sm); flex-direction: column; }
    .sponsor-logo { height: 35px; }
}

/* ======================================================
   TRÈS PETIT MOBILE (≤360px)
   ====================================================== */
@media (max-width: 360px) {
  
    
    .left-panel { display: none !important; }
    .right-main-content { grid-column: auto !important; width: 100%; }
    
    .desktop-header-wrapper { display: none !important; }
    .mobile-header-wrapper { display: block !important; }
    
    .mobile-nav-bar {
        height: 48px;
        padding: 0 4px;
        gap: 3px;
    }
    .mobile-logo-img { height: 28px; }
    .mobile-home-btn, .mobile-search-btn { width: 28px; height: 28px; font-size: 0.75rem; }
    .mobile-lang-btn { padding: 5px 8px; font-size: 0.7rem; min-width: 36px; }
    .mobile-menu-toggle { width: 28px; height: 28px; }
    .hamburger-icon { width: 14px; }
    .hamburger-line { height: 1.5px; }
    
    .mobile-menu { top: 56px; padding: 8px; }
    .mobile-nav-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
    .mobile-app-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .mobile-nav-item { padding: 8px; min-height: 60px; }
    .nav-item-icon { font-size: 1rem; width: 32px; height: 32px; }
    .nav-item-label { font-size: 0.6rem; }
    .app-item-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .app-item-label { font-size: 0.55rem; }
    .mobile-section-title { font-size: 0.65rem; }
    .social-link { width: 36px; height: 36px; font-size: 0.9rem; }
    
    main.main-content { padding: 6px; }
    .container-right { padding: 0 6px; }
    
    .sponsor-banderole { padding: 8px; flex-direction: column; }
    .sponsor-logo { height: 30px; }
    .footer-info-text p { font-size: 0.75rem; }
}

/* ======================================================
   ANIMATIONS
   ====================================================== */
.mobile-menu,
.mobile-nav-item,
.mobile-app-item,
.social-link,
.btn-nav-app,
.btn-auth-desktop {
    transition: all 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Préférences de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ======================================================
   PRINT
   ====================================================== */
@media print {
    .left-panel,
    .mobile-menu,
    .mobile-header-wrapper,
    .desktop-header-wrapper,
    .chad-flag-wrapper,
    .right-fixed-footer {
        display: none !important;
    }
    body { display: block; }
    .right-main-content { grid-column: 1; }
    main.main-content { padding: 0; }
}

/* ======================================================
   corrections_mobile.css - ENS-NDJ
   CORRECTIONS POUR MOBILE - Boutons visibles + Grilles en colonnes
   À CHARGER EN DERNIER (après global_responsive_animations.css)
   ====================================================== */

/* ======================================================
   1. FORCER L'AFFICHAGE DES BOUTONS NAVIGATION
   ====================================================== */

/* Boutons précédent/suivant TOUJOURS visibles */
#btn-back,
#btn-forward,
.nav-ctrl-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Boutons auth TOUJOURS visibles */
.btn-auth,
.btn-login,
.btn-logout {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ======================================================
   2. CORRECTIONS TABLETTE ET MOBILE
   ====================================================== */

@media (max-width: 991.98px) {
    
    /* Groupe de contrôles navigation visible */
    .nav-controls-group {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center !important;
        gap: 0.25rem !important;
    }
    
    /* Boutons navigation compacts */
    .nav-ctrl-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Groupe actions visible */
    .header-actions-group {
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        gap: 0.3rem !important;
    }
    
    /* Boutons auth compacts */
    .btn-auth {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Recherche toggle visible */
    .search-toggle-btn {
        display: flex !important;
        visibility: visible !important;
    }
}

/* ======================================================
   3. ACTUALITÉS EN COLONNES SUR MOBILE
   ====================================================== */

@media (max-width: 991.98px) {
    
    /* Grille news en colonnes */
    .news-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .news-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    /* Grille info en colonnes */
    .info-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .info-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    
    /* Cards news */
    .news-card {
        width: 100% !important;
        height: 180px !important;
    }
    
    /* Info columns */
    .info-col {
        width: 100% !important;
    }
}

@media (max-width: 767.98px) {
    .news-card {
        height: 160px !important;
    }
    
    .news-excerpt {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    body {
        display: block;
    }

    .left-panel {
        display: none;
    }

    .right-main-content {
        grid-column: auto;
    }
}


/* ======================================================
   4. DEBUG - BORDURE VISIBLE (SUPPRIMER EN PRODUCTION)
   Décommentez pour vérifier que le CSS est chargé
   ====================================================== */

/*
body {
    border: 5px solid red !important;
}

.nav-ctrl-btn {
    border: 2px solid blue !important;
}

.btn-auth {
    border: 2px solid green !important;
}
*/