.carousel-flex-row.single-center {
  justify-content: center;
}
.carousel-flex-row.single-center img {
  width: 50%;
  margin-left: 25%;
  margin-right: 25%;
}
/* Flex row pour deux images côte à côte dans le carousel participations */
.carousel-flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  width: 100%;
}
.carousel-flex-row img {
  width: 50%;
  height: 340px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}
@media (max-width: 991px) {
  .carousel-flex-row {
    flex-direction: column;
    gap: 8px;
  }
  .carousel-flex-row img {
    width: 100%;
    height: 220px;
  }
}
/* --- Carousel participations : deux images par slide --- */
.participation-carousel .carousel-inner,
.participation-carousel-glass .carousel-inner {
  display: flex;
  flex-wrap: wrap;
}
.participation-carousel .carousel-item,
.participation-carousel-glass .carousel-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 16px;
  background: none;
}
.participation-carousel .carousel-item img,
.participation-carousel-glass .carousel-item img {
  width: 48%;
  height: 340px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
}
@media (max-width: 991px) {
  .participation-carousel .carousel-item img,
  .participation-carousel-glass .carousel-item img {
    width: 100%;
    height: 220px;
  }
  .participation-carousel .carousel-item,
  .participation-carousel-glass .carousel-item {
    flex-direction: column;
    gap: 8px;
  }
}
/* --- DESIGN MODERNE POUR LES PARTICIPATIONS (RENCONTRES) --- */
.participation-card {
  background: linear-gradient(135deg, #f7faff 60%, #e0e7ff 100%);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.10), 0 1.5px 6px rgba(44,62,80,0.08);
  padding: 0 0 24px 0;
  margin-bottom: 32px;
  border: none;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.participation-card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 16px 40px rgba(44, 62, 80, 0.16), 0 2px 8px rgba(44,62,80,0.10);
}
.participation-card .card-body {
  padding: 1.5rem 2rem 1rem 2rem;
}
.participation-card .card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.7rem;
}
.participation-card .meta {
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 0.7rem;
}
.participation-card .img-fluid {
  border-radius: 2px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.participation-card .card-text {
  color: #333;
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
}
.participation-card .btn-participation {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(26,115,232,0.10);
  transition: background 0.2s, transform 0.2s;
}
.participation-card .btn-participation:hover {
  background: #1558b0;
  transform: scale(1.05);
}

/* --- CAROUSEL MODERNE POUR PHOTOS DE PARTICIPATION --- */
.participation-carousel.carousel {
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  margin-bottom: 1.2rem;
  background: #f4f8ff;
}
.participation-carousel .carousel-inner {
  border-radius: 16px;
}
.participation-carousel .carousel-item img {
  border-radius: 16px;
  object-fit: cover;
  width: 100%;
  height: 410px;
}
.participation-carousel .carousel-control-prev,
.participation-carousel .carousel-control-next {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  opacity: 0.85;
  transition: background 0.2s, opacity 0.2s;
}
.participation-carousel .carousel-control-prev:hover,
.participation-carousel .carousel-control-next:hover {
  background: #e0e7ff;
  opacity: 1;
}
.participation-carousel .carousel-control-prev-icon,
.participation-carousel .carousel-control-next-icon {
  filter: invert(0.5);
}
.participation-carousel .carousel-indicators [data-bs-target] {
  background-color: #1a73e8;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 4px;
}
a img{
    width: 100px;
    height: 80px;
}
div p{
    text-align: justify;
}
div .our-doomain ul{
    margin-top: 20px;
    list-style-type: none;
} 
div .our-doomain li{
    margin-bottom: 14px;
    text-align: left;
}   
.organigramme-svg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 40px;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.niveau {
  display: flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.noeud {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  min-width: 270px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.noeud:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.noeud.active {
  border-color: #007bff;
  background-color: #eaf4ff;
}

.noeud img {
  max-width: 140px;
  margin-bottom: 10px;
}

.noeud h3 {
  font-size: 1rem;
  margin: 0;
  color: #333;
}

.fleche {
  width: 40px;
  height: 50px;
  opacity: 0;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s ease, opacity 1s ease;
}

.fleche line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.donors-container {
    background-color: #fff;
    border: 2px solid #ff7f00; /* Orange border as in the image */
    border-radius: 15px; /* Rounded corners */
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between rows */
}

.donor-row {
    display: flex;
    flex-wrap: wrap; /* Allow logos to wrap to the next line if needed */
    justify-content: center; /* Center logos in the row */
    gap: 20px; /* Space between logos */
}

.donor-logo {
    display: block; /* Ensures the whole area is clickable */
    text-decoration: none;
    transition: transform 0.2s ease-in-out; /* Smooth hover effect */
}

.donor-logo img {
    max-width: 250px; /* Adjust as needed */
    height: 100px; /* Adjust as needed */
    object-fit: contain; /* Ensures the image fits within the dimensions */
    display: block; /* Removes extra space below image */
    border: 1px solid #eee; /* Light border around each logo */
    border-radius: 5px;
}

.donor-logo:hover {
    transform: scale(1.05); /* Slightly enlarge on hover */
}
:root {
    --main-green: #2daa4a;
  }

  .card-custom {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s forwards;
  }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .card-custom:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }

 .card-custom img {
  width: 100% !important;      /* Forcer largeur */
  height: 220px !important;    /* Forcer hauteur fixe */
  object-fit: cover !important; /* Recadrage pour bien remplir */
  display: block !important;   /* Supprime marges/padding par défaut */
  user-select: none;           /* Optionnel : empêcher la sélection */
  pointer-events: none;        /* Optionnel : éviter interactions */
  transition: transform 0.6s ease !important;
}

  .btn-green {
    background-color: var(--main-green);
    color: white;
    border: none;
    transition: all 0.3s ease;
    font-weight: bold;
    border-radius: 25px;
    padding: 8px 18px;
    display: inline-block;
  }

  .btn-green:hover {
    background-color: #269e42;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
  }

  .carousel-fade .carousel-item.active {
    opacity: 1;
  }

  @media (max-width: 767px) {
    .carousel-item .col-md-4 {
      flex: 0 0 100%;
      max-width: 100%;
    }
  }

  @media (min-width: 768px) and (max-width: 991px) {
    .carousel-item .col-md-4 {
      flex: 0 0 50%;
      max-width: 50%;
    }
  }

  .tools-list li {
  position: relative;
  padding-left: 25px;
  font-size: 1.05rem;
}
.tools-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0d6efd;
  font-weight: bold;
}
.object-fit-cover {
  object-fit: cover;
}

.hover-card {
  transition: transform 0.3s, box-shadow 0.3s;
}
.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.subscribe-container {
  display: flex;
  border-radius: 5px;
  overflow: hidden;
}

.subscribe-input {
  width: 300px;
  padding: 10px;
  background-color: #222;
  border: 1px solid #444;
  color: white;
  font-size: 16px;
  outline: none;
}

.subscribe-button {
  background-color: #00c853;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.subscribe-button:hover {
  background-color: #00e676;
}
/* --- Styles pour la MODALE BOOTSTRAP et son Contenu --- */

/* Ajustement du fond de la modale Bootstrap */
.modal-content {
    background-color: #ffffff; /* Fond blanc pur */
    border-radius: 10px; /* Bords légèrement arrondis pour la douceur */
    overflow: hidden; /* Important pour que l'image supérieure respecte les coins */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Ombre portée douce mais visible */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Légère bordure pour la définition */
    animation: fadeInScale 0.3s ease-out forwards; /* Animation d'apparition */
}

/* Animation d'apparition */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* En-tête de la modale Bootstrap */
.modal-header {
    border-bottom: 1px solid #eee; /* Bordure plus douce */
    padding: 20px 30px; /* Plus de padding */
    background-color: #f9f9f9; /* Un léger fond pour l'en-tête */
}

/* Titre par défaut de la modale Bootstrap (si utilisé) */
.modal-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 1.5rem; /* Taille standard pour le titre de l'en-tête */
}

