/* ==========================================================================
   NAVBAR GLOBALE
   ========================================================================== */
.navbar {
  font-size: 1.5em;
  position: relative;
  width: 100%;
}

.navbar .main-navbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-align-items: center;
  min-height: 40px;
  height: 70px;
  color: var(--jra-background);
  background-color: var(--jra-fontcolor);
}

.navbar .main-navbar h1 {
  max-width: 57vw;
  text-align: center;
  font-size: 4vw;
  text-transform: uppercase;
  margin: 0;
}

@media screen and (min-width: 605px) {
  .navbar .main-navbar h1 {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   BOUTON BURGER (ICÔNE SVG INTÉGRÉE SANS LIEN EXTERNE)
   ========================================================================== */
.navbar .main-navbar .burger {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 10;
  background-color: var(--jra-background);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") no-repeat center / 26px 26px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") no-repeat center / 26px 26px;
}

@media screen and (min-width: 605px) {
  .navbar .main-navbar .burger {
    left: 35px;
    opacity: 0.9;
  }
  .navbar .main-navbar .burger:hover {
    opacity: 1;
  }
}

/* ==========================================================================
   BOUTON ELLIPSIS / OPTIONS (ICÔNE SVG INTÉGRÉE)
   ========================================================================== */
.navbar .main-navbar .ellipsis {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background-color: var(--jra-background);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='12' cy='19' r='2'/%3E%3C/svg%3E") no-repeat center / 20px 20px;
}

@media screen and (min-width: 605px) {
  .navbar .main-navbar .ellipsis {
    right: 30px;
  }
}

/* ==========================================================================
   MENU TIROIR LATÉRAL (CORRECTION LARGEUR ET DÉFILEMENT MOBILE)
   ========================================================================== */
.navbar .link-list {
  background-color: var(--jra-fontcolor);
  color: var(--jra-background);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: -120%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s ease-out;
  z-index: 1000;
  height: 100vh;
  height: 100dvh;
  
  /* Ne prend plus 100vw : limite la largeur sur mobile pour laisser un espace visible */
  width: 80vw;
  max-width: 320px;
  
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.35);
}

@media screen and (min-width: 605px) {
  .navbar .link-list {
    width: 450px;
    max-width: 450px;
  }
}

.navbar .link-list.show {
  left: 0;
}

/* ==========================================================================
   BOUTON DE FERMETURE (CROIX SVG INTÉGRÉE AVEC ZONE TACTILE MOBILE)
   ========================================================================== */
.navbar .link-list .close {
  display: block;
  align-self: flex-end;
  margin: 15px 15px 0 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background-color: var(--jra-background);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") no-repeat center / 24px 24px;
}

@media screen and (min-width: 605px) {
  .navbar .link-list .close {
    margin: 25px 25px 0 0;
    opacity: 0.85;
  }
  .navbar .link-list .close:hover {
    opacity: 1;
  }
}

/* ==========================================================================
   CONTENU DU MENU (LOGO, LIENS, SÉPARATEUR)
   ========================================================================== */
.navbar .link-list .logo {
  height: 120px;
  width: 120px;
  margin: 10px auto;
  object-fit: contain;
}

.navbar .link-list ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  list-style-type: none;
  margin: 20px 0 30px;
  padding: 0;
  width: 100%;
}

.navbar .link-list a {
  align-self: center;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 16px;
  display: block;
}

@media screen and (min-width: 605px) {
  .navbar .link-list a {
    font-size: 1.25rem;
  }
}

.navbar .link-list hr {
  width: 80%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 10px auto;
}

/* ==========================================================================
   DROPDOWN OPTIONS
   ========================================================================== */
.navbar .option-list {
  border-radius: 6px;
  border-top-right-radius: 0;
  background-color: var(--jra-fontcolor);
  color: var(--jra-background);
  position: fixed;
  top: 65px;
  right: 15px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 1050;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: width 0.2s ease, opacity 0.2s ease;
}

.navbar .option-list.show {
  width: 190px;
  height: auto;
  opacity: 1;
}

.navbar .option-list ul {
  list-style-type: none;
  margin: 0;
  padding: 8px 0;
}

.navbar .option-list ul li {
  width: 100%;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

.navbar .option-list ul li a {
  padding: 8px 16px;
  color: var(--jra-background);
  text-decoration: none;
  font-size: 0.9em;
  width: 100%;
}

/* ==========================================================================
   VOILE FLOU EN ARRIÈRE-PLAN (FERMETURE AU TAP EXTÉRIEUR)
   ========================================================================== */
.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}