/* Header, mega menus, recherche, drawer mobile. */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(251, 248, 243, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

/* Header sur une ligne : logo rond, 5 hubs, recherche. */
.primary-header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 230px;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  min-height: 98px;
}

.brand-logo {
  display: block;
  width: 78px;
  height: 78px;
  overflow: hidden;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
}
/* Le PNG source contient un damier de transparence APLATI dans les pixels :
   l'artwork circulaire n'occupe que le rayon 0-542 px sur 627. On zoome de
   627/542 = 1,16 pour que cet anneau tombe hors du cercle de découpe. */
.brand-logo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }

.brand-name {
  display: block;
  color: var(--plum-dark);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1;
  white-space: nowrap;
}

.desktop-nav { align-self: stretch; border: 0; }
.desktop-nav-inner { display: flex; justify-content: flex-start; align-items: stretch; height: 100%; min-height: 49px; }

.nav-hub { position: static; display: flex; align-items: stretch; }
.nav-hub > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline: clamp(9px, 1.25vw, 19px);
  font-size: 11px;
  white-space: nowrap;
}
.nav-hub > a::after { content: "⌄"; margin-top: -3px; color: var(--rose); font-family: var(--latin); font-size: 11px; }
.nav-hub:hover > a,
.nav-hub:focus-within > a { color: var(--plum); background: rgba(234, 208, 213, .25); }

.mega-menu {
  position: absolute;
  visibility: hidden;
  top: 100%;
  right: 0;
  left: 0;
  opacity: 0;
  transform: translateY(-5px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 45px rgba(47, 38, 52, .1);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-hub:hover .mega-menu,
.nav-hub:focus-within .mega-menu { visibility: visible; opacity: 1; transform: translateY(0); }

.mega-inner { display: grid; grid-template-columns: .9fr 1.45fr .65fr; gap: 54px; padding: 37px 0 40px; }
.mega-intro { padding-right: 35px; border-right: 1px solid var(--line); }
.mega-intro .eyebrow { margin-bottom: 9px; }
.mega-intro strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.35; }
.mega-intro p { margin: 10px 0 17px; color: var(--muted); font-size: 12px; }
.mega-intro a { color: var(--plum); font-family: var(--latin); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 38px; align-content: start; }
.mega-links a {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 47px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 15px;
}
.mega-links span { color: var(--champagne); font-family: var(--latin); font-size: 9px; }

.mega-feature { position: relative; min-height: 164px; overflow: hidden; }
.mega-feature img { height: 100%; }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(47, 38, 52, .72), transparent 70%); }
.mega-feature strong {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 15px;
  left: 17px;
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

/* Recherche desktop */
.header-search {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.header-search:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(86, 67, 95, .08); }
.header-search input {
  min-width: 0;
  width: 100%;
  height: 100%;
  padding: 0 4px 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 12px var(--sans);
}
.header-search input::placeholder { color: #9a929a; }
.header-search button {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--plum);
  cursor: pointer;
}
.header-search svg,
.mobile-search-button svg,
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.mobile-search-button,
.primary-header .menu-toggle,
.mobile-search-panel { display: none; }

.menu-toggle,
.mobile-drawer,
.drawer-overlay { display: none; }
