* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated background gradient */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating background elements */
.floating-shape {
    position: fixed;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.shape1 {
    top: 10%;
    left: 10%;
    width: 180px;
    height: 180px;
    animation: floatAnimation 20s infinite alternate ease-in-out;
}

.shape2 {
    top: 70%;
    left: 20%;
    width: 120px;
    height: 120px;
    animation: floatAnimation 15s infinite alternate-reverse ease-in-out;
}

.shape3 {
    top: 30%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation: floatAnimation 25s infinite alternate ease-in-out;
    animation-delay: 5s;
}

.shape4 {
    bottom: 15%;
    right: 10%;
    width: 200px;
    height: 200px;
    animation: floatAnimation 18s infinite alternate-reverse ease-in-out;
    animation-delay: 2s;
}

@keyframes floatAnimation {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 35px) rotate(5deg); }
    50% { transform: translate(-15px, 25px) rotate(-5deg); }
    75% { transform: translate(35px, -30px) rotate(3deg); }
    100% { transform: translate(-25px, -25px) rotate(-3deg); }
}

.slider-container {
    width: 100vw; /* prend toute la largeur de l'écran */
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0; /* supprime les coins arrondis si tu veux un style bord à bord */
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    border: none;
    top: 0;
    left: 0;
    z-index: 5;
}

@keyframes appear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80vh; /* optionnel : pleine hauteur si tu veux */
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
    overflow: hidden;
    pointer-events: none;
}

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

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-in-out;
}

.slide.active img {
    transform: scale(1.1);
}
.slide-content {
    position: absolute;
    top: 30%; /* Positionner au centre verticalement */
    left: 50%; /* Positionner au centre horizontalement */
    transform: translate(-50%, -50%); /* Décalage de -50% de sa propre taille pour un centrage parfait */
    width: 80%; /* Largeur responsive */
    max-width: 700px; /* Limite la largeur maximale */
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    text-align: center;
    border-radius: 10px;
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.5s ease;
}

/* Affichage actif ou au survol */
.slide.active .slide-content,
.slide:hover .slide-content {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Titre */
.slide-title {
    transform: translateY(-20px);
    opacity: 0;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 12px;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.2s;
}
/* Description */
.slide-description {
    transform: translateY(20px);
    color: white;
    opacity: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.4s;
}

/* Animation quand la slide est active */
.slide.active .slide-title,
.slide.active .slide-description {
    transform: translateY(0);
    opacity: 1;
}
/* Styles Responsives */
@media (max-width: 1450px) {
    .slide-content {
        padding: 20px;
        width: 90%;
        max-width: 600px;
        top: 300px;
        left: 150px;
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-description {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .slide-content {
        padding: 15px;
        width: 90%;
        top: 300px;
        left: 50px;
        max-width: 500px;
        bottom: 20%;
        height: 300px;

    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 10px;
        bottom: 20%;
        left: 30px;
        height: 200px;
        transform: translate(-50%, -50%); /* Appliquer un décalage pour le centrage parfait */
        width: 95%; /* Largeur responsive */
        max-width: 400px; /* Largeur maximale */
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-description {
        font-size: 1.1rem;
    }
}

/* Navigation arrows */
.navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 30;
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Dots indicators */
.dots-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

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

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

/* Animation keyframes for transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(1.2); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Transition effect classes */
.transition-fade .slide-content {
    animation: fadeIn 1s forwards;
}

.transition-slideRight .slide-content {
    animation: slideInRight 1s forwards;
}

.transition-slideLeft .slide-content {
    animation: slideInLeft 1s forwards;
}

.transition-zoom .slide-content {
    animation: zoomIn 1s forwards;
}

.transition-slideUp .slide-content {
    animation: slideInUp 1s forwards;
}
