/* ============================================================================
   AMÉLIORATIONS HERO SECTION ET NAVBAR
   Date : 29 Octobre 2025
   ============================================================================ */

/* ============================================================================
   NAVBAR EN BLEU AVEC TEXTES BLANCS
   ============================================================================ */
.navbar {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%) !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.3) !important;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    color: #ffd60a !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
    color: #ffd60a !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.nav-link.active {
    color: #ffd60a !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Dropdown menu dans la navbar */
.navbar .dropdown-menu {
    background: #3a0ca3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd60a;
}

/* Boutons dans la navbar */
.navbar .btn-warning,
.navbar .btn-primary {
    color: #1a1a2e !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 214, 10, 0.3);
}

.navbar .btn-warning:hover,
.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 10, 0.4);
}

/* ============================================================================
   AMÉLIORATIONS HERO SECTION
   ============================================================================ */
.hero-section-wrapper {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

/* Effet de particules/formes en arrière-plan */
.hero-section-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move-bg 20s linear infinite;
    z-index: 0;
}

@keyframes move-bg {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Overlay gradient pour meilleure lisibilité */
.hero-section-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* S'assurer que le contenu est au-dessus */
.hero-section-wrapper > * {
    position: relative;
    z-index: 2;
}

/* Améliorer l'apparence des publications Hero */
.publications-hero-carousel {
    min-height: 70vh;
}

.publication-hero-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.publication-hero-item:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.publication-hero-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.5s;
}

.publication-hero-item:hover .publication-hero-image {
    filter: brightness(1);
    transform: scale(1.05);
}

.publication-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    color: white;
}

.publication-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.publication-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.publication-hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #ffd60a 0%, #ff9500 100%);
    color: #1a1a2e;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(255, 214, 10, 0.4);
    font-size: 1.1rem;
}

.publication-hero-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 214, 10, 0.6);
    color: #1a1a2e;
}

/* Contrôles du carrousel Hero */
.hero-carousel-control {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.hero-carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-carousel-control i {
    color: white;
    font-size: 1.5rem;
}

/* Indicateurs du carrousel */
.hero-carousel-indicators {
    bottom: 2rem;
}

.hero-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 6px;
    transition: all 0.3s;
}

.hero-carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background: white;
}

/* ============================================================================
   SÉPARATEUR MODERNE
   ============================================================================ */
.section-divider {
    height: 80px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 2px;
}

/* ============================================================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    .hero-section-wrapper {
        min-height: 60vh;
    }
    
    .publication-hero-image {
        height: 60vh;
    }
    
    .publication-hero-content {
        padding: 2rem 1.5rem;
    }
    
    .publication-hero-title {
        font-size: 1.75rem;
    }
    
    .publication-hero-description {
        font-size: 1rem;
    }
    
    .publication-hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel-control i {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .hero-section-wrapper {
        min-height: 50vh;
    }
    
    .publication-hero-image {
        height: 50vh;
    }
    
    .section-divider {
        height: 40px;
    }
}

/* ============================================================================
   FIN DU FICHIER CSS
   ============================================================================ */

