body {
   overflow-x: hidden;
}

.hero-wave {
  line-height: 0;
  font-size: 0;
}

.hero-wave__svg {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(2px);
}

#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  background-color: transparent;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

#main-nav.nav-scrolled,
body.page-inner #main-nav {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 5px 5px -5px rgb(0 0 0 / 0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

body.page-inner #main-nav .nav-link {
  color: #0a0f1c;
}

body.page-inner #main-nav .nav-link:hover {
  color: var(--primary);
}

body.page-inner #main-nav .menu-toggle {
  background-color: #f0f7ff;
  border-color: rgba(8, 75, 131, 0.15);
  color: #084b83;
}

/* Bouton menu mobile */
.menu-toggle {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#main-nav.nav-scrolled .menu-toggle,
#main-nav.is-open .menu-toggle {
  background-color: #f0f7ff;
  border-color: rgba(8, 75, 131, 0.15);
  color: #084b83;
}

.menu-toggle__icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.menu-toggle__icon--close {
  display: none;
}

#main-nav.is-open .menu-toggle__icon--open {
  display: none;
}

#main-nav.is-open .menu-toggle__icon--close {
  display: block;
}

/* Panneau menu mobile */
.mobile-menu {
  display: none;
  margin-top: 0.5rem;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid rgba(8, 75, 131, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

#main-nav.is-open .mobile-menu {
  display: block;
}

.mobile-menu__link {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0a0f1c;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-menu__link:hover {
  background-color: #f0f7ff;
  color: #084b83;
}

/* Champs formulaire (CSS pur — non supprimé au build Tailwind) */
.input-field,
.select-field,
.textarea-field {
  width: 100%;
  border-radius: 0.625rem;
  border: 1px solid #e5e7eb;
  background-color: #fff;
  padding: 0.75rem 1rem;
  color: #0a0f1c;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: #084b83;
  outline: none;
  box-shadow: 0 0 0 2px rgba(8, 75, 131, 0.35);
}

.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23084B83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.75rem;
}

.textarea-field {
  resize: vertical;
  min-height: 7rem;
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 2px;
  width: 0;
  transform: translateX(-50%);
  background-color: #FF8C42;
  transition: width 0.3s ease;
}


/* Custom Checkbox */
.custom-checkbox {
  padding-left: 30px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #0a0f1c;
}

/* Cache la checkbox réelle */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 18px;
  width: 18px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

/* La case personnalisée */
.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: none;
  border: 2px solid #084b83;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Le "tick" qui apparaît quand la checkbox est cochée */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.underline {
  text-decoration: underline;
}

/* Quand la checkbox est cochée, change la couleur de fond */
.custom-checkbox input[type="checkbox"]:checked~.checkmark {
  background-color: #084b83;
}

/* Affiche le "tick" */
.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}



.nav-link:hover::after {
  width: 100%;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #edf4ff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    to bottom,
    #0b5aa2,
    #084b83
  );
  border-radius: 9999px;
  border: 2px solid #edf4ff;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    #0a4f8f,
    #063a66
  );
}