/* ══════════════════════════════════════════════════════════════
   Asty. — Design System — CSS partagé
   Contient : variables, reset, navbar, boutons, cartes, produits,
              catégories, filtres, pagination, empty state,
              flash messages, footer, cookie, focus-visible,
              micro-interactions, responsive.
   ══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --ink:        #1C1917;
  --parch:      #F6F2EC;
  --cream:      #FDFAF6;
  --white:      #FFFFFF;
  --c-bg:       #F6F2EC; /* alias for --parch, used across templates */

  /* ── BRAND PALETTE ── */
  --primary:    #1D4D3A; /* deep forest green */
  --secondary:  #5A7A8A; /* gris-bleu ardoise */
  --primary-lt: rgba(29,77,58,.10);
  --secondary-lt: rgba(90,122,138,.12);

  --cta:       #0A0A0A;
  --slate:     #5A7A8A;
  --slate-lt:  rgba(90,122,138,.12);

  --copper:     #B87333;
  --copper-lt:  #F2E8DC;
  --success-lt:     rgba(44,95,63,.08);
  --success-border: rgba(44,95,63,.2);
  --copper-pale:    rgba(184,115,51,.08);
  --copper-border:  rgba(184,115,51,.25);
  --info-lt:        rgba(43,91,132,.08);
  --info-border:    rgba(43,91,132,.18);
  --ink-pale:       rgba(28,25,23,.03);
  --terracotta: #C4622D;

  --forest:     #2C5F3F;
  --med-blue:   #2B5B84;

  --stone:      #7B746C;
  --bone:       #E8E2D8;
  --sand:       #D4C4A8;
  --danger:     #B83232;

  --f-serif: 'Fraunces', Georgia, serif;
  --f-sans:  'Outfit', system-ui, sans-serif;

  --text-xs:   0.625rem;
  --text-sm:   0.8125rem;
  --text-base: 0.875rem;
  --text-md:   1rem;
  --text-lg:   1.125rem;

  --r-sm:   8px;
  --r-card: 16px;
  --r-lg:   24px;
  --r-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(28,25,23,.07);
  --shadow-md: 0 8px 24px rgba(28,25,23,.10);
  --shadow-lg: 0 16px 48px rgba(28,25,23,.13);
  --shadow-xl: 0 24px 64px rgba(28,25,23,.18);

  --ease:   cubic-bezier(.25,.46,.45,.94);
  --t-fast: .15s;
  --t-base: .22s;
  --t-slow: .4s;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--parch);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── FOCUS VISIBLE (accessibilité clavier) ── */
*:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── NAVBAR ── */
.nav-wrap {
  position: sticky; top: 0; z-index: 900;
  background: rgba(246,242,236,.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bone);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 28px; height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* ── NAV SEARCH BAR ── */
.nav-search-form {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid var(--bone);
  border-radius: var(--r-pill);
  padding: 0 4px 0 12px;
  height: 34px;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  min-width: 0;
}
.nav-search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,77,58,.10);
}
.nav-search-icon {
  color: var(--stone); font-size: .78rem; flex-shrink: 0; margin-right: 8px;
}
.nav-search-input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--f-sans); font-size: .8rem; color: var(--ink);
  min-width: 0;
}
.nav-search-input::placeholder { color: #c2b9ae; }
.nav-search-input::-webkit-search-cancel-button { display: none; }
.nav-search-btn {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: .7rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.nav-search-btn:hover { background: var(--secondary); transform: scale(1.05); }

@media (max-width: 767px) {
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 16px; }
  .nav-search-form { max-width: none; padding: 0 4px 0 10px; }
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-logo-word {
  font-family: var(--f-serif); font-size: 1.6rem; font-weight: 400;
  letter-spacing: -.3px; line-height: 1;
}
.nav-icons { display: flex; align-items: center; gap: 6px; }
.nav-btn {
  position: relative; color: var(--ink);
  font-size: 1.1rem; text-decoration: none;
  display: flex; align-items: center;
  cursor: pointer; border: none; background: none;
  min-width: 32px; min-height: 44px;
  justify-content: center;
  transition: color var(--t-fast);
}
.nav-btn:hover { color: var(--copper); }
.nav-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--copper); color: #fff;
  font-family: var(--f-sans); font-size: .5rem; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-fast);
}
.nav-dropdown {
  border: 1px solid var(--bone) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 10px !important;
  min-width: 230px; background: var(--white) !important;
}
.nav-dropdown .dropdown-item {
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 400;
  color: var(--ink); padding: 9px 12px; border-radius: 10px;
  display: flex; align-items: center; gap: 10px;
  transition: background var(--t-fast), color var(--t-fast);
  background: transparent !important;
}
.nav-dropdown .dropdown-item:hover { background: var(--parch) !important; color: var(--copper) !important; }
.nav-dropdown .dropdown-item:hover i { color: var(--copper) !important; }
.nav-dropdown .dropdown-item i { color: var(--stone); font-size: .9rem; }
.nav-dropdown .dropdown-header {
  font-family: var(--f-sans); font-size: .75rem; color: var(--stone);
  padding: 4px 12px 10px; border-bottom: 1px solid var(--bone); margin-bottom: 4px;
}
.nav-dropdown .dropdown-divider { border-color: var(--bone); margin: 5px 0; }
.nav-dropdown .dropdown-item.text-danger { color: var(--danger) !important; }
.nav-dropdown .dropdown-item.text-danger i { color: var(--danger) !important; }

