/* ==========================================================
   Boutique Cosmétique — Identité : élégance parme & or champagne
   Palette officielle (charte fournie par le client)
   ========================================================== */

:root {
  --white:        #FFFFFF;  /* Blanc principal */
  --bg:           #F3EEF7;  /* Fond secondaire — blanc cassé / ivoire */
  --bg-section:   #F3EEF7;  /* Fond de sections — rose clair */
  --parme-pale:   #E7DFF0;  /* Parme très clair — lavande poudrée */
  --primary:      #B79ACF;  /* Parme principal — mauve élégant */
  --primary-dark: #9A78B8;  /* Mauve appuyé — hover / accents forts */
  --primary-deep: #6F4F8C;  /* Mauve profond — texte sur clair, liens actifs */
  --taupe:        #B9A99C;  /* Taupe chaud */
  --gold:         #C9A15B;  /* Or champagne */
  --ink:          #2E2A2A;  /* Texte principal — noir doux */
  --ink-light:    #7A7470;  /* Texte secondaire — gris moyen */
  --line:         #E9E2DC;
  --white-soft:   #FFFEFD;
  --radius:       8px;
  --radius-lg:    12px;
  --font-display: 'Jost', sans-serif;
  --font-script:  'Cormorant Garamond', serif;
  --font-body:    'Poppins', sans-serif;
  --shadow: 0 10px 32px rgba(111, 79, 140, 0.10);
  --shadow-lg: 0 20px 50px rgba(111, 79, 140, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(183,154,207,0.20), transparent 60%),
    radial-gradient(900px 650px at 100% 15%, rgba(231,223,240,0.65), transparent 55%),
    var(--bg-section);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Image produit manquante / non chargée ---------- */
/* Uniquement sur les visuels produits (pas le logo, pas les images du hero) :
   fond parme clair au lieu du orange/rouge par défaut du navigateur. */
.card-img,
.card-img img,
.product-view .card-img,
.no-image,
.placeholder-img,
img.img-error,
img[data-fallback] {
  background: var(--parme-pale) !important;
  color: var(--ink-light);
  font-size: .75rem;
  text-align: center;
}


.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  margin: 0 0 .5em;
  letter-spacing: 0.2px;
}

::selection { background: var(--primary); color: var(--white); }


/* ---------- Bandeau d'annonce (livraison) ---------- */
.announce-bar {
  background: var(--primary-deep);
  color: var(--white);
  text-align: center;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 9px 14px;
}
.announce-icon { color: var(--gold); margin-right: 4px; }
@media (max-width: 640px) {
  .announce-bar { font-size: .68rem; padding: 7px 10px; }
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  padding-left: 8px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo {
  font-family: var(--font-script);
  font-size: 1.9rem;
  font-weight: 600;
  font-style: italic;
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  margin-right: auto;
}
.logo-mark { color: var(--gold); font-family: var(--font-body); font-size: 1rem; font-style: normal; }
.logo img {
  height: 75px;
  width: auto;
  display: block;
}
@media (max-width: 640px) {
  .logo img { height: 54px; }
}
.main-nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.main-nav a { position: relative; font-size: .92rem; }
.main-nav a:hover { color: var(--primary-deep); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
  background: var(--primary-deep);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 1px 8px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.55) 18%, rgba(255,255,255,0.15) 34%, rgba(255,255,255,0) 50%),
    url('../img/hero-bg.jpg') center 25% / cover no-repeat,
    var(--bg-section);
  color: var(--ink);
  padding: 90px 0 82px;
  min-height: 440px;
  position: relative;
  overflow: hidden;
  text-align: left;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  right: -100px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,91,0.28), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -140px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183,154,207,0.35), transparent 72%);
}
.hero-inner { position: relative; max-width: 620px; margin: 0; z-index: 1; }
.hero-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
}
.hero h1 {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin-top: .3em;
  line-height: 1.15;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary-deep);
  background: none;
  padding: 0;
}
.hero p {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.05rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-cta {
  display: inline-block;
  background: var(--primary-deep);
  color: var(--white);
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(111,79,140,0.28); }
.hero-cta-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary-deep);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  transition: all .2s ease;
}
.hero-cta-outline:hover { background: var(--primary); color: var(--white); border-color: var(--primary); transform: translateY(-2px); }

/* ---------- Section titles ---------- */
.section {
  padding: 56px 0;
  position: relative;
}
.section + .section {
  border-top: 1px solid var(--line);
}
/* petit trait décoratif centré sur la ligne de séparation */
.section + .section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
  gap: 8px;
}
.section-head h2 {
  font-family: var(--font-script);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--primary-deep);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  background: var(--gold);
}
.section-head .count { color: var(--ink-light); font-size: .9rem; }

/* ---------- Carrousel promo (accueil) ---------- */
.promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.promo-slider-track {
  display: flex;
  transition: transform .6s cubic-bezier(.65,0,.35,1);
}
.promo-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-width: 0;
  background: linear-gradient(120deg, var(--white) 55%, var(--parme-pale) 100%);
}
.promo-slide-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.promo-slide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-slide-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--primary-deep);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(111,79,140,0.35);
}
.promo-slide-body {
  padding: 20px 48px 20px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.promo-slide-cat {
  font-size: .8rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.promo-slide-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.promo-slide-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 6px 0 8px;
}
.promo-slide-price-old {
  font-size: 1.15rem;
  color: var(--ink-light);
  text-decoration: line-through;
}
.promo-slide-price-new {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary-deep);
}
.promo-slide-cta {
  font-weight: 600;
  color: var(--primary-deep);
  padding: 12px 26px;
  border: 1px solid var(--primary-deep);
  border-radius: 50px;
  transition: background-color .2s ease, color .2s ease;
}
.promo-slide:hover .promo-slide-cta { background: var(--primary-deep); color: var(--white); }

