/* =========================================================
   ATS ALTIVAX — Boutique WooCommerce CSS v4.1.0
   Direction artistique : Dark Cybersecurity — tranchant, tech, premium
   Typographie : Barlow Condensed (titres) + DM Mono (prix/codes)
   ========================================================= */

/* ── Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800&family=DM+Mono:wght@400;500&family=Barlow:wght@400;500;600&display=swap');

/* ── Tokens de design ──────────────────────────────────── */
:root {
  /* Couleurs */
  --ats-y:       #F5E400;
  --ats-y-dim:   rgba(245, 228, 0, 0.12);
  --ats-y-glow:  rgba(245, 228, 0, 0.25);
  --ats-ydk:     #C4B600;
  --ats-bg:      #0A0A0A;
  --ats-bg2:     #0F0F0F;
  --ats-surf:    #141414;
  --ats-surf2:   #1C1C1C;
  --ats-brd:     #272727;
  --ats-brd2:    #333333;
  --ats-txt:     #F0F0F0;
  --ats-txt2:    #AAAAAA;
  --ats-mute:    #666666;
  --ats-ok:      #22C55E;
  --ats-ok-dim:  rgba(34, 197, 94, 0.12);
  --ats-err:     #EF4444;
  --ats-wa:      #25D366;
  --ats-wa-dim:  rgba(37, 211, 102, 0.12);

  /* Typographie */
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Espacements */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-pill: 100px;

  /* Sidebar */
  --sidebar-w: 248px;

  /* Transitions */
  --t-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:   0.4s  cubic-bezier(0.4, 0, 0.2, 1);

  /* Ombres */
  --shadow-card:       0 2px 12px rgba(0,0,0,0.6);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.8), 0 0 0 1px var(--ats-brd2);
  --shadow-yellow:     0 0 20px var(--ats-y-glow);
  --shadow-yellow-sm:  0 0 10px var(--ats-y-glow);
}

/* ── Reset ciblé ───────────────────────────────────────── */
.ats-shop-wrapper *,
.ats-product-card *,
.ats-filters *,
.ats-sidebar *,
.ats-calc-box *,
.ats-rib-block * {
  box-sizing: border-box;
}

/* ──────────────────────────────────────────────────────────
   LAYOUT BOUTIQUE — Sidebar gauche + Zone produits
────────────────────────────────────────────────────────── */
.ats-shop-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  font-family: var(--font-body);
}

.ats-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 28px;
}

.ats-products-area {
  flex: 1;
  min-width: 0;
}

.ats-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ──────────────────────────────────────────────────────────
   SIDEBAR FILTRES
────────────────────────────────────────────────────────── */
.ats-filters {
  background: var(--ats-surf);
  border: 1px solid var(--ats-brd);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.ats-filters-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ats-y);
  padding: 16px 18px 14px;
  background: var(--ats-bg2);
  border-bottom: 1px solid var(--ats-brd);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ats-filters-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--ats-y);
  border-radius: 2px;
  flex-shrink: 0;
}

.ats-filter-section {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ats-brd);
}
.ats-filter-section:last-of-type {
  border-bottom: none;
}

.ats-filter-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ats-mute);
  margin-bottom: 10px;
}

.ats-filter-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--ats-txt2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
  line-height: 1.3;
  cursor: pointer;
}
.ats-filter-item:hover {
  background: rgba(255,255,255,.05);
  color: var(--ats-txt);
  text-decoration: none;
}
.ats-filter-item.ats-active {
  background: var(--ats-y-dim);
  color: var(--ats-y);
  font-weight: 600;
}

.ats-filter-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ats-brd2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  transition: all var(--t-fast);
}
.ats-active .ats-filter-check {
  background: var(--ats-y);
  border-color: var(--ats-y);
  color: var(--ats-bg);
}

.ats-subcats {
  margin: 6px 0 2px 12px;
  border-left: 2px solid var(--ats-brd);
  padding-left: 10px;
}
.ats-subcat-item {
  font-size: 12px;
  padding: 6px 8px;
  color: var(--ats-mute);
}
.ats-subcat-item.ats-active { color: var(--ats-y); }

.ats-filter-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 18px 16px;
  padding: 9px;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--r-md);
  color: var(--ats-err);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t-fast);
  letter-spacing: .02em;
}
.ats-filter-reset:hover {
  background: rgba(239,68,68,.16);
  text-decoration: none;
  transform: none;
}

