@charset "UTF-8";
/*
  Grand Futur — Barre de navigation principale
  Inspirée de la structure HTML de index.jsp et des variables de colors.css
*/

:root {
  --menubar-height: 68px;
  --menubar-radius: 12px;
  --menubar-border: var(--gf-border, rgba(44, 44, 44, 0.08));
  --menubar-shadow: var(--gf-shadow-1, 0 10px 24px rgba(0, 0, 0, 0.08));
}

.menubar {
  position: sticky;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--gf-bg, #ffffff) 85%, rgba(255, 255, 255, 0.75));
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--menubar-border);
  box-shadow: var(--gf-shadow-1, 0 4px 12px rgba(44, 44, 44, 0.12));
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.menubar__inner {
  height: var(--menubar-height);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.menubar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--gf-text, #2c2c2c);
  text-decoration: none;
}

.menubar__logo {
  inline-size: 36px;
  block-size: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gf-text-inverse, #ffffff);
  background:
    radial-gradient(120% 120% at 0% 0%,
      var(--gf-accent, #e4007c) 0%,
      var(--gf-primary, #00bfff) 60%,
      transparent 61%),
    linear-gradient(135deg,
      var(--gf-primary, #00bfff),
      var(--gf-success, #1dd1a1));
  box-shadow: var(--menubar-shadow);
}

.menubar__nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 14px);
}

.menubar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: color-mix(in srgb, var(--gf-text, #2c2c2c) 92%, #000 8%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.menubar__link:hover,
.menubar__link:focus-visible {
  background: var(--gf-primary-10a, rgba(0, 191, 255, 0.10));
  color: var(--gf-primary, #00bfff);
  outline: none;
}

.menubar__link:active {
  transform: translateY(1px);
}

.menubar__link--cta {
  background: var(--gf-cta, #ffb100);
  color: color-mix(in srgb, var(--gf-ink, #2c2c2c) 85%, #000 15%);
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 0 transparent, var(--gf-shadow-1, 0 4px 12px rgba(44, 44, 44, 0.12));
}

.menubar__link--cta:hover,
.menubar__link--cta:focus-visible {
  background: color-mix(in srgb, var(--gf-cta, #ffb100) 95%, #ffffff 5%);
  color: var(--gf-ink, #2c2c2c);
}

.menubar__toggle {
  display: none;
  inline-size: 44px;
  block-size: 44px;
  border-radius: 12px;
  border: 1px solid var(--menubar-border);
  background: var(--gf-surface, #ffffff);
  color: var(--gf-text, #2c2c2c);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.menubar__toggle:hover,
.menubar__toggle:focus-visible {
  background: var(--gf-primary-05a, rgba(0, 191, 255, 0.05));
  border-color: var(--gf-primary-20a, rgba(0, 191, 255, 0.2));
  color: var(--gf-primary, #00bfff);
  outline: none;
}

@media (max-width: 960px) {
  .menubar__inner {
    height: auto;
    padding-block: 12px;
    flex-wrap: wrap;
  }

  .menubar__toggle {
    display: inline-flex;
  }

  .menubar__nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--menubar-border);
    display: none;
  }

  .menubar__nav.is-open {
    display: flex;
  }

  .menubar__link {
    justify-content: center;
    border-radius: var(--menubar-radius);
  }
}

@media (prefers-color-scheme: dark) {
  .menubar {
    background: color-mix(in srgb,
      var(--gf-bg, #0f0f10) 92%,
      rgba(15, 15, 16, 0.92));
    border-bottom-color: var(--menubar-border);
    box-shadow: var(--gf-shadow-1, 0 4px 12px rgba(0, 0, 0, 0.35));
  }

  .menubar__link {
    color: var(--gf-text, #f5f6f7);
  }

  .menubar__link:hover,
  .menubar__link:focus-visible {
    background: var(--gf-primary-20a, rgba(0, 191, 255, 0.20));
    color: var(--gf-text-inverse, #ffffff);
  }

  .menubar__link--cta {
    color: var(--gf-text-inverse, #ffffff);
    box-shadow: inset 0 0 0 0 transparent, var(--gf-shadow-2, 0 10px 25px rgba(0, 0, 0, 0.5));
  }
}
