@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

:root {
  --bg-primary: #F5F7FA;
  --bg-secondary: #FFFFFF;
  --accent: #FF6B00;
  --accent-2: #E05300;
  --accent-light: #FFF0E6;
  --navy: #0B2545;
  --navy-2: #07152B;
  --brand-red: #FF6B00;
  --brand-red-hover: #E05300;
  --navy-light: #EEF2FF;
  --text-dark: #0F172A;
  --text-main: #334155;
  --grey-light: #F1F5F9;
  --grey-text: #64748B;
  --grey-border: #E2E8F0;
  --green: #059669;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --red: #DC3545;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.025);
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.045);
  --shadow-hover: 0 24px 50px rgba(15, 23, 42, 0.07);
  --shadow-orange: 0 12px 35px rgba(255, 107, 0, 0.2);
  --shadow-navy: 0 12px 35px rgba(26, 58, 107, 0.1);
  --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font: 'Outfit', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 70px;
  /* compensate for fixed navbar */
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--navy-light);
  border-top: 1px solid rgba(11, 58, 130, 0.03);
  border-bottom: 1px solid rgba(11, 58, 130, 0.03);
}

/* ───────── ANNOUNCEMENT BAR ───────── */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #0B3A82;
  color: rgba(255, 255, 255, .9);
  padding: .45rem 0;
  font-size: .78rem;
  font-weight: 600;
  overflow: hidden;
  z-index: 1002;
  border-bottom: 2px solid var(--accent);
}

.announcement-bar-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.announcement-bar-track span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ───────── NAVBAR ───────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--navy);
  padding: 0;
  transition: box-shadow .3s ease, background .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(11, 37, 69, 0.3);
  z-index: 1003;
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.navbar-logo .accent {
  color: var(--accent);
}

/* Navbar Search */
.navbar-search-wrap {
  flex: 1;
  max-width: 400px;
  margin: 0 1rem;
  position: relative;
}

.navbar-search-wrap input {
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: .55rem 3rem .55rem 1.25rem;
  font-size: .88rem;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}

.navbar-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.navbar-search-wrap input:focus {
  background: rgba(255, 255, 255, 0.2);
}

.navbar-search-wrap button {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin-left: auto;
}

.navbar-nav a {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: white;
  background: rgba(255, 255, 255, .12);
}

.navbar-nav a.active {
  color: white;
}

/* Cart icon */
.navbar-cart {
  position: relative;
  color: white;
  font-size: 1.4rem;
  padding: .35rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.navbar-cart:hover {
  color: white;
  opacity: 0.85;
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 1rem;
  min-width: 18px;
  text-align: center;
  animation: cartBounce .4s ease;
}

@keyframes cartBounce {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.3)
  }
}

/* WA nav button */
.btn-wa-nav {
  background: var(--whatsapp);
  color: white;
  border: none;
  padding: .5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-wa-nav:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.03);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 1050;
  padding: 2rem 1.5rem;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s ease, visibility .35s ease;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.mobile-menu nav a {
  color: white;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, .35) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: transform .5s ease, opacity .5s ease;
}

.btn:active::after {
  transform: scale(2);
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 107, 0, .35);
}

.btn-order {
  background: var(--brand-red);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.2);
}

.btn-order:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.35);
  color: white;
}

.btn-navy {
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow-navy);
}

.btn-navy:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--grey-border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, .5);
}

.btn-outline-white:hover {
  background: white;
  color: var(--accent);
}

.btn-lg {
  padding: .95rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: .45rem 1rem;
  font-size: .82rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .35);
  color: white;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ───────── SECTIONS ───────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title .highlight {
  color: var(--accent);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 540px;
  margin: 0 auto;
}

.section-divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  border-radius: 99px;
  margin: 1rem auto 0;
}

/* ───────── STATS BAR ───────── */
.stats-bar {
  background: var(--navy);
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .value {
  font-size: 2.8rem;
  font-weight: 900;
  color: white;
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-item .label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-item .icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: .5rem;
  display: block;
}

/* ───────── UNIFIED PRODUCT CARD (PREMIUM) ───────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--grey-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(11, 58, 130, 0.1);
  border-color: rgba(11, 58, 130, 0.15);
}

.card-img-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .card-img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.badge-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.badge-tag.none {
  display: none;
}

.badge-tag.stock_limite {
  background: #ef4444;
}

.badge-tag.nouveau {
  background: var(--navy);
}

.badge-tag.promo {
  background: #f59e0b;
}

.badge-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

.card-actions-overlay {
  position: absolute;
  top: 60px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-card:hover .card-actions-overlay {
  opacity: 1;
  transform: translateX(0);
}

.action-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-red);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

.action-btn-circle:hover {
  background: var(--brand-red);
  color: white;
  transform: scale(1.1);
}

.action-btn-circle.favorite-btn.active {
  color: #ef4444;
}

.card-grade-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: #059669;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d1fae5;
}

.card-body {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-stars i {
  color: #F0A500;
  font-size: 0.75rem;
}

.star-count {
  font-size: 0.75rem;
  color: var(--grey-text);
  font-weight: 600;
}

.card-title {
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.4;
}

.card-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.card-title a:hover {
  color: var(--accent);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.8rem;
  color: var(--grey-text);
  font-weight: 600;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.stock-indicator i {
  font-size: 0.45rem;
}

.stock-indicator.in {
  color: var(--green);
}

.stock-indicator.low {
  color: var(--accent);
}

.stock-indicator.out {
  color: var(--grey-text);
}

.card-pricing {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.old-price {
  font-size: 0.9rem;
  color: var(--grey-text);
  text-decoration: line-through;
}

.savings-amount {
  font-size: 0.75rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.source-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--grey-border);
  border-radius: 6px;
  padding: 4px;
  min-width: 65px;
  margin-left: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.source-badge-label {
  font-size: 8px;
  color: #94A3B8;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.source-badge-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
  margin-top: 2px;
}

.source-badge-text {
  font-size: 0.65rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.card-footer-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.card-footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-card-cart,
.btn-card-order,
.btn-card-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-card-cart {
  background: var(--accent);
  color: white;
}

.btn-card-cart:hover {
  background: var(--accent-2);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-card-order {
  background: var(--text-dark);
  color: white;
}

.btn-card-order:hover {
  background: #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn-card-wa {
  background: #f1f5f9;
  color: var(--whatsapp);
  border: 1px solid var(--grey-border);
}

.btn-card-wa:hover {
  background: var(--whatsapp);
  color: white;
  border-color: var(--whatsapp);
}

/* ───────── TOAST NOTIFICATION ───────── */
.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  color: var(--text-dark);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toastFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  border-left: 4px solid var(--accent);
  pointer-events: auto;
}