/* Bouton de fermeture Bootstrap */

/* --- Styles pour le CONTENU Injecté dans le .modal-body --- */

/* Conteneur de l'image de l'article: la star de l'affichage */
.modal-image-container {
    width: 100%;
    height: 300px; /* Une hauteur généreuse pour une belle image */
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0; /* Couleur de fallback si l'image ne charge pas */
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image remplit l'espace sans déformation */
    display: block;
    transition: transform 0.4s ease-out; /* Effet de zoom subtil au survol */
}

.modal-image-container img:hover {
    transform: scale(1.05); /* Zoom légèrement l'image pour l'interactivité */
}

/* Contenu textuel de la modale: clarté et lisibilité */
/* Cette classe est appliquée à la div qui enveloppe le titre de l'article, les meta et le texte */
.modal-body-content-inner {
    padding: 35px 40px; /* Un espacement généreux pour le confort de lecture */
    font-family: 'Nunito', sans-serif; /* Utilisation de la police Nunito pour le corps de texte */
    color: #444444; /* Gris foncé pour une excellente lisibilité */
}

/* Titre de l'article dans la modale: accrocheur et clair */
/* C'est le titre de l'article, pas le titre de l'en-tête de la modale */
.modal-title-custom {
    font-size: 2.4rem; /* Grande taille pour le titre de l'article */
    font-family: 'Raleway', sans-serif; /* Police élégante pour les titres */
    font-weight: 700;
    color: #222222; /* Noir profond pour un contraste élevé */
    margin-bottom: 25px; /* Espacement après le titre */
    line-height: 1.3;
}

