/* 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/63tQmhR2/pexels-tommyclopez-765139.jpg');
    background-size: cover;
    background-position: center bottom;
    height: 750px; /* 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 */
}
@keyframes fadeInFromRight {
    0% {
      opacity: 0;
      transform: translateX(30%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }
  


@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  .program-card {
    opacity: 0; /* Images initially hidden */
    transition: opacity 1s ease-in-out;
  }
  
  .program-card.visible {
    animation: fadeIn 1s forwards;
  }
  
@keyframes fadeInLeft {
    0% {
      opacity: 0;
      transform: translateX(-30%);
    }
    100% {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .header-title {
    animation: fadeInLeft 1s ease-in-out forwards;
  }
  
  .header-sub-title {
    animation: fadeInLeft 1s ease-in-out forwards;
  }
  
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 */
    
}
span.mindcolor {
    color: #FFD166;
}

span.idmajcolor {
    color: rgba(30, 52, 97, 1);
}
.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;
}

span.radiocolor {
    color: #D22143;
}

.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;
}




/* PROGRAMS */



.our-programs-section {
    padding: 50px 0; /* Espacement intérieur de la section */
    text-align: center; /* Centre le texte */
    color: white; /* Couleur du texte */
}

.section-title {
    font-size: 30px; /* Taille de police du titre */
    margin-bottom: 30px; /* Marge en bas du titre */
    font-weight: normal;
}

.program-cards {
    display: flex;
    justify-content: space-around; /* Répartit les éléments horizontalement */
    flex-wrap: wrap; /* Permet aux cartes de s'envelopper sur plusieurs lignes si nécessaire */
}

.program-card {
    position: relative; /* Position relative pour les overlays */
    width: 30%; /* Largeur des cartes, ajustable selon tes besoins */
    margin-bottom: 30px; /* Marge en bas des cartes */
}

.program-card img {
    width: 100%; /* Image occupant toute la largeur de la carte */
    height: auto; /* Hauteur automatique pour conserver les proportions */
    display: block; /* Évite l'espacement sous l'image */
    border-radius: 3%;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond gris transparent */
    opacity: 0; /* Initialement transparent */
    transition: opacity 0.3s ease; /* Transition douce pour l'opacité */
    display: flex;
    justify-content: center;
    align-items: center;
}
.card-overlay p {
    font-size: 12px;
}

.program-card:hover .card-overlay {
    opacity: 1; /* Ombre portée visible au survol */
}

.card-title {
    font-size: 22px; /* Taille de police du titre descriptif */
    font-family: Poppins;
    color: white; /* Couleur du texte du titre descriptif */
    text-align: center; /* Centre le texte */
    padding: 10px; /* Espacement intérieur */
}

.see-more {
    text-align: center;
    margin-top: 20px; /* Ajuste la marge si nécessaire */
}

.see-more a {
    text-decoration: none;
    color: #888; /* Couleur grise normale */
    font-weight: bold; /* Optionnel : met en gras */
    transition: border-bottom 0.3s ease; /* Animation du trait au survol */
    font-weight: bold;
    font-size: 20px;
}

.see-more a:hover {
    border-bottom: 2px solid #888; /* Trait au survol */
}

.radio-section {
    background-color: white;
    padding: 50px 20px; /* Ajout de padding pour donner de l'espace */
  }
  
  .radio-section .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .section-content {
    flex: 1;
    margin-right: 20px;
  }
  
  .section-content h2 {
    text-align: center;
  }
  
  .section-content p {
    text-align: justify;
    margin: 0 10px; /* Ajouter des marges à gauche et à droite */
  }
  
  .video-placeholder {
    flex: 1;
  }

.video-placeholder video {
    width: 100%; /* Vidéo prend toute la largeur disponible */
    height: auto; /* Hauteur ajustée automatiquement pour conserver le ratio */
}
.events-section {
    width: 50%;
    background-color: rgb(22, 37, 68);
    color: white;
    padding: 50px 0;
    display: flex;
    flex-direction: row;
}

.events-content {
    flex: 1;
    margin-right: 20px;

}

.events-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    margin-left: 100px;
}
.upcoming {
    opacity: 0; /* Title initially hidden */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  }
  
  .upcoming.visible {
    animation: fadeInFromRight 1s forwards;
  }
  
.video-placeholder {
    flex: 1;
    margin-left: 20px;
}

.video-placeholder video {
    width: 100%;
    height: auto;
}
.news-section {
    background-color: white;
    color: #1E3461;
    padding: 50px 50px; /* Adding 30px padding on the left and right */
    text-align: center;
}

.news-section h2 {
    font-size: 48px;
    margin-bottom: 20px;
    
}

.news-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.news-item {
    position: relative;
    flex: 1;
    transition: transform 0.3s ease;
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 52, 97, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 18px;
}

.news-item:hover .news-overlay {
    opacity: 1;
}
.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;
}

/* Responsive design */
@media (max-width: 1175px) {
    .card-title{
        height: 100%;
        width: 100%;
    }
    .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;
    }
    .events-section {
        width: 100%;
        background-color: rgb(22, 37, 68);
        color: white;
        padding: 50px 0;
        display: flex;
        flex-direction: row;
    }
    .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: 15%;
        text-align: justify;
        }

    .lorem p{
        font-size: 14px;
    }
        .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;
        }

        .radio-section .container {
            flex-direction: column;
            align-items: center;
          }
        
          .section-content {
            margin-right: 0;
            margin-bottom: 20px;
            text-align: center; /* Centrer le texte pour les petits écrans */
          }
        
          .section-content p {
            margin: 0 10px; /* Ajouter des marges à gauche et à droite */
          }
}


@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 */
    }
}