@keyframes toastFadeIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.removing {
  animation: toastFadeOut 0.4s ease forwards;
}

@keyframes toastFadeOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

.toast i {
  font-size: 1.25rem;
}

.toast.success {
  border-left-color: #059669;
}

.toast.success i {
  color: #059669;
}

.toast.error {
  border-left-color: #DC2626;
}

.toast.error i {
  color: #DC2626;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--grey-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: .5rem;
}

.product-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  line-height: 1.35;
}

.product-card-body h3 a {
  color: var(--text-dark);
  transition: color .2s;
}

.product-card-body h3 a:hover {
  color: var(--accent);
}

.product-card-body p {
  font-size: .85rem;
  color: var(--grey-text);
  margin-bottom: .75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card-body p.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

.btn-voir-plus {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1rem;
}

.btn-voir-plus:hover {
  text-decoration: underline;
}

/* Stars */
.product-stars {
  color: #F59E0B;
  font-size: .8rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.product-stars span {
  font-size: .75rem;
  color: var(--grey-text);
  font-weight: 600;
}

/* Note badge (was Grade) */
.note-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* Stock bar */
.stock-bar-wrap {
  margin: .6rem 0;
}

.stock-bar-label {
  font-size: .72rem;
  color: var(--grey-text);
  font-weight: 600;
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
}

.stock-bar-track {
  background: var(--grey-light);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent), #EF4444);
  transition: width .8s ease;
}

.stock-bar-fill.low {
  background: linear-gradient(to right, var(--red), #E75353);
}

/* Price */
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .75rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.product-original-price {
  font-size: 1.1rem;
  text-decoration: line-through;
  color: var(--grey-text);
  font-weight: 500;
}

/* Article count mini */
.article-mini {
  background: var(--grey-light);
  border-radius: 8px;
  padding: .5rem .75rem;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  margin-bottom: .75rem;
  border: 1px dashed var(--grey-border);
}

.article-mini .ppa {
  font-weight: 700;
  color: var(--navy);
}

/* Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: auto;
}

/* ───────── PRODUCT DETAIL ───────── */
.product-page-wrapper {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.product-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 110px;
}

.product-gallery-main {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-gallery-main img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 620px;
}

.product-details-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title-section h1 {
  font-size: 2rem;
  margin-bottom: .5rem;
  letter-spacing: -.5px;
}

.product-info-pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.product-info-pill {
  background: var(--grey-light);
  border: 1px solid var(--grey-border);
  padding: .4rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-price-box {
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.product-detail-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: .5rem;
}

.product-detail-price del {
  font-size: 1.1rem;
  color: var(--grey-text);
  font-weight: 500;
}

.product-desc-box {
  border-top: 1px solid var(--grey-border);
  padding-top: 1.5rem;
}

.product-desc-box h3 {
  font-size: 1.05rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-description-text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-main);
}

/* Watchers badge */
.product-watchers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF3E8;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, .2);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 700;
}

/* ───────── BREADCRUMB ───────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--grey-text);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--grey-border);
}

/* ───────── FILTER BAR ───────── */
.filter-bar {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.1rem;
  background: white;
  color: var(--text-main);
  border: 1.5px solid var(--grey-border);
  border-radius: 50px;
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.filter-chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ───────── STEPS ───────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(to right, var(--accent), var(--navy));
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  color: var(--accent);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-title {
  font-weight: 700;
  margin-bottom: .5rem;
}

.step-desc {
  font-size: .88rem;
  color: var(--grey-text);
}

/* ───────── FAQ ───────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s;
  user-select: none;
}

.faq-question:hover {
  background: var(--accent-light);
}

.faq-question.open {
  color: var(--accent);
  background: var(--accent-light);
}

.faq-question i {
  transition: transform .3s ease;
  font-size: .9rem;
  flex-shrink: 0;
}

.faq-question.open i {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: .92rem;
  color: var(--grey-text);
  line-height: 1.7;
}

.faq-answer.open {
  display: block;
  animation: fadeDown .25s ease;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───────── CTA SECTION ───────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-radius: var(--radius-xl);
  margin: 0 2rem;
  padding: 5rem 3rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(232, 101, 10, .1) 0%, transparent 60%);
}

/* ───────── FOOTER ───────── */
footer {
  background: #141d34;
  color: rgba(255, 255, 255, .8);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, .6);
}

