/* =============================================================
   CHROME — en-tête, navigation, recherche, pied de page.
   Présent sur toutes les pages.
   ============================================================= */

/* =============================================================
   BARRE D'ANNONCE
   ============================================================= */
.topbar {
  background: var(--c-blue-600);
  color: #fff;
  font-size: var(--t-xs);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 34px;
  padding-block: var(--s-1);
}
.topbar p { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); }
.topbar .ico { opacity: .85; }
/* Le numéro est composable au doigt : sa zone tactile doit tenir toute la
   hauteur de la barre, sinon elle ne fait que la hauteur du texte (19 px). */
.topbar__tel {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding-inline: var(--s-2);
  margin-inline: calc(var(--s-2) * -1);
  border-radius: var(--r-xs);
  color: #fff;
  font-weight: var(--fw-bold);
  text-decoration: none;
}
.topbar__tel:hover { color: var(--c-teal-200); background: rgba(255, 255, 255, .1); }

/* Sous 720 px, l'annonce seule tient : le numéro reste dans l'en-tête. */
@media (max-width: 45rem) {
  .topbar__help { display: none; }
  .topbar__in { justify-content: center; }
  .topbar__note { text-align: center; }
}

/* =============================================================
   BARRE DE MARQUE
   ============================================================= */
.site-head {
  position: relative;
  z-index: var(--z-header);
  background: var(--c-n-025);
}

.brandbar { background: var(--c-n-025); border-bottom: 1px solid var(--border-soft); }
.brandbar__in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 76px;
  padding-block: var(--s-3);
}

.brand { flex: none; display: block; text-decoration: none; }
.brand__img { width: auto; height: 46px; }
.brand__text {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-weight: var(--fw-black);
  color: var(--secondary);
}
@media (max-width: 30rem) { .brand__img { height: 38px; } }

/* ---- Actions ---------------------------------------------------- */
.actions {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
  flex: none;
}
.actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  min-height: var(--tap);
  padding: var(--s-2) var(--s-2);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.actions__item:hover { color: var(--primary); background: var(--primary-soft); }
.actions__label {
  font-size: 10px;
  font-weight: var(--fw-semi);
  letter-spacing: var(--ls-wide);
  white-space: nowrap;
}

.actions__item--mob { display: none; }
.actions__burger { display: none; }

/* ---- Bouton panier ---------------------------------------------- */
.cartbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 62px;
  min-height: var(--tap);
  padding: var(--s-2);
  border-radius: var(--r-sm);
  color: var(--secondary);
  text-decoration: none;
  transition: background var(--dur-2) var(--ease);
}
.cartbtn:hover { background: var(--primary-soft); color: var(--primary); }
.cartbtn__ico { position: relative; display: block; }
.cartbtn__count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.cartbtn__count.is-zero { background: var(--c-n-300); color: #fff; }
.cartbtn__label { font-size: 10px; font-weight: var(--fw-semi); letter-spacing: var(--ls-wide); }

/* =============================================================
   RECHERCHE
   ============================================================= */
.hsearch { position: relative; flex: 1; max-width: 34rem; }
.hsearch__form {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding-left: var(--s-3);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.hsearch__form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--c-teal-050); }
.hsearch__ico { color: var(--text-faint); display: flex; }
.hsearch__input {
  flex: 1;
  min-width: 0;
  min-height: var(--tap);
  border: 0;
  background: transparent;
  font-size: var(--t-base);   /* 16px : sous ce seuil, iOS zoome au focus */
  padding-block: var(--s-2);
}
.hsearch__input:focus { outline: none; }
.hsearch__input::-webkit-search-cancel-button { display: none; }

.hsearch__go {
  flex: none;
  width: 46px;
  min-height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: 0 6px 6px 0;
  background: var(--primary);
  color: var(--on-primary);
  transition: background var(--dur-2) var(--ease);
  align-self: stretch;
}
.hsearch__go:hover { background: var(--primary-hover); }
.hsearch__close { display: none; }

