/* ==========================================================================
   ZBR SHOP — Design system de la vitrine (Indigo & Ambre)
   Thème clair et thème sombre conçus séparément. Aucune couleur codée hors jetons.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F8;
  --surface-3: #E4E7F2;
  --primary: #4338CA;
  --primary-hover: #3730A3;
  --primary-soft: #EEF0FF;
  --on-primary: #FFFFFF;
  --primary-grad: linear-gradient(135deg, #4F46E5 0%, #4338CA 55%, #312E81 100%);
  --accent: #D97706;
  --accent-strong: #B45309;
  --on-accent-strong: #FFFFFF;
  --accent-soft: #FEF3C7;
  --on-accent-soft: #92400E;
  --accent-grad: linear-gradient(120deg, #B45309 0%, #D97706 60%, #F59E0B 100%);
  --text: #0F172A;
  --text-2: #5B6478;
  --text-3: #8A93A6;
  --border: #E3E6EF;
  --border-strong: #CDD2E0;
  --success: #15803D;
  --success-soft: #DCFCE7;
  --danger: #B91C1C;
  --danger-soft: #FEE2E2;
  --info: #1D4ED8;
  --info-soft: #DBEAFE;
  --warning: #B45309;
  --warning-soft: #FEF3C7;
  --tier-bronze: #9A5B2E;
  --tier-bronze-soft: #F6E7DA;
  --tier-silver: #52607A;
  --tier-silver-soft: #E9EDF4;
  --tier-gold: #B45309;
  --tier-gold-soft: #FEF3C7;
  --hero-bg: radial-gradient(1200px 500px at 85% -10%, #E0E7FF 0%, transparent 60%), radial-gradient(800px 400px at -10% 110%, #FEF3C7 0%, transparent 55%), #F6F7FB;
  --footer-bg: #0F172A;
  --footer-text: #CBD2E1;
  --footer-muted: #8A93A6;
  --overlay: rgba(15, 23, 42, .55);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 30px -18px rgba(30, 27, 75, .35);
  --shadow-lg: 0 30px 60px -28px rgba(30, 27, 75, .45);
  --focus: 0 0 0 3px rgba(67, 56, 202, .35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0D17;
    --surface: #151827;
    --surface-2: #1D2135;
    --surface-3: #262B42;
    --primary: #A5B4FC;
    --primary-hover: #C7D2FE;
    --primary-soft: rgba(165, 180, 252, .14);
    --on-primary: #1E1B4B;
    --primary-grad: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #4338CA 100%);
    --accent: #FBBF24;
    --accent-strong: #FBBF24;
    --on-accent-strong: #1C1400;
    --accent-soft: rgba(251, 191, 36, .14);
    --on-accent-soft: #FCD34D;
    --accent-grad: linear-gradient(120deg, #92400E 0%, #B45309 55%, #D97706 100%);
    --text: #E6E8F2;
    --text-2: #9AA3B8;
    --text-3: #6B7389;
    --border: #262B40;
    --border-strong: #353B55;
    --success: #4ADE80;
    --success-soft: rgba(74, 222, 128, .14);
    --danger: #F87171;
    --danger-soft: rgba(248, 113, 113, .14);
    --info: #93C5FD;
    --info-soft: rgba(147, 197, 253, .14);
    --warning: #FBBF24;
    --warning-soft: rgba(251, 191, 36, .14);
    --tier-bronze: #E3A877;
    --tier-bronze-soft: rgba(227, 168, 119, .14);
    --tier-silver: #C3CBDC;
    --tier-silver-soft: rgba(195, 203, 220, .12);
    --tier-gold: #FBBF24;
    --tier-gold-soft: rgba(251, 191, 36, .14);
    --hero-bg: radial-gradient(1100px 480px at 85% -10%, rgba(99, 102, 241, .28) 0%, transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(217, 119, 6, .16) 0%, transparent 55%), #0B0D17;
    --footer-bg: #070810;
    --footer-text: #C3C9D8;
    --footer-muted: #7C849A;
    --overlay: rgba(0, 0, 0, .65);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 14px 30px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
    --focus: 0 0 0 3px rgba(165, 180, 252, .45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0D17;
  --surface: #151827;
  --surface-2: #1D2135;
  --surface-3: #262B42;
  --primary: #A5B4FC;
  --primary-hover: #C7D2FE;
  --primary-soft: rgba(165, 180, 252, .14);
  --on-primary: #1E1B4B;
  --primary-grad: linear-gradient(135deg, #818CF8 0%, #6366F1 55%, #4338CA 100%);
  --accent: #FBBF24;
  --accent-strong: #FBBF24;
  --on-accent-strong: #1C1400;
  --accent-soft: rgba(251, 191, 36, .14);
  --on-accent-soft: #FCD34D;
  --accent-grad: linear-gradient(120deg, #92400E 0%, #B45309 55%, #D97706 100%);
  --text: #E6E8F2;
  --text-2: #9AA3B8;
  --text-3: #6B7389;
  --border: #262B40;
  --border-strong: #353B55;
  --success: #4ADE80;
  --success-soft: rgba(74, 222, 128, .14);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, .14);
  --info: #93C5FD;
  --info-soft: rgba(147, 197, 253, .14);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, .14);
  --tier-bronze: #E3A877;
  --tier-bronze-soft: rgba(227, 168, 119, .14);
  --tier-silver: #C3CBDC;
  --tier-silver-soft: rgba(195, 203, 220, .12);
  --tier-gold: #FBBF24;
  --tier-gold-soft: rgba(251, 191, 36, .14);
  --hero-bg: radial-gradient(1100px 480px at 85% -10%, rgba(99, 102, 241, .28) 0%, transparent 60%), radial-gradient(700px 380px at -10% 110%, rgba(217, 119, 6, .16) 0%, transparent 55%), #0B0D17;
  --footer-bg: #070810;
  --footer-text: #C3C9D8;
  --footer-muted: #7C849A;
  --overlay: rgba(0, 0, 0, .65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 14px 30px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
  --focus: 0 0 0 3px rgba(165, 180, 252, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4, .display { font-family: var(--font-display); color: var(--text); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
::selection { background: var(--primary); color: var(--on-primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: var(--on-primary); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
@media (min-width: 1100px) { .container { padding: 0 32px; } }

.icon { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 13px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 14.5px; line-height: 1; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { color: var(--danger); filter: brightness(.97); }
.btn-accent { background: var(--accent-strong); color: var(--on-accent-strong); }
.btn-accent:hover { color: var(--on-accent-strong); filter: brightness(1.05); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center;
  position: relative; flex-shrink: 0; transition: background .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.badge-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent-strong); color: var(--on-accent-strong);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: block; }
.brand-text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand-text span { display: block; font-size: 11.5px; color: var(--text-2); }
.main-nav { display: none; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: var(--text-2); }
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }
/* Plus spécifique que .segmented, .icon-btn ou .btn (déclarés plus loin ou avant) : sans quoi la langue et le
   compte restaient affichés sur mobile et l'en-tête débordait sur les écrans de moins de 450 px. */
