/* Global styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    color: #333;
}

/* Conteneur du header avec barre à droite et logo à gauche */
.header-container {
    display: flex;
    justify-content: space-between; /* Logo à gauche, barre à droite */
    align-items: center;
    width: 100%;
   /* padding: 10px 20px;*/
}

/* Logo en haut à gauche */
.top-left-logo img {
    width: 100px; /* Taille ajustable */
    height: auto;
    margin-left: 280px;
}

/* Barre en haut à droite */
.top-bar img {
    width: auto;
   /* max-width: 70%; La barre prend une grande partie mais pas tout */
    height: auto;
    max-height: 100px;
}

/* Masque le logo mobile par défaut */
.mobile-logo {
    display: none;
    margin-left: 30px;
    margin-top: 10px;
}

.mobile-logo img {
    width: 80px;
    height: auto;
}


/* Logo centré au-dessus des vidéos */
.logo-container {
    text-align: center;
    margin-bottom: 20px; /* Espacement avec les vidéos */
}

.logo {
    width: 350px; /* Ajuste selon besoin */
    height: auto;
}

/* Barre du bas */
.bottom-bar {
    width: 100%;
    text-align: left;
    margin-top: 20px; /* Espacement après les vidéos */
}

.bottom-bar img {
    height: auto;
    max-height: 160px; /* Ajuste la hauteur selon ton design */
}


/* Liste des vidéos */
.videos-list {
    max-width: 800px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.video-card {
    display: block;
    width: 250px;
    text-align: center;
    background: #fbb601;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.video-title {
    font-size: 1rem;
    margin: 10px 0;
    color: #fff;
}

/* Popup styles */
.video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 800px;
}

#popup-video {
    width: 100%;
    height: 450px;
    border-radius: 10px;
}

.close-popup {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Conteneur de la vidéo */
.video-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    text-align: center;
}

.video-container video {
    width: 100%;
    max-height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* suggestion */
.ytp-endscreen-content {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Styles de la galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px; /* Coins arrondis */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px; /* Hauteur uniforme pour toutes les images */
    object-fit: cover; /* Maintient les proportions tout en remplissant */
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05); /* Zoom au survol */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item img:hover {
    transform: scale(1.1); /* Légère animation pour donner un effet immersif */
}

/* Styles du popup */
.photo-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.photo-popup img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.prev-photo,
.next-photo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    padding: 10px;
}

.prev-photo {
    left: 20px;
}

.next-photo {
    right: 20px;
}

/* Responsive - Mode mobile */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }

    /* Barre prend toute la largeur */
    .top-bar img {
        width: 100%;
        max-width: none;
    }

    .gallery-item img {
        height: 180px; /* Réduit la hauteur sur mobile */
    }

    /* Cache le logo en haut et active le logo mobile en bas */
    .top-left-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .bottom-bar img {
        height: auto;
        width: 100%;
    }
}