/* ── BOUTONS ── */
.btn-asty {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--white);
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 500;
  padding: 13px 32px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.btn-asty:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-asty-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 500;
  padding: 12px 28px; border-radius: var(--r-pill);
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
}
.btn-asty-outline:hover { background: var(--ink); color: var(--white); }

.btn-asty-copper {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--copper); color: var(--white);
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 500;
  padding: 13px 32px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
}
.btn-asty-copper:hover { background: var(--terracotta); color: var(--white); transform: translateY(-1px); }

/* ── KICKER ── */
.kicker {
  display: inline-block;
  font-family: var(--f-sans); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--copper); margin-bottom: 14px;
}

/* ── CARD ── */
.card-asty {
  background: var(--white);
  border: 1px solid var(--bone);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* ── FLASH MESSAGES ── */
.flash-msg {
  max-width: 1400px; margin: 12px auto 0;
  padding: 12px 28px 12px 20px;
  border-radius: var(--r-card);
  font-family: var(--f-sans); font-size: var(--text-base);
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid;
}
.flash-success { background: #edf7f0; color: #1f5c36; border-color: var(--forest); }
.flash-danger  { background: #fdf0f0; color: #7a1c1c; border-color: var(--danger); }
.flash-warning { background: #fef9ec; color: #7a5a1c; border-color: var(--copper); }
.flash-info    { background: #eff4fb; color: #1c3d62; border-color: var(--med-blue); }

/* ── GRILLE PRODUITS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 64px;
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ── CARTE PRODUIT ── */
.p-card {
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.p-card.visible { opacity: 1; transform: translateY(0); }

.p-img {
  position: relative; aspect-ratio: 4/5;
  border-radius: var(--r-card); overflow: hidden;
  background: #ffffff; flex-shrink: 0;
}
.p-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease); display: block;
}
.p-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  color: #fff; font-size: .62rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  pointer-events: none; letter-spacing: .3px;
}
.p-img > a {
  display: block; width: 100%; height: 100%;
  position: relative; z-index: 0;
}
.p-img-empty {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  opacity: .18; font-size: 2.5rem; color: var(--stone);
}

.p-wish {
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: transform var(--t-base), background var(--t-base), border-color var(--t-base); padding: 0;
}
.p-wish i { font-size: .85rem; color: var(--stone); transition: color var(--t-fast); }
.p-wish.active { background: rgba(184,115,51,.12); border-color: rgba(184,115,51,.3); }
.p-wish.active i { color: var(--copper); }
.p-wish:hover { transform: scale(1.1); }

/* CTA — overlay fade au hover, jamais de translateY */
.p-cta {
  position: absolute;
  bottom: 50px; left: 50%;
  transform: translateX(-50%);
  width: 70%;
  background: #0A0A0A; color: #fff;
  border: none; border-radius: 100px;
  padding: 9px 0; cursor: pointer;
  font-family: var(--f-sans); font-size: .8rem; font-weight: 500;
  white-space: nowrap; text-align: center; display: block;
  z-index: 10; opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, background .15s;
}
.p-card:hover .p-cta { opacity: 1; pointer-events: auto; }
.p-cta:hover { background: #2a2a2a; }

@media (hover: hover) {
  .p-card:hover .p-img img { transform: scale(1.04); }
}

.p-info {
  display: flex; flex-direction: column;
  padding: 10px 2px 10px; flex: 1;
}
.p-brand {
  font-size: .68rem; font-weight: 500; letter-spacing: .6px;
  text-transform: uppercase; color: var(--stone);
  margin-bottom: 4px;
}

.p-vendor {
  font-family: var(--f-sans); font-size: .63rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px; color: var(--stone);
  display: flex; align-items: center; gap: 4px; margin-bottom: 5px;
  text-decoration: none;
}
.p-vendor i { color: var(--copper); font-size: .68rem; }
.p-name {
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 400;
  color: var(--ink); text-decoration: none; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 8px; transition: color var(--t-fast);
}
.p-name:hover { color: var(--copper); }
.p-price {
  font-family: var(--f-serif); font-size: 1.1rem; font-weight: 500;
  color: var(--ink); margin-top: auto;
}
.p-stars {
  display: flex; align-items: center; gap: 3px;
  font-size: .72rem; color: var(--copper); margin-bottom: 4px;
}
.p-stars span { font-size: .7rem; color: var(--stone); margin-left: 2px; }

/* ── CATÉGORIES PILLS ── */
.cats-bar {
  padding: 28px 0 18px;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
}
.cats-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap;
  font-family: var(--f-sans); font-size: var(--text-sm); font-weight: 400;
  color: var(--stone); text-decoration: none;
  padding: 8px 20px; border-radius: var(--r-pill);
  border: 1px solid var(--bone); background: var(--white);
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.cat-pill:hover { border-color: var(--primary); color: var(--primary); }
.cat-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ── SECTION BAR ── */
.section-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; padding: 24px 0 20px;
}
.section-title {
  font-family: var(--f-serif); font-size: 1.6rem;
  font-weight: 400; letter-spacing: -.3px;
}
.results-count {
  font-family: var(--f-sans); font-size: var(--text-sm); color: var(--stone);
}

/* ── FILTRES CHIPS ── */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 12px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-sans); font-size: .75rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  background: var(--copper-lt); border: 1px solid rgba(184,115,51,.25);
  padding: 5px 14px; border-radius: var(--r-pill);
  transition: background var(--t-base), color var(--t-base);
}
.filter-chip:hover { background: var(--bone); color: var(--ink); }
.filter-chip i { font-size: .65rem; opacity: .7; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 64px 24px;
  color: var(--stone); grid-column: 1 / -1;
}
.empty-state i, .empty-state .bi { font-size: 3rem; opacity: .3; display: block; margin-bottom: 20px; }
.empty-state p { font-size: var(--text-base); margin-bottom: 28px; }

/* ── PAGINATION ── */
.pager { display: flex; justify-content: center; gap: 8px; margin-bottom: 88px; flex-wrap: wrap; }
.pager a, .pager span {
  font-family: var(--f-sans); font-size: var(--text-sm); font-weight: 400;
  padding: 10px 24px; border-radius: var(--r-pill);
  border: 1px solid var(--bone); background: var(--white);
  color: var(--ink); text-decoration: none; transition: border-color var(--t-base), background var(--t-base), color var(--t-base);
}
.pager a:hover { border-color: var(--ink); }
.pager span.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── CATALOGUE WRAP ── */
.catalog-wrap { max-width: 1400px; margin: 0 auto; padding: 0 28px; }

/* ── BREADCRUMB ── */
.breadcrumb-bar { max-width: 1400px; margin: 0 auto; padding: 16px 28px 0; }
.breadcrumb-bar a { font-size: var(--text-sm); color: var(--stone); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--ink); }
.breadcrumb-bar span { font-size: var(--text-sm); color: var(--stone); margin: 0 6px; }

