/* ================================================
   NAVBAR HERO
   ================================================ */
.navbar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: transparent;
  box-sizing: border-box;
}

.navbar.hidden { display: none; }

.nav-logo img { height: 40px; width: auto; }
.nav-logo-middle img { height: 25px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-grey);
  border-radius: 50px;
  padding: 4px 8px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-dark);
  padding: 6px 14px;
  border-radius: 50px;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links a:hover  { background: var(--color-bg); }
.nav-links a.active { background: var(--color-bg); color: var(--color-dark); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-dark);
  background: var(--color-green-btn);
  border: none;
  border-radius: 50px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-contact:hover { background: color-mix(in srgb, var(--color-green-btn) 80%, #000 20%); }
.btn-contact .arrow { font-size: 1rem; transition: transform 0.2s; }
.btn-contact:hover .arrow { transform: translateX(3px); }

.btn-account {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-grey);
  border: 0px solid rgba(21,37,28,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-account:hover { background: rgba(21,37,28,0.14); }

.btn-account svg {
  width: 16px; height: 16px;
  stroke: var(--color-dark); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.nav-sep {
  width: 1px; height: 20px;
  background: rgba(21,37,28,0.15);
  margin: 0 2px;
}

/* Burger hero — 3 traits */
.nav-hero-burger {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-grey);
  border: 0px solid rgba(21,37,28,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.nav-hero-burger:hover { background: rgba(21,37,28,0.14); }

.nav-hero-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* Lang selector */
.lang-selector { position: relative; }

.lang-btn {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.82rem;
  color: var(--color-dark);
  background: var(--color-grey);
  border-radius: 50px;
  padding: 9px 16px;
  cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
  user-select: none;
}

.lang-btn:hover { background: rgba(21,37,28,0.14); }
.lang-btn .lang-chevron { font-size: 0.55rem; transition: transform 0.2s; opacity: 0.5; }
.lang-selector.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px); right: 0;
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 6px;
  display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 100px; z-index: 200;
}

.lang-selector.open .lang-dropdown { display: flex; }

.lang-option {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  color: var(--color-dark);
  padding: 7px 14px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
}

.lang-option:hover  { background: var(--color-grey); }
.lang-option.active { background: var(--color-grey); font-weight: 600; }

.nav-fab {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 200;
  height: 46px;
  padding: 0 20px;
  border-radius: 50px;
  background: rgb(113 132 109 / 18%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.4,0,0.2,1),
              background 0.25s ease;
}

.nav-fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-fab:hover { background: rgba(113, 132, 109, 0.30); }

.nav-fab-logo {
  height: 20px; width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.nav-fab-lines {
  display: flex; flex-direction: column;
  gap: 4px; align-items: flex-start;
}

.nav-fab-line {
  display: block; height: 2px;
  background: #fff; border-radius: 2px;
}

.nav-fab-line:nth-child(1) { width: 20px; }
.nav-fab-line:nth-child(2) { width: 14px; }
.nav-fab-line:nth-child(3) { width: 20px; }

/* ================================================
   OVERLAY
   ================================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: #15251C;
  pointer-events: none;
  opacity: 0;
  clip-path: circle(0% at 50% 39px);
  transition: opacity 0.4s ease,
              clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  clip-path: circle(150% at 50% 39px);
}

.nav-overlay-inner {
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 40px 60px 48px;
  box-sizing: border-box;
  overflow: hidden;
}

/* TOP : logo gauche | ✕ centré | lang + compte droite */
.nav-overlay-top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}

.nav-overlay-logo img { height: 44px; width: auto; }

/* Btn fermeture centré — desktop */
.nav-overlay-close-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.nav-overlay-close-btn:hover { background: rgba(255,255,255,0.25); }
.nav-overlay-close-btn svg { width: 20px; height: 20px; display: block; }

/* Btn fermeture mobile — dans le top-right */
.nav-overlay-close-btn-mobile {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.nav-overlay-close-btn-mobile:hover { background: rgba(255,255,255,0.25); }
.nav-overlay-close-btn-mobile svg { width: 18px; height: 18px; display: block; }

.nav-overlay-top-right {
  display: flex; align-items: center; gap: 10px;
}

/* Lang overlay */
.nav-overlay-lang { position: relative; z-index: 300; }

.nav-overlay-lang .lang-btn {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-overlay-lang .lang-btn:hover { background: rgba(255,255,255,0.15); }

.nav-overlay-lang .lang-dropdown {
  background: #1F3528;
  border-color: rgba(255,255,255,0.12);
  z-index: 310;
}

.nav-overlay-lang .lang-option       { color: rgba(255,255,255,0.8); }
.nav-overlay-lang .lang-option:hover { background: rgba(255,255,255,0.08); }
.nav-overlay-lang .lang-option.active{ background: rgba(255,255,255,0.12); color: #fff; }

/* Btn compte */
.nav-overlay-account {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.nav-overlay-account:hover { background: rgba(255,255,255,0.35); }

.nav-overlay-account svg {
  width: 18px; height: 18px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Btn fermeture — permanent dans l'overlay, visible desktop ET mobile */
.nav-overlay-close-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.nav-overlay-close-btn:hover { background: rgba(255,255,255,0.25); }

.nav-overlay-close-btn svg {
  width: 18px; height: 18px; display: block;
}

/* LIENS */
.nav-overlay-links {
  display: flex; flex-direction: column;
  gap: 4px;
  align-items: center; text-align: center;
}

.nav-ol-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 6rem);
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  line-height: 1.15;
  display: inline-block;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease,
              color 0s 0s, letter-spacing 0.15s ease 0s;
}

.nav-overlay.open .nav-ol-link:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0.12s, 0.12s, 0s, 0s; }
.nav-overlay.open .nav-ol-link:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:0.18s, 0.18s, 0s, 0s; }
.nav-overlay.open .nav-ol-link:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:0.24s, 0.24s, 0s, 0s; }
.nav-overlay.open .nav-ol-link:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:0.30s, 0.30s, 0s, 0s; }
.nav-overlay.open .nav-ol-link:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:0.36s, 0.36s, 0s, 0s; }

.nav-ol-link:hover,
.nav-ol-link:not(:hover) {
  transition: opacity 0.4s ease, transform 0.4s ease,
              color 0s 0s, letter-spacing 0.15s ease 0s;
}

.nav-ol-link:hover { color: #fff; letter-spacing: 0.01em; }

.nav-ol-link[data-color="orange"]:hover { color: #FF674C; }
.nav-ol-link[data-color="blue"]:hover   { color: #5C6DFF; }
.nav-ol-link[data-color="green"]:hover  { color: #B7F00D; }

/* Curseur personnage */
.nav-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 400;
  width: 130px; height: auto;
  transform: translate(-50%, -60%);
  opacity: 0;
  transition: opacity 0.15s ease;
  display: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
}

@media (hover: hover) {
  .nav-cursor { display: block; }
  .nav-ol-link { cursor: default; }
  .nav-ol-link[data-cursor] { cursor: none; }
}

.nav-cursor.visible { opacity: 1; }

/* BAS : réseaux | picker curseurs (desktop) ou lang+compte (mobile) */
.nav-overlay-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  flex-shrink: 0;
}

.nav-ol-socials { display: flex; gap: 12px; align-items: center; }

.nav-ol-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none;
}

.nav-ol-socials a:hover { background: rgba(255,255,255,0.18); }
.nav-ol-socials svg { width: 16px; height: 16px; fill: #fff; stroke: none; display: block; }
.nav-ol-socials a:nth-child(2) svg { fill: none; stroke: #fff; }

/* Sélecteur de curseurs — bas droite desktop */
.nav-cursor-picker {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 8px;
}

.nav-cursor-picker-label {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.nav-cursor-picker-options { display: flex; gap: 8px; }

.nav-cursor-opt {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  padding: 6px;
}

.nav-cursor-opt:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); transform: scale(1.05); }
.nav-cursor-opt.active { border-color: #B7F00D; background: rgba(183,240,13,0.1); }
.nav-cursor-opt img { width: 100%; height: 100%; object-fit: contain; }

/* Lang + compte en bas — mobile uniquement */
.nav-overlay-lang-bottom-wrap {
  display: none;
  align-items: center;
  gap: 10px;
}

.nav-overlay-lang-bottom { display: block; position: relative; z-index: 300; }

.nav-overlay-lang-bottom .lang-btn {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav-overlay-lang-bottom .lang-btn:hover { background: rgba(255,255,255,0.15); }

.nav-overlay-lang-bottom .lang-dropdown {
  background: #1F3528;
  border-color: rgba(255,255,255,0.12);
  bottom: calc(100% + 6px); top: auto;
  z-index: 310;
}

.nav-overlay-lang-bottom .lang-option       { color: rgba(255,255,255,0.8); }
.nav-overlay-lang-bottom .lang-option:hover { background: rgba(255,255,255,0.08); }
.nav-overlay-lang-bottom .lang-option.active{ background: rgba(255,255,255,0.12); color: #fff; }

/* ================================================
   CURSEURS SYSTÈME (desktop uniquement)
   ================================================ */
@media (hover: hover) {
  html {
    cursor: url('../assets/svg/cursor1.svg') 12 12, auto;
  }

  a, button, [role="button"],
  input[type="submit"], input[type="button"],
  label, select, [onclick], .footer-picto {
    cursor: url('../assets/svg/cursor-vector.svg') 12 12, pointer;
  }

  input[type="text"], input[type="email"],
  input[type="search"], textarea {
    cursor: url('../assets/svg/cursor-text.svg') 8 16, text;
  }

  .nav-ol-link[data-cursor] {
    cursor: none !important;
  }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  /* Navbar hero mobile : logo + lang + burger visible */
  .navbar { padding: 0 20px; }
  .navbar .nav-links   { display: none; }
  .navbar .btn-contact { display: none; }
  .navbar .btn-account { display: none; }
  .navbar .nav-sep     { display: none; }
  .navbar .nav-hero-burger { display: flex; }

  /* FAB visible sur mobile aussi après le hero */
  .nav-fab { z-index: 400; }

  /* Overlay mobile */
  .nav-cursor-picker         { display: none; }
  .nav-overlay-lang          { display: none; }
  .nav-overlay-close-btn     { display: none; }
  .nav-overlay-close-btn-mobile { display: flex; }
  .nav-overlay-inner         { padding: 28px 24px 36px; }
  .nav-ol-link               { font-size: clamp(2.6rem, 12vw, 4rem); }
  .nav-overlay-bottom        { align-items: center; }
  .nav-ol-email              { display: none; }
  .nav-overlay-lang-bottom-wrap { display: flex; }
  .nav-overlay-account-mobile   { display: flex !important; }
}

@media (max-width: 480px) {
  .nav-ol-link { font-size: clamp(2.2rem, 16vw, 5rem); }
}
