/* ═══════════════════════════════════════════════════════════
   mobile.css — Menu mobile PND · Zéro conflit
   Toutes les classes préfixées .pnd- sauf .hamburger
   Chargé par components.js via <link> injecté dans <head>
═══════════════════════════════════════════════════════════ */

/* ── Govbar mobile ── */
@media (max-width: 768px) {
  .govbar { height: 30px !important; min-height: 30px !important; max-height: 30px !important; overflow: hidden !important; }
  .gb-in  { padding: 0 14px !important; }
  .gb-links { display: none !important; }
  .gb-name  { font-size: 9px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ── Header mobile ── */
@media (max-width: 768px) {
  .site-header { height: auto !important; }
  .hi { padding: 12px 14px !important; flex-wrap: wrap; gap: 10px; }
  .header-coat { height: 40px !important; }
  .header-logo-img { height: 40px !important; }
  .header-sep, .header-sep2 { height: 28px; }
  .header-text-title { font-size: 11px; }
  .header-text-sub { font-size: 9px; }
  .header-text-country { font-size: 8px; }
  .header-flag { display: none; }
  .h-btns { position: static !important; transform: none !important; }
  .btn-act { display: none !important; }
  .nav-bar-inner { padding: 0 10px; overflow-x: auto; justify-content: flex-start; }
  .nav-link { padding: 12px 12px; font-size: 11.5px; }
}

/* ── Hide desktop nav on mobile ── */
@media (max-width: 1024px) {
  .nav-bar { display: none !important; }
  .btn-act { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
   .hamburger est défini avec display:flex inline sur l'élément
   Ce CSS ajoute uniquement le style visuel et le masque sur desktop
══════════════════════════════════════════════════════════ */
.hamburger {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1.5px solid #E4E9F2;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background .2s;
}
.hamburger:hover { border-color: #F47920; }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0D1B35;
  border-radius: 2px;
  pointer-events: none;
  transition: transform .3s ease, opacity .25s ease, width .25s ease;
  transform-origin: center;
}
.hamburger.open { border-color: #F47920; background: #FFF0E5; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #F47920; }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #F47920; }

/* Hide hamburger on desktop */
@media (min-width: 1025px) {
  .hamburger { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
══════════════════════════════════════════════════════════ */
.mnav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13, 27, 53, 0.6);
  z-index: 490;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.mnav-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ══════════════════════════════════════════════════════════
   MOBILE NAV PANEL
══════════════════════════════════════════════════════════ */
.mnav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #ffffff;
  z-index: 500;
  transform: translateX(110%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s .4s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -12px 0 60px rgba(13, 27, 53, 0.22);
}
.mnav.open {
  transform: translateX(0) !important;
  visibility: visible;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0s;
}

/* ── Nav header ── */
.mnav-head {
  background: #0D1B35;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
}
.mnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.mnav-brand-badge {
  background: #F47920;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mnav-brand-badge span {
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.mnav-brand-badge small {
  font-size: 7.5px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1;
}
.mnav-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mnav-brand-text strong {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mnav-brand-text small {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}
.mnav-x {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.mnav-x:hover { background: #F47920; border-color: #F47920; color: #fff; }

/* ── Nav scroll body ── */
.mnav-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.mnav-scroll::-webkit-scrollbar { width: 3px; }
.mnav-scroll::-webkit-scrollbar-thumb { background: #D0D8E8; border-radius: 2px; }

/* ── Direct links ── */
.mnav-direct {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #0D1B35;
  text-decoration: none;
  border-bottom: 1px solid #E4E9F2;
  border-left: 3px solid transparent;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.mnav-direct:hover {
  background: #FFF0E5;
  color: #F47920;
  border-left-color: #F47920;
}

/* ── Groups with accordion ── */
.mnav-group { border-bottom: 1px solid #E4E9F2; }
.mnav-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  font-size: 12px;
  font-weight: 700;
  color: #6B7C93;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: #FAF9F7;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.15s;
}
.mnav-group-btn:hover { background: #FFF0E5; color: #F47920; }
.mnav-chev {
  transition: transform 0.28s ease;
  flex-shrink: 0;
  color: #6B7C93;
}
.mnav-group.open .mnav-chev { transform: rotate(180deg); color: #F47920; }

.mnav-sub-group {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.mnav-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 28px;
  font-size: 14px;
  font-weight: 500;
  color: #3D4F68;
  text-decoration: none;
  border-bottom: 1px solid #E4E9F2;
  border-left: 3px solid transparent;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-right: none;
  border-top: none;
  border-radius: 0;
}
.mnav-sub:last-child { border-bottom: none; }
.mnav-sub:hover { background: #FFF0E5; color: #F47920; border-left-color: #F47920; }
.mnav-sub-ico { font-size: 17px; flex-shrink: 0; }

/* ── Nav footer ── */
.mnav-foot {
  border-top: 1px solid #E4E9F2;
  padding: 14px 18px;
  flex-shrink: 0;
  background: #FAF9F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mnav-cta {
  flex: 1;
  background: #F47920;
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  font-family: 'Poppins', sans-serif;
  transition: background 0.2s;
}
.mnav-cta:hover { background: #D4610A; }
.mnav-flag {
  display: flex;
  height: 20px;
  width: 30px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}
.mnav-flag span { flex: 1; display: block; }