/* ──────────────────────────────────────────────────────────
   CARTES PRODUITS
────────────────────────────────────────────────────────── */
.ats-product-card {
  background: var(--ats-surf);
  border: 1px solid var(--ats-brd);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* Liseré jaune en haut de chaque carte au hover */
.ats-product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ats-y);
  opacity: 0;
  transition: opacity var(--t-normal);
}
.ats-product-card:hover::before { opacity: 1; }

.ats-product-card:hover {
  border-color: var(--ats-brd2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

/* Carte "Recommandé" — liseré animé */
.ats-product-card.ats-card-featured {
  border-color: var(--ats-y);
  box-shadow: var(--shadow-card), var(--shadow-yellow-sm);
}
.ats-product-card.ats-card-featured::before { opacity: 1; }
.ats-product-card.ats-card-featured:hover {
  box-shadow: var(--shadow-card-hover), var(--shadow-yellow);
}

/* Badge "Recommandé" */
.ats-card-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--ats-y);
  color: var(--ats-bg);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px 5px;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

/* Pill catégorie */
.ats-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ats-y-dim);
  border: 1px solid rgba(245,228,0,.2);
  color: var(--ats-y);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: var(--r-pill);
  align-self: flex-start;
}
.ats-card-cat::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--ats-y);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Titre carte */
.ats-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ats-txt);
  margin: 0;
  line-height: 1.2;
  letter-spacing: .01em;
}

/* Prix */
.ats-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ats-brd);
}
.ats-price-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--ats-y);
  line-height: 1;
  letter-spacing: -.02em;
}
.ats-price-unit {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ats-y);
}
.ats-price-period {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ats-mute);
  margin-left: 4px;
}

/* Description courte */
.ats-card-short {
  font-size: 12.5px;
  color: var(--ats-txt2);
  line-height: 1.65;
}
.ats-card-short strong { color: var(--ats-txt); font-weight: 600; }
.ats-card-short em {
  color: var(--ats-y);
  font-style: normal;
  font-weight: 600;
}
.ats-card-short br + br { display: none; }

/* Label appareils */
.ats-card-devices {
  font-size: 11px;
  color: var(--ats-mute);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.ats-card-devices::before {
  content: '//';
  color: var(--ats-brd2);
  font-weight: 500;
}

/* ── Boutons d'action ─────────────────────────────────── */
.ats-card-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.ats-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ats-y);
  color: var(--ats-bg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--t-fast);
  position: relative;
  overflow: hidden;
}
.ats-btn-primary::after {
  content: '→';
  font-size: 16px;
  transition: transform var(--t-fast);
}
.ats-btn-primary:hover {
  background: var(--ats-ydk);
  color: var(--ats-bg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-yellow-sm);
}
.ats-btn-primary:hover::after { transform: translateX(3px); }

.ats-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--ats-txt2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 20px;
  border: 1px solid var(--ats-brd2);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: all var(--t-fast);
}
.ats-btn-secondary:hover {
  border-color: var(--ats-wa);
  color: var(--ats-wa);
  background: var(--ats-wa-dim);
  text-decoration: none;
}

/* ── Mini aide ────────────────────────────────────────── */
.ats-card-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ats-brd);
  font-size: 11px;
  color: var(--ats-mute);
}
.ats-mini-wa {
  color: var(--ats-wa); text-decoration: none; font-weight: 600;
  padding: 3px 9px; border: 1px solid rgba(37,211,102,.3); border-radius: var(--r-pill);
  font-size: 11px; transition: all var(--t-fast);
}
.ats-mini-wa:hover { background: var(--ats-wa); color: #fff; text-decoration: none; border-color: var(--ats-wa); }
.ats-mini-call {
  color: var(--ats-mute); text-decoration: none; font-weight: 600;
  padding: 3px 9px; border: 1px solid var(--ats-brd); border-radius: var(--r-pill);
  font-size: 11px; transition: all var(--t-fast);
}
.ats-mini-call:hover { border-color: var(--ats-y); color: var(--ats-y); text-decoration: none; }

/* ──────────────────────────────────────────────────────────
   PAGE PRODUIT INDIVIDUEL
────────────────────────────────────────────────────────── */
.ats-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.ats-cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ats-y-dim); border: 1px solid rgba(245,228,0,.25);
  color: var(--ats-y);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill);
}
.ats-featured-badge {
  display: inline-flex; align-items: center;
  background: var(--ats-y); color: var(--ats-bg);
  font-family: var(--font-display);
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill);
}
.ats-mode-badge {
  display: inline-flex; align-items: center;
  background: var(--ats-surf2); border: 1px solid var(--ats-brd);
  color: var(--ats-txt2);
  font-size: 11px; padding: 4px 12px; border-radius: var(--r-pill);
}