/* Méta-informations (auteur, date, catégorie): subtiles et informatives */
.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px; /* Espacement accru entre les éléments méta */
    margin-bottom: 30px; /* Espace avant le contenu principal */
    font-size: 0.95rem;
    color: #777777;
    border-bottom: 1px solid #eeeeee; /* Ligne de séparation élégante */
    padding-bottom: 20px;
}

.modal-meta .meta-item {
    display: flex;
    align-items: center;
    color: #555555;
    font-weight: 500;
}

.modal-meta .meta-item i {
    margin-right: 10px;
    color: #1a75ff; /* Une nuance de bleu vif, souvent utilisée comme accent */
    font-size: 1.1rem;
}

/* Contenu de l'article: aéré et facile à lire */
.modal-article-text {
    line-height: 1.8; /* Hauteur de ligne généreuse pour la lecture */
    font-size: 1.05rem; /* Taille de police légèrement plus grande */
    color: #333333; /* Texte bien contrasté */
    margin-bottom: 20px;
}

.modal-article-text p {
    margin-bottom: 1.2em; /* Espacement entre les paragraphes */
}

.modal-article-text h3 { /* Si votre contenu include des h3 */
    font-size: 1.8rem; /* Titres de section clairs */
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: #222222;
    margin-top: 35px;
    margin-bottom: 20px;
}

.modal-article-text blockquote { /* Si votre contenu include des blockquotes */
    background-color: #fcfcfc; /* Fond très léger pour les citations */
    border-left: 6px solid #1a75ff; /* Bordure d'accent, plus épaisse */
    padding: 20px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #666666;
    border-radius: 5px;
    font-size: 1.05rem;
}

/* Style des liens à l'intérieur du contenu de la modale */
.modal-body-content-inner a {
    color: #1a75ff; /* Utilise la couleur d'accent pour les liens */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.modal-body-content-inner a:hover {
    color: #0056b3; /* Effet de survol sur les liens */
    text-decoration: underline;
}

/* --- Media Queries pour une Responsivité Optimale --- */
@media (max-width: 992px) {
    .modal-dialog.modal-xl { /* Cible le modal-dialog XL */
        max-width: 85%; /* Ajuste la largeur de la modale */
    }
}

