/* ============================================================
   HEADER + MÉGA-MENU — annemarielarrere.com
   ============================================================ */

:root {
  --aml-creme:        #FDF5EC;
  --aml-terracotta:   #C4703A;
  --aml-terra-deep:   #A0522D;
  --aml-brun-chaud:   #5D4E47;
  --aml-brun-profond: #3D2E27;
  --aml-blush:        #F0C9A0;
  --aml-sable:        #FCEDC6;
}

/* ── HEADER GLOBAL ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--aml-creme);
  border-bottom: 1px solid var(--aml-blush);
  box-shadow: 0 2px 12px rgba(61, 46, 39, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 100px;
}

/* ── LOGO ── */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 64px;
  width: auto;
  display: block;
}

/* ── NAV DESKTOP ── */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__item {
  position: relative;
}

.header-nav__link,
.header-nav__trigger {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--aml-brun-profond);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav__link:hover,
.header-nav__trigger:hover,
.header-nav__item--has-megamenu.is-open > .header-nav__trigger {
  color: var(--aml-terracotta);
  background: none;
}

.header-nav__link--cta {
  background: var(--aml-terracotta);
  color: var(--aml-creme) !important;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
}

.header-nav__link--cta:hover {
  background: var(--aml-terra-deep) !important;
  color: var(--aml-creme) !important;
}

/* Chevron */
.header-nav__chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.header-nav__item--has-megamenu.is-open .header-nav__chevron {
  transform: rotate(180deg);
}

/* ── ACTIONS DROITE ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--aml-brun-chaud);
  transition: color 0.2s ease, background 0.2s ease;
}

.header-socials a:hover {
  color: var(--aml-terracotta);
  background: var(--aml-sable);
}

.header-action--tel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--aml-brun-chaud);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-left: 1.5rem;
}

.header-action--tel:hover {
  color: var(--aml-terracotta);
}

.header-action__tel-number {
  letter-spacing: 0.03em;
}

/* Burger — masqué desktop */
.header-action--burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--aml-brun-profond);
}

.burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.burger-icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ── MÉGA-MENU PANNEAU ── */
.header-nav__item--has-megamenu {
  position: static;
}

.megamenu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 1px);
  z-index: 200;
  width: min(900px, 90vw);
  background: var(--aml-creme);
  border: 1px solid var(--aml-blush);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(61, 46, 39, 0.14);
  padding: 2rem 2.5rem 1.75rem;
}

/* On utilise hidden/visible via JS */
.megamenu[hidden] {
  display: none;
}

.megamenu.is-visible {
  display: block;
  animation: amlFadeDown 0.22s ease both;
}

@keyframes amlFadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.megamenu__intro {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-style: normal;
  color: var(--aml-brun-chaud);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* Grille 5 cartes */
.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.megamenu__card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.megamenu__card:hover,
.megamenu__card:focus-visible {
  background: none;
  border-color: var(--aml-terracotta);
  transform: translateY(-2px);
  outline: none;
}

.megamenu__card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--aml-brun-profond);
  line-height: 1.2;
  margin-bottom: 15px;
}

.megamenu__card-desc {
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--aml-brun-chaud);
  line-height: 1.5;
}

/* Séparateur + footer */
.megamenu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--aml-blush);
}

.megamenu__footer-link {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--aml-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.megamenu__footer-link svg {
  transition: transform 0.2s ease;
}

.megamenu__footer-link:hover {
  color: var(--aml-terra-deep);
}

.megamenu__footer-link:hover svg {
  transform: translateX(4px);
}

.megamenu__footer-cta {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--aml-creme);
  background: var(--aml-terracotta);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.megamenu__footer-cta:hover {
  background: var(--aml-terra-deep);
}

/* ── OVERLAY ── */
.mega-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: transparent;
}

.mega-menu-overlay.is-visible {
  display: block;
}

/* ── PANEL MOBILE ── */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
}

.mobile-panel[hidden] {
  display: none;
}

.mobile-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 46, 39, 0.45);
}

.mobile-panel__inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--aml-creme);
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-panel__logo img {
  height: 44px;
  width: auto;
}

.mobile-panel__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--aml-brun-profond);
  padding: 0.25rem;
}

.mobile-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-panel__link,
.mobile-panel__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--aml-brun-profond);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid var(--aml-blush);
  cursor: pointer;
  text-align: left;
}

.mobile-panel__toggle svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.mobile-panel__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-panel__submenu {
  padding: 0.75rem 0.5rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-panel__submenu[hidden] {
  display: none;
}

.mobile-panel__submenu a {
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  color: var(--aml-brun-chaud);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.mobile-panel__submenu a:hover {
  color: var(--aml-terracotta);
}

.mobile-panel__see-all {
  font-size: 0.78rem !important;
  color: var(--aml-terracotta) !important;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

.mobile-panel__cta {
  display: block;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--aml-creme);
  background: var(--aml-terracotta);
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.mobile-panel__cta:hover {
  background: var(--aml-terra-deep);
}

.mobile-panel__tel {
  display: block;
  text-align: center;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  color: var(--aml-brun-chaud);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.mobile-panel__socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-panel__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--aml-brun-chaud);
  border: 1px solid var(--aml-blush);
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-panel__socials a:hover {
  color: var(--aml-terracotta);
  background: var(--aml-sable);
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .header-action__tel-number {
    display: none;
  }
}

@media (min-width: 1201px) {
  .header-action--burger {
    display: none !important;
  }
  .mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1200px) {
  .header-nav,
  .header-socials {
    display: none;
  }

  .header-action--burger {
    display: flex !important;
  }

  .header-action--tel {
    display: none;
  }
}