/* AI Destock — paquet css généré par build/bundle-assets.mjs — NE PAS ÉDITER À LA MAIN.
 * Sources (ordre de cascade préservé) : ag-layout.css · aehdr.css · ag-destockage.css */

/* ═══ ag-layout.css ═══ */
/* ===========================================================================
   AI Destock — ag-layout.css
   Correctif de finition : conteneur unique 1280, grille produits homogène,
   anti-débordement horizontal, footer/header sombres stables, étoiles nettes.
   CHARGÉ EN DERNIER (après premium-uplift/conv/neon) → remporte la cascade.
   =========================================================================== */

:root {
  --ag-container: 1280px;   /* conteneur unique. header/footer-bg : source = premium.css :root */
}

/* ---------------------------------------------------------------------------
   1. CONTENEUR UNIQUE — 1280 / padding-inline 24 (16 en mobile)
   Toutes les largeurs divergentes (1080/1140/1180/1200/1240) ramenées à 1280.
   Les sections à fond pleine largeur gardent leur fond ; seul le CONTENU est borné.
   --------------------------------------------------------------------------- */
.container,
.ag-promo,
.ag-stickycart__inner,
.ag-reassurance__inner,
.ag-categories,
.ag-xsell__in,
.ag-finder,
.ag-recent,
.ag-fres__in,
.ag-spotlight {
  max-width: var(--ag-container) !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
}

/* Bootstrap .container : neutraliser les paliers 540/720/960/1140 → 1280 fluide */
@media (min-width: 1200px) {
  .container { width: 100% !important; max-width: var(--ag-container) !important; }
}

/* Paddings en vw (asymétrie + amplification) → padding fixe symétrique */
.ag-reassurance__inner,
.ag-categories { padding-inline: 24px !important; }
.ag-cta { padding-inline: 24px !important; }

@media (max-width: 767px) {
  .container,
  .ag-promo,
  .ag-stickycart__inner,
  .ag-reassurance__inner,
  .ag-categories,
  .ag-xsell__in,
  .ag-finder,
  .ag-recent { padding-inline: 16px !important; }
}

/* ---------------------------------------------------------------------------
   2. ANTI-DÉBORDEMENT HORIZONTAL (zéro scrollbar H)
   Sources : .carousel 100vw/-50vw (theme), featured -5vw (premium mobile).
   --------------------------------------------------------------------------- */
html, body { overflow-x: clip; }

.carousel {
  left: auto !important;
  width: 100% !important;
  margin-left: 0 !important;
  padding-bottom: .5rem;
}

/* ---------------------------------------------------------------------------
   3. GRILLE PRODUITS — source unique. La carte géante (premium-uplift) a été
   RETIRÉE à la source ; plus rien ne force le flex → grille sans !important
   (ag-layout charge après theme.css classic qui n'a pas de !important ici).
   --------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0;
  justify-content: stretch;
}
.products > * {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.product-miniature { height: 100%; }

/* Responsive : mêmes gouttières, 4 → 3 → 2 → 1 */
@media (max-width: 1199px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .products { grid-template-columns: 1fr; } }

/* Neutralise le carrousel mobile featured (flex scroll + margin -5vw = overflow) */
@media (max-width: 767px) {
  .page-home .featured-products .products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    overflow-x: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    scroll-snap-type: none !important;
  }
  .page-home .featured-products .products > * {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: none !important;
  }
}
@media (max-width: 575px) {
  .page-home .featured-products .products { grid-template-columns: 1fr !important; }
}

/* ---------------------------------------------------------------------------
   4. RYTHME VERTICAL uniforme entre sections
   --------------------------------------------------------------------------- */
.ag-promo,
.ag-reassurance,
.ag-categories,
.featured-products,
.ag-newproducts,
.ag-finder,
.ag-cta { padding-block: 64px; }
@media (max-width: 767px) {
  .ag-promo,
  .ag-reassurance,
  .ag-categories,
  .featured-products,
  .ag-newproducts,
  .ag-finder,
  .ag-cta { padding-block: 40px; }
}

/* ---------------------------------------------------------------------------
   5. HEADER — recherche centrée (max 560) + séparation barre ↔ nav ≈ 33px
   (Le fond est déjà sur --ag-header-bg ; on ne touche qu'au layout.)
   --------------------------------------------------------------------------- */
