h1 {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
    margin-bottom: 50px;
}

#films-container {
    text-align: center;
    margin-top: 50px;
    color: white;
}

#films-container h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    animation: fadeIn 2s ease-in-out;
}

.films {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 150px;
}

.film {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    width: 250px; /* Taille augmentée des films */
}

.film img {
    width: 100%;
    height: 375px; /* Taille augmentée des images */
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* Style des images de chargement */
.film img.loading {
    opacity: 0.5;
    filter: blur(5px);
}

/* Effet au survol */
.film:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Adaptation mobile */
@media (max-width: 600px) {
    .films {
        flex-direction: column;
        gap: 20px;
    }

    .film {
        width: 80%;
        margin: 0 auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#recruiter-movie-section {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#recruiter-movie-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.input-container input {
    padding: 10px;
    width: 250px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.input-container button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ff9800;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.input-container button:hover {
    background-color: #e68900;
}

#recruiter-movie-result {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
}

.film {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    width: 250px;
}

.film img {
    width: 100%;
    height: 375px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

/* Masque la section tant qu'aucun film n'a été recherché */
.hidden {
    display: none;
}



#aviation-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#aviation-container h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.aviation-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Taille définie pour chaque élément */
.aviation-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    width: 280px; /* Taille fixe */
    height: 420px; /* Hauteur fixe */
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.aviation-item img {
    width: 100%;
    height: 200px; /* Taille fixe */
    object-fit: cover;
    border-radius: 10px;
}

.aviation-item h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

.aviation-item p {
    font-size: 0.95rem;
    flex-grow: 1; /* Permet au texte de s’adapter à l’espace disponible */
}

.aviation-item .btn {
    display: inline-block;
    padding: 8px 12px;
    background-color: #ff9800;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.aviation-item .btn:hover {
    background-color: #e68900;
}

/* Effet au survol */
.aviation-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    .aviation-content {
        flex-direction: column;
        align-items: center;
    }

    .aviation-item {
        width: 90%;
        height: auto; /* Permet une meilleure adaptation mobile */
    }

    .aviation-item img {
        height: 400px;
    }
}

/* Style global pour toutes les popups */
#ivao-profile, #volanta-profile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1000; /* Toujours au-dessus */
}

/* Fond sombre cliquable */
.ivao-overlay, .volanta-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Fenêtre contenant l'image */
.ivao-popup, .volanta-popup {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Image en PLEIN ÉCRAN */
.ivao-popup img, .volanta-popup img {
    max-width: 90vw; /* Prend 90% de la largeur de l'écran */
    max-height: 90vh; /* Prend 90% de la hauteur de l'écran */
    object-fit: contain;
    border-radius: 10px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: red;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: darkred;
}

/* Quand la pop-up est active */
#ivao-profile.show, #volanta-profile.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .ivao-popup img, .volanta-popup img {
        max-width: 95vw;
        max-height: 95vh;
    }

    .close-btn {
        font-size: 30px;
        padding: 8px 12px;
    }
}


/* Section de la galerie */
#gallery-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#gallery-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Disposition de la galerie avec des images plus grandes */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Miniatures AGRANDIES */
.gallery-item {
    width: 350px;  /* Avant : 150px */
    height: 200px; /* Avant : 100px */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Pop-up en plein écran */
#gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1000; /* Toujours au-dessus */
}

/* Fond sombre cliquable */
.gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Fenêtre contenant l'image */
.gallery-popup-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw; /* Avant : 90vw */
    max-height: 95vh; /* Avant : 90vh */
}

/* Image en grand avec une taille plus imposante */
#gallery-popup-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: red;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: darkred;
}

/* Navigation (flèches) */
.gallery-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn {
    font-size: 60px;  /* Avant : 50px */
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 0.7;
}

/* Quand la pop-up est active */
#gallery-popup.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .gallery-item {
        width: 180px; /* Agrandir sur mobile */
        height: 120px;
    }

    #gallery-popup-img {
        max-width: 98vw;
        max-height: 98vh;
    }

    .nav-btn {
        font-size: 40px;
        padding: 10px 15px;
    }
}