.footer-heading {
  color: white;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: 1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.footer-payments {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.payment-badge {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: .45rem .9rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255, 255, 255, .4);
  flex-wrap: wrap;
  gap: 1rem;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.trust-badge {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: .35rem .85rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ───────── FLOAT WA ───────── */
.float-wa {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #20BA5A);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  text-decoration: none;
  transition: var(--transition);
  animation: waPulse 2.5s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.12);
  animation: none;
  color: white;
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(37, 211, 102, .45);
  }

  50% {
    box-shadow: 0 6px 36px rgba(37, 211, 102, .7), 0 0 0 10px rgba(37, 211, 102, .08);
  }
}

/* ───────── BACK TO TOP ───────── */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ───────── RETOUR PAGE PRÉCÉDENTE (MOBILE) ───────── */
.mobile-back-btn {
  display: none;
  position: fixed;
  top: 82px;
  left: 1rem;
  z-index: 997;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  color: var(--text-dark);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-back-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

@media (max-width: 767px) {
  .mobile-back-btn {
    display: flex;
  }
}

/* ───────── TOAST ───────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: var(--radius);
  padding: .9rem 1.25rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--whatsapp);
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 320px;
  pointer-events: auto;
  animation: toastIn .4s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-title {
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-dark);
}

.toast-desc {
  font-size: .78rem;
  color: var(--grey-text);
}

/* ───────── WELCOME MODAL ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(11, 58, 130, .6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn .3s ease;
}

.modal-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.welcome-modal {
  background: white;
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  animation: modalIn .4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.85)translateY(20px)
  }

  to {
    opacity: 1;
    transform: scale(1)translateY(0)
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--grey-light);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--grey-text);
}

.modal-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.modal-badge {
  background: var(--accent);
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  padding: .5rem 1.5rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin: 1rem 0;
}

/* ───────── COUNTDOWN TIMER ───────── */
.countdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, .1);
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
}

.countdown-unit {
  text-align: center;
}

.countdown-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: white;
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: .6rem;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  font-weight: 700;
}

.countdown-sep {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

/* Inline countdown on product */
.inline-countdown {
  background: #FFF3E8;
  border: 1px solid rgba(255, 107, 0, .2);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.inline-countdown .cdnum {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
}

/* ───────── LANG SWITCHER ───────── */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255, 255, 255, .12);
  color: white;
  padding: .4rem .85rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, .2);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: .75rem;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
  width: 260px;
  z-index: 2000;
  border: 1px solid var(--grey-border);
}

.lang-dropdown.show {
  display: grid;
  animation: fadeIn .2s ease;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: .5rem .75rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: .2s;
}

.lang-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.lang-item.active {
  background: var(--navy);
  color: white;
}

/* Style de sélection de langue sur mobile */
.mobile-lang-item:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

.mobile-lang-item.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

/* Raccourcis navbar mobile (panier + langue à côté du hamburger) */
.mobile-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
  font-size: 1.15rem;
  transition: var(--transition);
}

.mobile-cart-btn:hover {
  background: rgba(255, 255, 255, .2);
  color: white;
}

.mobile-lang-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 .65rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-lang-btn:hover {
  background: rgba(255, 255, 255, .2);
}

.mobile-lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-lang-btn i {
  font-size: .65rem;
  opacity: .8;
}

.mobile-lang-dropdown {
  width: 220px !important;
  max-height: 60vh;
  overflow-y: auto;
}

/* ───────── SEARCH ───────── */
.hero-search-container {
  margin-bottom: 1.5rem;
}

.hero-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .85rem 1.5rem;
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  color: var(--text-dark);
}

.hero-search-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: .85rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0 50px 50px 0;
  transition: background .2s;
}

.hero-search-btn:hover {
  background: var(--accent-2);
}

.products-search-container {
  flex: 1;
  max-width: 440px;
}

.products-search-form {
  display: flex;
  position: relative;
}

.products-search-input {
  flex: 1;
  border: 1.5px solid var(--grey-border);
  border-right: none;
  padding: .65rem 1.1rem;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .9rem;
  background: white;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.products-search-input:focus {
  border-color: var(--accent);
}

.products-search-btn {
  background: var(--navy);
  color: white;
  border: none;
  padding: 0 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  font-size: .95rem;
}

/* ───────── SCROLL REVEAL ───────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ───────── ADMIN (unchanged structure) ───────── */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: #0F172A;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1001;
  color: white;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.admin-logo .logo-icon {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-nav-label {
  font-size: .68rem;
  text-transform: uppercase;
  color: #475569;
  margin: 1.5rem 0 .6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem 1rem;
  color: #94A3B8;
  border-radius: 10px;
  font-weight: 500;
  font-size: .9rem;
  transition: .3s;
  margin-bottom: 3px;
}

.admin-nav a:hover {
  background: rgba(255, 255, 255, .05);
  color: white;
}

.admin-nav a.active {
  background: var(--accent);
  color: white;
}

.admin-main {
  flex: 1;
  margin-left: 280px;
  padding: 2.5rem 3rem;
  background: #F8FAFC;
  min-height: 100vh;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
}

.admin-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.admin-stat-card {
  background: white;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--grey-border);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.admin-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.admin-stat-info .value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-dark);
  display: block;
}

