/* =====================================================================
   AMPIREZOYA — Feuille de style principale
   Bleu foncé + bleu électrique + blanc · 2026
   ===================================================================== */

:root {
  --navy-900: #061230;
  --navy-800: #0A1A3F;
  --navy-700: #0F2557;
  --navy-600: #173270;
  --blue: #1463FF;
  --blue-600: #0D52E0;
  --blue-400: #3D82FF;
  --blue-100: #E7EFFF;
  --blue-50: #F3F7FF;
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --text: #0B1630;
  --text-2: #3A4766;
  --muted: #6B7896;
  --surface: #FFFFFF;
  --surface-2: #FAFBFE;
  --surface-3: #EEF1F6;
  --media: linear-gradient(135deg, #F1F5FD, #FAFCFF);
  --input: #FFFFFF;
  --border: #E3E9F4;
  --border-2: #D3DCEC;
  --success: #12A150;
  --success-bg: #E6F7EE;
  --warning: #C77700;
  --warning-bg: #FFF4E0;
  --danger: #D92D3A;
  --danger-bg: #FDECEE;
  --info: #0E7CC2;
  --info-bg: #E5F4FD;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 63, .06);
  --shadow: 0 4px 18px rgba(10, 26, 63, .07);
  --shadow-lg: 0 18px 48px rgba(10, 26, 63, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --container: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
small, .muted { color: var(--muted); }
code { background: var(--blue-50); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 56px; padding-bottom: 56px; }
.section-sm { padding-top: 32px; padding-bottom: 32px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mobile-only { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; }
.nowrap { white-space: nowrap; }

/* ---------- Icônes ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon.xs { width: 13px; height: 13px; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }
.icon.verified { width: 15px; height: 15px; color: var(--blue); vertical-align: -2px; }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); }
.brand-light { color: #fff; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-400), var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(20, 99, 255, .35); }
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em; }
.brand-name b { color: var(--blue-400); font-weight: 800; }
.brand:not(.brand-light) .brand-name b { color: var(--blue); }
.brand-tag { font-size: .58rem; letter-spacing: .48em; opacity: .75; margin-top: 5px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font: 600 .95rem/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; white-space: nowrap; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(20, 99, 255, .25); }
.btn-primary:hover { background: var(--blue-600); color: #fff; box-shadow: 0 8px 22px rgba(20, 99, 255, .35); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--blue-50); color: var(--text); border-color: var(--blue-100); }
.btn-light { background: var(--surface); color: var(--navy-800); }
.btn-light:hover { background: var(--blue-50); color: var(--navy-800); }
.btn-outline-light { background: rgba(255, 255, 255, .04); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b9212d; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0d8743; color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 8px; }
.btn-xs { padding: 5px 10px; font-size: .78rem; border-radius: 7px; gap: 5px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.btn-link.danger { color: var(--danger); }
.icon-btn { background: transparent; border: 0; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; color: inherit; position: relative; }
.icon-btn:hover { background: rgba(127, 140, 170, .12); }
.icon-btn .count { position: absolute; top: -2px; right: -6px; border-color: #fff; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-primary { background: var(--blue-100); color: var(--blue-600); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.pill { margin-left: auto; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; border: 2px solid var(--navy-800); }
.dot { position: absolute; top: 0; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #FF4D5E; border: 2px solid var(--navy-800); }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: .82rem; font-weight: 600; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; }
.header-top { display: flex; align-items: center; gap: 28px; height: 76px; }
.site-header { background: var(--navy-800); }
.site-header .header-top > .icon-btn { color: #fff; }
.header-logo { flex-shrink: 0; }
.header-search { flex: 1; max-width: 640px; display: flex; position: relative; }
.header-search input { flex: 1; height: 46px; border: 0; border-radius: 10px 0 0 10px; padding: 0 18px; font: 400 .95rem var(--font); background: var(--surface); color: var(--text); outline: none; min-width: 0; }
.header-search input:focus { box-shadow: inset 0 0 0 2px var(--blue-400); }
.header-search button { width: 54px; border: 0; border-radius: 0 10px 10px 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { background: var(--blue-600); }
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; z-index: 60; }
.suggest-box a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--text); font-size: .9rem; }
.suggest-box a:hover, .suggest-box a.focus { background: var(--blue-50); }
.suggest-box small { margin-left: auto; }
.suggest-box img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #fff; font-size: .8rem; font-weight: 500; padding: 6px 12px; border-radius: 10px; cursor: pointer; list-style: none; }
.header-action::-webkit-details-marker { display: none; }
.header-action:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.ha-icon { position: relative; display: inline-flex; }
.ha-icon .icon { width: 24px; height: 24px; }
.ha-icon .count { position: absolute; top: -8px; right: -12px; }
.ha-label { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-nav { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 56px; }
.cat-trigger { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; padding: 8px 4px; color: var(--text); }
.cat-trigger::-webkit-details-marker { display: none; }
.nav-links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.nav-links a { color: var(--text); font-weight: 600; font-size: .94rem; padding: 16px 14px; position: relative; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 3px; border-radius: 3px; background: var(--blue); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 250px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); padding: 8px; z-index: 70; animation: pop .16s var(--ease); }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px; color: var(--text); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--blue-50); color: var(--blue-600); }
.dropdown-menu .icon { width: 18px; height: 18px; color: var(--muted); }
.dropdown-menu hr { margin: 6px 0; }
.dropdown-head { padding: 10px 12px 8px; display: flex; flex-direction: column; }
.dropdown-head small { font-size: .8rem; }
.cat-menu { left: 0; right: auto; width: 290px; }
.cat-menu .icon { color: var(--blue); }
.cat-all { color: var(--blue) !important; font-weight: 600 !important; border-top: 1px solid var(--border); margin-top: 4px; border-radius: 0 0 9px 9px !important; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Flash ---------- */
.flash-stack { position: fixed; top: 140px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.flash-stack.inline { position: static; max-width: none; padding: 16px 28px 0; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg); border-left: 4px solid var(--blue); animation: slidein .3s var(--ease); font-size: .92rem; }
.flash-stack.inline .flash { box-shadow: var(--shadow-sm); }
.flash span { flex: 1; }
.flash-success { border-color: var(--success); } .flash-success .icon { color: var(--success); }
.flash-error { border-color: var(--danger); } .flash-error .icon { color: var(--danger); }
.flash-info .icon { color: var(--blue); }
.flash-warning { border-color: var(--warning); } .flash-warning .icon { color: var(--warning); }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--info-bg); color: var(--text-2); margin-bottom: 20px; font-size: .92rem; }
.notice .icon { color: var(--info); margin-top: 1px; }
.notice-warning { background: var(--warning-bg); } .notice-warning .icon { color: var(--warning); }
.notice-danger { background: var(--danger-bg); } .notice-danger .icon { color: var(--danger); }
.notice-success { background: var(--success-bg); } .notice-success .icon { color: var(--success); }
.demo-ribbon { display: inline-flex; align-items: center; gap: 6px; background: #FFF4E0; color: #8a5300; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% 30%, rgba(20, 99, 255, .45), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(20, 99, 255, .18), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy-700) 70%, #12347c); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 24px 56px; }
.eyebrow { font-size: .8rem; letter-spacing: .4em; font-weight: 700; color: var(--blue-400); text-transform: uppercase; margin-bottom: 14px; display: block; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.8vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; margin-bottom: 22px; }
.hero h1 span { display: block; background: linear-gradient(90deg, #3D82FF, #60A0FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: 1.15rem; color: rgba(255, 255, 255, .86); max-width: 600px; margin-bottom: 30px; }
.hero-text strong { color: #fff; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-trust div { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: rgba(255, 255, 255, .88); max-width: 200px; }
.hero-trust .icon { width: 30px; height: 30px; color: #8FB6FF; }
.hero-visual { position: relative; min-height: 390px; }
.hv-device { position: absolute; inset: 40px 30px 10px 60px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.hv-bar { display: flex; gap: 6px; margin-bottom: 14px; justify-content: flex-end; }
.hv-url { margin: 0 0 18px 150px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: .78rem; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.hv-shop { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hv-shop .avatar { width: 44px; height: 44px; background: var(--surface); color: var(--navy-800); }
.hv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hv-grid span { aspect-ratio: 4 / 3; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; color: rgba(255, 255, 255, .6); }
.hv-grid span .icon { width: 26px; height: 26px; }
.glass-card { position: absolute; background: rgba(255, 255, 255, .93); color: var(--text); border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(3, 12, 40, .35); backdrop-filter: blur(10px); }
.gc-shop { top: 0; left: 0; width: 230px; animation: float 6s ease-in-out infinite; }
.gc-shop .row { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.gc-shop .ico { width: 46px; height: 46px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; }
.gc-shop strong { display: block; font-size: .98rem; }
.gc-shop small { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.gc-shop small::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.gc-stats { right: 0; bottom: 30px; width: 200px; display: grid; gap: 14px; animation: float 8s ease-in-out infinite reverse; }
.gc-stats div { display: flex; gap: 12px; align-items: center; }
.gc-stats .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-100); color: var(--blue); display: grid; place-items: center; }
.gc-stats small { display: block; font-size: .74rem; color: var(--muted); }
.gc-stats b { font-size: 1.05rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Titres de section ---------- */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.left { text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.link-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; position: relative; }
.step-card { position: relative; display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px 22px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step-card:not(:last-child)::after { content: '→'; position: absolute; right: -27px; top: 50%; transform: translateY(-50%); color: var(--border-2); font-size: 1.3rem; }
.step-num { position: absolute; top: -12px; left: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 4px 10px rgba(20, 99, 255, .35); }
.step-card .icon { width: 42px; height: 42px; color: var(--blue); stroke-width: 1.5; }
.step-card h3 { font-size: 1rem; margin-bottom: 4px; }
.step-card p { font-size: .87rem; color: var(--muted); margin: 0; }

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 10px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: .83rem; font-weight: 600; text-align: center; transition: all .2s var(--ease); }
.cat-tile .icon { width: 32px; height: 32px; color: var(--blue); stroke-width: 1.6; }
.cat-tile:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile small { font-weight: 500; font-size: .74rem; }

/* ---------- Cartes avantages ---------- */
.feature-row { display: grid; grid-template-columns: 1.15fr 1fr 1.05fr; gap: 20px; }
.feature-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px; min-height: 220px; background: var(--surface); border: 1px solid var(--border); }
.feature-card.dark { background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: #fff; border: 0; }
.feature-card.dark h3 { color: #fff; }
.feature-card.soft { background: linear-gradient(135deg, #EEF4FF, #F8FBFF); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; font-size: .92rem; position: relative; z-index: 1; }
.check-list li { display: flex; gap: 8px; align-items: center; }
.check-list li::before { content: '✓'; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.feature-card .art { position: absolute; right: -10px; bottom: -10px; opacity: .9; }
.feature-card .art .icon { width: 150px; height: 150px; color: rgba(61, 130, 255, .45); stroke-width: 1; }
.feature-card.soft .art .icon { color: rgba(20, 99, 255, .28); }

/* ---------- État vide ---------- */
.empty-state { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--border-2); border-radius: var(--radius-lg); }
.empty-icon { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-100), #fff); color: var(--blue); }
.empty-icon .icon { width: 36px; height: 36px; stroke-width: 1.5; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { color: var(--muted); max-width: 480px; margin: 0 auto 22px; }
.empty-state.compact { padding: 32px 18px; }
.empty-state.compact .empty-icon { width: 56px; height: 56px; border-radius: 16px; }
.launch-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px 40px; color: #fff; background: radial-gradient(600px 300px at 90% 10%, rgba(20, 99, 255, .5), transparent 60%), linear-gradient(120deg, var(--navy-800), var(--navy-600)); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.launch-banner h2 { color: #fff; margin-bottom: 6px; }
.launch-banner p { color: rgba(255, 255, 255, .8); margin: 0; }
.launch-banner .empty-icon { margin: 0; background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Cartes / panneaux ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.08rem; }
.card + .card { margin-top: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 20px; }

/* ---------- Produits ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { display: block; aspect-ratio: 1; background: var(--media); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--border-2); }
.img-placeholder .icon { width: 48px; height: 48px; stroke-width: 1.2; }
.product-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-name { color: var(--text); font-weight: 600; font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-shop { color: var(--muted); font-size: .8rem; }
.product-price { display: flex; gap: 8px; align-items: baseline; margin-top: auto; padding-top: 4px; }
.product-price strong { font-size: 1.08rem; }
.product-price s { color: var(--muted); font-size: .85rem; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); cursor: pointer; display: grid; place-items: center; color: var(--text-2); transition: transform .15s; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.active { color: #FF3B5C; }
.fav-btn.active .icon { fill: currentColor; }
.promo-tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.stock-out { font-size: .76rem; color: var(--danger); font-weight: 600; }
.stars { color: #D7DEEA; letter-spacing: 1px; font-size: .9rem; }
.stars i { font-style: normal; }
.stars i.on { color: #FFB020; }
.stars i.half { background: linear-gradient(90deg, #FFB020 50%, #D7DEEA 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars-count { color: var(--muted); font-size: .8rem; }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); }

/* ---------- Page produit ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius-lg); background: var(--media); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 78px; height: 78px; border-radius: 10px; border: 2px solid var(--border); padding: 0; background: var(--surface); cursor: pointer; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.seller-line { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; font-size: .85rem; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.price-big { font-family: var(--font-display); font-size: 2rem; font-weight: 800; display: flex; gap: 12px; align-items: baseline; margin: 10px 0; }
.price-big s { font-size: 1.05rem; color: var(--muted); font-weight: 500; }
.stock-line { font-weight: 600; font-size: .9rem; }
.stock-line.in { color: var(--success); } .stock-line.low { color: var(--warning); } .stock-line.out { color: var(--danger); }
.buy-box { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--text-2); }
.qty button:hover { background: var(--blue-50); }
.qty input { width: 46px; text-align: center; border: 0; font: 600 1rem var(--font); -moz-appearance: textfield; outline: none; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 32px; height: 36px; }
.qty.sm input { width: 36px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.perk { display: flex; gap: 10px; align-items: center; font-size: .84rem; color: var(--text-2); padding: 12px; border-radius: 10px; background: var(--blue-50); }
.perk .icon { color: var(--blue); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th { text-align: left; color: var(--muted); font-weight: 500; width: 40%; padding: 10px 0; border-bottom: 1px solid var(--border); }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.prose { white-space: pre-line; color: var(--text-2); }
.review { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.seller-reply { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--blue-50); font-size: .9rem; }
.rating-summary { display: flex; gap: 24px; align-items: center; }
.rating-big { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; }

/* ---------- Boutique publique ---------- */
.shop-hero { position: relative; height: 260px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(500px 260px at 80% 30%, rgba(20, 99, 255, .55), transparent 60%), linear-gradient(120deg, var(--navy-900), var(--navy-600)); }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-identity { display: flex; gap: 20px; align-items: flex-end; margin-top: -60px; padding: 0 28px; position: relative; flex-wrap: wrap; }
.shop-logo { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; background: var(--navy-800); color: #fff; font: 800 2.2rem var(--font-display); display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow); flex-shrink: 0; }
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-identity .meta { flex: 1; padding-bottom: 8px; min-width: 220px; }
.shop-identity h1 { margin: 0 0 4px; }
.shop-meta-line { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 24px 0; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 16px; font-weight: 600; color: var(--text-2); border: 0; background: none; border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font: 600 .93rem var(--font); }
.tabs a:hover, .tabs button:hover { color: var(--blue); }
.tabs a.active, .tabs button.active { color: var(--blue); border-color: var(--blue); }
.tabs .count-inline { color: var(--muted); font-weight: 500; margin-left: 4px; }
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; position: sticky; top: 150px; }
.filter-panel h4 { font-size: .95rem; margin: 18px 0 10px; }
.filter-panel h4:first-child { margin-top: 0; }
.filter-list { display: grid; gap: 2px; }
.filter-list a, .filter-list label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: .9rem; cursor: pointer; }
.filter-list a:hover, .filter-list label:hover { background: var(--blue-50); }
.filter-list a.active { background: var(--blue-100); color: var(--blue-600); font-weight: 600; }
.filter-list label span { flex: 1; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- Résultats de recherche ---------- */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.results-head h1 { font-size: 1.35rem; margin: 0; }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.shop-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; color: var(--text); display: block; }
.shop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.shop-card-banner { height: 90px; background: radial-gradient(240px 120px at 80% 20%, rgba(20, 99, 255, .5), transparent 60%), linear-gradient(120deg, var(--navy-800), var(--navy-600)); }
.shop-card-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-body { padding: 0 18px 18px; margin-top: -30px; position: relative; }
.shop-card .shop-logo { width: 64px; height: 64px; border-width: 3px; font-size: 1.2rem; }
.shop-card h3 { margin: 10px 0 2px; font-size: 1.05rem; }
.shop-card p { font-size: .87rem; color: var(--muted); margin: 6px 0 0; }

/* ---------- Formulaires ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: .88rem; color: var(--text); }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error { font-size: .8rem; color: var(--danger); font-weight: 500; }
.input, select.input, textarea.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--border-2); border-radius: 10px; background: var(--surface); font: 400 .95rem var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s; outline: none;
}
.field textarea, textarea.input { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7896' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 99, 255, .12); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.input-sm { height: 38px !important; font-size: .88rem !important; }
.input-group { position: relative; }
.input-group .toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-group input { padding-right: 48px !important; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.radio-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--border-2); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface); }
.radio-card:hover { border-color: var(--blue-400); }
.radio-card input { accent-color: var(--blue); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.radio-card .grow small { display: block; }
.radio-card strong.price { white-space: nowrap; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 24px; flex-wrap: wrap; }
.form-actions.left { justify-content: flex-start; }
.pw-meter { height: 5px; border-radius: 5px; background: var(--border); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.upload-zone { border: 2px dashed var(--border-2); border-radius: 14px; padding: 24px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; position: relative; background: var(--surface-2); }
.upload-zone:hover, .upload-zone.drag { border-color: var(--blue); background: var(--blue-50); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone .icon { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 8px; }
.preview-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.preview-grid .pv { position: relative; width: 90px; height: 90px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.preview-grid .pv img { width: 100%; height: 100%; object-fit: cover; }
.preview-grid .pv label, .preview-grid .pv button { position: absolute; top: 4px; right: 4px; background: rgba(255, 255, 255, .95); border-radius: 6px; padding: 2px 6px; font-size: .72rem; cursor: pointer; border: 0; display: flex; gap: 4px; align-items: center; }
.preview-grid .pv .main-flag { position: absolute; left: 4px; bottom: 4px; background: var(--blue); color: #fff; font-size: .66rem; padding: 2px 6px; border-radius: 5px; }
.logo-picker { display: flex; gap: 18px; align-items: center; }
.logo-picker .shop-logo { width: 84px; height: 84px; border-width: 0; font-size: 1.5rem; background: var(--blue-50); color: var(--blue); }
.banner-picker { height: 130px; border-radius: 14px; overflow: hidden; background: linear-gradient(120deg, var(--navy-800), var(--navy-600)); position: relative; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.banner-picker img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.banner-picker span { position: relative; display: flex; gap: 8px; align-items: center; background: rgba(6, 18, 48, .55); padding: 8px 14px; border-radius: 10px; font-size: .88rem; }

/* ---------- Authentification ---------- */
.auth-wrap { min-height: calc(100vh - 132px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(700px 400px at 90% 10%, rgba(20, 99, 255, .5), transparent 60%), linear-gradient(140deg, var(--navy-900), var(--navy-600)); }
.auth-side h2 { color: #fff; font-size: 2.1rem; }
.auth-side p { color: rgba(255, 255, 255, .8); font-size: 1.05rem; max-width: 440px; }
.auth-side .check-list li { color: rgba(255, 255, 255, .9); }
.ampire-pill { display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; margin-top: 20px; width: max-content; max-width: 100%; }
.ampire-pill .icon { color: #8FB6FF; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; }
.auth-card form { display: grid; gap: 16px; }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- Espace client ---------- */
.account-layout > *, .app-main, .grid-main-side > *, .cart-layout > *, .track-layout > *, .product-layout > *, .shop-layout > * { min-width: 0; }
.account-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.side-menu { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 18px; }
.side-menu nav { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px; }
.side-menu nav a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; color: var(--text-2); font-weight: 500; font-size: .93rem; border-left: 3px solid transparent; }
.side-menu nav a:hover { background: var(--blue-50); color: var(--text); }
.side-menu nav a.active { background: var(--blue-50); color: var(--blue); font-weight: 700; border-left-color: var(--blue); }
.side-promo { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 22px; color: #fff; background: radial-gradient(300px 200px at 90% 100%, rgba(20, 99, 255, .6), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-600)); }
.side-promo h4 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.side-promo p { font-size: .88rem; color: rgba(255, 255, 255, .82); }
.side-promo-art { display: flex; gap: 8px; margin-top: 18px; opacity: .55; }
.side-promo-art .icon { width: 46px; height: 46px; stroke-width: 1.2; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.order-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.order-row:last-child { border-bottom: 0; }
.thumb { width: 72px; height: 72px; border-radius: 10px; background: var(--media); border: 1px solid var(--border); overflow: hidden; display: grid; place-items: center; color: var(--border-2); flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.sm { width: 48px; height: 48px; border-radius: 8px; }
.thumb .icon { width: 26px; height: 26px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.address-card { padding: 18px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); position: relative; font-size: .92rem; }
.address-card.default { border-color: var(--blue); }
.address-card .actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .prod-cell { display: flex; gap: 12px; align-items: center; min-width: 200px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.table form { display: inline; margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Panier / commande ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.cart-shop { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.cart-shop-head { display: flex; gap: 10px; align-items: center; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-weight: 600; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .thumb { width: 92px; height: 92px; }
.cart-item .name { font-weight: 600; color: var(--text); }
.cart-item .line-total { font-weight: 700; min-width: 90px; text-align: right; }
.cart-item.unavailable { opacity: .6; }
.summary-card { position: sticky; top: 150px; }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: .93rem; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); font-weight: 700; font-size: 1.05rem; }
.summary-total strong { font-family: var(--font-display); font-size: 1.5rem; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.checkout-steps li { flex: 1; list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 600; color: var(--muted); font-size: .9rem; position: relative; }
.checkout-steps li .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; font-size: .82rem; flex-shrink: 0; }
.checkout-steps li.done { color: var(--success); }
.checkout-steps li.done .n { background: var(--success); border-color: var(--success); color: #fff; }
.checkout-steps li.current { color: var(--blue); background: var(--blue-50); }
.checkout-steps li.current .n { background: var(--blue); border-color: var(--blue); color: #fff; }
.checkout-steps { padding: 0; margin-top: 0; }
.mini-items { display: grid; gap: 12px; margin-bottom: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; font-size: .88rem; }
.mini-item .grow { min-width: 0; }
.mini-item .grow span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-hero { text-align: center; padding: 48px 24px 28px; }
.confirm-hero .big-check { width: 84px; height: 84px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .4s var(--ease); }
.confirm-hero .big-check .icon { width: 44px; height: 44px; stroke-width: 2.4; }
.payment-demo { max-width: 560px; margin: 0 auto; }

/* ---------- Suivi de commande ---------- */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.track-side { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.track-side .card + .card { margin-top: 0; }
.progress-track { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; padding: 26px 12px 22px; }
.progress-step { position: relative; text-align: center; padding: 0 6px; z-index: 1; }
.progress-step::before { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 4px; background: var(--border); z-index: -1; }
.progress-step:first-child::before { display: none; }
.progress-step.done::before, .progress-step.current::before { background: var(--success); }
.progress-step.current::before { background: linear-gradient(90deg, var(--success), var(--blue)); }
.progress-step.after-current::before { background: var(--border); }
.ps-dot { width: 42px; height: 42px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--surface-3); color: #A9B4C9; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.ps-dot .icon { width: 20px; height: 20px; }
.progress-step.done .ps-dot { background: var(--success); color: #fff; box-shadow: none; }
.progress-step.current .ps-dot { background: var(--surface); color: var(--blue); box-shadow: 0 0 0 3px var(--blue); animation: pulse 2s infinite; }
.progress-step strong { display: block; font-size: .86rem; }
.progress-step time { display: block; font-size: .8rem; color: var(--muted); }
.progress-step p { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--blue), 0 0 0 6px rgba(20, 99, 255, .15); } 50% { box-shadow: 0 0 0 3px var(--blue), 0 0 0 11px rgba(20, 99, 255, 0); } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--success); background: var(--success-bg); padding: 4px 10px; border-radius: 999px; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.track-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 26px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.timeline li time { font-size: .84rem; color: var(--muted); text-align: right; padding-top: 1px; }
.timeline .tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--blue); margin: 2px auto 0; position: relative; z-index: 1; }
.timeline li::before { content: ''; position: absolute; left: calc(92px + 12px + 12px); top: 18px; bottom: -2px; width: 2px; background: var(--blue-100); }
.timeline li:last-child::before { display: none; }
.timeline li.first .tl-dot { background: var(--surface); box-shadow: 0 0 0 3px var(--blue); }
.timeline li.ok .tl-dot { background: var(--success); box-shadow: 0 0 0 1.5px var(--success); }
.timeline li.pending .tl-dot { background: var(--surface); box-shadow: 0 0 0 1.5px var(--border-2); }
.timeline li.pending { color: var(--muted); }
.timeline li strong { display: block; font-size: .93rem; }
.timeline li span { font-size: .85rem; color: var(--muted); }
.track-map { position: relative; border-radius: 14px; overflow: hidden; background: #EAF1FB; border: 1px solid var(--border); min-height: 280px; }
.track-map > svg { width: 100%; height: 100%; min-height: 280px; display: block; }
.track-map .map-badge { position: absolute; top: 12px; right: 12px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; font-size: .8rem; max-width: 230px; display: flex; gap: 8px; }
.track-map .map-badge .icon { color: var(--blue); }
.track-map .map-note { position: absolute; left: 12px; bottom: 10px; font-size: .7rem; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 2px 8px; border-radius: 6px; }
.carrier-box { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.carrier-box > div { min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.carrier-logo { min-width: 64px; height: 38px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center; font: 800 .74rem var(--font-display); color: #fff; letter-spacing: .02em; text-align: center; }
.carrier-box .btn { white-space: normal; text-align: center; margin-top: 8px; }
.tracking-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; display: flex; gap: 6px; align-items: center; word-break: break-all; }
.copy-btn { background: none; border: 0; color: var(--blue); cursor: pointer; padding: 2px; }
.track-search { max-width: 560px; margin: 0 auto; }

/* ---------- App shell vendeur / admin ---------- */
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.app-sidebar { background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.app-logo { padding: 6px 10px 2px; }
.app-logo .brand-mark { width: 34px; height: 34px; }
.app-logo .brand-mark .icon { width: 20px; height: 20px; }
.app-logo .brand-name { font-size: 1.2rem; }
.app-area { display: block; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .45); padding: 10px 12px 14px; font-weight: 700; }
.app-sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.app-sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .74); font-size: .9rem; font-weight: 500; }
.app-sidebar a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.app-sidebar nav a.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(20, 99, 255, .35); }
.app-sidebar .icon { width: 19px; height: 19px; }
.app-sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; margin-top: 12px; display: grid; gap: 2px; }
.app-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.app-topbar [data-toggle=sidebar] { display: none; }
.app-title { flex: 1; min-width: 0; }
.app-title h1 { font-size: 1.3rem; margin: 0; }
.app-title p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.app-top-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; gap: 10px; align-items: center; font-size: .86rem; }
.user-chip strong, .user-chip small { display: block; line-height: 1.25; }
.notif-menu { width: 340px; max-height: 420px; overflow-y: auto; }
.notif-item { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
.notif-item small { color: var(--muted); font-size: .8rem; }
.notif-item em { font-style: normal; font-size: .72rem; color: var(--muted); }
.notif-item.unread { background: var(--blue-50); }
.pad { padding: 12px; margin: 0; }
.app-content { padding: 24px 28px 48px; }
.toolbar { display: flex; gap: 10px; justify-content: flex-end; margin-bottom: 18px; flex-wrap: wrap; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.stat-card strong { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; }
.stat-card span:not(.stat-icon) { font-size: .84rem; color: var(--muted); }
.stat-card small { display: block; font-size: .75rem; }
.stat-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.tone-blue .stat-icon { background: var(--blue-100); color: var(--blue); }
.tone-green .stat-icon { background: var(--success-bg); color: var(--success); }
.tone-orange .stat-icon { background: var(--warning-bg); color: var(--warning); }
.tone-purple .stat-icon { background: #F0EBFF; color: #6D4AE6; }
.tone-red .stat-icon { background: var(--danger-bg); color: var(--danger); }
.tone-navy .stat-icon { background: #E6EAF4; color: var(--navy-700); }
.line-chart { width: 100%; height: 240px; }
.line-chart .grid { stroke: var(--border); stroke-width: 1; }
.line-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.line-chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line-chart .area { fill: url(#none); fill: rgba(20, 99, 255, .08); }
.bar-list { display: grid; gap: 12px; }
.bar-list .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .88rem; }
.bar-list .bar { grid-column: 1 / -1; height: 7px; border-radius: 6px; background: var(--blue-50); overflow: hidden; }
.bar-list .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-400), var(--blue)); border-radius: 6px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 24px; background: var(--border-2); cursor: pointer; transition: background .2s; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: var(--surface); transition: transform .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(18px); }
.sidebar-backdrop { display: none; }

/* ---------- Assistant de création de boutique ---------- */
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.wizard-steps { background: var(--surface-2); border-right: 1px solid var(--border); padding: 24px 16px; list-style: none; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.wizard-steps li a, .wizard-steps li span { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.wizard-steps .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; font-size: .8rem; flex-shrink: 0; background: var(--surface); }
.wizard-steps li.current a, .wizard-steps li.current span { background: var(--blue-100); color: var(--blue-600); }
.wizard-steps li.current .n { background: var(--blue); color: #fff; border-color: var(--blue); }
.wizard-steps li.done a { color: var(--text); }
.wizard-steps li.done .n { background: var(--success); color: #fff; border-color: var(--success); }
.wizard-body { padding: 32px 36px; }
.wizard-body h2 { margin-bottom: 4px; }
.wizard-body > p.sub { color: var(--muted); margin-bottom: 26px; }
.review-list { display: grid; gap: 12px; }
.review-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; align-items: center; }

/* ---------- Messagerie ---------- */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; min-height: 540px; }
.thread-list { border-right: 1px solid var(--border); overflow-y: auto; max-height: 680px; }
.thread-list a { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.thread-list a:hover { background: var(--surface-2); }
.thread-list a.active { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue); }
.thread-list .grow { min-width: 0; }
.thread-list strong { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-list .unread strong::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: 1px; }
.conversation { display: flex; flex-direction: column; min-height: 540px; }
.conv-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: center; }
.conv-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 520px; background: var(--surface-2); }
.bubble { max-width: 74%; padding: 11px 15px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-size: .92rem; white-space: pre-line; }
.bubble.mine { align-self: flex-end; background: var(--blue); color: #fff; border-color: var(--blue); border-bottom-right-radius: 5px; }
.bubble:not(.mine) { border-bottom-left-radius: 5px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: 4px; }
.conv-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); }
.conv-form textarea { flex: 1; min-height: 46px; height: 46px; resize: none; }

/* ---------- Pages contenu ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy-900), var(--navy-600)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 640px; font-size: 1.08rem; margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-2); padding-bottom: 16px; margin: 0; }
.timeline-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.timeline-flow div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; font-size: .88rem; }
.timeline-flow .icon { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 8px; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); margin-top: 40px; padding-top: 52px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255, 255, 255, .68); padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { margin: 16px 0 0; max-width: 320px; }
.footer-account { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, .85); }
.footer-account .icon { color: var(--blue-400); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 24px; font-size: .82rem; }
.footer-trust { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-trust .icon { color: var(--blue-400); margin-left: 8px; }

/* ---------- Animations d'apparition ---------- */
.js .reveal { animation: reveal-up .6s var(--ease) both; }
@keyframes reveal-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .step-card::after { display: none; }
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row .feature-card:first-child { grid-column: 1 / -1; }
  .nav-inner { gap: 16px; }
  .nav-links a { padding: 16px 8px; font-size: .9rem; }
  .track-layout { grid-template-columns: 1fr; }
  .track-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .track-side .card + .card { margin-top: 0; }
  .timeline-flow { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .mobile-only { display: inline-grid !important; }
  .header-top { height: auto; flex-wrap: wrap; gap: 10px 6px; padding-top: 12px; padding-bottom: 12px; }
  .header-actions { gap: 0; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .header-search input { height: 42px; }
  .ha-label { display: none; }
  .header-action { padding: 6px; }
  .brand-name { font-size: 1.2rem; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-tag { display: none; }
  .header-nav { display: none; }
  .header-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; height: auto; padding-top: 10px; padding-bottom: 14px; gap: 6px; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { padding: 12px 6px; }
  .nav-links a.active::after { display: none; }
  .cat-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .flash-stack { top: auto; bottom: 16px; left: 16px; right: 16px; max-width: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .hero-visual { min-height: 320px; }
  .product-layout, .grid-main-side, .cart-layout, .track-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .side-menu { position: static; }
  .side-menu nav { flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .side-menu nav a { white-space: nowrap; padding: 9px 12px; border-left: 0; gap: 8px; font-size: .86rem; }
  .side-menu nav a .pill { margin-left: 4px; }
  .side-promo { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .app-shell.sidebar-open .app-sidebar { transform: none; }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(6, 18, 48, .45); z-index: 55; }
  .app-topbar [data-toggle=sidebar] { display: inline-grid; }
  .app-topbar { padding: 12px 16px; }
  .app-content { padding: 18px 16px 40px; }
  .user-chip > span:not(.avatar) { display: none; }
  .wizard { grid-template-columns: 1fr; }
  .wizard-steps { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 12px; }
  .wizard-steps li a, .wizard-steps li span { white-space: nowrap; padding: 8px 10px; }
  .wizard-body { padding: 24px 20px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-thread .thread-list { display: none; }
  .inbox:not(.has-thread) .conversation { display: none; }
  .launch-banner { grid-template-columns: 1fr; text-align: center; }
  .launch-banner .empty-icon { margin: 0 auto; }
  .progress-track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; padding: 22px 4px 18px; }
  .progress-step:nth-child(4)::before { display: none; }
  .track-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .steps, .feature-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 16px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 14px 6px 12px; font-size: .74rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-body { padding: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .cart-item .thumb { width: 72px; height: 72px; }
  .cart-item .qty, .cart-item .line-total { grid-column: 2; justify-self: start; text-align: left; }
  .checkout-steps li span.lbl { display: none; }
  .checkout-steps li { justify-content: center; }
  .perks { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 56px 1fr; }
  .order-row .thumb { width: 56px; height: 56px; }
  .order-row > :last-child { grid-column: 1 / -1; }
  .timeline li { grid-template-columns: 70px 22px 1fr; gap: 8px; }
  .timeline li::before { left: calc(70px + 8px + 10px); }
  .carrier-box { grid-template-columns: 1fr; }
  .shop-hero { height: 170px; }
  .shop-identity { padding: 0 8px; margin-top: -46px; }
  .shop-logo { width: 92px; height: 92px; font-size: 1.6rem; }
  .card-body { padding: 18px; }
  .card-head { padding: 14px 18px; }
  .timeline-flow { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wizard-body { padding: 20px 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 12px; }
  .stat-card strong { font-size: 1.2rem; }
  .table th, .table td { padding: 10px 12px; }
  .launch-banner { padding: 32px 20px; }
}

/* =====================================================================
   PHASE 1 — PETITES ANNONCES
   ===================================================================== */
.header-post { margin-left: 8px; }
.listing-card .product-name { -webkit-line-clamp: 2; }
.listing-meta { display: flex; flex-direction: column; gap: 2px; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.listing-meta span { display: flex; gap: 4px; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-card .product-price { margin-top: 2px; padding-top: 0; order: -1; }
.listing-card .product-body { gap: 3px; }
.pro-tag { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--navy-800); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; }
.pro-badge { display: inline-flex; align-items: center; background: var(--navy-800); color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; vertical-align: 2px; }

.hero-ads .hero-inner { padding-bottom: 48px; }
.hero-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; background: var(--surface); padding: 8px; border-radius: 14px; box-shadow: 0 20px 50px rgba(3, 12, 40, .35); margin-bottom: 22px; max-width: 720px; }
.search-bar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; padding: 8px; border-radius: 14px; }
.hs-field { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--bg); color: var(--muted); min-width: 0; }
.hs-field input, .hs-field select { border: 0; background: transparent; height: 46px; font: 400 .95rem var(--font); color: var(--text); outline: none; width: 100%; min-width: 0; appearance: none; }
.hero-search .hs-q { grid-column: 1 / -1; }
.hs-field:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.hero-search .btn, .search-bar .btn { height: 46px; }
.ad-mock { position: absolute; inset: 40px 40px 20px 70px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .16); overflow: hidden; display: grid; grid-template-rows: 1fr auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.ad-mock-img { display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .45); border-bottom: 1px dashed rgba(255, 255, 255, .2); }
.ad-mock-img .icon { width: 64px; height: 64px; stroke-width: 1.1; }
.ad-mock-body { padding: 18px 20px; display: grid; gap: 8px; color: #fff; }
.ad-mock-body strong { font-family: var(--font-display); font-size: 1.3rem; }
.ad-mock-body small { color: rgba(255, 255, 255, .7); display: flex; gap: 4px; align-items: center; }
.ad-line { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.ad-line.w70 { width: 70%; } .ad-line.w45 { width: 45%; background: rgba(255, 255, 255, .15); }

.filter-list a.sub { padding-left: 22px; font-size: .86rem; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.listing-aside { position: sticky; top: 150px; }
.gallery-main { position: relative; }
.photo-count { position: absolute; right: 12px; bottom: 12px; background: rgba(6, 18, 48, .7); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: flex; gap: 5px; align-items: center; }
.listing-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 4px; }
.listing-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.listing-facts span { display: flex; gap: 6px; align-items: center; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.spec-grid div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.spec-grid dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; }
.seller-card .seller-line { color: var(--text); margin: 0; align-items: flex-start; }
.avatar.lg { width: 52px; height: 52px; font-size: 1rem; }
.contact-box { border-top: 1px solid var(--border); padding-top: 16px; }
.contact-box h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.contact-box textarea { min-height: 100px; }
.btn-whatsapp { background: #128C4A; color: #fff; }
.btn-whatsapp:hover { background: #0e733c; color: #fff; }
.safety-card h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; }
.safety-card ul, .safe-list { margin: 0 0 10px; padding-left: 18px; color: var(--text-2); font-size: .88rem; display: grid; gap: 6px; }
.fav-toggle.active { color: #FF3B5C; border-color: #FFD0D8; }
.fav-toggle.active .icon { fill: currentColor; }
.report-box summary { list-style: none; cursor: pointer; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box[open] form { min-width: 260px; }

.post-form { display: grid; gap: 18px; }
.post-form .card + .card { margin-top: 0; }
.post-form h2 { display: flex; gap: 10px; align-items: center; }
.step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.price-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.price-types .radio-card { padding: 12px 14px; font-weight: 600; font-size: .9rem; }
.post-actions { position: sticky; bottom: 12px; z-index: 5; box-shadow: var(--shadow-lg); }
.account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-type .radio-card { padding: 12px 14px; }
.account-type small { display: block; }

.my-listing { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.my-listing:last-child { border-bottom: 0; }
.my-listing .thumb { width: 88px; height: 88px; }
.listing-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.listing-stats span { display: flex; gap: 4px; align-items: center; }
.my-listing-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.conv-listing { display: flex; gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--border); background: var(--blue-50); color: var(--text); }
.conv-listing small { display: block; color: var(--muted); }
.conv-safety { margin: 0; padding: 8px 14px 12px; font-size: .78rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.profile-head .card-body { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head .shop-logo { width: 88px; height: 88px; border-width: 0; font-size: 1.6rem; }
.profile-head h1 { margin: 0 0 6px; font-size: 1.6rem; }

.cat-columns { columns: 3 280px; column-gap: 20px; }
.cat-block { break-inside: avoid; margin-bottom: 20px; }
.cat-block + .cat-block { margin-top: 0; }
.cat-block-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px; color: var(--text); border-bottom: 1px solid var(--border); }
.cat-block-head small { display: block; }
.cat-block ul { list-style: none; margin: 0; padding: 10px 12px; display: grid; gap: 2px; }
.cat-block li a { display: block; padding: 7px 8px; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.cat-block li a:hover { background: var(--blue-50); color: var(--blue); }

@media (max-width: 960px) {
  .header-post span { display: none; }
  .header-post { padding: 8px 10px; margin-left: 2px; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .hero-search .hs-q, .search-bar .hs-q { grid-column: 1 / -1; }
  .listing-layout { grid-template-columns: minmax(0, 1fr); }
  .listing-aside { position: static; }
  .price-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-search, .search-bar { grid-template-columns: 1fr; }
  .hero-search .btn, .search-bar .btn { width: 100%; }
  .my-listing { grid-template-columns: 64px minmax(0, 1fr); padding: 14px; }
  .my-listing .thumb { width: 64px; height: 64px; }
  .my-listing-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .account-type { grid-template-columns: 1fr; }
  .post-actions .card-body { flex-direction: column; align-items: stretch; }
  .post-actions .flex { flex-direction: column-reverse; align-items: stretch; }
}

/* Logo officiel (icône + logotype image) */
img.brand-mark { display: block; object-fit: cover; background: none; padding: 0; }
.brand-word { display: none; }
[hidden] { display: none !important; }
.upload-zone { display: block; }
.upload-zone .icon { display: block; }