/* Section du setup */
#setup-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#setup-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Liste des composants */
.setup-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.setup-list li {
    margin: 5px 0;
}

/* Bouton d'affichage */
#show-setup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #ff9800;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, opacity 0.5s ease-in-out;
}

#show-setup-btn:hover {
    background-color: #e68900;
}

/* Conteneur de l’image */
#setup-image-container {
    display: none; /* Empêche le conteneur d'exister avant l'activation */
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Lorsque l’image est affichée */
#setup-image-container.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Image de setup */
#setup-image-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}


/* Cache le bouton après le clic */
#show-setup-btn.hide {
    opacity: 0;
    visibility: hidden;
}



/* Section de la galerie photo */
#photo-gallery-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#photo-gallery-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#photo-gallery-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Disposition de la galerie */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Miniatures */
.photo-gallery-item {
    width: 350px;  /* Avant : 150px */
    height: 200px; /* Avant : 100px */
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.photo-gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Pop-up en plein écran */
#photo-gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1000; /* Toujours au-dessus */
}

/* Fond sombre cliquable */
.photo-gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Fenêtre contenant l'image */
.photo-gallery-popup-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 95vh;
}

/* Image en grand */
#photo-gallery-popup-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: red;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: darkred;
}

/* Navigation (flèches) */
.gallery-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn {
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 0.7;
}

/* Quand la pop-up est active */
#photo-gallery-popup.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .photo-gallery-item {
        width: 180px; /* Agrandir sur mobile */
        height: 120px;
    }

    #photo-gallery-popup-img {
        max-width: 98vw;
        max-height: 98vh;
    }

    .nav-btn {
        font-size: 40px;
        padding: 10px 15px;
    }
}


/* Section Astronomie */
#astronomy-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#astronomy-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#astronomy-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Conteneur de l’image */
#telescope-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

/* Image des télescopes en grand */
#telescope-image-container img {
    width: 100%;
    max-width: 400px; /* Ajustable selon la taille souhaitée */
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.5s ease-in-out;
}

/* Effet au survol pour un léger zoom */
#telescope-image-container img:hover {
    transform: scale(1.05);
}

/* Adaptation mobile */
@media (max-width: 768px) {
    #telescope-image-container img {
        max-width: 95%;
    }
}



/* Section de la galerie astro */
#astro-gallery-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#astro-gallery-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#astro-gallery-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Disposition de la galerie */
.astro-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Miniatures */
.astro-gallery-item {
    width: 350px;  /* Taille plus grande pour bien voir */
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.astro-gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Pop-up en plein écran */
#astro-gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Fond sombre */
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    z-index: 1000; /* Toujours au-dessus */
}

/* Fond sombre cliquable */
.astro-gallery-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Fenêtre contenant l'image */
.astro-gallery-popup-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 95vh;
}

/* Image en grand */
#astro-gallery-popup-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 10px;
}

/* Bouton de fermeture */
.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: red;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.close-btn:hover {
    background: darkred;
}

/* Navigation (flèches) */
.gallery-nav {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}

.nav-btn {
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 0.7;
}

/* Quand la pop-up est active */
#astro-gallery-popup.show {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .astro-gallery-item {
        width: 180px; /* Ajusté pour mobile */
        height: 120px;
    }

    #astro-gallery-popup-img {
        max-width: 98vw;
        max-height: 98vh;
    }

    .nav-btn {
        font-size: 40px;
        padding: 10px 15px;
    }
}



/* Section du secourisme */
#first-aid-container {
    text-align: center;
    margin-top: 50px;
    color: white;
    animation: fadeIn 2s ease-in-out;
}

#first-aid-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

#first-aid-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Galerie Croix-Rouge */
.first-aid-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Images de la Croix-Rouge */
.first-aid-item {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.first-aid-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Section vidéo */
.first-aid-video {
    margin-top: 30px;
}

.first-aid-video h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Style de la vidéo */
.first-aid-video video {
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .first-aid-item {
        width: 90%;
        height: auto;
    }

    .first-aid-video video {
        width: 95%;
    }
}
