/* =========================================================
   🌍 GLOBAL
   ========================================================= */
@font-face {
  font-family: 'Insaniburger';
  src: url('fonts/Insanibu.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;   /* Empêche le scroll horizontal */
  overflow-y: auto;     /* Autorise le scroll vertical */
  font-family: 'Insaniburger', 'Poppins', sans-serif;
  background: #ffffff;
  color: #000000;
  scroll-behavior: smooth;
}


/* FILIGRANE GLOBAL */
body::before {
  content: "🏃🏀ACSL🏃⚽ACSL🏃🏀ACSL🏃🏀ACSL🏃🏐ACSL🏃🏋ACSL🏃⚾ACSL🏃🏸ACSL🏃⚽ACSL🏃🏀ACSL🏃🏀ACSL🏃🏐ACSL🏋⚾ACSL🏃🏀ACSL🏃🏸ACSL🏃⚽ACSL🏃🏀ACSL🏃🏐ACSL🏃🏋ACSL🏃⚽ACSL🏃🏀🏸ACSL🏃🏀ACSL🏃🏐ACSL🏃🏋🏀ACSL🏃⚾ACSL🏃🏸ACSL⚽🏸ACSL🏸🏀ACSL🏀🏃ACSL🏐🏸ACSL🏋⚾ACSL🏃🏀ACSL🏃🏸ACSL🏃⚽ACSL🏀🏃ACSL🏃🏐ACSL🏃🏋";
  
  position: fixed;
  inset: -20%;                 /* déborde volontairement */
  
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: 30px;
  line-height: 1.5;

  color: rgba(0, 0, 0, 0.05);
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;

  transform: rotate(-20deg);
  pointer-events: none;
  z-index: 0;
}


/* =========================================================
   🧭 HEADER / NAVIGATION
   ========================================================= */

.menu-bar {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000; /* Le header reste sous le menu déroulant */
}

.menu-bar h1 {
  flex: 1;
  text-align: left;
  font-family: 'Gemola';
  font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  color: #fff;
}

.hamburger {
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-right: 80px;
  cursor: pointer;
  z-index: 2100;
}

.hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Menu déroulant ===== */
#navMenu.nav-hidden {
  display: none;
}

#navMenu.nav-visible {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 55px;
  right: 100px;
  background: #222;
  border-radius: 6px;
  padding: 10px 0;
  z-index: 3000; /* 🔥 Plus haut que le header */
}

#navMenu a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s ease;
  position: relative;
  z-index: 3100; /* 🔥 garantit que le lien est cliquable */
  cursor: pointer;
}

#navMenu a:hover {
  background: #800020;
}

/* ===== Version mobile ===== */
@media (max-width: 768px) {

  .hamburger {
    margin-right: 40px;
    
  }

  .menu-bar {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .menu-bar h1 {
    text-align: left;
    font-size: 1rem;
  }

  #navMenu.nav-visible {
    right: 15px;
    top: 45px;
  }
}


/* =========================================================
   🏁 SECTION ACCUEIL
   ========================================================= */

.accueil {
  position: relative;
  width: 100%;
  min-height: 140vh;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;  
}

.accueil-image {
  position: absolute;        /* ou absolute selon ton layout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* équivalent du background-size: cover */
  z-index: 1;            /* pour rester en arrière-plan */
}

.overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.45); /* sombre */
  z-index: 2;
}



/* Supprime le scroll horizontal global */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* =========================================================
   TEXTE ACCUEIL
   ========================================================= */
.accueil-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
  box-sizing: border-box;
  z-index: 3;
}

.accueil-text h2 {
  color: #ffffff;
  font-size: 3em;
  margin: 0;
  z-index: 3;
}

.accueil-text h3 {
  color: #f9d926;
  font-size: 1.5em;
  margin-top: 10px;
  font-weight: 400;
  
}


/* =========================================================
   ICÔNE ROTATIVE
   ========================================================= */
.rotate-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 15px auto;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: spin 8s linear infinite;
}


/* =========================================================
   CARTES ACCUEIL — Conteneur & layout
   ========================================================= */
.accueil-cards {
  margin-top: 5px;
  display: flex;
  gap: 25px;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  z-index: 2;
}

/* Colonnes verticales */
.accueil-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: auto;               /* prend la largeur de son contenu (cartes) */
  align-items: center;       /* centre les cartes dans la colonne */
}

/* =========================================================
   CARTES — Style
   ========================================================= */
