body {
  margin: 0px;
  background-color: #121212;
  background-attachment: fixed;
  font-family: "Lato", serif;
  padding-top: 80px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #121212;
  color: #f4a261;
  padding: 10px 5px;
  margin: auto;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
  position: fixed; 
  top: 0;
  left: 0; 
  width: 100%; 
  z-index: 1000; 
  height: 60px;
}

p {
  color: white;
}

.lasection {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.logo-img {
    max-height: 55px;
    height: auto;
    width: auto;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1)
}

nav {
    display: flex;
    margin-right: 40px;

}

nav .dropdown {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav .dropdown li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1)
}

nav .dropdown li a {
  position: relative; 
  top: -10px;
  right: -10px;
  display: inline-block;
  transition: transform 2s ease;
  text-decoration: none;
}

nav .dropdown li a::after {
  content: ''; 
  position: absolute;
  bottom: -3px; 
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transform: scaleX(0); 
  transform-origin: bottom right; 
  background-color: #f4a261; 
  transition: transform 2s ease, background-color 1s ease; 
}



nav .dropdown li a:hover {
  transform: scale(1.1); 
  color: #f4a261;
  transition: color 1s ease; 
}

nav .dropdown li a:hover::after {
  transform: scaleX(1); 
  transform-origin: bottom left;
}

nav .dropdown li a.active {
  color: #f4a261;
}

#pays-beneficiaires {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #121212; 
  color: #ccc; 
}


#pays-beneficiaires h2 {
  color: #f4a261;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;

}

.pays-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 30px;
  margin-bottom: 40px;

}


.pays-card {
  background-color: #1d1d1d; 
  border-radius: 10px;
  padding: 20px;
  transform: scale(1);
  transition: transform 330ms ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
  border: 1px solid #333; 
  z-index: 1;
}

.pays-card:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2); 
  z-index: 10;
}


.pays-card h3 {
  color: #f4a261;
  font-size: 1.5rem;
  margin-bottom: 10px;
}


.pays-card p {
  color: #aaa; 
  font-size: 1rem;
}

.info-card {
  background-color: #1d1d1d;
  padding: 15px;
  color: #aaa;
  font-weight: bold;
  border: 1px solid #444;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}


.info-card:hover {
  transform: scale(1.03);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);  
}
  
  h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
  }


  #banniere {
    position: relative;
    background-image: url('../images/fondecran.jpeg');
    background-size: cover; 
    background-position: 0px -100px; 
    height: 248px; 
    display: flex;
    justify-content: center;
    align-items: center; 
    z-index: 1; 
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
    border-radius: 10px;
}

.banniere-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)); 
  padding: 30px 50px;
  margin-top: -5px;
  border-radius: 15px;
  text-align: center;
  z-index: 2; 
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Ajout d'une ombre pour de la profondeur */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Effet au survol */
}

.banniere-content:hover {
  transform: translateY(-5px); /* Légère animation pour donner du dynamisme */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}


.banniere-content h1 {
    color: white; 
    font-size: 2.3em;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 1); 
}

.footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #f0f0f0;
  padding: 30px 20px;
  font-family: 'Arial', sans-serif;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.footer a {
  color: #f0f0f0;
  font-weight: bold;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s, transform 0.3s;
}

.footer a:hover {
  color: #f4a261; /* Couleur au survol */
  transform: scale(1.1); /* Effet de zoom au survol */
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  display: inline;
}

.footer-icons {
  margin-top: 20px;
}

.footer-icons a {
  margin: 0 10px;
  font-size: 20px; /* Taille des icônes */
  color: #f0f0f0;
  transition: color 0.3s;
}

.footer-icons a:hover {
  color: #f4a261  ; /* Couleur au survol des icônes */
}

.presentation-section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Presentation block */
.presentation-block {
  border: 1px solid #333; 
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #1d1d1d;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.presentation-block:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.presentation-block.reverse {
  flex-direction: row-reverse; /* Reverse order for MSF block */
}

