/* ==========================================================================
   INFYCOM — Design system
   Premium / Tech / Minimaliste / Élégant / Moderne / Confiant
   ========================================================================== */

:root {
  /* Brand — refined navy + orange identity, warmed for a softer, easy-on-the-eyes feel */
  --navy: #14304f;
  --navy-dark: #0b1e34;
  --navy-mid: #274a72;
  --navy-tint: #eef2f7;
  --orange: #e8720c;
  --orange-dark: #c25c06;
  --orange-tint: #fcede0;
  --red: #d5231d;
  --red-dark: #ac1d18;
  --red-tint: #fbeae8;
  --ink: #1c2530;
  --muted: #626d7a;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e2e7ee;
  --success: #12805c;
  --success-tint: #e7f5ef;
  --danger: #c0392b;
  --danger-tint: #fbeae8;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 36px;
  --space-8: 48px;
  --space-9: 72px;

  /* Radius — soft, rounded without losing definition */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius: var(--radius-md);

  /* Shadows — subtle, warm-toned, never heavy */
  --shadow-sm: 0 1px 2px rgba(28, 26, 20, 0.05), 0 1px 1px rgba(28, 26, 20, 0.03);
  --shadow-md: 0 10px 28px rgba(28, 26, 20, 0.07), 0 2px 6px rgba(28, 26, 20, 0.04);
  --shadow-lg: 0 28px 64px rgba(28, 26, 20, 0.12), 0 8px 20px rgba(28, 26, 20, 0.06);
  --shadow: var(--shadow-sm);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

/* Note : la transition de page automatique (@view-transition navigation: auto) a été
   retirée — elle provoquait des clics de navigation sans effet visible chez certains
   utilisateurs (transition annulée par un changement d'état, laissant l'ancienne page
   affichée). Le confort visuel qu'elle apportait ne justifiait pas ce risque. */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@keyframes pageFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
main { animation: pageFadeIn 0.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

a { color: var(--navy); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

/* Typography */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 var(--space-4); }
h1 { font-size: clamp(2.1rem, 1.55rem + 2.4vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }

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

/* Sections — generous vertical rhythm */
section { padding: var(--space-9) 0; }
.section--tight { padding: 22px 0 var(--space-9); }
.section-title { text-align: center; margin: 0 auto var(--space-7); max-width: 640px; }
.section-title .eyebrow { color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: var(--space-2); }
.section-title h1, .section-title h2 { margin-bottom: var(--space-3); }
.section-title p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Scroll-reveal (progressive, fast, natural) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
/* ── Topbar ─────────────────────────────────────── */
.topbar { background: var(--orange); color: #fff; font-size: 12px; padding: 7px 0; overflow: hidden; }
.topbar__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: nowrap; white-space: nowrap; overflow: hidden;
}
.topbar a { color: #fff; font-weight: 500; transition: color 0.15s var(--ease); }
.topbar a:hover { color: var(--navy); }
.topbar__links { display: flex; gap: 16px; }
@media (max-width: 700px) {
  .topbar__inner > span { display: none; }
  .topbar__links a:not(:first-child):not(:last-child) { display: none; }
}

/* ── Header ─────────────────────────────────────── */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.site-header__inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: #fff; padding: 6px 10px; border-radius: var(--radius-sm); }
.brand img { height: 34px; width: auto; display: block; }

.search-bar { display: flex; flex: 1; min-width: 0; max-width: 640px; margin: 0 auto; position: relative; }
.search-bar__inner { display: flex; width: 100%; border-radius: var(--radius-sm); overflow: hidden; }
.search-bar__select {
  flex-shrink: 0; width: 150px; max-width: 30%; height: 44px; padding: 0 10px;
  background: var(--navy-tint); color: var(--ink); font-size: 0.78rem; font-weight: 600;
  border: none; border-right: 1px solid var(--border); font-family: inherit; cursor: pointer;
}
.search-bar__input { flex: 1; min-width: 0; border: none; outline: 0; padding: 0 16px; height: 44px; font-size: 0.9rem; font-family: inherit; background: #fff; color: var(--ink); }
.search-bar__btn { height: 44px; padding: 0 18px; background: var(--orange); border: none; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-bar__btn:hover { background: var(--orange-dark); }
.search-bar__btn svg { width: 18px; height: 18px; }

.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden; max-height: 400px; overflow-y: auto;
}
.search-suggestion {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--border);
}
.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover, .search-suggestion.is-active { background: var(--bg); }
.search-suggestion__image {
  width: 38px; height: 38px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.search-suggestion__image img { width: 100%; height: 100%; object-fit: cover; }
.search-suggestion__name { flex: 1; min-width: 0; font-size: 0.87rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion__price { color: var(--muted); font-size: 0.82rem; flex-shrink: 0; }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #dbe4f5; font-size: 11.5px; font-weight: 500; position: relative;
}
.header-action:hover { color: var(--orange); }
.header-action svg { width: 22px; height: 22px; }
.header-action .cart-badge {
  position: absolute; top: -6px; right: -10px;
  background: var(--orange); color: #fff; font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.header-action .cart-badge[hidden] { display: none; }
.header-action .cart-badge.is-bumped { animation: badgeBump 0.4s var(--ease); }
@keyframes badgeBump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .header-action .cart-badge.is-bumped { animation: none; } }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Quick categories icon row ──────────────────── */
.quick-cats { background: var(--navy-dark); border-bottom: 1px solid rgba(255,255,255,.06); }
.quick-cats__inner { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; justify-content: center; }
@media (max-width: 1024px) {
  .quick-cats__inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .quick-cats__inner::-webkit-scrollbar { display: none; }
}
.quick-cat {
  display: flex; flex-direction: row; align-items: center; gap: 6px;
  padding: 11px 14px; color: #d1d5db; font-size: 0.78rem; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  border-bottom: 2px solid transparent;
}
.quick-cat svg { width: 14px; height: 14px; flex-shrink: 0; }
.quick-cat:hover { color: var(--orange); }
.quick-cat--accent { color: var(--orange); }
.quick-cat--accent:hover { color: var(--orange); }
.quick-cat.active {
  color: #fff; background: rgba(255,255,255,.07); border-bottom-color: var(--orange);
}
.quick-cat--accent.active { color: var(--orange); }

/* La catégorie Digital (nos solutions maison, dont MaliPOS) se démarque du
   reste avec un effet verre dépoli, même langage que .card--glass. */
.quick-cat--digital {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border-bottom: none;
  padding: 7px 14px;
  margin: 6px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.quick-cat--digital:hover {
  color: #fff; background: rgba(255, 255, 255, 0.18); transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.quick-cat--digital.active { background: rgba(255, 255, 255, 0.22); color: #fff; border-bottom: none; border-color: rgba(255, 255, 255, 0.35); }

/* ── Mobile nav drawer (kept simple below 1024px; desktop nav lives in .category-nav) ── */
.main-nav { display: none; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.94rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a.active { color: var(--navy); }
.main-nav a:hover { color: var(--orange); }
.main-nav a.main-nav__child { padding-left: 20px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.main-nav .nav-link-icon { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.main-nav a.active .nav-link-icon, .main-nav a:hover .nav-link-icon { color: var(--orange); }

/* ==========================================================================
   Buttons — Primary / Secondary / Ghost, with full state coverage
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(232, 114, 12, 0.18); }
.btn-primary:hover:not(:disabled) { background: var(--orange-dark); color: #fff; box-shadow: 0 6px 18px rgba(232, 114, 12, 0.28); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--navy); }
.btn-outline:hover:not(:disabled) { border-color: var(--navy); background: var(--navy-tint); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover:not(:disabled) { background: var(--navy-mid); }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-outline-light:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #a3291d; }
.promo-duration-buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  z-index: 100;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Reusable text/layout utilities */
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-placeholder { color: #94a3b8; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-56 { margin-top: 56px; }
.pre-line { white-space: pre-line; }
.title-navy { color: var(--navy); margin: 0; }
.auth-title { margin-top: 0; color: var(--navy); text-align: center; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

.order-timeline { display: flex; align-items: flex-start; margin: 20px 0 4px; }
.order-timeline__step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.order-timeline__step::before {
  content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
  background: var(--border); z-index: 0;
}
.order-timeline__step:first-child::before { display: none; }
.order-timeline__step.is-done::before { background: var(--success); }
.order-timeline__dot {
  width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; z-index: 1; margin-bottom: 8px;
  color: var(--success); flex-shrink: 0;
}
.order-timeline__dot svg { width: 14px; height: 14px; }
.order-timeline__step.is-done .order-timeline__dot { border-color: var(--success); background: var(--success-tint); }
.order-timeline__step.is-current .order-timeline__dot { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 4px var(--orange-tint); }
.order-timeline__label { font-size: 0.76rem; color: var(--muted); max-width: 90px; line-height: 1.3; }
.order-timeline__step.is-done .order-timeline__label, .order-timeline__step.is-current .order-timeline__label { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .order-timeline { flex-direction: column; align-items: flex-start; gap: 4px; }
  .order-timeline__step { flex-direction: row; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 4px 0; }
  .order-timeline__step::before { display: none; }
  .order-timeline__label { max-width: none; }
}
.total-line { text-align: right; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-top: 14px; }
.narrow-560 { max-width: 560px; }
.narrow-640 { max-width: 640px; }
.narrow-700 { max-width: 700px; }
.narrow-720 { max-width: 720px; }
.narrow-760 { max-width: 760px; }
.narrow-800 { max-width: 800px; }
.narrow-960 { max-width: 1140px; }

.prose { font-size: 1rem; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }

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

/* ── Hero slider ────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden; background: var(--navy-dark);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  padding: 0;
}
.hero-slider__track { position: relative; height: 340px; }
.hero-slider__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.75) saturate(1.1); z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
  display: flex; align-items: stretch;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-slide__inner {
  max-width: 1320px; margin: 0 auto; padding: 0 32px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.hero-slide__content {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-slide__eyebrow { color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 10px; }
.hero-slide__title { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 12px; max-width: 20ch; }
.hero-slide__sub { font-size: clamp(0.9rem, 1.2vw, 1.05rem); color: #bfdbfe; margin-bottom: 22px; line-height: 1.5; max-width: 46ch; }
.hero-slide__cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--orange); color: #fff; padding: 13px 30px;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(232, 114, 12, .25);
}
.hero-slide__cta:hover { background: var(--orange-dark); }
.hero-slide__visual {
  flex-shrink: 0; width: 270px; height: 270px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,.08); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; color: var(--orange);
  overflow: hidden;
}
.hero-slide__visual svg { width: 112px; height: 112px; }
.hero-slide__visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.hero-slide--1 { background: linear-gradient(105deg, rgba(11,30,52,.88) 0%, rgba(20,48,79,.8) 55%, rgba(39,74,114,.72) 100%); }
.hero-slide--2 { background: linear-gradient(105deg, rgba(11,30,52,.88) 0%, rgba(30,58,95,.8) 55%, rgba(36,80,128,.72) 100%); }
.hero-slide--3 { background: linear-gradient(105deg, rgba(11,30,52,.88) 0%, rgba(58,46,18,.78) 55%, rgba(194,92,6,.72) 100%); }
.hero-slide--4 { background: linear-gradient(105deg, rgba(11,30,52,.88) 0%, rgba(74,31,28,.78) 55%, rgba(172,29,24,.72) 100%); }

.hero-thumbs {
  position: relative; z-index: 3; background: var(--navy-dark);
  display: flex; gap: 6px; padding: 8px 16px; overflow-x: auto; scrollbar-width: none;
}
.hero-thumbs::-webkit-scrollbar { display: none; }
.hero-thumb {
  flex-shrink: 0; width: 64px; height: 40px; border-radius: 5px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--navy-mid);
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-thumb__fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); }
.hero-thumb__fallback svg { width: 18px; height: 18px; }
.hero-thumb.is-active { border-color: var(--orange); }
.hero-slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 999px; border: none;
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
}
.hero-slider__btn:hover { background: rgba(255,255,255,.22); }
.hero-slider__btn--prev { left: 14px; }
.hero-slider__btn--prev svg { transform: scaleX(-1); }
.hero-slider__btn--next { right: 14px; }
.hero-slider__btn svg { width: 18px; height: 18px; }

@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

@media (max-width: 768px) {
  .hero-slider__track { height: 260px; }
  .hero-slide__inner { padding: 0 16px; gap: 14px; }
  .hero-slide__sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slide__visual { width: 96px; height: 96px; border-radius: var(--radius-md); }
  .hero-slide__visual svg { width: 42px; height: 42px; }
  .hero-slider__btn { display: none; }
  .hero-slide__cta { padding: 8px 16px; font-size: 0.8rem; gap: 6px; box-shadow: 0 3px 10px rgba(232, 114, 12, .2); }
  .hero-slide__cta svg { width: 14px; height: 14px; }
  .hero-slide__title { font-size: 1.55rem; margin-bottom: 8px; }
  .hero-slide__sub { font-size: 0.82rem; margin-bottom: 14px; }
  .hero-slide__eyebrow { font-size: 0.7rem; margin-bottom: 6px; }
}

/* ── Trust bar under hero ───────────────────────── */
.hero-trust {
  background: var(--navy-dark); border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 10px 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center;
}
.hero-trust__badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-sm);
  padding: 6px 14px; font-size: 0.8rem; font-weight: 500; color: #d1d5db; white-space: nowrap;
}
.hero-trust__badge svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }
@media (max-width: 768px) {
  .hero-trust { padding: 8px 14px; gap: 6px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-trust::-webkit-scrollbar { display: none; }
  .hero-trust__badge { font-size: 0.72rem; padding: 5px 10px; flex-shrink: 0; }
}

/* Page header — dark intro band for internal pages, matching site chrome */
.page-header {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: var(--space-8) 0;
}
.page-header .tagline { color: var(--orange); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: var(--space-3); }
.page-header h1 { color: #fff; margin-bottom: var(--space-3); max-width: 640px; }
.page-header p { color: rgba(255, 255, 255, 0.72); max-width: 56ch; margin: 0; font-size: 1.05rem; }
.page-header .tagline, .page-header h1, .page-header p { animation: fadeUp 0.6s var(--ease) both; }
.page-header h1 { animation-delay: 0.06s; }
.page-header p { animation-delay: 0.12s; }
.page-header__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); margin-bottom: var(--space-4);
  animation: fadeUp 0.6s var(--ease) both;
}
.page-header__icon svg { width: 26px; height: 26px; }

/* Pages d'information (Politique de cookies, CGV, etc.) : contenu texte mis en forme */
.info-block { margin: 0 0 var(--space-6); }
.info-block p { color: var(--muted); line-height: 1.75; margin: 0 0 var(--space-4); }
.info-list { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-direction: column; gap: 14px; }
.info-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); line-height: 1.6; }
.info-list .icon-badge { width: 30px; height: 30px; margin: 0; flex-shrink: 0; }
.info-list .icon-badge svg { width: 15px; height: 15px; }
.info-contact {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--navy-tint); border-radius: var(--radius-md); padding: 22px 26px; margin-top: var(--space-7);
}
.info-contact .icon-badge { background: #fff; color: var(--navy); margin: 0; }
.info-contact__text { flex: 1 1 220px; }
.info-contact__text strong { display: block; color: var(--ink); margin-bottom: 2px; }
.info-contact__text span { color: var(--muted); font-size: 0.88rem; }
.info-contact__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Category sub-tabs */
.category-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px; margin: 14px 0 0;
}
@media (max-width: 640px) {
  .category-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tabs__item { flex-shrink: 0; }
}
.category-tabs__item {
  display: flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 8px;
  font-size: 0.8rem; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent;
}
.category-tabs__item svg { width: 16px; height: 16px; flex-shrink: 0; }
.category-tabs__item:hover { color: var(--navy); background: var(--navy-tint); }
.category-tabs__item.active { color: var(--orange-dark); background: var(--orange-tint); border-bottom-color: var(--orange); }
.category-tabs__item--reco.active { color: var(--success); background: var(--success-tint); border-bottom-color: var(--success); }

/* Category banner */
.category-banner {
  display: flex; align-items: center; gap: 18px; margin: 14px 0 0; padding: 24px 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); border-radius: var(--radius-md); color: #fff;
}
.category-banner--stacked { flex-direction: column; align-items: stretch; border-radius: var(--radius-md) var(--radius-md) 0 0; margin-bottom: 0; }
.category-banner-sub {
  background: var(--navy-dark); color: #fff; padding: 20px 28px; margin: 0 0 14px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.category-banner-sub__row { display: flex; align-items: center; gap: 12px; }
.category-banner-sub__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
}
.category-banner-sub__icon svg { width: 19px; height: 19px; }
.category-banner-sub h2 { color: #fff; margin: 0; font-size: 1.15rem; }
.category-banner-sub p { color: rgba(255,255,255,.7); margin: 6px 0 0; font-size: 0.88rem; }

/* Digital category banner — distinct purple identity for software/licences, with video background */
.category-banner--digital {
  position: relative; overflow: hidden; display: block; text-align: center; padding: 44px 28px;
  background: #1a1236;
}
.category-banner--digital__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: brightness(0.65) saturate(1.1);
}
.category-banner--digital__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 88% -15%, rgba(199, 161, 255, 0.5) 0%, transparent 42%),
    radial-gradient(circle at -8% 115%, rgba(124, 79, 227, 0.45) 0%, transparent 45%),
    linear-gradient(160deg, rgba(26, 18, 54, 0.88) 0%, rgba(58, 36, 114, 0.82) 50%, rgba(108, 63, 214, 0.78) 100%);
}
.category-banner--digital::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 40%, transparent 90%);
}
.category-banner--digital > *:not(.category-banner--digital__video):not(.category-banner--digital__overlay) { position: relative; z-index: 3; }
.category-banner__eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 16px 5px 6px;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #e9e0ff; margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.category-banner__eyebrow-icon {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.category-banner__eyebrow-icon svg { width: 12px; height: 12px; }
.category-banner--digital h1 { font-size: 2.3rem; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(107, 63, 214, 0.5); }
.category-banner--digital__accent {
  background: linear-gradient(90deg, #d9c6ff 0%, #a985ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.category-banner--digital p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 0 auto 24px; font-size: 0.95rem; line-height: 1.55; text-wrap: balance; }
.category-banner--digital__tagline { max-width: none !important; white-space: nowrap; font-size: 0.8rem !important; }
.category-banner__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 800px; margin: 0 auto; }
.category-banner__badges span {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 5px 12px 5px 4px;
  font-size: 0.72rem; font-weight: 500; color: #fff; white-space: nowrap; flex-shrink: 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.category-banner__badges span:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.category-banner__badge-icon {
  width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.category-banner__badge-icon svg { width: 10px; height: 10px; }
.category-banner--digital__strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 24px;
  background: linear-gradient(90deg, #7c3fe3 0%, #5a35b8 50%, #4527a0 100%);
  padding: 14px 24px; margin: 0 0 14px; border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.category-banner--digital__strip-item {
  display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 0.78rem; font-weight: 500; white-space: nowrap;
}
.category-banner--digital__strip-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.category-banner--digital__strip-item--orange svg { color: #ffb545; }
.category-banner--digital__strip-item--blue svg { color: #8ecbff; }
.category-banner--digital__strip-item--red svg { color: #ff8a8a; }
.category-banner--digital__strip-item--gold svg { color: #ffd966; }
@media (max-width: 640px) {
  .category-banner--digital h1 { font-size: 1.55rem; }
  .category-banner--digital { padding: 32px 20px; }
  .category-banner--digital p { font-size: 0.85rem; }
  .category-banner--digital__tagline { white-space: normal; font-size: 0.72rem !important; max-width: 32ch !important; margin-left: auto; margin-right: auto; }
  .category-banner__badges { gap: 8px; }
  .category-banner__badges span { font-size: 0.72rem; padding: 5px 12px 5px 5px; gap: 6px; }
  .category-banner__badge-icon { width: 20px; height: 20px; }
  .category-banner--digital__strip { gap: 10px 18px; padding: 12px 18px; }
  .category-banner--digital__strip-item { font-size: 0.72rem; }
}
/* Reconditioned landing page */
.category-banner--reco { flex-direction: column; align-items: stretch; gap: 16px; background: linear-gradient(135deg, #0f5132 0%, #0a3d26 100%); }
.reco-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.reco-badge { flex: 1 1 180px; min-width: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); padding: 10px 16px; }
.reco-badge strong { display: block; font-size: 0.85rem; color: #fff; margin-bottom: 2px; }
.reco-badge span { display: block; font-size: 0.74rem; color: rgba(255,255,255,.75); }
@media (max-width: 640px) {
  .reco-badge { flex: 1 1 140px; padding: 8px 12px; }
  .reco-badge strong { font-size: 0.78rem; }
  .reco-badge span { font-size: 0.7rem; }
}

.category-banner__row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.category-banner__row > div:last-child { min-width: 0; }
.category-banner__info { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.category-banner__info-item {
  flex: 1 1 160px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 12px 14px;
}
.category-banner__info-item svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .9; }
.category-banner__info-item strong { display: block; font-size: 0.82rem; }
.category-banner__info-item span, .category-banner__info-item a { font-size: 0.78rem; color: rgba(255,255,255,.8); }
.category-banner__info-item a:hover { color: #fff; }
.category-banner__icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
}
.category-banner__icon svg { width: 26px; height: 26px; }
.category-banner h1 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.category-banner p { color: rgba(255,255,255,.75); margin: 0; font-size: 0.92rem; }
/* Promotions banner — video background, centered content */
.promo-banner {
  position: relative; margin: 14px 0 0; border-radius: var(--radius-md); overflow: hidden;
  min-height: 220px; display: flex; align-items: center; justify-content: center;
}
.promo-banner__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.promo-banner__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(11,7,2,.82) 0%, rgba(200,80,10,.55) 55%, rgba(232,114,12,.5) 100%);
}
.promo-banner__content { position: relative; z-index: 2; text-align: center; padding: 40px 24px; max-width: 640px; }
.promo-banner__content h1 { color: #fff; margin: 0 0 10px; font-size: 1.9rem; }
.promo-banner__content p { color: rgba(255,255,255,.85); margin: 0 0 20px; font-size: 1rem; }

.promo-countdown { display: flex; gap: 14px; justify-content: center; }
.promo-countdown__unit {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm);
  padding: 10px 18px; min-width: 72px; text-align: center;
}
.promo-countdown__unit span { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.promo-countdown__unit small { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,.8); margin-top: 4px; }
@media (max-width: 520px) {
  .promo-banner__content h1 { font-size: 1.4rem; }
  .promo-countdown { gap: 8px; }
  .promo-countdown__unit { padding: 8px 12px; min-width: 58px; }
}

/* Value-props strip */
.value-props-section { padding: var(--space-6) 0; }
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  padding: var(--space-5) 0;
}
.value-prop { display: flex; align-items: center; gap: 14px; }

.trust-bar { padding: 20px 0; }
.trust-bar .icon-badge { width: 36px; height: 36px; }
.trust-bar .icon-badge svg { width: 17px; height: 17px; }
.trust-bar .value-prop strong { font-size: 0.88rem; }
.trust-bar .value-prop span { font-size: 0.8rem; }
.value-prop .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.value-prop:nth-child(4n+1) .icon-badge { background: var(--orange-tint); color: var(--orange); }
.value-prop:nth-child(4n+2) .icon-badge { background: var(--red-tint); color: var(--red); }
.value-prop:nth-child(4n+3) .icon-badge { background: var(--navy-tint); color: var(--navy); }
.value-prop:nth-child(4n+4) .icon-badge { background: var(--success-tint); color: var(--success); }
.value-prop:hover .icon-badge { transform: scale(1.1) rotate(-4deg); }
.value-prop strong { display: block; font-size: 0.95rem; color: var(--ink); }
.value-prop span { color: var(--muted); font-size: 0.85rem; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card h3 { color: var(--navy); margin-top: 0; }

/* Variante resserrée pour les pages denses (module de facturation) : moins de
   marge perdue, plus de contenu visible sans défiler. */
.card--tight { padding: 16px 18px; }
.card--tight h3 { font-size: 0.95rem; margin-bottom: 10px; }
.card--tight p { margin: 4px 0; font-size: 0.86rem; }
.card--tight .form-section-title { margin: 18px 0 12px; }
.card--tight .form-group { margin-bottom: 14px; }

/* Grille compacte étiquette/valeur : remplace deux cartes de paragraphes par un
   seul bloc dense (fiches client/devis/facture du module de facturation). */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 24px; }
.info-grid__label { display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.info-grid__value { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.card--interactive { position: relative; }
.home-mission {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-dark) 55%, #3a2a5e 100%);
}
.home-mission::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 85% 0%, rgba(232,114,12,.35) 0%, transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(124,79,227,.3) 0%, transparent 50%);
}
.home-mission .section-title .eyebrow { color: var(--orange-tint); }
.home-mission .section-title h2 { color: #fff; }
.home-mission .section-title p { color: rgba(255,255,255,.75); }
.home-mission .grid { position: relative; z-index: 1; }
.card--glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 32px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.1);
}
.card--glass h3 { color: #fff; }
.card--glass p.text-muted { color: rgba(255,255,255,.72); }
.card--glass a { color: var(--orange-tint); }
.card--glass .icon-badge { background: rgba(255,255,255,.12); color: #fff; }
.card--glass.card--interactive:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }
.card--interactive:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 16px 36px rgba(232, 114, 12, 0.16), var(--shadow-sm); border-color: var(--orange); }
.card--interactive:hover .icon-badge { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.08); }
.icon-badge { transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.card--featured { border-color: var(--orange); box-shadow: var(--shadow-md); position: relative; }
.card--featured::before {
  content: "Recommandé";
  position: absolute;
  top: -13px; left: 24px;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.icon-badge svg { width: 22px; height: 22px; }
.inline-icon { width: 14px; height: 14px; vertical-align: -2px; transition: transform 0.2s var(--ease); }
a:hover .inline-icon { transform: translateX(3px); }

/* Product grid — fixed 4 per row on the boutique pages */
.product-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Category cards — boutique landing grid, 4 per row on desktop */
.category-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}
.category-card {
  padding: 0; overflow: hidden; border-radius: 8px; display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(20,48,79,.06);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-mid); }
.category-card__media { display: flex; align-items: center; justify-content: center; height: 200px; background: #fff; overflow: hidden; }
.category-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; transition: transform 0.4s var(--ease); }
.category-card:hover .category-card__media img { transform: scale(1.04); }
.category-card:hover .category-card__media .product-card__placeholder { transform: scale(1.04); }
.category-card__media .product-card__placeholder { border-radius: 0; }
.category-card__badge {
  display: block; width: 100%; box-sizing: border-box;
  color: #fff; font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 6px 14px;
}
.category-card__tag {
  display: inline-block; width: auto; color: #fff; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; margin: 2px 0 8px;
}
.category-card__badge--1 { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.category-card__badge--2 { background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange) 100%); }
.category-card__badge--3 { background: linear-gradient(135deg, var(--success) 0%, #34d399 100%); }
.category-card__badge--4 { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%); }
.category-card__body { padding: 14px 16px 0; flex: 1; display: flex; flex-direction: column; }
.category-card__eyebrow { font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.category-card__body h3 { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.category-card__body h3 a { color: inherit; }
.category-card__body p { font-size: 0.82rem; margin: 0 0 8px; }
.category-card__count { font-size: 0.76rem; font-weight: 500; color: var(--muted); margin-bottom: 0 !important; }
.category-card__footer { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 16px; }
.category-card__footer .category-card__cta.btn-primary { color: var(--navy-dark); }
.category-card__footer .category-card__cta.btn-primary:hover { color: var(--navy-dark); }
.category-card__link { text-align: center; font-size: 0.82rem; font-weight: 500; color: var(--navy); padding: 7px; border-radius: 6px; }
.category-card__link:hover { background: var(--navy-tint); }
.category-grid--list { grid-template-columns: 1fr !important; gap: 12px; }
.category-grid--list .category-card { flex-direction: row; align-items: stretch; }
.category-grid--list .category-card__badge { display: none; }
.category-grid--list .category-card__media { width: 120px; height: auto; flex-shrink: 0; }
.category-grid--list .category-card__body { padding: 14px 16px; }
.category-grid--list .category-card__body p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.category-grid--list .category-card__tag { margin: 0 0 6px; }
.category-grid--list .category-card__footer { flex-direction: row; align-items: center; padding: 14px 16px; width: auto; flex-shrink: 0; }
.category-grid--list .category-card__footer .category-card__cta { width: auto; white-space: nowrap; }
.category-grid--list .category-card__link { display: none; }
@media (max-width: 600px) {
  .category-grid--list .category-card { flex-direction: column; }
  .category-grid--list .category-card__media { width: 100%; height: 120px; }
  .category-grid--list .category-card__footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-card { padding: var(--space-3); }
  .product-card__image { height: 100px; }
}

/* Featured products grid (home page) — 5 per row, single row (5 random products). */
.featured-products-grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-5); }
@media (max-width: 1100px) {
  .featured-products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .featured-products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
}

/* Product cards */
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; text-align: left; padding: 0; overflow: hidden; border-radius: var(--radius-sm); transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange) 0%, var(--navy-mid) 100%); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); z-index: 2; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 114, 12, 0.12); border-color: var(--orange); }
.product-card:hover::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .product-card::before { transition: none; } }
.product-card__media { position: relative; display: block; }
.product-card__image {
  width: 100%;
  height: 160px;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
  padding: var(--space-3);
  box-sizing: border-box;
}
.product-card__image img { height: 100%; width: 100%; object-fit: contain; transition: transform 0.4s var(--ease); }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 55%, var(--orange-dark) 130%);
  background-size: 180% 180%;
  animation: gradientDrift 10s ease-in-out infinite;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card__placeholder { transform: scale(1.04); }