.site-header .hide-mobile { display: none; }
@media (min-width: 980px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .site-header .hide-mobile { display: inline-flex; }
}
@media (min-width: 1160px) { .header-cta { display: inline-flex; } }
/* Petits téléphones : le slogan se tronque au lieu de pousser le bouton de menu hors de l'écran. */
@media (max-width: 479px) {
  .site-header .container { gap: 10px; }
  .site-header .brand, .site-header .brand-text { min-width: 0; flex-shrink: 1; }
  .site-header .brand-text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 11px; gap: 2px; }
.segmented a, .segmented button {
  padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); border: 0; background: transparent;
}
.segmented .is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  display: none; z-index: 50;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu button, .dropdown-menu a {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; font-size: 14px; text-align: left; color: var(--text);
}
.dropdown-menu button:hover, .dropdown-menu a:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu [aria-checked="true"] { color: var(--primary); font-weight: 600; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; background: var(--surface);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 12px 16px 20px;
  display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a.nav-link { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; font-weight: 500; }
.mobile-nav a.nav-link:hover, .mobile-nav a.nav-link[aria-current="page"] { background: var(--surface-2); color: var(--primary); }
.mobile-nav .mobile-tools { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 4px 4px; border-top: 1px solid var(--border); margin-top: 8px; }

/* ---------- Messages ---------- */
.flash-stack { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
@media (min-width: 640px) { .flash-stack { left: auto; width: 420px; } }
.flash {
  pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14px; animation: flash-in .25s ease-out;
}
.flash .icon { margin-top: 1px; }
.flash-success .icon { stroke: var(--success-soft); }
.flash-error { background: var(--danger); color: #FFFFFF; }
.flash button { margin-left: auto; background: transparent; border: 0; color: inherit; opacity: .7; padding: 0 0 0 8px; }
@keyframes flash-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; align-items: flex-start; }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--on-accent-soft); }
.alert-danger { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
/* « NB » d'un service, en rouge : ce qu'il faut fournir, ne pas fournir, et ce qui est livré. */
.notice-box { padding: 12px 14px; border: 2px solid var(--danger); border-radius: var(--radius-md); background: var(--danger-soft); color: var(--danger); font-size: 14px; line-height: 1.55; }
.notice-box .notice-title { display: block; font-size: 15px; letter-spacing: .04em; }
.notice-box p { margin: 6px 0 0; }
.offline-banner { display: none; background: var(--warning-soft); color: var(--on-accent-soft); text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 600; }
.is-offline .offline-banner { display: block; }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; }
.section-head p { color: var(--text-2); margin-top: 6px; max-width: 560px; }
.link-more { color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.page-head p { color: var(--text-2); margin-top: 8px; }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); border-bottom: 1px solid var(--border); }
.hero .container { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 40px; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 12.5px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; margin: 16px 0 14px; max-width: 620px; }
.hero h1 em { font-style: normal; background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 16.5px; color: var(--text-2); max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-visual { position: relative; }
.carousel { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--surface); aspect-ratio: 16 / 11; }
.carousel-track { display: flex; height: 100%; transition: transform .5s ease; }
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .slide-copy {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; color: #FFFFFF;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 10, 24, .82) 100%);
}
.slide-copy h3 { color: #FFFFFF; font-size: clamp(18px, 2.2vw, 24px); }
.slide-copy p { opacity: .9; margin-top: 4px; font-size: 14px; }
.slide-copy .btn { margin-top: 12px; background: #FFFFFF; color: #1E1B4B; min-height: 38px; font-size: 13.5px; }
.carousel-dots { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .55); padding: 0; transition: width .2s; }
.carousel-dots button[aria-current="true"] { width: 22px; background: #FFFFFF; }
.hero-art { width: 100%; height: auto; }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -28px; position: relative; z-index: 2; }
@media (min-width: 800px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-md); }
.stat b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-2); }