/* ── FORMULAIRES ── */
.input-asty {
  width: 100%; border: 1px solid var(--bone); border-radius: var(--r-pill);
  padding: 11px 20px; font-family: var(--f-sans); font-size: var(--text-base);
  background: var(--white); color: var(--ink); outline: none;
  transition: border-color var(--t-fast);
}
.input-asty:focus { border-color: var(--copper); }
.input-asty::placeholder { color: #c2b9ae; }

/* ── BADGE VÉRIFIÉ ── */
.badge-verifie {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-sans); font-size: .7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--forest); background: #e8f3ec;
  border: 1px solid rgba(44,95,63,.2);
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--white);
  border: 1px solid var(--bone); border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 24px; max-width: 700px; width: calc(100% - 48px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--f-sans);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease, transform .4s ease;
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cookie-content { display: flex; align-items: flex-start; gap: 16px; }
.cookie-icon { font-size: 1.5rem; color: var(--copper); margin-top: 2px; }
.cookie-text h6 { font-family: var(--f-serif); font-size: 1.1rem; margin: 0 0 4px; color: var(--ink); }
.cookie-text p { margin: 0; font-size: .85rem; color: var(--stone); line-height: 1.5; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--ink); color: #fff; border: none;
  padding: 10px 24px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; cursor: pointer; transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--forest); }
