/**
 * Styles pour le slider hero de la page d'accueil
 * Carrousel automatique avec 4 photos phares
 */

/* ============================================
   SLIDER HERO
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: var(--color-bg-light);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ============================================
   SLIDES
   ============================================ */
.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overlay sombre pour améliorer la lisibilité du texte */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(139, 41, 66, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(139, 41, 66, 0.4) 100%
    );
    z-index: 1;
}

/* Contenu texte superposé */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.slide-content .container {
    position: relative;
    z-index: 1;
}

.slide-title {
    font-family: var(--font-headings);
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1rem 0;
    text-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.5), 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.slide-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    margin: 0 0 2rem 0;
    text-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.4);
    line-height: 1.4;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Bouton CTA */
.btn-slider {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 0.25rem 1rem rgba(139, 41, 66, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-slider:hover {
    background: var(--color-accent);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5rem rgba(139, 41, 66, 0.4);
    color: #fff;
}

.btn-slider:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Animation fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   NAVIGATION FLÈCHES
   ============================================ */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(139, 41, 66, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(139, 41, 66, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.slider-prev {
    left: 2rem;
}

.slider-next {
    right: 2rem;
}

/* ============================================
   INDICATEURS (DOTS)
   ============================================ */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    width: 14px;
    height: 14px;
}

.slider-dot:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media screen and (max-width: 1024px) {
    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.25rem;
    }

    .slider-nav {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .slider-prev {
        left: 1.5rem;
    }

    .slider-next {
        right: 1.5rem;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .hero-slider {
        height: 50vh;
        min-height: 400px;
    }

    .slide-content {
        padding: 1.5rem;
    }

    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-slider {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .slider-nav {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1.125rem;
    }

    .slider-prev {
        left: 1rem;
    }

    .slider-next {
        right: 1rem;
    }

    .slider-indicators {
        bottom: 1.5rem;
        gap: 0.5rem;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 12px;
        height: 12px;
    }
}

/* Petit mobile */
@media screen and (max-width: 480px) {
    .hero-slider {
        height: 45vh;
        min-height: 350px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 0.9375rem;
    }

    .btn-slider {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }
}