/* ---------- Accueil sur mobile : moins de hauteur avant les produits ---------- */
@media (max-width: 699px) {
  .hero-visual.is-art { display: none; }
  .stat-strip { gap: 8px; margin-top: -22px; }
  .stat { padding: 10px 12px; border-radius: 14px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
}

/* ---------- Catégories : une ligne défilante de vignettes rondes ---------- */
.section-cats { padding: 24px 0 8px; }
@media (min-width: 900px) { .section-cats { padding: 44px 0 16px; } }
.section-cats .section-head { margin-bottom: 14px; }
@media (max-width: 699px) { .section-cats .section-head p { display: none; } }
.rail { position: relative; }
.cat-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80px; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding: 6px 4px 8px; margin: -6px -4px 0;
}
.cat-rail::-webkit-scrollbar { display: none; }
/* Fondu sur le bord où il reste des catégories à voir. */
.rail.can-next .cat-rail { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.rail.can-prev .cat-rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%); mask-image: linear-gradient(90deg, transparent, #000 12%); }
.rail.can-prev.can-next .cat-rail { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
@media (min-width: 960px) { .cat-rail { grid-auto-columns: 104px; gap: 22px; } }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; scroll-snap-align: start; color: var(--text); }
.cat-icon {
  width: 68px; height: 68px; border-radius: 50%; background: #FFFFFF; color: var(--primary); display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 18px -10px rgba(15, 23, 42, .35);
  outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .15s, transform .15s, box-shadow .15s;
}
.cat-icon:not(:has(img)) { background: var(--primary-soft); }
@media (min-width: 960px) { .cat-icon { width: 86px; height: 86px; } }
.cat-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-chip strong { font-size: 12.5px; font-weight: 600; line-height: 1.25; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 960px) { .cat-chip strong { font-size: 13.5px; } }
.cat-chip:hover { color: var(--primary); }
.cat-chip:hover .cat-icon, .cat-chip:focus-visible .cat-icon { outline-color: var(--primary); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(67, 56, 202, .55); }
.cat-chip:focus-visible { outline: none; }
.rail-btn {
  position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -24px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-md); cursor: pointer;
}
.rail-btn:hover { border-color: var(--primary); color: var(--primary); }
.rail-prev { left: -12px; }
.rail-next { right: -12px; }
@media (hover: hover) and (min-width: 700px) { .rail.can-prev .rail-prev, .rail.can-next .rail-next { display: flex; } }

