@charset "UTF-8"; 

/* ==========================================================================
   1. REGLES GENERALES & ICONES (FONT AWESOME)
   ========================================================================== */
.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa-chevron-up:before { content: "\f077"; }
.fa-chevron-down:before { content: "\f078"; margin-left: 4px; }
.fa-chevron-left:before { content: "\f053"; margin-right: 6px; }

.fa-angle-left:before {
  content: "\f104";
  margin-right: 6px;
  top: 2px;
  position: relative;
  font-size: 1.2em;
}
.fa-angle-right:before { content: "\f105"; }
.fa-angle-up:before { content: "\f106"; }
.fa-angle-down:before {
  content: "\f107";
  margin-left: 4px;
  font-size: 1.2em;
  top: 1px;
  position: relative;
}

/* ==========================================================================
   2. DRAPEAUX ET SÉLECTEUR DE LANGUE
   ========================================================================== */
.flag-rect {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  position: relative;
  top: -1px;
}

.flag-rect-menu {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.active-lang {
  color: #35aca6 !important;
}

/* ==========================================================================
   3. NAVBAR ET LIENS (DESKTOP)
   ========================================================================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  position: relative;
  background-color: #ffffff;
  z-index: 100;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.7rem;
  padding-top: 1.18rem;
  padding-left: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: #446876;
  font-weight: 800;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #35aca6;
}
  
.nav-links-li a:hover:before { 
  width: 100%; 
  z-index: 1000001;
}

.nav-links-li a:before {
  transition: all 0.2s linear;
  content: "";
  display: block;
  height: 1px;
  background: #35aca6;
  padding: 0;
  top: 26px;
  position: relative;
  width: 0;
  margin: auto;
  z-index: 1000001;
}

.la-barre-retour,
.menu-user-phone {
  display: none !important;
}

.menu-toggle, .burger-label {
  display: none;
}

/* ==========================================================================
   4. DROPDOWNS STANDARDS (DESKTOP)
   ========================================================================== */
.dropdown {
  position: relative;
  transition: 0.3s ease;
  top: -0.07em;
}

@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
  .dropdown {
    position: relative;
    transition: 0.3s ease;
    top: -0.08em;
  }
}

.arrow {
  font-size: 0.8rem;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  background-color: #ffffff;
  box-shadow: 2px 6px 5px 0px #0000001f;
  padding: 10px 0;
  list-style: none;
  min-width: 155px;
  border-radius: 0 0 6px 6px;
  text-align: left;
  display: none; 
  z-index: 10002; 
  transition: 0.3s ease;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 15px;
}

@media (min-width: 1151px) {
  .dropdown:hover .dropdown-menu {
    display: block !important;
  }
}

.arrow-langue {
  top: 0px;
  position: relative;
}

.dropdown-menu li a i {
  margin-right: 8px;
  text-align: center;
}

.dropdown-menu .divider {
  height: 1px;
  margin: 6px 0;
  background-color: #eee;
}

.dropdown-menu li a.logout-link:hover {
  background-color: #fff5f5;
  color: #e53e3e;
}

.dropdown-menu li a.logout-link i {
  color: inherit;
}

/* Masqué par défaut (Desktop) */
/* ==========================================
   FIX MENU LANGUE MOBILE (iPhone / Safari)
   ========================================== */

/* 1. Caché par défaut sur PC */
.div-langue-phone {
    display: none;
    position: relative;
    z-index: 9999;
}

/* 2. Style du bouton déclencheur */
.langue-phone-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    padding: 6px;
    background: transparent;
}

/* 3. LE MENU DÉROULANT (FOND BLANC OPAQUE + POSITIONNEMENT) */
.div-langue-phone ul.langue-mobile-box {
   /* display: none !important;
    position: absolute !important;
    top: calc(100% + 14px) !important;
    border-bottom-left-radius: 0% !important;
    transform: translateX(-76.2%) !important;
    background-color: #ffffff !important;
    min-width: 170px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 100000 !important;*/
    
}

/* 4. Affichage uniquement lorsque la classe is-open est présente */
.div-langue-phone ul.langue-mobile-box.is-open {
    display: block !important;
}

/* 5. Éléments internes de la liste */
.div-langue-phone ul.langue-mobile-box li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    
}

.div-langue-phone ul.langue-mobile-box li a {
    /*display: flex !important;*/
    align-items: center !important;
    gap: 3px !important;
    /*padding: 10px 16px !important;*/
    color: #446877 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    background-color: #ffffff !important;
}

.div-langue-phone ul.langue-mobile-box li a:hover,
.div-langue-phone ul.langue-mobile-box li a.active-lang {
    font-weight: bold !important;
    color: #35aca6 !important
}

.div-langue-phone ul.langue-mobile-box .check-lang {

    color: #35aca6;
}


/* ==========================================================================
   5. MODE RESPONSIVE (MAX-WIDTH: 1150px)
   ========================================================================== */
