
/* === 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;      /* force hauteur 0 */
  overflow: hidden !important; /* empêche le reste d'apparaître */
  padding: 0 !important;     /* ✅ supprime le padding quand fermé */
  margin: 0 !important;      /* ✅ supprime la marge quand fermé */
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px !important; /* ✅ remis uniquement ouvert */
  background: #111;
  padding: 15px !important;    /* ✅ remis uniquement ouvert */
  border-radius: 8px;
  width: 100%;
  text-align: center;
  height: auto !important;
  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;
}
  /* FOOTER */
  footer {
    font-size: 14px;
    padding: 15px;
  }
}
/* === 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) {
  .infos-competitions {
    max-width: 80%;           /* ✅ réduit la largeur */
    padding: 25px 15px;       /* ✅ moins d’épaisseur */
    margin: 30px auto;        /* ✅ espace autour */
    border-left: 3px solid #FFD700; /* ✅ bordure plus fine */
  }

  .infos-competitions h2 {
    font-size: 20px;          /* ✅ titre plus petit */
    margin-bottom: 20px;
  }

  .infos-competitions h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .infos-competitions p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
  }

  .bloc-fonctionnalites {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
  }
}
@media screen and (max-width: 768px) {
  .competitions-title, 
  .competitions-header,
  .competitions-section, 
  .actualites { 
    margin-top: 110px !important; /* ajuste si besoin */
  }
}
/* === 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;
  }

@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 */
    }
  }
}