/*=================================================================================*/
/*------------------------------Page Club---------------------------------------*/
/*=================================================================================*/

/************************** Section 1 (Présentation)************************************/
.blue-section {
  background-color: var(--color-light-blue);
  padding: 20px 20px;
}
.common-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px; /* Ajoute un peu de padding en haut/bas pour respirer */
  flex-wrap: wrap;
}

/* Réduction de l'espace entre le titre "Présentation du club" et le bloc de contenu */
#club-section1 {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  margin-top: 20px; /* Passé de 60px à 20px pour remonter tout le bloc */
}

/* Gestion propre de l'espace sous chaque paragraphe (remplace les <br>) */
.texte-container p {
  margin-bottom: 15px;
}

/* Optionnel : Ajustement de la marge du bloc image si elle est encore trop basse */
#img-section1 {
  display: flex;
  justify-content: center;
  margin-top: 15px; /* Contrôle précisément l'espace entre le texte et l'image */
  max-width: 900px;
}

#img-section1 img {
  width: 700px !important;
  height: auto !important;
}

#btn-section1-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

/* Style du bouton */
#btn-section1 {
  /*display: inline-block;*/
  border-radius: 15px;
  background-color: var(--color-yellow);
  font-size: var(--fs-22);
  text-decoration: none;
  color: var(--color-blue);
  font-weight: 600;
  padding: 15px 20px;
  margin-left: 0; /* Supprime la marge fixe */
  transition:
    background-color 0.3s,
    color 0.3s;
}

#btn-section1:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}

/*********************  Responsive de la section N°1******************************/

@media screen and (max-width: 768px) {
  #club-section1 {
    align-items: center; /* Centre les blocs (texte, image, bouton) horizontalement */
    padding: 0 20px; /* Ajoute une petite sécurité sur les côtés pour les petits écrans */
  }

  .texte-container {
    text-align: start; /*  les lignes de texte alignés en début à l'intérieur des paragraphes */
  }
  /* .texte-container p{
    font-size: var(--fs-14); */
}
#img-section1 img {
  width: 60%; /* Optionnel : réduit un peu la taille du logo sur mobile pour un meilleur visuel */
  max-width: 250px;
}

#btn-section1-container {
  width: 100%; /* Assure que le conteneur du bouton prend toute la largeur pour bien se centrer */
}
#btn-section1 {
  font-size: var(--fs-14);
  padding: 10px 15px;
}

/**********************  Section N°2 *******************************************/
/* =========> idem à la section N°1 (3 cartes de la page Accueil) <==============*/
.white-section {
  background-color: var(--color-off-white);
  padding: 40px 20px;
}

.mainOne-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Conteneur des cartes */
.carte-container {
  padding-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  /*max-width: 1200px;*/
}

/* Carte */
.carte {
  flex: 1 1 380px;
  max-width: 390px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  background: white;
  padding: 20px;
  border-radius: 8px;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Titres */
.carte h3 {
  /*color: var(--color-blue);*/
  margin-bottom: 10px;
  /* font-size: var(--fs-26); */
}

/* Texte */
.carte p {
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Images */
.carte img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/********************** Responsive Section N°2 ************************/

/* Mobile */
@media (max-width: 620px) {
  .carte {
    padding-top: 30px;
    text-align: start;
  }

  .carte h3 {
    /* font-size: var(--fs-20); */
  }

  .carte p {
    /* font-size: var(--fs-14); */
  }
  .carte-container {
    padding-top: 10px;
  }
}

/*********************** Section N°3 (Notre Adresse)*****************************************/
.blue-section {
  background-color: var(--color-light-blue);
  padding: 20px 20px;
}

.mainOne-container {
  max-width: 1200px;
}

/*.mainOne-container h2 {

  padding-top: 60px;
  padding-bottom: 20px;
}*/
#adress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}
#adress h3 {
  /* font-size: var(--fs-26); */
  padding-bottom: 30px;
}

#adress p {
  text-align: center;
  padding-bottom: 10px;
}

#salle-JA {
  width: 1200px;
  padding-bottom: 80px;
  display: flex;
  justify-content: center;
}
#salle-JA img {
  max-width: 100%;
  height: auto;
}

.map-container {
  position: relative;
  width: 100%;
  /*padding-bottom: 56.25%;  /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Ratio 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/************************Responsive Section N°3*************/
@media (max-width: 1300px) {
  #salle-JA {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  #adress h3 {
    /* font-size: var(--fs-20); */
  }
  #adress p {
    /* font-size: var(--fs-14);  */
  }
  #salle-JA {
    padding-bottom: 15px;
  }
  #salle-JA {
    max-width: 100%;
  }
}
/******************Section N°4 Organisation et comité de gestion***************/
.white-section {
  background-color: var(--color-off-white);
  padding: 20px 20px;
}

