/* ===================================================================
   SmartCard — feuille de style principale
   =================================================================== */
:root {
  --primary: #6D5EF8;
  --cyan: #22D3EE;
  --pink: #F472B6;
  --ink: #0B0D17;
  --ink-2: #141729;
  --ink-3: #1E2240;
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --line: #E4E6F0;
  --text: #14162B;
  --muted: #6B7092;
  --green: #12B76A;
  --amber: #F59E0B;
  --red: #E5484D;
  --blue: #3B82F6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,18,40,.04), 0 8px 24px rgba(16,18,40,.06);
  --shadow-lg: 0 24px 60px rgba(16,18,40,.18);
  --holo: linear-gradient(120deg, var(--cyan), var(--primary) 45%, var(--pink));
  --font-head: 'Sora', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.pad-xl { padding-block: 80px; }
.section { padding-block: 72px; }
.eyebrow { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .6em; }
.grad-text { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ico { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer; font: 600 .95rem var(--font); color: #fff; background: var(--primary); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn:active { transform: none; }
.btn-holo { background: var(--holo); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--ink); box-shadow: none; }
.btn-dark { background: var(--ink); box-shadow: none; }
.btn-wa { background: #25D366; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.btn-danger { background: var(--red); box-shadow: none; }
.btn-sm { padding: 9px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- En-tête ---------- */
.announce { background: var(--ink); color: #C9CCE3; text-align: center; font-size: .82rem; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--holo); color: #fff; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .93rem; color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .hide-sm { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--surface); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 12px; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Messages ---------- */
.flash { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: .93rem; border: 1px solid; }
.flash-success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.flash-error { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.flash-info { background: #EFF4FF; border-color: #C7D7FE; color: #3538CD; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-gray { background: #F2F4F7; color: #475467; }
.badge-amber { background: #FFFAEB; color: #B54708; }
.badge-green { background: #ECFDF3; color: #067647; }
.badge-violet { background: #F4F3FF; color: #5925DC; }
.badge-blue { background: #EFF8FF; color: #175CD3; }
.badge-red { background: #FEF3F2; color: #B42318; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-size: .78rem; font-weight: 600; }

/* ---------- Héros ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: 84px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 55%, transparent), transparent); opacity: .55; }
.hero::after { content: ""; position: absolute; inset: auto auto -50% -15%; width: 620px; height: 620px; background: radial-gradient(closest-side, rgba(34,211,238,.35), transparent); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero p.lead { color: #B9BDD9; font-size: 1.12rem; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 22px; color: #9AA0C3; font-size: .9rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .ico { color: var(--cyan); }
.hero-visual { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 380px; }
.hero-visual .mock-card { width: min(420px, 100%); transform: rotateX(14deg) rotateY(-18deg) rotateZ(4deg); transition: transform .2s ease-out; box-shadow: 0 40px 80px rgba(0,0,0,.55); }
.tap-ring { position: absolute; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(34,211,238,.55); right: 12%; top: 18%; animation: ring 2.4s ease-out infinite; }
.tap-ring.r2 { animation-delay: .8s; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { min-height: 260px; order: -1; } .hero { padding: 48px 0 64px; } }
@media (prefers-reduced-motion: reduce) { .tap-ring { animation: none; } * { transition: none !important; } }

/* ---------- Carte simulée ---------- */
.mock-card { position: relative; aspect-ratio: 85.6 / 54; border-radius: 16px; padding: 7% 7.5%; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; container-type: inline-size; }
.mock-chip { position: absolute; top: 14%; left: 7.5%; width: 13%; aspect-ratio: 1.3; border-radius: 6px; background: linear-gradient(135deg, #f3d27a, #b8893a); opacity: .9; }
.mock-nfc { position: absolute; top: 12%; right: 7%; opacity: .85; transform: rotate(0deg); }
.mock-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 7cqi, 30px); line-height: 1.15; }
.mock-sub { font-size: clamp(10px, 3.6cqi, 15px); opacity: .8; margin-top: 2px; }
.mock-brand { position: absolute; right: 7.5%; bottom: 8%; font-size: clamp(8px, 2.8cqi, 12px); opacity: .7; letter-spacing: .1em; text-transform: uppercase; }
.mock-card .mock-name + .mock-brand, .mock-card .mock-sub + .mock-brand { position: static; margin-top: 10%; align-self: flex-end; }
.finish-holo { background: linear-gradient(140deg, #1B1F3B 0%, #0B0D17 100%); }
.finish-holo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 20%, rgba(34,211,238,.45) 38%, rgba(109,94,248,.5) 52%, rgba(244,114,182,.45) 66%, transparent 80%); mix-blend-mode: screen; opacity: .8; }
.finish-black { background: radial-gradient(120% 120% at 0% 0%, #2A2A2E, #0E0E10); }
.finish-gold { background: linear-gradient(135deg, #A87522, #F3D27A 45%, #C99A45 60%, #8D611B); color: #3A2608; }
.finish-silver { background: linear-gradient(135deg, #8A919C, #EEF1F5 45%, #B7BDC7 62%, #7C838E); color: #1E2430; }
.finish-wood { background: repeating-linear-gradient(100deg, rgba(0,0,0,.06) 0 3px, transparent 3px 11px), linear-gradient(135deg, #6B3F1F, #A8703E 50%, #7A4A26); color: #FFF4E6; }
.finish-white { background: linear-gradient(135deg, #FFFFFF, #ECEEF5); color: #14162B; border: 1px solid var(--line); }
.finish-gold .mock-chip, .finish-silver .mock-chip { background: rgba(0,0,0,.18); }

/* ---------- Sections d'accueil ---------- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--ink-2); color: #D5D8EE; border: 1px solid var(--ink-3); }
.feature h3 { color: #fff; font-size: 1.05rem; }
.feature .f-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 22%, transparent); color: #fff; margin-bottom: 14px; }
.dark-section { background: var(--ink); color: #fff; }
.dark-section .muted { color: #9AA0C3; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.check-list .ico { color: var(--green); margin-top: 3px; }
.phone-frame { width: 300px; max-width: 100%; margin-inline: auto; border-radius: 40px; padding: 12px; background: #05060C; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A2E4A; }
.phone-frame .phone-screen { border-radius: 30px; overflow: hidden; height: 560px; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }
.cta-band { border-radius: 24px; padding: 48px; background: var(--holo); color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0; }
@media (max-width: 900px) { .steps, .features { grid-template-columns: 1fr; } .split { grid-template-columns: 1fr; gap: 32px; } .cta-band { padding: 32px 24px; } }

/* ---------- Produits ---------- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 500; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #EEF0F8, #E2E5F2); display: grid; place-items: center; padding: 26px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-media .mock-card { width: 100%; box-shadow: 0 16px 30px rgba(16,18,40,.25); transform: rotate(-4deg); transition: transform .3s; }
.product:hover .mock-card { transform: rotate(0) scale(1.03); }
.product-tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.price del { color: var(--muted); font-weight: 500; font-size: .85rem; margin-left: 6px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.stock-low { color: var(--amber); font-size: .82rem; font-weight: 600; }
.product-page { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding-block: 48px; align-items: start; }
.product-gallery { position: sticky; top: 92px; border-radius: 24px; background: linear-gradient(160deg, #EEF0F8, #DCE0F0); aspect-ratio: 1; display: grid; place-items: center; padding: 48px; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.product-gallery .mock-card { width: 100%; box-shadow: 0 30px 60px rgba(16,18,40,.3); transform: rotate(-6deg); }
.product-info .price { font-size: 1.8rem; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-grid label { cursor: pointer; }
.option-grid input { position: absolute; opacity: 0; }
.option-grid span { display: inline-block; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: .9rem; background: var(--surface); }
.option-grid input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); font-weight: 600; }
.option-grid input:focus-visible + span { outline: 2px solid var(--primary); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty input { width: 56px; text-align: center; border: 0; font: 600 1rem var(--font); background: none; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { display: grid; gap: 10px; margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.perks div { display: flex; gap: 10px; align-items: center; }
.perks .ico { color: var(--primary); }
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; gap: 28px; } .product-gallery { position: static; padding: 28px; } }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.input, input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: 400 .95rem var(--font); color: var(--text); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input[type=color] { width: 56px; height: 44px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
input[type=file] { font-size: .9rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 18px; height: 18px; }
.radio-card { display: flex; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; margin-bottom: 10px; background: var(--surface); align-items: flex-start; }
.radio-card input { accent-color: var(--primary); margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.radio-card:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }
.radio-card b { display: block; }
.radio-card small { color: var(--muted); }
.radio-card .rc-price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 48px 16px; }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; }

/* ---------- Panneaux / tableaux ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h2, .panel h3 { font-size: 1.1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ico { color: var(--line); margin: 0 auto 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.layout-2 { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; padding-block: 40px; }
.layout-2 aside { position: sticky; top: 92px; }
@media (max-width: 960px) { .layout-2 { grid-template-columns: 1fr; } .layout-2 aside { position: static; } }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { width: 96px; aspect-ratio: 85.6/54; border-radius: 10px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .mock-card { width: 100%; border-radius: 8px; padding: 6%; }
.cart-thumb .mock-card .mock-name { font-size: 9px; }
.cart-thumb .mock-card .mock-brand, .cart-thumb .mock-card .mock-sub { display: none; }
.remove-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .83rem; padding: 0; text-decoration: underline; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 72px 1fr; } .cart-thumb { width: 72px; } .cart-item > :last-child { grid-column: 2; } }

/* ---------- Suivi de commande ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.timeline li.done::after { background: var(--primary); }
.timeline b { display: block; }
.timeline small { color: var(--muted); }
.progress-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 18px 0 8px; }
.progress-track span { height: 6px; border-radius: 3px; background: var(--line); }
.progress-track span.on { background: var(--holo); }
.progress-labels { display: grid; grid-template-columns: repeat(5, 1fr); font-size: .75rem; color: var(--muted); text-align: center; gap: 6px; }

/* ---------- Espace client & admin ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-block: 32px 64px; align-items: start; }
.dash-nav { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .93rem; }
.dash-nav a:hover { background: var(--bg); color: var(--text); }
.dash-nav a.active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.dash-nav .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.dash-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-title h1 { font-size: 1.7rem; margin: 0; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } .dash-nav { position: static; display: flex; overflow-x: auto; gap: 4px; } .dash-nav a { white-space: nowrap; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: .8rem; font-weight: 500; margin: 0; }
.stat .value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; background: color-mix(in srgb, var(--primary) 75%, #fff); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars .bar:hover { background: var(--primary); }
.bars .bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); opacity: 0; white-space: nowrap; }
.bars .bar:hover span { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; }
.card-tile { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--surface); }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--holo); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, monospace; font-size: .85rem; }
.qr-box { display: inline-grid; place-items: center; padding: 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { width: 180px !important; height: 180px !important; }
.editor { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.editor-preview { position: sticky; top: 92px; }
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; } }
.link-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--red); }
.thumb-sm { width: 48px; height: 32px; border-radius: 6px; overflow: hidden; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm .mock-card { width: 100%; border-radius: 4px; padding: 0; }
.thumb-sm .mock-card > * { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 180px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.encode-card { border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: color-mix(in srgb, var(--primary) 3%, #fff); }
.nfc-status { font-size: .85rem; margin-top: 8px; }
.admin-body { background: #F2F3F8; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #C9CCE3; padding: 56px 0 24px; margin-top: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .muted { color: #8C92B5; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid span { display: block; font-size: .92rem; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink-3); padding: 0 !important; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-3); font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.07); }

/* ===================================================================
   Page publique de carte digitale
   =================================================================== */
.vc-body { margin: 0; min-height: 100vh; font-family: var(--font); background: #ECEEF5; }
.vc-body.vc-dark { background: #07080F; }
.vc { --accent: #6D5EF8; max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; color: #14162B; position: relative; }
.vc-dark .vc { background: #0E1020; color: #EEF0FA; }
.vc-cover { height: 180px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #22D3EE)); background-size: cover; background-position: center; position: relative; }
.vc-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.25)); }
.vc-head { text-align: center; padding: 0 24px; margin-top: -64px; position: relative; z-index: 1; }
.vc-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 5px solid #fff; margin: 0 auto 14px; background: var(--accent); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.vc-dark .vc-photo { border-color: #0E1020; }
.vc-head h1 { font-size: 1.7rem; margin: 0 0 4px; }
.vc-role { color: var(--accent); font-weight: 600; margin: 0; }
.vc-dark .vc-role { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.vc-company { opacity: .7; font-size: .93rem; margin: 2px 0 0; }
.vc-bio { padding: 16px 28px 0; text-align: center; opacity: .82; font-size: .95rem; }
.vc-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px 20px 6px; }
.vc-quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: inherit; font-size: .78rem; font-weight: 600; }
.vc-quick .ico { color: var(--accent); }
.vc-dark .vc-quick .ico { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.vc-save { margin: 14px 20px; display: flex; gap: 10px; }
.vc-save .btn { flex: 1; background: var(--accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.vc-save .btn-ghost { flex: 0 0 auto; background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 18%, transparent); box-shadow: none; }
.vc-list { padding: 6px 20px; }
.vc-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, currentColor 4%, transparent); margin-bottom: 10px; color: inherit; transition: transform .15s; }
.vc-item:hover { transform: translateX(3px); }
.vc-item .vi-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: #fff; flex-shrink: 0; }
.vc-item small { display: block; opacity: .6; font-size: .76rem; }
.vc-item b { font-weight: 600; font-size: .95rem; word-break: break-word; }
.vc-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 10px 20px 4px; }
.vc-socials a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; }
.vc-socials a:hover { background: var(--accent); color: #fff; }
.vc-section-title { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; padding: 18px 24px 8px; font-weight: 600; margin: 0; }
.vc-form { padding: 6px 20px 10px; }
.vc-form input, .vc-form textarea { background: color-mix(in srgb, currentColor 4%, transparent); border-color: color-mix(in srgb, currentColor 12%, transparent); color: inherit; }
.vc-form textarea { min-height: 80px; }
.vc-form .btn { background: var(--accent); width: 100%; box-shadow: none; }
.vc-foot { text-align: center; padding: 26px 20px 36px; font-size: .78rem; opacity: .55; }
.vc-foot a { text-decoration: underline; }
.vc-modal { position: fixed; inset: 0; background: rgba(5,6,12,.7); display: none; place-items: center; z-index: 90; padding: 20px; }
.vc-modal.open { display: grid; }
.vc-modal-box { background: #fff; color: #14162B; border-radius: 22px; padding: 26px; text-align: center; width: min(320px, 100%); }
.vc-inactive { text-align: center; padding: 120px 24px; }
