/* #region HEADER */
.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: top 0.3s ease, transform 0.3s ease;
}

.nav-shell {
  --nav-entry-shell-height: 86px;
  --nav-entry-orb: 126px;
  --nav-entry-orb-y: -20px;
  --nav-entry-orb-x: calc(50% - 63px);
  --nav-entry-icon: 64px;
  --nav-entry-final-radius: 999px;
  --nav-logo-entry-x: min(calc(50vw - 122px), 582px);
  --nav-logo-entry-adjust-x: -2px;
  --nav-logo-entry-adjust-y: 0px;
  --nav-logo-target-x: -43px;
  --nav-logo-target-y: 0px;
  width: min(calc(100% - 48px), var(--nav-max));
  margin: 0 auto;
  height: 86px;
  padding: 0 22px 0 30px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 251, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 24px 60px rgba(16, 24, 32, 0.16),
    0 6px 18px rgba(16, 24, 32, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    height 0.3s ease,
    width 0.3s ease,
    padding 0.3s ease;
  isolation: isolate;
}

.nav-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(117, 184, 234, 0.18), transparent 22%, transparent 78%, rgba(74, 151, 223, 0.14));
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

:root.nav-entry-animate .site-header .nav-shell,
:root.nav-entry-animate .site-header.scrolled .nav-shell {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

:root.nav-entry-animate .nav-shell::before {
  opacity: 0 !important;
}

:root.nav-entry-animate .nav-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: var(--nav-entry-orb-y) var(--nav-entry-orb-x);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 251, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 0 rgba(16, 24, 32, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  animation: navShellOrbExpand 0.98s var(--ease-out-soft) both;
  pointer-events: none;
}

:root.nav-entry-animate .logo img {
  opacity: 0;
  animation: navLogoCenterToStart 1.16s var(--ease-out-soft) both;
  will-change: transform, opacity;
}

:root.nav-entry-animate .logo::before {
  content: none;
}

:root.nav-entry-animate .logo .brand-text {
  animation: navBrandTextReveal 0.3s var(--ease-out-soft) 1.06s both;
  will-change: opacity, translate;
}

:root.nav-entry-animate .nav-links {
  animation: navItemsReveal 0.38s var(--ease-out-soft) 1.08s both;
}

:root.nav-entry-animate .nav-contact {
  animation: navItemsReveal 0.38s var(--ease-out-soft) 1.12s both;
}

:root.nav-entry-animate .nav-toggle {
  animation: navItemsReveal 0.34s var(--ease-out-soft) 1.08s both;
}

@keyframes navShellOrbExpand {
  0% {
    opacity: 0;
    inset: var(--nav-entry-orb-y) var(--nav-entry-orb-x);
    border-radius: 999px;
    transform: scale(0.72);
    box-shadow:
      0 0 0 rgba(16, 24, 32, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }

  18% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(16, 24, 32, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }

  44% {
    inset: var(--nav-entry-orb-y) var(--nav-entry-orb-x);
    border-radius: 999px;
    box-shadow:
      0 0 0 rgba(16, 24, 32, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }

  99% {
    box-shadow:
      0 0 0 rgba(16, 24, 32, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }

  100% {
    opacity: 1;
    inset: 0;
    border-radius: var(--nav-entry-final-radius);
    transform: scale(1);
    box-shadow:
      0 24px 60px rgba(16, 24, 32, 0.16),
      0 6px 18px rgba(16, 24, 32, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  }
}

@keyframes navLogoCenterToStart {
  0% {
    opacity: 0;
    transform: translate(
      calc(var(--nav-logo-entry-x) - var(--nav-logo-target-x) + var(--nav-logo-entry-adjust-x)),
      calc(0px - var(--nav-logo-target-y) + var(--nav-logo-entry-adjust-y))
    ) scale(0.82);
    filter: drop-shadow(0 16px 24px rgba(35, 140, 234, 0.22));
  }

  18% {
    opacity: 1;
    transform: translate(
      calc(var(--nav-logo-entry-x) - var(--nav-logo-target-x) + var(--nav-logo-entry-adjust-x)),
      calc(0px - var(--nav-logo-target-y) + var(--nav-logo-entry-adjust-y))
    ) scale(1);
  }

  42% {
    transform: translate(
      calc(var(--nav-logo-entry-x) - var(--nav-logo-target-x) + var(--nav-logo-entry-adjust-x)),
      calc(0px - var(--nav-logo-target-y) + var(--nav-logo-entry-adjust-y))
    ) scale(1);
  }

  92% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: none;
  }
}

@keyframes navBrandTextReveal {
  0%,
  54% {
    opacity: 0;
    translate: -8px 0;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes navItemsReveal {
  0%,
  32% {
    opacity: 0;
    translate: 0 10px;
    scale: .985;
  }

  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root.nav-entry-animate .site-header .nav-shell {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 248, 251, 0.72)) !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
    box-shadow:
      0 24px 60px rgba(16, 24, 32, 0.16),
      0 6px 18px rgba(16, 24, 32, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35) !important;
  }

  :root.nav-entry-animate .site-header.scrolled .nav-shell {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 251, 0.86)) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow:
      0 20px 54px rgba(16, 24, 32, 0.18),
      0 5px 16px rgba(16, 24, 32, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  }

  :root.nav-entry-animate .nav-shell::after {
    content: none;
  }

  :root.nav-entry-animate .logo img {
    opacity: 1;
  }

  :root.nav-entry-animate .logo::before {
    content: none;
  }

  :root.nav-entry-animate .nav-shell::after,
  :root.nav-entry-animate .logo img,
  :root.nav-entry-animate .logo::before,
  :root.nav-entry-animate .logo .brand-text,
  :root.nav-entry-animate .nav-links,
  :root.nav-entry-animate .nav-contact,
  :root.nav-entry-animate .nav-toggle {
    animation: none;
  }
}

@media (max-width: 991px) {
  .nav-shell {
    --nav-entry-shell-height: 66px;
    --nav-entry-orb: 92px;
    --nav-entry-orb-y: -11px;
    --nav-entry-orb-x: calc(50% - 46px);
    --nav-entry-icon: 46px;
    --nav-entry-final-radius: 20px;
    --nav-logo-entry-x: calc(50vw - 81px);
    --nav-logo-entry-adjust-x: -1px;
    --nav-logo-entry-adjust-y: 0px;
    --nav-logo-target-x: -32px;
    --nav-logo-target-y: 0px;
  }
}

@media (max-width: 480px) {
  .nav-shell {
    --nav-entry-orb: 90px;
    --nav-entry-orb-y: -12px;
    --nav-entry-orb-x: calc(50% - 45px);
    --nav-entry-icon: 46px;
    --nav-entry-final-radius: 19px;
    --nav-logo-entry-x: calc(50vw - 76px);
    --nav-logo-target-x: -31px;
    --nav-logo-target-y: 0px;
  }
}

.site-header.scrolled {
  top: 12px;
}

.site-header.scrolled .nav-shell {
  width: min(calc(100% - 64px), var(--nav-max));
  height: 78px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 251, 0.86));
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 54px rgba(16, 24, 32, 0.18),
    0 5px 16px rgba(16, 24, 32, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.site-header.scrolled .nav-shell::before {
  opacity: 1;
}

/* BRAND */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  text-decoration: none;
  min-width: 250px;
}

.brand-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  transition:
    transform 0.32s var(--ease-smooth),
    filter 0.32s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.045);
  filter: drop-shadow(0 10px 18px rgba(74, 151, 223, 0.22));
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.86;
  margin-left: -8px;
  transform: translateY(1px);
}