.btn-cookie-refuse {
  background: transparent; color: var(--stone);
  border: 1px solid var(--bone);
  padding: 10px 24px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s;
}
.btn-cookie-refuse:hover { color: var(--ink); border-color: var(--stone); }

/* ── PAGE HEADER SUB-CLASSES (kicker / title / sub) ── */
.page-header-kicker {
  font-family: var(--f-sans); font-size: var(--text-xs);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: var(--secondary);
  display: block; margin-bottom: 10px;
}
.page-header-title {
  font-family: var(--f-serif); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; color: var(--primary); letter-spacing: -.5px;
  margin: 0 0 6px;
}
.page-header-sub {
  font-family: var(--f-serif); font-style: italic;
  font-size: var(--text-sm); color: var(--stone);
  margin: 0; line-height: 1.6;
}

/* ── FOOTER — Crème, texte forêt ── */
.footer-asty {
  background: var(--parch);
  border-top: 1px solid var(--bone);
  padding: 60px 28px 0;
  font-family: var(--f-sans);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 52px;
  border-bottom: 1px solid var(--bone);
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.footer-logo-owl  { height: 38px; width: auto; }
.footer-logo-text { height: 30px; width: auto; }
.footer-tagline {
  font-family: var(--f-serif); font-style: italic;
  font-size: var(--text-sm); color: var(--stone);
  line-height: 1.8; max-width: 340px;
}
.footer-col-title {
  font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--stone); margin-bottom: 22px; display: block;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer-links a {
  color: var(--primary); text-decoration: none;
  font-size: var(--text-sm); font-weight: 400; opacity: .70;
  transition: opacity var(--t-fast);
}
.footer-links a:hover { opacity: 1; }
.footer-bottom {
  padding: 24px 0;
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: var(--text-xs); color: var(--sand); letter-spacing: .4px;
}
.footer-bottom-sep { opacity: .5; }

/* ── MICRO-INTERACTIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Ripple sur boutons */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple .ripple-effect {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0); pointer-events: none;
  animation: ripple-anim .6s linear forwards;
}
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .nav-inner { padding: 0 16px; }
  .catalog-wrap { padding: 0 16px; }
  .breadcrumb-bar { padding: 12px 16px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .footer-asty { padding: 48px 20px 0; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-content { flex-direction: column; align-items: center; text-align: center; }
  .cookie-actions { flex-direction: row; }
  .cookie-actions button { flex: 1; }
  .pager a, .pager span { padding: 9px 16px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .p-card { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════
   SHARED COMPONENT ADDITIONS
   ══════════════════════════════════════════════ */

/* ── BUTTON ALIASES (used across many templates) ── */
.btn-primary-asty {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--white);
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 500;
  padding: 13px 32px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--t-base), transform var(--t-base);
}
.btn-primary-asty:hover { background: var(--forest); color: var(--white); transform: translateY(-2px); }

.btn-outline-asty {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--ink);
  font-family: var(--f-sans); font-size: var(--text-base); font-weight: 500;
  padding: 12px 28px; border-radius: var(--r-pill);
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background var(--t-base), color var(--t-base);
}
.btn-outline-asty:hover { background: var(--ink); color: var(--white); }

/* ── FLASH MESSAGES — VARIANT CLASSES (category-based) ── */
.flash-msg.success, .flash-msg.flash-success {
  background: #edf7f0; color: #1f5c36; border-color: var(--forest);
}
.flash-msg.danger, .flash-msg.flash-danger {
  background: #fdf0f0; color: #7a1c1c; border-color: var(--danger);
}
.flash-msg.info, .flash-msg.flash-info {
  background: #eff4fb; color: #1c3d62; border-color: var(--med-blue);
}
.flash-msg.warning, .flash-msg.flash-warning {
  background: #fef9ec; color: #7a5a1c; border-color: var(--copper);
}
/* Dismiss button inside flash */
.flash-msg .flash-close {
  background: none; border: none; cursor: pointer;
  color: inherit; font-size: 1.1rem; opacity: .6;
  margin-left: auto; flex-shrink: 0; line-height: 1; padding: 0;
  transition: opacity var(--t-fast);
}
.flash-msg .flash-close:hover { opacity: 1; }

/* ── FLASH CONTAINER ── */
.flash-container { padding: 0 28px; max-width: 1400px; margin: 12px auto 0; }
@media (max-width: 767px) { .flash-container { padding: 0 16px; } }

/* ── PAGE HEADER (shared across account/catalog pages) ── */
.page-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
  margin: 48px 0 32px; border-bottom: 1px solid var(--bone); padding-bottom: 24px;
}
.page-title {
  font-family: var(--f-serif); font-size: clamp(2rem,4vw,2.8rem);
  font-weight: 300; letter-spacing: -.5px; color: var(--ink); margin: 0;
}
@media (max-width: 767px) { .page-header { margin: 32px 0 24px; } }