.promo-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--primary-deep);
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
  transition: background-color .2s ease, color .2s ease;
}
.promo-slider-arrow:hover { background: var(--primary-deep); color: var(--white); }
.promo-slider-arrow.prev { left: 18px; }
.promo-slider-arrow.next { right: 18px; }

.promo-slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.promo-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(111,79,140,0.28);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.promo-slider-dot.active { background: var(--primary-deep); transform: scale(1.25); }

@media (max-width: 760px) {
  .promo-slide { grid-template-columns: 1fr; gap: 0; }
  .promo-slide-img { aspect-ratio: 16 / 11; }
  .promo-slide-badge { font-size: 1.4rem; padding: 9px 14px; top: 14px; left: 14px; }
  .promo-slide-body { padding: 20px 20px 26px; align-items: center; text-align: center; }
  .promo-slide-title { font-size: 1.25rem; }
  .promo-slide-price-new { font-size: 1.6rem; }
  .promo-slider-arrow { width: 36px; height: 36px; }
  .promo-slider-arrow.prev { left: 10px; }
  .promo-slider-arrow.next { right: 10px; }
}

/* ---------- Filtres catégories ---------- */
/* Remplacées par la sidebar .cat-sidebar : on masque les anciennes pastilles */
.filters { display: none; }
.filters a {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: .85rem;
  color: var(--ink-light);
  background: var(--white);
}
.filters a.active, .filters a:hover {
  background: var(--primary-deep);
  color: var(--white);
  border-color: var(--primary-deep);
}

/* Filtres de l'admin (ex: statut des commandes) : contrairement aux .filters
   de la boutique (remplacées par la sidebar), ceux-ci doivent rester visibles. */
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.admin-filters a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: .85rem;
  color: var(--ink-light);
  background: var(--white);
  white-space: nowrap;
}
.admin-filters a.active, .admin-filters a:hover {
  background: var(--primary-deep);
  color: var(--white);
  border-color: var(--primary-deep);
}
@media (max-width: 640px) {
  .admin-filters { gap: 6px; margin-bottom: 16px; }
  .admin-filters a { padding: 7px 12px; font-size: .78rem; }
}

/* ---------- Sidebar catégories (boutique) ---------- */
.boutique-layout {
  display: flex;
  align-items: flex-start;
  gap: 34px;
}
.boutique-main { flex: 1 1 auto; min-width: 0; }

.cat-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cat-sidebar-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--primary-deep);
  padding: 16px 18px;
  background: none;
  border: none;
  cursor: default;
}
.cat-sidebar-chevron { display: none; }
.cat-sidebar-nav { display: flex; flex-direction: column; padding: 0 8px 10px; }

.cat-sidebar-all,
.cat-sidebar-promo {
  padding: 10px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--ink);
  font-weight: 500;
}
.cat-sidebar-all:hover, .cat-sidebar-promo:hover { background: var(--parme-pale); }
.cat-sidebar-all.active {
  background: var(--primary-deep);
  color: var(--white);
}
.cat-sidebar-promo { color: var(--primary-deep); font-weight: 600; }
.cat-sidebar-promo.active { background: var(--primary-deep); color: var(--white); }

.cat-item { border-top: 1px solid var(--line); padding: 2px 0; }
.cat-item:first-of-type { border-top: 1px solid var(--line); margin-top: 4px; }

.cat-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.cat-link {
  flex: 1;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--ink);
  font-weight: 500;
}
.cat-link:hover { background: var(--parme-pale); }
.cat-link.active { color: var(--primary-deep); font-weight: 700; }

.cat-toggle {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parme-pale);
  border: none;
  border-radius: 50%;
  color: var(--primary-deep);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .25s ease;
}
.cat-toggle:hover { background: var(--primary); color: var(--white); }
.cat-toggle span { display: block; transform: translateY(-1px); }
.cat-item.is-open .cat-toggle {
  background: var(--primary-deep);
  color: var(--white);
  transform: rotate(45deg);
}

.cat-sub-list {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  padding-left: 12px;
  border-left: 1px solid var(--parme-pale);
  margin-left: 16px;
  transition: max-height .35s cubic-bezier(.16,.8,.24,1);
}
.cat-item.is-open .cat-sub-list { max-height: 600px; }
.cat-sub-list a {
  padding: 8px 10px;
  font-size: .82rem;
  color: var(--ink-light);
  border-radius: 6px;
}
.cat-sub-list a:hover { background: var(--parme-pale); color: var(--primary-deep); }
.cat-sub-list a.active { color: var(--primary-deep); font-weight: 700; }

@media (max-width: 900px) {
  .boutique-layout { flex-direction: column; }
  .cat-sidebar { position: static; width: 100%; flex-basis: auto; }
  .cat-sidebar-title { cursor: pointer; }
  .cat-sidebar-chevron { display: block; transition: transform .25s ease; }
  .cat-sidebar-title[aria-expanded="true"] .cat-sidebar-chevron { transform: rotate(180deg); }
  .cat-sidebar-nav {
    display: none;
    flex-direction: column;
    padding: 0 8px 10px;
  }
  .cat-sidebar-nav.is-open { display: flex; }
}