.image-container img {
  width: 80%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.content-container {
  flex: 1;
}

.content-container h2 {
  font-size: 24px;
  color: #f4a261;
  margin-bottom: 10px;
}

.content-container p {
  font-size: 18px;
  color: #aaa;
  margin: 0;
}

#clock {
  color: #f4a261; /* Couleur du texte de l'heure */
  font-size: 1.2rem; /* Taille de la police */
  margin-right: 30px; /* Espace à droite */
  display: flex; /* Utiliser flex pour aligner si nécessaire */
  align-items: center; /* Centrer verticalement */
}


/* Conteneur général */
#table-container {
  width: 90%;

  margin: 50px auto;
  padding: 20px;
  background-color: #1d1d1d; /* Gris clair */
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
  border: 1px solid #333;
  max-width: 1080px;
}

/* Tableau DataTables */
.table-container {
  width: 90%;
  margin: 50px auto;
  padding: 20px;
  background-color: #2c2c2c;
  border-radius: 15px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 330ms ease-in-out, box-shadow 330ms ease-in-out;
}

.table-container:hover {
  transform: scale(1.02);
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.4);
}

/* Tableau principal */
.dataTable {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  background-color: #121212;
  color: #f4f4f4;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dataTable th,
.dataTable td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.dataTable thead {
  background-color: #1c1c1c;
  color: #f4a261;
  text-transform: uppercase;
  font-weight: bold;
}

.dataTable tbody tr:nth-child(even) {
  background-color: #1a1a1a;
}

.dataTable tbody tr:nth-child(odd) {
  background-color: #141414;
}

.dataTable tbody tr:hover {
  background-color: #242424;
  transition: background-color 0.3s ease-in-out;
}

/* Pagination et interactions */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: #1c1c1c;
  color: #f4f4f4;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #f4a261;
  color: #121212;
}

.dataTables_wrapper .dataTables_filter input {
  width: 250px;
  padding: 10px 15px;
  margin-left: 10px;
  border: 2px solid #444;
  border-radius: 20px;
  background-color: #121212;
  color: #f4f4f4;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #f4a261;
}

.dataTables_wrapper .dataTables_length select {
  padding: 10px 15px;
  border: 2px solid #444;
  border-radius: 20px;
  background-color: #121212;
  color: #f4f4f4;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: #f4a261;
}


.dataTables_info #mon_tableau_info {
  color: #f4f4f4;
  font-size: 14px;
  margin-top: 10px;
}

.dataTables_paginate {
  margin-top: 15px;
  text-align: right;
  color: white;
}


.paginate_button:hover {
  box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: box-shadow 330ms ease-in-out;
}

/* Style des en-têtes flottants */
.dataTables_scrollHead {
  background-color: #1c1c1c;
  color: #f4a261;
}

/* Texte blanc pour les labels et les informations */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper {
    color: #ffffff; /* Texte blanc */
}

/* Input de recherche stylisé */
.dataTables_wrapper .dataTables_filter input {
    background-color: #333333; /* Fond sombre */
    color: #ffffff; /* Texte blanc */
    border: 1px solid #555555; /* Bordure gris foncé */
}

/* Sélecteur d'entrées stylisé */
.dataTables_wrapper .dataTables_length select {
    background-color: #333333; /* Fond sombre */
    color: #ffffff; /* Texte blanc */
    border: 1px solid #555555; /* Bordure gris foncé */
}

.en-travaux {
  font-size: 2rem; /* Taille du texte */
  color: #f4a261; /* Couleur orange élégante */
  font-weight: bold; /* Met en valeur le texte */
  text-align: center; /* Centre le texte */
  margin-top: 30px; /* Ajoute un espace au-dessus */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); /* Ombre élégante */
  animation: clignote 1.5s infinite; /* Ajoute un effet de clignotement */
}

/* Animation pour le clignotement */
@keyframes clignote {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}



