/* === BASE === */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f3f3f3;
}
.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;
  background-color: #ffffff;
  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 */
}




/* === DETAIL-CONTAINER === */
.detail-container {
  display: flex;
  /* Utilise flexbox pour mettre les éléments côte à côte */
  flex-direction: row;
  /* Les éléments seront côte à côte */
  gap: 20px;
  /* Espacement entre les éléments */
  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 */
  text-align: center;

}

/* === 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 */
}

/* === MINIATURES DES VIDÉOS === */
.video-thumbnails {
  background-color: #ffffff;
  flex: 1;
  /* Le lecteu
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacement entre les cartes */
}

.video-thumbnail {
   text-decoration: none;
  margin: 30px;
  background-color: #000000;
  display: flex;
  /* Utilisation de flexbox pour aligner l'image et le texte */
  gap: 20px;
  /* Espacement entre l'image et le texte */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  /* Pour arrondir les coins des images et du texte */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
   align-items: center;
  /* Centre verticalement */
  justify-items: center;
  /* Transition douce pour les effets */
}

.video-thumbnail:hover {
   text-decoration: none;
  transform: scale(1.05);
  /* Effet de zoom au survol */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Ombre portée au survol */
}

.thumbnail-image {
  flex: 1;
  /* L'image prend 1/3 de la largeur */
  max-width: 300px;
  /* Limite la largeur de l'image */
  overflow: hidden;
}

.thumbnail-image img {
  width: 100%;
  /* L'image occupe toute la largeur du conteneur */
  height: auto;
  /* Garder le ratio de l'image */
  object-fit: cover;
  /* Recadre l'image pour qu'elle remplisse le conteneur */
  border-radius: 8px;
  /* Bordures arrondies */
}

.thumbnail-info {
  flex: 2;
  /* Le texte prend 2/3 de la largeur */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centrer verticalement le texte */
  padding: 10px;
  /* Un peu d'espace autour du texte */
}

.thumbnail-title {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 8px;
  /* Espacement entre le titre et la description */
}

.thumbnail-description {
   text-decoration: none;
  font-size: 12px;
  color: #ece8e8;
  line-height: 1.5;
}



.video-link {
  text-decoration: none; /* Enlève le soulignement */
}


.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;
  
}

.video-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #07873a;
  margin-bottom: 15px;
}

.video-description {
  text-align: justify;
  font-size: 15px;
  color: #333;
  margin: 15px auto 30px;
  max-width: 900px;
  line-height: 1.6;
}


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

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

/* 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 */

/* 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;
}







.cards-animaux {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 25px;
}

.card-animal {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
}

.animal-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.animal-info {
    padding: 12px;
}

.prix {
    font-size: 18px;
    font-weight: bold;
    color: #07873a;
}

.vendeur {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #eee;
}

.vendeur-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.vendeur-nom {
    font-weight: bold;
}















/* === 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:
      "flash"
      "carousel "
      " actualite"
      "une "
      "video "
      "audio "
      "conseil "
      "direction "
      "delegue "
      "coordinateur "
      "document "
      "galerie "
      "partenaire "
    ;
  }

  /* .detail-container devient une colonne sur mobile */
  .detail-container {
    flex-direction: column;
    /* Disposition verticale */
    gap: 15px;
    /* Espacement entre le lecteur et les miniatures */
  }

  .youtube-player {
    max-width: 100%;
    /* Le lecteur prend 100% de la largeur de l'écran sur mobile */
    margin-right: 0;
    /* Suppression de l'espace à droite */
  }

  .video-thumbnails {
    max-width: 100%;
    /* Les miniatures occupent également 100% de la largeur sur mobile */
    gap: 10px;
    /* Espacement réduit entre les miniatures */
  }

  .video-thumbnail img {
    width: 100%;
    /* Les miniatures occupent toute la largeur */
    height: auto;
    /* Maintient le ratio d'aspect des images */
  }
}