/* ── PAGE WRAP (common content container) ── */
.page-wrap { max-width: 1200px; margin: 0 auto 80px; padding: 0 28px; }
@media (max-width: 767px) { .page-wrap { padding: 0 16px; margin-bottom: 100px; } }

/* ── CLIENT ACCOUNT LAYOUT (sidebar + main) ── */
.client-layout {
  max-width: 1100px; margin: 0 auto 80px; padding: 0 28px;
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
  align-items: start;
}
.client-sidebar {
  position: sticky; top: 90px;
  background: var(--white); border: 1px solid var(--bone);
  border-radius: var(--r-card); padding: 24px; overflow: hidden;
}
.client-sidebar-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-family: var(--f-serif); font-size: 1.3rem; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; flex-shrink: 0;
}
.client-sidebar-name {
  font-family: var(--f-sans); font-size: .9rem; font-weight: 500;
  color: var(--ink); margin-bottom: 2px;
}
.client-sidebar-email {
  font-size: var(--text-xs); color: var(--stone); margin-bottom: 20px;
  word-break: break-all;
}
.client-sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.client-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-sans); font-size: var(--text-sm); font-weight: 400;
  color: var(--stone); text-decoration: none; padding: 9px 12px;
  border-radius: 10px; transition: background var(--t-fast), color var(--t-fast);
}
.client-sidebar-nav a:hover { background: var(--parch); color: var(--ink); }
.client-sidebar-nav a.active {
  background: var(--parch); color: var(--ink); font-weight: 500;
  border-left: 2px solid var(--copper);
}
.client-sidebar-nav a i { font-size: .9rem; width: 16px; text-align: center; }
@media (max-width: 900px) {
  .client-layout { grid-template-columns: 1fr; gap: 24px; }
  .client-sidebar { position: static; }
}