/* ---------- Barre de recherche & filtres avancés ---------- */
.search-filter-bar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50px;
  box-shadow: var(--shadow);
  padding: 8px 8px 8px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-filter-bar.panel-open { border-radius: var(--radius); padding: 18px 20px; }

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 240px;
}
.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ink-light);
  pointer-events: none;
}
.search-row input[type="search"] {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .92rem;
  background: var(--bg);
  transition: border-color .15s ease, background .15s ease;
}
.search-row input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-row input[type="search"]:focus { outline: none; border-color: var(--primary); background: var(--white); }

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-deep);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.filter-toggle:hover { background: var(--parme-pale); border-color: var(--parme-pale); }
.filter-toggle.open { background: var(--primary-deep); color: var(--white); border-color: var(--primary-deep); }
.filter-toggle svg { flex-shrink: 0; }
.filter-toggle .chevron { transition: transform .2s ease; }
.filter-toggle.open .chevron { transform: rotate(180deg); }
.filter-toggle .count-dot {
  background: var(--gold);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.btn-search { border-radius: 8px !important; white-space: nowrap; }

.filter-panel-wrap {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.filter-panel-wrap.open { grid-template-rows: 1fr; }
.filter-panel-inner { overflow: hidden; }

.filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px 18px;
  align-items: end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.filter-field label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--ink-light);
  font-weight: 600;
  margin-bottom: 7px;
}
.filter-field input, .filter-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .88rem;
  background: var(--bg);
  transition: border-color .15s ease;
}
.filter-field input:focus, .filter-field select:focus { outline: none; border-color: var(--primary); }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; }

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  user-select: none;
}
.filter-checkbox input {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.filter-checkbox input:checked { background: var(--primary-deep); border-color: var(--primary-deep); }
.filter-checkbox input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-actions { display: flex; gap: 10px; align-items: end; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.active-filters .label { font-size: .78rem; color: var(--ink-light); }
.active-filters .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--parme-pale);
  color: var(--primary-deep);
  padding: 6px 8px 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 500;
}
.active-filters .tag a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(111, 79, 140, 0.15);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  transition: background .15s ease;
}
.active-filters .tag a:hover { background: var(--primary-deep); color: var(--white); }
.active-filters .clear-all { font-size: .78rem; color: var(--ink-light); text-decoration: underline; }
.active-filters .clear-all:hover { color: var(--primary-deep); }

/* ---------- Grille produits ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-link-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.card-img { aspect-ratio: 1/1; overflow: hidden; background: var(--parme-pale); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 600; }
.card-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.card-price { color: var(--primary-deep); font-weight: 600; margin-top: auto; }
.card-stock { font-size: .78rem; color: var(--ink-light); }
.card-stock.low { color: #B0752E; }
.card-stock.out { color: #B0342E; font-weight: 600; }
.card-actions { padding: 0 18px 18px; }
.btn-add-cart {
  width: 100%;
  font-size: .85rem;
  padding: 10px 14px;
}
.btn-add-cart[disabled] {
  opacity: .55;
  cursor: not-allowed;
  background: var(--ink-light, #999);
}
.btn-add-cart.added {
  background: #2f7d3a;
}
.btn {
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: 11px 20px;
  transition: transform .15s ease, opacity .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary-deep); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Page produit ---------- */
.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "gallery top" "gallery bottom" "gallery actions";
  gap: 48px;
  align-items: start;
}
.product-gallery { grid-area: gallery; }
.product-info-top { grid-area: top; }
.product-info-bottom { grid-area: bottom; }
.product-actions { grid-area: actions; }
.product-view .card-img { border-radius: var(--radius); }
.product-info-top .card-cat { margin-bottom: 6px; }
.product-info-top h1 { font-size: 2rem; }
.product-info-top .price { font-size: 1.5rem; color: var(--primary-deep); font-weight: 700; margin: 10px 0; }
.product-info-bottom .desc { color: var(--ink-light); margin-bottom: 20px; }
.qty-form { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.qty-input { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-body); text-align: center; }

