/* ════════════════════════════════════════════════════════════
   NAVBAR MOBILE  (composant reutilisable)
   Barre fixe en haut + burger qui ouvre un tiroir depuis la droite
   occupant 90% de la largeur. Meme langage visuel que la navbar PC
   (#101010, or #B38A47, Cinzel).
   A inclure via :
     <div id="navbar-mobile-placeholder"></div>
     <script src="<.../>js/navbar-mobile.js"></script>
   ════════════════════════════════════════════════════════════ */

/* ─── Barre fixe ─── */
#navbar-mobile-placeholder {
  position: fixed;
  inset: 0 0 auto;
  height: 60px;
  background: #101010;
  border-bottom: 1px solid #1e1e1e;
  z-index: 1000;
}

.mnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  border-bottom: 1px solid #1e1e1e;
}
.mnav__flags {
  display: flex;
  gap: 12px;
  user-select: none;
}
.mnav__flag {
  display: grid;
  place-items: center;
  width: 28px;
  height: 20px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .2s;
}
.mnav__flag svg { display: block; width: 100%; height: 100%; }
.mnav__flag:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mnav__burger {
  background: none;
  border: none;
  color: #F0F0F0;
  font-size: 26px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  transition: color .2s;
}
.mnav__burger:hover,
.mnav__burger:focus-visible { color: var(--gold); }

/* ─── Voile sombre ─── */
.mnav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1001;
  opacity: 0;
  transition: opacity .3s ease;
}
.mnav__overlay.open { opacity: 1; }

/* ─── Tiroir (90% de la largeur, glisse depuis la droite) ─── */
.mnav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 90%;
  background: #101010;
  border-left: 1px solid #1e1e1e;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 18px 0 32px;
  overflow-y: auto;
}
.mnav__drawer.open { transform: translateX(0); }

.mnav__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F0F0F0;
  font-size: 34px;
  line-height: 1;
  padding: 4px 22px 10px;
  cursor: pointer;
  transition: color .2s;
}
.mnav__close:hover,
.mnav__close:focus-visible { color: var(--gold); }

.mnav__menu {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}
.mnav__menu a {
  padding: 18px 28px;
  font-family: 'Cinzel', serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: #F0F0F0;
  border-bottom: 1px solid #1a1a1a;
  transition: color .2s, background .2s;
}
.mnav__menu a:first-child { border-top: 1px solid #1a1a1a; }
.mnav__menu a:hover,
.mnav__menu a.is-active { color: var(--gold); background: #161616; }

/* bloque le scroll du fond quand le menu est ouvert */
body.mnav-open { overflow: hidden; }
