/* imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* body characteristics */
body, htlm {
    margin: 0;
    padding: 0;
    font-family: Poppins;
    scroll-behavior: smooth;

}
/* Pour les navigateurs WebKit (Chrome, Safari) */
/* Barre de défilement */
::-webkit-scrollbar {
    width: 10px; /* Largeur de la barre de défilement */
    background-color: #1E3461; /* Couleur de fond de la barre de défilement */
}

/* Bouton de la barre de défilement */
::-webkit-scrollbar-thumb {
    background-color: #D22143; /* Couleur de la barre de défilement */
    border-radius: 5px; /* Bordure arrondie */
}

/* Pour Firefox */
/* Barre de défilement */
::-moz-scrollbar {
    width: 10px; /* Largeur de la barre de défilement */
    background-color: rgba(30, 52, 97, 0.33); /* Couleur de fond de la barre de défilement */
}

/* Bouton de la barre de défilement */
::-moz-scrollbar-thumb {
    background-color: #1E3461; /* Couleur de la barre de défilement */
    border-radius: 5px; /* Bordure arrondie */
}
/* header */ 
header {
    background-image: url('https://i.postimg.cc/fTt94P9g/01-khfif-drif.png');
    background-size: cover;
    background-position: center bottom;
    height: 850px; /* Increase the height for a bigger background image */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    text-align: center;
    align-items: center;
    color: white; /* Couleur du texte */
}

html {
    scroll-behavior: smooth;
}
#mainNavbar {
    margin-bottom: 20px; /* Espacement entre la navbar et le titre */
}

.header-title {
    font-size: 64px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-sub-title {
    font-size: 36px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.navbar {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px; /* Increase padding for larger navbar */
    background-color: rgba(30, 52, 97, 0.33);
    position: absolute;
    top: 0;
    height: 100px; /* Increase navbar height */
    overflow-x: hidden; /* Hide horizontal overflow */
    position: fixed;
    z-index: 1000;

}
nav.scrolled {
    background-color: rgba(30, 52, 97, 1); /* Couleur opaque après le scroll */
    
}
.navbar.opaque {
    background-color: rgba(30, 52, 97, 1); /* Fond opaque #1E3461 */
}
.navbar ul li {
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar ul li .nav-link {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.navbar ul li .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: #ffffff; /* Couleur du trait */
    transition: width 0.3s ease;
}

.navbar ul li .nav-link:hover::after {
    width: 100%;
}
.logo img {
    height: 100px; /* Increase the logo size */
    border-radius: 10%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 70px; /* Increase the gap between links */
}

.nav-links li {
    display: inline;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px; /* Increase font size */
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #464646;
}



.menu-toggle {
    display: none; /* Hide the menu toggle button by default */
}

.last-episode button {
    background-color: #FFFF;
    color: #D22143;
    border: none;
    padding: 15px 30px; /* Increase button size */
    font-size: 18px; /* Increase font size */
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
    font-family: Poppins;
}
/* Utilise la classe 'play' pour le bouton play */
#lastEpisodeBtn.play::before {
    content: "\f04b"; /* Icône play de Font Awesome */
    font-family: "Font Awesome 5 Free";
}

/* Utilise la classe 'pause' pour le bouton pause */
#lastEpisodeBtn.pause::before {
    content: "\f04c"; /* Icône pause de Font Awesome */
    font-family: "Font Awesome 5 Free";
}
#lastEpisodeBtn .icon-play {
    display: inline-block;
}

/* Utilise la classe 'pause' pour le bouton pause */
#lastEpisodeBtn .icon-pause {
    display: none;
}
.last-episode button:hover {
    background-color: #464646;
}

.menu-icon {
    display: none; /* Caché par défaut sur les écrans larges */
    cursor: pointer;
    margin-right: 10%;

}

.menu-icon i {
    font-size: 24px; /* Taille de l'icône */
    margin-right: 10%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black; /* Fond opaque */
    display: none;
    z-index: 1000; /* Assure que le menu est au-dessus de tout */
    opacity: 0; /* Démarre avec une opacité de 0 pour l'animation */
    transition: opacity 0.3s ease; /* Animation de transition fluide */
    color: white; /* Couleur du texte */
}

.mobile-menu.active {
    display: block;
    opacity: 1; /* Affiche le menu avec une opacité complète */
}