#header .header-top #search_widget,
#header .header-top .search-widget,
#header .header-top .ag-search {
  max-width: 560px;
  margin-inline: auto;
  width: 100%;
}
#header .header-nav { margin-top: 33px; }
@media (max-width: 991px) { #header .header-nav { margin-top: 16px; } }

/* ---------------------------------------------------------------------------
   6. FOOTER — fond sombre STABLE (remplace var(--ag-black)) + logos paiement
   --------------------------------------------------------------------------- */
#footer { background: var(--ag-footer-bg, #EFEBE2) !important; }

.ag-payments { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style: none; margin: 1.1rem 0 0; padding: 0; }
.ag-payments__item { line-height: 0; }
.ag-payments svg { display: block; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* ---------------------------------------------------------------------------
   7. VIGNETTES — étoiles nettes (retire tout filtre qui ternit/floute l'or)
   --------------------------------------------------------------------------- */
.ag-stars span.on { color: var(--ag-gold) !important; }
.star-content div.star-on,
.star-content div.star-hover { filter: none !important; }

/* ---------------------------------------------------------------------------
   8. MEGA MENU — vignettes de catégories visibles.
   (#header sticky défini une seule fois dans premium.css ; doublon retiré ici.
    Fermeture au scroll = ag-finish.js.)
   --------------------------------------------------------------------------- */
/* Le passage en .ag-scrolled ne change QUE le fond/ombre, jamais la hauteur : */
#header.ag-scrolled { padding-block: inherit !important; }
.ag-mega img,
.ag-mega .ag-mega__thumb,
.ag-mega picture { display: block !important; opacity: 1 !important; visibility: visible !important; }

/* ---------------------------------------------------------------------------
   9. CROSS-SELL « souvent achetés ensemble » — contraste AA (clair + sombre)
   --------------------------------------------------------------------------- */
.ag-xsell,
.ag-xsell__in,
.ag-xsell__title,
.ag-xsell h2,
.ag-xsell h3,
.ag-xsell .product-title,
.ag-xsell a { color: var(--ag-ink) !important; }
.ag-xsell .price,
.ag-xsell .ag-price { color: var(--ag-ink) !important; font-weight: 600; }
html.ag-dark .ag-xsell,
html.ag-dark .ag-xsell__in,
html.ag-dark .ag-xsell__title,
html.ag-dark .ag-xsell h2,
html.ag-dark .ag-xsell h3,
html.ag-dark .ag-xsell .product-title,
html.ag-dark .ag-xsell a { color: #ececf0 !important; }
html.ag-dark .ag-xsell .price,
html.ag-dark .ag-xsell .ag-price { color: #ffffff !important; }

/* ---------------------------------------------------------------------------
   10. MÉGA-MENU premium : vignettes de sous-catégories + bloc mis en avant
   (le CSS .ag-mm-feat/.ag-mm-thumb existe déjà mais était display:none)
   --------------------------------------------------------------------------- */
.ag-mega__head { display: flex; align-items: center; gap: .6rem; }
.ag-mega .ag-mm-thumb { flex: 0 0 34px; width: 34px; height: 34px; margin: 0; border-color: rgba(255,255,255,.14); }
.ag-mega .ag-mm-feat { display: block; }
.ag-mega .ag-mm-feat__cap b { color: #fff; }
/* AA : libellés cross-sell « souvent achetés ensemble » en mode sombre (contraste renforcé) */
html.ag-dark .ag-xsell .product-title,
html.ag-dark .ag-xsell .product-title a,
html.ag-dark .ag-xsell a { color: #f3f3f6 !important; }
html.ag-dark .ag-xsell .regular-price { color: #c7c7cf !important; }
/* Touch targets ≥ 44px sur les actions carte + nav mobile */
@media (max-width: 767px) {
  .ag-navm__toggle, .ag-navm__link, .ag-navm__sub { min-height: 44px; display: flex; align-items: center; }
  .product-miniature .btn, .product-miniature .add-to-cart { min-height: 44px; }
}

/* ---------------------------------------------------------------------------
   11. SWATCHES COULEUR sur la carte produit — toujours visibles (pas au survol)
   --------------------------------------------------------------------------- */
.ag-card-swatches { display: flex; gap: 7px; margin: 10px 0 2px; flex-wrap: wrap; }
.ag-card-swatch {
  /* 24px : 18px était sous la cible tactile minimale WCAG 2.5.8 (relevé Site Doctor). */
  width: 24px; height: 24px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 1px 2px rgba(0,0,0,.35);
  background-size: cover; background-position: center; display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ag-card-swatch:hover, .ag-card-swatch:focus-visible {
  transform: scale(1.15);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 0 2px var(--ag-gold);
  outline: none;
}
/* Touch : au moins 24px de cible cliquable via padding transparent */
@media (max-width: 767px) { .ag-card-swatches { gap: 10px; } .ag-card-swatch { width: 24px; height: 24px; } }

/* ---------------------------------------------------------------------------
   12. AVIS (productcomments) — retirer la bande blanche par défaut sur fond sombre.
   Cause : .product-list-reviews a background:rgba(255,255,255,.5) → bande grise.
   --------------------------------------------------------------------------- */
.product-list-reviews { background: transparent !important; padding: 0 !important; }
.product-miniature .product-list-reviews {
  /* Le CSS du module cœur pose les étoiles en ABSOLU au bas de la photo (voile pensé pour
     d'autres thèmes) : sur nos photos claires, étoiles peu lisibles posées sur l'image
     (relevé du tour du 14/08). On les rend au flux, sous l'image, avec le reste du texte. */
  position: static !important;
  width: auto !important;
  background: none !important;
  padding: 0 !important;
  margin: 8px 0 0; display: flex; align-items: center; gap: 6px; justify-content: center;
}
.ag-reviews-summary { margin: 4px 0 14px; display: flex; align-items: center; gap: 8px; }
.ag-reviews-summary .product-list-reviews { margin: 0; }
/* Sur la fiche, displayProductAdditionalInfo agrège aussi le partage social (déjà présent
   plus bas) → on ne garde que la note productcomments près du titre. */
.ag-reviews-summary .social-sharing { display: none !important; }
.ag-reviews-summary .product-comments-additional-info { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; background: transparent; }
.ag-reviews-summary .product-comments-additional-info .comments_note { display: flex; align-items: center; gap: 8px; }
.ag-reviews-summary a { color: var(--ag-rouge-texte,#A61E28); font-size: .85rem; }
.comments-nb { color: #b8b8c0; font-size: .82rem; }
.grade-stars .star, .grade-stars svg { color: var(--ag-gold) !important; }

/* ---------------------------------------------------------------------------
   13. ONGLETS PRODUITS (Populaires / Nouveautés / Promo)
   --------------------------------------------------------------------------- */
.ag-tabs { max-width: var(--ag-container) !important; margin-inline: auto !important; padding-inline: 24px !important; padding-block: 64px; }
.ag-tabs__nav { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 28px; }
.ag-tab {
  appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: #d6d6de; font: 600 .92rem/1 var(--ag-head, sans-serif); letter-spacing: .04em;
  padding: 11px 22px; border-radius: 999px; cursor: pointer; min-height: 44px;
  transition: color .2s, border-color .2s, background .2s;
}
.ag-tab:hover, .ag-tab:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--ag-gold) 55%, transparent); outline: none; }
.ag-tab.is-active { color: var(--ag-btn-ink, #0a0a0c); background: var(--ag-gold); border-color: var(--ag-gold); }
.ag-tabs__panel[hidden] { display: none; }
.ag-tabs__panel .products { margin-top: 0; }

@media (max-width: 767px) { .ag-tabs { padding-block: 40px; } .ag-tab { padding: 10px 16px; font-size: .85rem; } }

/* ---------------------------------------------------------------------------
   14. BANDEAU MARQUES (wordmarks typographiques)
   --------------------------------------------------------------------------- */
.ag-brands { max-width: var(--ag-container) !important; margin-inline: auto !important; padding-inline: 24px !important; padding-block: 40px; }
.ag-section-title--sm { font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: #9a9aa2; margin-bottom: 22px; }
.ag-brands__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 44px; }
.ag-brands__item { line-height: 1; }
.ag-brands__mark {
  font: 800 1.25rem/1 var(--ag-head, sans-serif); letter-spacing: .16em; text-transform: uppercase;
  color: #6f6f78; opacity: .8; transition: color .25s, opacity .25s;
  -webkit-text-stroke: 0;
}
.ag-brands__item:hover .ag-brands__mark { color: var(--ag-gold); opacity: 1; }
@media (max-width: 767px) { .ag-brands__row { gap: 14px 26px; } .ag-brands__mark { font-size: 1.02rem; letter-spacing: .12em; } }

/* ---------------------------------------------------------------------------
   15. TÉMOIGNAGES
   --------------------------------------------------------------------------- */
.ag-testi { max-width: var(--ag-container) !important; margin-inline: auto !important; padding-inline: 24px !important; padding-block: 64px; }
.ag-testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ag-testi__card {
  margin: 0; padding: 28px 26px; border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--ag-line,#E8E4DC); box-shadow: 0 1px 2px rgba(14,14,16,.05), 0 12px 32px -12px rgba(14,14,16,.10);
  display: flex; flex-direction: column; gap: 14px;
}
.ag-testi__stars { color: var(--ag-gold); letter-spacing: .12em; font-size: 1rem; }
.ag-testi__quote { margin: 0; color: var(--ag-gray,#56565E); /* valeur sombre #e7e7ec héritée d'AI Outlet, écrite en dur : 1,23:1 sur carte blanche (même motif que le footer) — relevé humain du 2026-08-15, invisible au scan avant l'ajout de blockquote aux balises mesurées */ font-size: 1.02rem; line-height: 1.6; font-style: italic; }
html.ag-dark .ag-testi__quote { color: #e7e7ec; }
.ag-testi__by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ag-testi__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #e2c98a, #E63946); color: #141317;
  font: 800 1.05rem/1 var(--ag-head, sans-serif);
}
.ag-testi__meta { display: flex; flex-direction: column; line-height: 1.35; }
.ag-testi__meta b { color: var(--ag-black,#0e0e10); font-size: .95rem; }
.ag-testi__meta i { color: var(--ag-gray,#56565E); font-size: .8rem; font-style: normal; }
@media (max-width: 991px) { .ag-testi__grid { grid-template-columns: 1fr; } .ag-testi { padding-block: 44px; } }

/* ---------------------------------------------------------------------------
   16. BASCULE GRILLE / LISTE (catégorie)
   --------------------------------------------------------------------------- */
.ag-viewswitch { display: inline-flex; gap: 5px; margin-left: auto; align-items: center; }
.ag-viewbtn {
  appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.14);
  color: #9a9aa2; width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ag-viewbtn:hover, .ag-viewbtn:focus-visible { color: #fff; border-color: color-mix(in srgb, var(--ag-gold) 45%, transparent); outline: none; }
.ag-viewbtn.is-active { color: var(--ag-btn-ink, #0a0a0c); background: var(--ag-gold); border-color: var(--ag-gold); }

/* Vue LISTE : une colonne, carte horizontale (image | description).
   NB : .products est un bootstrap .row (flex) avec items col-*. On force donc les
   colonnes à 100 % (le grid-template-columns n'a jamais gouverné cette grille). */
.products.ag-list { gap: 16px; }
.products.ag-list > .js-product,
.products.ag-list > .product { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; float: none !important; }
.products.ag-list .thumbnail-container { display: flex; gap: 24px; align-items: center; }
.products.ag-list .thumbnail-top { flex: 0 0 240px; max-width: 240px; }
.products.ag-list .product-description { flex: 1 1 auto; text-align: left; padding: 8px 12px; }
.products.ag-list .product-title { font-size: 1.15rem; }
.products.ag-list .ag-card-swatches { justify-content: flex-start; }
@media (max-width: 575px) {
  .products.ag-list .thumbnail-container { flex-direction: column; align-items: stretch; }
  .products.ag-list .thumbnail-top { flex: none; max-width: none; }
}

/* ---------------------------------------------------------------------------
   17. BOUTON D'ACHAT — correctif de CAUSE
   .btn-primary/.add-to-cart utilisaient background:var(--ag-black). Or la palette
   injecte html.ag-dark{--ag-black:#fff} (token sémantique inversé en mode sombre)
   → fond blanc + texte blanc = « Ajouter au panier » invisible.
   Correctif : CTA d'achat en OR + encre (stable, contrasté dans les 2 thèmes).
   --------------------------------------------------------------------------- */
.btn-primary, .add-to-cart, button.btn-primary {
  background: var(--ag-gold) !important;
  border-color: var(--ag-gold) !important;
  color: var(--ag-btn-ink, #0a0a0c) !important;
}
.btn-primary:hover, .add-to-cart:hover, button.btn-primary:hover {
  background: var(--ag-gold-d, #C41E2F) !important;
  border-color: var(--ag-gold-d, #C41E2F) !important;
  color: #0a0a0c !important;
}
.add-to-cart .material-icons, .add-to-cart i { color: inherit !important; }

/* ---------------------------------------------------------------------------
   18. ÉCHELLE TYPOGRAPHIQUE (application) — Space Grotesk titres / Inter corps.
   Tokens + doc dans ag-fonts.css. Sélecteurs génériques : les sections aux tailles
   spécifiquement réglées (fiche h1, hero…) conservent leur taille via leur spécificité.
   --------------------------------------------------------------------------- */
body { font-family: var(--ag-font-body); font-size: var(--ag-fs-body); line-height: var(--ag-lh-body); letter-spacing: var(--ag-ls-body); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .ag-section-title { font-family: var(--ag-font-display); }
h1, .h1 { font-size: clamp(2.4rem, 5vw, var(--ag-fs-h1)); line-height: var(--ag-lh-tight); letter-spacing: var(--ag-ls-display); }
h2, .h2 { font-size: clamp(2rem, 4vw, var(--ag-fs-h2)); line-height: var(--ag-lh-heading); letter-spacing: var(--ag-ls-display); }
h3, .h3 { font-size: var(--ag-fs-h3); line-height: var(--ag-lh-heading); letter-spacing: var(--ag-ls-display); }
h4, .h4 { font-size: var(--ag-fs-h4); line-height: var(--ag-lh-heading); letter-spacing: -0.01em; }
h5, .h5 { font-size: var(--ag-fs-h5); line-height: var(--ag-lh-heading); }
h6, .h6 { font-size: var(--ag-fs-h6); line-height: var(--ag-lh-heading); }
small, .small { font-size: var(--ag-fs-small); }

/* ---------------------------------------------------------------------------
   19. SÉLECTEURS DEVISE + LANGUE — panneau sombre opaque (clair ET sombre)
   CAUSE du « panneau blanc » : la règle sombre existait pour #_desktop_language_selector
   mais PAS pour #_desktop_currency_selector → le panneau devise retombait sur le blanc
   Bootstrap (.dropdown-menu{background:#fff}). On couvre les DEUX + lisibilité des items.
   (Le header reste sombre dans les 2 thèmes → panneau sombre cohérent partout.)
   --------------------------------------------------------------------------- */
#_desktop_currency_selector .dropdown-menu,
#_desktop_language_selector .dropdown-menu,
.currency-selector .dropdown-menu,
.language-selector .dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--ag-line,#E8E4DC) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 44px -18px rgba(20,20,24,.25) !important;
  padding: .35rem 0 !important;
  min-width: 180px !important;
}
#_desktop_currency_selector .dropdown-menu a,
#_desktop_currency_selector .dropdown-item,
.currency-selector .dropdown-menu a,
#_desktop_language_selector .dropdown-menu a,
.language-selector .dropdown-menu a {
  /* #ececf0 était la valeur du PANNEAU SOMBRE d'origine : sur le panneau blanc du thème
     lumineux, les langues non courantes devenaient gris pâle illisible (« flou »). */
  color: var(--ag-ink, #16161a) !important;
  padding: .5rem 1.1rem !important;
  display: block;
}
#_desktop_currency_selector .dropdown-menu a:hover,
#_desktop_currency_selector .dropdown-menu a:focus-visible,
.currency-selector .dropdown-menu a:hover,
#_desktop_language_selector .dropdown-menu a:hover,
.language-selector .dropdown-menu a:hover {
  color: var(--ag-gold) !important;
  background: rgba(255,255,255,.05) !important;
}
#_desktop_currency_selector .dropdown-menu li.current > a,
.currency-selector .dropdown-menu li.current > a,
#_desktop_language_selector .dropdown-menu li.current > a,
.language-selector .dropdown-menu li.current > a { color: var(--ag-rouge-texte, #A61E28) !important; }


/* ═══ aehdr.css ═══ */
/* ============================================================================
   HEADER AI ELECTRONICS — grille 1280, 3 étages nets. Fond sombre STABLE
   (clair & sombre, jamais var(--ag-bg)). Sticky à hauteur fixe. Zéro flottant.
   ============================================================================ */
#header { background:var(--ag-header-bg,#ffffff) !important; position:sticky; top:0; z-index:1000; box-shadow:0 1px 0 var(--ag-line,#E8E4DC) !important; }
.aehdr { background:var(--ag-header-bg,#ffffff); color:var(--ag-header-ink,#16161a); font-family:var(--ag-body,sans-serif); }
.aehdr * { box-sizing:border-box; }
.aehdr .aehdr-inner { max-width:1280px; margin:0 auto; padding:0 24px; height:100%; display:flex; align-items:center; }
.aehdr a { text-decoration:none; }

/* ---- ÉTAGE 1 : barre utilitaire, 40px ---- */
.aehdr-util { height:40px; border-bottom:1px solid var(--ag-line,#E8E4DC); }
.aehdr-util .aehdr-inner { justify-content:space-between; }
.aehdr-util__l, .aehdr-util__r { display:flex; align-items:center; gap:20px; }
.aehdr-util a, .aehdr-util button, .aehdr-util span, .aehdr-util .material-icons { color:#5A5A64 !important; font-size:.8rem; line-height:1; }
.aehdr-util a:hover, .aehdr-util button:hover { color:var(--ag-gold,#E63946) !important; }
.aehdr-util .material-icons { font-size:18px !important; }
.aehdr-util .aehdr-util__r > *, .aehdr-util__r > * { display:inline-flex; align-items:center; }
/* séparateur fin avant Connexion */
.aehdr-util__r #_desktop_user_info::before { content:""; width:1px; height:16px; background:var(--ag-line,#E8E4DC); margin-right:4px; }

/* ---- ÉTAGE 2 : barre principale, 72px — logo | recherche (max 560, centrée) | actions ---- */
.aehdr-main { height:72px; }
.aehdr-main .aehdr-inner { display:grid; grid-template-columns:1fr minmax(0,560px) 1fr; align-items:center; column-gap:24px; }
.aehdr-main__logo { justify-self:start; }
.aehdr-main__logo img { height:40px; width:auto; display:block; }
.aehdr-main__search { justify-self:center; width:100%; max-width:560px; }
.aehdr-main__search .search-widget, .aehdr-main__search #search_widget, .aehdr-main__search form { width:100% !important; margin:0 !important; }
.aehdr-main__actions { justify-self:end; display:flex; align-items:center; gap:18px; }
.aehdr-main__actions a, .aehdr-main__actions .material-icons { color:var(--ag-header-ink,#16161a) !important; }
.aehdr-burger { display:none; background:transparent; border:0; color:var(--ag-header-ink,#16161a); cursor:pointer; padding:6px; }
.aehdr-burger .material-icons { font-size:26px; }

/* ---- ÉTAGE 3 : navigation, 48px, catégories centrées ---- */
.aehdr-nav { height:48px; border-top:1px solid var(--ag-line,#E8E4DC); }
.aehdr-nav .aehdr-inner { justify-content:center; }
.aehdr-nav__slot { display:flex; justify-content:center; align-items:center; width:100%; }
.aehdr-nav__slot .ag-nav, .aehdr-nav__slot #_desktop_top_menu { display:flex; justify-content:center; width:100%; }

/* source cachée + tiroir mobile masqué par défaut */
.aehdr-src { display:none !important; }
.aehdr-drawer { display:none; }

/* ---- RESPONSIVE < 1024 : nav → burger, recherche sous la barre, util masquée ---- */
@media (max-width:1023px) {
  .aehdr .aehdr-inner { padding:0 16px; }
  .aehdr-util { display:none; }              /* langue/devise/contact passent dans le tiroir */
  .aehdr-nav { display:none; }               /* nav → burger */
  .aehdr-main { height:64px; }
  .aehdr-main .aehdr-inner { grid-template-columns:auto 1fr auto; column-gap:12px; }
  .aehdr-burger { display:inline-flex; align-items:center; justify-self:start; order:0; }
  .aehdr-main__logo { justify-self:center; }
  .aehdr-main__actions { justify-self:end; }
  /* recherche : passe en pleine largeur SOUS la barre principale */
  .aehdr-main__search { position:absolute; left:0; right:0; top:64px; max-width:none; width:100%;
    padding:8px 16px; background:var(--ag-header-bg,#ffffff); border-top:1px solid var(--ag-line,#E8E4DC); }
}

/* ---- Mini-panier au survol (étage 2, actions) ---- */
.ag-has-mini { position:relative; }
.ag-minicart {
  position:absolute; top:calc(100% + 8px); right:0; width:330px; max-width:92vw;
  background:#ffffff; color:var(--ag-ink,#16161a); border:1px solid var(--ag-line,#E8E4DC); border-radius:12px;
  box-shadow:0 18px 44px -16px rgba(20,20,24,.25); padding:12px 14px; z-index:1100;
  opacity:0; visibility:hidden; transform:translateY(8px); transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.ag-has-mini:hover .ag-minicart, .ag-has-mini:focus-within .ag-minicart { opacity:1; visibility:visible; transform:none; }
.ag-minicart__empty { text-align:center; color:#6b6b74; padding:16px 0; margin:0; }
.ag-minicart__list { max-height:280px; overflow-y:auto; }
.ag-minicart__item { display:grid; grid-template-columns:44px 1fr auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid var(--ag-line,#E8E4DC); color:var(--ag-ink,#16161a) !important; }
.ag-minicart__item img { width:44px; height:44px; object-fit:cover; border-radius:6px; background:#fff; }
.ag-minicart__n { font-size:.82rem; line-height:1.25; }
.ag-minicart__q { font-size:.76rem; color:#6b6b74; white-space:nowrap; }
.ag-minicart__tot { display:flex; justify-content:space-between; align-items:center; padding:11px 0 12px; color:var(--ag-ink,#16161a); font-weight:600; }
.ag-minicart__tot b { color:var(--ag-black,#0e0e10); font-size:1.05rem; }
.ag-minicart__act { display:flex; gap:8px; }
.ag-minicart__btn { flex:1; text-align:center; padding:.62rem .4rem; border-radius:5px; background:var(--ag-gold,#E63946); color:#0a0a0c !important; font-weight:700; font-size:.76rem; letter-spacing:.04em; text-transform:uppercase; }
.ag-minicart__btn--ghost { background:transparent; border:1px solid rgba(22,22,26,.28); color:var(--ag-ink,#16161a) !important; }

/* ===== Overrides contraste AA (aehdr.css charge en DERNIER : gagne sur premium-pro/uplift/conv) ===== */
/* cross-sell rendu DANS #footer : bat le bleed "#footer p{color:#b9b9c0}" (spéc. 1,0,1) */
#footer .ag-xsell__sub, .ag-xsell .ag-xsell__sub, .ag-xsell__sub { color:#595959 !important; }
html.ag-dark #footer .ag-xsell__sub, html.ag-dark .ag-xsell .ag-xsell__sub, html.ag-dark .ag-xsell__sub { color:#c9c9d0 !important; }
/* flag remise : cause corrigée à la source (premium-uplift.css l.106, or #ecd9a3 AA) */
#_desktop_cart .blockcart .cart-products-count, #header .cart-products-count { color:#0a0a0c !important; }


/* ═══ ag-destockage.css ═══ */
/* AI Destock — ag-destockage.css
   Composants de déstockage ajoutés au thème : en-tête et filtre de la page « Prix cassés »,
   badge « dernières pièces », total d'économies au panier, lien permanent « Déstockage ».
   Chargé APRÈS aehdr.css (dernier de la cascade) : aucune surcharge !important n'est nécessaire.
   S'appuie sur les tokens existants (--or, --encre, --carte, --ivoire) : clair et sombre suivent
   automatiquement la palette choisie par le marchand. */

/* ---------------------------------------------------------------- 1. En-tête « Prix cassés » */
.ag-drophead {
  margin: 0 0 1.4rem;
  padding: 1.8rem 1.6rem;
  border-radius: var(--rayon, 10px);
  background:
    radial-gradient(120% 140% at 8% 0%, color-mix(in srgb, var(--or) 16%, transparent), transparent 60%),
    var(--carte, #fff);
  border: 1px solid color-mix(in srgb, var(--or) 22%, transparent);
}
.ag-drophead__eyebrow {
  display: inline-block;
  font-family: var(--ag-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .66rem;
  font-weight: 700;
  color: var(--ag-rouge-texte,#A61E28);
}
.ag-drophead__title {
  font-family: var(--ag-head);
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.1;
  margin: .35rem 0 .5rem;
  color: var(--encre);
}
.ag-drophead__sub {
  max-width: 62ch;
  margin: 0;
  color: var(--encre-2);
  font-size: .95rem;
  line-height: 1.55;
}
.ag-drophead__count {
  margin: .7rem 0 0;
  font-size: .85rem;
  color: var(--encre-2);
}
.ag-drophead__count b {
  color: var(--or);
  font-family: var(--ag-head);
  font-size: 1.05rem;
}

/* ------------------------------------------------------- 2. Filtre « remise minimum » (pills) */
.ag-dropfilter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  margin: 0 0 1.2rem;
}
.ag-dropfilter__lbl {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .66rem;
  font-weight: 700;
  color: var(--encre-2);
}
.ag-dropfilter__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ag-dropfilter__pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--encre) 16%, transparent);
  background: var(--carte, #fff);
  color: var(--encre);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  transition: border-color var(--transition, .2s), color var(--transition, .2s), background var(--transition, .2s);
}
.ag-dropfilter__pill:hover,
.ag-dropfilter__pill:focus-visible {
  border-color: var(--or);
  color: var(--or);
}
.ag-dropfilter__pill.is-active {
  background: var(--or);
  border-color: var(--or);
  color: #fff;
}
.ag-dropfilter__n {
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  opacity: .72;
}

/* ------------------------------------------------- 3. Badge « dernières pièces » (vignettes)
   Sa COULEUR est déclarée dans premium.css, avec toutes les autres pastilles produit (source
   unique). Ici, seulement ce qui lui est propre. */
.product-flag.ag-lowstock-flag {
  font-weight: 700;
  letter-spacing: .04em;
}

/* ------------------------------------------------ 4. Remise du spotlight « Offre du moment » */
.ag-spotlight__price .discount {
  align-self: center;
  padding: .18rem .5rem;
  border-radius: 4px;
  background: var(--or);
  color: #fff;
  font-family: var(--ag-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.ag-spotlight__mini-off {
  display: inline-block;
  margin-left: .35rem;
  color: var(--or);
  font-size: .76rem;
  font-weight: 700;
}

/* ------------------------------------------------------- 5. « Vous économisez » (panier) */
.ag-savings {
  border-top: 1px dashed color-mix(in srgb, var(--or) 45%, transparent);
}
.ag-savings__line {
  align-items: baseline;
}
.ag-savings__line .label {
  font-weight: 700;
  color: var(--encre);
}
.ag-savings__value {
  color: var(--or);
  font-family: var(--ag-head);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}
.ag-savings__note {
  display: block;
  margin-top: -.3rem;
  color: var(--encre-2);
  font-size: .74rem;
}

/* --------------------------------------------- 6. Lien permanent « Déstockage » (navigation) */
.aehdr-nav .aehdr-inner {
  position: relative;
}
/* Positionné en absolu : la barre de nav reste centrée sur le méga-menu, sans décalage. */
.aehdr-deals {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--or) 65%, transparent);
  background: color-mix(in srgb, var(--or) 14%, transparent);
  color: var(--or);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  transition: background var(--transition, .2s), color var(--transition, .2s);
}
.aehdr-deals:hover,
.aehdr-deals:focus-visible {
  background: var(--or);
  color: #fff;
}
.aehdr-deals--drawer {
  position: static;
  transform: none;
  display: flex;
  justify-content: center;
  margin: .8rem;
  padding: .5rem .9rem;
  font-size: .8rem;
  color: var(--or);
  background: color-mix(in srgb, var(--or) 18%, transparent);
}
/* Sous 1100 px la barre de nav se resserre : le lien passerait sur le méga-menu. Il reste
   accessible dans le tiroir mobile, qui porte la variante --drawer. */
@media (max-width: 1100px) {
  .aehdr-nav .aehdr-deals { display: none; }
}

/* ------------------------------------------------------------------------- 7. Thème sombre */
html.ag-dark .ag-drophead {
  border-color: color-mix(in srgb, var(--or) 34%, transparent);
}
html.ag-dark .ag-dropfilter__pill {
  border-color: rgba(255, 255, 255, .16);
}
html.ag-dark .ag-dropfilter__pill.is-active,
html.ag-dark .aehdr-deals:hover {
  color: #0e0e11;
}
html.ag-dark .ag-savings__value,
html.ag-dark .ag-spotlight__mini-off {
  color: var(--or-clair, var(--or));
}

/* -------------------------------------------------------- 8. Mouvement réduit / impression */
@media (prefers-reduced-motion: reduce) {
  .ag-dropfilter__pill,
  .aehdr-deals { transition: none; }
}

/* ------------------------------------------------ OMNIBUS (UE 2019/2161)
   « Prix le plus bas des 30 derniers jours » — sobre, lisible, jamais criard :
   c'est une mention de conformité, pas un argument. */
.ag-omnibus { color: var(--ag-gray, #56565E); font-size: .82rem; }
.ag-omnibus--fiche { margin: .35rem 0 0; }
.ag-omnibus--fiche b { font-weight: 600; color: var(--ag-ink, #16161a); }
.ag-omnibus--vignette { display: block; font-size: .74rem; margin-top: 2px; }
html.ag-dark .ag-omnibus { color: #a6a4ac; }
html.ag-dark .ag-omnibus--fiche b { color: #e9e9ec; }

/* ------------------------------------------------ COMPTE À REBOURS (vraies dates only)
   Fiche : pastille posée sous le prix. Vignette : ligne compacte. Bandeau : puce flash.
   Chiffres tabulaires (zéro tremblement), encre sur ivoire, urgence sobre. */
.ag-cd { font-variant-numeric: tabular-nums; }
.ag-cd--fiche {
  display: inline-flex; align-items: center; gap: 8px;
  margin: .55rem 0 0; padding: .4rem .8rem;
  background: var(--ag-soft, #F4F1E9); border: 1px solid var(--ag-line, #E8E4DC);
  border-radius: 8px;
}
.ag-cd--fiche .ag-cd__label {
  font: 600 .72rem/1 var(--ag-head, sans-serif);
  letter-spacing: .1em; text-transform: uppercase; color: var(--ag-rouge-texte, #A61E28);
}
.ag-cd--fiche .ag-cd-clock { font: 700 .95rem/1 var(--ag-head, sans-serif); color: var(--ag-ink, #16161a); }
.ag-cd--vignette { display: block; font-size: .74rem; color: var(--ag-rouge-texte, #A61E28); margin-top: 2px; }
.ag-cd--vignette .ag-cd__label { font-weight: 600; }
.ag-cd--vignette .ag-cd-clock { font-weight: 700; }
.ag-annonce__flash {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 2px 10px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font: 600 .74rem/1.4 var(--ag-head, sans-serif); letter-spacing: .06em; color: #fff;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ag-annonce__flash .ag-cd-clock { font-weight: 700; }
@media (max-width: 767px) { .ag-annonce__flash { display: none; } } /* bandeau mobile : le texte d'abord */

/* ------------------------------------------------ HISTORIQUE DE PRIX (90 j, fiche)
   Repliable (details/summary natif = accessible clavier sans JS), sobre. */
.ag-hp { margin: .6rem 0 0; max-width: 320px; }
.ag-hp__titre {
  cursor: pointer; font: 600 .78rem/1.4 var(--ag-head, sans-serif);
  letter-spacing: .06em; color: var(--ag-gray, #56565E); list-style-position: inside;
}
.ag-hp__titre:hover { color: var(--ag-ink, #16161a); }
.ag-hp__corps {
  display: flex; align-items: center; gap: 14px; margin-top: .5rem;
  padding: .7rem .9rem; background: #fff; border: 1px solid var(--ag-line, #E8E4DC); border-radius: 10px;
}
.ag-hp__bornes { display: flex; flex-direction: column; gap: 4px; font-size: .74rem; color: var(--ag-gray, #56565E); }
.ag-hp__bornes b { color: var(--ag-ink, #16161a); font-variant-numeric: tabular-nums; }

