/* 🎨 Conteneur de la galerie */
.gallery-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* 📷 Grille des vidéos */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1400px;
    padding: 10px;
    box-sizing: border-box;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
/* Chaque album */
.photo-item {
    position: relative;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.photo-item:hover {
    transform: scale(1.05);
}
/* 🎬 Élément vidéo */
.video-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: scale(1.05);
}

/* 📸 Miniature */
.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 📝 Titre sur hover (grand écran) */
.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #A854FF;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}
.photo-item:hover .overlay {
    opacity: 1;
}
.video-item:hover .overlay {
    opacity: 1;
}

/* 📱 Titre pour mobile (toujours visible en bas) */
.mobile-title {
    display: none; /* Par défaut, caché sur grand écran */
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
}

/* 🌐 Responsivité */
@media (max-width: 1024px) {
    .video-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: repeat(2, 1fr);
   }
    .overlay {
        display: none;
    }
    .mobile-title {
        display: block;
    }
}

@media (max-width: 480px) {
    /* 1 vidéo par ligne sur mobile */
    .video-gallery {
        grid-template-columns: 1fr;
    }

    /* Masquer l'overlay au survol et afficher le titre fixe en bas */
    .overlay {
        display: none;
    }

    .mobile-title {
        display: block;
    }

    h1 {
        font-size: 24px;
    }
}
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Modifier la couleur des liens de pagination */
.pagination .page-link {
    background-color: white !important; /* Fond blanc */
    color: #5E209F !important; /* Texte violet */
    border: 1px solid #5E209F !important; /* Bordure violette */
    font-weight: bold;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Modifier la couleur au survol */
.pagination .page-link:hover {
    background-color: #A854FF !important; /* Fond violet clair */
    color: white !important; /* Texte blanc */
}

/* Page active */
.pagination .active .page-link {
    background-color: #5E209F !important; /* Fond violet foncé */
    color: white !important; /* Texte blanc */
    border: 1px solid #5E209F !important;
}

/* Désactiver les liens inactifs */
.pagination .disabled .page-link {
    background-color: #E0E0E0 !important; /* Gris clair */
    color: #A0A0A0 !important; /* Texte gris */
}

.pagination-container .pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.pagination-container .pagination li {
    margin: 0 5px;
}

.pagination-container .pagination li a,
.pagination-container .pagination li span {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    background-color: #286fff;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
}

.pagination-container .pagination li a:hover {
    background-color: #1a4fc3;
}

.pagination-container .pagination .active span {
    background-color: #1a4fc3;
}

/* Conteneur du bouton */
.back-button {
    text-align: left;
    margin: 2em;
}

/* Style du bouton de retour */
.custom-back-btn {
    background-color: #5E209F; /* Fond violet */
    color: white !important; /* Texte blanc */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Espace entre la flèche et le texte */
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

/* Changer la couleur au survol */
.custom-back-btn:hover {
    background-color: #A854FF !important; /* Violet plus clair */
    transform: scale(1.05);
}

/* Flèche stylisée */
.arrow-purple {
    color: white; /* Flèche blanche */
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

/* Flèche devient violette au survol */
.custom-back-btn:hover .arrow-purple {
    color: #5E209F; /* Violet */
}

.video-title {
    font-size: 24px;
    margin-top: 30px; /* Espace plus grand en haut */
    margin-bottom: 20px; /* Espace entre le titre et la vidéo */
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 24px;
    margin-top: 15px;
    font-weight: bold;
    text-transform: uppercase;
}
.video-player {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px; /* Espace entre la vidéo et la description */
}

/* 🎨 Style de la boîte description */
.video-description {
    background: #f8f9fa;
    border-left: 5px solid #5E209F;
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 16px;
    color: #333;
}

.video-description p {
    margin: 0;
    line-height: 1.5;
}

/* Style personnalisé du bouton */
.custom-submit-btn {
    background-color: #5E209F !important; /* Fond violet */
    color: white !important; /* Texte blanc */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s;
}

/* Effet au survol */
.custom-submit-btn:hover {
    background-color: #A854FF !important; /* Fond violet plus clair */
    transform: scale(1.05); /* Effet de zoom léger */
}

/* Effet au clic */
.custom-submit-btn:active {
    background-color: #4A148C !important; /* Fond violet foncé */
    transform: scale(0.95); /* Légère réduction au clic */
}
