
/* === Responsive Mobile pour la page d'accueil === */
@media screen and (max-width: 768px) {

  .top-bar {
    position: fixed !important;   /* fixe aussi la top-bar */
    top: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;    /* au-dessus du header */
  }
  .top-right-buttons {
    margin-top: 6px;
  }

/* HEADER compact */
header {
  position: fixed !important;   /* colle le header */
  top: 40px !important;         /* décalage pour laisser la top-bar visible */
  width: 100% !important;
  z-index: 9999 !important;     /* reste au-dessus du contenu */
}

  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

.nav-links {
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  align-items: center;
  display: none;          /* caché par défaut */
  height: 0 !important;   /* empêche toute hauteur fantôme */
  overflow: hidden;       /* évite qu'un reste s'affiche */
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  background: #111;
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  text-align: center;
  height: auto !important; /* restaure la hauteur normale */
  overflow: visible;
}

  /* Logo centré */
  .logo-center {
    margin: 10px auto 10px auto !important;
  }
  .logo {
    max-height: 105px !important;
  }

/* === Menu Burger aligné sous le bouton mail === */
.burger-menu {
  display: block;
  font-size: 26px;
  color: #FFD700;
  cursor: pointer;
  position: absolute;  
  top: 40px;   /* ajuste la valeur pour descendre sous le mail */
  right: 35px;
  z-index: 300;
}

  /* ACTUALITÉS */
  .actus-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  .actu-card {
    width: 90%;
    max-width: 350px;
  }

  /* MAP */
  .map-encadre iframe {
    min-height: 260px;
    height: auto;
  }

  /* RÉSEAUX SOCIAUX */
  .social-icons {
    flex-direction: column;
    gap: 20px;
  }
  .social-item {
    width: 90%;
    max-width: 300px;
  }

  /* PARTENAIRES */
  .partenaires-image img {
    max-width: 95%;
  }

  /* FOOTER */
  footer {
    font-size: 14px;
    padding: 15px;
  }
}
  /* Décale la section actualités sous le header */
@media screen and (max-width: 768px) {
  .actualites {
    margin-top: 110px !important; /* garde le décalage UNIQUEMENT sur mobile */
  }
}
/* === Shrink uniquement pour le mobile === */
@media screen and (max-width: 768px) {
  header.shrink {
    padding: 4px 8px !important;
    min-height: 55px !important;
    transition: all 0.6s ease-in-out; /* fluide dans les deux sens */
  }

  header.shrink .logo {
    max-height: 50px !important;
    transition: max-height 0.6s ease-in-out; /* plus naturel */
  }

  header.shrink .burger-menu {
    font-size: 22px !important;    /* burger réduit */
    position: absolute !important;
    top: 25px !important;          /* descend pile sous le mail */
    right: 37px !important;        /* reste bien à droite */
    transition: max-height 0.6s ease-in-out; /* plus naturel */
  }

  header.shrink .logo-center {
    margin-top: 0 !important;
  }
}
/* Logo en haut quand le menu burger est ouvert */
.nav-links.active ~ .logo-center {
  position: absolute !important;
  top: 5px !important;         /* colle le logo tout en haut */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 9999 !important;
}
/* Logo en haut quand le menu burger est ouvert */
header .burger-menu.open ~ .logo-center {
  position: absolute !important;
  top: 2px !important;          /* colle le logo tout en haut */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 10000 !important;
}
/* Logo centré en haut quand le menu burger est ouvert */
.nav-links.active ~ .logo-center,
header .burger-menu.open ~ .logo-center {
  position: absolute !important;
  top: 10px !important;  /* augmente la valeur pour le descendre */
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  z-index: 9999 !important;
  text-align: center;
}
/* Taille du logo quand le menu burger est ouvert */
.nav-links.active ~ .logo-center .logo,
header .burger-menu.open ~ .logo-center .logo {
  max-height: 70px !important;  /* ajuste ici la taille */
  transition: max-height 0.6s ease-in-out;
}
header {
  border-bottom: none !important;
}
@media screen and (max-width: 768px) {
  .social-icons {
    flex-direction: column;
    gap: 20px;
    align-items: center;   /* ✅ centre horizontalement les blocs */
    justify-content: center; /* ✅ les garde bien au milieu */
  }

  .social-item {
    width: 90%;
    max-width: 300px;
    margin: 0 auto; /* ✅ sécurité pour forcer le centrage */
  }
}
@media screen and (max-width: 768px) {
  .sponsor-logos {
    flex-direction: column;
    gap: 120px;              /* espace entre chaque sponsor */
    align-items: center;     /* ✅ centre bien au milieu */
    justify-content: center; /* ✅ sécurité pour centrer */
  }

  .sponsor-logo {
    width: 90%;
    max-width: 320px;
    margin: 0 auto !important; 
    transform: none !important;
    transition: none !important;
  }

  .sponsor-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
    .sponsor-logo,
  .sponsor-logo img,
  .sponsor-logo .sponsor-logo-bg {
    box-shadow: none !important;
    filter: none !important;
  }
}
@media screen and (max-width: 768px) {
  .sponsor-logo img {
    max-width: 110%;      /* ✅ zoom à 110% du bloc */
    height: auto;
    transform: scale(1.5); /* ✅ agrandit le logo sans toucher au bloc */
    transform-origin: center; /* centre le zoom */
  }
}

