/* ============================================================
   VARIABLES & RESET  —  Thème ukrainien (Option C)
   ============================================================ */
:root {
  --clr-bg:           #080F18;
  --clr-bg-alt:       #060C15;
  --clr-surface:      #0C1520;
  --clr-border:       rgba(255,215,0,0.12);
  --clr-border-sub:   rgba(255,255,255,0.06);
  --clr-text:         #ffffff;
  --clr-text-muted:   rgba(255,255,255,0.4);
  --clr-accent:       #FFD700;
  --clr-accent-light: #FFE033;
  --clr-accent-hover: #E6C200;
  --clr-accent-blue:  #5BA3E8;
  --clr-accent-navy:  #1A5FA8;
  --clr-olive:        #5BA3E8;
  --clr-footer:       #060C15;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --transition: .22s ease;
  --font: 'Inter', system-ui, sans-serif;
}

/* ── Thème clair (toggle utilisateur) ───────────────────── */
[data-theme="light"] {
  --clr-bg:           #ffffff;
  --clr-bg-alt:       #f5f5f0;
  --clr-surface:      #fafafa;
  --clr-border:       #e8e8e4;
  --clr-border-sub:   #e8e8e4;
  --clr-text:         #1a1a1a;
  --clr-text-muted:   #6b6b6b;
  --clr-accent:       #2d5016;
  --clr-accent-light: #3d6b20;
  --clr-accent-hover: #234010;
  --clr-accent-blue:  #1A5FA8;
  --clr-accent-navy:  #1A5FA8;
  --clr-olive:        #6b7c45;
  --clr-footer:       #1a1a1a;
  --radius: 12px;
  --radius-lg: 20px;
}