/* ---- Suggestions -------------------------------------------------- */
.hsearch__panel {
  position: absolute;
  top: calc(100% + var(--s-2));
  left: 0; right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--e-3);
  overflow: hidden;
  max-height: min(28rem, 70vh);
  overflow-y: auto;
}
.sug {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
}
.sug:hover, .sug:focus-visible { background: var(--primary-soft); }
.sug__img { width: 44px; height: 44px; object-fit: contain; flex: none; background: var(--bg-alt); border-radius: var(--r-xs); }
.sug__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sug__cat { font-size: 10px; text-transform: uppercase; letter-spacing: var(--ls-wide); color: var(--text-muted); }
.sug__title { font-size: var(--t-sm); font-weight: var(--fw-semi); color: var(--text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug__price { font-size: var(--t-xs); font-weight: var(--fw-bold); color: var(--secondary); white-space: nowrap; }
.hsearch__all {
  display: block;
  padding: var(--s-3);
  text-align: center;
  font-size: var(--t-sm);
  font-weight: var(--fw-bold);
  color: var(--primary);
  text-decoration: none;
  background: var(--bg-alt);
}
.hsearch__none { padding: var(--s-5); margin: 0; font-size: var(--t-sm); color: var(--text-muted); text-align: center; }

/* =============================================================
   BARRE DE NAVIGATION
   ============================================================= */
.navbar { background: var(--c-blue-600); }
.navbar__in { position: relative; }

.nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}
.nav__item { position: relative; display: flex; align-items: center; }

.nav__link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 var(--s-4);
  color: rgba(255, 255, 255, .92);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: var(--fw-semi);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .09); }

/* Élément signature : le filet teal souligne l'entrée active. */
.nav__item.is-current > .nav__link::after,
.nav__item:hover > .nav__link::after {
  content: "";
  position: absolute;
  left: var(--s-3);
  right: var(--s-3);
  bottom: 0;
  height: 3px;
  /* Coiffe du filet de 3 px : le rayon suit l'épaisseur du trait. */
  border-radius: 3px 3px 0 0;
  background: var(--edge-solid);
}
.nav__item.is-current > .nav__link { color: #fff; }

.nav__toggle {
  display: none;
  width: 38px;
  min-height: 46px;
  color: rgba(255, 255, 255, .8);
  align-items: center;
  justify-content: center;
}
.has-sub > .nav__link { padding-right: var(--s-2); }
.has-sub > .nav__toggle { display: flex; }

/* ---- Sous-menus -------------------------------------------------- */
.subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--e-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease), visibility var(--dur-2);
  z-index: 30;
}
/* Ouverture au survol ET au clavier : `:focus-within` couvre la tabulation,
   `aria-expanded` couvre le bouton, `:hover` couvre la souris. */
.nav__item:hover > .subnav,
.nav__item:focus-within > .subnav,
.nav__item.is-open > .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.subnav .nav__link {
  min-height: 40px;
  color: var(--text);
  border-radius: var(--r-sm);
  padding-inline: var(--s-3);
  width: 100%;
}
.subnav .nav__link:hover { background: var(--primary-soft); color: var(--primary); }
.subnav .nav__link::after { display: none !important; }
.subnav .nav__item { display: block; }

/* =============================================================
   EN-TÊTE COLLANT
   La barre bleue seule reste : garder tout l'en-tête volerait
   150 px de hauteur utile sur un téléphone.
   ============================================================= */
.site-head.is-stuck .navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  box-shadow: var(--e-2);
  animation: ste-drop var(--dur-2) var(--ease-out);
}
@keyframes ste-drop { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-head.is-stuck .navbar { animation: none; }
}

/* =============================================================
   MOBILE
   ============================================================= */
