.elementor-164 .elementor-element.elementor-element-542c998{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}/* Start custom CSS for html, class: .elementor-element-d7e1d11 *//* --- CONTAINER GLOBAL --- */
.main-header {
  background: transparent;
  padding: 10px 0;
  display: flex;
  
  /* MODIFICATION ICI : On centre tout le contenu horizontalement */
  justify-content: center; 
  /* On ajoute un espace entre le Logo et le Menu */
  gap: 40px; 

  align-items: center;
  position: relative; 
  z-index: 999; 
  width: 100%;
}

/* --- LOGO --- */
.header-logo {
  display: flex;
  align-items: center;
  /* margin-right retiré car on utilise 'gap' sur le parent maintenant, 
     mais on peut laisser une petite marge de sécurité si besoin */
  flex-shrink: 0;
}

/* Taille du logo par défaut (Desktop) */
.header-logo img {
  height: 50px; 
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

/* --- MENU DESKTOP (> 1024px) --- */
.nav {
  width: auto; 
}

.nav .menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333; 
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  white-space: nowrap;
}

/* --- SWITCH --- */
.menu-switch {
  margin-left: 0; 
}

/* --- SOUS-MENUS --- */
.has-submenu { position: relative; cursor: pointer; }

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff; 
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  list-style: none;
  padding: 10px;
  min-width: 220px;
  z-index: 1000;
  border-top: 2px solid #271E59;
}

.submenu li { margin-bottom: 8px; display: block; }

/* Police sous-menus ajustée */
.submenu li a {
  text-transform: none;
  font-weight: 500; 
  font-size: 14px; 
  display: block;
  padding: 5px;
}

@media (min-width: 1025px) {
  .has-submenu:hover .submenu { display: block !important; }
}

/* --- UTILITAIRES --- */
.hidden { display: none !important; }

/* --- BURGER --- */
.burger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333; 
  margin: 5px 0;
  transition: 0.3s;
}

/* --- SWITCH DESIGN --- */
.switch {
  position: relative;
  display: inline-block;
  width: 160px;
  height: 40px;
  flex-shrink: 0; 
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #ccc; transition: .4s; border-radius: 40px;
  display: flex; justify-content: center; align-items: center;
  font-weight: 600; font-size: 14px; color: #333; font-family: sans-serif;
}
.slider:before {
  content: ""; position: absolute; height: 32px; width: 32px;
  left: 4px; top: 4px; background-color: #fff; border-radius: 50%; transition: .4s;
}

/* Checked */
input:checked + .slider { background-color: #271E59; color: #fff; }
input:checked + .slider:before { transform: translateX(120px); }
.switch input:not(:checked) + .slider { padding-left: 22px; }
.switch input:checked + .slider { padding-right: 20px; }


/* =========================================
   VERSION MOBILE & TABLETTE (Max 1024px)
   ========================================= */
@media (max-width: 1024px) {
  
  /* On rétablit l'espacement Logo à Gauche / Burger à Droite pour le mobile */
  .main-header { 
    justify-content: space-between; 
    gap: 0; /* On retire le gap du desktop */
  }

  .burger { display: block; }
  
  /* POSITIONNEMENT DU MENU DÉROULANT */
  .nav {
    display: none;
    position: absolute;
    
    /* On le place en dessous du header */
    top: 100%; 
    
    /* On force l'alignement à droite */
    right: 0 !important; 
    left: auto !important; 
    
    width: 250px; 
    background: #fff; 
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    border-radius: 4px;
    margin-top: 10px;
    z-index: 1000;
  }

  .nav.open { display: block !important; }
  
  .nav .menu { 
    flex-direction: column; 
    align-items: flex-start; 
    padding: 20px; 
  }

  /* Switch centré dans le menu déroulant */
  .menu-switch { 
    margin-left: 0 !important; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-top: 10px;
    border-bottom: none !important;
  }
  
  .nav .menu li { 
    width: 100%; 
    padding: 10px 0; 
    border-bottom: 1px solid #eee; 
  }
  
  /* Ajustement Switch Tablette */
  .switch { width: 130px; height: 34px; }
  .slider { font-size: 12px; }
  .slider:before { height: 26px; width: 26px; top: 4px; left: 4px; }
  input:checked + .slider:before { transform: translateX(96px); }

  /* Sous-menus mobile */
  .submenu { 
    position: static; 
    box-shadow: none; 
    padding-left: 20px; 
    background: #f9f9f9; 
    width: 100%; 
    border: none; 
    margin-top: 10px; 
  }
  .has-submenu.open .submenu { display: block !important; }
}

/* =========================================
   VERSION PETIT MOBILE (Max 600px)
   ========================================= */
@media (max-width: 600px) {
  
  /* Logo plus petit sur mobile */
  .header-logo img {
    height: 35px; 
  }

  /* Ajustement Switch Mobile */
  .switch { width: 110px; height: 30px; }
  .slider { font-size: 11px; }
  .slider:before { height: 22px; width: 22px; top: 4px; left: 4px; }
  input:checked + .slider:before { transform: translateX(78px); }
}/* End custom CSS */