.admin-stat-info .label {
  font-size: .8rem;
  color: var(--grey-text);
  font-weight: 600;
  text-transform: uppercase;
}

.admin-table-card {
  background: white;
  border-radius: 18px;
  border: 1px solid var(--grey-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: #F8FAFC;
  padding: .9rem 1.25rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--grey-text);
  border-bottom: 1px solid var(--grey-border);
  text-align: left;
}

.admin-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--grey-border);
  font-size: .88rem;
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(255, 107, 0, .02);
}

/* Forms */
.admin-card,
.card {
  background: white;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: .45rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  font-size: .92rem;
  font-family: var(--font);
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .1);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Alerts */
.alert {
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.alert-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.alert-info {
  background: var(--accent-light);
  border: 1px solid rgba(255, 107, 0, .3);
  color: var(--accent);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: .9rem .75rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-border);
}

.table th {
  color: var(--grey-text);
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 700;
}

.table tr:hover td {
  background: var(--grey-light);
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--grey-light);
  color: var(--text-main);
  border: 1px solid var(--grey-border);
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

/* ─────── CART ─────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}

.cart-table {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-table table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: var(--grey-light);
  padding: 1rem 1.25rem;
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--grey-text);
}

.cart-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--grey-border);
  vertical-align: middle;
}

.cart-summary {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 120px;
}

/* ─────── PAYMENT ─────── */
.payment-card {
  border: 2px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  background: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-card.active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.payment-card:hover {
  border-color: var(--accent-light);
}

.payment-icon {
  font-size: 2rem;
}

/* ─────── RESPONSIVE ─────── */
@media (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

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

@media (max-width: 991px) {

  .navbar-nav,
  .navbar-search-wrap,
  .btn-wa-nav,
  .lang-switcher {
    display: none !important;
  }

  .mobile-nav-shortcuts {
    display: flex !important;
  }

  .mobile-lang-trigger .lang-dropdown.show {
    display: block !important;
  }

  .hamburger {
    display: flex !important;
    margin-left: 0 !important;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .steps-grid::before {
    display: none;
  }

  .product-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-gallery {
    position: relative;
    top: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cta-section {
    margin: 0;
    border-radius: 0;
  }

  .admin-sidebar {
    pointer-events: none;
    /* Désactivé ici, géré en fin de fichier */
  }

  .admin-main {
    margin-left: 0 !important;
    padding: 1.5rem;
    overflow-x: visible !important;
  }
}

@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    letter-spacing: 0;
    line-height: 1.2;
  }

  .product-detail-price {
    font-size: 2.1rem;
  }

  footer {
    padding-bottom: 90px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-payments {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .payment-badge {
    justify-content: center;
    padding: .45rem;
    font-size: .75rem;
    text-align: center;
  }

  .trust-badges {
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-card-image {
    height: 220px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 1rem;
  }
}

/* ── CHAT & NOTIFICATIONS ── */
.badge.bg-danger {
  background-color: #EF4444 !important;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.75rem;
}

.unread-row {
  background: rgba(11, 58, 130, 0.03) !important;
  border-left: 4px solid var(--accent) !important;
}

.chat-msg {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: #f1f5f9;
  border-radius: 12px 12px 12px 0;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#chat-history {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pill-pending {
  background: #fee2e2;
  color: #dc2626;
}

.pill-confirmed {
  background: #dcfce7;
  color: #16a34a;
}

.pill-shipped {
  background: #dbeafe;
  color: #2563eb;
}

.pill-delivered {
  background: #fef9c3;
  color: #ca8a04;
}

@keyframes pulse-red {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.badge-unread-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-red 2s infinite;
}

/* ───────── ADMIN RESPONSIVE ───────── */
.admin-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-mobile-overlay.show {
  display: block;
  opacity: 1;
}

.admin-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--grey-border);
  color: var(--text-main);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 1rem;
}

@media (max-width: 992px) {
  .admin-sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 280px !important;
    background: #0F172A !important;
    z-index: 99999 !important;
    /* Niveau maximum */
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 15px 0 35px rgba(0, 0, 0, 0.5) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .admin-sidebar.show {
    transform: translateX(0) !important;
  }

  .admin-main {
    margin-left: 0 !important;
    padding: 1rem !important;
    width: 100% !important;
    display: block !important;
    overflow-x: hidden !important;
  }

  .admin-topbar {
    z-index: 1000 !important;
    background: white !important;
    position: sticky !important;
    top: 0 !important;
  }

  .admin-hamburger {
    display: flex !important;
  }
}

/* ───────── FORÇAGE SCROLL TABLEAUX ───────── */
.table-responsive {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 10px;
}

.table-responsive table,
.admin-table {
  min-width: 850px !important;
  /* Force le scroll même sur grandes tablettes en portrait */
  width: 100% !important;
}

/* Correction WhatsApp */
#wa-msg-text {
  min-height: 1.2em;
  opacity: 1;
}

/* ───────── CARD ACTION BUTTONS ───────── */
.card-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

/* ───────── PRODUCT DETAIL PAGE ───────── */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.pd-gallery-main {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--grey-light);
  margin-bottom: 1rem;
  cursor: zoom-in;
}

.pd-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.pd-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pd-gallery-thumbs img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.7;
}