/* ---------- Sélecteur de quantité avec boutons +/- ---------- */
.qty-control { display: flex; align-items: center; gap: 0; }
.qty-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--primary-deep);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { background: var(--parme-pale, #E7DFF0); }
.qty-btn:active { transform: scale(.94); }
.qty-btn.qty-minus { border-radius: 8px 0 0 8px; border-right: none; }
.qty-btn.qty-plus { border-radius: 0 8px 8px 0; border-left: none; }
.qty-control .qty-mini,
.qty-control .qty-input {
  border-radius: 0;
  border-left: none;
  border-right: none;
  width: 44px;
  padding: 6px 4px;
  /* Cache les flèches natives du champ number pour un look plus propre */
  -moz-appearance: textfield;
}
.qty-control .qty-mini::-webkit-inner-spin-button,
.qty-control .qty-mini::-webkit-outer-spin-button,
.qty-control .qty-input::-webkit-inner-spin-button,
.qty-control .qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-control-lg .qty-btn { width: 44px; height: 44px; font-size: 1.3rem; }
.qty-control-lg .qty-input { width: 54px; height: 44px; }

@media (max-width: 760px) {
  .product-view {
    grid-template-columns: 1fr;
    grid-template-areas: "gallery" "top" "actions" "bottom";
    row-gap: 14px;
  }
  .product-actions {
    padding-top: 4px;
  }
}

/* ---------- Panier ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-light); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 14px; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary { max-width: 340px; margin-left: auto; margin-top: 24px; background: var(--white); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; color: var(--primary-deep); margin: 12px 0 18px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
  .checkout-grid .cart-summary { max-width: 100%; margin-left: 0; margin-top: 0; }
}
.qty-mini { width: 56px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.link-remove { color: #B0342E; font-size: .82rem; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-light); }

/* Cartes empilées pour le panier sur mobile : le tableau devient illisible
   (le nom du produit se retrouve écrasé sur une colonne trop étroite et
   chaque mot passe à la ligne). On reprend le même principe que pour les
   tableaux admin : chaque ligne devient une carte, affichée en largeur. */
@media (max-width: 700px) {
  .cart-table, .cart-table thead, .cart-table tbody, .cart-table th, .cart-table td, .cart-table tr {
    display: block;
  }
  .cart-table thead { display: none; }
  .cart-table tr {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    padding: 14px;
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
  }
  .cart-table tr td:last-child { border-bottom: none; justify-content: flex-end; }
  .cart-table td:first-child {
    justify-content: flex-start;
    padding-top: 2px;
  }
  .cart-table td[data-label]::before {
    content: attr(data-label);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ink-light);
    font-weight: 600;
    flex-shrink: 0;
  }
  .cart-table .cart-item { width: 100%; }
  .cart-table .cart-item a { flex: 1; }
}

/* ---------- Formulaires ---------- */
.form-card { max-width: 620px; margin: 0 auto; background: var(--white); padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.form-group input:not([type="checkbox"]):not([type="radio"]), .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--bg);
}
.form-group input[type="checkbox"], .form-group input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: .92rem; }
.alert-error { background: #ddcbef; color: #942A2A; border: 1px solid #ddcbef; }
.alert-success { background: #EAF6EE; color: #2A7D46; border: 1px solid #C7E9D2; }
.alert-info { background: #F1EBFB; color: #6F4F8C; border: 1px solid #ddcbef; }

/* ---------- Confirmation ---------- */
.confirmation { text-align: center; padding: 70px 20px; }
.confirmation .icon { font-size: 3rem; color: var(--gold); }
.confirmation h1 { font-size: 1.9rem; margin-top: 10px; }
.confirmation .numero { display: inline-block; background: var(--bg); border: 1px dashed var(--gold); padding: 8px 20px; border-radius: 50px; font-weight: 600; color: var(--primary-deep); margin: 14px 0 22px; }

/* ---------- Footer / signature nuancier ---------- */
.site-footer { background: var(--bg-section); color: var(--ink); margin-top: 40px; border-top: 1px solid var(--line); }
.footer-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  border-bottom: 1px solid var(--line);
}
.footer-reassurance .item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  font-size: .84rem;
  color: var(--ink-light);
}
.footer-reassurance .item strong { color: var(--ink); font-weight: 600; display: block; font-size: .86rem; }
.footer-reassurance .item svg { color: var(--primary-deep); flex-shrink: 0; }
.swatch-strip { display: flex; height: 6px; }
.swatch { flex: 1; background: var(--c); }
.footer-inner { text-align: center; padding: 40px 24px; }
.footer-brand { font-family: var(--font-script); font-style: italic; color: var(--primary-deep); font-size: 1.5rem; margin-bottom: 4px; }
.footer-note { font-size: .85rem; color: var(--gold); margin-bottom: 14px; font-weight: 600; letter-spacing: .3px; }
.footer-contact { margin-bottom: 10px; }
.footer-contact a { color: var(--ink); text-decoration: none; font-size: .95rem; opacity: .85; transition: opacity .2s; }
.footer-contact a:hover { opacity: 1; color: var(--primary-deep); }
.footer-copy { font-size: .78rem; opacity: .6; }

/* Boutons flottants de contact */
.floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 999;
}
.floating-contacts-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fab-facebook { background: #1877F2; }
.fab-tiktok { background: #000000; }
.fab-whatsapp { background: #25D366; }
.fab-phone { background: var(--primary-deep); }
.fab-toggle { background: var(--primary-deep); }

/* Repliés par défaut : seul le rond principal reste visible, un clic affiche le reste */
.floating-contacts-list .fab {
  opacity: 0;
  transform: translateY(14px) scale(.7);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.floating-contacts.is-open .floating-contacts-list .fab {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.floating-contacts-list .fab:nth-child(1) { transition-delay: .08s; }
.floating-contacts-list .fab:nth-child(2) { transition-delay: .06s; }
.floating-contacts-list .fab:nth-child(3) { transition-delay: .04s; }
.floating-contacts-list .fab:nth-child(4) { transition-delay: .02s; }
.floating-contacts-list .fab:nth-child(5) { transition-delay: 0s; }
.fab-toggle svg { transition: transform .3s ease; }
.floating-contacts.is-open .fab-toggle svg { transform: rotate(45deg); }

@media (max-width: 640px) {
  .floating-contacts { right: 14px; bottom: 14px; gap: 10px; }
  .fab { width: 46px; height: 46px; }
}

/* ==========================================================
   MOBILE — refonte grille produits 3 colonnes + ajustements
   ========================================================== */
@media (max-width: 640px) {
  .container { padding: 0 28px; }

  /* La page produit ne suit pas .container mais reste dans .product-view : marge dédiée */
  .product-gallery, .product-actions, .product-info-top, .product-info-bottom { padding: 0 4px; }
  .product-info-top h1 { font-size: 1.5rem; line-height: 1.3; }
  .product-info-top .price { font-size: 1.25rem; }

  /* Header : ne reste plus "collé" en haut pendant le scroll, reste à sa place naturelle en haut de page.
     On garde position: relative (et non static) pour que le bouton burger (position: absolute)
     continue de se positionner correctement par rapport au header. */
  .site-header { position: relative; }

  /* Header compact mobile : burger à gauche, logo vraiment centré, loupe + panier à droite */
  .header-inner { padding-top: 10px; padding-bottom: 10px; justify-content: flex-start; position: relative; min-height: 120px; }
  .header-inner .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header-inner .logo img { height: auto; max-height: 94px; width: auto; max-width: 272px; object-fit: contain; }
  .main-nav { gap: 16px; font-size: .78rem; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
  .main-nav a:not(.cart-link):not(.icon-link) { display: none; }
  .main-nav .lang-switch { display: none; }
  .cart-badge { font-size: .62rem; padding: 1px 6px; }

  /* Hero resserré */
  .hero { padding: 40px 0 30px; min-height: 320px; }
  .hero {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.82) 55%, rgba(255,255,255,0.9) 100%),
      url('../img/hero-bg.jpg') 68% center / cover no-repeat,
      var(--bg-section);
  }
  .hero-inner { max-width: 100%; }
  .hero-eyebrow { font-size: .68rem; letter-spacing: 2px; }
  .hero p { font-size: .92rem; }
  .hero-cta, .hero-cta-outline { padding: 11px 24px; font-size: .88rem; }

  .section { padding: 30px 0; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 1.25rem; }
  .section-head .count { font-size: .78rem; }

  .filters { gap: 6px; margin-bottom: 18px; }
  .filters a { padding: 5px 12px; font-size: .76rem; }

  .search-filter-bar { padding: 6px 6px 6px 16px; margin-bottom: 16px; }
  .search-row { min-width: 100%; }

  /* ---------- Grille produits : 2 colonnes sur mobile ---------- */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
  /* Boutique : 2 produits par ligne sur mobile */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
  .card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(111, 79, 140, 0.10);
  }
  .card:hover { transform: none; }
  .card-body {
    padding: 8px 8px 10px;
    gap: 2px;
  }
  .card-cat {
    font-size: .55rem;
    letter-spacing: .4px;
  }
  .card-title {
    font-size: .74rem;
    line-height: 1.3;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
  }
  .card-price {
    font-size: .8rem;
    margin-top: 2px;
  }
  .card-stock {
    font-size: .6rem;
  }

  .footer-reassurance { padding: 18px 16px; gap: 8px; justify-content: center; flex-wrap: nowrap; }
  .footer-reassurance .item { flex: 1 1 0; min-width: 0; font-size: .62rem; gap: 6px; }
  .footer-reassurance .item svg { width: 16px; height: 16px; }
}

/* Très petits écrans : on garde 3 colonnes mais on resserre encore un peu */
@media (max-width: 380px) {
  .grid { gap: 6px; }
  .card-body { padding: 6px 6px 8px; }
  .card-title { font-size: .68rem; }
  .card-price { font-size: .74rem; }
}

/* Page À propos */
.about-hero {
  text-align: center;
  padding: 48px 0 24px;
}
.about-hero h1 { color: var(--primary-deep); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 56px;
}
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
}
.about-card h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  color: var(--primary-deep);
  font-size: 1.4rem;
  margin-top: 0;
}
.about-card p { color: var(--ink-light); line-height: 1.7; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.contact-list .icon.instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.contact-list .icon.facebook { background: #1877F2; }
.contact-list .icon.tiktok { background: #000000; }
.contact-list .icon.whatsapp { background: #25D366; }
.contact-list .icon.phone { background: var(--primary-deep); }
.contact-list .icon.mail { background: var(--gold); }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--primary-deep); }
.contact-list .label { color: var(--ink-light); font-size: .8rem; display: block; }

/* ---------- Admin ---------- */
.admin-body { background: #F3EEF7; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 230px;
  background: var(--primary-deep);
  color: var(--white);
  padding: 26px 20px;
  flex-shrink: 0;
}
.admin-sidebar .logo { color: var(--white); margin-bottom: 34px; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.admin-sidebar .logo .logo-mark { color: var(--gold); }
.admin-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
  font-size: .92rem;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.admin-main { flex: 1; padding: 32px 36px; min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 12px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 1.5rem; color: var(--primary-deep); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 30px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stat-card .value { font-family: var(--font-display); font-size: 1.8rem; color: var(--primary-deep); }
.stat-card .label { font-size: .82rem; color: var(--ink-light); }

/* Aide pour les mises en page 2 colonnes (tableau de bord, détail commande...) */
.admin-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) {
  .admin-split { grid-template-columns: 1fr; }
}

.table-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th { text-align: left; background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-light); padding: 12px 16px; }
table.admin-table td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.admin-table img.thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }

.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: .74rem; font-weight: 600; }
.badge-en_attente { background: #FCEFD6; color: #9A6A11; }
.badge-confirmee { background: #E1EEE3; color: #2A7D46; }
.badge-annulee { background: #ddcbef; color: #942A2A; }
.badge-livree { background: #E6DEF3; color: #6F4F8C; }

.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-danger { background: #B0342E; color: var(--white); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); padding: 20px; }
.login-card { background: var(--white); padding: 40px; border-radius: var(--radius); width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); }
.login-card .logo { color: var(--primary-deep); justify-content: center; margin-bottom: 24px; font-size: 1.8rem; }
@media (max-width: 480px) {
  .login-card { padding: 28px 22px; }
}

/* ---------- Admin : barre mobile + tiroir de navigation ---------- */
.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--primary-deep);
  color: var(--white);
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.admin-mobile-bar .admin-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-mobile-bar .admin-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}
.admin-mobile-bar .admin-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-mobile-bar .admin-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.admin-mobile-bar .admin-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.admin-mobile-bar .admin-mobile-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  z-index: 95;
}
.admin-sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}

@media (max-width: 880px) {
  .admin-mobile-bar { display: flex; }
  .admin-shell { display: block; }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(270px, 80vw);
    z-index: 96;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.16,.8,.24,1);
    box-shadow: var(--shadow-lg);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-sidebar .logo { margin-bottom: 24px; }
  .admin-sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
  }
  .admin-main { padding: 18px 16px 40px; }
  .admin-topbar h1 { font-size: 1.25rem; }
  .admin-topbar .btn { font-size: .84rem; padding: 10px 16px; }
}

