/* === 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;
}
  /* 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) {
  .page-en-construction {
    margin-top: 180px !important; /* décale sous le header */
    text-align: center !important; /* centre le texte */
    padding: 20px !important;
  }

  .contenu-vide h2 {
    font-size: 1.8rem !important;
    color: #FFD700 !important;
    margin-bottom: 15px !important;
  }

  .contenu-vide p {
    font-size: 1rem !important;
    color: #ccc !important;
    line-height: 1.5 !important;
  }

  footer {
    position: relative !important;
    margin-top: 40px !important; /* espace entre texte et footer */
  }
}
@media screen and (max-width: 768px) {
  footer {
    position: fixed !important; /* colle le footer en bas */
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important; /* prend toute la largeur */
    background-color: #000 !important; /* force le fond noir */
    padding: 20px !important;
    text-align: center !important;
    z-index: 9999 !important;
  }

  body {
    padding-bottom: 120px !important; /* laisse la place au footer pour pas le recouvrir */
  }
}
/* === 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 */
    }
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .page-en-construction {
    margin-top: 150px !important; /* décale le bloc sous le header */
    text-align: center;           /* centre le texte */
    padding: 20px;
  }

  .page-en-construction h2 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 15px;
  }

  .page-en-construction p {
    font-size: 16px;
    color: #fff;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  footer {
    position: fixed !important; /* colle le footer en bas */
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important; /* prend toute la largeur */
    background-color: #000 !important; /* force le fond noir */
    padding: 20px !important;
    text-align: center !important;
    z-index: 9999 !important;
  }

  body {
    padding-bottom: 120px !important; /* laisse la place au footer pour pas le recouvrir */
  }
}