.pd-gallery-thumbs img:hover,
.pd-gallery-thumbs img.active {
  border-color: var(--accent);
  opacity: 1;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--grey-text);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pd-breadcrumb a {
  color: var(--grey-text);
  text-decoration: none;
}

.pd-breadcrumb a:hover {
  color: var(--accent);
}

.pd-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.pd-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.pd-badge-cat {
  background: var(--accent-light);
  color: var(--accent);
}

.pd-badge-grade {
  background: #ecfdf5;
  color: #059669;
}

.pd-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.pd-price-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pd-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
}

.pd-original {
  font-size: 1.2rem;
  color: var(--grey-text);
  text-decoration: line-through;
}

.pd-savings {
  background: #ecfdf5;
  color: #059669;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 1rem;
}

.pd-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--grey-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  width: fit-content;
}

.pd-qty button {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--grey-light);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.pd-qty button:hover {
  background: #e2e8f0;
}

.pd-qty input {
  width: 56px;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
}

.pd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--grey-border);
  margin-bottom: 2rem;
}

.pd-tab {
  padding: 1rem 1.5rem;
  font-weight: 700;
  color: var(--grey-text);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-size: 0.95rem;
  font-family: inherit;
}

.pd-tab:hover {
  color: var(--text-dark);
}

.pd-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.pd-tab-content {
  display: none;
}

.pd-tab-content.active {
  display: block;
}

