/* Style général */
* {
    margin: 0;
    padding: 0;                   /* Pour enlever les marges et paddings par défaut */
    box-sizing: border-box;
  }
  
  body {
    width: auto;
    font-family: 'Open Sans', sans-serif;
  
    /* Mettre le footer toujours en bas */
    display: flex;                /* Active le modèle de boîte flexible */
    flex-direction: column;       /* Organise les enfants (navbar, contenu, footer) en colonne */
    min-height: 100vh;            /* Garantit que la hauteur minimale du corps est égale à 100% de la hauteur de la fenêtre visible */
  }
  /* Style général */
  
  
  /* Navbar */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: center;       /* Centre tout le contenu */
    padding: 10px ;
    background-color: white;
    border-bottom: 1px solid #ddd;
    gap: 60px;                    /* Espacement entre logo, liens, et bouton connexion*/
    margin-bottom: 30px;          /* Marge après la navbar */
  }
  
  .logo {
    display: flex;                /* pour aligner avec le reste de navbar*/
  }
  
  .logo img {
    height: 30px;
    width: auto;
  }
  
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 20px; 
    color: black;
    text-decoration: none;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: black;
  }
  
  
  .auth-buttons {
    display: flex;
    gap: 10px;
    color: black;
  
  }
  .auth-buttons .login {
    text-decoration: none;
    padding: 10px;
    color: black;
  }
  
  .auth-buttons .signup {
    text-decoration: none;
    color: green;
    padding: 10px;
  }
  /* Navbar */
    
  
  /* Contenu de la page (centré) */
  .content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* min-height: 20vh;                     /* pour ajuste la hauteur pour centrer le contenu sinon coller a la barre */
    text-align: center;
    padding-bottom: 100px;
  }
  /* Contenu de la page (centré) */
  
                                                           /* FOOTER  */
  footer {
    background-color: black;
    color: white;
    text-align: center;
    width: 100%;
    position : relative; /* bouge pas fixe en bas */
    bottom : 0px; /* pour que le footer collé en bas */
    margin-top: auto;
    
  }
  
  /* Conteneur des sections */
  .footer-container {
    flex: 1;
    display: flex; /* pour organiser en ligne */
    justify-content: center;
    gap: 100px; /* espace entre les sections */
    padding-top: 15px;
    padding-bottom: 15px;
  }
  /* titre de section */
  .footer-section h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px; /* espace en dessous du titre de la section */
  }
  /* Information de chaque section */
  .footer-section p {
    margin: 5px 0;
    font-size: 12px;
  }
  
  /* Barre footer */
  .footer-bottom {
    border-top: 1px solid gray;
    padding-top: 10px;
    display: flex;/* pour organiser en ligne */
    justify-content: center;
    gap: 50px; /* espace entre les elements */
  }
  
  .footer-bottom a { /* ligne : mentions/cgu/cookies du footer */ 
    color: white;
    text-decoration: none; 
    font-size: 12px; /* ltaille */
    padding-bottom: 10px;
  }
  
  .footer-bottom a:hover {
    text-decoration: underline;  /* lors de la survole l'element devient souligner */
  }
  
                                                            /* FOOTER  */
                                                            /* FAQ  */

  
  /* Style des titres */
  .contentFAQ h1 {
    font-size: 2em;
    margin: 20px 0;
    padding-left: 20px;
  }
  
  /* Espacement des sections */
  .faq-section {
    margin-bottom: 40px;
    padding: 0px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    
  }
  
  .faq-section h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 10px;
    margin-top: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
  }
  
  /* Style des questions */
  .faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;/* ligne sous chaque bloc question/réponse */
    padding-bottom: 10px;
  }

  .faq-item:last-child {
    border-bottom: none; /* enlever la ligne sous le dernier bloc */
    margin-bottom: 5px; /* espace entre le dernier bloc et le bas */
    padding-bottom: 5px; 
  }
  
  .faq-question {
    cursor: pointer;
    font-size: 1.2em;
    color: #008000;
    font-weight: bold;
    text-align: left;
    margin-left: 15px;
  }
  
  /* Cacher les réponses par défaut */
  .faq-answer {
    display: none;
    margin-left: 16px;
    margin-top: 10px;
    text-align: left;
  }
  
  /* Afficher la réponse quand la question est active */
  .faq-item.active .faq-answer {
    display: block;
  }

  .faq-bloc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 20px;
  }

  .faq-toggle {
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg); /* flèche vers le bas */
    transition: transform 0.3s ease;
    margin-right: 15px;
  }

  /* Tourner la flèche quand ouvert */
  .faq-item.active .faq-toggle {
    transform: rotateX(180deg) rotate(45deg); /* flèche vers le haut */
  }
  #searchInput {
    margin-bottom: 30px;
    border-radius: 10px;
    width: 400px;
    height: 30px; 
    padding-left: 20px;
    border: 1px solid #ddd;
  }

  .suggestion-box {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px 8px 8px 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0;
    box-sizing: border-box;
  }
  
  .suggestion-box:empty {
    display: none;
  }
  
  .suggestion-item {
    box-sizing: border-box;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    overflow-wrap: break-word;
    background-color: white;
    overflow: visible;
  }
  
  .suggestion-item:last-child {
    border-bottom: none;
  }
  
  .suggestion-item:hover {
    background-color: #f9f9f9;
  }
  
  .suggestion-box:empty {
    display: none;
  }
  
  .search-container {
    position: relative;
    width: 400px;
    margin: 0 auto; /* centrer le conteneur de recherche */
  }