/* Cartes empilées pour les tableaux admin sur petit écran : plus lisible
   qu'un défilement horizontal et plus facile à utiliser au doigt. */
@media (max-width: 760px) {
  .table-wrap:has(table.admin-table) { overflow: visible; background: none; box-shadow: none; border-radius: 0; }
  table.admin-table, table.admin-table thead, table.admin-table tbody, table.admin-table th, table.admin-table td, table.admin-table tr {
    display: block;
  }
  table.admin-table thead { display: none; }
  table.admin-table tr {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    padding: 6px 4px;
  }
  table.admin-table tr:last-child { margin-bottom: 0; }
  table.admin-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: right;
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    font-size: .9rem;
  }
  table.admin-table td:first-child { border-top: none; }
  table.admin-table td[data-label]::before {
    content: attr(data-label);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--ink-light);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
  }
  /* Cellules sans étiquette (photo, actions...) : pas de ligne label/valeur */
  table.admin-table td:not([data-label]) {
    justify-content: flex-start;
  }
  table.admin-table td.td-actions {
    justify-content: flex-start;
  }
  table.admin-table td.td-actions .actions-row { width: 100%; }
  table.admin-table td.td-actions .actions-row .btn { flex: 1; text-align: center; }
  table.admin-table img.thumb { width: 50px; height: 50px; }
  table.admin-table td input[type="number"] {
    max-width: 120px !important;
    margin-left: auto;
  }
  /* Ligne "aucun résultat" : pas de mise en page label/valeur */
  table.admin-table tr:has(td[colspan]) { box-shadow: none; background: none; }
  table.admin-table td[colspan] { display: block; text-align: center; padding: 24px 8px; }
  table.admin-table td[colspan]::before { content: none; }
}

