/* public/css/navbar.css */

/* --- 1. CONFIGURATION GLOBALE --- */
:root {
  /* COULEURS */
  --yellow-main: #faff00;
  --blue-main: #4a90e2;
  --black: #000000;
  --white: #ffffff;
  
  /* OMBRES */
  --shadow-hard: 4px 4px 0px #000;
  --shadow-hover: 2px 2px 0px #000;
  --shadow-figma: 10px 10px 4px rgba(0, 0, 0, 0.8);
  
  /* DIMENSIONS */
  --navbar-height: 90px; 
}

/* --- CLASSE UTILITAIRE POUR LE BODY --- */
/* À ajouter sur votre balise <body class="body-push-fixed"> */
.body-push-fixed {
  padding-top: var(--navbar-height);
  margin: 0;
  /* Optionnel : si vous voulez la police sur tout le site, décommentez la ligne dessous */
  /* font-family: 'Clash Display', sans-serif; */
}

/* --- 2. BARRE DE NAVIGATION --- */
.navbar-wrapper {
  /* On applique la police ICI pour ne pas toucher au reste du site */
  font-family: 'Clash Display', sans-serif;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  
  margin: 0;
  z-index: 1000;
  padding: 0;
}

#main-menu {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  
  background-image: url("../img/Pattern_bleu.png"); 
  background-color: var(--blue-main); 
  background-size: cover;
  background-position: center;

  padding: 0 30px;
  
  display: flex;
  justify-content: space-between;
  align-items: center; 
  
  border-bottom: 3px solid var(--black);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- 3. ÉLÉMENTS DU MENU --- */

.menu-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.menu-center img {
  height: 60px;
  width: auto;
  display: block;
}

.menu-right-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* BOUTONS RONDS */
.nav-btn, .nav-btn-qr {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: var(--shadow-hard);
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  cursor: pointer;
  font-size: 24px;
  transition: all 0.1s ease;
  z-index: 10;
  
  /* Force l'héritage de la police définie dans .navbar-wrapper */
  font-family: inherit; 
}

.nav-btn:active, .nav-btn-qr:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.btn-burger {
  background-color: var(--white);
  color: var(--black);
}

.nav-btn-qr {
  background-color: var(--yellow-main) !important;
  color: var(--black);
}

/* BOUTONS PILLULES */
.btn-pill {
  background: #333;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 3px solid var(--black);
  box-shadow: var(--shadow-hard);
  transition: transform 0.1s, box-shadow 0.1s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
}

.btn-pill:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
}

.admin-icon { display: none; } 

/* COMPTEUR VISITEUR */
.visitor-counter.badge-yellow {
  background: var(--yellow-main);
  color: var(--black);
  padding: 8px 25px;
  border-radius: 40px; 
  border: 3px solid var(--black);
  font-weight: 700;
  font-size: 20px; 
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-hard);
  font-family: inherit;
}
.visitor-counter i { font-size: 24px; }


/* --- 4. OVERLAY MENU BURGER (Style corrigé : Gros boutons centrés) --- */
.menu-overlay {
  font-family: 'Clash Display', sans-serif; /* Police forcée ici aussi */
  
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(5px); 
  
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.menu-overlay.open { opacity: 1; visibility: visible; }

.overlay-header {
    width: 100%;
    height: var(--navbar-height);
    padding: 0 30px;
    box-sizing: border-box;
    
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    
    margin-bottom: 40px;
}

.close-overlay-btn {
    background-color: var(--white);
    color: var(--black);
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 3px solid var(--black);
    display: flex; justify-content: center; align-items: center;
    font-size: 24px; cursor: pointer;
}

.overlay-logo {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3; filter: grayscale(100%);
}
.overlay-logo img { height: 40px; }


/* LISTE DES LIENS (GROS BOUTONS) */
.menu-links {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; 
  gap: 25px;
  
  /* Largeur augmentée pour faire de gros boutons */
  width: 90%;
  max-width: 500px; 
  margin-top: 20px;
}

.menu-links a {
  display: block;
  background-color: var(--yellow-main);
  color: var(--black);
  text-align: center;
  
  /* C'est ici qu'on gère la taille */
  padding: 20px 0;
  border-radius: 60px;
  font-size: 1.5rem; 
  font-weight: 700;
  
  text-decoration: none;
  border: 3px solid var(--black);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  
  font-family: inherit;
}

.menu-links a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.6);
}


/* --- 5. MODALE QR CODE --- */
.nav-qr-overlay {
  font-family: 'Clash Display', sans-serif;
  
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10000;
  
  display: flex; justify-content: center; align-items: center;
  
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-qr-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }

.nav-qr-content {
  position: relative;
  width: 300px;
  padding: 40px 20px;
  border-radius: 30px;
  
  background-image: url("../img/Pattern_bleu.png");
  background-color: var(--blue-main);
  background-size: cover;
  
  box-shadow: var(--shadow-figma);
  text-align: center;
}

.nav-qr-title {
  color: white; font-weight: 800; font-size: 1.5rem; margin-bottom: 20px; text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-qr-box {
  background: white; padding: 15px; display: inline-block;
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); 
}

.nav-qr-close {
  position: absolute; top: -20px; right: -20px;
  background: var(--yellow-main); color: var(--black);
  width: 45px; height: 45px; border-radius: 50%;
  border: 3px solid var(--black);
  
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer;
  
  box-shadow: var(--shadow-figma);
}


/* --- RESPONSIVE --- */
@media screen and (max-width: 768px) {
  :root { --navbar-height: 80px; } 
  
  #main-menu { padding: 0 15px; }
  .overlay-header { padding: 0 20px; }

  .btn-admin-responsive {
      padding: 0; width: 45px; height: 45px;
      border-radius: 50%;
      display: flex; justify-content: center; align-items: center;
  }
  .btn-admin-responsive .admin-text { display: none; }
  .btn-admin-responsive .admin-icon { display: block; font-size: 22px; }
  
  .menu-links { gap: 15px; }
  .menu-links a {
      font-size: 1.2rem;
      padding: 15px 0;
  }
}