.brand-top,
.brand-bottom {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-top {
  color: #101827;
}

.brand-bottom {
  color: #238cea;
}

/* ancien logo conservé */
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 136px;
  height: 136px;
  position: relative;
  z-index: 3;
}

.logo img {
  max-width: 100%;
  max-height: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition:
    transform 0.32s var(--ease-smooth),
    filter 0.32s ease;
}

.logo:hover img {
  transform: scale(1.035);
  filter: drop-shadow(0 8px 16px rgba(74, 151, 223, 0.18));
}

.logo .brand-top,
.logo .brand-bottom {
  transition: color 0.25s ease, transform 0.25s var(--ease-smooth);
}

.logo:hover .brand-top,
.logo:hover .brand-bottom {
  transform: translateX(2px);
}

.brand-line {
  display: block;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-dark {
  color: #111827;
  font-size: 18px;
}

.brand-blue {
  color: #1e8eea;
  font-size: 18px;
}

/* MENU MOBILE */
.nav-toggle {
  margin-left: auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(211, 220, 228, 0.95);
  box-shadow:
    0 10px 24px rgba(16, 24, 32, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(74, 151, 223, 0.34);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(16, 24, 32, 0.1);
}

.nav-toggle:focus-visible {
  box-shadow:
    var(--focus-ring),
    0 12px 24px rgba(16, 24, 32, 0.1);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  margin-left: auto;
  background: #20242b;
  border-radius: 999px;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 227, 234, 0.95);
  box-shadow:
    0 26px 58px rgba(16, 24, 32, 0.18),
    0 6px 16px rgba(16, 24, 32, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.main-nav.open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link,
.dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(25, 33, 43, 0.82);
  background: transparent;
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    transform 0.24s ease;
}

.nav-link::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-strong));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav-link:hover,
.dropdown-toggle:hover,
.nav-link.is-active,
.dropdown-toggle.is-active {
  background: transparent;
}

