/* Accaven — en-tête (Home.dc.html, HomeMobile.dc.html, MobileMenu.dc.html).
   Desktop >= 1200 px : logo, navigation, recherche, favoris, panier.
   < 1200 px : menu, logo, recherche, favoris, panier (menu latéral). */

.acc-topbar, .acc-header, .acc-drawer { font-family: var(--acc-font-body); color: var(--acc-navy); line-height: 1.4; }
.acc-topbar *, .acc-header *, .acc-drawer * { box-sizing: border-box; }
.acc-header a, .acc-drawer a, .acc-topbar a { color: var(--acc-navy); text-decoration: none; }
.acc-header a:hover, .acc-drawer a:hover { color: var(--acc-navy-hover); }
.acc-header :focus-visible, .acc-drawer :focus-visible, .acc-topbar :focus-visible { outline: 2px solid var(--acc-navy); outline-offset: 2px; }

/* Bandeau */
.acc-topbar { background: var(--acc-navy); color: var(--acc-white); font-size: 12px; }
.acc-topbar__inner { min-height: var(--acc-topbar-h); display: flex; align-items: center; justify-content: center; gap: 8px 24px; }
.acc-topbar__long, .acc-topbar__phone { display: none; }
.acc-topbar .acc-topbar__phone { color: var(--acc-white); font-family: var(--acc-font-head); font-weight: 600; font-size: 12px; }
@media (min-width: 768px) {
  .acc-topbar { font-size: 13px; }
  .acc-topbar__inner { justify-content: space-between; flex-wrap: wrap; }
  .acc-topbar__short { display: none; }
  .acc-topbar__long, .acc-topbar__phone { display: inline; }
}

/* Barre principale (collante). #page est en overflow:hidden chez TheGem, ce qui empêche
   position:sticky ; overflow:clip coupe pareil sans créer de conteneur de défilement. */
.acc-new-header #page { overflow: clip; }
.acc-header { position: sticky; top: 0; z-index: 100; background: var(--acc-white); border-bottom: 1px solid var(--acc-border); }
.admin-bar .acc-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .acc-header { top: 32px; } }
@media (max-width: 600px) { .admin-bar .acc-header { top: 0; } }

.acc-header__inner { min-height: var(--acc-header-h); display: flex; align-items: center; padding-left: 6px; padding-right: 6px; }
.acc-header__logo { display: flex; margin: 0 auto 0 4px; }
.acc-logo { display: block; width: auto; max-width: none; }
.acc-logo--desktop { height: 32px; display: none; }
.acc-logo--mobile { height: 24px; }
.acc-header__actions { display: flex; align-items: center; gap: 0; }

.acc-header .acc-icon-btn, .acc-drawer .acc-icon-btn {
  position: relative; width: 44px; height: 44px; min-width: 44px; padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--acc-radius-btn); background: transparent; box-shadow: none;
  color: var(--acc-navy); line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.acc-icon-btn svg { display: block; }

.acc-cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--acc-radius-chip); background: var(--acc-lime); color: var(--acc-navy);
  font-family: var(--acc-font-head); font-weight: 700; font-size: 11px; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 1px var(--acc-navy);
}
.acc-cart-count[hidden] { display: none; }

.acc-nav, .acc-search--header { display: none; }

@media (min-width: 1200px) {
  .acc-header__inner { padding-left: var(--acc-gutter); padding-right: var(--acc-gutter); justify-content: space-between; gap: 8px 28px; }
  .acc-header__menu, .acc-header__search, .acc-logo--mobile { display: none !important; }
  .acc-logo--desktop { display: block; }
  .acc-header__logo { margin: 0; }
  .acc-header__actions { gap: 4px; }

  .acc-nav {
    display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap;
    font-family: var(--acc-font-head); font-weight: 600; font-size: 13px; letter-spacing: .02em; text-transform: uppercase;
  }
  .acc-nav .acc-nav__link { padding: 8px 0; line-height: 1.4; }
  .acc-nav .acc-nav__link[aria-current="page"] { box-shadow: inset 0 -10px 0 var(--acc-lime); }
  .acc-nav .acc-nav__link.is-promo { color: var(--acc-red); }

  .acc-search--header { display: block; margin: 0 8px 0 0; }
}
@media (min-width: 1200px) and (max-width: 1359px) {
  .acc-nav { gap: 4px 18px; font-size: 12px; }
  .acc-header .acc-search--header .acc-search__field { width: 204px; }
}

