/* ========================================
   HERO CAROUSEL MODERNE - CSS
   Design moderne sans dépendance Bootstrap
   Compatible avec header-graphiscann-v2.css
   
   ✅ MODIFICATION : Overlay supprimé (ligne 70)
   Version: 1.1 - Sans filtre sombre
   ======================================== */

/* === CONTENEUR PRINCIPAL === */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
    margin: 0;
    padding: 0;
}

/* Slides container */
.hero-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* === SLIDES === */
.hero-carousel__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-carousel__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Slide cliquable quand il y a un lien */
.hero-carousel__slide.has-link {
    cursor: pointer;
}

.hero-carousel__slide.has-link:hover .hero-carousel__image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

/* Image de fond */
.hero-carousel__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* ========================================
   OVERLAY SUPPRIMÉ - Images en pleine luminosité
   ======================================== */
.hero-carousel__overlay {
    display: none;
}

/* === CONTENU === */
.hero-carousel__content {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    text-align: left;
    color: #fff;
    z-index: 2;
    max-width: 600px;
    padding: 0;
}

/* Variante centrée (ajoutez la classe "centered" sur le content) */
.hero-carousel__content.centered {
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Animation du contenu */
.hero-carousel__slide:not(.active) .hero-carousel__content {
    opacity: 0;
}

.hero-carousel__slide:not(.active) .hero-carousel__content:not(.centered) {
    transform: translateY(-50%) translateX(-30px);
}

.hero-carousel__slide:not(.active) .hero-carousel__content.centered {
    transform: translate(-50%, -50%) translateY(30px);
}

.hero-carousel__slide.active .hero-carousel__content {
    opacity: 1;
    transition: all 0.8s ease-in-out 0.3s;
}

.hero-carousel__slide.active .hero-carousel__content:not(.centered) {
    transform: translateY(-50%) translateX(0);
}

.hero-carousel__slide.active .hero-carousel__content.centered {
    transform: translate(-50%, -50%);
}

/* Titre */
.hero-carousel__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.7);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
    display: inline-block;
}

/* Sous-titre */
.hero-carousel__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 5px 0 0 0;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.7);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
    opacity: 0.95;
    line-height: 1.3;
    display: inline-block;
    max-width: 600px;
}

/* Bouton CTA */
.hero-carousel__cta {
    display: inline-block;
    padding: 15px 40px;
    background-color: #c41e3a;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
    border: 2px solid transparent;
}

.hero-carousel__cta:hover {
    background-color: #fff;
    color: #c41e3a;
    border-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.5);
}

/* === NAVIGATION === */

/* Flèches */
.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-carousel__arrow:hover {
    background-color: rgba(196, 30, 58, 0.9);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel__arrow--prev {
    left: 30px;
}

.hero-carousel__arrow--next {
    right: 30px;
}

.hero-carousel__arrow i {
    color: #fff;
    font-size: 1.5rem;
}

/* Dots navigation */
.hero-carousel__dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-carousel__dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-carousel__dot.active {
    background-color: #c41e3a;
    border-color: #fff;
    width: 30px;
    border-radius: 6px;
}

/* === RESPONSIVE === */

/* Tablettes */
@media (max-width: 992px) {
    .hero-carousel {
        height: 500px;
    }
    
    .hero-carousel__content {
        left: 40px;
        max-width: 500px;
    }
    
    .hero-carousel__content:not(:empty) {
        padding: 0;
    }
    
    .hero-carousel__title {
        font-size: 2.8rem;
        padding: 18px 25px;
    }
    
    .hero-carousel__subtitle {
        font-size: 1.3rem;
        padding: 12px 25px;
        max-width: 500px;
    }
    
    .hero-carousel__cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-carousel__arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel__arrow--prev {
        left: 15px;
    }
    
    .hero-carousel__arrow--next {
        right: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
    }
    
    .hero-carousel__content {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .hero-carousel__title {
        font-size: 2rem;
        padding: 15px 20px;
    }
    
    .hero-carousel__subtitle {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    .hero-carousel__cta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .hero-carousel__arrow {
        width: 35px;
        height: 35px;
    }
    
    .hero-carousel__arrow i {
        font-size: 1.2rem;
    }
    
    .hero-carousel__dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-carousel__dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-carousel__dot.active {
        width: 25px;
    }
}

/* Très petits écrans */
@media (max-width: 576px) {
    .hero-carousel {
        height: 350px;
    }
    
    .hero-carousel__content {
        left: 15px;
        right: 15px;
    }
    
    .hero-carousel__title {
        font-size: 1.6rem;
        padding: 12px 15px;
    }
    
    .hero-carousel__subtitle {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    /* Masquer les flèches sur très petits écrans */
    .hero-carousel__arrow {
        display: none;
    }
}

/* === ANIMATIONS === */

/* Animation de chargement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de pulsation pour les dots */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero-carousel__dot.active {
    animation: pulse 2s ease-in-out infinite;
}

/* === ACCESSIBILITÉ === */

/* Focus visible pour la navigation au clavier */
.hero-carousel__arrow:focus,
.hero-carousel__dot:focus {
    outline: 3px solid #c41e3a;
    outline-offset: 3px;
}

/* Mode pause */
.hero-carousel.paused .hero-carousel__slide.active::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 100;
}

/* Preload spinner (optionnel) */
.hero-carousel__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #c41e3a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Masquer le spinner une fois chargé */
.hero-carousel.loaded .hero-carousel__loading {
    display: none;
}