.nav-link:focus-visible,
.dropdown-toggle:focus-visible {
  background: rgba(117, 184, 234, 0.14);
  color: #101827;
}

.nav-link:hover::after,
.dropdown-toggle:hover::after,
.nav-link.is-active::after,
.dropdown-toggle.is-active::after {
  transform: scaleX(1);
}

.dropdown {
  display: flex;
  flex-direction: column;
}

.dropdown-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  color: rgba(32, 36, 43, 0.5);
  transition:
    transform 0.28s ease,
    color 0.22s ease;
  flex-shrink: 0;
}

.dropdown-caret svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dropdown-toggle:hover .dropdown-caret,
.dropdown-toggle.is-active .dropdown-caret,
.dropdown-toggle[aria-expanded="true"] .dropdown-caret {
  color: var(--blue-strong);
}

.dropdown:hover .dropdown-caret,
.dropdown-toggle[aria-expanded="true"] .dropdown-caret,
.dropdown-toggle.is-active .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 0 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.dropdown-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 14px;
  color: #3a434d;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a.is-active {
  background: rgba(117, 184, 234, 0.12);
  color: #1f2a35;
  transform: translateY(-1px);
}

.nav-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center !important;
  background: var(--blue);
  color: #ffffff !important;
  border: 2px solid var(--blue);
  border-radius: 999px;
  padding: 0 24px !important;
  font-size: 14px;
  font-weight: 700;
  min-width: 142px;
  min-height: 52px;
  box-shadow: 0 10px 22px rgba(72, 145, 208, 0.2);
  transition:
    color 0.25s ease,
    transform 0.3s var(--ease-smooth),
    box-shadow 0.3s var(--ease-smooth),
    background-color 0.25s ease,
    border-color 0.25s ease;
  will-change: transform;
}

.nav-contact::before {
  content: "";
  position: absolute;
  inset: -2px auto -2px -58%;
  width: 46%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  transition: transform 0.55s var(--ease-out-soft);
  pointer-events: none;
}

.nav-contact:hover {
  background: #ffffff;
  color: var(--blue) !important;
  border-color: var(--blue);
  transform: translateY(-1px) scale(1.015);
  box-shadow: 0 15px 28px rgba(72, 145, 208, 0.2);
}

.nav-contact:hover::before {
  transform: translateX(350%) skewX(-18deg);
}

.nav-contact.is-active {
  background: var(--blue);
  color: #ffffff !important;
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(72, 145, 208, 0.2);
}

.nav-contact.is-active:hover {
  background: #ffffff;
  color: var(--blue) !important;
  border-color: var(--blue);
  box-shadow: 0 15px 28px rgba(72, 145, 208, 0.2);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.scroll-indicator svg {
  width: 22px;
  height: 22px;
  animation: scrollArrowBounce 1.6s ease-in-out infinite;
}

.scroll-indicator:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

@keyframes scrollArrowBounce {
  0%, 100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(5px);
  }
}
/* #endregion */

