/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden;
    height: 100vh; /* Permet de garder la page centrée même avec un carrousel */
    text-align: center;
}

/* Carrousel d'images */
#carousel {
    position: relative;
    width: 100%;
    height: 100vh; /* Le carrousel occupe toute la hauteur de la fenêtre */
    overflow: hidden;
    display: flex;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 100%; /* Position de départ hors de l'écran (à droite) */
    width: 100%;
    height: 100%; /* L'image prend toute la hauteur de la fenêtre */
    background-size: cover; /* L'image couvre entièrement le conteneur */
    background-position: center; /* Centrer l'image */
    background-repeat: no-repeat; /* Éviter les répétitions d'images */
    transition: left 1s ease-in-out; /* Animation fluide */
    filter: brightness(100%); /* Assombrir l'image pour améliorer la lisibilité du texte */
}

/* Texte sur l'image */
.carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px; /* Ajout d'un peu de marge autour du texte pour l'aérer */
}

.carousel-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre du texte pour plus de visibilité */
}

.carousel-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre du texte pour plus de visibilité */
}

/* Bouton de connexion */
.carousel-text .button {
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.carousel-text .button:hover {
    background-color: #2980b9;
}
