/* === 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 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 200px auto auto auto auto auto auto auto auto auto auto auto auto auto;
  grid-area: main;
  grid-template-areas:
    "flash flash"
    "carousel actualite"
    "une actualite"
    "une actualite"
    "video video"
    "commissaire_compte commissaire_compte"
    "commission_arbitrage commission_arbitrage"
    "delegue delegue"
    "direction direction"
    "audio audio"
    "coordinateur coordinateur"
    "document document"
    "galerie galerie"
    "partenaire partenaire"
  ;
}

.carousel {
  display: grid;
  grid-area: carousel;
  grid-template-columns: 100%;
  grid-template-rows: 60px 600px;
  grid-template-areas: "Une"
    "carousel";
}

.Une {
  grid-area: Une;

  color: #ff5100;
  font-weight: bold;
  padding-top: 10px;
}

.commissaire_compte h1 {
  text-align: center;
  margin-bottom: 25px;
}

.commission_arbitrage h1 {
  text-align: center;
  margin-bottom: 25px;
}

/* === ACTUALITÉ À LA UNE === */
.une {
  width: 100%;
  padding: 30px 15px;
  background: #ffffff;
}

.une h1 {
  text-align: center;
  margin-bottom: 25px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  height: auto;
  justify-content: center;
  gap: 15px;
   background: #07873a;
   padding: 2%;
}

/* Lien cliquable transformé en card */
.card {
  text-decoration: none;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  width: 345px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-image {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 98%;
  background: #07873a;
  color: #ffffff;
  font-size: 13px;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
}

.card-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 18px;
  color: #07873a;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  color: #373837;
  line-height: 1.4em;
  flex-grow: 1;
}

.card-category {
  background-color: #07873a;
  color: #07873a;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
}


.carousel-container {
  grid-area: carousel;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 0px;
}

/* Correction du titre H1 */
.carousel-container h1 {
  width: 100%;
  text-align: center;
  font-size: 32px;
  color: #07873a;
  font-weight: 800;
  margin-bottom: 20px;
  margin-top: 10px;
  letter-spacing: 1px;
}

/* === DETAIL CONTAINER === */
.detail-container {
  width: 100%;
  /* Largeur ajustable selon ton besoin */
  max-width: 900px;
  /* Limite la largeur pour les grands écrans */
  background-color: #fafafa;
  /* Fond clair pour contraster avec le reste */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;

  gap: 20px;
}

.flash_card_cat.regionnal {
  padding: 5px;

  color: #eeeeec;
  /* Vert pour la catégorie régionale */
}

.flash_card_cat.national {
  padding: 5px;

  color: #04b321;
}

.flash_card_cat.international {
  padding: 5px;

  color: #fab941;
}

.flash_info {
  overflow: hidden;
  width: 100%;
}

.flash_track {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
}

.flash_arrow {
  background-color: #07873a;
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 50%;

  z-index: 1000;
  margin: 0 5px;
}

.flash_arrow:hover {
  background-color: #07873a;
}

.flash_arrow.left {
  order: 0;
}

.flash_arrow.right {
  order: 2;
}


/* === FLASH INFO === */
.flash {
  display: grid;
  grid-area: flash;
  background-color: #07873a;
  height: 100%;
  grid-template-columns: 10% 90%;
  grid-template-rows: 1fr;
  grid-template-areas: "flash_titre flash_info_wrapper";
  overflow: hidden;

}


.flash_info_wrapper {
  grid-area: flash_info_wrapper;
  display: flex;
  align-items: center;
  position: relative;
}

/* Titre gauche */
.flash_titre {
  grid-area: flash_titre;
  background-color: #07873a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.h24 {
  color: #fff;
  font-size: 40px;
  font-weight: bolder;
}

.h24_info {
  color: #fca607;
  font-size: 15px;
}

/* Zone info défilante */
.flash_info {
  grid-area: flash_info;
  overflow: hidden;
  position: relative;
}

