/* ── HAMBURGER BUTTON ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 102;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV OVERLAY ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #002878;
  z-index: 98;
  overflow-y: auto;
  padding: 28px 24px 48px;
  border-top: 1px solid rgba(91,163,201,0.2);
}
.mobile-nav.open { display: block; }

.mobile-nav-section { margin-bottom: 20px; }

.mobile-nav-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5BA3C9;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(91,163,201,0.15);
  font-family: 'Poppins', system-ui, sans-serif;
}

.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s;
  font-family: 'Inter', system-ui, sans-serif;
}
.mobile-nav a:hover { color: white; }
.mobile-nav a:last-child { border-bottom: none; }

/* ── SOUS-ACCORDÉONS MOBILE NAV ── */
.mobile-nav-sub-title {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 9px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color .2s;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Inter', system-ui, sans-serif;
}
.mobile-nav-sub-title:hover { color: white; }
.mobile-nav-sub-title::after {
  content: '▾';
  font-size: 10px;
  transition: transform .22s;
  display: inline-block;
  opacity: 0.5;
}
.mobile-nav-sub.open .mobile-nav-sub-title::after { transform: rotate(180deg); }
.mobile-nav-sub a { display: none !important; padding-left: 10px !important; }
.mobile-nav-sub.open a { display: block !important; }

.mobile-nav-rdv {
  display: block;
  margin-top: 28px;
  background: linear-gradient(135deg, #3A8C10, #2A6B0C);
  color: white !important;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-bottom: none !important;
}

/* ── FOOTER PUNCH ── */
.footer-punch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  text-align: justify;
  flex: 1;
  padding-bottom: 24px;
}
.footer-punch-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: white;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}
.footer-punch-text strong {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  display: inline;
  margin-right: 6px;
}
.fp-gram {
  display: inline;
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  opacity: 1;
  color: white;
}
.fp-gram-break {
  display: block;
  margin-bottom: 10px;
}
.fp-def {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 10px;
}
.fp-syn {
  display: block;
  font-size: 13px;
  font-style: italic;
  opacity: 1;
  color: white;
}
.footer-cta {
  display: inline-block;
  background: white;
  color: #2A6B0C;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.footer-cta:hover { background: rgba(255,255,255,0.88); transform: translateY(-2px); }
.footer-top { padding-bottom: 14px !important; }

/* ── NAV HEADER : respiration avec 4 items ── */
header nav { gap: 40px; }

/* ── DROPDOWN CONTEXTE (multi-colonnes, header nav) ── */
.nav-dropdown-contexte {
  display: flex !important;
  flex-direction: row;
  gap: 4px;
  min-width: 620px;
}
.dd-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.dd-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(91,163,201,0.65);
  padding: 6px 14px 8px;
  border-bottom: 1px solid rgba(91,163,201,0.15);
  margin-bottom: 4px;
  font-family: 'Poppins', system-ui, sans-serif;
  white-space: nowrap;
}

/* ── FOOTER CONTEXTE — accordéon desktop + mobile ── */
.footer-ctx-group {
  margin-top: 4px;
}
.footer-ctx-sep {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  padding: 0;
  cursor: pointer;
  display: block;
  user-select: none;
  transition: color .18s;
}
.footer-ctx-sep:hover { color: #ffffff; }
.footer-ctx-group.open .footer-ctx-sep { color: rgba(255,255,255,0.6); }

/* Liens cachés par défaut, visibles quand open */
.footer-ctx-group a {
  display: none;
  padding-top: 5px;
  padding-bottom: 5px;
}
.footer-ctx-group.open a { display: block; }

/* ── GLOSSAIRE : termes soulignés + tooltip ── */
.gloss-tip {
  border-bottom: 1.5px dashed #5BA3C9;
  cursor: help;
  display: inline;
}
#gloss-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 300px;
  padding: 10px 14px;
  background: #001a4d;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.55;
  border-radius: 10px;
  border: 1px solid rgba(91,163,201,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.45);
  pointer-events: none;
  white-space: normal;
  text-align: left;
  display: none;
  transition: opacity .18s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; order: -1; }
  .btn-rdv { display: none !important; }

  /* Masquer la nav desktop (couvre les pages sans leur propre responsive) */
  header nav { display: none; }
  .header-slogan { display: block !important; font-size: 11px !important; }

  /* Header uniforme sur mobile (réf. index) — hauteur/padding + taille du logo.
     Couvre les pages dont le CSS inline n'a pas d'override mobile (ex. pssi, resté à 120px). */
  header { height: 64px !important; padding: 0 16px !important; }
  .header-icon { height: 46px !important; }
  .header-brand-img { height: 22px !important; }

  /* Footer responsive */
  footer { padding: 32px 20px !important; }   /* padding uniforme sur mobile (réf. index) */
  .footer-top { flex-direction: column !important; gap: 24px !important; padding-bottom: 24px !important; }
  .footer-nav { grid-template-columns: 1fr !important; gap: 0 !important; }
  .footer-nav-col { padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer-nav-col:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }

  /* Logo + slogan du footer : uniformes sur toutes les pages (référence = index)
     !important car mobile-nav.css est chargé AVANT le <style> inline des pages */
  .footer-icon { height: 48px !important; }
  .footer-brand-img { height: 22px !important; }
  .footer-tagline { font-size: 14px !important; white-space: normal !important; }

  /* Définition "sérénité" : pleine largeur + centrée sur mobile, comme l'index
     (width 100% pour un enroulement identique sur toutes les pages) */
  .footer-punch { width: 100% !important; text-align: center !important; align-items: center !important; }
  .footer-punch-text { font-size: 17px; text-align: center !important; }
  .footer-punch-text em { font-size: 15px; }
}