/* Description produit WC */
.ats-product-desc .ats-pricing-note {
  background: var(--ats-y-dim); border: 1px solid rgba(245,228,0,.2);
  border-left: 3px solid var(--ats-y);
  border-radius: var(--r-md); padding: 14px 18px;
  font-size: 14px; line-height: 1.65; margin-bottom: 20px; color: var(--ats-txt);
}
.ats-feat-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ats-txt2);
  margin: 0 0 12px;
}
.ats-feat-list { list-style: none; margin: 0; padding: 0; }
.ats-feat-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--ats-brd);
  font-size: 14px; line-height: 1.5;
  display: flex; align-items: baseline; gap: 8px;
}
.ats-feat-list li:last-child { border-bottom: none; }
.ats-feat-yes { color: var(--ats-txt); }
.ats-feat-no  { color: var(--ats-mute); }

/* ──────────────────────────────────────────────────────────
   CALCULATEUR (page produit)
────────────────────────────────────────────────────────── */
.ats-calc-box, .ats-period-box {
  background: var(--ats-surf2);
  border: 1px solid var(--ats-brd);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin: 16px 0;
}
.ats-calc-title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ats-y);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.ats-calc-label {
  display: block;
  font-size: 12px; color: var(--ats-txt2); margin-bottom: 8px; font-weight: 500;
}
.ats-qty-input {
  width: 140px;
  background: var(--ats-bg);
  border: 1px solid var(--ats-brd2);
  border-radius: var(--r-md);
  color: var(--ats-y);
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 500;
  padding: 10px 14px;
  margin-bottom: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -moz-appearance: textfield;
}
.ats-qty-input::-webkit-outer-spin-button,
.ats-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ats-qty-input:focus {
  border-color: var(--ats-y);
  box-shadow: 0 0 0 3px var(--ats-y-dim);
  outline: none;
}

.ats-calc-result {
  font-size: 14px; color: var(--ats-txt2); margin: 4px 0 8px;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
#ats-total-display {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 500; color: var(--ats-y);
  transition: all var(--t-fast);
}
.ats-calc-formula {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ats-mute); line-height: 1.5;
  background: var(--ats-bg); padding: 8px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--ats-brd); margin-top: 8px;
}

/* Choix période Particuliers */
.ats-period-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ats-brd);
  font-size: 13px; color: var(--ats-txt2); cursor: pointer; line-height: 1.5;
  transition: color var(--t-fast);
}
.ats-period-opt:last-child { border-bottom: none; padding-bottom: 0; }
.ats-period-opt:hover { color: var(--ats-txt); }
.ats-period-annual { color: var(--ats-y); }
.ats-period-annual strong { color: var(--ats-y); }
.ats-saving { color: var(--ats-ok); font-weight: 600; }
.ats-period-opt input[type="radio"] { margin-top: 2px; accent-color: var(--ats-y); }

/* ──────────────────────────────────────────────────────────
   BANDEAU ASSISTANCE
────────────────────────────────────────────────────────── */
.ats-assist-banner {
  background: var(--ats-surf2);
  border: 1px solid var(--ats-brd);
  border-left: 3px solid var(--ats-y);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin: 18px 0 0;
}
.ats-assist-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ats-y); margin: 0 0 4px;
}
.ats-assist-sub { font-size: 12px; color: var(--ats-mute); margin: 0 0 12px; }
.ats-assist-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ──────────────────────────────────────────────────────────
   BOUTONS GLOBAUX
