/**
 * Styles pour le slider de la page d'accueil
 * Thème Esperanza - Composant Slider
 */

/* Container principal du slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

/* Container des slides */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Styles pour chaque slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Contenu du slide */
.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
    max-width: 800px;
    padding: 2rem;
    z-index: 3;
}

.slide-content h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.5s;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 0.8s;
}

/* Bouton CTA */
.slide-cta {
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s forwards 1.1s;
}

.cta-button {
    display: inline-block;
    background-color: var(--sage, #769984);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--terra, #8B5A2B);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation du slider */
.slider-navigation {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    transform: translateY(50%);
}

.nav-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Points de navigation */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Barre de progression */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--sage, #769984);
    transition: width 0.1s linear;
}

/* Animation pour l'apparition des éléments */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-navigation {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 60vh;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
    }
    
    .slide-content {
        width: 90%;
    }
}