/* ---------- Grilles ---------- */
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
@media (min-width: 1400px) { .grid-products.grid-wide { grid-template-columns: repeat(5, 1fr); } }
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 44%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.scroll-row > * { scroll-snap-align: start; }
.scroll-row, .chip-row, .account-nav, .gallery-thumbs { scrollbar-width: none; }
.scroll-row::-webkit-scrollbar, .chip-row::-webkit-scrollbar, .account-nav::-webkit-scrollbar, .gallery-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .scroll-row { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
@media (min-width: 1024px) { .scroll-row { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* ---------- Carte produit ---------- */
.pcard { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
.pcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--border-strong); }
.pcard.is-out { opacity: .72; }
.pthumb { position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ptags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .01em; }
.tag-promo { background: var(--accent-strong); color: var(--on-accent-strong); }
.tag-new { background: var(--primary); color: var(--on-primary); }
.tag-out { background: var(--danger-soft); color: var(--danger); }
.pinfo { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pinfo .pcat { font-size: 11.5px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pinfo .pname { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pinfo .pname::after { content: ""; position: absolute; inset: 0; }
.prating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); }
.prating .icon { width: 14px; height: 14px; fill: var(--accent); stroke: none; }
.pprice-row { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); white-space: nowrap; }
.price-old { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; margin-right: 6px; white-space: nowrap; }
.price-from { font-size: 11px; color: var(--text-2); display: block; }
.addbtn { position: relative; z-index: 2; width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.addbtn:hover { background: var(--primary-hover); color: var(--on-primary); }
.addbtn .icon { stroke-width: 2.3; }

/* ---------- Services ---------- */
.grid-services { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid-services { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .grid-services.three { grid-template-columns: repeat(3, 1fr); } }
.svc-card { position: relative; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); color: var(--text); }
.svc-thumb { width: 60px; height: 60px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { flex: 1; min-width: 0; }
.svc-body h3 { font-size: 15.5px; font-weight: 600; font-family: var(--font-body); }
.svc-body p { font-size: 13px; color: var(--text-2); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-price { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 14px; white-space: nowrap; }

/* ---------- Publicités ---------- */
.ad-card { position: relative; display: grid; grid-template-columns: 1fr; border-radius: var(--radius-lg); overflow: hidden; background: var(--primary-grad); color: #FFFFFF; min-height: 160px; }
@media (min-width: 720px) { .ad-card { grid-template-columns: 1.2fr 1fr; } }
.ad-card .ad-copy { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ad-card h3 { color: #FFFFFF; font-size: 20px; }
.ad-card p { opacity: .92; font-size: 14px; }
.ad-card img { width: 100%; height: 100%; object-fit: cover; max-height: 240px; }
.ad-card .btn { align-self: flex-start; background: #FFFFFF; color: #1E1B4B; min-height: 38px; }

/* ---------- Bloc application ---------- */
.app-band { border-radius: 26px; background: var(--primary-grad); color: #FFFFFF; padding: 28px; display: grid; gap: 24px; overflow: hidden; position: relative; }
@media (min-width: 900px) { .app-band { grid-template-columns: 1.2fr 1fr; padding: 44px; align-items: center; } }
.app-band h2 { color: #FFFFFF; font-size: clamp(24px, 3vw, 34px); }
.app-band p { opacity: .9; margin-top: 10px; max-width: 520px; }
.app-band .btn-light { background: #FFFFFF; color: #1E1B4B; }
.app-band .btn-light:hover { background: #EEF0FF; color: #1E1B4B; }
.feature-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .feature-list { grid-template-columns: 1fr 1fr; } }
.feature-list li { display: flex; gap: 10px; align-items: center; font-size: 14px; background: rgba(255, 255, 255, .12); padding: 11px 13px; border-radius: 12px; list-style: none; }
.feature-list { padding: 0; margin: 0; }

/* ---------- Téléchargement ---------- */
.download-grid { display: grid; gap: 16px; }
@media (min-width: 880px) { .download-grid { grid-template-columns: 1.3fr 1fr; } }
.app-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.app-card.is-client { border-color: var(--primary); box-shadow: var(--shadow-md); }
.app-card .app-icon { width: 64px; height: 64px; border-radius: 18px; }
/* Deux liens d'installation : fichier APK et Google Play. */
.download-links { display: grid; gap: 10px; }
@media (min-width: 560px) { .download-links { grid-template-columns: 1fr 1fr; } }
.download-link { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1.5px solid var(--primary); background: var(--surface); color: var(--text); transition: background .15s; }
.download-link:first-child { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.download-link:hover { background: var(--primary-soft); color: var(--text); }
.download-link:first-child:hover { background: var(--primary-hover); color: var(--on-primary); }
.download-link strong { display: block; font-size: 15px; }
.download-link small { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.download-link-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); }
/* Nouveautés de la dernière version, sous le bouton de téléchargement : une ligne par nouveauté. */
.release-notes { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); color: var(--text); }
.release-notes h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 2px; }
.release-notes h3 .icon { color: var(--primary); }
.release-notes p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.release-notes .release-note { position: relative; padding-left: 16px; }
.release-notes .release-note::before { content: "•"; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }
.release-notes .release-notes-heading { color: var(--text); font-weight: 600; margin-top: 4px; }
.download-link:first-child .download-link-icon { background: rgba(255, 255, 255, .16); color: var(--on-primary); }
.app-band .btn-light-outline { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .7); }
.app-band .btn-light-outline:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
/* Paiement via WhatsApp */
.btn-whatsapp { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.btn-whatsapp:hover { color: var(--success); filter: brightness(.97); }
.whatsapp-card { border-color: var(--success); }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; }
.install-step-num { width: 32px; height: 32px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-steps strong { display: block; font-size: 15px; }
.install-steps p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; width: fit-content; }
.pill-primary { background: var(--primary-soft); color: var(--primary); }
.pill-neutral { background: var(--surface-2); color: var(--text-2); }

/* ---------- Statuts ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending, .status-submitted, .status-open { background: var(--warning-soft); color: var(--on-accent-soft); }
.status-confirmed, .status-processing, .status-shipped, .status-out_for_delivery, .status-reviewing, .status-in_progress, .status-ready { background: var(--info-soft); color: var(--info); }
.status-delivered, .status-completed, .status-succeeded, .status-resolved { background: var(--success-soft); color: var(--success); }
.status-cancelled, .status-failed, .status-rejected, .status-closed, .status-refunded { background: var(--danger-soft); color: var(--danger); }

/* ---------- Cartes génériques ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.card-tight { padding: 14px 16px; }
.card h2, .card h3 { font-size: 17px; font-weight: 700; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 14px 0; }

/* ---------- Boutique ---------- */
.shop-layout { display: grid; gap: 20px; padding-bottom: 48px; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 260px 1fr; gap: 28px; } }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; align-self: start; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } }
.filters h3 { font-size: 13px; font-family: var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 16px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: var(--text); }
.cat-list a:hover { background: var(--surface-2); color: var(--text); }
.cat-list a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.cat-list .sub a { padding-left: 22px; font-size: 13.5px; color: var(--text-2); }
.filters-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
@media (max-width: 1023px) { .filters:not(.is-open) { display: none; } }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 16px; }
.searchbar { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 14px; min-height: 46px; flex: 1; min-width: 220px; }
.searchbar input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 14.5px; min-height: 44px; }
.searchbar input::placeholder { color: var(--text-3); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; }
.pagination .is-current { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pagination .is-disabled { opacity: .45; }

/* ---------- Fiche produit ---------- */
.product-layout { display: grid; gap: 24px; padding: 8px 0 48px; }
@media (min-width: 960px) { .product-layout { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 24px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-3); border: 1px solid var(--border); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--border); background: var(--surface-2); flex-shrink: 0; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .06em; }
.pd-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 6px 0 10px; }
.pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-2); font-size: 13.5px; }
.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.pd-price { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: var(--primary); }
.pd-price-old { font-size: 17px; color: var(--text-3); text-decoration: line-through; }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--success-soft); color: var(--success); }
.stock-pill.is-out { background: var(--danger-soft); color: var(--danger); }
.variant-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chips label { position: relative; }
.variant-chips input { position: absolute; opacity: 0; inset: 0; }
.variant-chips span { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.variant-chips span small { font-weight: 500; color: var(--text-2); font-size: 12px; }
.variant-chips input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.variant-chips input:focus-visible + span { box-shadow: var(--focus); }
.variant-chips input:disabled + span { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 13px; padding: 4px; }
.qty button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--surface); color: var(--text); font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qty input { width: 48px; text-align: center; border: 0; background: transparent; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 30px; height: 30px; font-size: 15px; }
.qty-sm input { width: 36px; font-size: 14px; }
.buy-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.buy-box > .btn { flex: 1 1 220px; }
.info-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding: 16px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 13.5px; color: var(--text-2); }
.info-list div { display: flex; gap: 10px; align-items: center; }
.prose { font-size: 15px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 20px; margin: 26px 0 10px; }
.prose h3 { font-size: 17px; margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; color: var(--text-2); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary); text-decoration: underline; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.stars { display: inline-flex; gap: 2px; }
.stars .icon { width: 15px; height: 15px; stroke: none; fill: var(--border-strong); }
.stars .icon.on { fill: var(--accent); }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--text); }
.field .req { color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); box-shadow: var(--focus); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.error-text { font-size: 12.5px; color: var(--danger); font-weight: 500; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 16px; text-align: center; background: var(--surface); color: var(--text-2); font-size: 13.5px; }
.dropzone input { display: block; margin: 10px auto 0; max-width: 100%; }
.option-cards { display: grid; gap: 10px; }
@media (min-width: 560px) { .option-cards.two { grid-template-columns: 1fr 1fr; } }
.option-card { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; }
.option-card input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option-card strong { display: block; font-size: 14px; }
.option-card small { color: var(--text-2); font-size: 12.5px; }
.option-card .pay-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Panier / commande ---------- */
.cart-layout { display: grid; gap: 20px; padding-bottom: 48px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 28px; align-items: start; } }
.cart-item { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.cart-item + .cart-item { margin-top: 10px; }
.cart-item.has-issue { border-color: var(--danger); }
.cart-thumb { width: 72px; height: 72px; border-radius: 13px; background: var(--surface-2); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-body { flex: 1; min-width: 0; }
.cart-body h3 { font-size: 14.5px; font-family: var(--font-body); font-weight: 600; }
.cart-body .sub { font-size: 12.5px; color: var(--text-2); }
.cart-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-danger { background: none; border: 0; color: var(--danger); font-size: 12.5px; font-weight: 600; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--text-2); }
.summary-row b, .summary-row strong { color: var(--text); }
.summary-row.total { border-top: 1px dashed var(--border-strong); margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 700; color: var(--text); }
.summary-row.total b { font-family: var(--font-display); color: var(--primary); font-size: 22px; }
.summary-row .green { color: var(--success); font-weight: 600; }
.promo-box { display: flex; gap: 8px; padding: 10px; border: 1.5px dashed var(--accent); border-radius: 14px; background: var(--surface); align-items: center; }
.promo-box input { flex: 1; border: 0; outline: 0; background: transparent; min-height: 36px; font-size: 14px; text-transform: uppercase; }
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.steps span b { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 11px; }

/* ---------- Suivi (timeline) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li.is-reached::before { background: var(--primary); }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
.timeline li.is-reached .dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.timeline li.is-current .dot { box-shadow: 0 0 0 5px var(--primary-soft); }
.timeline li.is-cancelled .dot { background: var(--danger); border-color: var(--danger); color: #FFFFFF; }
.timeline .dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.timeline strong { font-size: 14px; display: block; }
.timeline small { color: var(--text-2); font-size: 12.5px; }

/* ---------- Compte ---------- */
.account-layout { display: grid; gap: 20px; padding-bottom: 48px; }
@media (min-width: 960px) { .account-layout { grid-template-columns: 250px 1fr; gap: 28px; align-items: start; } }
.account-nav { display: flex; gap: 8px; overflow-x: auto; }
@media (min-width: 960px) { .account-nav { flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; position: sticky; top: calc(var(--header-h) + 16px); } }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 960px) { .account-nav a { border: 0; background: transparent; } }
.account-nav a:hover { color: var(--text); background: var(--surface-2); }
.account-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.loyalty-card { border-radius: var(--radius-lg); padding: 20px; background: var(--accent-grad); color: #FFFFFF; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.loyalty-card b { font-family: var(--font-display); font-size: 30px; display: block; }
.loyalty-card small { opacity: .92; }
.progress { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .3); overflow: hidden; margin-top: 10px; width: 220px; max-width: 100%; }
.progress span { display: block; height: 100%; background: #FFFFFF; border-radius: 6px; }
.order-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.order-row + .order-row { margin-top: 10px; }
.order-row:hover { border-color: var(--border-strong); }
.order-row h3 { font-size: 15px; font-family: var(--font-display); }
.order-row .meta { font-size: 12.5px; color: var(--text-2); }
.order-row .amount { font-family: var(--font-display); font-weight: 700; color: var(--primary); text-align: right; }
.order-row a.stretched::after { content: ""; position: absolute; inset: 0; }
.thumbs-mini { display: flex; gap: 6px; }
.thumbs-mini span { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--text-3); }
.thumbs-mini img { width: 100%; height: 100%; object-fit: cover; }
.loyalty-card .loyalty-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; }
.loyalty-card .btn { background: rgba(255, 255, 255, .18); color: #FFFFFF; border-color: transparent; }
.loyalty-card .btn:hover { background: rgba(255, 255, 255, .28); color: #FFFFFF; }

/* ---------- Fidélité ---------- */
.text-success { color: var(--success); }
.tier-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.tier-card.is-current { border-color: var(--tier-color); box-shadow: 0 0 0 4px var(--tier-soft); }
.tier-card header { display: flex; align-items: center; gap: 12px; }
.tier-card h3 { font-size: 20px; }
.tier-card .range { font-size: 13px; color: var(--text-2); }
.tier-card .rate { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--tier-color); background: var(--tier-soft); border-radius: 12px; padding: 10px 12px; }
.tier-medal { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--tier-soft); color: var(--tier-color); flex-shrink: 0; }
.tier-bronze { --tier-color: var(--tier-bronze); --tier-soft: var(--tier-bronze-soft); }
.tier-silver { --tier-color: var(--tier-silver); --tier-soft: var(--tier-silver-soft); }
.tier-gold { --tier-color: var(--tier-gold); --tier-soft: var(--tier-gold-soft); }
.perk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.perk-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.perk-list .icon { color: var(--tier-color, var(--primary)); margin-top: 1px; }
.rule-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .rule-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .rule-grid.four { grid-template-columns: repeat(4, 1fr); } }
.rule { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.rule .rule-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rule strong { display: block; font-size: 15px; }
.rule p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.eligibility-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .eligibility-grid { grid-template-columns: 1fr 1fr; } }
.eligibility-card { --tier-color: var(--success); --tier-soft: var(--success-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.eligibility-card.is-excluded { --tier-color: var(--danger); --tier-soft: var(--danger-soft); }
.eligibility-card header { display: flex; gap: 12px; align-items: center; }
.eligibility-card h3 { font-size: 17px; }
.eligibility-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--tier-soft); color: var(--tier-color); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
@media (min-width: 480px) { .eligibility-card .perk-list { grid-template-columns: 1fr 1fr; } }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { color: var(--text-2); font-weight: 600; font-size: 13px; }
.data-table td.num, .data-table th.num { text-align: right; }
.coupon-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px dashed var(--accent); border-radius: 16px; background: var(--surface); flex-wrap: wrap; }
.coupon-row + .coupon-row { margin-top: 10px; }
.coupon-row .code { font-family: var(--font-display); font-weight: 700; color: var(--primary); font-size: 17px; letter-spacing: .02em; }
.coupon-row .grow { flex: 1; min-width: 180px; }
.tx-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tx-row:last-child { border-bottom: 0; }
.tx-row .plus { color: var(--success); font-weight: 700; white-space: nowrap; }
.tx-row .minus { color: var(--danger); font-weight: 700; white-space: nowrap; }