/* Pause au survol */
.flash_info:hover .flash_track {
  animation-play-state: paused;
}

/* Cartes *  background: linear-gradient(135deg, #07873a, #0b4b1e); /* Dégradé vert */

.flash_card {
  flex: 0 0 260px;
  background-color: #07873a;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 8px;
  min-height: 100px;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  /* Enlève le soulignement   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.flash_card:hover {
  transform: scale(1.02);
  text-decoration: none;
  color: #02410d;
  background-color: #fca607;
  /* Enlève le soulignement */

}

.flash_card img {
  width: 90px;
  height: 90px;
  border-radius: 5px;
  object-fit: cover;
}

.flash_card_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.flash_card_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash_card_time {
  color: #02410d;
  background-color: #fca607;
  font-size: 11px;
  padding: 5px;
  font-weight: bold;

}

.flash_card_title {
  font-size: 13px;
  color: #ffffff;
  font-weight: bold;
  margin: 0;
  margin-left: 5px;
}

.flash_card_title:hover {
  font-size: 13px;
  color: #122b01;
  font-weight: bold;
  margin: 0;
  margin-left: 5px;

}

.flash_card_cat {
  font-size: 11px;
  color: #fca607;
  font-weight: bold;
  margin-top: 4px;
}

.flash_card_excerpt {
  font-size: 11px;
  color: #ffffff;
  margin-top: 3px;
  font-weight: 300;
  line-height: 1.3;
}



/* Ajouter un léger effet d'ombre pour mieux les distinguer */
.flash_arrow:hover {
  background-color: #14692f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.actualite {
  display: grid;
  grid-area: actualite;
  text-decoration: none;
  /* Enlève le soulignement */
}

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


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

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

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


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

.document h1 {
  text-align: 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;
}

.nav-links li a.active {
  color: #081f02;
  background-color: #f19f06;
  /* même couleur que le hover */
}

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

.video-section iframe {
  width: 100%;
  max-width: 700px;
  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;
}

/* === MINIATURES DES VIDÉOS === */
.video-thumbnails {
  background-color: #ffffff;

  /* Le lecteu
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacement entre les cartes */
}

.video-thumbnail {
  text-decoration: none;
  margin: 30px;
  background-color: #ffffff;
  color: #081f02;
  display: flex;
  /* Utilisation de flexbox pour aligner l'image et le texte */

  /* Espacement entre l'image et le texte */

  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;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* 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 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 {
  text-decoration: none;
  /* Le texte prend 2/3 de la largeur */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centrer verticalement le texte */
  padding: 20px;
  /* Un peu d'espace autour du texte */
}

.thumbnail-title {
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  color: #ff5100;

  /* Espacement entre le titre et la description */
}

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

/* === Icône de lecture sur l’image === */
.thumbnail-image {
  position: relative;
}

.thumbnail-image img {
  display: block;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* pour ne pas bloquer le clic */
}

.video-thumbnail:hover .play-icon {
  opacity: 1;
  color: #fca607;
}

/* === Enlève tout soulignement sur les titres et descriptions === */
.video-link,
.video-link:hover,
.thumbnail-title,
.thumbnail-description {
  text-decoration: none !important;
}

.thumbnail-title {
  color: #ff5100;
}

.thumbnail-description {
  color: #03470c;
}


/* === Logo positionné sur l'image === */
.card-image {
  position: relative;
  overflow: hidden;
}

.card-logo {
  position: absolute;
  top: 15px;
  /* distance du haut */
  left: 15px;
  /* distance de la droite */
  z-index: 5;
}

.card-logo img {
  width: 60px;
  /* taille du logo */
  height: auto;
  opacity: 0.9;
  /* légère transparence */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-logo img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* === STYLE MEMBRES DU CONSEIL === */
.video {
  padding: 40px 10px;
  background: #ffffff;
}


.video h1 {
  text-align: center;
  color: #07873a;

  margin-bottom: 20px;
}

.scroll-wrapper {
  background-color: #f4f7f5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 90%;
  margin: auto;
  padding: 0 40px;
}

.video-thumbnails {
  text-align: center;
  margin-bottom: 20px;
}

.conseil h1 {
  text-align: center;
  margin-bottom: 20px;
}


.coordinateur {
  text-align: center;
}

.delegue {
  text-align: center;
}


.direction {
  text-align: center;
}

.audio {
  text-align: center;
}

.conseil-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 10px;
}

.conseil-container::-webkit-scrollbar {
  height: 6px;
}

.conseil-container::-webkit-scrollbar-thumb {
  background: #07873a;
  border-radius: 4px;
}

/* === Carte === */
.conseil-card {
  flex: 0 0 200px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  border: 1px solid #03470c;
  transition: transform 0.3s ease;
}

.conseil-card:hover {
  transform: translateY(-5px);
}

.conseil-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #03470c;
  margin-bottom: 10px;
}

