


/* =============================
   HEADER + NAVIGATION PRINCIPALE
   ============================= */
.site-header {
  background: var(--color-header);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* s’assure que l’en-tête reste au-dessus du contenu */
}

.site-header .header-inner {
  max-width: 1200px;            /* largeur max de ton en-tête */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}

/* Logo à gauche */
.site-header .logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* ============================
   Variables de palette de couleurs
   ============================ */
:root {
  --color-header: #161B2F;
  --color-bg: #0d1117;
  --color-surface: #2f2f4f;
  --color-primary: #5A7184;
  --color-secondary: #C4A35A;
  --color-accent: #F0F0F0;
  --color-text: #ececec;
  --color-muted: #999;
  --trans-dur: 0.6s;
  --blur-max: 20px;
  --anim-ease: cubic-bezier(0.55,0.085,0.68,0.53);
}

/* ============================
   Réinitialisation et typographie
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  position: relative;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  font-family: 'Geomanist', sans-serif;
}

/* Voile blanc semi-transparent */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 0;
}

/* Liens et listes */
a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color 0.3s;
}
a:hover {
  color: var(--color-secondary);
}
ul {
  list-style: none;
}

/* ============================
   Header / Navbar
   ============================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-header);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.member-bar {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.member-bar a {
  margin-left: 1rem;
  color: var(--color-text);
  transition: color 0.3s;
}
.member-bar a:hover {
  color: var(--color-primary);
}

nav {
  flex: 1;
  text-align: center;
}
nav ul {
  display: inline-flex;
  gap: 2rem;
}
nav a {
  color: var(--color-text);
  font-weight: 600;
}
nav a:hover {
  color: var(--color-primary);
}

/* Hamburger (desktop caché) */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
}
.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 1px;
  margin-bottom: 4px;
}
.hamburger-btn .bar:last-child {
  margin-bottom: 0;
}

/* ============================
   Footer
   ============================ */
footer {
  text-align: center;
  padding: 1rem;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
footer .footer-links a {
  color: var(--color-primary);
}
@media (max-width: 480px) {
  footer {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  footer .footer-links {
    display: block;
  }
  footer .footer-links a {
    display: block;
    margin: 0.25rem 0;
  }
}

/* ============================
   Conteneur principal
   ============================ */
main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
  padding-top: 80px;
}

/* ============================
   Galerie & Vidéos
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.gallery-item,
.video-item {
  position: relative;
  overflow: visible;
  background: var(--color-surface);
}

/* Images */
.gallery-item img,
.gallery-item:hover img {
  transform: scale(1.05);
}
.video-item video,
#latest-slider .swiper-slide .slide-video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ============================
   Widget Annonces
   ============================ */
#annonces {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: #222;
}
#annonces h2 {
  margin-bottom: 0.75rem;
}
.message-list li {
  display: none;
  padding: 1rem;
  background: #fff;
  margin: 0.5rem 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ============================
   Panel Commentaires
   ============================ */
.comments-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 400px;
  margin: auto;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  padding: 1.5rem;
  z-index: 20;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  color: #000 !important;
}
.comments-panel.show {
  transform: translateY(0);
  opacity: 1;
}
.comments-panel .close-comments {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.comments-panel .close-comments:hover {
  color: var(--color-primary);
}
.comments-panel .comments-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.comments-panel .comment {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}
.comments-panel .comment strong {
  color: var(--color-primary);
}
.comments-panel .comment p {
  margin: 0.25rem 0 0;
  color: #000;
}
.comments-panel .comment-form input,
.comments-panel .comment-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}
.comments-panel .comment-form button {
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.comments-panel .comment-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Boutons “Voir tous” */
.view-all-comments {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.9rem;
}
.view-all-comments:hover {
  text-decoration: underline;
}

/* ============================
   Formulaire “Envoyer un petit mot”
   ============================ */
#send-msg {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
#send-msg h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}
#send-msg textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 1rem;
}
#send-msg button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}
#send-msg button:hover {
  background: var(--color-secondary);
}

/* ============================
   Slider “Mes dernières photos et vidéos”
   ============================ */
.slide-link {
  display: block;
  color: inherit;
}
.slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.1);
  color: #222;
  padding: 0.4rem;
  font-size: 0.9rem;
  text-align: center;
}
/* ============================
   Carte Leaflet
   ============================ */
.map-container {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  flex: 1 1 300px;
}
.map-container h2 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  color: var(--color-text);
  text-align: center;
}
#map-vietnam {
  flex: 1;
  height: 300px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
.blink-marker .pulse {
  width: 12px;
  height: 12px;
  background: #e63946;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .9; }
  50%  { transform: scale(2); opacity: .3; }
  100% { transform: scale(1); opacity: .9; }
}

/* ============================
   Accueil : Slider & Carte 
   ============================ */
.home-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

/* ============================
   Auth (Login/Register)
   ============================ */