@media (max-width: 768px) {
    .modal-dialog.modal-xl {
        max-width: 95%;
    }
    .modal-content {
        border-radius: 5px;
    }
    .modal-header {
        padding: 15px 20px;
    }
    .modal-body-content-inner {
        padding: 25px;
    }
    .modal-title-custom {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .modal-meta {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    .modal-image-container {
        height: 220px;
    }
    .modal-article-text {
        font-size: 1rem;
    }
    .modal-article-text h3 {
        font-size: 1.6rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .modal-header {
        padding: 10px 15px;
    }
    .modal-body-content-inner {
        padding: 15px;
    }
    .modal-title-custom {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }
    .modal-meta {
        font-size: 0.9rem;
    }
    .modal-image-container {
        height: 180px;
    }
}
/* Animation de chargement */
.loading-animation {
  border: 4px solid rgba(0, 0, 0, 0.1); /* Bordure semi-transparente */
  border-top: 4px solid #3498db; /* Bordure colorée sur le dessus */
  border-radius: 50%; /* Pour faire un cercle */
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite; /* Nom de l'animation, durée, type, et répétition */
  margin: 20px auto; /* Centre l'animation */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.logo-container h4 {
  /* Ajoute une bordure en bas pour servir de séparateur */
  border-bottom: 1px solid #ccc; /* Ligne fine et grise */
  padding-bottom: 5px; /* Espace entre le texte et la ligne */
  margin-bottom: 5px; /* Espace entre la ligne et le span */
  width: 70%;
}
#contact{
  width: 30px;
  height: 30px;
}
/* --- Section --- */
#video-section {
  padding: 0px 20px;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #111;
  text-align: center;
}

.section-title i {
  margin-right: 10px;
  color: #e62117; /* Rouge YouTube */
}

/* --- Grille --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

/* --- Carte vidéo --- */
.video-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.video-card img {
  width: 100%;
  height: 157px; /* format 16:9 */
  object-fit: cover;
  display: block;
}

/* --- Infos vidéo --- */
.video-info {
  padding: 12px 15px;
}

.video-info h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 lignes */
  -webkit-box-orient: vertical;
}

.video-info h3 i {
  margin-right: 8px;
  color: #e62117;
}

.video-info p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: #666;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- Layout vidéo lecteur --- */
.video-layout {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.video-left {
  flex: 2;
  min-width: 0;
}

.video-left video {
  width: 100%;
  border-radius: 10px;
  background: #000;
}

.video-right {
  flex: 1;
  max-height: 80vh;
  overflow-y: auto;
}

/* --- Suggestions --- */
.video-suggestion {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}

.video-suggestion img {
  width: 120px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
}


.video-suggestion h5 {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-suggestion p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .video-layout {
    flex-direction: column;
  }
  .video-right {
    max-height: none;
    order: 2;
  }
  .video-left {
    order: 1;
  }
  .video-suggestion img {
    width: 100px;
    height: 60px;
  }
}

@media (max-width: 600px) {
  .video-info h3 {
    font-size: 1rem;
  }
}
.video-player-container {
  background: #f9f9f9;
}

#back-to-grid {
  background: #0fa03fe7;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

#back-to-grid:hover {
  background: #0fa03fe7;
}
/* --- NOUVEAU : Barre d'actions sous la vidéo --- */
.video-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee; /* Séparateur */
  margin-top: 20px;
  flex-wrap: wrap; /* Permet aux éléments de passer à la ligne sur petits écrans */
  gap: 15px; /* Espacement entre les groupes sur petits écrans */
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.channel-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.channel-details p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.subscribe-button {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-left: 20px; /* Espace entre les infos et le bouton */
}

.subscribe-button:hover {
  background: #333;
}

.video-interaction-buttons {
  display: flex;
  gap: 10px;
}

.interaction-button {
  background: #f2f2f2;
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #111;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.interaction-button:hover {
  background: #e0e0e0;
}

.interaction-button i {
  font-size: 1rem;
}

/* NOUVEAU : Border-box pour les suggestions */
.video-right {
  flex: 1;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid #ddd; /* Bordure ajoutée */
  border-radius: 10px; /* Coins arrondis */
  padding: 15px; /* Espacement interne */
  box-sizing: border-box; /* Inclure padding et border dans la largeur/hauteur */
  background-color: #fff; /* Fond blanc pour le contraste */
}

/* Ajustements Responsive pour la barre d'actions */
@media (max-width: 768px) {
  .video-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .video-interaction-buttons {
    margin-top: 15px;
    justify-content: flex-start; /* Aligner les boutons à gauche */
    width: 100%; /* Occuper toute la largeur disponible */
    flex-wrap: wrap; /* Permettre aux boutons de passer à la ligne */
  }
  .subscribe-button {
    margin-left: 0; /* Supprimer la marge sur petits écrans */
    margin-top: 10px; /* Ajouter une marge supérieure */
  }
}

.section-title,
.video-info h3,
#video-title,
.video-suggestion h5 {
  font-family: Arial, sans-serif; /* Remplacer par la police que vous souhaitez */
}

/* Styles pour le menu d'actualités */
    .actualites-menu {
        display: flex;
        justify-content: left;
    }

    .menu-item {
        background: transparent;
        border: none;
        margin-left: 30px;
        padding: 10px 10px;
        font-size: 1rem;
        cursor: pointer;
        position: relative;
        color: #e7e7e7ff;
        transition: color 0.3s ease;
    }

    .menu-item.active {
        color: #ffffffff;
        font-weight: bold;
    }

    .menu-item.active::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: #fdfdfd; /* Ligne rouge */
        border-radius: 2px;
    }

    /* Responsive : ajuster le menu sur mobile */