/* Champ de recherche (en-tête et menu mobile) */
.acc-search { margin: 0; }
.acc-search .acc-search__field {
  height: 40px; width: 220px; padding: 0 14px; margin: 0;
  display: flex; align-items: center; gap: 8px;
  border-radius: var(--acc-radius-chip); background: var(--acc-surface); color: var(--acc-navy); cursor: text;
}
.acc-search .acc-search__field svg { flex-shrink: 0; }
.acc-search input[type="search"] {
  flex-grow: 1; min-width: 0; width: auto; height: 38px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
  color: var(--acc-navy); font-family: var(--acc-font-body); font-size: 14px; line-height: normal;
  -webkit-appearance: none; appearance: none;
}
.acc-search input[type="search"]::placeholder { color: var(--acc-muted); opacity: 1; }
.acc-search input[type="search"]:focus { outline: none; }
.acc-search .acc-search__field:focus-within { outline: 2px solid var(--acc-navy); outline-offset: 2px; }
.acc-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* Menu mobile */
.acc-drawer { position: fixed; inset: 0; z-index: 100000; }
.acc-drawer[hidden] { display: none; }
.acc-drawer__overlay { position: absolute; inset: 0; background: var(--acc-overlay); opacity: 0; transition: opacity var(--acc-ease); }
.acc-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: 86%; max-width: 420px;
  display: flex; flex-direction: column; background: var(--acc-white);
  box-shadow: 8px 0 32px rgba(35, 33, 47, .18);
  transform: translateX(-100%); transition: transform var(--acc-ease);
}
.acc-drawer.is-open .acc-drawer__overlay { opacity: 1; }
.acc-drawer.is-open .acc-drawer__panel { transform: none; }
.acc-drawer__panel:focus { outline: none; }

.acc-drawer__head { flex-shrink: 0; height: 56px; padding: 0 6px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--acc-border); }
.acc-drawer__body { flex-grow: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }

.acc-search--drawer { padding: 12px 16px; }
.acc-search--drawer .acc-search__field { width: auto; height: 44px; }
.acc-search--drawer input[type="search"] { height: 42px; font-size: 16px; }

.acc-drawer__nav { display: flex; flex-direction: column; padding: 0 16px; font-family: var(--acc-font-head); font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.acc-drawer .acc-drawer__top {
  width: 100%; height: 52px; padding: 0; margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  border: 0; border-bottom: 1px solid var(--acc-border); border-radius: 0; background: transparent; box-shadow: none;
  color: var(--acc-navy); font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer;
}
.acc-drawer .acc-drawer__top.is-promo { color: var(--acc-red); }
.acc-drawer__top .is-current { box-shadow: inset 0 -8px 0 var(--acc-lime); }
.acc-drawer__toggle svg { flex-shrink: 0; transition: transform var(--acc-ease); }
.acc-drawer__toggle[aria-expanded="true"] { border-bottom-color: transparent; }
.acc-drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.acc-drawer__sub { display: flex; flex-direction: column; padding: 0 0 8px 12px; border-bottom: 1px solid var(--acc-border); font-family: var(--acc-font-body); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; }
.acc-drawer__sub[hidden] { display: none; }
.acc-drawer__sub a { min-height: 44px; display: flex; align-items: center; }
.acc-drawer__sub .acc-drawer__all { font-weight: 600; }

.acc-drawer__links { display: flex; flex-direction: column; padding: 8px 16px; font-size: 15px; }
.acc-drawer__links a { min-height: 48px; display: flex; align-items: center; gap: 12px; }

.acc-drawer__foot { margin-top: auto; padding: 16px; background: var(--acc-surface); display: flex; flex-direction: column; gap: 4px; }
.acc-drawer .acc-drawer__phone { min-height: 44px; display: flex; align-items: center; font-family: var(--acc-font-head); font-weight: 600; font-size: 15px; }
.acc-drawer__foot span { font-size: 13px; color: var(--acc-muted); }

html.acc-scroll-lock, html.acc-scroll-lock body { overflow: hidden; }

/* Retour en haut (accaven-back-to-top.md) */
.acc-new-header .scroll-top-button { display: none !important; }
.acc-to-top {
  position: fixed; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900;
  width: 44px; height: 44px; padding: 0; margin: 0; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--acc-border); border-radius: 999px; background: var(--acc-white); color: var(--acc-navy);
  box-shadow: 0 4px 14px rgba(60, 57, 80, .16); cursor: pointer;
  opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none;
  transition: opacity 180ms ease-in, transform 180ms ease-in, visibility 0s linear 180ms;
}
.acc-to-top.is-visible { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 0s; }
.acc-to-top:focus-visible { outline: 2px solid var(--acc-navy); outline-offset: 2px; }
@media (hover: hover) { .acc-to-top:hover { background: var(--acc-surface); } }
@media (min-width: 768px) { .acc-to-top { right: 24px; bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .acc-to-top, .acc-to-top.is-visible { transform: none; } }