────────────────────────────────────────────────────────── */
.ats-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all var(--t-fast);
  cursor: pointer; border: none; white-space: nowrap;
}
.ats-btn-wa {
  background: var(--ats-wa); color: #fff;
}
.ats-btn-wa:hover { background: #1aab50; color: #fff; text-decoration: none; }
.ats-btn-call {
  background: var(--ats-surf2); color: var(--ats-txt2);
  border: 1px solid var(--ats-brd2);
}
.ats-btn-call:hover { border-color: var(--ats-y); color: var(--ats-y); background: var(--ats-y-dim); text-decoration: none; }

/* ──────────────────────────────────────────────────────────
   BLOC RIB (page merci + emails)
────────────────────────────────────────────────────────── */
.ats-rib-block {
  background: var(--ats-bg2);
  border: 1px solid var(--ats-brd);
  border-top: 3px solid var(--ats-y);
  border-radius: var(--r-xl);
  padding: 24px 26px;
  margin: 28px 0;
  color: var(--ats-txt);
}
.ats-rib-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ats-y); margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.ats-rib-intro {
  font-size: 13px; color: var(--ats-txt2); margin: 0 0 16px; line-height: 1.65;
}
.ats-rib-intro strong { color: var(--ats-y); font-weight: 600; }
.ats-rib-pre {
  background: var(--ats-bg);
  border: 1px solid var(--ats-brd);
  border-radius: var(--r-md);
  padding: 16px 18px;
  color: var(--ats-y);
  font-family: var(--font-mono);
  font-size: 13px; line-height: 2;
  margin: 0 0 16px;
  white-space: pre-wrap; word-break: break-word;
}
.ats-rib-contact {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; font-size: 12px; color: var(--ats-mute);
}
.ats-wa-link {
  padding: 5px 13px; border: 1px solid rgba(37,211,102,.35);
  border-radius: var(--r-pill); color: var(--ats-wa);
  text-decoration: none; font-weight: 600; font-size: 12px;
  transition: all var(--t-fast);
}
.ats-wa-link:hover { background: var(--ats-wa); color: #fff; border-color: var(--ats-wa); text-decoration: none; }
.ats-tel-link {
  padding: 5px 13px; border: 1px solid var(--ats-brd2);
  border-radius: var(--r-pill); color: var(--ats-txt2);
  text-decoration: none; font-weight: 600; font-size: 12px;
  transition: all var(--t-fast);
}
.ats-tel-link:hover { border-color: var(--ats-y); color: var(--ats-y); text-decoration: none; }

/* ──────────────────────────────────────────────────────────
   CHECKOUT — Champs spécifiques ATS
────────────────────────────────────────────────────────── */
#ats_period, #ats_qty, #ats_company, #ats_notes {
  background: var(--ats-surf);
  border: 1px solid var(--ats-brd2);
  border-radius: var(--r-md);
  color: var(--ats-txt);
  font-family: var(--font-body);
  padding: 11px 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
#ats_period:focus, #ats_qty:focus, #ats_company:focus, #ats_notes:focus {
  border-color: var(--ats-y);
  box-shadow: 0 0 0 3px var(--ats-y-dim);
  outline: none;
}
.ats-hide { display: none !important; }

/* Boîte total calculé */
.ats-total-box {
  background: var(--ats-surf2);
  border: 1px solid var(--ats-brd);
  border-left: 3px solid var(--ats-y);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.ats-total-title {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ats-y);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
#ats-total-content { font-size: 13px; color: var(--ats-txt2); line-height: 1.8; }
#ats-total-content strong { color: var(--ats-txt); font-weight: 600; }
.ats-total-amount {
  font-family: var(--font-mono);
  color: var(--ats-y) !important;
  font-size: 20px; font-weight: 500;
}
.ats-total-hint { color: var(--ats-mute); font-style: italic; font-size: 12px; }

/* ──────────────────────────────────────────────────────────
   AUCUN PRODUIT
────────────────────────────────────────────────────────── */
.ats-no-products {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--ats-mute); font-size: 14px;
}
.ats-no-products::before {
  content: '🔍';
  display: block; font-size: 32px; margin-bottom: 12px;
}

/* ──────────────────────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────────────────────── */
@keyframes ats-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ats-pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 var(--ats-y-glow); }
  50%       { box-shadow: 0 0 16px 4px var(--ats-y-glow); }
}