[data-theme="light"] .header::before { background: rgba(255,255,255,.92) !important; }
[data-theme="light"] .product-card   { background: #fff !important; }
[data-theme="light"] .hx-dropdown    { background: #fff !important; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea { background: #fff !important; }
[data-theme="light"] .footer { background: var(--clr-footer) !important; color: rgba(255,255,255,.7) !important; }
[data-theme="light"] .btn--primary   { color: #fff !important; }
[data-theme="light"] .btn--outline   { border-color: #e8e8e4 !important; color: #1a1a1a !important; }
[data-theme="light"] .btn--outline:hover { border-color: #2d5016 !important; color: #2d5016 !important; }
[data-theme="light"] .hero__stats    { background: #2d5016 !important; }
[data-theme="light"] .hero__badge    { background: #2d5016 !important; color: #fff !important; font-size: .78rem !important; padding: 4px 14px !important; border-radius: 100px !important; border: none !important; letter-spacing: .08em !important; }
[data-theme="light"] .hero__title em { color: #6b7c45 !important; }
[data-theme="light"] .sep-h          { display: none; }
[data-theme="light"] .admin-sidebar  { background: #fff !important; border-right-color: #e8e8e4 !important; }
[data-theme="light"] .admin-nav__item.active { background: #f5f5f0 !important; color: #2d5016 !important; border-left: none !important; }
[data-theme="light"] .admin-stat-card { background: #fff !important; border-color: #e8e8e4 !important; }
[data-theme="light"] .admin-stat-card__num { color: #2d5016 !important; }

/* ── Thème sombre = identique à :root (pas d'overrides nécessaires) ── */
[data-theme="dark"] { }

/* ── Barre de recherche déroulante ───────────────────────── */
.search-bar {
  max-height: 0;
  overflow: hidden;
  background: var(--clr-bg);
  border-bottom: 0.5px solid transparent;
  transition: max-height .3s ease, border-color .3s ease;
}
.search-bar.open {
  max-height: 72px;
  border-bottom-color: rgba(255,215,0,0.12);
}
.search-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  color: var(--clr-text-muted);
}
.search-bar__inner input {
  flex: 1;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--clr-text);
  background: transparent;
}
.search-bar__inner input:focus { outline: none; }
.search-bar__close {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.search-bar__close:hover { background: var(--clr-bg-alt); }

/* Dark theme overrides removed — dark is now the default (:root) */

/* ── Header extras (thème + langue) ─────────────────────── */
.header-extras {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hx-picker { position: relative; }
.hx-btn {
  height: 30px;
  padding: 0 8px;
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
  white-space: nowrap;
}
.hx-btn:hover { border-color: rgba(255,215,0,0.3); color: rgba(255,255,255,0.8); }
.hx-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0C1520;
  border: 0.5px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  padding: 4px;
  min-width: 150px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 500;
}
.hx-dropdown.open { display: flex; }
.hx-option {
  padding: 7px 10px;
  border: none;
  background: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: .82rem;
  cursor: pointer;
  text-align: left;
  color: rgba(255,255,255,0.6);
  transition: background var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hx-option:hover       { background: rgba(255,255,255,0.05); color: #fff; }
.hx-option--active     { color: var(--clr-accent); }
.hx-code               { font-size: .75rem; font-weight: 600; color: var(--clr-text-muted); margin-left: auto; padding-left: 8px; }
.fi { font-size: 1.15rem; border-radius: 3px; vertical-align: middle; flex-shrink: 0; }
/* Force la hauteur du drapeau dans les boutons flex (flag-icons ne définit pas height) */
.hx-btn .fi, .hx-option .fi { width: 1.4em !important; height: 1.1em !important; }
.header-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--clr-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--clr-border);
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 480px) { .hx-btn span:not(.fi) { display: none; } .hx-btn { padding: 0 8px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--clr-bg); color: var(--clr-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   UTILS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section--gray {
  background: var(--clr-bg-alt);
}
.section__head {
  text-align: center;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.section__sub {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
}
.section__more {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--clr-accent);
  color: #080F18;
  border-color: var(--clr-accent);
  border-radius: var(--radius);
}
.btn--primary:hover {
  background: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,215,0,0.25);
}
.btn--outline {
  background: transparent;
  color: var(--clr-accent-blue);
  border-color: rgba(26,95,168,0.5);
  border-radius: var(--radius);
}
.btn--outline:hover {
  border-color: var(--clr-accent-blue);
  color: var(--clr-accent-blue);
  background: rgba(91,163,232,0.06);
  transform: translateY(-1px);
}

.btn-icon {
  background: none;
  border: none;
  padding: 7px;
  border-radius: 6px;
  color: rgba(255,255,255,0.45);
  position: relative;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }

.btn-cart, .btn-voir {
  background: var(--clr-accent);
  color: #080F18;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.btn-cart:hover, .btn-voir:hover {
  background: var(--clr-accent-hover);
  transform: scale(1.04);
}
.btn-cart:active, .btn-voir:active { transform: scale(.97); }

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.btn-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HEADER
   ============================================================ */
/* ── Bandeau d'annonce ──────────────────────────────────── */
#siteBanner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--clr-accent);
  color: #fff;
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 99;
  animation: bannerSlide .35s ease;
}
@keyframes bannerSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.site-banner__msg { flex: 1; }
.site-banner__close {
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: .85rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.site-banner__close:hover { background: rgba(255,255,255,.35); }
[data-theme="dark"] #siteBanner { background: #2d5a2d; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 0.5px solid rgba(255,215,0,0.12);
}

/* Ligne séparatrice dorée */
.sep-h {
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.35), transparent);
  flex-shrink: 0;
}
/* Pseudo-élément pour le blur — évite que backdrop-filter crée un
   containing block pour position:fixed (bug notif-dropdown mobile) */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,15,24,0.95);
  backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 4px;
  flex-shrink: 0;
}
.logo__icon {
  font-size: 1.2rem;
  color: var(--clr-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 5px 11px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  transition: all var(--transition);
}
.nav__link:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.8);
}
.nav__link--active {
  color: var(--clr-accent);
  background: rgba(255,215,0,0.07);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--clr-accent);
  color: #080F18;
  font-size: .6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.cart-badge.bump { transform: scale(1.4); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--clr-bg);
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 300px;
  background: radial-gradient(ellipse at center bottom, rgba(26,95,168,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
  min-height: 520px;
}
.hero__badge {
  display: inline-block;
  background: transparent;
  color: var(--clr-accent-blue);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  margin-bottom: 20px;
  border: none;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--clr-accent);
}
.hero__desc {
  color: var(--clr-text-muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}
.hero__badge-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(26,95,168,0.2));
  border: 1px solid rgba(255,215,0,0.2);
  color: #FFD700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: .15em;
  z-index: 2;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 40px rgba(255,215,0,0.08);
}
.hero__shapes { position: absolute; inset: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .05;
  background: var(--clr-accent-blue);
}
.shape--1 { width: 300px; height: 300px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.shape--2 { width: 220px; height: 220px; top: 10%; right: 10%; opacity: .04; }
.shape--3 { width: 140px; height: 140px; bottom: 10%; left: 10%; background: var(--clr-accent); opacity: .06; }

.hero__stats {
  background: var(--clr-bg-alt);
  border-top: 0.5px solid rgba(255,215,0,0.12);
  border-bottom: 0.5px solid rgba(255,215,0,0.12);
  padding: 24px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-right: 0.5px solid rgba(255,215,0,0.15);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}
.stat__label {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card--wide { grid-column: span 2; }
.cat-card--tall { grid-row: span 2; min-height: 376px; }

.cat-card__bg {
  position: absolute;
  inset: 0;
  transition: transform .4s ease;
}
.cat-card:hover .cat-card__bg { transform: scale(1.04); }
.cat-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}
.cat-card__content {
  position: relative;
  z-index: 2;
  padding: 24px;
  color: #fff;
}
.cat-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.cat-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.cat-card__desc {
  font-size: .82rem;
  opacity: .8;
  margin-bottom: 10px;
}
.cat-card__link {
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  transition: all var(--transition);
}
.cat-card:hover .cat-card__link {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Loading dots nouveautés */
.featured-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 60px 0;
}
.featured-loading span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-accent);
  animation: featuredDot .9s ease-in-out infinite;
}
.featured-loading span:nth-child(2) { animation-delay: .15s; }
.featured-loading span:nth-child(3) { animation-delay: .30s; }
@keyframes featuredDot {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1);  opacity: 1; }
}

/* Vide nouveautés */
.featured-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  color: var(--clr-text-muted);
  font-size: .95rem;
}

.product-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--clr-border-sub);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,215,0,0.2);
}