@media screen and (max-width: 768px) {
  .sponsors p {
    margin-bottom: 7px; /* espace sous le texte */
    text-align: center;  /* centre bien le texte */
  }
}

@media screen and (max-width: 768px) {
  .sponsors {
    margin-bottom: 60px; /* ajuste la valeur selon l'espace que tu veux */
  }
}
@media screen and (max-width: 768px) {
  .partenaires {
    margin-top: 1px; /* ajuste la valeur, 40px pour le remonter */
  }
}
/* === Responsive Tablettes (769px à 1024px) === */
@media screen and (min-width: 769px) and (max-width: 1024px) {

  /* On reprend tout du mobile */
  .top-bar {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 10000 !important;
  }

  header {
    position: fixed !important;
    top: 40px !important;
    width: 100% !important;
    z-index: 9999 !important;
  }

  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    font-size: 18px; /* un poil + grand que mobile */
    align-items: center;
    display: none;
    height: 0 !important;
    overflow: hidden;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    height: auto !important;
    overflow: visible;
  }

  .burger-menu {
    display: block !important;
    font-size: 28px;
    color: #FFD700;
    cursor: pointer;
    position: absolute;
    top: 40px;
    right: 35px;
    z-index: 300;
  }

  .logo-center {
    margin: 15px auto !important;
  }

  .logo {
    max-height: 110px !important;
  }

  /* Décale la section actus comme sur mobile */
  .actualites {
    margin-top: 120px !important;
  }

  /* Actus en colonne (ou 2 par ligne si tu veux) */
  .actus-container {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }

  .actu-card {
    width: 90%;
    max-width: 380px;
  }

  /* MAP */
  .map-encadre iframe {
    min-height: 300px;
    height: auto;
  }

  /* Réseaux sociaux */
  .social-icons {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
  .social-item {
    width: 90%;
    max-width: 320px;
  }

  /* Sponsors */
  .sponsor-logos {
    flex-direction: column;
    gap: 100px;
    align-items: center;
  }

  .sponsor-logo {
    width: 90%;
    max-width: 320px;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .logo {
    margin-top: -20px !important; /* remonte le logo */
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  header.shrink .logo {
    max-height: 65px !important; /* ajuste la taille du logo */
    margin-top: -10px !important; /* optionnel : remonte un peu le logo */
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  header.shrink .burger-menu {
    position: absolute !important;
    top: 60% !important;            /* place au milieu verticalement */
    left: 93.7% !important;           /* place au milieu horizontalement */
    transform: translate(-50%, -50%) !important; /* centre parfaitement */
    font-size: 26px !important;     /* taille du burger */
    color: #FFD700 !important;      /* couleur du burger */
    z-index: 9999 !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nav-links.active ~ .logo-center,
  header .burger-menu.open ~ .logo-center {
    top: 20px !important;             /* 🔽 ajuste la valeur pour descendre ou remonter le logo */
    transform: translateX(-50%) !important;
  }

  .nav-links.active ~ .logo-center .logo,
  header .burger-menu.open ~ .logo-center .logo {
    max-height: 78px !important;      /* taille du logo */
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .sponsor-logos {
    flex-direction: column;
    align-items: center;     /* ✅ centre horizontalement */
    justify-content: center; /* ✅ centre verticalement */
    gap: 40px;               /* espace régulier entre chaque logo */
    margin-top: 20px;        /* décale un peu sous le titre */
  }

  .sponsor-logo {
    width: 90% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    box-shadow: none !important; /* ✅ supprime le flou jaune */
    background: none !important;
  }

  .sponsor-logo img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    filter: none !important; /* ✅ supprime tout effet (genre glow/flou) */
    box-shadow: none !important;
    transform: none !important;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .sponsors h2,
  .sponsors p,
  .sponsor-logos {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;         /* adapte la largeur à celle du texte */
    max-width: 320px;   /* garde la cohérence avec tes logos */
  }

  .sponsor-logos {
    display: flex;
    flex-direction: column;
    align-items: center;  /* centre les logos */
    justify-content: center;
    gap: 35px;            /* espace régulier */
    margin-top: 20px;     /* petit écart sous le texte */
  }

  .sponsor-logo {
    margin: 0 auto;
    box-shadow: none !important;
    background: none !important;
  }

  .sponsor-logo img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    filter: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
}