/* === BASE === */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
     background-color: #07873a;
}
.entete {
  background-color: #07873a;
  height: 25px;
  width: 100%;
  color: #ffffff;
  font-size: 11px;
  text-align: center;
  padding-top: 10px;
}

/* === CONTENEUR PRINCIPAL === */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";
  gap: 10px;
  padding: 10px;
  max-width: 1350px;
  background-color: #fff;
  margin: 0 auto;
}


/* === MAIN === */
.main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-area: main;
  grid-template-areas:
    "detail-container";
  align-items: center;  /* Centre verticalement */
  justify-items: center;  /* Centre horizontalement */
}




/* Assurez-vous que le container prend toute la largeur */
.detail-container {
    flex-direction: column;
   gap: 20px;
    grid-area: detail-container;
    display: flex; /* Utilisation de flexbox pour mettre les éléments côte à côte */
    justify-content: space-between; /* Sépare les éléments à gauche et à droite */
    width: 50%; /* Prend toute la largeur de l'écran */
    padding: 20px; /* Espace autour du contenu */
    box-sizing: border-box; /* Inclut padding et bordure dans la largeur */
}

/* Style pour le lecteur YouTube */
.youtube-player {
    flex: 3; /* Le lecteur prend 3/4 de la largeur */
    max-width: 70%; /* Limite la taille à 70% de l'écran */
    margin-right: 20px; /* Espacement entre le lecteur et les vidéos */
}

/* Style pour les miniatures de vidéos */
.video-thumbnails {
    flex: 1; /* Les miniatures prennent 1/4 de la largeur */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espacement entre les miniatures */
}

/* Miniature de vidéo */
.video-thumbnail img {
    width: 100%; /* Largeur pleine pour la miniature */
    height: auto; /* Hauteur automatique pour garder la proportion */
    border-radius: 8px; /* Coins arrondis pour un meilleur effet */
    cursor: pointer; /* Curseur en forme de main */
}

/* Style de chaque vidéo dans la liste */
.video-thumbnail p {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
}




.flash {
  display: grid;
  grid-area: flash;
  background-color: #07873a;
  height: 100%;
  border-radius: 30px;
}

.carousel {
  display: grid;
  grid-area: carousel;
}

.actualite {
  display: grid;
  grid-area: actualite;
}

.une {
  display: grid;
  grid-area: une;
}

.video {
  display: grid;
  grid-area: video;
}

.audio {
  display: grid;
  grid-area: audio;
}

.conseil {
  display: grid;
  grid-area: conseil;
}

.direction {
  display: grid;
  grid-area: direction;
}

.delegue {
  display: grid;
  grid-area: delegue;
}

.coordinateur {
  display: grid;
  grid-area: coordinateur;
}

.document {
  display: grid;
  grid-area: document;
}

.galerie {
  display: grid;
  grid-area: galerie;
}

.partenaire {
  display: grid;
  grid-area: partenaire;
}



/* === HEADER === */
.header {
  display: grid;
  grid-area: header;
  grid-template-columns: 3fr 2fr 3fr 1fr;
  grid-template-areas: "header_pres logo header_icon amoirier";
  align-items: center;
  gap: 10px;
}

/* Présidents */
.header_pres {
  grid-area: header_pres;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 10px;

}

.president {
  text-align: center;
}

.president .photo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #06ce06;
  padding: 5px;
  transition: border 0.3s ease;
  /* transition douce pour la bordure */
}

/* Bordure orange au survol */
.president .photo:hover {
    transform: scale(1.1);
  border: 2px solid orange;
  /* Change la bordure en orange au survol */
}


.photo {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #06ce06;
  padding: 5px;
  transition: border 0.3s ease;
}

/* Taille spéciale pour SAWADOGO Issaka */
.photo.speciale {
  width: 100px;
  /* EXEMPLE : taille plus grande */
  height: 100px;
  border: 3px solid #ff8800;
  /* Exemple autre couleur */
}


/* Taille spéciale pour SAWADOGO Issaka */
.president .photo.speciale:hover {
  width: 100px;
  /* EXEMPLE : taille plus grande */
  height: 100px;
  border: 3px solid #06ce06;
  /* Exemple autre couleur */
}

/* Bordure orange au survol */
.president .photo:hover {
  transform: scale(1.1);
  border: 3px solid orange;
  /* Change la bordure en orange au survol */
}

.president .nom {
  display: block;
  font-weight: bold;
  color: #133a03;
  font-size: 11px;
  margin-top: 5px;
}

.president-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.president-link:hover {
  text-decoration: none;

}
.president .fonction {
font-weight: bold;
  
}
.president .fonction,
.president .titre {
  display: block;
  font-size: 9px;
  font-weight: 300;
  color: #07873a;
  
}