@media (max-width: 1150px) {

  .logo { margin-left: 0px; margin-top: 12px; margin-right: 1px;}

  .div-langue-phone {
        display: inline-flex !important;

        width: 30px;
    right: 60px;
    padding: 0;
    margin: 0;
    position: absolute;
    margin-top: 10px;
        margin-top: 20px;
    }

  .div_centre {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999999 !important; /* Passe au-dessus du reste du site */
    height: 60px !important;
    background-color: #ffffff;
  }

  .top {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
  }

  .navbar {
    display: flex !important;
    justify-content: space-between !important;
    /*align-items: center !important;*/
    height: 60px !important;
    padding: 0 15px !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }

  /* --- Burger de Droite --- */
  .burger-label {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 21px !important;
    height: 21px !important;
    cursor: pointer !important;
    z-index: 9999999 !important; /* Priorité maximale au toucher */
    order: 2; 
    padding: 12px 12px 4px 8px;
            padding: 21px 12px 4px 8px;
  }

  .burger-label span {
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    background-color: #446876 !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
  }

  /* --- Tiroir du menu principal burger --- */
  .nav-links {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100vw !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    
    /* Fermé par défaut */
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease-in-out !important;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
    z-index: 999998 !important;
  }

  .nav-links li {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-links a {
    display: block !important;
    padding: 1.5rem 0 !important;
    color: #446876;
    font-weight: 800 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
  }

  .nav-links-li a:before {
    display: none !important;
  }

  /* CLASSES ENCLENCHÉES PAR LE JAVASCRIPT DIRECTEMENT */
  .nav-links.is-open {
    max-height: 100vh !important;
    overflow-y: auto !important;
  }

  /* Transformation du bouton en croix */
  .burger-label.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger-label.is-open span:nth-child(2) { opacity: 0; }
  .burger-label.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  /* --- Sous-menus internes (Glissement latéral à droite) --- */
  .dropdown {
    position: static !important;
  }

  .nav-links .dropdown-menu {
    display: block !important; 
    position: fixed !important;
    top: 60px !important;
    left: auto !important;
    right: -100vw !important;
    width: 100vw !important;
    height: calc(100vh - 60px) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    list-style: none !important;
    transition: right 0.3s ease-in-out !important;
    z-index: 9999999 !important;
    background-color: #ffffff !important;
  }

  .nav-links .dropdown-menu.is-open {
    right: 0 !important;
  }

  .nav-links .dropdown-menu li {
    width: 100% !important;
    text-align: left !important;
  }

  .nav-links .dropdown-menu li a {
    padding: 1.2rem 1.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #446876;
  }

  .la-barre-retour {
    display: block !important;
    background-color: #446876 !important;
  }
  
  .click-retour { 
    color: #fff !important; 
    text-align: left !important; 
    display: block !important;
    padding: 1.2rem 1.5rem !important;
  } 

  .dropdown-trigger .arrow, .fa-chevron-down, .fa-angle-down {
    transform: rotate(-90deg) !important;
    top: 2px !important;
    position: relative !important;
  }

  /* --- MENU USER MOBILE (DÉROULEMENT DU HAUT VERS LE BAS) --- */
  .nav-links .dropdown:last-child {
    display: none !important;
  }

  .menu-user-phone {
    display: block !important;
    order: -1; 
    margin-left: 5px;
    z-index: 9999999 !important;
  }

  .menu-user-phone-trigger {
    color: #446876;
    display: inline-block;
    margin: 10px 5px;
  }

  .user-mobile-box, .langue-mobile-box {
    display: block !important;
    position: fixed !important;
    top: 60px !important;
    
    width: 100vw !important;
    background-color: #ffffff !important;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1) !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 9999995 !important;
    
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out !important; 
  }

  .user-mobile-box { left: 0 !important; }


  .langue-mobile-box {
    right: 0 !important;
    width: 100vw !important; }

  .langue-mobile-box {    z-index: 99999995 !important; }


  .user-mobile-box.is-open, .langue-mobile-box.is-open  {
    max-height: 500px !important;
  }

  .user-mobile-box li, .langue-mobile-box li {
    width: 100% !important;
    text-align: center !important;
  }

  .user-mobile-box li a, .langue-mobile-box li a {
    display: block !important;
    padding: 1.2rem 1.5rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #446876 !important;
    font-weight: 800;
    text-decoration: none;
  }

  .user-mobile-box li a i , .langue-mobile-box li a i {
    margin-right: 8px;
    color: #446877;
    width: 15px;
    text-align: center;
  }

  .user-mobile-box .divider, .langue-mobile-box .divider {
    height: 1px;
    background-color: #eee;
    margin: 0;
  }
}


@media (max-width: 540px) {

    .langue-mobile-box {
    right: 0 !important;
    width: 100vw !important; }

}