.auth-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  color: #222;
}
.auth-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}
.auth-container .error {
  background: #ffe6e6;
  color: #c00;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: bold;
}
.auth-container form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.auth-container form input {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}
.auth-container form button {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
  margin-top: 1rem;
}
.auth-container form button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.auth-container .alt-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.auth-container .alt-link a {
  color: var(--color-primary);
  font-weight: 600;
}
.auth-container .alt-link a:hover {
  color: var(--color-secondary);
}

/* ============================
   Responsive (mobile)
   ============================ */
@media (max-width: 768px) {
  /* Header */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  .header-left {
    width: 100%;
    justify-content: space-between;
  }
  nav {
    width: 100%;
    margin-top: 0.75rem;
    text-align: left;
  }
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .hamburger-btn {
    display: flex;
  }
  /* Home widgets */
  .home-widgets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  #latest-slider,
  .map-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 !important;
    padding: 1rem !important;
  }
  #map-vietnam {
    width: 100% !important;
    height: 250px;
  }

  /* Grilles */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item, .video-item {
    margin: auto;
    max-width: 90%;
  }
  .comments-panel {
    width: 100% !important;
    left: 0 !important;
    max-width: none;
    border-radius: 0;
  }

  /* Footer */
  footer {
    padding: 0.5rem;
    font-size: 0.75rem;
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  /* Footer minimal */
  footer .footer-links,
  footer .footer-legal {
    display: none;
  }
  /* Home widgets padding */
  .home-widgets {
    margin: 1rem auto;
    gap: 1rem;
  }
  #latest-slider {
    padding: 0.5rem;
  }
  .map-container #map-vietnam {
    height: 180px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .home-widgets {
    gap: 1.5rem;
  }
  #latest-slider {
    padding: 0.75rem;
  }
  .map-container #map-vietnam {
    height: 220px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-widgets {
    gap: 2rem;
    padding: 0 1rem;
  }
  .map-container #map-vietnam {
    height: 250px;
  }
}
/* Titres h2 du slider, de la carte et des annonces → couleur noire */
#latest-slider h2,
.map-container h2,
#annonces h2 {
  color: #222 !important;
}
/* ===== Empêcher le chevauchement du slider et de la carte ===== */
.home-widgets {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
  max-width: 1200px;
}

/* S’assurer que chaque section (slider / localisation) s’aligne correctement */
#latest-slider,
.map-container {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* Ajoute un margin-top autour du slider pour bien le séparer du formulaire d’annonces */
#latest-slider {
  margin-top: 1rem;
}
/* Remonte légèrement les titres dans le slider */
#latest-slider .slide-title {
  bottom: 25px;
}
@media (max-width: 768px) {
  /* Carte pleine largeur avec hauteur fixe */
  .map-container {
    display: block !important;
  }
  #map-vietnam {
    width: 100% !important;
    height: 250px !important;   /* ajuste si tu veux plus grand */
    margin: 1rem 0 !important;
  }
}
/* Slider horizontal mobile → 1 slide full width */
#latest-slider .swiper-slide img {
  height: 240px;
  object-fit: cover;
  display: block;
  width: 100%;
}
.time-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
  margin-left: 1rem;
}
/* ======================
   Barre membre & horloges
   ====================== */
.member-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-size: 0.9rem;
}

.member-bar strong {
  color: var(--color-secondary);
}