.ats-product-card {
  animation: ats-fade-in 0.3s ease both;
}
.ats-product-card:nth-child(2) { animation-delay: .05s; }
.ats-product-card:nth-child(3) { animation-delay: .10s; }
.ats-product-card:nth-child(4) { animation-delay: .15s; }
.ats-product-card:nth-child(5) { animation-delay: .20s; }
.ats-product-card:nth-child(6) { animation-delay: .25s; }

/* Pulse sur les cartes "Recommandé" */
@media (prefers-reduced-motion: no-preference) {
  .ats-card-featured .ats-btn-primary {
    animation: ats-pulse-yellow 3s ease-in-out 2s 3;
  }
}

/* Transitions champ quantité */
#ats-total-display {
  display: inline-block;
  transition: transform 0.15s ease, color 0.15s ease;
}
#ats-total-display.ats-updating {
  transform: scale(1.08);
  color: #fff;
}

/* ──────────────────────────────────────────────────────────
   MOBILE TOGGLE
────────────────────────────────────────────────────────── */
.ats-mobile-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ats-surf);
  border: 1px solid var(--ats-brd);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ats-txt);
  cursor: pointer;
  margin-bottom: 16px;
  transition: all var(--t-fast);
}
.ats-mobile-toggle:hover { border-color: var(--ats-y); color: var(--ats-y); }
.ats-toggle-arrow {
  font-size: 10px;
  transition: transform var(--t-fast);
}
.ats-mobile-toggle.open .ats-toggle-arrow { transform: rotate(180deg); }

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 210px; }
}

@media (max-width: 768px) {
  .ats-shop-wrapper { flex-direction: column; gap: 0; }
  .ats-sidebar { width: 100%; position: static; margin-bottom: 8px; }
  .ats-mobile-toggle { display: flex; }
  .ats-filters { display: none; border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .ats-filters.ats-filters-open { display: block; }
}

@media (max-width: 600px) {
  .ats-products-grid { grid-template-columns: 1fr; }
  .ats-price-amount { font-size: 26px; }
  .ats-card-actions { gap: 8px; }
}

@media (max-width: 420px) {
  .ats-product-card { padding: 18px 16px; }
  .ats-rib-block { padding: 16px; }
  .ats-rib-pre { font-size: 12px; padding: 12px; }
}

/* ──────────────────────────────────────────────────────────
   COMPATIBILITÉ THÈMES WORDPRESS
   Neutralise les surcharges courantes des thèmes génériques
────────────────────────────────────────────────────────── */
.ats-btn-primary, .ats-btn-secondary, .ats-btn {
  box-shadow: none !important; /* Évite les ombres de thème */
  text-shadow: none !important;
}
.ats-product-card img { display: none; } /* Cache l'image WC par défaut si absente */
.woocommerce .ats-shop-wrapper ul.products { all: unset; display: contents; }

/* ──────────────────────────────────────────────────────────
   NOTE PRIX PANIER (sous le calculateur)
────────────────────────────────────────────────────────── */
.ats-calc-note-price {
  font-size: 11px;
  color: var(--ats-ok);
  margin: 8px 0 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ──────────────────────────────────────────────────────────
   RÉCAPITULATIF CHECKOUT (au-dessus du bouton Commander)
────────────────────────────────────────────────────────── */
.ats-recap-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--ats-brd);
  font-size: 13px;
}
.ats-recap-line:last-of-type { border-bottom: none; }
.ats-recap-name {
  font-weight: 600;
  color: var(--ats-txt);
  flex: 1;
  min-width: 140px;
}
.ats-recap-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ats-mute);
}
.ats-recap-total {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ats-y);
  white-space: nowrap;
}
.ats-recap-grand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ats-brd2);
  text-align: right;
  font-size: 15px;
  color: var(--ats-txt2);
}
.ats-recap-grand strong {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ats-y);
}

/* Données panier (période affichée sous le produit) */
.woocommerce-cart-form .wc-item-meta .wc-item-meta-label,
.woocommerce-checkout-review-order .wc-item-meta .wc-item-meta-label {
  color: var(--ats-mute);
  font-size: 11px;
}
.woocommerce-cart-form .wc-item-meta p,
.woocommerce-checkout-review-order .wc-item-meta p {
  font-size: 12px;
  color: var(--ats-txt2);
  margin: 2px 0;
}
