/* ================================
   HEADER GLOBAL
================================ */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: background 0.3s ease, transform .4s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s;
  background: #fff;
}

/* #header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #141313 0%, rgba(20, 19, 19, 0) 100%);
  z-index: 0;
} */

.home #header {
  background-image: url() !important;
}

#header.scrolled {
  /* background: #111; */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-100%);
}

.header-inner {
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center; /* logo centré */
  position: relative;
  background: #fff;
}

/* ================================
   LOGO
================================ */
.logo {
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 68px;
  width: auto;
  transition: all 0.3s ease;
}

/* ================================
   BOUTON BURGER
================================ */
.menu-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1300; /* toujours au-dessus du blur */
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: all 0.8s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-toggle span:nth-child(3) {
  bottom: 0;
}
 
/* Animation croix */
.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: #fff;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  background: #fff;
}

/* ================================
   MENU MOBILE
================================ */
#nav-main {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: #111;
  background-image: radial-gradient(circle, #404040 8%, transparent 12%);
  background-position: 0 0;
  background-size: 20px 20px;
  transition: left 0.8s ease;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  gap: 20px;
  justify-content: space-between;
  z-index: 1200; /* menu au-dessus du blur */
}

#nav-main.open {
  left: 0;
}

#nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-main a {
  color: white;
  text-decoration: none;
  font-size: 17px;
  padding: 12px 25px;
  display: block;
  text-transform: uppercase;
  transition: color 0.3s;
}

#nav-main a:hover {
  color: var(--enzomichaud-color-main);
}

/* ================================
   OVERLAY FLUO + BLUR
================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 1100; /* au-dessus du header, sous le menu */
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Quand le menu est ouvert, header sous le blur */
body.menu-open #header {
  z-index: 1000; /* sous overlay (1100) mais au-dessus du contenu */
}

/* ================================
   RESEAUX SOCIAUX
================================ */
.socials {
  display: flex;
  gap: 2px;
  padding: 0;
  width: 100%;
}

.socials li {
  width: 50%;
}

.socials a {
  color: white;
  font-size: 20px;
  transition: color 0.3s;
  background: var(--enzomichaud-color-main-70);
  text-align: center;
}

.socials a:hover {
  color: var(--enzomichaud-color-main-90);
}

.menu li.current_page_item a {
  background: var(--enzomichaud-color-main);
}

.menu li.current_page_item a:hover {
  color: #fff !important;
}

/* ================================
   HEADER CTA (téléphone)
================================ */
.header-cta {
  display: none;
}