/* Centrer chaque section verticalement et horizontalement */
section {
  min-height: 100vh;               /* Chaque section occupe tout l’écran */
  display: flex !important;        /* Force le layout en flex */
  justify-content: center;         /* Centre horizontalement */
  align-items: center;             /* Centre verticalement */
  flex-direction: column;          /* Organisation en colonne */
  /*text-align: center;               Centre le texte */
  padding-top: 80px;               /* Évite que le header fixe recouvre le contenu */
}

/* Centrage interne des containers */
section .container,
section .container-fluid {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Empêcher les rangées internes de casser le centrage */
section .row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ajustement optionnel : hauteur de la carte Google */
#footer iframe {
  height: 300px !important;
}

#team .committee-popup{
    display : none;
}



@media (max-width: 768px) {

  /* Centrer les sections */
  section {
    padding-top: 120px !important;
    padding-bottom: 40px;
    /*text-align: center;*/
  }

  /* Toutes les colonnes deviennent verticales */
  .row {
    flex-direction: column !important;
  }

  /* Images responsive */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Introduction (logo gauche + texte) */
  #intro .col-md-2,
  #intro .col-md-6 {
    margin-bottom: 20px;
  }

  /* About section */
  #about .col-lg-5,
  #about .col-lg-7 {
    width: 100% !important;
    text-align: center;
  }

  /* Topics */
  #services ul li {
    font-size: 16px;
    padding: 10px 0;
  }

  /* Committees : liste bien centrée */
  #team ul {
    width: 100% !important;
  }

  #team .col-md-4,
  #team .col-md-6 {
    width: 100% !important;
    margin-bottom: 20px;
  }

  /* Registration */
  .bg-registration {
    text-align: center;
    padding: 20px;
  }

  .bg-registration .col-md-10 {
    margin-bottom: 20px;
  }

  /* Footer */
  #footer .footer-top .row {
    flex-direction: column !important;
  }

  #footer iframe {
    width: 100% !important;
    height: 250px !important;
    margin-top: 20px;
  }

  /* Cacher les listes sur mobile */
  #team ul ,#team .org-com,#team .scien-com, .display-none{
    display: none !important;
  }

  .committee-buttons-mobile {
    text-align: center;
    margin-bottom: 20px;
  }

  .committee-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 14px 20px;
    margin: 10px 0;
    width: 90%;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
  }

  /* Fenêtre popup */
  .committee-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
  }

  .committee-popup .popup-content {
    background: white;
    color: black;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    width: 90%;
    font-size: 16px;
  }

  .popup-close {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
  }
  .btn-get-started {
    padding: 0.4rem 0.8rem; /* réduit le padding */
    font-size: 0.85rem;      /* réduit la taille du texte */
  }

  .center-bg{
    margin-left: auto;
    margin-right: auto;
  }
  #footer,#award,#why-us,#sponsors,#team,#services,#about {
    position: static;
  }

  .btn-registration {
    font-size: 10px;   /* réduire la taille du texte */
    padding: 0.4rem 1rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
/* Cacher les listes sur mobile */
  #team ul ,#team .org-com,#team .scien-com{
    display: none !important;
  }

  .committee-buttons-mobile {
    text-align: center;
    margin-bottom: 20px;
  }

  .committee-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 14px 20px;
    margin: 10px 0;
    width: 90%;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
  }

  /* Fenêtre popup */
  .committee-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
  }

  .committee-popup .popup-content {
    background: white;
    color: black;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px;
    width: 90%;
    font-size: 16px;
  }

  .popup-close {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-top: 15px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
  }

  .btn-registration {
    font-size: 8px;   /* réduire la taille du texte */
    padding: 0.4rem 1rem;
  }
}