/* Formulaires admin : évite le zoom automatique iOS et empile mieux */
@media (max-width: 640px) {
  .form-card { padding: 22px 18px; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; }
  .admin-topbar { align-items: stretch; }
  .admin-topbar .btn { width: 100%; }
}

/* ---------- Admin : barre de recherche des listes ---------- */
.admin-search-form { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-search-input { position: relative; flex: 1; min-width: 180px; max-width: 360px; }
.admin-search-input svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-light); pointer-events: none; }
.admin-search-input input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--white);
}
.admin-search-input input[type="search"]::-webkit-search-cancel-button { display: none; }
.admin-search-input input[type="search"]:focus { outline: none; border-color: var(--primary); }
.admin-search-clear { font-size: .82rem; color: var(--ink-light); white-space: nowrap; text-decoration: underline; }
.admin-search-clear:hover { color: var(--primary-deep); }
.admin-search-form .admin-filter-select {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: .85rem;
  background: var(--white);
  color: var(--ink);
  max-width: 220px;
}
@media (max-width: 640px) {
  .admin-search-form { gap: 8px; margin-bottom: 16px; }
  .admin-search-input { max-width: none; min-width: 0; flex-basis: 100%; }
  .admin-search-form .admin-filter-select { flex: 1; max-width: none; font-size: 16px; }
  .admin-search-form .btn { flex: 1; }
}

/* ==========================================================
   Rangée de catégories en icônes
   ========================================================== */
.cat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px auto 8px;
}
.cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  transition: all .2s ease;
}
.cat-pill:hover {
  border-color: var(--primary);
  background: var(--parme-pale);
  color: var(--primary-deep);
}
.cat-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--parme-pale);
  color: var(--primary-deep);
  font-size: .8rem;
}
@media (max-width: 640px) {
  .cat-strip { gap: 8px; margin: 18px auto 4px; }
  .cat-pill { padding: 7px 12px; font-size: .74rem; }
  .cat-pill-icon { width: 20px; height: 20px; font-size: .68rem; }
}

/* ---------- Cartes produits premium ---------- */
.card {
  position: relative;
  overflow: hidden;
}
.card-img { position: relative; overflow: hidden; }
.card-img img { transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.06); }

.card.is-new .card-img::before {
  content: "Nouveau";
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--white);
  font-size: .68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* ---------- Promotions produit ---------- */
.badge-promo {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-deep);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 3;
  letter-spacing: .2px;
}
.price-old {
  text-decoration: line-through;
  color: var(--ink-light);
  font-weight: 400;
  font-size: .82em;
  margin-right: 7px;
}
.price-new { color: var(--primary-deep); font-weight: 700; }
.product-info-top .price .price-old { font-size: .6em; }

.btn, .hero-cta {
  border-radius: 8px !important;
}

/* ---------- Icônes header (recherche / panier) ---------- */
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--ink);
}
.icon-link:hover { color: var(--primary-deep); }
.cart-icon-svg {
  transition: transform .2s ease;
}
.cart-link:hover .cart-icon-svg { transform: scale(1.06); }
.icon-link .cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary-deep);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---------- Barre de réassurance ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transform: translateY(-26px);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  flex: 1 1 180px;
  min-width: 160px;
}
.trust-item div { display: flex; flex-direction: column; color: var(--ink); }
.trust-item strong { font-size: .85rem; font-weight: 600; color: var(--ink); }
.trust-item span { font-size: .74rem; color: var(--ink-light); }
@media (max-width: 640px) {
  .trust-bar {
    padding: 14px 16px;
    gap: 0;
    justify-content: space-around;
    transform: translateY(-16px);
    flex-wrap: nowrap;
    overflow-x: visible;
  }
  .trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: 1 1 0;
    min-width: 0;
    padding: 0 4px;
  }
  .trust-item div { align-items: center; }
  .trust-item strong {
    font-size: .62rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }
  .trust-item span { display: none; }
  .trust-item svg { width: 20px; height: 20px; flex-shrink: 0; }
}

/* ==========================================================
   Bandeau promo — mise en avant d'un code promo actif
   ========================================================== */
.promo-banner {
  position: relative;
  display: block;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-deep) 100%);
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 8px 0 40px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 220px;
}
.promo-banner::before {
  content: "";
  position: absolute;
  right: -40px; top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,161,91,0.35), transparent 70%);
  pointer-events: none;
}
.promo-banner-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 36px 24px;
  min-height: 220px;
}
.promo-banner-percent {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.promo-banner-copy { font-size: .95rem; line-height: 1.4; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.promo-banner-copy strong { display: block; font-size: 1rem; }
.promo-banner-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.16);
  border: 1px dashed rgba(255,255,255,0.6);
  border-radius: 50px;
  padding: 3px 14px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-left: 4px;
}
.promo-banner-cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--white);
  color: var(--primary-deep);
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  white-space: nowrap;
  margin-top: 6px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo-banner-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
