/*
Theme Name: asbo-theme
Text Domain: asbo-theme
*/

/* ====== STYLES DE BASE ====== */

/* Arrière-plan du site et polices par défaut */
body {
  background-color: #f5f5f5; /* couleur de fond de la page */
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-family: 'Poppins', sans-serif; /* police globale du corps de texte */
}

/* Titre principal (H1) */
h1 {
  font-family: 'Style Script', cursive; /* police décorative pour H1 */
  font-weight: 400;                     /* Style Script existe surtout en régulier */
  font-size: 50px;                      /* taille des titres H1 */
}

@media (max-width: 768px) {
  h2 {
    font-size: 20px;   /* ajuste selon le rendu souhaité */
    line-height: 1.3;    /* optionnel : adapte l’interligne */
  }
}

/* Fallbacks importants si la police ne charge pas */
:root {
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; /* police par défaut */
  --font-heading: var(--font-body); /* par défaut les titres héritent du body */
}

/* Police globale appliquée partout */
html, body {
  font-family: var(--font-body);
}

/* Titres secondaires (H2 à H6) */
h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700; /* graisse plus forte pour bien distinguer les titres */
}

/* ====== LIENS ====== */

/* Lien sans style */
a.no-style {
  text-decoration: none; /* enlève le soulignement */
  color: inherit;        /* garde la couleur du parent */
}

/* Lien au survol */
a.no-style:hover {
  color: red; /* exemple : devient rouge au hover */
}



/* ====== BOUTONS / PASTILLES ====== */

/* Style "pilule" */
.pill {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px; /* rend le bouton totalement arrondi */
  backdrop-filter: blur(4px) saturate(1.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  letter-spacing: .2px;
}

/* ====== SECTION HERO ====== */

/* Bloc pleine largeur avec image de fond */
.hero-fw {
  background-image: var(--hero-bg); /* image de fond via variable CSS */
  background-size: cover;
  background-position: center;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 40vh; /* hauteur par défaut sur desktop/tablette */
}

/* Texte superposé dans le hero (positionné à droite en desktop) */
.hero-fw .overlay-text {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  max-width: 420px;
}

/* Dégradé optionnel pour lisibilité */
.hero-fw::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}

