/* ===== HIÉRARCHIE Z-INDEX UNIFIÉE ===== */
/* 
HIÉRARCHIE Z-INDEX CAMVOX MEDIA :
- Header/Navigation : 1000
- Menu Mobile : 1001  
- Bannières Publicitaires : 1002
- Dropdowns/Modals : 1003
- Toast Notifications : 9999
*/

/* ===== HEADER MODERNE ===== */

/* Header principal */
.modern-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: visible; /* permettre au dropdown de dépasser le header */
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000 !important; /* NIVEAU 1 : Navigation principale */
}

/* S'assurer que la barre de navigation ne clippe rien */
.modern-header .navbar {
    overflow: visible;
}

/* ===== NAVBAR COMPACTE ===== */
.compact-navbar {
    background: white;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.compact-toggler {
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative;
    background: transparent;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.compact-toggler:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    transform: scale(1.05);
}

/* Logo compact */
.compact-logo {
    text-decoration: none;
    padding: 0;
}

.compact-logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compact-logo .logo-icon {
    width: 45px;
    height: 45px;
    background: #dc2626;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.compact-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.compact-logo .logo-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: 0.5px;
}

.compact-logo .logo-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
    letter-spacing: 1px;
}

/* Navigation links compactes */
.compact-nav-link {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #374151 !important;
    text-decoration: none;
}

.compact-nav-link:hover,
.compact-nav-link.active {
    color: #dc2626 !important;
    background: rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.compact-nav-link .nav-text {
    font-weight: 500;
}

/* Menu utilisateur compact */
.compact-user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem !important;
    border-radius: 20px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    color: #374151 !important;
    position: relative;
}