@media (max-width: 640px) {
  .promo-banner { margin: 0 0 24px; min-height: 200px; }
  .promo-banner-main { padding: 26px 18px; min-height: 200px; }
  .promo-banner-percent { font-size: 1.8rem; }
  .promo-banner-copy { font-size: .82rem; }
  .promo-banner-copy strong { font-size: .88rem; }
  .promo-banner-cta { padding: 9px 20px; font-size: .82rem; }
}

/* ==========================================================
   Nos catégories — page d'accueil (style carte pleine image + overlay)
   ========================================================== */
.cat-phares-section { padding-top: 8px; padding-bottom: 8px; }
.cat-phares-head {
  text-align: center;
  margin-bottom: 28px;
}
.cat-phares-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.cat-phares-heading {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: 2rem;
  color: var(--ink);
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.cat-phares-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 2px;
  background: var(--gold);
}

.cat-phares-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-phares-scroll::-webkit-scrollbar { display: none; }

.cat-phares-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 20px;
}
/* Desktop: static grid, no scroll needed when few items */
@media (min-width: 901px) {
  .cat-phares-track {
    display: grid;
    grid-auto-flow: unset;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.cat-phare-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--parme-pale), var(--primary));
}
.cat-phare-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.cat-phare-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(30,15,35,.75) 100%);
}
.cat-phare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cat-phare-link {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
}
.cat-phare-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-deep);
  transition: transform .3s ease, background .3s ease;
}
.cat-phare-card:hover img { transform: scale(1.08); }
.cat-phare-card:hover .cat-phare-arrow { transform: translateX(2px); background: var(--gold); color: #fff; }

@media (max-width: 900px) {
  .cat-phares-track { grid-auto-columns: 30%; }
  .cat-phares-heading { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  .cat-phares-track { grid-auto-columns: 32%; gap: 10px; }
  .cat-phares-head { margin-bottom: 20px; }
  .cat-phares-heading { font-size: 1.4rem; }
  .cat-phare-link { font-size: .6rem; }
  .cat-phare-arrow { width: 20px; height: 20px; }
  .cat-phare-overlay { padding: 10px 9px; }
}

/* ==========================================================
   Animations — entrées douces, survols élégants
   ========================================================== */

/* --- Apparition au scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Entrée du hero au chargement --- */
.hero-eyebrow, .hero h1, .hero p, .hero-actions {
  opacity: 0;
  animation: heroIn .8s cubic-bezier(.16,.8,.24,1) forwards;
}
.hero-eyebrow  { animation-delay: .05s; }
.hero h1       { animation-delay: .18s; }
.hero p        { animation-delay: .32s; }
.hero-actions  { animation-delay: .46s; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Logo & nav --- */
.logo-mark {
  display: inline-block;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-mark { transform: rotate(90deg) scale(1.15); }

.main-nav a:not(.icon-link) { transition: color .25s ease; }
.main-nav a:not(.icon-link)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--primary-deep);
  transition: right .3s cubic-bezier(.16,.8,.24,1);
}
.main-nav a:not(.icon-link):hover::after { right: 0; }

.icon-link { transition: color .25s ease, transform .25s ease; }
.icon-link:hover { transform: translateY(-2px); }

.cart-badge { animation: badgePop .45s cubic-bezier(.34,1.56,.64,1) .5s backwards; }
@keyframes badgePop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

/* --- Cartes produits : transitions plus douces --- */
.card {
  transition: transform .45s cubic-bezier(.16,.8,.24,1), box-shadow .45s ease;
}
.card-img img { transition: transform .6s cubic-bezier(.16,.8,.24,1); }

/* --- Boutons --- */
.btn, .hero-cta, .hero-cta-outline {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, background-color .25s ease, opacity .25s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(111,79,140,0.20); }
.btn:active:not(:disabled) { transform: translateY(0); }

/* --- Pastilles catégories --- */
.cat-pill { transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .25s ease, color .25s ease, border-color .25s ease; }
.cat-pill:hover { transform: translateY(-2px); }

/* --- Barre de réassurance : icônes qui respirent légèrement --- */
.trust-item svg { transition: transform .3s ease; }
.trust-item:hover svg { transform: scale(1.1); }

/* --- Boutons flottants de contact --- */
.floating-contacts .fab {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.floating-contacts .fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

/* --- Champs de recherche / filtres --- */
.search-row input[type="search"], .filter-field input, .filter-field select {
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.filter-toggle { transition: background-color .25s ease, color .25s ease, transform .2s ease; }
.filter-toggle:active { transform: scale(.97); }

/* --- Confort : on respecte les préférences d'accessibilité --- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-eyebrow, .hero h1, .hero p, .hero-actions, .cart-badge,
  .floating-contacts .fab, body, body.page-leaving {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================
   Animations v2 — pack élégant renforcé
   ========================================================== */

/* --- Anti-FOUC + confort de scroll --- */
html { scroll-behavior: smooth; }
body {
  opacity: 0;
  animation: bodyIn .55s cubic-bezier(.16,.8,.24,1) forwards;
  transition: opacity .28s ease, transform .28s ease;
}
@keyframes bodyIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Transition de sortie (avant de quitter la page) --- */
body.page-leaving {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

/* --- Barre de progression de scroll --- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--primary-deep));
  z-index: 999;
  transition: width .1s linear;
}

/* --- Hero : halo qui respire (et suit légèrement la souris) --- */
.hero::before { animation: haloPulseA 6s ease-in-out infinite; }
.hero::after  { animation: haloPulseB 7s ease-in-out infinite 1.4s; }
@keyframes haloPulseA {
  0%, 100% { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1); opacity: .85; }
  50%      { transform: translate(var(--parallax-x, 0), var(--parallax-y, 0)) scale(1.15); opacity: 1; }
}
@keyframes haloPulseB {
  0%, 100% { transform: translate(calc(var(--parallax-x, 0) * -1), calc(var(--parallax-y, 0) * -1)) scale(1); opacity: .85; }
  50%      { transform: translate(calc(var(--parallax-x, 0) * -1), calc(var(--parallax-y, 0) * -1)) scale(1.15); opacity: 1; }
}
.hero-cta { position: relative; }
.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(111,79,140,.45);
  animation: ctaGlow 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes ctaGlow {
  0%   { box-shadow: 0 0 0 0 rgba(111,79,140,.45); }
  70%  { box-shadow: 0 0 0 14px rgba(111,79,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,79,140,0); }
}

/* --- Titres de section : trait décoratif doré, comme "Catégorie phare" --- */

/* --- Cartes produits : effet miroitement au survol + tilt doux --- */
.card {
  transform-style: preserve-3d;
  perspective: 800px;
}
.card-img::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
  transition: left .75s ease;
}
.card:hover .card-img::after { left: 130%; }

/* --- Boutons primaires : balayage lumineux --- */
.btn-primary, .hero-cta {
  position: relative;
  overflow: hidden;
}
.btn-primary::before, .hero-cta::before {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.btn-primary:hover::before, .hero-cta:hover::before { left: 130%; }

/* --- Pastilles catégories : pas d'entrée en cascade --- */
.cat-strip .cat-pill {
  opacity: 1;
  transform: none;
}

/* --- Bandeau promo : lueur douce en continu --- */
.promo-banner::before { animation: haloPulse 5s ease-in-out infinite; }
.promo-banner-code { animation: codeShimmer 3.2s ease-in-out infinite; }
@keyframes codeShimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0.08); }
}

/* --- Bandeau des teintes (footer) : apparition en cascade --- */
.swatch-strip .swatch {
  opacity: 0;
  transform: scale(.4);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.swatch-strip.is-visible .swatch,
.swatch-strip.reveal.is-visible .swatch { opacity: 1; transform: scale(1); }
.swatch-strip .swatch:nth-child(1) { transition-delay: .02s; }
.swatch-strip .swatch:nth-child(2) { transition-delay: .08s; }
.swatch-strip .swatch:nth-child(3) { transition-delay: .14s; }
.swatch-strip .swatch:nth-child(4) { transition-delay: .2s; }
.swatch-strip .swatch:nth-child(5) { transition-delay: .26s; }
.swatch-strip .swatch:nth-child(6) { transition-delay: .32s; }
.swatch-strip .swatch:nth-child(7) { transition-delay: .38s; }

/* --- Confort : version réduite pour les préférences d'accessibilité --- */
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1; animation: none; }
  .hero::before, .hero::after, .hero-cta::after,
  .card-img::after, .btn-primary::before, .hero-cta::before,
  .promo-banner::before, .promo-banner-code,
  .swatch-strip .swatch {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #scroll-progress { display: none; }
}

/* ==========================================================
   Menu latéral coulissant (Catégories / À propos / Promos)
   ========================================================== */

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.header-inner { padding-left: 44px; }
@media (max-width: 640px) {
  .burger-btn { left: 12px; }
  .header-inner { padding-left: 36px; }
}
.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary-deep);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}
.burger-btn:hover span { background: var(--primary); }
.burger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 42, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
  z-index: 90;
}
.side-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .4s ease, visibility 0s linear 0s;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 82vw);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 91;
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.16,.8,.24,1);
  display: flex;
  flex-direction: column;
}
.side-menu.is-open { transform: translateX(0); }

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.side-menu-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-deep);
  font-size: 1.05rem;
}
.side-menu-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-light);
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.side-menu-close:hover { color: var(--primary-deep); transform: rotate(90deg); }

