/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Conteneur principal du slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Overlay translucide */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

/* Wrapper des slides */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Styles pour chaque slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    transform: scale(1.1);
    z-index: 1;
}

.bgcolor{
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background: linear-gradient(rgba(0, 0, 123, 0.7), rgba(0, 0, 123, 0.7));
    z-index: 2;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Image de fond de la slide */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-in-out;
}

.slide.active .slide-image {
    transform: scale(1.05);
}

/* Contenu de la slide - Nouveau style sans modale */
.slide-content {
    position: absolute;
    bottom: 25%;
    left: 10%;
    max-width: 600px;
    padding: 0;
    color: white;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    z-index: 3;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.slide-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 80%;
}

.slide-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    border: 2px solid white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slide-button:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contrôles du slider */
.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.prev-slide, .next-slide {
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    margin: 0 15px;
    backdrop-filter: blur(5px);
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
}

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

.slider-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {

    .slider-container {
        height: 55vh;
    }

    .slide-content {
        left: 5%;
        right: 5%;
        max-width: none;
        bottom: 20%;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .slider-controls {
        bottom: 30px;
    }
}