@media (max-width: 768px) {
    .menu-item {
        margin-left: 15px; /* Réduit sur tablette */
        padding: 8px 8px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .menu-item {
        margin-left: 0; /* Supprime la marge sur mobile */
        padding: 8px 12px;
        font-size: 0.9rem;
        margin-right: 0px; /* Ajoute une petite marge droite pour l'espacement */
    }
}

/* Styles pour les sections de contenu */
    .actualites-content {
        transition: opacity 0.5s ease;
    }

    .hidden {
        display: none;
    }

    .visible {
        display: block;
    }
    
    .video-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 20px;
      padding: 20px 0;
    }

    .video-card {
      border: 1px solid #ddd;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .video-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
   /* Titre de la section */
    .section-title {
        text-align: center;
        margin-bottom: 40px;
        color: #333;
        font-size: 2.5em;
        position: relative;
    }

    /* Soulignement animé du titre */
    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        margin: 10px auto 0;
    }

    /* Conteneur pour le contenu (audio et image) */
    .content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    @media (min-width: 768px) {
        .content-wrapper {
            flex-direction: row;
            justify-content: space-between;
            align-items: flex-start;
        }
    
    }

    /* Liste des audios */
    .audio-list {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    @media (min-width: 768px) {
        .audio-list {
            flex: 1;
        }
    }

    /* Style pour chaque élément audio */
    .audio-item {
        background-color: #f9f9f9;
        border-radius: 10px;
        padding: 25px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

    .audio-item:hover {
        transform: translateY(-5px);
    }

    .audio-item h3 {
        margin-top: 0;
        margin-bottom: 15px;
        color: #0056b3;
        font-size: 1.2em;
    }

    .audio-item audio {
        width: 100%;
        outline: none;
        border-radius: 5px;
    }
    
    /* Conteneur de l'image */
    .image-container {
        width: 100%;
        text-align: center;
        padding: 20px;
        border-radius: 10px;
        background-color: #fff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    @media (min-width: 768px) {
        .image-container {
            width: 40%;
            flex-shrink: 0;
        }
    }

    .image-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    }

    .image-caption {
        margin-top: 15px;
        font-style: italic;
        color: #666;
    }
/* Carousel responsive — maintient un ratio et cover sans couper les images */
/* ======================================================================
   Styles Spécifiques pour la Section Participations (Rencontres)
   ====================================================================== */

.participation-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Important pour les bords arrondis */
}

.participation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.participation-card .card-body {
    padding: 25px;
}



.participation-card .meta {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.participation-card .meta i {
    color:  #2daa4a; /* Icone couleur principale */
    margin-right: 5px;
}

.participation-card .card-text {
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ---------------------------
   Styles du Swiper (Galerie)
   --------------------------- */

.participation-swiper {
    margin: 20px 0;
    padding: 0 10px; /* Espace pour les flèches */
}

.participation-swiper .main-swiper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa; /* Fond clair pour les images contenues */
    margin-bottom: 10px;
}

/* Image principale */
.participation-swiper .main-swiper .swiper-slide img {
    width: 100%;
    max-height: 950px; /* Hauteur maximale pour les grands écrans */
    object-fit: contain; /* L'image est contenue sans être coupée */
    cursor: zoom-in; /* Indique la fonction Lightbox */
    border-radius: 10px;
}
@media (max-width: 768px) {
    .participation-swiper .main-swiper .swiper-slide img {
        max-height: 300px;
    }
}

/* Contrôles du Swiper (Flèches) */
.participation-swiper .swiper-button-next,
.participation-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    transition: background 0.3s;
}

.participation-swiper .swiper-button-next:hover,
.participation-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.7);
}

.participation-swiper .swiper-button-next::after,
.participation-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 900;
}

/* Pagination (petits points) */
.participation-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.8;
}
.participation-swiper .swiper-pagination-bullet-active {
    background: #007bff; /* Couleur RIO */
    opacity: 1;
}

/* ---------------------------
   Styles des Thumbnails
   --------------------------- */

.participation-swiper .thumbs {
    width: 100%;
    padding: 5px 0;
}