#organisation-content {
  padding-top: 60px;
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#detail {
  padding-left: 50px;
}

#btn-organisation {
  display: flex;
  justify-content: center;
  /* flex-direction: column; */
  align-items: center;
  gap: 20px;
  /* margin-left: 150px; */
  padding-bottom: 30px;
}

#btn1-section4,
#btn2-section4 {
  display: inline-block;
  border-radius: 15px;
  background-color: var(--color-yellow);
  font-size: var(--fs-18);
  text-decoration: none;
  color: var(--color-blue);
  font-weight: 400;
  padding: 10px 15px;

  transition:
    background-color 0.3s,
    color 0.3s;
}

#btn1-section4:hover,
#btn2-section4:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}
/* ////////// le comité de gestion //////////*/

.comite {
  max-width: 900px;
  margin: auto;
}

.comite .membre_comite {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  align-items: start;
  position: relative;
}
.comite .membre_comite {
  padding: 50px;
}
/*comite .membre_comite2{
  padding: 0 50px 50px 50px;
}*/

.membre_comite .membre {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.nom_role {
  width: 250px;
  margin: auto;
  background-color: var(--color-light-blue);
  padding-left: 0;
  border-radius: 0px 0px 25px 25px;
  border: 0.2px solid var(--color-blue);
  border-top: 0px;
}
.membre .nom_role p {
  text-align: center;
  font-weight: 400;
  padding-left: 0;
  padding-top: 5px;
  /*padding-bottom: 5px;*/
  color: var(--color-blue);
}
.membre .nom_role :nth-child(1) {
  font-weight: bold;
}

.comite img {
  width: 250px;
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 25px 25px 0px 0px;
}

/* ******************************Responsive de la section N°4*****************/
@media (max-width: 620px) {
  #organisation-content {
    padding-top: 10px;
  }
  .comite .membre_comite {
    gap: 40px;
  }

  .comite img {
    width: 220px;
    height: 260px;
  }
  .nom_role {
    width: 220px;
  }

  #btn-organisation {
    margin: auto;
  }
  #organisation-content p {
    /* font-size: var(--fs-14); */
    text-align: start;
  }
  #btn1-section4,
  #btn2-section4 {
    font-size: var(--fs-14);
  }
}

/******************Section N°5 Message du Président**********************/

.blue-section {
  background-color: var(--color-light-blue);
  padding: 20px 20px;
}

.blue-section,
.mainTwo-container {
  /* On s'assure qu'aucune hauteur fixe ne bloque le contenu */
  height: auto !important;
  min-height: min-content;
}

.common-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px; /* Ajoute un peu de padding en haut/bas pour respirer */
  flex-wrap: wrap;
}

.texte1-container,
.image-container {
  flex: 1 1 400px;
  min-width: 300px;
  height: auto; /* Force les blocs à s'adapter à leur contenu */
}

.image-container {
  display: flex;
  justify-content: center;
  overflow: visible; /* Sécurité : empêche le masquage du contenu */
}

.image-container img {
  width: 100%;
  max-width: 400px;
  height: auto; /* Indispensable pour garder le bon ratio sans écraser */
  display: block; /* Supprime l'espace résiduel sous l'image */
}

/********************** Responsive ************/
@media (max-width: 950px) {
  .common-container {
    flex-direction: column;
    gap: 20px;
  }

  .texte1-container,
  .image-container {
    flex: none;
    width: 100%;
    height: auto;
  }

  .texte-container1 {
    text-align: start;
  }

  .image-container img {
    width: 65%; /* Ajuste la taille de l'image sur mobile si nécessaire */
  }
}
@media (max-width: 620px) {
  .texte1-container p {
    /* font-size: var(--fs-14); */
  }
}

/******************************Section CTA de la page club*******************/

#cta-section {
  background-color: var(--color-blue);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 40px 20px;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre horizontalement */
  text-align: center;
  padding-bottom: 30px;
}

.cta-content h2 {
  color: var(--color-white);
  padding-bottom: 10px;
  margin-top: 10px;
}

.cta-content p {
  color: var(--color-white);
  padding-bottom: 5px;
}

.cta-content a {
  margin-top: 30px;
}

#btn-cta {
  border-radius: 15px;
  background-color: var(--color-yellow);
  font-size: var(--fs-26);
  text-decoration: none;
  color: var(--color-blue);
  font-weight: 600;
  padding: 15px 20px;
  margin-left: 0; /* Supprime la marge fixe */
  transition:
    background-color 0.3s,
    color 0.3s;
}

#btn-cta:hover {
  background-color: var(--color-vert);
  color: var(--color-white);
}

/********************* Responsive de la Section CTA **************/
@media (max-width: 600px) {
  #btn-cta {
    font-size: var(--fs-20);
    padding: 10px 15px;
  }
}
