/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: white;
    line-height: 1.6;
    background-color: #000; /* Fond noir global */
}

/* Vidéo en fond */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pour que la vidéo soit derrière le contenu */
    overflow: hidden;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplir l'écran sans déformation */
    object-position: center center; /* Centrer la vidéo */
    filter: brightness(70%) contrast(120%); /* Réduire la luminosité et augmenter le contraste pour améliorer la lisibilité */
}

/* Superposition sombre */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Superposition sombre */
    z-index: 1; /* Assurez-vous que l'overlay est au-dessus de la vidéo mais en dessous du contenu */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond semi-transparent */
    padding: 10px 0;
    text-align: center;
    z-index: 2; /* Assurez-vous que le header est au-dessus de la vidéo */
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

nav ul li a:hover {
    color: #8a2be2; /* Violet au survol des liens */
}

/* Section Accueil */
#accueil {
    padding: 150px 20px 50px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6); /* Fond semi-transparent */
    margin-top: 50px;
}

#accueil h1 {
    font-size: 3em;
    color: #8a2be2; /* Violet pour le titre */
    margin-bottom: 20px;
}

#accueil p {
    font-size: 1.2em;
}

#accueil img {
    width: 150px;
    border-radius: 50%;
    margin-top: 20px;
}

/* Section Recrutement */
#recrutement {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 50px;
    text-align: center;
    margin-top: 50px;
}

#recrutement h2 {
    color: #8a2be2; /* Violet pour le titre */
    font-size: 2.5em;
    margin-bottom: 20px;
}

#recrutement p {
    font-size: 1.2em;
}

.btn-rejoindre {
    display: block;           /* Pour faire du bouton un élément de bloc */
    background-color: #8a2be2; /* Violet pour le bouton */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    margin: 20px auto;         /* Centrer le bouton horizontalement */
    transition: background-color 0.3s ease;
    width: auto;               /* S'assure que la largeur est dynamique */
    text-align: center;        /* Centrer le texte à l'intérieur du bouton */
}

.btn-rejoindre:hover {
    background-color: #6a1fb0; /* Violet foncé au survol */
}

/* Section Recrutement Details */
#recrutement-details {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 50px;
    text-align: center;
    margin-top: 50px;
}

#recrutement-details h1 {
    font-size: 2.5em;
    color: #8a2be2; /* Violet pour le titre */
}

#recrutement-details ol {
    text-align: left;
    margin: 0 auto;
    display: inline-block;
    font-size: 1.2em;
    line-height: 2;
}

#recrutement-details a {
    margin-top: 30px;
    display: inline-block;
    background-color: #8a2be2;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
}

#recrutement-details a:hover {
    background-color: #6a1fb0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: 50px;
}

footer p {
    color: white;
    font-size: 1em;
}

/* Responsivité */
@media (max-width: 768px) {
    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    #accueil h1 {
        font-size: 2em;
    }

    #accueil img {
        width: 120px;
    }

    #recrutement h2 {
        font-size: 2em;
    }

    #recrutement-details h1 {
        font-size: 2em;
    }
}

/* Section Galerie */
#galerie {
    text-align: center;
    padding: 50px 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Fond sombre pour la section */
}

#galerie h2 {
    font-size: 2.5em;
    color: #8a2be2; /* Violet pour le titre */
    margin-bottom: 40px;
}

/* Conteneur de la galerie */
.galerie-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px; /* Espace entre les éléments */
    justify-items: center;
}

/* Élément de chaque image */
.galerie-item {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galerie-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La vidéo ou l'image remplira tout l'espace */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Superposition sur l'image au survol */
.galerie-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond sombre */
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2em;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

/* Effet de survol */
.galerie-item:hover {
    transform: scale(1.05); /* Agrandir légèrement l'image */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Ombre plus grande au survol */
}

.galerie-item:hover .overlay {
    opacity: 1; /* Afficher la superposition au survol */
}

.galerie-item:hover img {
    transform: scale(1.1); /* Agrandir l'image au survol */
}

/* Responsivité */
@media (max-width: 768px) {
    #galerie h2 {
        font-size: 2em;
    }

    /* Ajustement des tailles d'images dans la galerie */
    .galerie-item {
        width: 100%;
        height: 200px;
    }

    .galerie-item img {
        object-fit: cover;
    }
}