.accueil-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #e91147;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(5px);
  transition: 0.3s ease;
  width: 180px;          /* largeur réduite des cartes */
  flex: 0 0 auto;        /* empêche l'étirement horizontal */
}

.accueil-card h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

.accueil-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}


/* =======================
   RESPONSIVE ACCUEIL
   ======================= */

@media (max-width: 768px) {

  .accueil {
    padding: 0;             /* empêche la vidéo d'être poussée vers le bas */
    min-height: 100vh;      /* garantit la bonne hauteur */
  }

  .accueil video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
  }

  .accueil-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);  /* recentrage vrai */
    width: 90%;
  }

  .accueil-text h2 {
    font-size: 1.7rem;
  }

  .accueil-text h3 {
    font-size: 1rem;
  }

  .accueil .rotate-icon {
    width: 60px;
    height: 60px;
  }


  /* ===== CARTES (2 colonnes) ===== */

  .accueil .accueil-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centre réellement les 2 colonnes */
    gap: 15px;
    max-width: 95%;
    margin: 0 auto;
  }

  .accueil .accueil-col {
    width: calc(50% - 10px); /* 2 colonnes sur mobile */
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .accueil .accueil-card {
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  .accueil .accueil-card h4 {
    font-size: 0.95rem;
  }

  .accueil .accueil-card p {
    font-size: 0.85rem;
  }
}




/* =========================================================
   🏁 SECTION INSCRIPTION
   ========================================================= */

.section.inscription {
  padding: 100px 20px 80px;
  background: #ffffff;
  text-align: center;
}

.section.inscription .section-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #e91147;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 50px;
}


/* ================================
   GRILLE DES CARTES
================================ */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}


/* ================================
   CARTES — Style commun
================================ */
.info-card {
  background: rgba(245, 245, 245, 0.3);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  color: rgba(245, 245, 245, 0.3);
  backdrop-filter: blur(10px);
  transition: 0.3s ease;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-5px);
  background: rgba(238, 236, 236, 0.2);
}

/* Bandeau noir */
.card-title {
  background: linear-gradient(
    to bottom,
    rgba(206, 206, 206, 0.7),
    rgba(245, 245, 245, 0.3)
  );

  margin: -30px -20px 20px;
  padding: 12px 0;
  border-radius: 12px 12px 0 0;
}


.card-title h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #ff0040;
}

/* Textes */
.info-card p {
  margin: 8px 0;
  line-height: 1.4;
}

.info-card .lieu,
.info-card .heure {
  color: #b4b3b3;
}

.info-card .parcours {
  font-size: 1.1rem;
  font-weight: bold;
  color: #b0b0b0;
  margin-top: 10px;
  text-transform: uppercase;
}

.info-card .label {
  font-size: 0.9rem;
  color: #e92626;
}


/* ================================
   BOUTONS
================================ */
.card-buttons,
.video-link,
.inscription-link {
  display: inline-block;
}

