body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

header {
    background-color: #005f73;
    color: white;
    text-align: center;
    padding: 1em 0;
}

main {
    padding: 20px;
}

#video-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.video-card video {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
}

.video-card p {
    margin: 10px;
    font-size: 14px;
    color: #555;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #005f73;
    color: white;
}
/* Menu de navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

nav button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #005f73;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

nav button:hover {
    background-color: #007a99;
}

/* Galeries */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.hidden {
    display: none;
}

.video-card video {
    width: 100%; /* S'adapte à la largeur de la carte */
    max-width: 300px; /* Taille maximale pour les vidéos */
    height: auto; /* Maintient le ratio d'aspect */
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.photo-card img {
    width: 200px;
    height: auto;
}

.photo-card p {
    margin: 10px;
    font-size: 14px;
    color: #555;
}
.video-card {
    border-color: #005f73;
}

.photo-card {
    border-color: #007a99;
}
.gallery {
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.gallery.hidden {
    opacity: 0;
    visibility: hidden;
}


/* Agrandir l'image au survol */
.photo-card img:hover {
    transform: scale(3);
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

/* Mode plein écran */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen img {
    max-width: 90%;
    max-height: 90%;
}
.photo-card video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.photo-card video:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