/* ── BOTTOM NAV MOBILE ── */
.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 62px; padding-bottom: env(safe-area-inset-bottom,0px);
  background: rgba(246,242,236,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bone);
  z-index: 800;
  justify-content: space-around; align-items: center;
}
@media (max-width: 767px) { .bottom-nav { display: flex; } }

.bnav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--stone);
  font-family: var(--f-sans); font-size: .6rem; font-weight: 500;
  padding: 8px 0; transition: color var(--t-fast);
  position: relative;
}
.bnav-item i { font-size: 1.2rem; display: block; }
.bnav-item.active {
  color: var(--copper);
}
.bnav-item.active::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 2px; background: var(--copper); border-radius: 0 0 2px 2px;
}
.bnav-badge {
  position: absolute; top: 6px; right: calc(50% - 16px);
  background: var(--copper); color: #fff;
  font-size: .45rem; font-weight: 700;
  min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
}
/* Push body content up so bottom nav doesn't overlap */
@media (max-width: 767px) {
  body { padding-bottom: 62px; }
}

/* ── STATUS BADGES ── */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--f-sans); font-size: .7rem; font-weight: 600;
}
.badge-status.success { background: var(--success-lt); color: var(--forest); border: 1px solid var(--success-border); }
.badge-status.neutral { background: var(--parch); color: var(--stone); border: 1px solid var(--bone); }
.badge-status.warning { background: var(--copper-lt); color: var(--copper); border: 1px solid var(--copper-border); }
.badge-status.info { background: var(--info-lt); color: var(--med-blue); border: 1px solid var(--info-border); }
.badge-status.danger { background: rgba(184,50,50,.06); color: var(--danger); border: 1px solid rgba(184,50,50,.15); }

/* ── CARD VARIANTS ── */
.card-asty.padded { padding: 32px; }
.card-asty.padded-sm { padding: 20px; }

/* ── CARD SECTION TITLE ── */
.card-section-title {
  font-family: var(--f-serif); font-size: 1.15rem; font-weight: 400;
  color: var(--ink); margin: 0 0 20px;
}

/* ── LEGAL HERO ── */
.legal-hero {
  background: var(--cream); text-align: center;
  padding: 64px 28px 56px;
  border-bottom: 1px solid var(--bone);
  border-radius: 0 0 32px 32px;
}
.legal-hero-kicker {
  font-family: var(--f-sans); font-size: .63rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--secondary); display: block; margin-bottom: 14px;
}
.legal-hero-title {
  font-family: var(--f-serif); font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300; color: var(--primary); letter-spacing: -.5px; margin: 0;
}