.participation-swiper .thumbs .swiper-slide {
    width: 80px;
    height: 60px;
    opacity: 0.6;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.participation-swiper .thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #007bff; /* Bordure active couleur RIO */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.participation-swiper .thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* L'image couvre le cadre du thumbnail */
    display: block;
}

/* Styles du bouton 'En lire plus' */
.btn-participation {
    color: #007bff;
    border-color: #007bff;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-participation:hover {
    background-color: #007bff;
    color: #fff;
}
.rencontre-links-collapse {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}
.rencontre-links-collapse h6 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.rencontre-links-collapse a {
    color: #007bff;
    font-weight: 500;
}
.rencontre-links-collapse i {
    width: 20px;
}

/* Correction pour les styles d'icônes dans la liste */
.rencontre-links-collapse ul {
    list-style: none;
    padding-left: 0;
}
.multimedia-section {
  margin-top: 40px;
}

.multimedia-section .section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.multimedia-section .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.multimedia-section .ratio {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.multimedia-section ul {
  padding-left: 0;
}

.multimedia-section ul li {
  display: flex;
  align-items: center;
  gap: 8px; /* Espacement entre l'icône et le texte */
}

.multimedia-section ul li i {
  font-size: 1.2rem; /* Taille des icônes */
}

.multimedia-section ul li a {
  font-size: 1rem;
  text-decoration: none;
}

.multimedia-section ul li a:hover {
  text-decoration: underline;
}

/* Design pour les métadonnées */
.meta-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  align-items: center;
}

.meta-top ul li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  color: #555;
}

.meta-top ul li a {
  text-decoration: none;
  color: #007bff;
}

.meta-top ul li a:hover {
  text-decoration: underline;
}

/* Bouton de partage */
#share-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  border-radius: 20px;
  padding: 5px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#share-btn:hover {
  background-color: #007bff;
  color: #fff;
}

/* Design pour les liens multimédias */
.multimedia-section ul {
  padding-left: 0;
  list-style: none;
}

.multimedia-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.multimedia-section ul li i {
  font-size: 1.2rem;
}

.multimedia-section ul li a {
  font-size: 1rem;
  text-decoration: none;
  color: #007bff;
}

.multimedia-section ul li a:hover {
  text-decoration: underline;
}