.pd-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pd-review-item {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.pd-review-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.pd-review-stars {
  color: #FBBF24;
  font-size: 0.85rem;
}

.pd-review-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.pd-review-date {
  font-size: 0.8rem;
  color: var(--grey-text);
  margin-left: auto;
}

.pd-review-comment {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

.pd-trust {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.pd-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.pd-trust-item i {
  font-size: 1.1rem;
  color: var(--accent);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ── Checkout page ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

.checkout-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
}

.payment-card {
  padding: 1rem;
  border: 2px solid var(--grey-border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-card:hover {
  border-color: var(--accent);
}

.payment-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.payment-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f8fafc;
}

.payment-card.disabled:hover {
  border-color: var(--grey-border);
}

.payment-card i {
  font-size: 1.5rem;
}

/* ── Checkout : grilles de formulaire responsives ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ── Checkout : moyens de paiement ── */
.payment-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.payment-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.payment-card-content i {
  font-size: 2rem;
}

.payment-card-label {
  font-weight: 700;
  font-size: .85rem;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.payment-card-badge {
  position: absolute;
  top: -14px;
  right: -8px;
  background: #94a3b8;
  color: white;
  font-size: .6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

@media (max-width: 576px) {
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .payment-cards-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
  }

  .payment-card-content {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: .85rem;
  }

  .payment-card-content i {
    font-size: 1.7rem;
  }

  .payment-card-badge {
    top: -10px;
    right: 0;
  }
}

/* ── Checkout : panneau dynamique des modalités de paiement ── */
.payment-instructions-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, #fff 60%, var(--accent-light) 100%);
  border-radius: 14px;
}

.payment-instructions-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-instructions-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.payment-instructions-content {
  background: white;
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1.1rem;
  border-radius: 0 10px 10px 0;
  font-family: monospace;
  font-size: 0.92rem;
  color: var(--text-dark);
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.75rem;
}

.transaction-field {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--grey-border);
}

.payment-whatsapp-box {
  margin-top: 1rem;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-border);
}

.cart-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 991px) {
  .pd-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pd-title {
    font-size: 1.4rem;
  }

  .pd-price {
    font-size: 1.8rem;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-layout .checkout-summary {
    order: -1;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }

  .pd-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pd-tab {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .card-action-btn {
    width: 44px;
    height: 44px;
  }
}

/* ───────── RICH TEXT CONTENT ───────── */
.rich-content {
  line-height: 1.8;
  color: var(--text-main);
  font-size: 0.95rem;
}

.rich-content p {
  margin-bottom: 1rem;
}

.rich-content ul,
.rich-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--text-dark);
}

.rich-content b,
.rich-content strong {
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — iPhone 6 / Small phones (≤ 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Force 1 column products grid */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-card {
    width: 100% !important;
    min-width: unset !important;
    max-width: 100% !important;
  }

  /* Reduce section padding */
  .section {
    padding: 3.5rem 0;
  }

  /* Tighten container */
  .container {
    padding: 0 1rem;
  }

  /* Hero adjustments */
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2.5rem) !important;
    letter-spacing: 0;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: .9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats grid — single column on tiny screens */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  /* Product card tweaks */
  .card-body {
    padding: 1rem;
  }

  .card-title {
    font-size: .95rem;
  }

  .current-price {
    font-size: 1.2rem;
  }

  /* Product detail */
  .pd-title {
    font-size: 1.2rem !important;
  }

  .pd-price {
    font-size: 1.6rem !important;
  }

  .pd-gallery-main {
    height: 220px;
  }

  .pd-trust {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-bottom: 1rem;
    gap: .5rem;
  }

  /* Floating WA + scrolltop buttons — Move up if notifications are active */
  .wa-float,
  .scroll-top-btn {
    bottom: 20px;
    z-index: 1004;
  }

  .wa-float {
    right: 15px;
  }

  .scroll-top-btn {
    right: 15px;
    bottom: 85px;
  }

  /* Shrink overlapping notifications */
  .toast-container {
    max-width: 280px;
    right: 10px;
    top: 80px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — iPhone 6 exact (≤ 375px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
  .navbar-logo .logo-text {
    font-size: 1rem;
  }

  .btn-lg {
    padding: .75rem 1.5rem;
    font-size: .9rem;
  }

  .section-title {
    font-size: 1.8rem !important;
  }

  /* Hero stats compact */
  .hero-stats {
    gap: 1rem;
  }

  .hero-stat-item .value {
    font-size: 1.4rem;
  }

  /* Admin table always scrollable */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Admin sidebar always hidden by default */
  .admin-sidebar {
    width: 260px;
  }

  /* Form row stack on tiny screens */
  .form-row {
    grid-template-columns: 1fr !important;
  }
}

/* --- OVERRIDES FOR ABOUT DROPDOWN --- */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  /* slide down starting pos */
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: white;
  min-width: 280px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--grey-border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.menu-open .nav-dropdown-menu,
.nav-item-dropdown.hover-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  top: 100%;
}

/* Flèche cliquable : agrandit la zone de clic et tourne quand le menu est épinglé */
.nav-caret {
  font-size: .75rem;
  margin-left: 4px;
  padding: .35rem;
  margin: -0.35rem -0.35rem -0.35rem 0;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .25s ease, background .2s ease;
}

.nav-caret:hover {
  background: rgba(255, 255, 255, .12);
}

.nav-item-dropdown.menu-open .nav-caret,
.mega-menu-trigger.menu-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu .nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-dropdown-item:hover {
  background: var(--grey-light);
}

.nav-dropdown-item .icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-dropdown-item .title-strong {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.nav-dropdown-item .subtitle-small {
  font-size: 0.8rem;
  color: var(--grey-text);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--grey-border);
  margin: 8px 0;
}

/* --- MOBILE ACCORDION OVERRIDES --- */
.mobile-accordion {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-accordion-toggle>span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-accordion-toggle>span i {
  color: var(--grey-text);
  width: 20px;
  text-align: center;
}

.mobile-accordion-toggle:hover {
  color: white;
}

.mobile-accordion.active .mobile-accordion-toggle {
  color: white;
}

.mobile-accordion.active .toggle-icon {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-accordion.active .mobile-accordion-content {
  max-height: 200px;
}

.mobile-accordion-content a {
  padding-left: 3.5rem !important;
  font-size: 0.95rem !important;
  border-bottom: none !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ───────── ABOUT — STATS COUNTERS (horizontal) ───────── */
.stats-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.stats-section .counter-item {
  flex: 0 0 calc(50% - .5rem);
  max-width: calc(50% - .5rem);
  text-align: center;
  background: white;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stats-section .counter-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-orange);
}

.stats-section .counter-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: .5rem;
  line-height: 1;
}

.stats-section .counter-label {
  font-weight: 700;
  color: var(--text-dark);
  font-size: .92rem;
}

@media (min-width: 768px) {
  .stats-section .row {
    gap: 1.5rem;
  }

  .stats-section .counter-item {
    flex: 0 0 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
  }
}

.mobile-accordion-content a:hover {
  color: white !important;
}

/* ════════════════════════════════════════════════════════════
   BRAND LOGOS (marques auto) — composant <x-brand-logo>
   ════════════════════════════════════════════════════════════ */
.brand-logo-img {
  object-fit: contain;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
}

.brand-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

/* Badge "Marque" affiché sur les fiches / cartes produit pièces auto */
.product-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.product-brand-badge .product-brand-label {
  font-weight: 600;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-brand-badge .product-brand-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.card-pricing .product-brand-badge {
  padding: 0.3rem 0.6rem;
}

.card-pricing .product-brand-badge .product-brand-name {
  font-size: 0.78rem;
}

/* ════════════════════════════════════════════════════════════
   MEGA MENU — Pièces Auto (groupes -> marques -> familles de pièces)
   ════════════════════════════════════════════════════════════ */
.mega-menu-trigger {
  position: relative;
}

.mega-menu {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(1160px, 96vw);
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  border: 1px solid var(--grey-border);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  z-index: 1100;
  overflow: hidden;
}

.mega-menu-trigger:hover .mega-menu,
.mega-menu-trigger:focus-within .mega-menu,
.mega-menu-trigger.menu-open .mega-menu,
.mega-menu-trigger.hover-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 260px 1fr 290px;
  max-height: calc(100vh - 100px);
}

.mega-col {
  padding: 1.1rem;
  overflow-y: auto;
}

.mega-col::-webkit-scrollbar {
  width: 6px;
}

.mega-col::-webkit-scrollbar-thumb {
  background: var(--grey-border);
  border-radius: 4px;
}

/* Colonne 1 : groupes de marques */
.mega-col-groups {
  background: var(--grey-light);
  border-right: 1px solid var(--grey-border);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mega-col-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-text);
  padding: 0.25rem 0.6rem 0.6rem;
}

.mega-group-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.mega-group-btn>i:first-child {
  color: var(--accent);
  width: 18px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.mega-group-btn span {
  flex: 1;
}

.mega-group-arrow {
  font-size: 0.7rem;
  color: var(--grey-text);
  opacity: 0;
  transition: var(--transition);
}

.mega-group-btn:hover,
.mega-group-btn.active {
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mega-group-btn.active {
  color: var(--accent);
}

.mega-group-btn.active .mega-group-arrow {
  opacity: 1;
  color: var(--accent);
}

.mega-menu-divider {
  height: 1px;
  background: var(--grey-border);
  margin: 0.6rem 0.5rem;
}

.mega-menu .mega-group-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.mega-group-link:hover {
  background: white;
}

.mega-group-link-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.mega-group-link-icon .brand-logo-img,
.mega-group-link-icon .brand-logo-fallback {
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
}

.mega-menu .mega-group-link-strong {
  color: var(--accent);
}

/* Colonne 2 : grille des marques du groupe actif */
.mega-col-brands {
  padding: 1rem;
}

.mega-brand-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.mega-brand-grid.active {
  display: grid;
}

.mega-menu .mega-brand-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.83rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
}

.mega-brand-item:hover,
.mega-brand-item:focus {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-2);
}

.mega-brand-logo {
  width: 28px;
  height: 28px;
}

.mega-brand-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Colonne 3 : familles de pièces de la marque survolée */
.mega-col-parts {
  background: var(--grey-light);
  border-left: 1px solid var(--grey-border);
  position: relative;
}

.mega-parts-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 280px;
  color: var(--grey-text);
  padding: 2rem 1rem;
}

.mega-parts-placeholder i {
  font-size: 1.8rem;
  color: var(--accent);
  opacity: 0.5;
}

.mega-parts-placeholder p {
  font-size: 0.82rem;
  line-height: 1.45;
}

.mega-parts-active {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
}

.mega-col-parts.has-active .mega-parts-placeholder {
  display: none;
}

.mega-col-parts.has-active .mega-parts-active {
  display: flex;
}

.mega-parts-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--grey-border);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.mega-parts-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  flex-shrink: 0;
  display: none;
}