/* #region DESKTOP NAV */
@media (min-width: 992px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(24px, 3vw, 42px);
    padding: 0;
    border-radius: 999px;
    pointer-events: auto;
    z-index: 2;
  }

  .main-nav > a:not(.nav-contact),
  .dropdown-toggle,
  .nav-link {
    width: auto;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: 0;
    padding: 14px 0;
    border-radius: 0;
    background: transparent;
    color: rgba(32, 36, 43, 0.8);
    border: none;
    box-shadow: none;
  }

  .nav-link:hover,
  .dropdown-toggle:hover,
  .nav-link.is-active,
  .dropdown-toggle.is-active {
  background: transparent;
}

  .nav-link::after,
  .dropdown-toggle::after {
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, #77c2f4, #3d96e8);
    box-shadow: 0 0 14px rgba(117, 184, 234, 0.55);
  }

  .dropdown {
    position: relative;
    z-index: 4;
  }

  .dropdown .dropdown-toggle {
    position: relative;
    z-index: 3;
  }

  .dropdown::after {
    content: "";
    position: absolute;
    left: -18px;
    right: -18px;
    top: 100%;
    height: 18px;
    z-index: 1;
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    min-width: 246px;
    padding: 8px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 253, 0.94));
    border: 1px solid rgba(213, 224, 233, 0.92);
    box-shadow:
      0 20px 42px rgba(16, 24, 32, 0.15),
      0 5px 14px rgba(16, 24, 32, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) saturate(1.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    transition:
      opacity 0.2s ease,
      transform 0.24s var(--ease-out-soft),
      visibility 0.2s ease;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(213, 224, 233, 0.92);
    border-top: 1px solid rgba(213, 224, 233, 0.92);
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
  }

  .dropdown:hover .dropdown-toggle,
  .dropdown:focus-within .dropdown-toggle {
    color: #101827;
  }

  .dropdown:hover .dropdown-toggle::after,
  .dropdown:focus-within .dropdown-toggle::after {
    transform: scaleX(1);
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }

  .dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 46px;
    padding: 0 12px 0 14px;
    border-radius: 10px;
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    color: rgba(31, 39, 49, 0.84);
    background: rgba(255, 255, 255, 0);
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0);
    isolation: isolate;
    overflow: hidden;
  }

  .dropdown-menu a::before {
    content: "";
    width: 3px;
    height: 18px;
    border-radius: 999px;
    background: var(--blue-strong);
    opacity: 0;
    transform: scaleY(0.45);
    flex: 0 0 auto;
    transition:
      opacity 0.22s ease,
      transform 0.22s var(--ease-out-soft);
  }

  .dropdown-menu a::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.28;
    transform: rotate(45deg) translateX(-2px);
    transition:
      opacity 0.22s ease,
      transform 0.22s var(--ease-out-soft);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a.is-active {
    background:
      linear-gradient(135deg, rgba(117, 184, 234, 0.13), rgba(255, 255, 255, 0.78));
    border-color: rgba(117, 184, 234, 0.22);
    color: #111827;
    transform: translateX(2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 6px 14px rgba(74, 151, 223, 0.08);
  }

  .dropdown-menu a:hover::before,
  .dropdown-menu a.is-active::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .dropdown-menu a:hover::after,
  .dropdown-menu a.is-active::after {
    opacity: 0.62;
    transform: rotate(45deg) translateX(1px);
  }

  .nav-contact {
    position: absolute;
    right: 18px;
    top: 50%;
    min-width: 142px;
    min-height: 52px;
    padding: 0 24px !important;
    border-radius: 999px;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-contact:hover {
    transform: translateY(calc(-50% - 1px)) scale(1.015);
  }
}
/* #endregion */

/* #region HEADER RESPONSIVE */
@media (max-width: 991px) {
  .site-header {
    top: 10px;
  }

  .nav-shell,
  .site-header.scrolled .nav-shell {
    width: calc(100% - 28px);
    height: 70px;
    padding: 0 14px 0 18px;
    border-radius: 22px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    line-height: 0.9;
  }

  .brand-top,
  .brand-bottom {
    font-size: 12px;
    letter-spacing: 0;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    padding: 0 10px;
  }

  .main-nav {
    right: 0;
    top: calc(100% + 8px);
    width: min(300px, calc(100vw - 28px));
  }
}

@media (max-width: 480px) {
  .site-header {
    top: 8px;
  }

  .nav-shell,
  .site-header.scrolled .nav-shell {
    width: calc(100% - 24px);
    height: 66px;
    padding: 0 12px 0 14px;
    border-radius: 20px;
  }

  .brand {
    gap: 8px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-top,
  .brand-bottom {
    font-size: 10.8px;
    letter-spacing: 0;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .nav-toggle span {
    width: 18px;
  }

  .scroll-indicator {
    bottom: 20px;
    width: 38px;
    height: 38px;
  }

  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }
}
/* #endregion */

/* ==========================================================================
   FINAL DROPDOWN REDESIGN - clean professional navbar integration
   ========================================================================== */

.dropdown-menu a {
  text-decoration: none;
}

@media (min-width: 992px) {
  .dropdown {
    position: relative;
    z-index: 20;
  }

  .dropdown .dropdown-toggle {
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    gap: 7px;
    background: transparent;
    color: rgba(20, 28, 40, 0.78);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .dropdown:hover .dropdown-toggle,
  .dropdown:focus-within .dropdown-toggle,
  .dropdown-toggle[aria-expanded="true"],
  .dropdown-toggle.is-active {
  background: transparent;
}

  .dropdown-toggle::after {
    display: none;
  }

  .dropdown-caret {
    width: 18px;
    height: 18px;
    color: rgba(35, 140, 234, 0.9);
  }

  .dropdown::after {
    content: "";
    position: absolute;
    left: -28px;
    right: -28px;
    top: 100%;
    height: 22px;
  }

  .dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    display: grid;
    width: 286px;
    min-width: 286px;
    padding: 10px;
    gap: 4px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(216, 226, 236, 0.9);
    box-shadow:
      0 22px 50px rgba(15, 23, 42, 0.16),
      0 6px 16px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition:
      opacity 0.18s ease,
      transform 0.22s ease,
      visibility 0.18s ease;
  }

  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.94);
    border-left: 1px solid rgba(216, 226, 236, 0.9);
    border-top: 1px solid rgba(216, 226, 236, 0.9);
    transform: translateX(-50%) rotate(45deg);
  }

  .dropdown-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(117, 184, 234, 0), rgba(35, 140, 234, 0.72), rgba(117, 184, 234, 0));
    opacity: 0.85;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu,
  .dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .dropdown-menu a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 42px 0 18px;
    border-radius: 14px;
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    color: rgba(22, 30, 42, 0.86);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    white-space: nowrap;
    transform: none;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease,
      transform 0.18s ease;
  }

  .dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: #238cea;
    opacity: 0;
    transform: scaleY(0.55);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .dropdown-menu a::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.24;
    transform: translateY(-50%) rotate(45deg);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible,
  .dropdown-menu a.is-active {
    color: #0f172a;
    background: rgba(240, 247, 253, 0.92);
    border-color: rgba(188, 216, 239, 0.78);
    transform: translateX(2px);
  }

  .dropdown-menu a:hover::before,
  .dropdown-menu a:focus-visible::before,
  .dropdown-menu a.is-active::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .dropdown-menu a:hover::after,
  .dropdown-menu a:focus-visible::after,
  .dropdown-menu a.is-active::after {
    opacity: 0.62;
    transform: translateY(-50%) rotate(45deg) translateX(2px);
  }
}