/* === Carte === */
.conseil-card2 {
  flex: 0 0 200px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  border: 1px solid #03470c;
  transition: transform 0.3s ease;
}

.conseil-card2:hover {
  transform: translateY(-5px);
}

.conseil-card2 img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;

  margin-bottom: 10px;
}

.conseil-card2 img {
  width: 120px;
  height: 120px;
  border-radius: 5%;
  object-fit: cover;

  margin-bottom: 10px;
}


/* Image du document */
.card-image_doc {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image_doc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.conseil-card h3 {
  color: #07873a;
  font-size: 18px;
  margin-bottom: 5px;
}

.conseil-card h4 {
  color: #444;
  font-size: 14px;
  margin-bottom: 8px;
}

.conseil-card p {
  font-size: 13px;
  color: #555;
  text-align: justify;
}


.conseil-card2 h3 {
  color: #07873a;
  font-size: 18px;
  margin-bottom: 5px;
}

.conseil-card2 h4 {
  color: #444;
  font-size: 14px;
  margin-bottom: 8px;
}

.conseil-card2 p {
  font-size: 13px;
  color: #555;
  text-align: justify;
}


/* === Boutons de défilement === */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #137006;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10;
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn:hover {
  background: #056c2f;
}

/* === Responsive === */
@media (max-width: 768px) {
  .conseil-card {
    flex: 0 0 70%;
    padding: 15px;
  }

  .scroll-wrapper {
    max-width: 80%;
  }

  .scroll-btn {
    display: none;
    /* on cache les flèches sur mobile (défilement tactile) */
  }

  .conseil-card img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .conseil-card {
    flex: 0 0 85%;
  }
}


/* ===== CAROUSEL ===== */

/* Image principale */
.main-image {
  position: relative;
  width: 90%;
  height: 550px;
  overflow: hidden;
}

.main-image img {
  width: 98%;
  height: 98%;
  object-fit: cover;
  transition: opacity 0.8s ease;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-left: 2%;
  margin-right: 5%;
  width: 85%;
  height: 200px;
  color: #fff;
  padding: 35px;
  font-size: 30px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Miniatures */
.thumbnails {
  width: 25%;
  display: flex;
  flex-direction: column;

}

.thumb {
  cursor: pointer;
  position: relative;
  flex: 1;
  overflow: hidden;

  transition: all 0.3s;
}

.thumb img {
  width: 98%;
  height: 98%;
  object-fit: cover;
  filter: brightness(70%);
  transition: filter 0.3s ease;
}

.thumb:hover img {
  filter: brightness(100%);
}

.thumb.active {
  border-left: 10px solid #fca607;
}

.thumb.active img {
  filter: brightness(100%);
}










/* ==== GALERIE PHOTO ==== */
.galerie {
  text-align: center;
  margin: 50px 0;
}

.galerie h1 {
  text-align: center;
  margin-bottom: 20px;
}

.galerie-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.galerie-container {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  width: 100%;
}

.galerie-container::-webkit-scrollbar {
  height: 6px;
}

.galerie-container::-webkit-scrollbar-thumb {
  background: #07873a;
  border-radius: 5px;
}

.galerie-item {
  flex: 0 0 auto;
  width: 260px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galerie-item:hover {
  transform: scale(1.05);
}

.galerie-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #07873a;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.galerie-btn:hover {
  background: #055c25;
}

.galerie-btn.left {
  left: 10px;
}

.galerie-btn.right {
  right: 10px;
}

.no-image {
  text-align: center;
  width: 100%;
  color: #777;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .galerie-item {
    width: 75%;
    height: 160px;
  }

  .galerie-btn {
    font-size: 16px;
    padding: 8px;
  }
}














/* === PARTENAIRES === */
.partenaire {
  text-align: center;
  margin: 60px 0;
  overflow: hidden;
}

.partenaire h1 {
  text-align: center;
  margin-bottom: 25px;
}

.slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 300px;
}

