/* ============================================================
   HEADER PERSONNALISÉ — reproduction de la refonte
   https://ap-montgolfieres.organiweb.fr
   ------------------------------------------------------------
   Une seule ligne blanche : logo à gauche · menu centré (15px,
   Plus Jakarta Sans 600, couleur #1a2a6c, soulignement or animé) ·
   2 boutons pilule à droite (Offrir en or, Réserver en bleu).
   ============================================================ */

/* ---------- BARRE ---------- */
.alm-header {
  position: sticky; top: 0; z-index: 900;
  background: #ffffff;
  border-bottom: 1px solid #eef1fa;
  box-shadow: 0 2px 18px rgba(20,30,80,.05);
}
.admin-bar .alm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .alm-header { top: 46px; } }

.alm-header-inner {
  width: 100%; max-width: 1350px; margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 108px;
}
@media (max-width: 1080px) { .alm-header-inner { padding: 0 20px; min-height: 84px; } }

/* ---------- LOGO ---------- */
.alm-header-left { flex: 0 0 auto; }
.alm-header-logo { display: block; line-height: 0; }
.alm-header-logo img {
  width: auto; height: 76px; max-height: 76px; display: block;
  transition: transform .3s ease;
}
.alm-header-logo:hover img { transform: scale(1.04); }
@media (max-width: 1080px) { .alm-header-logo img { height: 58px; max-height: 58px; } }

/* ---------- MENU CENTRÉ ---------- */
.alm-header-center { flex: 1 1 auto; display: flex; justify-content: center; }
.alm-menu {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.alm-menu > li { position: relative; }
/* Valeurs EXACTES du bloc "AMPLIFICATION hover" de la refonte :
   padding 12px 20px · margin 6px 3px · radius 10px · line-height 1.3 */
.alm-menu > li > a {
  display: block; position: relative;
  font-family: var(--alm-font-title), 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; font-size: 15px; line-height: 1.3;
  color: #1a2a6c;
  letter-spacing: .02em; text-decoration: none;
  padding: 12px 20px;
  margin: 6px 3px;
  border-radius: 10px;
  transform: translateY(0);
  /* Transition identique à la refonte : couleur + transform seulement
     (le fond #eef2ff change instantanément, il n'est pas animé). */
  transition: color .25s ease, transform .25s ease;
}
/* Soulignement or : bottom 4px · hauteur 4px · radius 4px */
.alm-menu > li > a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 4px; border-radius: 4px; background: #E8A830;
  transform: translateX(-50%);
  transition: width .3s cubic-bezier(.22,.61,.36,1);
}
/* État survol / actif : fond pilule bleu clair + texte bleu roi */
.alm-menu > li > a:hover,
.alm-menu > li > a:focus,
.alm-menu > li.is-current > a {
  background: #eef2ff;
  color: #4169E1;
}
.alm-menu > li > a:hover::after,
.alm-menu > li > a:focus::after,
.alm-menu > li.is-current > a::after { width: 60%; }
.alm-menu > li > a:hover { transform: translateY(-2px); }

/* ---------- BOUTONS PILULE À DROITE ---------- */
.alm-header-right { flex: 0 0 auto; }
.alm-header-cta-mobile { display: none; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .alm-btn {
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
  font-family: var(--alm-font-title), 'Plus Jakarta Sans', sans-serif;
  font-weight: 600; letter-spacing: .02em; line-height: 1;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
/* Offrir (or) */
.nav-cta .alm-btn-gold {
  background: #E8A830 !important; color: #2b1c0a !important;
  border: 2px solid #E8A830 !important;
}
.nav-cta .alm-btn-gold:hover {
  background: #ffb733 !important; border-color: #ffb733 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,168,48,.35);
  color: #2b1c0a !important;
}
/* Réserver (bleu) */
.nav-cta .alm-btn-blue {
  background: #4169E1 !important; color: #ffffff !important;
  border: 2px solid #4169E1 !important;
}
.nav-cta .alm-btn-blue:hover {
  background: #2a4bbf !important; border-color: #2a4bbf !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(65,105,225,.35);
  color: #ffffff !important;
}

/* ---------- BURGER (masqué en desktop) ---------- */
.alm-burger {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
  flex-direction: column; justify-content: center; gap: 5px;
  flex: 0 0 auto;
}
.alm-burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: #1a2a6c; transition: transform .25s ease, opacity .25s ease;
}
.alm-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.alm-burger.is-open span:nth-child(2) { opacity: 0; }
.alm-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- RESPONSIVE : menu déroulant sous le header ---------- */
@media (max-width: 1080px) {
  .alm-header-inner { align-items: center; }
  .alm-burger { display: flex; }
  .alm-header-center {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid #eef1fa;
    box-shadow: 0 14px 34px rgba(26,42,108,.14);
    padding: 12px 20px 22px;
    display: none; z-index: 800;
  }
  .alm-header-center.is-open { display: flex; }
  .alm-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .alm-menu > li > a {
    padding: 15px 6px; font-size: 16px;
    border-bottom: 1px solid #f2f4fa;
  }
  .alm-menu > li > a::after { display: none; }
  .alm-header-cta-mobile {
    display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
  }
  .alm-header-cta-mobile .alm-btn {
    border-radius: 999px; padding: 13px 22px; font-size: 15px;
    font-weight: 600; flex: 1 1 auto; justify-content: center;
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  }
  .alm-header-cta-mobile .alm-btn-gold { background: #E8A830; color: #2b1c0a; }
  .alm-header-cta-mobile .alm-btn-blue { background: #4169E1; color: #fff; }
  /* les boutons du header passent dans le menu déroulant */
  .alm-header-right { display: none; }
}

/* ---------- Le contenu ne passe pas sous le header sticky ---------- */
body.alm-page .site-content { padding-top: 0; }
.alm-hero { margin-top: 0; }

/* ---------- ANCRES : le header sticky ne doit pas masquer les titres ----------
   Sans ça, un clic sur une ancre (#formules, #cadeaux…) place la cible
   SOUS le header (85px en mobile, 109px en desktop) et le titre est coupé. */
html { scroll-padding-top: 120px; }
section[id], [id] { scroll-margin-top: 120px; }
@media (max-width: 1080px) {
  html { scroll-padding-top: 96px; }
  section[id], [id] { scroll-margin-top: 96px; }
}

/* ---------- Masquer la navigation native du thème (remplacée) ---------- */
body.alm-page .main-navigation,
body.alm-page #site-navigation,
body.alm-page .site-navigation,
body.alm-page nav.main-navigation,
body.alm-page .gen-sidebar-nav { display: none !important; }
/* Le header natif du thème ne doit plus apparaître */
body.alm-page .site-header { display: none !important; }
/* Éviter tout espace résiduel du conteneur header du thème */
body.alm-page .site-header + .site-content,
body.alm-page #page > header { margin-top: 0 !important; padding-top: 0 !important; }