.member-bar .logout {
  margin-left: 1rem;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.time-zone {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-left: 2rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.time-zone .tz {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.time-zone .flag {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
}
/* Conteneur à droite du header */
.header-extras {
  margin-left: auto;            /* pousse à l’extrémité droite */
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

/* “Bonjour” */
.member-bar {
  font-size: 0.9rem;
  color: var(--color-text);
}
.member-bar strong {
  color: var(--color-secondary);
}
.member-bar .logout {
  margin-left: 0.5rem;
  text-decoration: underline;
  font-size: 0.8rem;
}

/* Horloges */
.time-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text);
}
.time-zone .tz {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Drapeaux SVG redimensionnés */
.time-zone .flag {
  width: 20px;
  height: auto;
  display: inline-block;
}
/* =============================
   RESPONSIVE GÉNÉRAL (≤768px)
   ============================= */
     .header-extras {
    flex-wrap: nowrap !important;
    justify-content: space-between;
  }
@media (max-width: 768px) {
  /* ——— Header passe en colonne ——— */
  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  /* Logo tout en haut, centré */
  .site-header .logo {
    margin-bottom: 0.5rem;
  }

  /* Barre des extras (bonjour + horloges) en bas du header */
  .header-extras {
    margin-top: 0.75rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* Ajustements “Bonjour” + déconnexion */
  .member-bar {
        margin: 0;
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .member-bar .logout {
    font-size: 0.8rem;
  }

  /* Horloges full width alignées droite */
  .time-zone {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  /* ——— Slider full width ——— */
  #latest-slider {
    width: 100% !important;
    padding: 0.5rem !important;
    margin: 1rem 0 !important;
  }
  /* ——— Carte full width ——— */
  .map-container {
    width: 100% !important;
    margin: 1rem 0 !important;
  }
  #map-vietnam {
    height: 250px !important;
  }

  /* ——— Grilles ——— */
  .gallery-grid,
  .video-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =============================
   XS (≤480px) : petits ajustements
   ============================= */
@media (max-width: 480px) {
  /* Réduit la taille des drapeaux et du texte */
  .time-zone .flag {
    width: 16px;
  }
  .time-zone,
  .member-bar {
    font-size: 0.8rem;
  }
  .time-zone {
    margin: 0;
    white-space: nowrap;   /* empêche l’heure de passer à la ligne */
    font-size: 0.85rem;
  }
  /* Header inward padding */
  .site-header .header-inner {
    padding: 0.5rem !important;
  }
}
@media (max-width: 768px) {
  /* Mets tout le header en colonne */
  .site-header .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Fais passer la barre “Bonjour / Déconnexion” et les horloges en colonne */
  .header-extras {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
  }

  /* Le “Bonjour” juste sous le logo */
  .member-bar {
    order: 1;
    margin: 0;
  }

  /* Les horloges passent chacune sur leur ligne */
  .time-zone {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .time-zone .tz {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
}
@media (max-width: 768px) {
  /* 1) Passe le header-inner en row pour le first-row */
  .site-header .header-inner {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
  }
  /* 3) Logo et hamburger restent order 0 et 1 par défaut */
  /* 4) Les heures (time-zone) passent en order 2 sur la première ligne */
  .time-zone {
    order: 2;
    margin-left: auto;
  }

  /* 5) Si tu as une barre membre, place-la juste avant les heures */
  .member-bar {
    order: 1;
    margin-right: 1rem;
  }
}
@media (max-width: 768px) {
  /* Force le bouton hamburger au-dessus de tout */
  .hamburger-btn {
    position: relative;
    z-index: 9999;
  }
  /* Désactive la capture d’événements sur la zone des heures */
  .time-zone {
    pointer-events: none;
  }
}
@media (max-width: 768px) {
  /* 1) On garde header-inner en ligne */
  .site-header .header-inner {
    flex-direction: row !important;
    align-items: center;
  }
  /* 3) Les “extras” (Bonjour + horloges) passent juste après la nav */
  .header-extras {
    order: 2;
    display: flex;
    flex-direction: column; /* tu peux mettre row si tu préfères côte à côte */
    gap: 0.5rem;
    margin-left: 1rem;
  }

  /* 4) Le bouton hamburger est en dernier, poussé à l’extrême droite */
  .hamburger-btn {
    order: 3;
    margin-left: auto;
    position: relative;
    z-index: 1000;
  }
}
/* ============================
   Slider “Mes dernières photos et vidéos”
   ============================ */
#latest-slider {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#latest-slider h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--color-text);
  text-align: center;
}

.swiper-container,
.swiper-wrapper {
  width: 100%;
}

.swiper-slide {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slide-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--color-text);
  opacity: 0.7;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  opacity: 1;
}

/* Responsive : 1 slide full-width on mobile */
@media (max-width: 768px) {
  #latest-slider {
    padding: 1rem;
  }
  .swiper-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}

/* ============================
   Galerie
   ============================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  background: var(--color-surface);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.4rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Responsive Galerie */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
.home-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .home-widgets {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  /* 1) Cacher temporairement la zone du dessus */
  .header-top,
  .header-extras {
    display: none !important;
  }
  /* 2) Forcer l’affichage du header-bottom */
  .site-header .header-bottom {
    display: flex !important;
    position: relative;
    z-index: 9999 !important;
  }
  /* 3) Rendre le burger visible avec fond pour tester */
  .hamburger-btn {
    z-index: 10000 !important;
    background: rgba(255,0,0,0.2) !important;
    pointer-events: auto !important;
  }
}
/* ==============================
   MENU MOBILE : FULL SCREEN OVERLAY
   ============================== */
@media (max-width: 768px) {
  /* reset */
  #mainNav {
    all: unset;
    display: none;
  }

  /* quand ouvert : full screen, colonne, fond, z-index */
  #mainNav.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: var(--color-surface) !important;
    padding-top: 4rem !important;  /* pour laisser passer ton header */
    overflow-y: auto !important;
    z-index: 2000 !important;
  }

  /* liens bien espacés */
  #mainNav.open ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #mainNav.open li {
    margin: 1rem 0 !important;
    text-align: center;
  }
  #mainNav.open a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
  }
  #mainNav.open a:hover {
    background: rgba(255,255,255,0.05) !important;
  }

  /* ton bouton burger au-dessus de tout */
  #hamburgerToggle {
    position: relative !important;
    z-index: 2100 !important;
  }
}
