body {
  background-color: #3e3b37;
  font-family: Arial, sans-serif;
  color: white;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1600px;
  margin: auto;
  padding: 1rem;
}

.direction-box {
  margin: auto;
  text-align: center;
  background-color: #2e2c28;
  padding: 1rem;
  border-radius: 10px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pole-membres.horizontal {
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.pole-membres.horizontal .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 220px; /* ou la hauteur que tu veux */
}


h1 {
  text-align: center;
  color: #f78307;
  margin-bottom: 2rem;
}

.strate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.strate-direction {
  justify-content: center;
}

.strate-poles {
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
}

.pole {
  background-color: #2e2c28;
  border-radius: 10px;
  padding: 0.8rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pole-titre {
  color: #f78307;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1rem;
}

.pole-membres {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.card {
  background-color: #44413d;
  border-radius: 6px;
  padding: 0.5rem;
  text-align: center;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
  width: 180px;
}

.card.small {
  width: 160px;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f95204;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  
}

.name {
  font-weight: bold;
  font-size: 0.95rem;
}

.role {
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 0.2rem;
}

a,
a:visited {
  color: #f95204;
}

a:hover {
  color: #ffa500;
}

.toggle-btn {
  background-color: #f95204;
  border: none;
  color: white;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.hidden {
  display: none;
}

.fiche-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #2e2c28;
  border-radius: 10px;
  color: white;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.fiche-container img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f95204;
  margin-bottom: 1rem;
}

.fiche-container .links a {
  display: inline-block;
  margin: 0.3rem 0;
  color: #f95204;
  text-decoration: none;
  font-size: 1rem;
}

.fiche-container .links i {
  margin-right: 0.4rem;
}

.btn-retour {
  display: inline-block;
  /*margin: 1rem auto;*/
  margin: 1rem 1rem 1rem auto; /* haut, droite, bas, gauche */
  padding: 0.5rem 1rem;
  background-color: #f78307;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.btn-retour:hover {
  background-color: #f95204;
}

.organigramme {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.niveau {
  display: flex;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

/* Trait vertical entre direction et pôles */
.ligne-verticale {
  width: 2px;
  height: 30px;
  background-color: #f78307;
  margin: 0 auto;
}

/* Traits horizontaux entre pôles */
.niveau.poles::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f78307;
}

/* Optionnel : traits entre chaque pôle */
.pole {
  position: relative;
}

.pole::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  width: 2px;
  height: 15px;
  background-color: #f78307;
}



/* Responsive - petit écran */
@media (max-width: 600px) {
  .fiche-container {
    width: 90%;          /* Presque toute la largeur */
    padding: 1.3rem;     /* Plus d’espace intérieur */
    font-size: 1.1rem;   /* Texte plus grand */
  }

  .fiche-container img {
    width: 140px;        /* Image un peu plus grande */
    height: 140px;
  }

  .fiche-container h2 {
    font-size: 1.8rem;   /* Titre plus visible */
    margin-bottom: 0.5rem;
  }

  .fiche-container p,
  .fiche-container .links a {
    font-size: 1.1rem;   /* Texte des paragraphes et liens plus gros */
  }
  
  .fiche-container p.fonction,
  .fiche-container p.entreprise {
    font-size: 1.2rem;
    font-weight: 600;
  }

  .fiche-container .links a {
    font-size: 1.3rem;      /* taille plus grande pour les liens */
    padding: 0.3rem 0;      /* un peu plus d’espace vertical */
    display: block;         /* liens en bloc, sur une ligne chacun */
  }

  .fiche-container .links i {
    margin-right: 0.6rem;   /* espace un peu plus large entre icône et texte */
  }

  .fiche-container .links .btn {
    font-size: 1.25rem;    /* bouton un peu plus gros aussi */
    padding: 0.5rem 1rem;
  }
}




/* Responsive */
@media (max-width: 768px) and (min-width: 601px) {
  .pole {
    width: 100%;
  }

  .card, .card.small {
    width: 100%;
  }

  .strate-poles {
    flex-direction: column;
    align-items: center;
  }
  .niveau {
    flex-direction: column;
  }

  .niveau.poles::before,
  .pole::before,
  .ligne-verticale {
    display: none;
  }
  .fiche-container {
    width: 90%;
    padding: 1.2rem;
    font-size: 1.1rem;
  }
  
  .fiche-container img {
    width: 130px;
    height: 130px;
  }

  .fiche-container h2 {
    font-size: 1.6rem;
  }

  .fiche-container p,
  .fiche-container .links a {
    font-size: 1rem;
  }
}