.mega-parts-fallback {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mega-menu .mega-part-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.mega-part-link i {
  color: var(--accent);
  width: 16px;
  text-align: center;
}

.mega-part-link:hover {
  background: white;
  color: var(--accent-2);
}

.mega-parts-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: var(--transition);
}

.mega-parts-all-link:hover {
  background: var(--accent);
}

/* ════════════════════════════════════════════════════════════
   DROPDOWN — Palettes (catégories de palettes)
   ════════════════════════════════════════════════════════════ */
.palette-dropdown-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  width: 480px;
  max-width: 92vw;
  padding: 10px;
}

.palette-dropdown-item-all,
.palette-dropdown-divider-full {
  grid-column: 1 / -1;
}

.palette-dropdown-divider-full {
  margin: 4px 0;
}

.palette-dropdown-menu .nav-dropdown-item {
  padding: 10px 14px;
  border-radius: 10px;
}

/* ════════════════════════════════════════════════════════════
   MOBILE — Pièces Auto / Palettes (accordéons imbriqués)
   ════════════════════════════════════════════════════════════ */
.mobile-menu {
  overflow-y: auto;
}

.mobile-accordion.mobile-accordion-mega.active .mobile-accordion-content,
.mobile-accordion.mobile-accordion-palettes.active .mobile-accordion-content {
  max-height: 75vh;
  overflow-y: auto;
}

.mobile-subaccordion {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-subaccordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 1.5rem 0.75rem 3.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mobile-subaccordion-toggle>span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-subaccordion-toggle>span i {
  color: var(--grey-text);
  width: 18px;
  text-align: center;
}

.mobile-subaccordion.active .mobile-subaccordion-toggle {
  color: white;
}

.mobile-subaccordion.active .toggle-icon {
  transform: rotate(180deg);
}

.mobile-subaccordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-subaccordion.active .mobile-subaccordion-content {
  max-height: 1200px;
}

.mobile-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  padding: 0.5rem 1.5rem 1rem 3.5rem;
}

.mobile-accordion-content a.mobile-brand-item {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;
}

.mobile-accordion-content a.mobile-brand-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mobile-accordion-content a.mobile-brand-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .mega-menu-grid {
    grid-template-columns: 230px 1fr 250px;
  }

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

/* ════════════════════════════════════════════════════════════
   PAGE /produits — Barre de recherche + filtres
   ════════════════════════════════════════════════════════════ */
.products-filters-top {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* ───────── Sélecteur de marque (bouton + modal plein écran) ───────── */
.brand-picker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}

.brand-picker-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 100%;
  background: white;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius-lg);
  padding: .65rem 1.25rem;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}

.brand-picker-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
}

.brand-picker-icon,
.brand-picker-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.15rem;
}

.brand-picker-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}

.brand-picker-label-sub {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-text);
}

.brand-picker-label-main {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.brand-picker-arrow {
  color: var(--grey-text);
  margin-left: .25rem;
  flex-shrink: 0;
}

.brand-picker-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--grey-border);
  background: white;
  color: var(--grey-text);
  text-decoration: none;
  transition: var(--transition);
}

.brand-picker-clear:hover {
  border-color: #EF4444;
  color: #EF4444;
}

