/* --- CONFIGURATION GÉNÉRALE --- */
body {
  margin: 0;
  padding: 0;
  margin-top: 100px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --- HEADER PRINCIPAL --- */
.main-header {
  position: fixed;
  top: -2px; 
  left: 0;
  width: 100%;
  height: 102px; 
  background-color: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px; 
  box-sizing: border-box;
  z-index: 2000;
  will-change: transform;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-hidden {
  transform: translateY(-105%);
}

.logo img {
  height: 80px; 
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* --- BOUTON BURGER --- */
.burger-menu {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 3000;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.burger-menu.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* --- BOUTON CONTACT --- */
.btn-contact {
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 0px; 
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.2s ease;
}

/* --- MENU LATÉRAL & OVERLAY (FLOU ENTRÉE SEULEMENT) --- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Transition simple sur l'opacité pour la sortie */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Flou uniquement à l'activation */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -50%; 
  width: 50%;
  height: 100%;
  background-color: #0e0e0e;
  z-index: 1600;
  display: flex;
  align-items: center;
  will-change: right;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-menu.active {
  right: 0;
}

.menu-content ul {
  list-style: none;
  padding-left: 100px;
  margin: 0;
}

.menu-content ul li { margin-bottom: 25px; }

.menu-content ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 45px;
  font-weight: 800;
  text-transform: uppercase;
  transition: 0.2s ease;
  display: inline-block;
}

.menu-content ul li a:hover {
  transform: translateX(10px);
  color: #cccccc;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .side-menu { width: 70%; right: -70%; }
}

@media (max-width: 768px) {
  .side-menu { width: 100%; right: -100%; }
  .menu-content ul { padding-left: 40px; }
  .menu-content ul li a { font-size: 32px; }
  .main-header { height: 80px; padding: 0 20px; }
  .logo img { height: 50px; }
  body { margin-top: 80px; }
}

/* --- BARRE ADMIN WP --- */
.admin-bar .main-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .main-header { top: 46px; } }