.product-card__img {
  position: relative;
  background: var(--clr-bg-alt);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__emoji { font-size: 4.5rem; }
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--clr-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-card__badge--sale { background: #c0392b; }

.product-card__body { padding: 16px 20px 20px; }
.product-card__cat {
  font-size: .72rem;
  font-weight: 400;
  color: var(--clr-accent-blue);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.product-card__name {
  font-size: 1rem;
  font-weight: 600;
  margin: 6px 0 14px;
  line-height: 1.3;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-card__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-accent);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  max-width: 860px;
  margin: 0 auto;
}
.about__text {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin: 20px 0 28px;
}
.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about__list li {
  font-weight: 500;
  color: var(--clr-text);
}
/* Contenu À propos dynamique (rich text admin) */
.about__dynamic h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--clr-text);
}
.about__dynamic h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--clr-text);
}
.about__dynamic p,
.about__dynamic div {
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin: 10px 0;
}
.about__dynamic p:first-child,
.about__dynamic div:first-child { margin-top: 0; }
.about__dynamic ul,
.about__dynamic ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}
.about__dynamic ul li,
.about__dynamic ol li { font-weight: 500; color: var(--clr-text); }
.about__dynamic ol    { list-style: decimal; padding-left: 20px; }


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 0.5px solid var(--clr-border-sub);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--clr-surface);
  color: var(--clr-text);
  transition: border var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
}
.form-success {
  display: none;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: 14px;
  font-size: .95rem;
}
.form-success.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--clr-footer);
  border-top: 0.5px solid rgba(255,215,0,0.12);
  color: rgba(255,255,255,.45);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 80px;
  padding: 60px 24px 48px;
}
.footer__brand .logo { color: #fff; margin-bottom: 12px; }
.footer__brand .logo__icon { color: var(--clr-accent); }
.footer__brand p { font-size: .88rem; line-height: 1.6; }
.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer__col h4 {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: .88rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
  font-size: .83rem;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--clr-surface);
  color: rgba(255,255,255,0.9);
  border: 0.5px solid rgba(255,215,0,0.2);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all .3s ease;
  z-index: 200;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablette paysage (≤ 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-card--wide  { grid-column: span 2; }
  .cat-card--tall  { grid-row: auto; min-height: 200px; }


  .footer__inner { gap: 48px; }
  .footer__links { gap: 24px; }
}

/* ── Tablette portrait (≤ 860px) ─────────────────────────── */
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .section__head { margin-bottom: 40px; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 52px;
    padding-bottom: 48px;
    min-height: auto;
    gap: 0;
  }
  .hero__visual { display: none; }
  .hero__title  { font-size: clamp(2rem, 6vw, 3rem); }
  .hero__desc   { max-width: 100%; }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid { grid-template-columns: repeat(2, 1fr); }


  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 24px 36px;
  }
}

