/* ==========================================================================
   IQ2 — Header & Top bar
   ========================================================================== */

.iq2-container {
  max-width: var(--iq2-container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Top bar ===== */
.iq2-topbar {
  background: var(--iq2-navy);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
  position: relative;
  z-index: 1001;
}
.iq2-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--iq2-container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.iq2-topbar-left {
  display: flex;
  gap: 30px;
}
.iq2-topbar-left span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.iq2-topbar-left i {
  color: var(--iq2-gold);
}
.iq2-topbar-left a {
  color: rgba(255, 255, 255, 0.7);
}
.iq2-topbar-left a:hover {
  color: var(--iq2-gold);
}
.iq2-topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.iq2-topbar-social {
  display: flex;
  gap: 14px;
}
.iq2-topbar-social a {
  color: rgba(255, 255, 255, 0.6);
}
.iq2-topbar-social a:hover {
  color: var(--iq2-gold);
}
.iq2-topbar-lang {
  display: flex;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 1px;
}
.iq2-topbar-lang a {
  padding: 0 6px;
  opacity: 0.5;
}
.iq2-topbar-lang a.active,
.iq2-topbar-lang a:hover {
  opacity: 1;
  color: var(--iq2-gold);
}

/* ===== Header ===== */
.iq2-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--iq2-transition);
  background: var(--iq2-navy);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.iq2-header.transparent {
  position: absolute;
  background: transparent;
  box-shadow: none;
}
.iq2-header.scrolled {
  background: rgba(14, 19, 32, 0.96);
  backdrop-filter: blur(12px);
  padding: 14px 0;
}
.iq2-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--iq2-container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.iq2-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.iq2-logo img {
  height: 46px;
  transition: height 0.4s;
}
.iq2-header.scrolled .iq2-logo img {
  height: 40px;
}
.iq2-logo-text {
  font-family: var(--iq2-font-serif);
  color: #fff;
  line-height: 1;
}
.iq2-logo-text strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
}
.iq2-logo-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--iq2-gold);
  margin-top: 4px;
  font-family: var(--iq2-font-sans);
  font-weight: 400;
  text-transform: uppercase;
}

/* ===== Nav ===== */
.iq2-nav {
  display: flex;
  align-items: center;
}
.iq2-menu {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.iq2-menu li {
  position: relative;
}
.iq2-menu > li > a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
}
.iq2-menu > li > a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--iq2-gold);
  transition: var(--iq2-transition);
  transform: translateX(-50%);
}
.iq2-menu > li > a:hover:after,
.iq2-menu > li.current-menu-item > a:after {
  width: 100%;
}
.iq2-menu > li > a:hover,
.iq2-menu > li.current-menu-item > a {
  color: var(--iq2-gold);
}

/* Sub menu */
.iq2-sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--iq2-navy);
  min-width: 220px;
  padding: 15px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  border-top: 2px solid var(--iq2-gold);
}
.iq2-menu li:hover > .iq2-sub-menu {
  opacity: 1;
  visibility: visible;
}
.iq2-sub-menu a {
  display: block;
  padding: 10px 25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 1px;
}
.iq2-sub-menu a:hover {
  color: var(--iq2-gold);
  background: rgba(201, 169, 97, 0.05);
}

/* Header actions */
.iq2-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ===== Buttons ===== */
.iq2-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--iq2-transition);
  text-decoration: none;
  border: 1px solid transparent;
}
.iq2-btn-cta {
  background: var(--iq2-gold);
  color: var(--iq2-navy);
  border-color: var(--iq2-gold);
}
.iq2-btn-cta:hover {
  background: transparent;
  color: var(--iq2-gold);
}
.iq2-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.iq2-btn-outline:hover {
  background: #fff;
  color: var(--iq2-navy);
  border-color: #fff;
}
.iq2-btn-outline-dark {
  background: transparent;
  color: var(--iq2-navy);
  border-color: var(--iq2-navy);
}
.iq2-btn-outline-dark:hover {
  background: var(--iq2-navy);
  color: #fff;
}
.iq2-btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Mobile toggle */
.iq2-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.iq2-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--iq2-transition);
}

/* Responsive */
@media (max-width: 1024px) {
  .iq2-nav {
    display: none;
  }
  .iq2-mobile-toggle {
    display: flex;
  }
  .iq2-topbar-address {
    display: none;
  }
}
@media (max-width: 640px) {
  .iq2-container,
  .iq2-topbar-inner,
  .iq2-header-inner {
    padding: 0 20px;
  }
  .iq2-topbar-left {
    display: none;
  }
  .iq2-btn-cta {
    padding: 10px 18px;
    font-size: 11px;
  }
}

/* ==========================================================================
   Mobile menu — menu overlay quand .iq2-nav-open est présent
   ========================================================================== */
@media (max-width: 1024px) {
    /* Menu overlay plein écran quand ouvert */
    .iq2-nav.iq2-nav-open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9998;
        background: var(--iq2-navy);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 30px 40px;
        animation: iq2NavFadeIn .3s ease;
        overflow-y: auto;
    }

    /* Liens du menu en gros */
    .iq2-nav.iq2-nav-open ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        max-width: 400px;
    }
    .iq2-nav.iq2-nav-open ul li {
        text-align: center;
    }
    .iq2-nav.iq2-nav-open ul li a {
        display: block;
        padding: 18px 20px;
        color: #fff;
        text-decoration: none;
        font-family: var(--iq2-font-serif, Georgia, serif);
        font-size: 22px;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        transition: color .25s ease;
    }
    .iq2-nav.iq2-nav-open ul li a:hover,
    .iq2-nav.iq2-nav-open ul li.current-menu-item a {
        color: var(--iq2-gold);
    }

    /* Bouton hamburger devient croix quand menu ouvert */
    body.iq2-menu-open .iq2-mobile-toggle {
        position: fixed;
        top: 60px;
        right: 20px;
        z-index: 9999;
    }
    body.iq2-menu-open .iq2-mobile-toggle span {
        background: #fff;
    }
    body.iq2-menu-open .iq2-mobile-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.iq2-menu-open .iq2-mobile-toggle span:nth-child(2) {
        opacity: 0;
    }
    body.iq2-menu-open .iq2-mobile-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Empêche le scroll de la page quand menu ouvert */
    body.iq2-menu-open {
        overflow: hidden;
    }
}

@keyframes iq2NavFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}