@media (max-width: 61.99rem) {
  .brandbar__in { min-height: 64px; gap: var(--s-3); flex-wrap: wrap; }

  /* La recherche descend sur sa propre ligne : à 360 px, logo + recherche
     + 3 actions sur une ligne donnent un champ de 40 px, inutilisable. */
  .hsearch {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }

  .actions__item--desk { display: none; }
  .actions__burger { display: flex; }

  .navbar { display: none; }
  .navbar.is-open {
    display: block;
    position: fixed;
    inset: var(--header-h, 110px) 0 0;
    z-index: var(--z-drawer);
    background: var(--c-blue-700);
    overflow-y: auto;
    padding-bottom: var(--s-8);
  }
  .navbar.is-open .nav__list { flex-direction: column; align-items: stretch; }
  .navbar.is-open .nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
  .navbar.is-open .nav__link { flex: 1; min-height: 52px; }
  .navbar.is-open .nav__item.is-current > .nav__link::after,
  .navbar.is-open .nav__item:hover > .nav__link::after { display: none; }
  .navbar.is-open .nav__item.is-current > .nav__link { background: rgba(255,255,255,.1); }

  /* Le sous-menu se déplie dans le flux, il ne flotte pas. */
  .navbar.is-open .subnav {
    position: static;
    display: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, .16);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: var(--s-2) var(--s-2) var(--s-3);
  }
  .navbar.is-open .nav__item.is-open > .subnav { display: block; }
  .navbar.is-open .subnav .nav__link { color: rgba(255,255,255,.86); min-height: 44px; }
  .navbar.is-open .subnav .nav__link:hover { background: rgba(255,255,255,.1); color: #fff; }

  body.has-nav { overflow: hidden; }

  /* Sur mobile, l'en-tête collant garde la barre de marque : sans elle,
     ni logo ni panier une fois la page défilée. */
  .site-head.is-stuck .navbar { position: static; box-shadow: none; animation: none; }
}

@media (max-width: 30rem) {
  .actions__item, .cartbtn { min-width: 48px; }
  .actions__label, .cartbtn__label { display: none; }
}

/* =============================================================
   PIED DE PAGE
   ============================================================= */
.site-foot {
  background: var(--c-blue-700);
  color: var(--on-deep-muted);
  font-size: var(--t-sm);
  margin-top: var(--section-y);
}
.site-foot__grid {
  display: grid;
  gap: var(--s-7) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  padding-block: var(--s-9) var(--s-8);
}
@media (min-width: 64rem) {
  .site-foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; }
}

.foot-brand .brand__img { height: 52px; }
.foot-brand__text { margin: var(--s-4) 0 var(--s-5); max-width: 30ch; line-height: 1.6; }

.socials { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.socials li { margin: 0; }
.socials__link {
  width: var(--tap); height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background var(--dur-2) var(--ease);
}
.socials__link:hover { background: var(--primary); color: #fff; }

.foot-col__title {
  font-size: var(--t-sm);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--s-4);
  letter-spacing: var(--ls-snug);
}
.foot-col__list { list-style: none; margin: 0; padding: 0; }
.foot-col__list li { margin-bottom: var(--s-1); }
.foot-col__list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--on-deep-muted);
  text-decoration: none;
  transition: color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.foot-col__list a:hover { color: #fff; transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .foot-col__list a:hover { transform: none; } }

.foot-contact__list { list-style: none; margin: 0; padding: 0; }
.foot-contact__list li {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  line-height: 1.55;
}
.foot-contact__list .ico { flex: none; margin-top: 3px; color: var(--c-teal-300); }
.foot-contact__list a { color: var(--on-deep-muted); text-decoration: none; }
.foot-contact__list a:hover { color: #fff; }

/* ---- Barre du bas ------------------------------------------------- */
.site-foot__bar { border-top: 1px solid rgba(255, 255, 255, .12); background: var(--c-blue-800); }
.site-foot__bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding-block: var(--s-4);
}
.site-foot__copy { margin: 0; font-size: var(--t-xs); }

.paymarks { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.paymarks__label { font-size: var(--t-xs); color: var(--on-deep-muted); }
.paymarks__list { display: flex; gap: var(--s-2); list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.paymark {
  margin: 0;
  padding: 5px var(--s-3);
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, .93);
  color: var(--c-blue-800);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-wide);
  line-height: 1.3;
}
