/**
 * APRAPFEA — Feuille de style dédiée aux adaptations Responsive & Mobile
 * Fichier : assets/css/responsive.css
 * 
 * Contient l'ensemble des règles d'optimisation et d'ajustements
 * responsive pour smartphones, tablettes et petits écrans.
 */

/* ==========================================================================
   1. PRELOADER / ÉCRAN DE CHARGEMENT RESPONSIVE
   ========================================================================== */

/* Ajustement fluide de la taille du titre APRAPFEA dans le loader */
@media (max-width: 991.98px) {
  .loader {
    font-size: 52px;
  }
}

@media (max-width: 767.98px) {
  .preloader-inner {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .preloader-inner .bounce {
    margin-bottom: 1.25rem !important;
  }

  .preloader-inner .bounce img {
    width: 70px !important;
    height: 70px !important;
  }

  /* Réduction proportionnelle pour ne jamais déborder sur écran mobile */
  .loader {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: -0.01em;
    max-width: 100%;
    word-break: normal;
  }

  .preloader .th-btn {
    top: 15px;
    right: 15px;
    padding: 10px 16px;
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 390px) {
  .loader {
    font-size: clamp(24px, 7.5vw, 32px);
  }

  .preloader-inner .bounce img {
    width: 60px !important;
    height: 60px !important;
  }
}

/* ==========================================================================
   2. HEADER & BARRE SUPÉRIEURE (LANGUE & COORDONNÉES)
   ========================================================================== */

/* Masquage de la section supérieure (header-top avec sélecteur de langue) sur mobile & tablette (< 992px) */
@media (max-width: 991.98px) {
  .th-header .header-top,
  .header-layout1 .header-top {
    display: none !important;
  }
}

/* ==========================================================================
   3. SECTION MEMBRES & GOUVERNANCE (HOMEPAGE) — CARTES & IMAGES UNIFORMES
   ========================================================================== */
#team-sec .swiper-wrapper {
  align-items: stretch !important;
}

#team-sec .swiper-slide {
  height: auto !important;
  display: flex !important;
}

#team-sec .team-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 24px;
}

#team-sec .team-card .box-img {
  width: 100% !important;
  height: 290px !important;
  min-height: 290px !important;
  max-height: 290px !important;
  overflow: hidden !important;
}

#team-sec .team-card .box-img img,
#team-sec .team-card .box-img .member-uniform-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 290px !important;
  max-height: 290px !important;
  object-fit: cover !important;
  object-position: top center !important;
}

#team-sec .team-card .box-content {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  min-height: 140px !important;
}

#team-sec .team-card .box-title {
  min-height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