/* Conteneur du formulaire */
.form-container {
  max-width: 300px; 
  width: 100%;
  margin: 50px auto;
  background-color: #f4f4f4;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Titre h2 du formulaire */
form h2 {
  text-align: center;
  color: #333;
  font-weight: 300;
  margin-bottom: 20px;
  width: 100%;
}

/* Label pour tous les champs */
label {
  display: block;
  color: #555;
  font-size: 13px;
  font-weight: 300;
  margin-bottom: 5px;
}

/* Champs de saisie (text, email, textarea) */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 300;
  box-sizing: border-box;
}

/* Section pour le Nom et Prénom alignés horizontalement */
.input-group {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Espacement entre les champs */
  width: 100%;
  flex-wrap: wrap; /* Permet aux champs de se placer sur plusieurs lignes si besoin */
}

.input-group div {
  flex: 1; /* Prend toute la place disponible */
  min-width: 130px; /* Largeur minimale des champs */
}

.input-group div label {
  display: block;
  margin-bottom: 5px;
}



.input-group-radio {
  display: flex; /* On utilise flex pour les afficher en ligne */
  justify-content: flex-start;
  flex-direction: column;
  gap: 10px; /* Espacement entre les boutons radio */
  width: 100%;
}

/* Chaque bouton radio */
.input-group-radio div {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Taille et style des boutons radio */
.input-group-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #3498db;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
}

.input-group-radio input[type="radio"]:checked {
  background-color: #3498db;
  border-color: #2980b9;
  transform: scale(1.1);
}

.input-group-radio input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Sections pour les autres champs qui doivent être sur des lignes séparées */
.from-message {
  display: block; /* S'assurer qu'il occupe toute la ligne */
  width: 100%;
}

/* Section message */
.from-message {
  width: 100%; /* Occupe toute la largeur */
  margin-bottom: 15px;
}


textarea {
  width: 100%; /* Prend toute la largeur */
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  height: 100px; /* Ajuste la hauteur selon ton besoin */
  font-size: 13px;
  font-weight: 300;
}

/* Bouton envoyer */
input[type="submit"] {
  background-color: #f4a261;
  color: white;
  padding: 50px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  font-weight: 300;
}

input[type="submit"] .galerie-submit {
  background-color: black;
  color: white;
  padding: 5px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  font-weight: 200;
}

input[type="submit"]:hover {
  background-color: black;
  color: white;
}

input[type="submit"]:focus {
  outline: none;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Espacement entre les champs */
  align-items: flex-start;
}

.input-group div {
  flex: 1; /* Permet aux champs d'occuper un espace équilibré */
  position: relative; /* Pour que les erreurs s'affichent correctement */
}

/* Empêche les erreurs de tout décaler */
/* Empêche les erreurs de décaler les champs */
.error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 3px;
  min-height: 15px; /* Réserve un espace pour éviter le déplacement */
  display: block;
}

/* Empêche les erreurs de décaler les éléments */
.error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 3px;
  min-height: 15px; /* Réserve un espace pour éviter le déplacement */
  display: block;
}

/* Empêche le champ Email de déplacer les autres */
.email-group {
  display:block;
  width: 100%; /* S'assure que l'email occupe toute la largeur */
  margin-bottom: 15px; /* Espace entre le champ email et le message */
}

/* Ajout d'un espace réservé sous le champ Email */
.email-group .error {
  min-height: 15px;
}



/* Champs obligatoires */
.from-span {
  color: red;
}


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: none; /* Masquer par défaut */
}

.back-to-top img {
  width: 100px; /* Ajustez la taille de l'icône */
  border-radius: 10px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 1);
}

.credits-container {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.image-item:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  transition: transform 0.3s ease-in-out;
}

.image-item {
  background-color: #f4a261;
  border: 1px solid black;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.image-item img {
  width: 100%;
  height: 150px; /* Hauteur fixe pour les images carrées */
  object-fit: cover; /* Pour garder le ratio d'aspect */
  border-radius: 5px;
}

.image-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: black;
  font-weight: bold;
}