.side-menu-nav {
  padding: 10px 12px;
  overflow-y: auto;
}
.side-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  background: none;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.side-menu-item:hover {
  background: var(--parme-pale);
  color: var(--primary-deep);
}
.side-menu-item .chev {
  transition: transform .3s cubic-bezier(.16,.8,.24,1);
}
.side-menu-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }

.side-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16,.8,.24,1);
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}
.side-submenu.is-open { max-height: 2000px; }
.side-submenu a {
  padding: 10px 18px;
  font-size: .88rem;
  color: var(--ink-light);
  border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.side-submenu a:hover {
  background: var(--parme-pale);
  color: var(--primary-deep);
}

.side-cat-item { padding: 2px 0; }
.side-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.side-cat-row a {
  flex: 1;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .88rem;
  color: var(--ink-light);
}
.side-cat-row a:hover { background: var(--parme-pale); color: var(--primary-deep); }

.side-cat-toggle {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--parme-pale);
  border: none;
  border-radius: 50%;
  color: var(--primary-deep);
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, transform .25s ease;
}
.side-cat-toggle:hover { background: var(--primary); color: var(--white); }
.side-cat-toggle span { display: block; transform: translateY(-1px); }
.side-cat-item.is-open .side-cat-toggle {
  background: var(--primary-deep);
  color: var(--white);
  transform: rotate(45deg);
}

.side-cat-sublist {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  padding-left: 12px;
  margin-left: 24px;
  border-left: 1px solid var(--parme-pale);
  transition: max-height .35s cubic-bezier(.16,.8,.24,1);
}
.side-cat-item.is-open .side-cat-sublist { max-height: 600px; }
.side-cat-sublist a {
  padding: 8px 10px;
  font-size: .8rem;
  color: var(--ink-light);
  border-radius: 6px;
}
.side-cat-sublist a:hover { background: var(--parme-pale); color: var(--primary-deep); }