.slide-track {
  display: flex;
  width: calc(250px * 20);
  /* ajustable selon nombre d’éléments */
  animation: scroll 30s linear infinite;
}

.slide {
  flex: 0 0 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 20px;
  transition: transform 0.3s ease;
}

.slide img {
  width: 250px;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);

  transition: all 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Animation du défilement automatique */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .slide {
    flex: 0 0 130px;
    margin: 0 10px;
  }

  .slide img {
    width: 250px;
  }
}

.no-partner {
  color: #777;
  text-align: center;
  width: 100%;
}




.direction .scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 10px;
}

.direction .conseil-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  scroll-behavior: smooth;
  padding: 10px;
}

.direction .conseil-card {
  flex: 0 0 220px;
  background-color: #ffffff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.direction .conseil-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.direction .scroll-btn {
  background: #07873a;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.direction .scroll-btn:hover {
  background: #056d2f;
}









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

  .flash {
    display: grid;
    padding-bottom: 20px;
    grid-area: flash;
    background-color: #07873a;
    height: 90%;
    grid-template-columns: 100%;
    grid-template-rows: 60px 1fr;
    grid-template-areas: "flash_titre "
      "flash_info_wrapper";
    overflow: hidden;
  }


  .flash_info_wrapper {
    grid-area: flash_info_wrapper;
    display: flex;
    align-items: center;
    position: relative;
  }

  /* Titre gauche */
  .flash_titre {
    grid-area: flash_titre;
    background-color: #07873a;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }

  .h24 {
    color: #fff;
    font-size: 20px;
    font-weight: bolder;
  }

  .h24_info {
    color: #f3db05;
    font-size: 10px;
  }


  .main-image {
    width: 100%;
    height: 450px;
  }

  .thumbnails {
    flex-direction: row;
    width: 100%;
    height: 100px;
  }

  .carousel {

    display: grid;
    grid-area: carousel;
    grid-template-columns: 100%;
    grid-template-rows: 100px 570px;
    grid-template-areas:
      "Une"
      "carousel";
  }

  .Une {
    padding-top: 15px;
    height: 100px;
    grid-area: Une;
    font-size: 25px;

  }

  .carousel-container {


    grid-area: carousel;
    width: 100%;
    height: 550px;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;


  }

  .caption {
    font-size: 15px;
    height: 100px;
  }

  .thumb {
    flex: 1;
    border-left: none;
    border-bottom: none;
    border-top: 2px solid #eee;
  }

  .entete {
    background-color: #07873a;
    height: 25px;
    width: 100%;
    color: #ffffff;
    font-size: 10px;
    text-align: center;
    padding-top: 10px;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }

  .une {
    width: 90%;
    padding: 30px 15px;
    background: #ffffff;
  }

  .card {
    text-decoration: none;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    width: 95%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: inherit;
  }

}