.mobile-menu .close-icon {
    text-align: right;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

.mobile-menu .close-icon i {
    font-size: 24px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mobile-menu ul li {
    margin-bottom: 20px;
}

.mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    display: block;
    padding: 10px;
    transition: color 0.3s;
}

.mobile-menu ul li a:hover {
    color: #ff6347;
}
.footer {
    background-color: #1E3461;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav a:hover {
    text-decoration: underline;
}
/* Styles spécifiques à la section "Programs" */

.program-section {
    background-color: #fff;
    padding: 40px 0;
    margin-left: 10%;
    margin-right: 10%;
}

.program-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-description {
    flex: 1;
    padding: 0 20px;
}

.program-description h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.program-description p {
    font-size: 1rem;
    line-height: 1.6;
}

.play-button-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
}

.play-button {
    width: 120px;
    height: 120px;
    background-color: #1E3461;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button i {
    font-size: 3rem;
    color: #fff;
}

.play-button:hover {
    background-color: #195B42;
}

.playing {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* Responsive design */
@media (max-width: 1175px) {
    
    .navbar {
        flex-direction: column;
        padding: 10px 20px;
        height: auto; /* Allow height to adjust for smaller screens */
    }
    
    .nav-links {
        display: none; /* Hide links by default */
        position: absolute;
        top: 100px; /* Position below navbar */
        left: 0;
        background-color: rgba(30, 52, 97, 0.33);
        width: 100%;
        padding: 10px;
    }

    .nav-links.show {
        display: flex; /* Show links when needed */
        flex-direction: column;
        align-items: flex-start; /* Align links to the left */
        gap: 10px;
    }

    .last-episode {
        margin-left: 0; /* Reset margin for Last Episode button */
        margin-top: 10px; /* Add margin top for spacing */
    }

    header {
        height: 500px; /* Adjust the header height for smaller screens */
    }

    .logo img {
        height: 60px; /* Adjust the logo size for smaller screens */
    }

    .nav-links a {
        font-size: 18px; /* Adjust font size for smaller screens */
    }

    .last-episode button {
        padding: 10px 20px; /* Adjust button size for smaller screens */
        font-size: 16px; /* Adjust font size for smaller screens */
    }

    .menu-icon {
        display: block; /* Affiche l'icône sur les écrans plus petits */
        position: absolute;
        top: 20px;
        right: 20px; /* Positionne l'icône en haut à droite */
        z-index: 1000; /* Assure que l'icône est au-dessus du reste */
    }

    .nav-links {
        display: none; /* Cache les liens de navigation par défaut */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(30, 52, 97, 0.33);
        padding: 10px;
    }

    .nav-links.show {
        display: flex; /* Affiche les liens de navigation quand nécessaire */
        flex-direction: column;
        align-items: flex-start; /* Alignement à gauche */
        gap: 10px;
    }
    .header-title {
        font-size: 3em; /* Réduction de la taille de police pour les écrans plus petits */
    }
    .section-content, .video-placeholder {
        width: 100%;
        text-align: center;
    }
    .container {
        flex-direction: column;
        align-items: center; /* Centre les éléments sur les écrans plus petits */

    }

    .events-content, .video-placeholder {
        width: 100%;
        text-align: center;
        margin: 0 0 20px;
    }
    .lorem{
        text-align: center;
        margin: 10%;
        text-align: justify;
        }
        .events-content, .video-placeholder {
            width: 100%;
            text-align: center;
            margin: 0 0 20px; /* Ajoute une marge inférieure pour espacer les éléments verticalement */
        }
    
        .video-placeholder {
            margin-top: 20px; /* Ajoute de l'espace au-dessus de la vidéo */
        }
        .events-content h2 {
            font-size: 48px;
            margin-bottom: 20px;
            margin-left: 0;
        }
        .news-wrapper {
            flex-direction: column;
            align-items: center;
        }
    
        .news-item {
            margin-bottom: 20px;
        }
}


@media (max-width: 576px) {
    .header-title {
        font-size: 2em; /* Réduction supplémentaire pour les écrans encore plus petits */
    }
    .program-card {
        width: 100%; /* Une image par ligne */
    }
}
@media (max-width: 992px) {
    .program-card {
        width: 48%; /* Deux images par ligne */
    }
}