/* Style pour les mots-clés cliquables */
.content a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.content a:hover {
  text-decoration: underline;
  color: #0056b3;
}
.comments-section .comment strong { color: #007bff; }
.comments-section .comment { box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.comments-section .section-title { font-weight: bold; font-size: 1.3rem; }
.comments-section .alert { font-size: 0.95em; }
.comments-section .comments-list { margin-top: 20px; }
/* Commentaires : design propre, avatar initial, reply form */
.comments-list { margin-top: 1.5rem; }
.comment {
  display: flex;
  gap: 1rem;
  padding: 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e9ecef;
  box-shadow: 0 6px 18px rgba(22,27,34,0.04);
  margin-bottom: 12px;
}
.comment .avatar {
  width:48px;
  height:48px;
  border-radius:50%;
  background:linear-gradient(135deg,#6c63ff,#00c6ff);
  color:#fff;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  flex-shrink:0;
}
.comment .body { flex:1; }
.comment .meta { display:flex; gap:0.75rem; align-items:center; margin-bottom:6px; color:#6c757d; font-size:0.9rem; }
.comment .meta .name { font-weight:600; color:#333; }
.comment .meta .email { color:#495057; background:#f1f3f5; padding:2px 6px; border-radius:6px; font-size:0.85rem; }
.comment .text { color:#333; line-height:1.6; }

/* Reply button */
.comment .actions { margin-top:8px; display:flex; gap:8px; }
.reply-btn {
  background: transparent;
  border: 0;
  color: #0d6efd;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.95rem;
}
.reply-btn:hover { text-decoration:underline; }

/* Reply form (hidden by default) */
.reply-form { display:none; margin-top:10px; }
.reply-form.active { display:block; }
.reply-form textarea { min-height:80px; resize:vertical; }

/* Indentation for replies */
.comment.reply { margin-left: 56px; background: #fbfbfd; }

/* Small responsive */
@media (max-width: 576px) {
  .comment { flex-direction: row; gap:10px; }
  .comment .avatar { width:44px; height:44px; font-size:0.95rem; }
}

@media (max-width: 640px) {

/* Styles pro pour "Ressources & références" */
.reference-card,
.related-links {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  color: #1f2937;
  margin-top: 18px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Titre et description */
.reference-card h6,
.related-links h6 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 650;
  color: #0b1220;
}
.reference-card .desc,
.related-links .desc {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 0.92rem;
}

/* Liste en grille responsive */
.reference-list,
.related-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Item individuel */
.reference-item,
.related-links li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(250,250,250,0.6));
  border: 1px solid rgba(14, 22, 32, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 64px;
}

/* Hover élégant */
.reference-item:hover,
.related-links li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(12, 20, 40, 0.08);
  border-color: rgba(13,110,253,0.12);
}

/* Icône / vignette */
.reference-item .icon,
.related-links li .me-2 {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(2,6,23,0.06);
}

/* Couleurs par type */
.icon-youtube { background: #FF3B30; }
.icon-google  { background: linear-gradient(45deg,#4285F4,#34A853); }
.icon-facebook{ background: #1877F2; }
.icon-file    { background: #6B7280; }
.icon-link    { background: #475569; }

/* Texte du lien */
.ref-title,
.related-links a {
  display: block;
  font-weight: 600;
  color: #0b1220;
  font-size: 0.98rem;
  text-decoration: none;
  line-height: 1.15;
  max-width: calc(100% - 10px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Host / meta */
.ref-host,
.related-links .small {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Petite étiquette domaine à droite (si besoin) */
.ref-meta {
  margin-left: 8px;
  font-size: 0.78rem;
  color: #475569;
}

/* Mobile tweaks */
@media (max-width: 576px) {
  .reference-card, .related-links { padding: 12px; }
  .reference-item, .related-links li { padding: 10px; gap: 10px; min-height: 56px; }
  .reference-list { grid-template-columns: 1fr; }
  .reference-item .icon { width:44px; height:44px; font-size:16px; border-radius:8px; }
  .ref-title { font-size: 0.96rem; }
}

/* Optionnel : icône inline pour .related-links existant (compatibilité) */
.related-links .fab,
.related-links .fas { font-size: 18px; color: inherit; }

    /* Override pour afficher correctement les SVG Google / YouTube */
    .icon-google { background: transparent; } /* laisser le G coloré visible */
    .icon-google svg { width:22px; height:22px; display:block; }
    .icon-youtube svg { width:20px; height:20px; display:block; }
    
}
   /* Remplacement visuel pro pour Références */
    .reference-card { background:#fff; border:1px solid #eef2f6; border-radius:12px; padding:16px; margin-top:18px; box-shadow:0 6px 18px rgba(15,23,42,0.06); }
    .reference-card h6 { margin:0 0 6px; font-size:1rem; font-weight:700; color:#0b1220; }
    .reference-card .desc { color:#6b7280; font-size:0.92rem; margin-bottom:12px; }

    .reference-list { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }

    .reference-item { display:flex; gap:12px; align-items:center; padding:10px; border-radius:10px; background:linear-gradient(180deg,#fff,#fbfbfd); border:1px solid rgba(14,22,32,0.03); transition:transform .18s,box-shadow .18s; min-height:64px; }
    .reference-item:hover { transform:translateY(-4px); box-shadow:0 12px 30px rgba(12,20,40,0.08); }

    .reference-item .icon { width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:18px; flex-shrink:0; box-shadow:0 4px 12px rgba(2,6,23,0.06); }
    .icon-youtube { background:#FF3B30; }
    .icon-google  { background:linear-gradient(135deg,#4285F4 0%,#34A853 50%,#FBBC05 100%); }
    .icon-facebook{ background:#1877F2; }
    .icon-file    { background:#6B7280; }
    .icon-link    { background:#475569; }

    .ref-body { flex:1; min-width:0; }
    .ref-title { display:block; font-weight:600; color:#0b1220; font-size:0.98rem; text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ref-host { color:#6b7280; font-size:0.82rem; margin-top:4px; }

    .ref-fav { width:18px; height:18px; border-radius:4px; margin-left:8px; flex-shrink:0; }

    @media (max-width:576px) {
      .reference-card { padding:12px; }
      .reference-list { grid-template-columns:1fr; }
      .reference-item { min-height:56px; padding:10px; }
      .reference-item .icon { width:44px; height:44px; font-size:16px; }
    }
