/* Styles globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0F1E25; /* Couleur de fond mise à jour */
    color: #f0f8f5; /* Couleur du texte adaptée pour contraster avec le fond sombre */
    margin: 0;
    padding: 0;
    font-size: 22px; /* Taille de base augmentée */
    line-height: 1.8;
    background-image: url('wallpaper.jpg'); /* Remplacez par l'image de fond */
    background-size: cover; /* Ajuste la taille de l'image pour couvrir toute la page */
    background-repeat: repeat; /* Répète l'image pour créer un effet infini */
    background-attachment: fixed; /* Fixe l'image de fond pour qu'elle ne se déplace pas lors du défilement */
    background-position: center;
}

/* En-tête et navigation */
header {
    position: fixed; /* Fixe l'en-tête en haut */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Arrière-plan semi-transparent */
    text-align: center;
    z-index: 1000; /* Assure que l'en-tête reste au-dessus des autres éléments */
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 26px; /* Taille du texte de navigation augmentée */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 20px; /* Espacement augmenté entre les éléments */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffeb3b;
}

/* Styles pour le carrousel */
.carrousel-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Largeur maximale pour correspondre au conteneur du quiz */
    height: 550px; /* Hauteur fixe pour correspondre au conteneur du quiz */
    margin: 100px auto 20px auto; /* Centrer horizontalement et ajuster la marge pour éviter l'en-tête fixe */
    overflow: hidden;
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Ombre pour le carrousel */
}

.carrousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carrousel-slide {
    display: none; /* Masquer les diapositives par défaut */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carrousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste l'image pour couvrir l'espace tout en gardant le ratio */
}

/* Styles pour les boutons de navigation du carrousel */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); /* Arrière-plan semi-transparent */
    transition: background-color 0.3s;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8); /* Plus foncé au survol */
}

/* Styles pour le texte descriptif sous le carrousel */
.description-container {
    text-align: center;
    margin: 20px auto;
    padding: 10px;
    max-width: 400px; /* Largeur maximale du conteneur de la description alignée avec le carrousel */
}

.description-text {
    font-size: 28px; /* Ajusté pour une meilleure lisibilité */
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent pour lisibilité */
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}