/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Mobile Menu */

#mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100vw;
  height: 100%;
  background: white;
  z-index: 9999;
  transition: 0.4s;
  overflow-y: auto;
  overflow-x: hidden;
}

@media screen and (min-width: 767px) {
  #mobile-menu {
    top: 64px;
    width: 500px;
    max-height: calc(100vh - 64px);
    box-shadow: 0 50px 80px rgba(0, 0, 0, 0.35);
  }
}

#mobile-menu.open {
  left: 0;
}

body.menu-open {
  overflow: hidden;
}

.mobile-menu-panel {
  position: absolute;
  width: 100%;
  top: 0;
  left: 100%;
  min-height: 100%;
  transition: 0.35s;
  background: white;
  padding: 24px;
  padding-bottom: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.mobile-menu-panel--active {
  left: 0;
}

.level-1 {
  left: 0;
}

/* Quand level-1 n'est plus actif, il glisse vers la gauche */
.level-1:not(.mobile-menu-panel--active) {
  left: -100%;
}

/* En mobile : boutons de langue dans le flux */
@media screen and (max-width: 766px) {
  .menu-languages {
    position: relative;
    bottom: auto;
    margin-top: 30px;
  }
}


.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.level-2 .mobile-menu-header {
  flex-wrap: wrap;
}

.level-2 .mobile-menu-header .menu-close {
  margin-left: auto;
}

.level-2 .mobile-menu-header .menu-back {
  width: 100%;
  margin-top: 30px;
}


@media screen and (min-width: 767px) {
  .level-2 .mobile-menu-header {
    flex-wrap: nowrap;
  }

  .mobile-menu-header {
    margin-bottom: 0;
  }
}


.menu-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #015999;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
}

.menu-back svg {
  flex-shrink: 0;
}

.menu-back-label {
  text-decoration: underline;
  font-size: 16px;
  color: #013C67;
}

.menu-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  color: #013C67;
}

.menu-level-1 {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-level-1 li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #CCD6DD;
  padding: 26px 24px 26px 8px;
  margin: 0;
}

.menu-level-1 li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1%;
}

.arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

.menu-languages {
  position: absolute;
  bottom: 30px;
  display: flex;
}

#mobile-menu .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 32px 8px 16px;
  border-radius: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1%;
  color: #013C67;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

#mobile-menu .lang-btn span {
  text-transform: capitalize;
}

#mobile-menu .lang-btn .lang-flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  display: block;
}

#mobile-menu .lang-btn:hover {
  background: #F5F5F5;
  border-color: #013C67;
  color: #013C67;
}

#mobile-menu .lang-btn--active {
  background: #F5F5F5;
  border-color: #013C67;
  color: #013C67;
  pointer-events: none;
}

/* desktop OFF */

@media (min-width: 1366px) {
  #mobile-menu {
    display: none;
  }
}


#mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  pointer-events: none;
}

#mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}


#mobile-menu button,
#mobile-menu a:not(.lang-btn) {
  background: none;
  border: none;
  box-shadow: none;
  outline: none;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* supprime les styles focus Elementor */

#mobile-menu button:focus,
#mobile-menu button:active,
#mobile-menu a:focus,
#mobile-menu a:active {
  outline: none;
  box-shadow: none;
}

/* supprime l'effet de tap mobile */

#mobile-menu a,
#mobile-menu button {
  -webkit-tap-highlight-color: transparent;
}

/* Groupes de menu (level-2) */

.mobile-menu-groups {
  overflow-y: auto;
  margin-top: 36px;
  padding-bottom: 43px;
}

.menu-group {
  margin-bottom: 32px;
}

.menu-group-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1%;
  color: #015999;
  margin: 0 0 8px 0;
}

.menu-group ul {
  list-style: none;
  margin: 4px 0 0 0;
  padding: 0;

}

.menu-group ul li a {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #013C67;
  transition: color 0.2s;
}

.menu-group ul li {
  padding: 12px 0 12px 8px;
  border-bottom: 1px solid #CCD6DD;
}

.menu-group ul li a:hover {
  color: #015999;
}

/* Image du menu dans le panel */

.level-2 {
  display: flex;
  flex-direction: column;
}

.level-2 .mobile-menu-groups {
  flex: 1;
  overflow-y: auto;
}

.level-2 .menu-item-image {
  margin: 0 -30px -30px -30px; /* compense le padding du panel */
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

.level-2 .menu-item-image a {
  display: block;
}

.level-2 .menu-item-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 0;
}