/* ───────── Filtres par sous-catégorie (chips) ───────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--grey-border);
  background: white;
  color: var(--text-main);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.filter-chip i {
  color: var(--accent);
  font-size: .95rem;
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.filter-chip.active i {
  color: white;
}

/* ───────── Modal plein écran : choix de la marque ───────── */
.brand-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(11, 37, 69, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.brand-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.brand-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 5001;
  width: min(960px, 94vw);
  height: min(82vh, 720px);
  background: white;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, .25);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}

.brand-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.brand-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--grey-border);
}

.brand-modal-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  flex-shrink: 0;
}

.brand-modal-title i {
  color: var(--accent);
}

.brand-modal-search {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.brand-modal-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey-text);
}

.brand-modal-search input {
  width: 100%;
  padding: .65rem 1rem .65rem 2.5rem;
  border: 1.5px solid var(--grey-border);
  border-radius: 50px;
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.brand-modal-search input:focus {
  border-color: var(--accent);
}

.brand-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--grey-light);
  color: var(--text-dark);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
}

.brand-modal-close:hover {
  background: var(--accent);
  color: white;
}

.brand-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.brand-modal-quick {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--grey-border);
}

.brand-modal-group {
  margin-bottom: 1.75rem;
}

.brand-modal-group:last-child {
  margin-bottom: 0;
}

.brand-modal-group-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-text);
  margin-bottom: .85rem;
}

.brand-modal-group-title i {
  color: var(--accent);
}

.brand-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .6rem;
}

.brand-modal-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem .5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-border);
  background: white;
  color: var(--text-main);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
}

.brand-modal-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.brand-modal-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07);
  transform: translateY(-2px);
}

.brand-modal-item.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-2);
}

.brand-modal-item-strong {
  flex-direction: row;
  justify-content: flex-start;
  font-weight: 700;
  padding: .75rem 1.25rem;
  border-radius: 50px;
}

.brand-modal-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1rem;
}

.brand-modal-empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 3rem 1rem;
  color: var(--grey-text);
  text-align: center;
}

.brand-modal-empty i {
  font-size: 2rem;
}

@media (max-width: 640px) {
  .brand-modal {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .brand-modal.active {
    transform: none;
  }

  .brand-modal-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  }

  .brand-picker,
  .brand-picker-btn {
    width: 100%;
  }

  .brand-picker-label-main {
    max-width: 60vw;
  }
}

/* ════════════════════════════════════════════════════════════
   CATALOGUE MOBILE — tiroir de filtres (slide depuis la gauche)
   ════════════════════════════════════════════════════════════ */
.mobile-catalog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 .75rem;
  border-radius: 50px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.mobile-catalog-btn:hover {
  background: var(--accent-2);
}

.catalog-drawer {
  display: flex;
  flex-direction: column;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: white;
  z-index: 1060;
  box-shadow: 10px 0 40px rgba(0, 0, 0, .15);
  transform: translateX(-100%);
  transition: transform .35s ease, visibility .35s ease;
  overflow-y: auto;
}

.catalog-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.catalog-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--grey-border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}

.catalog-drawer-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.catalog-drawer-title i {
  color: var(--accent);
  font-size: 1.2rem;
}

.catalog-drawer-close {
  background: none;
  border: none;
  color: var(--grey-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: .25rem;
}

.catalog-step {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  flex: 1;
}

.catalog-step.active {
  display: flex;
}

.catalog-step-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.catalog-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.catalog-intro {
  font-size: .9rem;
  color: var(--grey-text);
  margin-top: -.5rem;
}

.catalog-type-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--grey-border);
  background: var(--grey-light);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-type-card:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.catalog-type-card i {
  font-size: 1.8rem;
  color: var(--accent);
}

.catalog-type-card span {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.catalog-type-card small {
  font-size: .8rem;
  color: var(--grey-text);
}

.catalog-section-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-text);
  margin-bottom: .6rem;
}

.catalog-group {
  border-bottom: 1px solid var(--grey-border);
}

.catalog-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: .75rem 0;
  font-family: inherit;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text-dark);
  cursor: pointer;
}

.catalog-group-toggle > span {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.catalog-group-toggle > span i {
  color: var(--accent);
  width: 18px;
  text-align: center;
}

.catalog-group-toggle .toggle-icon {
  color: var(--grey-text);
  transition: transform .2s ease;
}

.catalog-group.active .toggle-icon {
  transform: rotate(180deg);
}

.catalog-group-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.catalog-group.active .catalog-group-content {
  max-height: 600px;
}

.catalog-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  padding-bottom: .75rem;
}

.catalog-chip-grid-vertical {
  grid-template-columns: 1fr;
}

.catalog-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  border-radius: 10px;
  border: 1.5px solid var(--grey-border);
  background: white;
  color: var(--text-main);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-chip:hover {
  border-color: var(--accent);
}

.catalog-chip.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-2);
}

.catalog-validate {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: auto;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: .9rem 1.5rem;
  font-family: inherit;
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
}

.catalog-validate:hover {
  background: var(--accent-2);
}

/* Petits écrans : on resserre les raccourcis de la navbar mobile pour que
   le bouton "Catalogue" (texte) ne fasse pas déborder panier/langue/menu. */
@media (max-width: 480px) {
  .mobile-nav-shortcuts {
    gap: .35rem;
  }

  .mobile-catalog-btn {
    padding: 0 .55rem;
    font-size: .7rem;
  }
}