:root {
    /* Couleurs principales */
    --c-bg-light: #eeeeee;
    --c-bg-white: #FFFFFF;
    --c-text-dark: #5A5A5A;
    --c-text-light: #FFFFFF;
    --c-overlay: rgba(0, 0, 0, 0.555);
    --c-border-light: #E9E9E9;
  
    /* Tailles & espacements */
    --h-header: 60px; /* ou la valeur que tu utilises dans --h_header */
    --p-cont: 1rem;   /* remplace padd-odbolt-cont */
  }
  
  /* =================================================
     Mobile – Menu
  ==================================================== */
  
  /* Hamburger button */
  #menu-toggle {
    border: none;
    cursor: pointer;
    position: relative;
    background: var(--c-bg-light);
  }
  
  /* Main nav panel */
  #main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 400px; max-width: 100%;
    height: 100%;
    background: var(--c-bg-white);
    display: none;
    flex-direction: column;
    z-index: 9999;
  }
  #main-nav.active {
    display: flex;
  }
  .admin-bar #main-nav {
    margin-top: 46px; /* inchangé */
  }
  
  /* Overlay (click outside area) */
  .close-btn::after {
    content: '';
    position: fixed; top: 0; left: 0;
    height: 100%; width: calc(100% - 400px);
    background: var(--c-overlay);
    display: block;
  }
  
  /* Mobile nav layout */
  .nav-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* Mobile nav header */
  .nav-mobile-header {
    height: var(--h-header);
    background: var(--c-bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--p-cont);
  }
  .nav-mobile-header h2 {
    margin: 0 !important;
  }
  
  /* Boutons flèches, retour, close : fond commun */
  .arrow-mob,
  .back-btn,
  .close-btn {
    background: var(--c-bg-light);
  }
  
  /* Back button */
  .back-btn {
    transform: rotate(180deg);
    margin-right: 15px;
  }
  
  /* Menu title */
  .menu-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--c-text-dark) !important;
    color: var(--c-text-light);
    line-height: normal;
  }
  
  /* Back title wrapper */
  .back-title {
    display: flex;
    align-items: center;
  }
  
  /* Scrollable menu wrapper */
  .menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--p-cont);
  }
  
  /* Menu list */
  .menu,
  .dropdown-menu {
    list-style: none;
    margin: 0; padding: 0;
  }
  .menu { display: block; }
  .dropdown-menu { display: none; }
  .menu-wrapper > .dropdown-menu { display: block; }
  
  /* Menu item */
  .cont-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    position: relative;
  }
  li:last-child .cont-item {
    border-bottom: none;
  }
  .cont-item a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 1.1rem;
    color: var(--c-text-dark);
  }
  
  /* Icon buttons */
  .btn_i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; width: 40px;
    aspect-ratio: 1;
    line-height: 0;
    cursor: pointer;
    border-radius: 6px;
  }
  .odbolt_icone {
    width: 20px; height: 20px;
  }
  
  /* Social nav */
  .rs-nav {
    padding: 8px 16px !important;
    background: var(--c-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    color: var(--c-text-light);
    width: calc(50% - 4px);
  }
  
  /* Social links container */
  .social {
    display: none;
    margin: 40px 0 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding-left: var(--p-cont);
    padding: 0;
  }
  
  /* =================================================
     Adaptations Mobile (<768px)
  ==================================================== */
  @media (max-width: 768.1px) {
    .cont-item {
        border-bottom: solid 1px var(--c-border-light);
      }
    .social {
      display: flex;
    }
    .menu,
    .dropdown-menu {
      background-color: var(--c-bg-light);
      padding: 8px 16px !important;
      border-radius: 12px;
    }
    .menu-title {
      padding: 0 16px;
      background-color: var(--c-bg-light);
      height: 40px;
      display: flex;
      align-items: center;
      border-radius: 6px;
    }
    .arrow-mob {
      justify-content: flex-end;
    }
    .arrow-mob svg {
      width: 20px;
    }
  }
  
  /* =================================================
     Desktop – Horizontal Menu (≥768px)
  ==================================================== */
  @media (min-width: 768.1px) {
    .admin-bar #main-nav {
      margin: 0;
    }
    .dropdown-menu .arrow-mob{
    position: absolute;
    right: 10px;
    transform: rotate(-90deg);    
  }

    

    .arrow-mob {
      pointer-events: none;
      background: transparent;
      height: auto;
      width: auto;
    }
    #menu-toggle,
    .nav-mobile-header {
      display: none;
    }
    #main-nav {
      position: static;
      display: block;
      height: auto;
      width: auto;
      background: transparent;
    }
    .nav-container {
      flex-direction: row;
      align-items: center;
      justify-content: center;
    }
    .menu-wrapper {
      padding: 0;
      overflow: visible;
    }
    .menu {
      display: flex;
      justify-content: flex-end;
      gap: 15px;
    }
    .menu > li {
      position: relative;
      height: var(--h-header);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .cont-item a {
      font-size: 1rem;
    }
    /* Flèches desktop */
    .arrow-mob svg {
      transform: rotate(90deg);
      width: 18px; height: 18px;
    }
    /* Dropdown */
    .dropdown-menu {
      display: block;
      position: absolute;
      top: 100%; left: 0;
      min-width: 200px;
      background: var(--c-bg-white);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      opacity: 0; visibility: hidden;
      z-index: 999;
      transition: opacity .4s ease, transform .4s ease;
    }
    .menu li:hover > .dropdown-menu {
      opacity: 1; visibility: visible; transform: translateY(0);
    }
    .dropdown-menu li a {
      padding: 10px 15px;
      width: 100%;
    }
    .dropdown-menu li a:hover {
      background-color: var(--c-bg-light);
    }
    .dropdown-menu .dropdown-menu {
      border: none;
      top: 0; left: 100%;
      opacity: 0; visibility: hidden;
      transform: translateY(10px);
    }
    .dropdown-menu li.has-dropdown {
      position: relative;
    }
    .dropdown-menu li.has-dropdown:hover > .dropdown-menu {
      opacity: 1; visibility: visible; transform: translateY(0);
    }
    header ul .has-dropdown .dropdown-menu .dropdown-menu{
    left: 100% !important;
    }
  }