@keyframes gradientDrift { 0%, 100% { background-position: 0% 40%; } 50% { background-position: 100% 60%; } }
@media (prefers-reduced-motion: reduce) { .product-card__placeholder { animation: none; } }
.product-card__placeholder svg { width: 24px; height: 24px; opacity: 0.95; }
.product-card__placeholder span { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.product-card__badges .badge { font-size: 0.62rem; padding: 3px 9px; }
.product-card__fav { position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0; }
.product-card--has-ribbon .product-card__fav { top: 34px; }
.product-card__fav-btn {
  width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(15,23,42,.18); color: var(--muted); transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.product-card__fav-btn:hover { transform: scale(1.08); color: var(--red); }
.product-card__fav-btn svg { width: 16px; height: 16px; }
.product-card__fav-btn.is-active { color: var(--red); }
.product-card__fav-btn.is-active svg { fill: currentColor; }
.product-card__body { padding: 14px 14px 4px; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 6px; }
.product-card__brand { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 6px; }
.product-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price { font-size: 1.05rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.product-card__price-old { font-size: 0.8rem; font-weight: 500; color: var(--muted); text-decoration: line-through; }
.product-card__ribbon {
  display: block; width: 100%; box-sizing: border-box; text-align: center;
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: #fff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 0;
}
.product-card__stock { font-size: 0.76rem; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; gap: 5px; }
.product-card__stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-card__stock--ok { color: var(--success); }
.product-card__stock--out { color: var(--danger); }
.product-card__footer { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.btn-add-cart {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 10px; background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600;
}
.btn-add-cart:hover { background: var(--orange-dark); }
.btn-add-cart svg { width: 15px; height: 15px; }
.btn-view-detail {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 9px; background: #fff; color: var(--navy); border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600;
}
.btn-view-detail:hover { background: var(--navy-tint); }

.product-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.product-gallery__thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s var(--ease);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover { border-color: var(--border); }
.product-gallery__thumb.is-active { border-color: var(--orange); }
.product-card .price { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 4px 0 10px; letter-spacing: -0.01em; }

/* Product detail page */
.product-detail { align-items: start; grid-template-columns: minmax(0, 520px) 1fr; }
@media (max-width: 760px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail__media { padding: var(--space-4); }
.product-zoom {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  cursor: zoom-in;
  padding: 26px;
  box-sizing: border-box;
  --zoom-origin: center center;
}
.product-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  transform-origin: var(--zoom-origin);
}
.product-zoom:hover img { transform: scale(1.8); }
.product-zoom--empty { padding: 0; cursor: default; }
.product-zoom .product-card__placeholder { width: 100%; height: 100%; border-radius: var(--radius-sm); gap: 12px; }
.product-zoom .product-card__placeholder svg { width: 40px; height: 40px; }
.product-zoom .product-card__placeholder span { font-size: 0.78rem; }
.product-zoom__hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}
.product-zoom__hint svg { width: 15px; height: 15px; }
@media (hover: none) {
  .product-zoom { cursor: default; }
  .product-zoom:hover img { transform: none; }
  .product-zoom__hint { display: none; }
}

.product-detail__title { font-size: 1.65rem; margin: 14px 0 10px; color: var(--navy); }
.product-detail__description { white-space: pre-line; color: var(--muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 18px; }

.variant-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.variant-swatch {
  display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.variant-swatch:hover { border-color: var(--orange); background: var(--orange-tint); }
.variant-swatch--current { border-color: var(--navy); background: var(--navy); color: #fff; }
.variant-swatch--current:hover { background: var(--navy); }

.breadcrumb { display: flex; align-items: center; gap: 8px; padding-top: 18px; font-size: 0.82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span:last-child { color: var(--ink); font-weight: 500; }
.shop-main .breadcrumb { padding-top: 0; }

.product-detail__price-box {
  background: var(--navy-tint); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 16px;
}
.product-detail__price { font-size: 1.9rem; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.product-detail__price span { font-size: 1.1rem; font-weight: 700; }
.product-detail__price-note { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.product-detail__price-old { font-size: 1rem; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-bottom: 2px; }

.product-detail__stock { font-size: 0.86rem; font-weight: 500; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.product-detail__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.product-detail__actions { margin-bottom: 14px; }
.product-detail__buy-row { display: flex; align-items: flex-end; gap: 12px; }
.product-detail__buy-row .form-group { flex: 0 0 90px; margin-bottom: 0; }
.product-detail__buy-row .form-group input { text-align: center; }
.product-detail__buy-row .btn { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .product-detail__buy-row { flex-wrap: wrap; }
  .product-detail__buy-row .form-group { flex: 1 1 90px; }
  .product-detail__buy-row .btn { flex: 1 1 160px; }
}

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 13px; background: var(--success); color: #fff;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; margin-bottom: 20px;
}
.btn-whatsapp:hover { background: #0f6a4a; }
.btn-whatsapp svg { width: 18px; height: 18px; }

.product-detail__external-link {
  margin-bottom: 20px;
  border-color: var(--orange);
  color: var(--orange-dark);
  animation: extLinkPulse 2.2s ease-in-out 3;
}
.product-detail__external-link.btn-outline:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  animation: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(232, 114, 12, 0.25);
}
.product-detail__external-link svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.product-detail__external-link:hover svg { transform: translate(2px, -2px); }
@keyframes extLinkPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 114, 12, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(232, 114, 12, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .product-detail__external-link { animation: none; }
  .product-detail__external-link svg { transition: none; }
}

.product-detail__trust { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail__trust span {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 0.78rem; font-weight: 500; color: var(--ink);
}
.product-detail__trust svg { width: 14px; height: 14px; color: var(--orange); }

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-orange { background: var(--orange-tint); color: var(--orange-dark); }
.badge-navy { background: var(--navy-tint); color: var(--navy); }
.badge-green { background: var(--success-tint); color: var(--success); }
.badge-red { background: var(--danger-tint); color: var(--danger); }
.badge-gray { background: #eef0f3; color: var(--muted); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pagination__pages { display: flex; align-items: center; gap: 4px; }
.pagination__arrow, .pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
}
a.pagination__arrow:hover, a.pagination__page:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }
.pagination__page--current { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
span.pagination__arrow[aria-disabled="true"] { opacity: 0.35; cursor: not-allowed; }
.pagination__ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 38px; color: var(--muted); }
.pagination__icon { width: 16px; height: 16px; }
.pagination__icon--prev { transform: rotate(180deg); }

/* Filter chips (category filters, admin status tabs) */
.actions-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-inline .btn-sm { border-radius: 999px; }
.empty-row td { text-align: center; color: var(--muted); padding: 40px 14px; }

/* Reorder controls (replaces manual "sort order" number field) */
.sort-controls { display: flex; flex-direction: column; gap: 3px; }
.sort-controls form { margin: 0; }
.sort-controls__btn {
  width: 24px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  padding: 0;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.sort-controls__btn:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }

/* Drag-and-drop reordering (admin lists) */
.drag-handle {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  color: var(--muted); font-size: 16px; letter-spacing: -2px;
  cursor: grab; user-select: none;
}
.drag-handle:hover { color: var(--navy); }
[data-sortable-url] > tr,
[data-sortable-url] > tbody { transition: background-color 0.15s var(--ease); }
[data-sortable-url] > tr.is-dragging,
[data-sortable-url] > tbody.is-dragging { opacity: 0.4; }
[data-sortable-url] > tr.is-drag-over,
[data-sortable-url] > tbody.is-drag-over > tr:first-child { background: var(--navy-tint); }
[data-sortable-url] > tr[draggable="true"],
[data-sortable-url] > tbody[draggable="true"] > tr:first-child { cursor: grab; }
[data-sortable-url].is-saving { opacity: 0.6; pointer-events: none; }
.sortable-feedback { margin: 8px 0 0; font-size: 13px; min-height: 18px; }
.sortable-feedback--error { color: var(--danger, #c0392b); }

/* Shop toolbar (result count + sort) */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.shop-toolbar__count { font-size: 0.85rem; margin: 0; }
.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  transition: border-color 0.15s var(--ease);
}
.shop-toolbar__sort:hover { border-color: var(--navy-mid); }
.shop-toolbar__sort-icon { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }
.shop-toolbar__sort label { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.shop-toolbar__sort select {
  width: auto;
  min-width: 160px;
  padding: 6px 28px 6px 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-dark);
  border: none;
  background: transparent;
  cursor: pointer;
}
.shop-toolbar__sort select:focus { outline: none; box-shadow: none; }
.shop-toolbar__view { display: flex; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.shop-toolbar__view-btn {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border: none; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.shop-toolbar__view-btn svg { width: 16px; height: 16px; }
.shop-toolbar__view-btn.is-active { background: var(--navy); color: #fff; }
.shop-toolbar__view-btn:not(.is-active):hover { background: var(--bg); color: var(--ink); }

@media (max-width: 700px) {
  .shop-toolbar__sort { flex-basis: 100%; justify-content: space-between; }
}

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 14px;
  background: var(--navy-tint);
  color: var(--navy-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.active-filters__chip:hover { background: var(--navy); color: #fff; }
.active-filters__chip-x { width: 14px; height: 14px; flex-shrink: 0; }
.active-filters__clear { font-size: 0.8rem; font-weight: 600; color: var(--orange-dark); padding: 6px 4px; }
.active-filters__clear:hover { color: var(--orange); }

/* Empty results state */
.shop-empty {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.shop-empty__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
}
.shop-empty__icon svg { width: 24px; height: 24px; }
.shop-empty h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.shop-empty p { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; }

/* Résultats boutique mis à jour en direct (filtres/tri/pagination) : léger
   fondu pendant le chargement plutôt qu'un saut ou un flash de page blanche. */
#shopResults { transition: opacity 0.15s var(--ease); }
#shopResults.is-loading { opacity: 0.45; pointer-events: none; }
@keyframes shopResultsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
#shopResults.is-updated { animation: shopResultsIn 0.3s var(--ease); }
@media (prefers-reduced-motion: reduce) { #shopResults { transition: none; } #shopResults.is-updated { animation: none; } }

/* Shop layout — sidebar filters + main product column */
.shop-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
}
.shop-main { flex: 1 1 0%; min-width: 0; }

.shop-filters {
  flex: 0 0 238px;
  width: 238px;
}
.shop-filters__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  position: relative;
}
.shop-filters__toggle svg { width: 16px; height: 16px; }
.shop-filters__toggle-badge {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: -2px;
}
.shop-filters__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 80px;
}
.shop-filters__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2px;
}
.shop-filters__reset { font-size: 0.8rem; color: var(--orange-dark); font-weight: 600; }
.shop-filters__reset:hover { color: var(--orange); }
.shop-filters__group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.shop-filters__group h4 {
  margin: 0;
  background: var(--navy-dark);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.shop-filters__group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  cursor: pointer;
}
.shop-filters__group-toggle h4 { flex: 1 1 0%; }
.shop-filters__group-caret { width: 16px; height: 16px; color: #fff; stroke-width: 2.4px; margin-right: 14px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.shop-filters__group--collapsible.is-open .shop-filters__group-caret { transform: rotate(180deg); }
.shop-filters__group--collapsible .shop-filters__group-body { display: none; }
.shop-filters__group--collapsible.is-open .shop-filters__group-body { display: block; }
.shop-filters__group-body { padding: 12px 16px; }
.shop-filters__check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.35;
  cursor: pointer;
}
.shop-filters__check input[type=checkbox] {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}
.shop-filters__category-row { display: flex; align-items: flex-start; gap: 4px; }
.shop-filters__category-row .shop-filters__check { flex: 1 1 0%; min-width: 0; }
.shop-filters__category-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
}
.shop-filters__category-toggle:hover { background: var(--navy-tint); color: var(--navy); }
.shop-filters__category-caret {
  width: 12px;
  height: 12px;
  transform: rotate(90deg);
  transition: transform 0.2s var(--ease);
}
.shop-filters__category.is-open .shop-filters__category-caret { transform: rotate(270deg); }
.shop-filters__category-children {
  display: none;
  padding-left: 6px;
  border-left: 2px solid var(--border);
  margin: 2px 0 4px 8px;
}
.shop-filters__category.is-open .shop-filters__category-children { display: block; }
.shop-filters__check--child { padding-left: 8px; font-size: 0.86rem; color: var(--muted); }
.shop-filters__count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4b5563;
  background: var(--bg);
  border-radius: 10px;
  padding: 2px 8px;
  flex-shrink: 0;
}
.shop-filters__price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.shop-filters__price input {
  width: 0;
  flex: 1 1 0%;
  padding: 9px 10px;
  font-size: 0.85rem;
}
.shop-filters__price span { color: var(--muted); flex-shrink: 0; }

@media (max-width: 900px) {
  .shop-layout { flex-direction: column; align-items: stretch; gap: 14px; }
  .shop-toolbar { margin-top: 4px; margin-bottom: 14px; padding-bottom: 12px; }
  .shop-filters { width: 100%; flex-basis: auto; }
  .shop-filters__toggle { display: flex; }
  .shop-filters__form { display: none; position: static; }
  .shop-filters.is-open .shop-filters__form { display: block; }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 500; margin-bottom: 7px; font-size: 0.88rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=file], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: #d3d7de; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20, 48, 79, 0.08); outline: none; }
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--danger); }
input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12); }
textarea { resize: vertical; min-height: 110px; }

.password-field { position: relative; }
.password-field input[type=password], .password-field input[type=text] { padding-right: 44px; }
.password-field__toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: var(--radius-sm); cursor: pointer;
  color: var(--muted); padding: 0;
}
.password-field__toggle:hover { background: var(--bg); color: var(--ink); }
.password-field__toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.password-field__toggle svg { width: 18px; height: 18px; }

/* Formulaire de devis : sections, lignes à chiffrer, dépôt de fichiers */
.form-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.98rem; font-weight: 700; color: var(--navy);
  margin: 32px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.form-section-title:first-child { margin-top: 0; }
.form-section-title svg { width: 19px; height: 19px; color: var(--orange); flex-shrink: 0; }

.quote-items { display: flex; flex-direction: column; gap: 12px; }
.quote-item-row {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; display: grid; grid-template-columns: 1fr 90px 150px auto; gap: 12px; align-items: end;
}
.quote-item-row .form-group { margin-bottom: 0; }
.quote-item-row__remove {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; color: var(--danger); cursor: pointer; flex-shrink: 0; padding: 0;
}
.quote-item-row__remove:hover { background: var(--danger-tint); border-color: var(--danger); }
.quote-item-row__remove svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .quote-item-row { grid-template-columns: 1fr 1fr; }
  .quote-item-row .form-group:nth-child(3), .quote-item-row .quote-item-row__remove { grid-column: span 1; }
  .quote-item-row .quote-item-row__remove { width: 100%; }
}

.quote-items-summary {
  display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--border); font-size: 0.95rem; color: var(--muted);
}
.quote-items-summary strong { color: var(--navy); font-size: 1.2rem; font-weight: 700; }

.file-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-md); padding: 28px 20px;
  text-align: center; cursor: pointer; position: relative;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.file-upload-zone:hover, .file-upload-zone.is-dragover { border-color: var(--orange); background: var(--orange-tint); }
.file-upload-zone.is-invalid { border-color: var(--danger); }
.file-upload-zone svg { width: 26px; height: 26px; color: var(--orange); margin-bottom: 8px; }
.file-upload-zone__text { font-weight: 600; color: var(--navy); margin: 0; }
.file-upload-zone__hint { color: var(--muted); font-size: 0.82rem; margin: 4px 0 0; }
.file-upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.file-upload-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-upload-list__item {
  display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px;
}
.file-upload-list__item svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }
.file-upload-list__item .file-upload-list__size { color: var(--muted); margin-left: auto; flex-shrink: 0; }

/* Avis clients : étoiles, résumé, cartes d'avis */
.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star-rating svg { width: 15px; height: 15px; stroke: none; }
.star-rating svg.is-filled { fill: #F59E0B; }
.star-rating svg.is-empty { fill: var(--border); }
.star-rating--lg svg { width: 20px; height: 20px; }

.review-summary { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; }
.review-summary__count { color: var(--muted); font-size: 0.85rem; }

.review-card { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-card:last-child { border-bottom: none; }
.review-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.review-card__author { font-weight: 600; color: var(--ink); }
.review-card__date { color: var(--muted); font-size: 0.8rem; }
.review-card__comment { margin: 0; color: var(--ink); }

.product-card__rating { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.product-card__rating span { color: var(--muted); font-size: 0.78rem; }
.form-hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }

.auth-card { max-width: 440px; margin: 60px auto; }

.account-type-toggle { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 20px; }
.account-type-toggle__btn {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.account-type-toggle__btn.is-active { background: var(--navy); color: #fff; }
.account-type-toggle__btn:not(.is-active):hover { background: var(--navy-tint); color: var(--navy); }

.product-gallery-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.product-gallery-admin__item { position: relative; width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.product-gallery-admin__item img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-admin__remove {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(28, 26, 20, 0.65);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-admin__remove:hover { background: var(--danger); }
.product-gallery-admin__remove-check {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  accent-color: var(--danger);
  cursor: pointer;
}

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: var(--success-tint); color: var(--success); border: 1px solid rgba(18, 128, 92, 0.2); }
.alert-error { background: var(--danger-tint); color: var(--danger); border: 1px solid rgba(192, 57, 43, 0.2); }

/* Toast notifications — fixed overlay, never pushes page layout */
.toast-stack {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 360px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(20, 48, 92, 0.18);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  pointer-events: auto;
  animation: toastIn 0.35s var(--ease) both;
}
.toast.is-leaving { animation: toastOut 0.25s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } .toast.is-leaving { animation: none; opacity: 0; } }
.toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast > span { flex: 1 1 0%; color: var(--ink); }
.toast--success { border: 1px solid rgba(18, 128, 92, 0.2); }
.toast--success svg { color: var(--success); }
.toast--error { border: 1px solid rgba(192, 57, 43, 0.2); }
.toast--error svg { color: var(--danger); }
.toast--list ul { flex: 1 1 0%; margin: 0; padding-left: 16px; color: var(--ink); }
.toast__close {
  border: none; background: none; padding: 2px; margin: -2px -4px 0 0;
  color: var(--muted); cursor: pointer; flex-shrink: 0;
}
.toast__close svg { width: 14px; height: 14px; margin: 0; }
.toast__close:hover { color: var(--ink); }
@media (max-width: 480px) {
  .toast-stack { left: 12px; right: 12px; width: auto; top: 76px; }
}

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { background: var(--bg); color: var(--navy); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.table-wrap table { border: none; }
@media (max-width: 700px) {
  .table-wrap { overflow-x: visible; border: none; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap th, .table-wrap td, .table-wrap tr { display: block; width: auto; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .table-wrap td { border: none; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: right; }
  .table-wrap td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; flex-shrink: 0; text-align: left; }
  .table-wrap td:empty, .table-wrap td:not([data-label]):has(> *:only-child) { justify-content: center; }
}
@media (min-width: 900px) {
  .admin-main .table-wrap { max-width: 80%; }
  .admin-main .admin-group { max-width: 80%; }
  .admin-main .admin-group .table-wrap { max-width: 100%; }
  .admin-main .category-jumplinks { max-width: 80%; }
}

.table-wrap--compact th, .table-wrap--compact td { padding: 5px 10px; font-size: 0.78rem; }
.table-wrap--compact th { font-size: 0.68rem; }
.table-wrap--compact .btn-sm { padding: 4px 9px; font-size: 0.7rem; }
.table-wrap--compact .badge { padding: 2px 8px; font-size: 0.62rem; }
.table-wrap--compact .sort-controls__btn { width: 16px; height: 12px; font-size: 7px; }

/* Grouped list sections (e.g. products by category) */
.bulk-action-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--navy); color: #fff; border-radius: var(--radius-md);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md); flex-wrap: wrap; max-width: calc(100vw - 40px);
}
.bulk-action-bar span { font-size: 0.85rem; font-weight: 500; margin-right: 4px; }
.bulk-action-bar .btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.bulk-action-bar .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.admin-group { margin-bottom: 14px; }
.admin-group__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
}
.admin-group__title--toggle {
  width: 100%; background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; cursor: pointer; text-align: left; font-family: inherit;
  transition: background-color 0.15s var(--ease);
}
.admin-group__title--toggle:hover { background: #f1f5f9; }
.admin-group__count { font-size: 0.7rem; font-weight: 500; color: var(--muted); }
.admin-group__chevron { width: 13px; height: 13px; margin-left: auto; color: var(--muted); transition: transform 0.15s var(--ease); }
.admin-group.is-open .admin-group__chevron { transform: rotate(180deg); }
.admin-group__body { display: none; margin-top: 8px; }
.admin-group.is-open .admin-group__body { display: block; }

.category-jumplinks {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.category-jumplinks a {
  font-size: 0.76rem; font-weight: 500; color: var(--navy);
  background: var(--navy-tint); border-radius: 999px;
  padding: 5px 12px;
}
.category-jumplinks a:hover { background: var(--orange-tint); color: var(--orange-dark); }

/* CTA band — full-bleed dark section for emphasis */
.cta-band {
  position: relative;
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}
.cta-band::before { width: 300px; height: 300px; background: radial-gradient(circle, rgba(213,35,29,0.45), transparent 70%); top: -120px; left: -60px; animation: driftOne 16s ease-in-out infinite; }
.cta-band::after { width: 260px; height: 260px; background: radial-gradient(circle, rgba(232,114,12,0.45), transparent 70%); bottom: -110px; right: -40px; animation: driftTwo 18s ease-in-out infinite; }
@keyframes driftOne { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes driftTwo { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, -30px) scale(1.15); } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 52ch; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { .cta-band::before, .cta-band::after { animation: none; } }

/* Bannières personnalisables (page d'accueil, créées depuis l'admin) */
.home-banner-section { padding: var(--space-7) 0; }
.home-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.home-banner--navy { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; }
.home-banner--orange { background: linear-gradient(165deg, var(--orange) 0%, var(--orange-dark) 100%); color: #fff; }
.home-banner--light { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.home-banner--purple { background: linear-gradient(165deg, #3a2a68 0%, #1a1236 100%); color: #fff; }
.home-banner--sunset { background: linear-gradient(135deg, var(--orange) 0%, var(--red-dark) 55%, #3a2a68 100%); color: #fff; }
.home-banner--duo { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 45%, var(--orange) 100%); color: #fff; }
/* Toutes les bannières colorées ont un léger relief façon verre (bord clair en haut) pour un rendu plus vivant */
.home-banner--navy, .home-banner--orange, .home-banner--purple, .home-banner--sunset, .home-banner--duo {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-sm);
}
.home-banner:hover { transform: translateY(-4px); }
.home-banner--navy:hover, .home-banner--orange:hover, .home-banner--purple:hover, .home-banner--sunset:hover, .home-banner--duo:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 20px 44px rgba(20, 48, 92, 0.28);
}
.home-banner--light:hover { box-shadow: var(--shadow-md); border-color: var(--orange); }
/* Halos animés en fond, même langage visuel que .cta-band */
.home-banner::before, .home-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.home-banner--navy::before, .home-banner--orange::before, .home-banner--purple::before, .home-banner--sunset::before, .home-banner--duo::before {
  width: 320px; height: 320px; top: -70px; left: -40px; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); animation: driftOne 14s ease-in-out infinite;
}
.home-banner--navy::after, .home-banner--orange::after, .home-banner--purple::after, .home-banner--sunset::after, .home-banner--duo::after {
  width: 280px; height: 280px; bottom: -60px; right: -20px; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 70%); animation: driftTwo 16s ease-in-out infinite;
}
.home-banner--light::before { width: 320px; height: 320px; top: -70px; left: -40px; background: radial-gradient(circle, rgba(232,114,12,.18), transparent 70%); animation: driftOne 14s ease-in-out infinite; }
.home-banner--light::after { width: 280px; height: 280px; bottom: -60px; right: -20px; background: radial-gradient(circle, rgba(124,79,227,.16), transparent 70%); animation: driftTwo 16s ease-in-out infinite; }
.home-banner__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.home-banner__inner--square { flex-direction: column; text-align: center; max-width: 640px; margin: 0 auto; }
.home-banner__inner--square .home-banner__text p { margin-left: auto; margin-right: auto; }
.home-banner__text { flex: 1 1 320px; min-width: 0; }
.home-banner__text h2 { margin: 0 0 10px; }
.home-banner--navy .home-banner__text p, .home-banner--orange .home-banner__text p,
.home-banner--purple .home-banner__text p, .home-banner--sunset .home-banner__text p, .home-banner--duo .home-banner__text p { color: rgba(255, 255, 255, 0.85); }
.home-banner--light .home-banner__text p { color: var(--muted); }
.home-banner__text p { margin: 0 0 20px; max-width: 60ch; }
.home-banner__image { flex: 1.4 1 460px; }
/* Diaporama : plusieurs photos défilent automatiquement dans la même vignette */
.home-banner__slider { display: flex; flex-direction: column; gap: 10px; }
/* Zoom au survol + loupe, même interaction que la fiche produit */
.home-banner__zoom {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  cursor: zoom-in; box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 9;
  background: var(--bg);
  --zoom-origin: center center;
}
.home-banner__zoom img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform 0.3s ease-out; transform-origin: var(--zoom-origin); }
.home-banner__zoom:hover img { transform: scale(1.35); }
[data-banner-slider] .home-banner__zoom img {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease), transform 0.3s ease-out;
}
[data-banner-slider] .home-banner__zoom img.is-active { opacity: 1; }
.home-banner__zoom-hint {
  position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); box-shadow: var(--shadow-sm); pointer-events: none;
}
.home-banner__zoom-hint svg { width: 15px; height: 15px; }
.home-banner__dots { display: flex; justify-content: center; gap: 8px; }
.home-banner__dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--border); cursor: pointer; transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.home-banner--navy .home-banner__dot, .home-banner--orange .home-banner__dot,
.home-banner--purple .home-banner__dot, .home-banner--sunset .home-banner__dot, .home-banner--duo .home-banner__dot { background: rgba(255,255,255,.35); }
.home-banner__dot.is-active { background: var(--orange); transform: scale(1.3); }
.home-banner--navy .home-banner__dot.is-active, .home-banner--orange .home-banner__dot.is-active,
.home-banner--purple .home-banner__dot.is-active, .home-banner--sunset .home-banner__dot.is-active, .home-banner--duo .home-banner__dot.is-active { background: #fff; }
@media (hover: none) {
  .home-banner__zoom { cursor: default; }
  .home-banner__zoom:hover img { transform: none; }
  .home-banner__zoom-hint { display: none; }
}
.home-banner--navy .btn-primary, .home-banner--orange .btn-primary,
.home-banner--purple .btn-primary, .home-banner--sunset .btn-primary, .home-banner--duo .btn-primary { background: #fff; color: var(--navy-dark); }
.home-banner--navy .btn-primary:hover, .home-banner--orange .btn-primary:hover,
.home-banner--purple .btn-primary:hover, .home-banner--sunset .btn-primary:hover, .home-banner--duo .btn-primary:hover { background: var(--navy-tint); color: var(--navy-dark); }
@media (max-width: 700px) { .home-banner__inner { text-align: center; justify-content: center; } .home-banner__text p { margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) {
  .home-banner::before, .home-banner::after { animation: none; }
  .home-banner:hover { transform: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-trust {
  background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0;
}
.footer-trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.footer-trust__item { display: flex; align-items: flex-start; gap: 12px; }
.footer-trust__item svg { width: 28px; height: 28px; color: var(--orange); flex-shrink: 0; }
.footer-trust__item strong { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 2px; }
.footer-trust__item span { font-size: 0.8rem; color: var(--muted); }

.site-footer { background: #0a0f1e; color: #9ca3af; padding: var(--space-8) 0 var(--space-5); margin-top: 0; }
.site-footer a { color: #b9c2d1; }
.site-footer a:hover { color: var(--orange); }
.footer-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-top span { color: #fff; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: var(--space-6); }
.footer-grid h4 { color: #fff; margin: 0 0 var(--space-3); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.footer-grid p { margin: 0 0 10px; font-size: 0.9rem; }
.footer-grid .footer-about { color: #8b96a8; font-size: 0.88rem; max-width: 34ch; margin-bottom: 14px; }
.footer-outlink { display: inline-block; color: var(--orange); font-weight: 500; font-size: 0.85rem; margin-bottom: 18px; }
.footer-outlink:hover { color: var(--orange-dark); }
.footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; color: #7c8798; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 20px; font-size: 0.83rem; color: #7c8798;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-cookie-link {
  background: none; border: none; padding: 0; color: #7c8798; font-size: 0.83rem;
  font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.footer-cookie-link:hover { color: var(--orange-tint); }
.footer-payment { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-payment span {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px; padding: 4px 10px; font-size: 0.76rem; font-weight: 500; color: #b9c2d1;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Admin layout
   ========================================================================== */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--navy-dark);
  color: #b9c2d1;
  padding: 22px 0;
  flex-shrink: 0;
}
.admin-sidebar-top { display: flex; align-items: center; justify-content: space-between; }
.admin-sidebar .brand { margin: 0 20px 22px; padding: 8px 12px; background: #fff; }
.admin-sidebar .brand__wordmark { color: #fff; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav-toggle--admin span { background: #fff; }
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #b9c2d1;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255, 255, 255, 0.06); color: #fff; border-left-color: var(--orange); }
.nav-link-icon { width: 17px; height: 17px; flex-shrink: 0; }
.admin-sidebar nav a .nav-link-icon { color: #6b7a94; transition: color 0.15s var(--ease); }
.admin-sidebar nav a:hover .nav-link-icon, .admin-sidebar nav a.active .nav-link-icon { color: var(--orange); }
.admin-sidebar .group-title { padding: 18px 20px 6px; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #62708a; font-weight: 600; }
.nav-group { margin-top: 6px; }
.nav-group__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 10px 20px; background: none; border: none; cursor: pointer;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); font-weight: 600;
  transition: color 0.15s var(--ease);
}
.nav-group__toggle:hover { color: #fff; }
.nav-group__toggle svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform 0.2s var(--ease); }
.nav-group.is-open .nav-group__toggle svg { transform: rotate(180deg); }
.nav-group.is-open .nav-group__toggle { color: #fff; }
.nav-group__items { max-height: 0; overflow: hidden; transition: max-height 0.2s var(--ease); }
.nav-group.is-open .nav-group__items { max-height: 320px; }
.cat-group-row--toggle { background: #f8fafc; }
.cat-group-row--toggle:hover { background: #f1f5f9; }
.cat-group-count { color: var(--muted); font-size: 0.82rem; margin-left: 6px; }
.cat-group-chevron { width: 13px; height: 13px; margin-left: 6px; vertical-align: middle; color: var(--muted); transition: transform 0.15s var(--ease); }
.cat-group-row--toggle.is-open .cat-group-chevron { transform: rotate(180deg); }
.cat-child-row td:nth-child(2) { padding-left: 34px; color: var(--muted); }
.admin-main { flex: 1; padding: 32px 36px; }
.admin-main h1 { font-size: 1.7rem; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.stat-card .value { font-size: 1.9rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.stat-card .label { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* Dashboard KPI cards with trend indicators */
.kpi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 22px; }
.kpi-card__label { color: var(--muted); font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.kpi-card__value { font-size: 1.7rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi-trend { font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.kpi-trend--up { background: var(--success-tint); color: var(--success); }
.kpi-trend--down { background: var(--danger-tint); color: var(--danger); }
.kpi-trend--flat { background: #eef0f3; color: var(--muted); }
.kpi-card__sub { color: var(--muted); font-size: 0.78rem; margin-top: 6px; }

/* Tableau de bord Statistiques (analytics) */
.kpi-card--sm .kpi-card__label { text-transform: none; letter-spacing: 0; font-size: 0.78rem; }
.kpi-card--sm .kpi-card__value { font-size: 1.25rem; font-weight: 600; }
.kpi-cards--icon .kpi-card { display: flex; align-items: flex-start; gap: 12px; }
.kpi-card__icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.kpi-card__icon svg { width: 16px; height: 16px; }
.kpi-card__icon--navy { background: var(--navy-tint); color: var(--navy); }
.kpi-card__icon--orange { background: var(--orange-tint); color: var(--orange); }
.kpi-card__icon--success { background: var(--success-tint); color: var(--success); }
.analytics-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.analytics-card__title { font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 4px; }
.analytics-card__sub { color: var(--muted); font-size: 0.8rem; margin: 0 0 18px; }
.analytics-chart { width: 100%; height: auto; overflow: visible; }
.analytics-chart text { font-family: var(--font-sans); fill: var(--muted); font-size: 9.5px; font-weight: 500; }
.funnel-bars { display: flex; flex-direction: column; gap: 16px; }
.funnel-bar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 0.85rem; }
.funnel-bar__head strong { color: var(--ink); font-weight: 500; }
.funnel-bar__pct { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.funnel-bar__track { height: 24px; background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; }
.funnel-bar__fill {
  height: 100%; border-radius: var(--radius-sm); width: 0;
  background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
  display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
  color: #fff; font-size: 0.72rem; font-weight: 500;
  transition: width 0.8s var(--ease);
  min-width: 34px;
}
/* Graphique "visiteurs par jour" : la ligne se dessine, les points apparaissent ensuite */
.analytics-chart__line { stroke-dasharray: 20000; stroke-dashoffset: 20000; transition: stroke-dashoffset 1.1s var(--ease); }
.analytics-chart__area { opacity: 0; transition: opacity 1s var(--ease) 0.4s; }
.analytics-chart__dot { opacity: 0; transition: opacity 0.35s var(--ease); }
.analytics-card.is-visible .analytics-chart__line { stroke-dashoffset: 0; }
.analytics-card.is-visible .analytics-chart__area { opacity: 1; }
.analytics-card.is-visible .analytics-chart__dot { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .analytics-chart__line, .analytics-chart__area, .analytics-chart__dot,
  .funnel-bar__fill, .donut-chart__svg circle { transition: none !important; }
}
.analytics-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 30px 0; }

/* Camembert (donut) SVG pur, sans librairie */
.donut-chart { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.donut-chart__svg { width: 128px; height: 128px; flex-shrink: 0; }
.donut-chart__svg circle { transition: stroke-dasharray 0.6s var(--ease); }
.donut-chart__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1 1 140px; min-width: 0; }
.donut-chart__legend li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.donut-chart__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.donut-chart__label { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-chart__pct { margin-left: auto; color: var(--muted); font-weight: 600; flex-shrink: 0; }

@media (max-width: 640px) {
  .kpi-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-cards--icon .kpi-card { gap: 8px; }
  .kpi-card__icon { width: 26px; height: 26px; border-radius: var(--radius-sm); }
  .kpi-card__icon svg { width: 13px; height: 13px; }
  .kpi-card__label { font-size: 0.66rem; margin-bottom: 4px; }
  .kpi-card__value, .kpi-card--sm .kpi-card__value { font-size: 1rem; gap: 6px; }
  .kpi-card__sub { font-size: 0.65rem; }
  .analytics-card { padding: 14px; }
  .analytics-card__title { font-size: 0.7rem; }
  .analytics-card__sub { font-size: 0.72rem; margin-bottom: 12px; }
  .analytics-chart text { font-size: 8px; }
  .donut-chart { gap: 10px; }
  .donut-chart__svg { width: 76px; height: 76px; }
  .donut-chart__legend { gap: 6px; }
  .donut-chart__legend li { font-size: 0.76rem; }
  .funnel-bars { gap: 12px; }
  .funnel-bar__head { font-size: 0.78rem; }
  .funnel-bar__track { height: 18px; }
  .funnel-bar__fill { font-size: 0.66rem; padding-right: 8px; }
}
@media (max-width: 400px) {
  .kpi-cards { grid-template-columns: 1fr; }
}

/* Alert chips row */
.alert-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.alert-chip {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px 8px 8px; font-size: 0.85rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.alert-chip:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.alert-chip__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; border-radius: 50%;
  font-size: 0.8rem; font-weight: 600; padding: 0 6px;
  background: var(--navy-tint); color: var(--navy);
}
.alert-chip--warn .alert-chip__count { background: var(--orange-tint); color: var(--orange-dark); }
.alert-chip--danger .alert-chip__count { background: var(--danger-tint); color: var(--danger); }
.alert-chip--ok .alert-chip__count { background: var(--success-tint); color: var(--success); }

/* Two-column dashboard section */
.dashboard-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.status-breakdown__row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.85rem; }
.status-breakdown__label { flex: 0 0 150px; color: var(--ink); }
.status-breakdown__track { flex: 1; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.status-breakdown__fill { height: 100%; background: var(--navy); border-radius: 999px; }
.status-breakdown__count { flex: 0 0 28px; text-align: right; font-weight: 700; color: var(--navy); }

.top-products__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.top-products__row:last-child { border-bottom: none; }
.top-products__name { color: var(--ink); font-weight: 500; }
.top-products__meta { color: var(--muted); font-size: 0.78rem; }
.top-products__revenue { font-weight: 700; color: var(--navy); white-space: nowrap; }

@media (max-width: 780px) {
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; padding: 14px 0; }
  .admin-sidebar-top { padding: 0 20px; }
  .admin-sidebar .brand { padding: 0; }
  .nav-toggle--admin { display: flex; }
  .admin-sidebar nav#admin-nav { display: none; margin-top: 14px; }
  .admin-sidebar nav#admin-nav.is-open { display: block; }
  .admin-main { padding: 22px 18px; }

  section { padding: 56px 0; }
  .cta-band { padding: var(--space-7) var(--space-4); }
}

@media (max-width: 1024px) {
  .topbar__links a:nth-child(2) { display: none; }
  .site-header__inner { position: relative; flex-wrap: nowrap; height: 60px; }
  .brand img { height: 34px; }
  .search-bar { display: none; }
  .nav-toggle { display: flex; order: 2; }
  .header-actions { order: 3; margin-left: auto; gap: 14px; flex-shrink: 0; }
  .header-action span { display: none; }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 16px 32px rgba(11, 30, 52, .12);
    padding: 10px 20px 18px;
    z-index: 39;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 10px; border-radius: var(--radius-sm); color: var(--ink); font-size: 0.88rem; transition: background-color 0.15s var(--ease); }
  .main-nav a:hover, .main-nav a.active { background: var(--navy-tint); }
  .main-nav .nav-link-icon { width: 15px; height: 15px; }
  .main-nav__search { display: flex; gap: 8px; padding: 6px 0 14px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  .main-nav__search input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--border); background: var(--bg); border-radius: 999px; font-size: 0.85rem; font-family: inherit; }
  .main-nav__search button { background: var(--orange); border: none; border-radius: var(--radius-sm); width: 38px; display: flex; align-items: center; justify-content: center; color: #fff; }
  .main-nav__search button svg { width: 16px; height: 16px; }
}

/* ==========================================================================
   Bandeau de consentement aux cookies
   ========================================================================== */
.cookie-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(20, 48, 92, 0.25);
  padding: var(--space-5);
  z-index: 200;
  animation: cookieRise 0.4s var(--ease);
}
@keyframes cookieRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.cookie-consent__close {
  position: absolute; top: 10px; right: 12px;
  border: none; background: none; font-size: 20px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 6px;
}
.cookie-consent__close:hover { color: var(--ink); }
.cookie-consent__title { font-size: 1.05rem; margin: 0 30px 10px 0; }
.cookie-consent__text { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.cookie-consent__prefs { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin: 0 0 14px; padding: 12px; background: var(--bg); border-radius: var(--radius-sm); }
.cookie-consent__status { margin: 0 0 8px; font-weight: 600; color: var(--navy); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.cookie-consent__prefs-toggle { background: none; border: none; padding: 0; color: var(--navy); font-size: 0.85rem; text-decoration: underline; cursor: pointer; font-family: inherit; }
.cookie-consent__prefs-toggle:hover { color: var(--orange); }
.cookie-consent__links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.78rem; }
@media (max-width: 480px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent { animation: none; }
}

/* ==========================================================================
   Contact page — form + direct contact info side by side
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-6); align-items: start; }
.contact-info-card {
  background: var(--navy-tint);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: 100px;
}
.contact-info-card h3 { margin-bottom: var(--space-5); }
.contact-info-card__list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-info-card__list li { display: flex; align-items: center; gap: 14px; }
.contact-info-card__list .icon-badge { background: #fff; margin: 0; flex-shrink: 0; }
.contact-info-card__list strong { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.contact-info-card__list a { color: var(--navy); font-weight: 600; }
.contact-info-card__list a:hover { color: var(--orange); }
.contact-info-card__note { color: var(--muted); font-size: 0.85rem; margin: 0; line-height: 1.6; }
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
}

/* ==========================================================================
   Panier — liste d'articles + récapitulatif
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-6); align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  align-items: center;
  gap: var(--space-4);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.cart-item__media {
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__media .product-card__placeholder { width: 100%; height: 100%; }
.cart-item__media .product-card__placeholder svg { width: 22px; height: 22px; }
.cart-item__body { min-width: 0; }
.cart-item__name { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cart-item__name:hover { color: var(--orange); }
.cart-item__price { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.cart-item__remove button {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none; padding: 0; cursor: pointer;
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  transition: color 0.15s var(--ease);
}
.cart-item__remove svg { width: 14px; height: 14px; }
.cart-item__remove button:hover { color: var(--danger); }
.cart-item__qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 999px; }
.cart-item__qty-btn {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: none; background: none; color: var(--navy); cursor: pointer; flex-shrink: 0;
}
.cart-item__qty-btn svg { width: 13px; height: 13px; }
.cart-item__qty-btn:hover { color: var(--orange); }
.cart-item__qty input {
  width: 36px; padding: 0; border: none; text-align: center; font-weight: 600; font-size: 0.88rem;
  -moz-appearance: textfield;
}
.cart-item__qty input::-webkit-outer-spin-button, .cart-item__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-item__qty input:focus { box-shadow: none; }
.cart-item__total { font-weight: 700; color: var(--navy); white-space: nowrap; }
.cart-summary {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: var(--space-4); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); font-size: 0.9rem; }
.cart-summary__row--total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.cart-summary .btn { margin-top: var(--space-4); }

.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-form input { flex: 1; min-width: 0; padding: 9px 12px; font-size: 0.85rem; }
.coupon-applied {
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
  background: var(--success-tint); color: var(--success); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 0.85rem;
}
.coupon-applied svg:first-child { width: 15px; height: 15px; flex-shrink: 0; }
.coupon-applied span { flex: 1; }
.coupon-applied button { background: none; border: none; color: var(--success); cursor: pointer; padding: 2px; display: flex; }
.coupon-applied button svg { width: 14px; height: 14px; }
.cart-summary__continue { display: block; text-align: center; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.cart-summary__continue:hover { color: var(--orange); }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 56px 1fr; grid-template-areas: "media body" "media qty" "total total"; row-gap: 10px; }
  .cart-item__media { width: 56px; height: 56px; grid-area: media; }
  .cart-item__body { grid-area: body; }
  .cart-item__qty { grid-area: qty; justify-self: start; }
  .cart-item__total { grid-area: total; text-align: right; }
}

/* ==========================================================================
   Commande — récapitulatif compact + sélecteur de méthode de paiement
   ========================================================================== */
.order-recap { display: flex; flex-direction: column; gap: 12px; margin-top: var(--space-4); }
.order-recap__item { display: grid; grid-template-columns: 44px 1fr auto auto; align-items: center; gap: 12px; }
.order-recap__media { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.order-recap__media img { width: 100%; height: 100%; object-fit: contain; }
.order-recap__media .product-card__placeholder { width: 100%; height: 100%; }
.order-recap__media .product-card__placeholder svg { width: 16px; height: 16px; }
.order-recap__name { font-weight: 600; color: var(--ink); font-size: 0.92rem; min-width: 0; }
.order-recap__qty { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.order-recap__total { font-weight: 700; color: var(--navy); white-space: nowrap; }

.payment-method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.payment-method-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 10px; cursor: pointer; text-align: center;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.payment-method-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.payment-method-card__icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.payment-method-card__icon svg { width: 18px; height: 18px; }
.payment-method-card__name { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.payment-method-card:hover { border-color: var(--navy-mid); }
.payment-method-card:has(input:checked) { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 114, 12, 0.12); }
.payment-method-card:has(input:checked) .payment-method-card__icon { background: var(--orange); color: #fff; }
.payment-method-card:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ==========================================================================
   Espace client — navigation d'onglets + listes de commandes/tickets
   ========================================================================== */
.account-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px; margin-bottom: var(--space-6);
}
.account-nav__link {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  border: none; background: none; font-family: inherit; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.account-nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-nav__link:hover { color: var(--navy); background: var(--navy-tint); }
.account-nav__link.is-active { color: var(--orange-dark); background: var(--orange-tint); }
.account-nav__logout { margin-left: auto; }
@media (max-width: 640px) {
  .account-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav__link span { display: none; }
  .account-nav__logout { margin-left: 0; }
}

.account-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.account-card h3 { margin: 0 0 var(--space-4); }
.account-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--space-4); }
.account-card__header h3 { margin: 0; }

.account-list { display: flex; flex-direction: column; gap: 10px; }
.account-list-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px 16px; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.account-list-item:hover { border-color: var(--navy-mid); box-shadow: var(--shadow-sm); }
.account-list-item__icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-list-item__icon svg { width: 18px; height: 18px; }
.account-list-item__body { flex: 1 1 0%; min-width: 0; }
.account-list-item__title { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.account-list-item__title:hover { color: var(--orange); }
.account-list-item__meta { font-size: 0.82rem; color: var(--muted); }
.account-list-item__action { flex-shrink: 0; font-size: 0.85rem; font-weight: 600; color: var(--navy); white-space: nowrap; }
.account-list-item__action:hover { color: var(--orange); }
@media (max-width: 560px) {
  .account-list-item { flex-wrap: wrap; }
  .account-list-item__action { width: 100%; text-align: right; }
}

.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-message { max-width: 85%; border-radius: var(--radius-md); padding: 12px 16px; }
.ticket-message__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.ticket-message__head strong { font-size: 0.85rem; }
.ticket-message__head span { font-size: 0.75rem; color: var(--muted); }
.ticket-message p { margin: 0; color: var(--ink); }
.ticket-message--client { align-self: flex-end; background: var(--navy-tint); }
.ticket-message--support { align-self: flex-start; background: var(--bg); border: 1px solid var(--border); }
@media (max-width: 560px) { .ticket-message { max-width: 100%; } }

/* Module de facturation : lignes de devis/factures, rendu comme un tableau compact
   (une ligne d'en-tête + des lignes sans label répété, pour tenir plus de lignes
   visibles à l'écran qu'un formulaire classique). */
.billing-items-table {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px;
  background: var(--bg);
}
.billing-item-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.55fr 0.75fr 0.65fr 0.6fr 0.8fr 28px;
  gap: 6px; align-items: center;
}
.billing-item-row--head {
  padding: 2px 6px; font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--muted);
}
.billing-item-row:not(.billing-item-row--head) {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px;
}
.billing-item-row input, .billing-item-row select { padding: 6px 8px; font-size: 0.82rem; margin: 0; }
.billing-item-row__total { font-weight: 700; color: var(--navy); font-size: 0.85rem; text-align: right; padding-right: 4px; }
.billing-item-row .quote-item-row__remove { width: 28px; height: 28px; }
.billing-item-row .quote-item-row__remove svg { width: 13px; height: 13px; }
@media (max-width: 900px) {
  .billing-item-row--head { display: none; }
  .billing-item-row:not(.billing-item-row--head) { grid-template-columns: 1fr 1fr; gap: 6px; }
  .billing-item-row__total, .billing-item-row .quote-item-row__remove { grid-column: span 2; }
}

.billing-totals-summary { margin-top: 14px; }
.billing-totals-summary .totals { width: 260px; margin-left: auto; }
.billing-totals-summary .totals td { padding: 3px 0; font-size: 0.85rem; }
.billing-totals-summary .totals td.label { color: var(--muted); }
.billing-totals-summary .totals td.value { text-align: right; font-variant-numeric: tabular-nums; }
.billing-totals-summary .totals tr.total td { border-top: 2px solid var(--navy); font-size: 0.95rem; font-weight: 700; color: var(--navy); padding-top: 6px; }
