/* Conteneur principal avec fond */
.about-section {
  position: relative;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.85), rgba(248, 228, 162, 0.607)),
    url("../Images/Inhalt/img6.jpg") no-repeat left center;
  background-size: cover;
  background-color: #222;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  margin: auto;
  padding: 30px 5%;
  min-height: 280px;
  /* Réduction de la hauteur */
}

/* Conteneur du texte */
.inner-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.25);
  padding: 25px;
  /* Réduction du padding */
  text-align: center;
  box-shadow: 0px 5px 14px rgba(0, 0, 0, 0.2);
  max-width: 69%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  min-height: 280px;
  /* Réduction de la hauteur */
}

/* Titre */
.titleab {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: bold;
  color: #fff;
  padding-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Style des paragraphes */
.inner-container p {
  font-size: clamp(16px, 1.5vw, 17px);
  /* Légère augmentation */
  line-height: 1.6;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* ✅ Responsive Design */
@media (max-width: 1024px) {
  .about-section {
    flex-direction: column;
    background-size: cover;
    background-position: center;
    padding: 20px 5%;
    min-height: auto;
  }

  .inner-container {
    max-width: 90%;
    padding: 20px;
    min-height: auto;
  }

  .titleab {
    font-size: clamp(18px, 2.3vw, 24px);
  }

  .inner-container p {
    font-size: clamp(15px, 1.3vw, 16px);
  }
}

@media (max-width: 650px) {
  .about-section {
    background-size: cover;
    background-position: center;
  }

  .inner-container {
    width: 100%;
    padding: 15px;
  }

  .titleab {
    font-size: 18px;
  }

  .inner-container p {
    font-size: 15px;
  }
}





/* Conteneur principal */
.containertree {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background: #f8f9fa;
}

/* Titre principal : parfaitement centré */
.tree-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: clamp(14px, 2.0vw, 22px);
  font-weight: bold;
  color: #022140;
  padding: 10px 20px;
  background: #f5f5f5;
  border: 2px solid #022140;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  margin: 0 auto 20px auto;
}

/* Alignement des lignes avec plus d’espace */
.tree .top-row,
.tree .bottom-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  gap: 25px;
  /* Ajout d’espace entre les boîtes */
  max-width: 100%;
}

/* Style des boîtes avec plus d’espace */
.tree li a {
  border: 2px solid var(--highlight);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  width: min(180px, 30vw);
  height: auto;
  text-align: center;
}

/* Spécial pour le président */
/* Style spécifique pour le Président */
.tree .top-row a:first-child {
  background: #f8e4a2 !important;
  /* Fond jaune clair */
  border: 2px solid var(--highlight);
  transition: all 0.2s ease-in-out;
}

/* Effet hover amélioré */
.tree .top-row a:first-child:hover {
  background: var(--highlight);
  color: white !important;
  /* S’assure que le texte devient blanc */
  border-color: var(--highlight);
  transform: scale(1.05);
  /* Zoom plus subtil */
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.25);
}


/* Taille des images */
.tree li a img {
  width: 100%;
  max-width: 110px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--highlight);
  margin-bottom: 8px;
  transition: transform 0.2s ease-in-out;
}

/* Style du texte */
.tree li a span {
  border: 2px solid var(--highlight);
  border-radius: 6px;
  color: var(--text-color);
  padding: 5px;
  font-size: clamp(10px, 2vw, 12px);
  text-transform: uppercase;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  width: 90%;
  min-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
}

/* Effet hover */
.tree li a:hover {
  background: var(--highlight);
  color: white;
  transform: scale(1.04);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Effet de zoom sur les images */
.tree li a:hover img {
  transform: scale(1.06);
}

/* Responsive */
@media screen and (max-width: 950px) {
  .tree li a {
    width: min(150px, 35vw);
  }
}

@media screen and (max-width: 650px) {
  .tree ul {
    gap: 15px;
  }

  .tree .top-row,
  .tree .bottom-row {
    flex-wrap: wrap;
    justify-content: center;
  }

  .tree li a {
    width: min(140px, 40vw);
  }

  .tree li a img {
    max-width: 85px;
  }

  .tree li a span {
    font-size: clamp(9px, 2vw, 11px);
    padding: 4px;
    min-height: 28px;
  }
}



/* Conteneur externe avec une couleur de fond */
.membership-container {
  background: rgba(248, 228, 162, 0.397);
  /* Fond doux */
  padding: 40px 0;
  /* Encadrement */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Section principale */
.membership-section {
  background: #efeff0;
  /* Fond interne bleu clair */
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  max-width: 820px;
}

/* Effet de zoom au survol */
.membership-section:hover {
  transform: scale(1.02);
}

/* Titre */
.membership-title {
  font-size: 22px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Texte */
.membership-text {
  font-size: 18px;
  line-height: 1.7;
  color: #1e3a8a;
  font-weight: 500;
}

/* ✅ Responsive pour iPad */
@media (max-width: 1024px) {
  .membership-section {
    max-width: 90%;
    padding: 35px;
  }

  .membership-title {
    font-size: 20px;
  }

  .membership-text {
    font-size: 17px;
  }
}

/* ✅ Responsive pour téléphones */
@media (max-width: 650px) {
  .membership-container {
    padding: 30px 0;
  }

  .membership-section {
    max-width: 95%;
    padding: 30px;
  }

  .membership-title {
    font-size: 18px;
  }

  .membership-text {
    font-size: 16px;
  }
}