/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  height: 120px;
  width: 100%;
  background: #fff;
  z-index: 10000;
}

nav {
  width: 80%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 1.875vw, 36px);
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar input {
  padding-right: 30px;
  padding: 0.5em;
}
.search-bar i {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.logo-scroll {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 60px;
}

.access-icon {
  color: var(--pink);
  font-size: 30px;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.access-icon:hover {
  color: var(--blue);
  transform: scale(1.1);
}

/* ============ MODALE ============ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  height: 100%;
  background: white;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  z-index: 2000;
  padding: 20px;
}
.modal-left  { left: 0;  width: 20%; }
.modal-right { right: 0; width: 20%; }
.modal-center {
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: auto;
  border: 1px solid #ccc;
  padding: 1rem;
  background: #fff;
}
.show { display: block !important; }

/* ============ HAMBURGER ============ */
.hamburger-wrapper {
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
}

/* Barres */
.hamburger span {
  display: block;
  height: 3px;
  background: var(--pink); /* rose par défaut */
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hover = couleur bleue */
.hamburger:hover span {
  background: var(--blue);
}

/* Animation croix */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none;
  position: absolute;
  top: 60px; /* sous le hamburger */
  width: 220px;
  background: #fff;
  flex-direction: column;
  padding: 1em;
  gap: 1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000;
}
.mobile-menu a,
.mobile-menu button {
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.mobile-menu.active {
  display: flex;
}