/* ==========================================================================
   HEADER — version simplifiée, fond bleu fixe, sticky
   ========================================================================== */

.imo-header,
.imo-header *,
.imo-header *::before,
.imo-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.imo-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 600;
  background: var(--imo-bleu-nuit);
  box-shadow: var(--imo-shadow);
  padding: 18px 0;
}

.imo-header__spacer {
  width: 100%;
  height: 78px; /* valeur de secours, ajustée automatiquement par JS */
}

.imo-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.imo-header__logo {
  font-family: var(--imo-font-titres);
  font-weight: 700;
  font-size: 24px;
  color: var(--imo-texte-clair);
  text-decoration: none;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
}

.imo-header__logo .imo-titre--italic {
  font-style: italic;
}

/* Nav */
.imo-header__menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.imo-header__menu a {
  font-family: var(--imo-font-boutons);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--imo-texte-clair);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}

.imo-header__menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--imo-accent);
  transition: width var(--imo-transition);
}

.imo-header__menu a:hover::after {
  width: 100%;
}

/* Actions */
.imo-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.imo-header__cta {
  white-space: nowrap;
}

/* Bouton global réutilisable */
.imo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--imo-font-boutons);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--imo-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--imo-transition);
}

.imo-btn--primary {
  background: var(--imo-accent);
  color: var(--imo-bleu-nuit);
}

.imo-btn--primary:hover {
  background: #b8931f;
  transform: translateY(-2px);
}

.imo-btn--outline {
  background: transparent;
  color: var(--imo-texte-clair);
  border-color: rgba(250, 248, 243, 0.4);
}

.imo-btn--outline:hover {
  border-color: var(--imo-accent);
  color: var(--imo-accent);
}

/* Burger (masqué desktop) */
.imo-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.imo-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--imo-texte-clair);
  transition: all 0.3s ease;
}

.imo-header__burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.imo-header__burger.is-active span:nth-child(2) {
  opacity: 0;
}
.imo-header__burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ RESPONSIVE (Mise à jour) ============ */
@media (max-width: 900px) {
  .imo-header {
    padding: 16px 0;
  }

  .imo-header__inner {
    padding: 0 24px;
  }

  /* 1. On force le logo et le burger à rester AU-DESSUS du menu qui va glisser */
  .imo-header__logo,
  .imo-header__actions {
    position: relative;
    z-index: 10; 
  }

  /* 2. Le menu devient "Plein écran" et glisse du haut vers le bas */
  .imo-header__nav {
    position: fixed;
    top: 0;
    left: 0; /* Remplace le right: -100% */
    width: 100%; /* Remplace le 80% */
    max-width: none;
    height: 100vh;
    background: var(--imo-bleu-nuit);
    padding: 100px 40px 40px; /* Laisse de l'espace pour le logo/burger */
    z-index: 5; /* En dessous du logo/burger, au-dessus de l'overlay */
    
    /* L'animation pro : on décale le menu de 100% vers le haut par défaut */
    transform: translateY(-100%);
    visibility: hidden; /* Empêche le clic quand le menu est fermé */
    
    /* Transition fluide avec effet de freinage (cubic-bezier) */
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1),
                visibility 0.6s;
  }

  .imo-header__nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  /* 3. Centrage parfait des liens pour le look "Prestige" */
  .imo-header__menu {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Remplace "center" pour aligner vers le haut */
    height: 100%;
    margin-top: 30px; /* Définit l'espace précis sous le logo/header */
    gap: 32px;
  }

  /* 4. Effet "Cascade" : les liens apparaissent en fondu de bas en haut */
  .imo-header__menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .imo-header__nav.is-open .imo-header__menu li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Délais d'apparition pour chaque lien (1er lien rapide, le 5ème plus lent) */
  .imo-header__nav.is-open .imo-header__menu li:nth-child(1) { transition-delay: 0.20s; }
  .imo-header__nav.is-open .imo-header__menu li:nth-child(2) { transition-delay: 0.28s; }
  .imo-header__nav.is-open .imo-header__menu li:nth-child(3) { transition-delay: 0.36s; }
  .imo-header__nav.is-open .imo-header__menu li:nth-child(4) { transition-delay: 0.44s; }
  .imo-header__nav.is-open .imo-header__menu li:nth-child(5) { transition-delay: 0.52s; }

  .imo-header__menu a {
    font-size: 18px; /* Plus grand pour le confort tactile */
    letter-spacing: 1px;
  }

  .imo-header__cta {
    display: none;
  }

  .imo-header__burger {
    display: flex;
  }

  /* 5. Overlay revu avec fond en opacité pour permettre la transition */
  .imo-header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 37, 69, 0.7);
    backdrop-filter: blur(5px); /* Effet verre dépoli */
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .imo-header__overlay.is-active {
    opacity: 1;
    visibility: visible;
  }
}


/* ============ CORRECTIF BARRE ADMIN WORDPRESS ============ */
/* Pour les écrans d'ordinateur (la barre fait 32px de haut) */
body.admin-bar .imo-header {
  top: 32px;
}

/* Pour les petits écrans en dessous de 782px (la barre passe à 46px) */
@media (max-width: 782px) {
  body.admin-bar .imo-header {
    top: 46px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.imo-footer {
  background: var(--imo-bleu-fonce);
  padding: 80px 40px 0;
}

.imo-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

/* Colonne marque */
.imo-footer__logo {
  display: inline-block;
  font-family: var(--imo-font-titres);
  font-weight: 700;
  font-size: 24px;
  color: var(--imo-texte-clair);
  text-decoration: none;
  margin-bottom: 16px;
}

.imo-footer__baseline {
  font-family: var(--imo-font-corps);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(250, 248, 243, 0.6);
  max-width: 280px;
  margin: 0;
}

/* Titres colonnes */
.imo-footer__heading {
  font-family: var(--imo-font-boutons);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--imo-or);
  margin: 0 0 22px;
}

/* Liens rapides */
.imo-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.imo-footer__links a {
  font-family: var(--imo-font-corps);
  font-weight: 300;
  font-size: 14px;
  color: rgba(250, 248, 243, 0.75);
  text-decoration: none;
  transition: color var(--imo-transition);
}

.imo-footer__links a:hover {
  color: var(--imo-or);
}

/* Contact */
.imo-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imo-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--imo-font-corps);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(250, 248, 243, 0.75);
}

.imo-footer__contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--imo-or);
}

/* Réseaux sociaux */
.imo-footer__socials {
  display: flex;
  gap: 12px;
}

.imo-footer__social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--imo-texte-clair);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--imo-transition), border-color var(--imo-transition), color var(--imo-transition);
}

.imo-footer__social:hover {
  background: var(--imo-or);
  border-color: var(--imo-or);
  color: var(--imo-bleu-nuit);
}

/* Bottom bar */
.imo-footer__bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.imo-footer__copyright {
  font-family: var(--imo-font-corps);
  font-weight: 300;
  font-size: 13px;
  color: rgba(250, 248, 243, 0.55);
  margin: 0;
}

.imo-footer__legal {
  display: flex;
  gap: 24px;
}

.imo-footer__legal a {
  font-family: var(--imo-font-corps);
  font-weight: 300;
  font-size: 13px;
  color: rgba(250, 248, 243, 0.55);
  text-decoration: none;
  transition: color var(--imo-transition);
}

.imo-footer__legal a:hover {
  color: var(--imo-or);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .imo-footer__main {
    grid-template-columns: 1fr 1fr;
    row-gap: 48px;
  }
}

@media (max-width: 640px) {
  .imo-footer {
    padding: 56px 24px 0;
  }

  .imo-footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .imo-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 0 32px;
  }
}