/* ── Grand mobile (≤ 680px) ──────────────────────────────── */
@media (max-width: 680px) {
  .container { padding: 0 16px; }

  /* Header — flex-wrap pour que le menu pousse le contenu vers le bas */
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    align-items: center;
    align-content: flex-start;
    gap: 0;
    padding: 0 16px;
  }
  .logo            { order: 1; flex-shrink: 0; min-height: 64px; }
  .header__actions { order: 2; flex-shrink: 0; margin-left: auto; min-height: 64px; display: flex; align-items: center; gap: 2px; }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 12px 12px;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-bg);
    align-items: flex-start;
  }
  .nav.open .nav__link {
    font-size: .95rem;
    font-weight: 500;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
  }
  .nav.open .nav__link::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--clr-accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
  }
  .nav.open .nav__link:hover,
  .nav.open .nav__link:active {
    background: var(--clr-bg-alt);
    color: var(--clr-accent);
  }
  .nav.open .nav__link:hover::before,
  .nav.open .nav__link:active::before { opacity: 1; }
  .btn-menu { display: flex; }

  /* Hero */
  .hero__inner { padding-top: 36px; padding-bottom: 48px; }
  .hero__badge { font-size: .72rem; }
  .hero__title  { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero__desc   { font-size: .95rem; }
  .hero__btns   { flex-direction: column; gap: 10px; }
  .hero__btns .btn { justify-content: center; width: 100%; }

  /* Stats */
  .hero__stats { padding: 20px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 12px 8px;
  }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .stat__num   { font-size: 1.5rem; }
  .stat__label { font-size: .72rem; }

  /* Categories */
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cat-card--wide { grid-column: span 2; }
  .cat-card--tall { grid-row: auto; min-height: 160px; }
  .cat-card       { min-height: 140px; }
  .cat-card__content { padding: 16px; }
  .cat-card__icon  { font-size: 1.6rem; margin-bottom: 4px; }
  .cat-card__name  { font-size: .95rem; }
  .cat-card__desc  { display: none; }

  /* Products */
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__img { height: 160px; }
  .product-card__emoji { font-size: 3.5rem; }
  .product-card__body { padding: 12px 14px 14px; }
  .product-card__name { font-size: .9rem; margin-bottom: 10px; }
  .product-card__price { font-size: 1rem; }
  .btn-cart, .btn-voir { padding: 7px 11px; font-size: .78rem; }

  /* About */
  .about__list li { font-size: .9rem; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer__links { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand p { font-size: .82rem; }
}

/* ── Mobile (≤ 480px) ────────────────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 28px; }

  /* Categories : 1 colonne sur très petit écran */
  .categories-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card--wide  { grid-column: span 1; }
  .cat-card        { min-height: 130px; }
  .cat-card__desc  { display: none; }

  /* Products : 1 colonne */
  .products-grid { grid-template-columns: 1fr; }
  .product-card__img { height: 180px; }
  .product-card__emoji { font-size: 4rem; }


  /* Footer */
  .footer__links { grid-template-columns: 1fr; gap: 24px; }
  .footer__inner { padding: 36px 16px 28px; }

  /* Toast */
  .toast { left: 16px; right: 16px; bottom: 16px; text-align: center; }

  /* Buttons */
  .btn { padding: 12px 20px; font-size: .9rem; }
}

/* ── Très petit mobile (≤ 360px) ─────────────────────────── */
@media (max-width: 360px) {
  .hero__title { font-size: 1.7rem; }
  .logo__text  { font-size: .9rem; }
  .stat__num   { font-size: 1.3rem; }
  .btn-icon    { padding: 4px; }
  .hx-btn      { padding: 0 3px; min-width: 22px; }
}

/* ── Menu mobile ouvert ──────────────────────────────────── */

/* ── Notification dropdown — mobile ─────────────────────── */
@media (max-width: 600px) {
  .notif-dropdown {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: min(300px, calc(100vw - 16px));
  }
}

/* ── Header compact mobile : évite le wrap des icônes ────── */
@media (max-width: 480px) {
  /* Réduire padding de chaque bouton icône */
  .btn-icon { padding: 5px; }
  .hx-btn   { padding: 0 4px; min-width: 26px; }

  /* Masquer le prénom dans le bouton compte (garde seulement l'avatar) */
  #accountBtn > span:not(.header-avatar) { display: none !important; }
  #accountBtn { gap: 0 !important; font-size: 0 !important; }

  /* Supprimer les espaces entre éléments du header */
  .header__actions { gap: 1px !important; }
  .header-extras   { gap: 0; }

  /* Logo légèrement réduit */
  .logo__text { font-size: 1rem; }
  .logo       { gap: 6px; }
}

/* ── Cloche notifications ───────────────────────────────── */
.notif-wrap {
  position: relative;
}
.notif-bell {
  position: relative;
  font-size: 1.1rem;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e53935;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  z-index: 999;
  overflow: hidden;
}
.notif-dropdown.open { display: block; }
.notif-dropdown__hdr {
  padding: 14px 16px 10px;
  font-weight: 700;
  font-size: .88rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.notif-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--clr-border);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--clr-bg-alt); }
.notif-item--unread { background: rgba(99,102,241,.06); }
.notif-item__img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-item__img img { width: 100%; height: 100%; object-fit: cover; }
.notif-item__fallback { font-size: 1.4rem; }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__title {
  font-size: .83rem;
  font-weight: 600;
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item__offer {
  font-size: .78rem;
  color: var(--clr-accent);
  font-weight: 600;
  margin-top: 2px;
}
.notif-empty {
  text-align: center;
  color: var(--clr-text-muted);
  padding: 20px;
  font-size: .85rem;
}