#h1-grid {
  color: #f4a261;
}

.gallery {
  display: flex;
  flex-wrap: wrap; /* Permet aux images de passer à la ligne suivante si nécessaire */
  justify-content: flex-start; /* Aligne les images à gauche */
  max-width: 1080px; /* Largeur maximale de la galerie */
  margin: 0 auto; /* Centre la galerie horizontalement */
  margin-bottom: 20px;
}

.gallery img {
  width: calc(25% - 10px); /* 25% de la largeur pour 4 images par ligne, moins l'espacement */
  height: auto; /* Laisse le navigateur gérer la hauteur */
  aspect-ratio: 1; /* Force les images à être carrées */
  margin: 5px; /* Espace de 5 pixels autour des images */
  box-sizing: border-box; /* Inclut la marge dans le calcul de la largeur */
  filter: grayscale(100%); /* Applique un filtre noir et blanc par défaut */
  transition: filter 0.3s ease, transform 0.3s ease; /* Transition douce pour l'effet de survol */
  border-radius: 10px; /* Arrondit les bords des images */
}

.gallery img:hover {
  filter: grayscale(0%); /* Retire le filtre noir et blanc au survol */
  transform: scale(1.05); /* Zoom léger au survol */
}

.presentation {
  text-align: center;
  padding: 20px;
  background-color: #2c2c2c;
  color: white;
}

.presentation h2 {
  margin: 0;
  font-size: 2em;
  position: relative;
  color: white;
}

.presentation h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transform: translateX(-50%); /* Centre l'élément */
  animation: underlineAnimation 2s ease-in-out infinite; /* Animation continue */
}

/* Animation de soulignement sous le texte */
@keyframes underlineAnimation {
  0% {
    width: 10%;
  }
  50% {
    width: 25%;
  }
  100% {
    width: 10%;
  }
}




.presentation p {
  margin: 10px 0;
  font-size: 1.2em;
}

/* Conteneur des partenaires */
.container-partenaire {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  flex-wrap: nowrap;
}


/* Bloc partenaire */
.partner {
  background-color: #f4a261;
  padding: 15px;
  border-radius: 10px;
  width: 200px; /* Réduction de la largeur */
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  transition: all 0.3s ease; /* Transition fluide */
}

/* Effet de survol */
.partner:hover {
  transform: scale(1.05); /* Légèrement zoomé */
  box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6); /* Box-shadow blanc */
}

.partner img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  max-height: 300px;
}

.partner h3 {
  margin-top: 8px;
  font-size: 1.2em;
  color: black;

}

.partner p {
  font-size: 0.9em;
  color: #333;
  margin: 8px 0;
  font-weight: bold;
}

.partner a {
  display: block;
  background-color: white;
  color: black;
  padding: 8px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: auto; /* Assure que le lien reste en bas */
}

.partner a:hover {
  background-color: black;
  color: white;
}

/* Livrables */
.livrables {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.livrables a {
  display: block;
  background-color: #f4a261;
  color: black;
  padding: 10px;
  text-decoration: none;
  border-radius: 5px;
  width: 150px;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease; /* Transition fluide */
}

/* Effet de survol pour les livrables */
.livrables a:hover {
  transform: scale(1.05); /* Légèrement zoomé */
  box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.6); /* Box-shadow blanc */
}


/* .video-section {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background-color: #1d1d1d;
  border-radius: 12px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}

.video-section h2 {
  text-align: center;
  color: #f4a261;
  margin-bottom: 20px;
}

.video-container {
  display: flex;
  flex-direction: row-reverse; 
  gap: 15px; 
  justify-content: flex-start; 
  align-items: flex-start;
  overflow-x: auto; 

.video-container blockquote {
  flex: 0 0 auto; 
  max-width: 325px;
  min-width: 200px;
  margin: 0; 
}

.tiktok-embed {
  display: block !important; 
  max-width: 325px; 
  min-width: 200px; 
}
*/