/* =====================================================
   MODERN HERO SLIDER - VERSION RECONSTRUITE
   ===================================================== */

.modern-hero-slider {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    width: 100%;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

/* Slides du slider */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide.prev {
    transform: translateX(-20px);
    z-index: 1;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.hero-slide.active .hero-image {
    transform: scale(1.01);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.72) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
    z-index: 3;
}

/* Ligne catégorie + date */
.hero-top-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-category {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.35);
}

.hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255, 255, 255, 0.35);
}

.hero-date i {
    font-size: 0.75rem;
    opacity: 0.9;
}

.hero-badges-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-category {
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-content {
    width: 100%;
    transform: translateY(15px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Navigation masquée */
.hero-navigation {
    display: none !important;
}

.hero-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-nav-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-nav-btn:active {
    transform: scale(0.95);
}

/* Indicateurs masqués */
.hero-indicators {
    display: none !important;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-indicator:hover {
    border-color: white;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-slider-container {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 350px;
    }
    
    .hero-overlay {
        padding: 1.25rem;
    }
    
    .hero-category {
        padding: 0.3rem 0.75rem;
        font-size: 0.7rem;
    }
    
    .hero-date {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-navigation {
        padding: 0 0.5rem;
    }
    
    .hero-nav-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 300px;
    }
    
    .hero-overlay {
        padding: 1rem;
    }
    
    .hero-top-meta {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-category {
        padding: 0.25rem 0.6rem;
        font-size: 0.6875rem;
    }
    
    .hero-date {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.6875rem;
    }
    
    .hero-navigation {
        display: none;
    }
}

/* États de chargement */
.hero-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-image.loaded {
    opacity: 1;
}

.hero-slide.active .hero-image {
    opacity: 1;
}

/* Loading spinner */
.hero-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 4;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-image,
    .hero-content {
        transition: none;
    }
    
    .hero-slide.active .hero-image {
        transform: none;
    }
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .modern-hero-slider {
        background: #1a1a1a;
    }
}