/* ── LEGAL PAGE LAYOUT ── */
.legal-wrap {
  max-width: 760px; margin: 0 auto 80px; padding: 48px 28px 0;
}
.legal-wrap h2 {
  font-family: var(--f-serif); font-size: 1.4rem; font-weight: 400;
  color: var(--primary); margin: 40px 0 14px;
  border-bottom: 1px solid var(--bone); padding-bottom: 8px;
}
.legal-wrap h3 {
  font-family: var(--f-sans); font-size: 1rem; font-weight: 600;
  margin: 24px 0 8px; color: var(--ink);
}
.legal-wrap p, .legal-wrap li {
  font-size: var(--text-base); color: var(--stone);
  line-height: 1.75; margin-bottom: 12px;
}
.legal-wrap ul, .legal-wrap ol { padding-left: 24px; margin-bottom: 16px; }
.legal-wrap strong { color: var(--ink); }
.legal-wrap a { color: var(--copper); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-last-update {
  font-family: var(--f-sans); font-size: var(--text-sm); color: var(--stone); margin-bottom: 40px; display: block;
}
.legal-highlight {
  background: var(--copper-lt); padding: 2px 7px;
  border-radius: 4px; font-weight: 600; color: var(--copper);
}
.legal-wrap table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.legal-wrap th {
  background: var(--parch); font-family: var(--f-sans); font-size: .78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 10px 14px; text-align: left; border: 1px solid var(--bone);
}
.legal-wrap td {
  padding: 10px 14px; font-size: var(--text-sm); color: var(--stone);
  border: 1px solid var(--bone); vertical-align: top; line-height: 1.5;
}
@media (max-width: 767px) { .legal-wrap { padding: 32px 16px 0; } }

/* ── INFO BAND (section CTA sombre réutilisable) ── */
.info-band {
  background: var(--forest); border-radius: 24px;
  padding: 60px 40px; text-align: center; margin: 40px 0 80px;
}
.info-band h2 {
  font-family: var(--f-serif); font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; margin-bottom: 12px; letter-spacing: -1px; font-weight: 300;
}
.info-band p { color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 28px; }
.btn-white {
  display: inline-block; background: #fff; color: var(--forest);
  padding: 13px 28px; border-radius: var(--r-pill); font-family: var(--f-sans);
  font-weight: 600; font-size: .9rem; text-decoration: none; transition: background .18s, color .18s;
}
.btn-white:hover { background: var(--parch); color: var(--forest); }
.btn-outline-white {
  display: inline-block; border: 1.5px solid rgba(255,255,255,.5); color: #fff;
  padding: 13px 28px; border-radius: var(--r-pill); font-family: var(--f-sans);
  font-size: .9rem; text-decoration: none; transition: border-color .18s;
}
.btn-outline-white:hover { border-color: #fff; }

/* ── SECTION ALTERNÉE PARCH (pattern vitrine) ── */
.catalog-section {
  background: var(--parch);
  padding: 48px 0;
  border-top: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
}

/* ── FADE-IN STAGGER (animation cartes au scroll) ── */
.fade-in-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.fade-in-card.visible { opacity: 1; transform: none; }

/* ── EMPTY STATE — sub-elements ── */
.empty-state-owl {
  width: 56px; opacity: .28;
  display: block; margin: 0 auto 16px;
}
.empty-state-title {
  font-family: var(--f-serif); font-size: 1.4rem; font-weight: 300;
  color: var(--ink); margin-bottom: 8px;
}
.empty-state-sub {
  font-size: var(--text-base); color: var(--stone);
  line-height: 1.6; margin-bottom: 24px;
}

/* ── TOAST NOTIFICATIONS ── */
.toast-wrap {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2000; pointer-events: none;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast-asty {
  pointer-events: auto;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-pill); padding: 12px 24px;
  font-size: var(--text-base); font-family: var(--f-sans);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn var(--t-base) var(--ease);
  white-space: nowrap;
}
.toast-asty.success { background: var(--forest); }
.toast-asty.danger  { background: var(--danger); }
.toast-asty.warning { background: var(--copper); }
@keyframes toastIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }

/* ── READONLY INPUT ── */
.input-asty[readonly], .input-asty:disabled {
  background: var(--parch); color: var(--stone);
  border-color: transparent; cursor: default;
}

/* ── GHOST ICON BUTTON ── */
.btn-ghost-icon {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer;
  font-family: var(--f-sans); font-size: var(--text-base);
  color: var(--stone); padding: 8px 4px;
  transition: color var(--t-fast);
}
.btn-ghost-icon:hover { color: var(--ink); }
.btn-ghost-icon i { color: var(--danger); }

/* ── ZONE DANGER ── */
.danger-zone {
  background: rgba(184,50,50,.04);
  border: 1px solid rgba(184,50,50,.2);
  border-radius: var(--r-card); padding: 28px;
}
.danger-zone-title {
  font-family: var(--f-sans); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--danger);
  margin-bottom: 8px;
}

/* ── PRICE DISPLAY (fiche produit) ── */
.p-price-wrap { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.p-price-ttc {
  font-family: var(--f-serif); font-size: 2rem; font-weight: 300;
  color: var(--ink); letter-spacing: -.3px;
}
.p-price-original {
  font-family: var(--f-serif); font-size: 1.2rem;
  color: var(--stone); text-decoration: line-through;
}
.p-price-badge {
  background: var(--danger); color: var(--white);
  font-size: .7rem; font-weight: 700; padding: 3px 8px;
  border-radius: var(--r-pill); letter-spacing: .5px;
}