/* ---------- Recherche : variantes sous la carte produit ---------- */
.pvariants { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.pvariants a { font-size: 12px; line-height: 1.2; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.pvariants a.is-match { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); font-weight: 600; }
.pvariants a.is-out { opacity: .55; text-decoration: line-through; }

/* ---------- Exemples de résultats d'un service ---------- */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.examples-grid a { aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); display: block; }
.examples-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Parrainage ---------- */
.referral-invite { display: grid; gap: 16px; max-width: 760px; margin: 24px auto 0; }
.referral-hero { border-radius: 24px; background: var(--primary-grad); color: #FFFFFF; padding: 26px; }
.referral-hero h1, .referral-hero h2 { color: #FFFFFF; font-size: clamp(22px, 3vw, 30px); margin-top: 14px; }
.referral-hero p { opacity: .92; margin-top: 8px; max-width: 560px; }
.referral-hero .hero-ctas { margin-top: 20px; }
.referral-hero .btn-light { background: #FFFFFF; color: #1E1B4B; }
.referral-hero .btn-light:hover { background: #EEF0FF; color: #1E1B4B; }
.referral-hero .btn-light-outline { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .7); }
.referral-hero .btn-light-outline:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.referral-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1.5px dashed var(--primary); border-radius: 16px; background: var(--primary-soft); }
.referral-code .code { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: .08em; color: var(--primary); }
.referral-link { display: flex; gap: 8px; }
.referral-link .input { flex: 1; min-width: 0; }
.referral-share { display: flex; flex-wrap: wrap; gap: 10px; }
.referral-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 720px) { .referral-stats { grid-template-columns: repeat(4, 1fr); } }
.referral-stats .card { padding: 16px; }
.referral-stats b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--primary); }
.referral-stats small { color: var(--text-2); }
.convert-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.convert-form .field { flex: 1; min-width: 160px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }

