/* ===== HEADER / NAVBAR ===== */

.navbar {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e8eaf0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar__container {
  width: 100%;
  box-sizing: border-box;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Logo --- */
.navbar__logo {
  flex-shrink: 0;
}

.navbar__logo img {
  width: 103.396px;
  height: 47.001px;
  object-fit: contain;
  display: block;
}

/* --- Nav wrapper --- */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* --- Nav items --- */
.navbar__item {
  position: relative;
}

.navbar__link {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #252338;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: #0086F5;
}

/* --- Flèche dropdown via CSS mask --- */
.navbar__arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: #0086F5;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%230086F5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%230086F5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded="true"] .navbar__arrow {
  transform: rotate(180deg);
}

/* --- Dropdown menu --- */
.dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e8eaf0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 100;
}

.dropdown__menu.is-open {
  display: block;
  animation: fadeDown 0.2s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dropdown__link {
  display: block;
  padding: 10px 20px;
  color: #252338;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown__link:hover {
  background: #F5FAFF;
  color: #0086F5;
}

/* --- CTA Buttons --- */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: flex;
  width: 131px;
  height: 38px;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  font-family: 'Avenir', 'Avenir Next', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn--outline {
  border: 1.5px solid #27289D;
  background: transparent;
  color: #27289D;
}

.btn--solid {
  border: none;
  background: #27289D;
  color: #F5FAFF;
}

/* --- Burger (mobile) --- */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar__burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #252338;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-active span:nth-child(2) { opacity: 0; }
.navbar__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .navbar__container { padding: 0 24px; }
  .navbar__link { padding: 8px 12px; font-size: 15px; }
  .btn { width: 120px; }
}

@media (max-width: 768px) {
  .navbar__burger { display: flex; }

  .navbar__nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e8eaf0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 16px 24px 24px;
  }

  .navbar__nav.is-open { display: flex; }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .navbar__item { width: 100%; }

  .navbar__link {
    padding: 12px 0;
    justify-content: space-between;
    width: 100%;
    font-size: 16px;
  }

  .dropdown__menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-left: 2px solid #0086F5;
    margin-left: 16px;
    padding: 4px 0;
  }

  .navbar__actions {
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    gap: 10px;
  }

  .btn { width: 100%; }
}