/* Logo principal */
.logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  height: 120px;
  max-width: 100%;
  
}


.logoP img {
  height: 250px;
  max-width: 100%;
   display: flex;
  justify-content: center;
  align-items: center;
}
/* Icônes header */
.header_icon {
  grid-area: header_icon;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #e2f0e8;
  border-radius: 50px;
  height: 100px;
  flex-wrap: wrap;
  text-align: center;
}

.header_icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Boîte pour chaque icône */
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #133a03;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.3s ease;
}

/* === Point rouge clignotant avant "Direct" === */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  margin-right: 5px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

/* Animation du clignotement */
@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}

.icon-box img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 5px;
}

/* Effet au survol */
.icon-box:hover {
  transform: scale(1.1);
  color: #07873a;
}


/* Armoiries */
.amoirier {
  grid-area: amoirier;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: #133a03;
  font-size: 12px;
  font-weight: bolder;
  transition: transform 0.2s ease, color 0.3s ease;
}

.amoirier img {
  width: 100px;
  height: 100px;
  max-width: 100%;
  margin-bottom: 5px;
}

/* Effet au survol */
.amoirier:hover {
  transform: scale(1.1);
  color: #07873a;
}

/* ==== MENU NAVBAR ==== */
.nav {
  grid-area: nav;
  background-color: #07873a;
  color: white;
  height: auto;
  border-radius: 30px;
  padding: 10px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.logo_nav img {
  height: 40px;
  max-width: 100%;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 12px;
  transition: color 0.3s;
  background-color: #07873a;
  height: 40px;
  padding: 5px 10px;
  border-radius: 30px;
}

.nav-links li a:hover {
  color: #081f02;
  background-color: #f19f06;
}

/* ==== MENU BURGER ==== */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* === FOOTER === */
.footer {
  grid-area: footer;
  background-color: #07873a;
  color: #fff;
  padding: 30px 20px;
  border-radius: 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-logo img {
  width: 90px;
}

.footer-logo p {
  color: #ccc;
  font-size: 13px;
}

.footer-links h4,
.footer-social h4,
.footer-contact h4 {
  color: #f1c40f;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 5px 0;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  color: #f1c40f;
}

.footer-social a {
  color: #ccc;
  font-size: 22px;
  margin-right: 10px;
}

.footer-social a:hover {
  color: #f1c40f;
}

/* Pour bien centrer l'image et le texte à l’intérieur */
.detail-header {
  display: flex;
  align-items: center;
  justify-content: center; /* 🔹 Centre image + texte */
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
  text-align: left; /* Laisse le texte aligné proprement */
}

.detail-header img {
  width: 250px;
  height: 250px;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid #0b4b1e;
}

.detail-info {
  max-width: 500px;
}

.detail-info h2 {
  color: #0b4b1e;
  margin-bottom: 10px;
}

.detail-info p {
  margin: 5px 0;
  color: #333;
}

.description {
  margin-top: 25px;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

.video-section {
  margin-top: 30px;
  text-align: center;
  width: 100%;
}

.video-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  color: white;
  background-color: #0b4b1e;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #14692f;
}
/* === RESPONSIVE === */


/* Mobiles (≤ 768px) */
@media (max-width: 768px) {

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
  }

  .header {
    display: grid;
    grid-area: header;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "header_pres"
      "header_icon"
      "amoirier";
    text-align: center;
  }

  .header_pres {
    flex-direction: row;
    grid-area: header_pres;

  }

  .logo img {
    height: 90px;
  }

  .header_icon img {
    width: 50px;
    height: 50px;
  }

  .header_icon {
    flex-direction: row;
    justify-content: space-evenly;
    height: auto;
    padding: 10px;
  }

  .icon-box img {
    width: 45px;
    height: 45px;
  }

  .icon-box span {
    font-size: 11px;
  }

  /* Menu burger */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #07873a;
    display: none;
    text-align: center;
    border-radius: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 10px;
    font-size: 14px;
    border-radius: 0;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social a {
    font-size: 28px;
  }

  
.main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  grid-area: main;
  grid-template-areas:
    "detail-container";
  align-items: center;  /* Centre verticalement */
  justify-items: center;  /* Centre horizontalement */
}




/* Assurez-vous que le container prend toute la largeur */
.detail-container {
    flex-direction: column;
   gap: 20px;
    grid-area: detail-container;
    display: flex; /* Utilisation de flexbox pour mettre les éléments côte à côte */
    justify-content: space-between; /* Sépare les éléments à gauche et à droite */
    width: 100%; /* Prend toute la largeur de l'écran */
    padding: 20px; /* Espace autour du contenu */
    box-sizing: border-box; /* Inclut padding et bordure dans la largeur */
}


}