/* ---------- Authentification ---------- */
.auth-wrap { display: grid; place-items: center; padding: 32px 0 64px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 26px; }
.auth-card .sub { color: var(--text-2); margin: 6px 0 22px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--text-2); }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--primary); }
.faq-item .answer { padding: 0 18px 16px; color: var(--text-2); }

/* ---------- États ---------- */
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty .empty-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.empty h2, .empty h3 { font-size: 18px; }
.empty p { color: var(--text-2); margin: 6px auto 18px; max-width: 420px; }
.error-page { display: grid; place-items: center; text-align: center; padding: 72px 16px; }
.error-page .code { font-family: var(--font-display); font-size: 88px; font-weight: 800; background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 26px; margin: 12px 0 8px; }
.error-page p { color: var(--text-2); margin-bottom: 22px; }

/* ---------- Pop-up ---------- */
.popup { position: fixed; inset: 0; z-index: 70; background: var(--overlay); display: none; align-items: center; justify-content: center; padding: 16px; }
.popup.is-open { display: flex; }
.popup-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.popup-card img { width: 100%; max-height: 260px; object-fit: cover; }
.popup-card .popup-body { padding: 22px; }
.popup-card h2 { font-size: 21px; }
.popup-card p { color: var(--text-2); margin: 8px 0 16px; }
.popup-close { position: absolute; top: 12px; right: 12px; background: var(--surface); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 48px; }
.footer-grid { display: grid; gap: 28px; padding: 44px 0 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.site-footer h3 { color: #FFFFFF; font-size: 14px; font-family: var(--font-body); font-weight: 700; margin-bottom: 12px; }
.site-footer a { color: var(--footer-text); display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer p { color: var(--footer-muted); font-size: 14px; }
.site-footer .brand-text strong { color: #FFFFFF; }
.site-footer .brand-text span { color: var(--footer-muted); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--footer-muted); }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08); display: flex; align-items: center; justify-content: center; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .flash-stack, .popup { display: none !important; }
}
