:root {
  --nav-bg: rgba(8,12,11,0.90);
}

  /* ══════════════════════════════
     NAVBAR
  ══════════════════════════════ */
  nav {
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 40px;
    box-sizing: border-box;
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .btn-main-logo {
    display: flex; align-items: center;
    cursor: pointer; background: none; border: none;
    padding: 0; flex: 0 1 auto; min-width: 0; transition: opacity 0.2s;
  }
  .btn-main-logo:hover { opacity: 0.7; }
  .btn-main-logo img { height: 32px; width: auto; max-width: 180px; display: block; }

  .nav-sep {
    width: 1px; height: 28px;
    background: rgba(255,255,255,0.15);
    margin: 0 18px; flex-shrink: 0;
  }

  .btn-home-logo {
    display: flex; align-items: center;
    cursor: pointer; background: none; border: none;
    padding: 0; flex-shrink: 0;
    margin-right: 36px; transition: opacity 0.2s;
  }
  .btn-home-logo:hover { opacity: 0.7; }
  .btn-home-logo img { height: 26px; width: auto; display: block; }

  .nav-links { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
  .nav-links a {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600; font-size: 13px;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: rgba(255,255,255,0.72);
    text-decoration: none; padding: 6px 16px;
    position: relative; transition: color 0.2s; white-space: nowrap;
  }
  .nav-links a::after {
    content: ''; position: absolute;
    bottom: -1px; left: 16px; right: 16px;
    height: 2px; background: #fff;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  }
  .nav-links a:hover { color: #fff; }
  .nav-links a:hover::after { transform: scaleX(1); }

  /* Globe langue — visible desktop ET mobile */
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

  .lang-wrap { position: relative; }
  .lang-btn {
    display: flex; align-items: center; gap: 7px;
    background: none; border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.75); cursor: pointer;
    padding: 6px 12px; border-radius: 2px;
    font-family: 'Rajdhani', sans-serif; font-size: 12px;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
  }
  .lang-btn:hover { border-color: rgba(255,255,255,0.6); color: #fff; }

  .lang-chevron {
    width: 7px; height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
  }
  .lang-wrap.open .lang-chevron { transform: rotate(-135deg) translateY(0px); }

  .lang-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: #050505; border: 1px solid rgba(255,255,255,0.14);
    border-radius: 2px; overflow: hidden; min-width: 148px;
    display: none; flex-direction: column;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6); z-index: 3000;
  }
  .lang-wrap.open .lang-dropdown { display: flex; }
  .lang-dropdown a {
    padding: 10px 14px;
    font-family: 'Rajdhani', sans-serif; font-size: 12px;
    font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.55); text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .lang-dropdown a:hover, .lang-dropdown a.active {
    background: rgba(255,255,255,0.05); color: #fff; border-color: #fff;
  }

  /* Burger */
  .burger {
    display: none; flex-direction: column;
    justify-content: center; gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    padding: 4px; flex-shrink: 0;
    margin-left: 12px;
  }
  .burger span {
    display: block; width: 100%; height: 2px;
    background: #fff; border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    transform-origin: center;
  }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Drawer nav mobile (burger) — sans langue */
  .mobile-drawer {
    position: fixed; top: 64px; left: 0; right: 0;
    z-index: 990;
    background: rgba(6,10,9,0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-110%);
    transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
    overflow: hidden;
  }
  .mobile-drawer.open { transform: translateY(0); }
  .mobile-drawer-inner { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 0; }
  .mobile-drawer a {
    font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
    font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase;
    color: rgba(255,255,255,0.18); text-decoration: none;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s, padding-left 0.25s cubic-bezier(0.4,0,0.2,1); display: block;
  }
  .mobile-drawer a:last-child { border-bottom: none; }
  .mobile-drawer a:hover { color: #fff; padding-left: 10px; }

  /* ══════════════════════════════
     MEGA MENU DESKTOP — slide from top
  ══════════════════════════════ */
  .mega-overlay {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 2000;
    background: #fff;
    color: #111;
    transform: translateY(-100%);
    transition: transform 0.42s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  }
  .mega-overlay.open { transform: translateY(0); }

  /* Header du mega menu */
  .mega-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 56px;
    height: 108px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  .mega-header-logo img { height: 76px; width: auto; display: block; }

  .mega-close {
    background: none; border: none;
    color: rgba(0,0,0,0.35); font-size: 28px;
    cursor: pointer; line-height: 1; transition: color 0.2s;
    font-family: 'Barlow', sans-serif; font-weight: 300;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
  }
  .mega-close:hover { color: #000; background: rgba(0,0,0,0.05); }

  /* Corps */
  .mega-body {
    display: flex;
    padding: 64px 64px 76px;
    gap: 0;
    max-width: 1560px;
    margin: 0 auto;
  }

  /* Colonnes */
  .mega-col { flex: 0 0 250px; padding-right: 56px; }

  .mega-col-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #111;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #111;
  }
  .mega-col a {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 18px; font-weight: 400;
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    padding: 9px 0;
    letter-spacing: 0.02em;
    transition: color 0.15s, padding-left 0.2s;
  }
  .mega-col a:hover { color: #000; padding-left: 8px; }

  /* Séparateur */
  .mega-divider {
    width: 1px; background: rgba(0,0,0,0.08);
    margin: 0 56px; flex-shrink: 0; align-self: stretch;
  }

  /* Cards */
  .mega-cards { display: flex; gap: 32px; flex: 1; min-width: 0; }

  .mega-card {
    flex: 1; min-width: 0;
    text-decoration: none; color: inherit;
    cursor: pointer; display: flex; flex-direction: column;
  }
  .mega-card-img {
    width: 100%; aspect-ratio: 16/9;
    overflow: hidden; background: #e0e0e0; margin-bottom: 18px;
  }
  .mega-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  }
  .mega-card:hover .mega-card-img img { transform: scale(1.04); }
  .mega-card-text {
    font-family: 'Barlow', sans-serif;
    font-size: 17px; font-weight: 400;
    color: rgba(0,0,0,0.55); line-height: 1.55;
  }
  .mega-card:hover .mega-card-text { color: #000; }

  /* ══════════════════════════════
     MEGA MENU MOBILE — side left
  ══════════════════════════════ */
  .mega-mobile {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(340px, 88vw);
    z-index: 2000;
    background: #fff; color: #111;
    transform: translateX(-100%);
    transition: transform 0.38s cubic-bezier(0.16,1,0.3,1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 40px rgba(0,0,0,0.18);
    display: none;
  }
  .mega-mobile.open { transform: translateX(0); }

  .mega-mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 84px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: sticky; top: 0; background: #fff; z-index: 10;
  }
  .mega-mobile-header img { height: 52px; width: auto; }
  .mega-mobile-close {
    background: none; border: none; font-size: 22px;
    color: rgba(0,0,0,0.4); cursor: pointer; line-height: 1;
    transition: color 0.2s;
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
  }
  .mega-mobile-close:hover { color: #000; }

  .mega-mobile-body { padding: 32px 24px 48px; }
  .mega-mobile-section { margin-bottom: 32px; }
  .mega-mobile-section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: #111; margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 2px solid #111;
  }
  .mega-mobile-section a {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 15px; font-weight: 400;
    color: rgba(0,0,0,0.55); text-decoration: none;
    padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.15s, padding-left 0.2s;
  }
  .mega-mobile-section a:last-child { border-bottom: none; }
  .mega-mobile-section a:hover { color: #000; padding-left: 6px; }

  /* Backdrop */
  .mega-backdrop {
    position: fixed; inset: 0; z-index: 1999;
    background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .mega-backdrop.open { opacity: 1; pointer-events: all; }

  @media (max-width: 900px) {
    .mega-overlay { display: none !important; }
    .mega-mobile  { display: block; }
  }

  @media (min-width: 901px) {
    .mega-mobile   { display: none !important; }
    .mega-backdrop { display: none !important; }
  }

  @media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-links { display: none; }
    /* nav-sep entre logo principal et logo accueil reste visible */
    .btn-home-logo { margin-right: 0; }
    .burger { display: flex; }
    /* nav-right (globe langue) reste visible sur mobile */
  }

  @media (max-width: 480px) {
    .btn-main-logo img { height: 26px; }
    .btn-home-logo img { height: 20px; }
    .nav-sep { margin: 0 10px; }
    /* Sur tres petit ecran, masquer le texte langue, garder juste le globe */
    #langLabel { display: none; }
  }