/* ====== VERSION MOBILE ====== */
@media (max-width: 767.98px){
  .hero-fw {
    min-height: unset;
    aspect-ratio: 1 / 1; /* carré sur mobile */
  }

  .hero-fw .overlay-text {
    top: 50%; left: 50%;
    right: auto; bottom: auto;
    transform: translate(-50%, -50%); /* centré */
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* ====== SWIPER (slider joueurs etc.) ====== */

/* 1) Mise en page flex */
.swiper-wrapper { display: flex; }

/* 2) En mobile : slides pleine largeur */
@media (max-width: 640px) {
  .swiper { padding: 0 12px; }
  .swiper-slide { 
    flex: 0 0 calc(100%) !important;
    width: calc(100%) !important;
  }

  .player-photo {
    width: 100% !important;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

/* 3) Par sécurité, on enlève les limites globales */
.player-card img.player-photo {
  max-width: none !important;
  max-height: none !important;
  display: block;
}

/* Carte joueur */
.player-card {
  text-align: center;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.player-card:hover { transform: scale(1.03); }

/* Photo joueur en portrait */
.player-photo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-bottom: 2px solid #eee;
}

/* Nom du joueur */
.player-name {
  font-size: 1.1rem;
  margin: 8px 0 0 0;
  font-weight: bold;
  color: #333;
}

/* Numéro du joueur */
.player-number {
  font-size: 0.9rem;
  margin: 4px 0 10px;
  color: #333;
}

/* Flèches du slider */
.swiper-button-prev,
.swiper-button-next {
  color: #000;
  transition: color 0.3s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #e63946;
}

/* ====== HERO SLIDER (accueil) ====== */
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }

/* Points de navigation */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-dots .dot {
  display: inline-block;
  width: 12px; height: 12px;
  margin: 0 5px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.hero-dots .dot.active {
  opacity: 1;
  background: #e10600;
}

/* ====== CARROUSEL FCR ====== */
/* Base */
.fcr-posts-carousel {
  background: #f5f5f5;
  padding: 0;                       /* pas de gouttières */
  overflow: hidden;
  --swiper-space-between: 0px;      /* force 0 */
  margin-top: 20px;   /* espace de 10 px au-dessus du slider */

}
.fcr-posts-carousel .swiper-wrapper { gap: 0 !important; margin: 0 !important; }
.fcr-posts-carousel .swiper-slide {
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Carte */
.fcr-card {
  display: flex; flex-direction: column;
  background: #fff; color: inherit; text-decoration: none;
  border-radius: 0px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  transition: transform .25s ease;
}
.fcr-card:hover { transform: translateY(-3px); }
.fcr-card-img { position: relative; }
.fcr-card-img img { width: 100%; height: 48vw; max-height: 360px; object-fit: cover; }
.fcr-category { position: absolute; top: 10px; left: 10px; background:#e10600;color:#fff;font-size:.8rem;padding:4px 8px;border-radius:4px; }
.fcr-card-body { padding: 14px; }
.fcr-date { margin: 0; font-size: .85rem; color: #888; }
.fcr-title { margin: 8px 0; font-size: 1.1rem; line-height: 1.3; }
.fcr-excerpt { color: #444; font-size: .95rem; }

/* === Mobile: 1 carte = 100% largeur, zéro espace === */
@media (max-width: 640px) {
  .fcr-posts-carousel .swiper-slide { width: 100% !important; }
  .fcr-card { width: 100% !important; max-width: 100%;height: 380px;          /* hauteur fixe pour toutes les cartes */
    max-height: 380px;      /* sécurité */ }
  .fcr-posts-carousel { padding-left: 0 !important; padding-right: 0 !important; }
}

/* === ≥641px : multi-cartes compact, sans marges === */
@media (min-width: 641px) {
  .fcr-posts-carousel .swiper-slide { width: auto !important; }
  .fcr-card { width: 260px;  height: 380px;          /* hauteur fixe pour toutes les cartes */
    max-height: 380px;      /* sécurité */}                /* ajuste 240–300px selon goût */
  .fcr-card-img img { height: 180px; }       /* fixe propre pour les cartes */
}

/* Pagination active & flèches */
.fcr-posts-carousel .swiper-pagination-bullet-active { background: #e10600; }

/* === Hauteur uniforme des cartes en desktop === */
@media (min-width: 1025px) {
  .fcr-card {
    /* Choisis une hauteur qui couvre tes contenus moyens */
    height: 420px;          /* hauteur fixe pour toutes les cartes */
    max-height: 420px;      /* sécurité */
    display: flex;
    flex-direction: column;
  }

  /* Si le texte dépasse, on peut le scroller ou le masquer */
  .fcr-card-body {
    flex: 1;
    overflow: hidden;       /* coupe proprement si trop long */
  }
}

.fcr-posts-carousel .swiper-pagination {
  display: none !important;
}

/* Animation apparition */
.hidden-on-load {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}
.reveal-on-scroll {
  opacity: 1;
  transform: scale(1);
}

/* ====== VIDEO TOP ====== */
.top-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  overflow: hidden;
}
.top-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.video-overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ====== PARTENAIRES ====== */
.partners-major {
  background: #f7f7f9;
  padding: 36px 20px;
}
.partners-major__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.partners-major__title {
  text-align: center;
}
.partners-major__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
}
/* Responsive grille partenaires */
@media (min-width:640px) {
  .partners-major__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width:1024px) {
  .partners-major__grid { grid-template-columns: repeat(5, 1fr); }
}
.partners-major__grid img {
  max-width: 100%;
  max-height: 100px;
  width: auto; height: auto;
  object-fit: contain;
}
.partners-major__btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform .2s ease, opacity .2s ease;
}
.partners-major__btn:hover { transform: translateY(-1px); opacity:.9; }

/* Grille générique (page partenaires) */
.partners-group__inner { max-width:1200px; margin:0 auto; padding:24px 20px; }
.partners-group__title { margin:0 0 12px; font-size:1.4rem; }
.partners-group__grid {
  list-style:none; margin:0; padding:0;
  display:grid; gap:16px; grid-template-columns:repeat(2,1fr);
  align-items:center; justify-items:center;
}
@media (min-width:640px){ .partners-group__grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:1024px){ .partners-group__grid{ grid-template-columns:repeat(6,1fr); } }
.partners-group__grid img {
  max-width:100%; max-height:150px;
  width:auto; height:auto;
  object-fit:contain;
}

/* Mise en page spécifique page partenaires */
.page-template-page-partenaires .partners-archive {
  min-height: calc(100vh - 200px); /* prend tout l'écran moins header/footer */
  display: block;
}


.swiper_joueurs {
  max-width: 100%;
  overflow: hidden; /* bloque le débordement horizontal */
}

/* Spécifique mobile : largeur ≤ 768px par exemple */
@media (max-width: 768px) {
  .hero-fw {
    min-height: 200px;        /* hauteur réduite sur mobile */
    height: 200px; 
    background-position: 15% center;  /* décale de 20% depuis la gauche */

  }
  .hero-fw .overlay-text {
    margin-top: 4rem;  /* pousse le bloc vers le bas */
  }
  .overlay-text a.no-style {
    color: white;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 250px;      /* <- choisis la hauteur désirée */
  }
}

/* Sur le wrapper du slider (ex: .hero, .swiper ou .mon-carousel) */
.hero,
.swiper {
  --swiper-navigation-color: #fff;   /* flèches blanches */
  --swiper-pagination-color: #fff;   /* pagination active blanche */
}


.hero-text {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;

  display: flex;                    /* centrage flex */
  align-items: center;              /* centre verticalement */
  justify-content: center;          /* centre horizontalement */

  color: #fff;                      /* texte blanc sur l’image */
  font-size: 2rem;                  /* adapte la taille */
  text-align: center;
  text-shadow: 0 0 8px rgba(0,0,0,0.6); /* lisibilité sur fond clair */
  pointer-events: none;             /* optionnel, clics passent à travers */
}