body {
    font-family: 'Arial', sans-serif;
    background-color: #f8f9fa;
    color: #000;
    /* Texte en noir */
}

header {
    background-color: #ADD8E6;
    /* Bleu clair */
    padding: 10px 20px;
}

.logo img {
    height: 50px;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.main-box {
    background-color: #ffffff;
    /* Fond blanc */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    border: 2px solid #ADD8E6;
    /* Bordure bleue */
}

.video-container {
    position: relative;
    padding-bottom: 60%;
    /* Taille plus grande */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.description-box {
    font-size: 18px;
    /* Texte plus grand */
    padding: 20px;
    background-color: #ffffff;
    /* Fond blanc */
    border-radius: 10px;
    border: 2px solid #ADD8E6;
    /* Bordure bleue */
    text-align: left;
    /* Alignement par défaut à gauche */
    height: 100%;
    /* Hauteur égale à celle de la vidéo */
}

.description-box.rtl {
    text-align: right;
    /* Alignement à droite pour l'arabe */
}

.gallery {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    /* Espace entre les images */
}

.thumbnail {
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid #ADD8E6;
    /* Bordure bleue */
    width: calc(24% - 10px);
    /* Largeur de 30% avec espace entre les images */
    background-color: #ffffff;
    /* Fond blanc */
    height: 250px;
    /* Hauteur fixe pour toutes les images */
}

.thumbnail:hover {
    transform: scale(1.05);
    /* Effet de zoom */
}

.thumbnail img {
    width: 100%;
    height: 100%;
    /* Hauteur de 100% pour remplir le conteneur */
    object-fit: cover;
    /* Assure que l'image remplit le conteneur sans déformation */
    display: block;
}

.thumbnail p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 16px;
    /* Texte plus grand */
}

.thumbnail-description {
    display: none;
    /* Cache la description pour l'instant */
}

@media (max-width: 768px) {
    .thumbnail {
        width: 100%;
        /* Largeur complète sur mobile */
        height: 200px;
        /* Hauteur réduite sur mobile */
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        background-color: #ADD8E6;
        padding: 10px;
        border-radius: 5px;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .main-box {
        padding: 10px;
    }

    .description-box {
        padding: 10px;
    }

    .thumbnail {
        width: 100%;
        /* Largeur complète sur mobile */
    }
}