.card-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Boutons uniformisés */
.info-card a {
  padding: 10px 20px;
  border-radius: 25px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Inscription */
.inscription-link {
  background: linear-gradient(135deg, #e91147, #e7d405);
}
.inscription-link:hover {
  background: linear-gradient(135deg, #e91147, #e7d405);
}


/* =========================================================
   📱 RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-card h3 {
    font-size: 1.5rem;
  }

  .info-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .section.inscription {
    height: auto;
    padding: 100px 20px;
  }

  .section.inscription h2 {
    font-size: 1.8rem;
  }

  .section.inscription .date {
    font-size: 1.4rem;
  }
}


/* ===============================
   SECTION RESULTATS
   =============================== */
.section.resultats {
  padding: 80px 20px 60px; /* réduit la hauteur globale */
  background: #f2f2f2;
  text-align: center;
  min-height: 100vh;
}

.section.resultats h2 {
  text-align: center;   /* centre le texte */
  color: #c2103c;       /* rouge ACSL */
  margin-bottom: 30px;  /* petit espace sous le titre */
  font-size: 2rem;      /* optionnel, pour le rendre plus visible */
  font-weight: 700;     /* gras pour bien ressortir */
}
.section.resultats .section-title {
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Conteneur grid */
.section.resultats .results-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;               /* réduit l’espace entre les cartes */
  max-width: 600px;
  margin: 0 auto;
}

/* Carte année */
.section.resultats .result-card {
  background: rgba(174, 5, 5, 0.975);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 25px 15px;      /* 📌 réduit la carte */
  text-align: center;
  color: #e6c325;
  text-decoration: none;
  transition: 0.3s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.section.resultats .result-card:hover {
  transform: translateY(-4px);
  background: rgb(234, 35, 35);
}

.section.resultats .result-card h3 {
  font-size: 2.2rem;       /* 📌 plus petit */
  margin: 0;
  color: #ff0040;
}

.section.resultats .result-card p {
  margin-top: 8px;
  font-size: 1.5rem;      /* 📌 réduit */

}

/* Empêche tout débordement horizontal */
.section.resultats,
.results-container,
.result-card {
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}

/* MOBILE */
@media (max-width: 600px) {

  .section.resultats .results-container {
    display: grid !important;
    grid-template-columns: 1fr !important; /* ⚡ Force 1 colonne */
    width: 100% !important;
    max-width: 100% !important; 
    padding: 0 15px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .section.resultats .result-card {
    width: 100% !important;      /* prend toute la ligne */
    margin: 0 auto !important;
    padding: 18px 12px;
    box-sizing: border-box;
  }

  .section.resultats .result-card h3 {
    font-size: 1.6rem;
  }

  .section.resultats .result-card p {
    font-size: 1.2rem;
  }
}




/* =========================================================
   SECTION — Retour en images
========================================================= */
.section.retour-en-images {
  padding: 80px 20px 60px; /* réduit la hauteur globale */
  background: #ffffff;
  text-align: center;
  min-height: 100vh;
}

.retour-en-images h2 {
  text-align: center;   /* centre le texte */
  color: #c2103c;       /* rouge ACSL */
  margin-bottom: 30px;  /* petit espace sous le titre */
  font-size: 2rem;      /* optionnel, pour le rendre plus visible */
  font-weight: 700;     /* gras pour bien ressortir */
}

.retour-en-images .cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
  padding: 0 15px;
}


/* Bloc image */
.retour-en-images .image-block {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

/* Overlay sombre */
.retour-en-images .image-block::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0,0,0,0.4); 0.4 = niveau d'assombrissement */
  z-index: 2; /* doit être sous ton texte mais au-dessus de l'image */
}


/* Image légèrement arrondie */
.retour-en-images .image-block img {
  width: 90%;
  display: block;
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.4s ease;
  margin: 20px auto;
}

/* Titre de l'année sur l'image */
.retour-en-images .image-block h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 8rem;
  font-family: 'Paris Forbel','Poppins', sans-serif;
  font-weight: bold;
  z-index: 3;
  text-align: center;
  pointer-events: none;
   color: rgba(255, 255, 255, 0.8); /* blanc + transparence */
}

/* Overlay pour les boutons */
.retour-en-images .image-block .buttons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none; /* capte les clics quand visible */
  transition: opacity 0.3s ease;
  z-index: 4;
  
}

/* Affiche overlay quand la carte est active */
.retour-en-images .image-block.open .buttons {
  opacity: 1;
  pointer-events: auto;   /* capte les clics quand visible */
}

.retour-en-images .image-block .buttons a {
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(233, 17, 71, 0.85);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.retour-en-images .image-block .buttons a:hover {
  background: rgba(233,17,71,1);
  transform: translateY(-2px);
}




/* =============================
   Responsive
============================= */

@media (max-width: 600px) {
  .retour-en-images .cards-container {
    grid-template-columns: 1fr;
  }

  .retour-en-images .image-block h3 {
    font-size: 9rem;
  }

  .retour-en-images .image-block .buttons a {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

/* =========================================================
   🏃‍♀️ SECTION INFOS PRATIQUES - version sans cartes
   ========================================================= */
#infospratiques {
  background-color: #f2f2f2; 
  padding: 50px 20px;     /* espace autour du contenu */
  color: #000000;            /* couleur du texte par défaut */
  text-align: justify;
}

#infospratiques h2 {
  color: #e91147;         /* rouge ACSL */
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
}

#infospratiques h3 {
  color: #e91147;
  margin-top: 30px;
  margin-bottom: 15px;
}

#infospratiques img {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

/* ===== PARTENAIRES ===== */
.partners {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
}

.partners h2 {
  color: #cc0c3c; /* rouge bordeaux */
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 700;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.partners-logos img {
  width: 150px;
  height: 100px;
  object-fit: contain; /* garde les proportions sans déformation importante */
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.partners-logos img:hover {
  transform: scale(1.1);
}


/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .cards { flex-direction: column; align-items:center; }
  .apropos-cards { flex-direction: column; align-items:center; }
  .events { flex-direction: column; align-items:center; }
}