.compact-user-menu:hover {
    background: rgba(220, 38, 38, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.compact-user-menu .user-avatar {
    width: 32px;
    height: 32px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.compact-user-menu .user-name {
    font-weight: 500;
    color: #374151;
}

.compact-user-menu .dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: #6b7280;
}

.compact-user-menu[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Liens d'authentification compactes */
.compact-auth-link {
    color: #374151 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.compact-auth-link:hover {
    color: #dc2626 !important;
    transform: translateY(-1px);
}

.compact-signup-btn {
    background: #dc2626;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
}

.compact-signup-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    color: white;
}

/* ===== BREAKING NEWS TOPBAR ===== */
.breaking-news-topbar {
    background: transparent;
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: none;
    margin-top: 8px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, height 0.3s ease-in-out, padding 0.3s ease-in-out, margin 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
}

/* Topbar cachée lors du défilement - Supprime complètement l'espace */
.breaking-news-topbar.scrolled {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

/* Ajustements quand la topbar est cachée */
body.topbar-hidden .modern-header .main-navbar {
    margin-top: 0;
    padding-top: 0;
}

/* Supprimer complètement l'espace de la topbar quand cachée */
body.topbar-hidden .modern-header {
    padding-top: 0;
}

/* Animation fluide pour la navbar principale */
.modern-header .main-navbar {
    transition: all 0.3s ease-in-out;
}

/* Réduction des espaces des éléments de la navbar */
.modern-header .main-navbar .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.modern-header .main-navbar .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
}

.modern-header .main-navbar .navbar-left,
.modern-header .main-navbar .navbar-right {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajustement du contenu principal pour éviter le chevauchement avec la navbar sticky */
main {
    padding-top: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Calculer la hauteur de la navbar et ajuster le contenu */
.modern-header .main-navbar {
    height: auto;
    min-height: 60px; /* Hauteur minimale pour la navbar */
}

/* Ajustement spécifique pour le contenu principal */
main > *:first-child:not(.category-main-section) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* S'assurer que les bannières publicitaires ne sont pas masquées */
.ad-banner,
.advertisement,
.banner,
.publicity-banner {
    margin-top: 0 !important;
    padding-top: 10px !important;
    position: relative;
    z-index: 2;
}

/* ===== BANNIÈRE PUBLICITAIRE 728x90 - RÈGLES UNIFIÉES ===== */
/* Styles spécifiques pour la bannière publicitaire 728x90 */
.container.mt-1.pt-1 {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    padding-top: 10px !important;
    position: relative !important;
    z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    clear: both !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ajustement pour la bannière publicitaire sur la page d'accueil */
.home-page .container.mt-1.pt-1 {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    padding-top: 10px !important;
}

/* Forcer la visibilité de la première bannière publicitaire */
main .container.mt-1.pt-1:first-child,
body .container.mt-1.pt-1:first-child {
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    padding-top: 10px !important;
    position: relative !important;
    z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both !important;
}

/* Styles pour la carte publicitaire elle-même */
.container.mt-1.pt-1 .card.border-2.border-dashed.border-secondary {
    position: relative !important;
    z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border: 2px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.container.mt-1.pt-1 .card.border-2.border-dashed.border-secondary:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15) !important;
}

/* Badge publicité */
.container.mt-1.pt-1 .badge.bg-primary.position-absolute {
    z-index: 1003 !important; /* NIVEAU 4 : Badges et éléments flottants */
    font-size: 0.75rem !important;
    padding: 0.25rem 0.5rem !important;
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===== RESPONSIVE POUR BANNIÈRE PUBLICITAIRE ===== */
@media (max-width: 768px) {
    .container.mt-1.pt-1 {
        margin-top: 20px !important;
        margin-bottom: 8px !important;
        padding-top: 15px !important;
        z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    }
    
    .container.mt-1.pt-1 .card.border-2.border-dashed.border-secondary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    }
}

@media (max-width: 576px) {
    .container.mt-1.pt-1 {
        margin-top: 25px !important;
        margin-bottom: 10px !important;
        padding-top: 20px !important;
        z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    }
    
    .container.mt-1.pt-1 .card.border-2.border-dashed.border-secondary {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        z-index: 1002 !important; /* NIVEAU 3 : Bannières publicitaires */
    }
    
    .container.mt-1.pt-1 .badge.bg-primary.position-absolute {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
        z-index: 1003 !important; /* NIVEAU 4 : Badges et éléments flottants */
    }
}

/* Ajustement pour les sections principales */
.hero-section,
.main-content,
.page-content:not(.category-main-section) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Styles pour quand l'espacement est ajusté dynamiquement */
body.navbar-spacing-adjusted main {
    transition: margin-top 0.3s ease-in-out;
}

/* Ajustements spécifiques pour les bannières publicitaires */
body.navbar-spacing-adjusted .ad-banner,
body.navbar-spacing-adjusted .advertisement,
body.navbar-spacing-adjusted .banner,
body.navbar-spacing-adjusted .publicity-banner {
    margin-top: 0 !important;
    padding-top: 5px !important;
}

/* Ajustements pour les conteneurs principaux */
body.navbar-spacing-adjusted .container,
body.navbar-spacing-adjusted .max-w-7xl,
body.navbar-spacing-adjusted .max-w-6xl {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Styles pour la bannière publicitaire corrigée */
.ad-banner-fixed {
    margin-top: 10px !important;
    margin-bottom: 3px !important;
    padding-top: 5px !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    clear: both !important;
}

/* S'assurer que la bannière est visible quand le script a fonctionné */
body.ad-banner-visible .container.mt-1.pt-1 {
    margin-top: 10px !important;
    margin-bottom: 3px !important;
    padding-top: 5px !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.breaking-news-content {
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    margin: 0;
    min-height: 32px;
    padding: 0;
}

.breaking-news-label {
    display: flex;
    align-items: center;
    background: #dc2626 !important;
    padding: 4px 10px;
    border-radius: 4px;
    color: white !important;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: pulse 2s infinite;
    border: none !important;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.breaking-news-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
    max-width: none;
    display: flex;
    align-items: center;
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.news-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.news-item {
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-item strong {
    color: #dc2626;
    font-weight: 700;
}

/* ===== SÉLECTEUR DE LANGUE DANS LA TOPBAR ===== */
.topbar-language-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding-left: 1rem;
}

.topbar-language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.topbar-language-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.4);
    color: #dc2626;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.topbar-language-btn .flag-icon {
    width: 16px;
    height: 12px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.topbar-language-btn .language-name {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Responsive pour le sélecteur de langue */
@media (max-width: 768px) {
    .topbar-language-selector {
        padding-left: 0.5rem;
    }
    
    .topbar-language-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .topbar-language-btn .language-name {
        display: inline;
        font-weight: 600;
    }
}

@media (max-width: 576px) {
    .topbar-language-selector {
        padding-left: 0.25rem;
    }
    
    .topbar-language-btn {
        padding: 3px 6px;
        font-size: 0.7rem;
        gap: 4px;
    }
    
    .topbar-language-btn .language-name {
        display: inline;
        font-weight: 600;
    }
}

/* ===== DRAWER MOBILE MODERNE ===== */
.modern-drawer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: none;
    width: 320px;
}

.modern-drawer-header {
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.drawer-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.drawer-title-main {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.drawer-title-sub {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

.modern-close-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    position: relative;
}

.close-icon {
    position: relative;
    width: 100%;
    height: 100%;
}

.close-icon span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.close-icon span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modern-close-btn:hover .close-icon span {
    background: #3b82f6;
}

.modern-drawer-body {
    padding: 0;
    background: transparent;
}

/* Barre de recherche */
.drawer-search {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.6);
    z-index: 2;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    padding: 12px 12px 12px 40px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.search-input:focus {
    background: rgba(255,255,255,0.15);
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    color: white;
}

/* Navigation du drawer */
.drawer-nav {
    padding: 1rem 0;
}

.drawer-nav-section {
    margin-bottom: 1.5rem;
}

.drawer-section-title {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-nav-item {
    margin-bottom: 0.25rem;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 1.5rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.drawer-nav-link:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
    transform: translateX(8px);
}

.drawer-nav-link i:first-child {
    width: 20px;
    text-align: center;
    color: #3b82f6;
    font-size: 1rem;
}

.drawer-nav-link span {
    flex: 1;
}

.drawer-nav-link i:last-child {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.drawer-nav-link:hover i:last-child {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Bouton de déconnexion dans le drawer */
.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #dc2626;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

/* Footer du drawer */
.drawer-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.drawer-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.drawer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.drawer-social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* ===== BOUTON MENU NEWSPAPER ===== */
.compact-toggler[aria-expanded="true"] {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    transform: scale(1.1);
}

.modern-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Barre d'information supérieure */
.top-info-bar {
    background: rgba(0,0,0,0.2);
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-items {
    display: flex;
    gap: 1.5rem;
}

.info-item {
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.social-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Navigation principale - Espaces réduits */
.modern-header .navbar {
    padding: 0.5rem 0;
    background: transparent;
}

/* Make only main navbar sticky (header is fixed) - Espaces réduits */
.modern-header .main-navbar {
	position: sticky !important;
	top: 0;
	z-index: 1000; /* NIVEAU 1 : Navigation principale */
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	padding: 0.25rem 0 !important;
	margin: 0 !important;
	min-height: auto !important;
}

/* Logo moderne */
.modern-logo {
    text-decoration: none;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.logo-container:hover .logo-icon::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.logo-container:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 2px;
}

/* Bouton hamburger moderne */
.modern-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    background: transparent;
}

.toggler-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    margin: 6px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.modern-toggler:hover .toggler-line {
    background: #3b82f6;
}

/* Navigation links modernes */
.modern-nav-link {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.9) !important;
}

.modern-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3b82f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav-link:hover,
.modern-nav-link.active {
    color: white !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.modern-nav-link:hover::before,
.modern-nav-link.active::before {
    width: 80%;
}

.nav-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-nav-link:hover .nav-icon {
    transform: scale(1.1);
    color: #3b82f6;
}

.nav-text {
    font-weight: 500;
}

/* Menu utilisateur moderne */
.modern-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    color: white !important;
}

.modern-user-menu:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-name {
    font-weight: 500;
    color: white;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.modern-user-menu[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown moderne */
.modern-dropdown {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    padding: 0.5rem;
    margin-top: 0.5rem;
    z-index: 1003; /* NIVEAU 4 : Dropdowns et éléments flottants */
    position: absolute;
    min-width: 200px;
    right: 0;
    top: 100%;
}

.modern-dropdown-item {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    color: white !important;
    transform: translateX(5px);
}

/* Liens d'authentification */
.modern-auth-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modern-auth-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.modern-signup-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.modern-signup-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .compact-navbar .navbar-collapse {
        background: white;
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .compact-nav-link {
        margin: 0.25rem 0;
        border-radius: 6px;
        color: #374151 !important;
    }
    
    .compact-nav-link:hover {
        background: rgba(220, 38, 38, 0.1);
        color: #dc2626 !important;
    }
}

@media (max-width: 576px) {
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.8rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Responsive breaking news */
    .breaking-news-content {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
        justify-content: flex-start;
        padding: 0;
    }
    
    .breaking-news-label {
        font-size: 0.55rem;
        padding: 2px 6px;
        border-radius: 3px;
    }
    
    .news-item {
        font-size: 0.75rem;
    }
    
    .breaking-news-slider {
        height: 16px;
    }
}

/* ===== STYLES PERSONNALISÉS POUR BOOTSTRAP ===== */

/* Personnalisation des couleurs et gradients */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
}

/* Boutons personnalisés */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cards personnalisées */
.card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

/* Espaces publicitaires */
.ad-space {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ad-space:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

/* Badges personnalisés */
.badge {
    border-radius: 15px;
    font-weight: 600;
}

/* Images avec overlay */
.card-img-overlay {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive personnalisé */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Assurer l'alignement à gauche de la topbar */
    .breaking-news-content {
        justify-content: flex-start;
        padding: 0;
    }
}

@media (max-width: 992px) {
    .breaking-news-content {
        justify-content: flex-start;
        padding: 0;
    }
}

/* Styles pour le contenu des articles */
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.article-content h2 {
    font-size: 1.8rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Pagination personnalisée */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #6b7280;
    font-weight: 500;
}

.pagination .page-link:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Formulaires personnalisés */
.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Loading states */
.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
} 