@media (max-width: 991px) {
  .main-nav {
    max-height: calc(100svh - 96px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links,
  .dropdown,
  .dropdown-menu {
    width: 100%;
    min-width: 0;
  }

  .dropdown-menu {
    margin: 4px 0 0;
    padding: 6px;
    max-width: 100%;
    border-radius: 16px;
    background: rgba(247, 250, 253, 0.9);
    border: 1px solid rgba(218, 228, 238, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  }

  .dropdown-menu a {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 34px 0 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.28;
    white-space: normal;
    overflow-wrap: anywhere;
    color: rgba(22, 30, 42, 0.86);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
  }

  .dropdown-menu a::before {
    content: none;
  }

  .dropdown-menu a::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: 0.28;
    transform: translateY(-50%) rotate(45deg);
  }

  .dropdown-menu a:hover,
  .dropdown-menu a:focus-visible,
  .dropdown-menu a.is-active {
    color: #0f172a;
    background: rgba(234, 244, 252, 0.9);
    border-color: rgba(188, 216, 239, 0.62);
    transform: none;
  }
}

/* Ajustements demandes : onglet Groupe souligne + Contact sans etat actif permanent */
@media (min-width: 992px) {
  .dropdown .dropdown-toggle::after {
    display: block;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #77c2f4, #3d96e8);
    box-shadow: 0 0 14px rgba(117, 184, 234, 0.55);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
  }

  .dropdown:hover .dropdown-toggle::after,
  .dropdown:focus-within .dropdown-toggle::after,
  .dropdown-toggle[aria-expanded="true"]::after,
  .dropdown-toggle.is-active::after {
    transform: scaleX(1);
  }
}

.nav-contact.is-active {
  background: var(--blue);
  color: #ffffff !important;
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(72, 145, 208, 0.2);
}

.nav-contact:active {
  background: #ffffff;
  color: var(--blue) !important;
  border-color: var(--blue);
  box-shadow: 0 15px 28px rgba(72, 145, 208, 0.2);
}

@media (min-width: 992px) {
  .nav-contact.is-active {
    transform: translateY(-50%);
  }

  .nav-contact.is-active:hover {
    transform: translateY(calc(-50% - 1px)) scale(1.015);
  }

  .nav-contact:active {
    transform: translateY(-50%) scale(1.01);
  }
}

@media (max-width: 991px) {
  .nav-contact.is-active {
    transform: none;
  }

  .nav-contact.is-active:hover {
    transform: translateY(-1px) scale(1.015);
  }

  .nav-contact:active {
    transform: translateY(1px) scale(0.99);
  }
}


/* --------------------------------------------------------------------------
   Override final : état actif navbar clean (sans capsule)
   -------------------------------------------------------------------------- */
.dropdown-toggle.is-active,
.nav-link.is-active {
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.dropdown-toggle.is-active::after,
.nav-link.is-active::after {
  transform: scaleX(1) !important;
  opacity: 1 !important;
}

.dropdown-toggle.is-active .dropdown-caret {
  color: var(--blue-strong) !important;
}

/* Correctif final : panneau mobile pleine largeur et sous-menu lisible */
@media (max-width: 991px) {
  .site-header .nav-shell {
    overflow: visible;
  }

  .site-header .nav-shell:has(.main-nav.open) {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(210, 224, 236, 0.96);
    box-shadow:
      0 18px 46px rgba(16, 24, 32, 0.16),
      0 5px 14px rgba(16, 24, 32, 0.08);
  }

  .site-header .main-nav {
    left: 0 !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.96)) !important;
    border-color: rgba(213, 224, 233, 0.92) !important;
  }

  .site-header .main-nav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(117, 184, 234, 0), rgba(35, 140, 234, 0.72), rgba(117, 184, 234, 0));
    pointer-events: none;
  }

  .site-header .nav-links {
    gap: 4px;
  }

  .site-header .nav-link,
  .site-header .dropdown-toggle {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.96rem;
    line-height: 1.2;
    color: rgba(22, 30, 42, 0.88);
  }

  .site-header .nav-link:hover,
  .site-header .nav-link:focus-visible,
  .site-header .dropdown-toggle:hover,
  .site-header .dropdown-toggle:focus-visible,
  .site-header .nav-link.is-active,
  .site-header .dropdown-toggle.is-active {
    background: rgba(240, 247, 253, 0.86) !important;
    color: #0f172a !important;
  }

  .site-header .dropdown-menu {
    position: relative;
    margin: 4px 0 8px;
    padding: 8px;
    border: 1px solid rgba(213, 224, 233, 0.88);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 247, 252, 0.86));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 8px 18px rgba(16, 24, 32, 0.045);
    gap: 4px;
  }

  .site-header .dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    width: 100%;
    padding: 0 38px 0 18px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    line-height: 1.24;
    text-align: left;
  }

  .site-header .dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--blue-strong);
    opacity: 0;
  }

  .site-header .dropdown-menu a:hover,
  .site-header .dropdown-menu a:focus-visible,
  .site-header .dropdown-menu a.is-active {
    background: rgba(231, 243, 252, 0.96);
    border-color: rgba(159, 202, 234, 0.76);
  }

  .site-header .dropdown-menu a:hover::before,
  .site-header .dropdown-menu a:focus-visible::before,
  .site-header .dropdown-menu a.is-active::before {
    opacity: 1;
  }
}