.contact-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  box-shadow: 0px 10px 20px rgba(0, 128, 0, 0.3);
  max-width: 1000px;
  width: 90%;
  padding: 0 0;
  gap: 30px;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 80px;
  text-align: left;
  flex: 1; /* pour que la zone prenne sa place normalement */
}

.contact-text {
  flex: 1;
  padding-left: 20px;
}

.contact-text h2 {
  color:#008000;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 15px;
  padding-bottom: 5px;
  text-align: left;
}

.contact-text p {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: left;
}

.contact-button {
  background-color:#008000;
  color: white;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s;
  display: inline-block;
  text-align: left;
  box-shadow: 2px 4px 10px rgba(0, 128, 0, 0.3);
}

.contact-button:hover {
  background-color: #006400;
  transform: scale(1.05);
}

.contact-image {
  flex: 1;
  text-align: right;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  width: 280px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
      text-align: center;
      padding: 30px;
  }
  .contact-text {
      padding-left: 0;
      margin-bottom: 20px;
  }
  .contact-image {
      text-align: center;
      display: flex;
      justify-content: center;
  }
  .contact-image img {
      width: 220px;
  }
}
/* ✅ Style du pop-up */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  margin: 10% auto; /* centré verticalement (10% du haut) et horizontalement */
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0px 10px 20px rgba(0, 128, 0, 0.3);
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.help-form {
  display: flex;
  flex-direction: column;
}

.help-form label {
  font-weight: bold;
  margin-top: 10px;
  text-align: left;
}

.help-form input,
.help-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.help-button {
  margin-top: 15px;
  background-color: #008000;
  color: white;
  padding: 10px 15px;
  margin-left:auto;
  margin-right: auto;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.help-button:hover {
  background-color: #006400;
}
.team-member, .recruitment-card {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 128, 0, 0.15);
  border: 1px solid #008000;
  margin-top: 10px;
}
.team-member img, .recruitment-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 12px;
  border: 1px solid #008000;
}
.info p, .candidate-info p {
  margin: 4px 0;
  font-size: 14px;
}
.actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.actions button {
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  background: #008000;
  color: white;
  transition: 0.2s;
}
.actions button:hover {
  background: #006400;
}
.remove {
  background: #dc3545;
}
.remove:hover {
  background: #a71d2a;
}
.accept {
  background: #28a745;
}
.accept:hover {
  background: #1e7e34;
}
.decline {
  background: #ffc107;
  color: black;
}
.decline:hover {
  background: #d39e00;
}
.chat {
  background: #17a2b8;
}
.chat:hover {
  background: #117a8b;
}
.competence-filter {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #008000;
  margin-bottom: 12px;
  font-size: 14px;
  background-color: white;
  color: black;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .container {
      flex-direction: column;
      align-items: center;
  }
  .team-section, .recruitment-section {
      width: 90%;
  }
}
.team-section, .recruitment-section {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 128, 0, 0.2);
  width: 48%;
  border: 1px solid #008000;
}
.recrutement-container {
  display: flex;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
  margin: auto;
}
/* Grille des annonces */
  .grid {
    display: grid;                          /* Pour que ce soit en grille */
    grid-template-columns: repeat(3, 1fr);  /* 3 images sur chaque ligne */
    gap: 50px;    
    margin-top: 30px;                          /* Espacement */
  }
  
  /* Limiter la taille des images */
  .grid img {
    width: 100%;
    max-width: 300px;
    height: 200px; /* Fixed height for consistency */
    border-radius: 20px;
    border: 2px solid #000000;
    object-position: center; /* Centers the image within the container */
  }
  
  .grid figure {
    background-color: #f8f8f8;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    width: 100%;
    max-width: 320px; /* Consistent width for the figure container */
    margin: 0 auto;
  }
