/* ALEAU — barre d'annonce, header, menu mobile, footer, bouton d'aide */

/* Barre d'annonce */
.announce {
  position: relative;
  background: var(--bar);
  color: #f2f2f2;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 38px;
  padding: 6px 48px;
  text-align: center;
}
.announce__inner .icon { width: 18px; height: 18px; opacity: 0.9; }
.announce__dot { opacity: 0.45; }
.announce__close {
  position: absolute;
  right: 10px; top: 50%;
  translate: 0 -50%;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--pill);
  color: #fff;
}
.announce__close:hover { background: rgb(255 255 255 / 0.12); }
.announce__close .icon { width: 16px; height: 16px; }
.announce[hidden] { display: none; }

/* Header sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: box-shadow var(--t) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo svg { width: 26px; height: 30px; }
.logo__tag { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: -0.005em; margin-top: 1px; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--pill);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--t-fast);
}
.nav__link:hover { background: var(--soft); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}
.nav__link .icon { width: 14px; height: 14px; transition: rotate var(--t-fast) var(--ease); }

.nav__item--drop { position: relative; }
.nav__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 300px;
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.nav__item--drop.is-open .nav__drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__item--drop.is-open > .nav__link .icon { rotate: 180deg; }
.drop-link {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.drop-link:hover { background: var(--soft); }
.drop-link img {
  width: 52px; height: 52px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--soft);
}
.drop-link strong { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.drop-link span { font-size: 0.8rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 2px; justify-self: end; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute;
  top: 3px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.cart-count.is-bump { animation: bump 420ms var(--ease); }
@keyframes bump { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }

.menu-toggle { display: none; }

/* Menu mobile */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 32px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mobile-nav__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.mobile-nav__list a .icon { width: 20px; height: 20px; color: var(--muted); }
.mobile-nav__sub a { font-size: 1.05rem; font-weight: 500; padding-left: 18px; color: var(--ink-2); }

/* Bouton d'aide flottant */
.help-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgb(0 0 0 / 0.05);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.help-fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.help-fab__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-wa);
  color: #fff;
}
.help-fab__icon .icon { width: 20px; height: 20px; }
body.has-sticky-buy .help-fab { bottom: 92px; }

/* Footer */
.site-footer { margin-top: clamp(24px, 4vw, 48px); }
.footer__main {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px 48px;
  padding-block: 28px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand svg { width: 36px; height: 44px; }
.footer__brand strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px; font-size: 0.88rem; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__social { display: flex; gap: 6px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background var(--t-fast); }
.footer__social a:hover { background: var(--soft); }
.footer__social .icon { width: 20px; height: 20px; }
.footer__pay { display: flex; align-items: center; gap: 14px; }
.pay-visa { font-size: 1.05rem; font-weight: 800; font-style: italic; color: #1a1f71; letter-spacing: -0.02em; }
.pay-mc { display: flex; }
.pay-mc i { width: 18px; height: 18px; border-radius: 50%; background: #eb001b; }
.pay-mc i + i { margin-left: -7px; background: #f79e1b; mix-blend-mode: multiply; }
.pay-pp { font-size: 0.95rem; font-weight: 800; font-style: italic; color: #003087; letter-spacing: -0.02em; }
.pay-pp span { color: #009cde; }
.footer__pay .icon { width: 22px; height: 22px; }
.footer__legal {
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}
.footer__legal a:hover { color: var(--ink); }
.footer__legal span { margin-inline: 8px; opacity: 0.5; }

/* Responsive */
@media (max-width: 1080px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__links { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions .account-btn { display: none; }
  .logo { grid-column: 2; justify-self: center; }
  .menu-toggle { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 3; }
}

@media (max-width: 640px) {
  .announce { font-size: 0.72rem; }
  .announce__inner .icon { display: none; }
  .announce__extra,
  .announce__more { display: none; }
  .footer__main { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .footer__links { justify-content: center; gap: 8px 24px; }
  .help-fab { padding: 7px; }
  .help-fab__label { display: none; }
}
