/* Style général */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: radial-gradient(circle, rgba(20, 21, 28, 1) 0%, rgba(45, 46, 72, 1) 50%, rgba(20, 21, 28, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Conteneur du carrousel */
.carousel-container {
    width: 90%;
    max-width: 1200px;
    overflow: hidden;
    position: relative;
    background-color: #ff4500;
}

/* Carrousel */
.carousel {
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
}

/* Carrousel Item */
.carousel-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    background-color: #333;
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Mobile-first : éléments empilés */
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center; /* Centre les éléments verticalement */
    text-align: center;
}

/* Contenu du carrousel */
.carousel-item-content {
    display: flex;
    flex-direction: column; /* Mobile-first */
    align-items: center; /* Centre les éléments horizontalement */
    justify-content: center; /* Centre les éléments verticalement */
    width: 100%;
}

/* Image du carrousel item */
.carousel-item-image {
    width: 100%;
    max-width: 150px; /* Taille adaptée pour mobile */
    height: auto; /* Garder les proportions */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Description de l'événement */
.carousel-item-description {
    margin: 10px 0;
}

.event-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-date, .event-time, .event-venue {
    margin: 5px 0;
    font-size: 14px;
}

/* Liens Infos et Réserver */
.carousel-item-links {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    background-color: aqua;
}

.event-info, .event-reserve {
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 5px;
}

.event-info {
    color: #00bfff;
}

.event-reserve {
    color: #ff4500;
}

/* Boutons de navigation */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive pour tablettes */
@media (min-width: 768px) {
    .carousel-item {
        flex-direction: row; /* Passer les éléments en ligne */
        text-align: left;
    }

    .carousel-item-image {
        max-width: 200px; /* Agrandir légèrement les images */
        margin-right: 20px; /* Espacement avec le contenu */
    }

    .carousel-item-description {
        flex: 1;
    }

    .carousel-item-links {
        align-items: flex-end;
        margin-top: 0;
    }
}

/* Responsive pour grands écrans */
@media (min-width: 1024px) {
    .carousel-item-image {
        max-width: 250px;
    }

    .event-name {
        font-size: 20px;
    }

    .event-date, .event-time, .event-venue {
        font-size: 16px;
    }

    .carousel-btn {
        padding: 15px;
    }
}

/* Responsive pour mobiles */
@media (max-width: 767px) {
    .carousel-item {
        display: flex; /* Assure l'utilisation de flexbox */
        flex-direction: column; /* Dispose les éléments en colonne */
        align-items: center; /* Centre les éléments horizontalement */
        justify-content: center; /* Centre les éléments verticalement */
        text-align: center; /* Centre le texte */
        height: 100%; /* Assure que la hauteur de la carte est prise en compte */
    }

    .carousel-item-content {
        display: flex; /* Flexbox pour le contenu */
        flex-direction: column; /* Empile les éléments */
        align-items: center; /* Centre horizontalement */
        justify-content: center; /* Centre verticalement */
        width: 100%;
    }

    .carousel-item-image {
        margin-bottom: 15px; /* Espacement avec le texte */
        max-width: 150px; /* Taille ajustée pour mobile */
    }

    .carousel-item-description {
        margin-bottom: 10px; /* Espacement avec les liens */
    }

    .carousel-item-links {
        display: flex; /* Flexbox pour les liens */
        flex-direction: column; /* Empile les liens */
        align-items: center; /* Centre les liens */
        justify-content: center; /* Assure un alignement vertical correct */
    }
}
