/* ==========================================================================
   ATELIER / 3D — feuille de style principale
   Les couleurs et espacements sont centralisés dans :root.
   ========================================================================== */

:root {
  --night-950: #05080f;
  --night-900: #080d18;
  --night-850: #0b1222;
  --night-800: #101a2e;
  --night-700: #18243d;
  --line: rgba(148, 170, 210, 0.14);
  --line-strong: rgba(148, 170, 210, 0.26);
  --text: #e8eef9;
  --text-soft: #a7b3c9;
  --text-mute: #74819a;

  --cyan: #2fd9f4;
  --cyan-soft: rgba(47, 217, 244, 0.14);
  --violet: #8b7cf6;
  --violet-soft: rgba(139, 124, 246, 0.14);
  --ok: #3ddc97;
  --warn: #f5b84a;
  --err: #ff6b7a;

  --paper: #f3f5fa;
  --paper-2: #e8ecf4;
  --ink: #0b1020;
  --ink-soft: #46506a;
  --paper-line: rgba(11, 16, 32, 0.1);

  --glass: rgba(16, 26, 46, 0.62);
  --glass-border: rgba(160, 190, 240, 0.12);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  --container: 1240px;
  --header-h: 68px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--night-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan); color: var(--night-950); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 820px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cyan); color: var(--night-950); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-soft); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.mono { font-family: var(--font-mono); font-size: .85em; }
.muted { color: var(--text-soft); }
.gradient-text {
  background: linear-gradient(100deg, #fff 10%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  --b-bg: var(--night-700); --b-fg: var(--text); --b-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--cyan); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { --b-bg: var(--cyan); --b-fg: #031018; --b-bd: transparent; box-shadow: 0 10px 30px -12px rgba(47, 217, 244, .7); }
.btn--primary:hover { --b-bg: #5fe4f8; box-shadow: 0 14px 36px -12px rgba(47, 217, 244, .85); }
.btn--ghost { --b-bg: transparent; }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); --b-bd: var(--paper-line); }
.btn--light:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .88rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid transparent; color: var(--text); position: relative;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .06); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(8, 13, 24, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 1.02rem; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo .slash { color: var(--cyan); font-weight: 500; margin: 0 .12em; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 14px; border-radius: 10px; color: var(--text-soft); font-size: .94rem; font-weight: 500; transition: color .2s, background .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.cart-count {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--cyan); color: #031018; font-size: .7rem; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .25s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle { display: none; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--night-900);
  padding: 24px 16px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav a { padding: 14px 8px; font-size: 1.15rem; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-nav .mobile-sub { font-size: .95rem; color: var(--text-soft); padding-left: 20px; font-family: var(--font); }
.mobile-nav[hidden] { display: none; }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* ---------- Recherche instantanée ---------- */
.search-panel {
  position: fixed; inset: 0; z-index: 80; display: grid; align-items: start; justify-items: center;
  padding: 10vh 16px 16px; background: rgba(3, 6, 12, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.search-panel[hidden] { display: none; }
.search-box {
  width: min(100%, 680px); background: var(--night-850); border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden; animation: rise .25s var(--ease);
}
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 20px; height: 20px; color: var(--text-mute); flex: none; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 1.08rem; }
.search-field kbd { font-family: var(--font-mono); font-size: .72rem; color: var(--text-mute); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.search-results { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; }
.search-result:hover, .search-result.is-active { background: rgba(255, 255, 255, .05); }
.search-result .thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; }
.search-result strong { display: block; font-weight: 600; font-size: .96rem; }
.search-result span { color: var(--text-mute); font-size: .84rem; }
.search-result .price { margin-left: auto; font-family: var(--font-mono); font-size: .86rem; color: var(--text-soft); white-space: nowrap; }
.search-empty { padding: 24px 12px; color: var(--text-soft); text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .lead, .section--light .muted { color: var(--ink-soft); }
.section--light .eyebrow { color: #0a8fa8; }
.section--deep { background: var(--night-950); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 8vw, 110px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 60% at 78% 30%, rgba(47, 217, 244, .14), transparent 70%),
    radial-gradient(45% 50% at 95% 80%, rgba(139, 124, 246, .14), transparent 70%),
    linear-gradient(180deg, var(--night-950), var(--night-900));
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; max-width: 13ch; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding: 0; list-style: none; color: var(--text-soft); font-size: .92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.hero-visual .layer { animation: layer 6s var(--ease) infinite; transform-origin: center; }
.hero-visual .layer:nth-child(2) { animation-delay: .25s; }
.hero-visual .layer:nth-child(3) { animation-delay: .5s; }
.hero-visual .layer:nth-child(4) { animation-delay: .75s; }
@keyframes layer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-visual .nozzle { animation: nozzle 5s ease-in-out infinite; }
@keyframes nozzle { 0%, 100% { transform: translateX(-60px); } 50% { transform: translateX(60px); } }
.hero-card {
  position: absolute; padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: .84rem; box-shadow: var(--shadow);
}
.hero-card strong { display: block; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); font-weight: 500; margin-bottom: 2px; }
.hero-card--a { left: -4%; bottom: 14%; }
.hero-card--b { right: 0; top: 6%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: center; max-width: 380px; }
  .hero-card--a { left: 0; }
}

/* ---------- Catégories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; min-height: 200px;
  border-radius: var(--radius-l); background: #fff; border: 1px solid var(--paper-line); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11, 16, 32, .35); border-color: rgba(10, 143, 168, .4); }
.cat-card .cat-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: #0a8fa8; }
.cat-card .cat-icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin: auto 0 0; font-size: 1.08rem; }
.cat-card p { margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.cat-card .count { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: .74rem; color: var(--ink-soft); }
@media (max-width: 1080px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .cat-grid { grid-template-columns: 1fr 1fr; } .cat-card { min-height: 170px; padding: 18px; } .cat-card p { display: none; } }

/* ---------- Visuels produit ---------- */
.media { position: relative; overflow: hidden; background: var(--night-800); aspect-ratio: 1; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, var(--ph-glow, rgba(47, 217, 244, .12)), transparent 70%),
    linear-gradient(160deg, #111b31, #0a101e);
  color: var(--ph-color, var(--cyan));
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: linear-gradient(rgba(148, 170, 210, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 170, 210, .08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.ph svg { width: 38%; height: 38%; position: relative; stroke-width: 1.2; opacity: .9; }
.ph-label { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; align-items: end; gap: 8px; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.ph-tag { padding: 3px 8px; border-radius: 6px; border: 1px dashed rgba(148, 170, 210, .35); color: var(--text-soft); white-space: nowrap; }
.ph[data-cat="gaming"] { --ph-color: var(--violet); --ph-glow: rgba(139, 124, 246, .16); }
.ph[data-cat="maison"] { --ph-color: #7fe3c4; --ph-glow: rgba(127, 227, 196, .12); }
.ph[data-cat="electronique"] { --ph-color: #6fb6ff; --ph-glow: rgba(111, 182, 255, .14); }
.ph[data-cat="personnalisation"] { --ph-color: #c9a6ff; --ph-glow: rgba(201, 166, 255, .14); }
.ph--small .ph-label, .ph--small::before { display: none; }
.ph--small svg { width: 54%; height: 54%; }

/* ---------- Cartes produit ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden;
  background: var(--night-850); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .media { border-bottom: 1px solid var(--line); }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(5, 8, 15, .7); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.badge--new { color: var(--cyan); border-color: rgba(47, 217, 244, .4); }
.badge--custom { color: #c9a6ff; border-color: rgba(201, 166, 255, .4); }
.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.product-card h3 { font-size: 1.04rem; margin: 0; font-family: var(--font); font-weight: 600; letter-spacing: -.01em; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .tagline { font-size: .88rem; color: var(--text-soft); margin: 0; line-height: 1.5; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.price small { font-family: var(--font); font-weight: 500; font-size: .76rem; color: var(--text-mute); margin-right: 4px; }
.swatches { display: flex; gap: 4px; }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }

.section--light .product-card { background: #fff; border-color: var(--paper-line); color: var(--ink); }
.section--light .product-card .media { border-color: var(--paper-line); }
.section--light .product-card .tagline { color: var(--ink-soft); }
.section--light .product-card:hover { box-shadow: 0 24px 50px -28px rgba(11, 16, 32, .4); }

/* ---------- Boutique : barre d'outils et filtres ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--night-950), var(--night-900)); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.page-hero .lead { margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--text-mute); margin-bottom: 22px; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumb a:hover { color: var(--text); }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 40px 0 100px; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; display: flex; flex-direction: column; gap: 28px; }
.filter-group h3 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.filter-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
  padding: 9px 12px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--text-soft); font-size: .94rem;
  transition: background .2s, color .2s;
}
.filter-list button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.filter-list button[aria-pressed="true"] { background: var(--cyan-soft); color: var(--text); border-color: rgba(47, 217, 244, .3); }
.filter-list .n { font-family: var(--font-mono); font-size: .76rem; color: var(--text-mute); }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: .94rem; color: var(--text-soft); cursor: pointer; }
.check input { accent-color: var(--cyan); width: 16px; height: 16px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input { width: 100%; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.toolbar .result-count { color: var(--text-soft); font-size: .92rem; margin-right: auto; }
.search-inline { position: relative; flex: 1 1 260px; max-width: 360px; }
.search-inline svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-mute); pointer-events: none; }
.search-inline input[type="search"] { padding-left: 42px; }
.filters-toggle { display: none; }
.empty-state { padding: 60px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-l); color: var(--text-soft); }
.empty-state h3 { color: var(--text); }

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
  .filters { position: fixed; inset: 0; top: auto; z-index: 70; max-height: 82vh; overflow-y: auto; background: var(--night-850); border-top: 1px solid var(--line-strong); border-radius: 24px 24px 0 0; padding: 24px 20px 32px; transform: translateY(105%); transition: transform .35s var(--ease); }
  .filters.is-open { transform: none; box-shadow: 0 -30px 80px rgba(0, 0, 0, .6); }
  .filters-toggle { display: inline-flex; }
  .filters-close { display: inline-flex !important; }
  .search-inline { max-width: none; order: -1; flex-basis: 100%; }
}
.filters-close { display: none !important; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: .88rem; font-weight: 500; color: var(--text-soft); }
.field .hint { font-size: .8rem; color: var(--text-mute); }
.req { color: var(--cyan); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7b3c9' 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;
}
select option { background: var(--night-850); color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgba(148, 170, 210, .4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); background: rgba(47, 217, 244, .04); box-shadow: 0 0 0 4px rgba(47, 217, 244, .12); }
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input[type="file"] { padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; width: 100%; background: rgba(255, 255, 255, .02); color: var(--text-soft); }
input[type="file"]::file-selector-button { margin-right: 12px; border: 0; border-radius: 8px; padding: 8px 14px; background: var(--night-700); color: var(--text); font-weight: 600; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--text-soft); line-height: 1.5; }
.consent input { margin-top: 3px; accent-color: var(--cyan); width: 18px; height: 18px; flex: none; }
.consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .2s, background .2s; }
.radio-card:hover { border-color: rgba(148, 170, 210, .45); }
.radio-card:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }
.radio-card input { accent-color: var(--cyan); margin-top: 4px; width: 18px; height: 18px; flex: none; }
.radio-card .rc-body { flex: 1; }
.radio-card strong { display: block; font-weight: 600; }
.radio-card span { font-size: .86rem; color: var(--text-soft); }
.radio-card .rc-price { font-family: var(--font-mono); font-size: .88rem; white-space: nowrap; }

.notice { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); font-size: .92rem; color: var(--text-soft); line-height: 1.55; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.notice strong { color: var(--text); }
.notice--info svg { color: var(--cyan); }
.notice--warn { border-color: rgba(245, 184, 74, .35); background: rgba(245, 184, 74, .06); }
.notice--warn svg { color: var(--warn); }
.notice--ok { border-color: rgba(61, 220, 151, .4); background: rgba(61, 220, 151, .07); }
.notice--ok svg { color: var(--ok); }
.notice--err { border-color: rgba(255, 107, 122, .45); background: rgba(255, 107, 122, .07); }
.notice--err svg { color: var(--err); }
.notice p:last-child { margin: 0; }
.notice a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.form-card { padding: clamp(22px, 4vw, 36px); border-radius: var(--radius-l); background: var(--night-850); border: 1px solid var(--line); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Fiche produit ---------- */
.product-page { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); padding: 32px 0 80px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 12px; }
.gallery .media { border-radius: var(--radius-l); border: 1px solid var(--line); }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { width: 76px; height: 76px; flex: none; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--night-800); }
.thumbs button[aria-current="true"] { border-color: var(--cyan); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit { font-size: .78rem; color: var(--text-mute); }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }
.pinfo h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 12px; }
.pinfo > p { color: var(--text-soft); }
.pinfo .tagline { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 22px; }
.pinfo .price-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.pinfo .price { font-size: 1.8rem; }
.pinfo .price-note { font-size: .82rem; color: var(--text-mute); }
.option-block { margin-bottom: 22px; }
.option-block > .label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 500; color: var(--text-soft); margin-bottom: 10px; }
.option-block > .label b { color: var(--text); font-weight: 600; }
.pill-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-options button { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; font-size: .92rem; text-align: left; transition: border-color .2s, background .2s; }
.pill-options button small { display: block; color: var(--text-mute); font-size: .78rem; }
.pill-options button:hover { border-color: rgba(148, 170, 210, .5); }
.pill-options button[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan-soft); }
.color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-options button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; transition: border-color .2s, transform .2s; }
.color-options button span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.color-options button:hover { transform: scale(1.06); }
.color-options button[aria-pressed="true"] { border-color: var(--cyan); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 48px; }
.qty button { width: 44px; height: 100%; background: none; border: 0; font-size: 1.2rem; color: var(--text-soft); }
.qty button:hover { color: var(--text); }
.qty input { width: 44px; text-align: center; border: 0; background: none; min-height: 0; padding: 0; -moz-appearance: textfield; }
.qty input:focus { box-shadow: none; background: none; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; margin: 8px 0 24px; }
.buy-row .btn { flex: 1; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.spec-list dt, .spec-list dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-list dt { color: var(--text-mute); padding-right: 24px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 15px; }
.highlights { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 12px; color: var(--text-soft); font-size: .95rem; }
.highlights li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 10px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.details { border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--text-mute); transition: transform .25s var(--ease); }
.details details[open] summary::after { transform: rotate(45deg); }
.details .content { padding: 0 0 20px; color: var(--text-soft); font-size: .95rem; }
.details .content p:last-child { margin: 0; }
@media (max-width: 900px) { .product-page { grid-template-columns: 1fr; } .gallery { position: static; } }

/* ---------- Panier ---------- */
.steps { display: flex; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-mute); font-size: .88rem; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--night-700); font-family: var(--font-mono); font-size: .74rem; }
.steps li[aria-current="step"] { color: var(--text); border-color: rgba(47, 217, 244, .4); }
.steps li[aria-current="step"]::before { background: var(--cyan); color: #031018; }
.steps li.done::before { content: "✓"; background: var(--cyan-soft); color: var(--cyan); }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; padding-bottom: 100px; }
.cart-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .media { width: 96px; border-radius: 14px; }
.cart-line h3 { font-family: var(--font); font-size: 1rem; margin: 0 0 4px; }
.cart-line .opts { font-size: .86rem; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cart-line .line-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.cart-line .qty { height: 40px; }
.cart-line .qty button { width: 36px; }
.cart-line .qty input { width: 36px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-mute); font-size: .86rem; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--err); }
.cart-line .line-total { font-family: var(--font-display); font-weight: 600; text-align: right; white-space: nowrap; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--radius-l); background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.summary h2 { font-size: 1.2rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .94rem; color: var(--text-soft); }
.summary-row b { color: var(--text); font-weight: 600; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; font-size: 1.08rem; color: var(--text); }
.summary-row.total b { font-family: var(--font-display); font-size: 1.3rem; }
.summary .small { font-size: .8rem; color: var(--text-mute); margin: 14px 0 18px; line-height: 1.5; }
.recap-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.recap-block h3 { font-size: .74rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; display: flex; justify-content: space-between; }
.recap-block h3 .link-btn { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .84rem; }
.recap-block p { margin: 0; color: var(--text-soft); }
@media (max-width: 960px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-line { grid-template-columns: 72px 1fr; } .cart-line .media { width: 72px; } .cart-line .line-total { grid-column: 2; text-align: left; } }

/* ---------- Blocs de contenu ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; border-radius: var(--radius-l); background: var(--night-850); border: 1px solid var(--line); }
.section--light .feature { background: #fff; border-color: var(--paper-line); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); margin-bottom: 18px; }
.section--light .feature .ico { background: var(--paper-2); color: #0a8fa8; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: .94rem; }
.section--light .feature p { color: var(--ink-soft); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; list-style: none; padding: 0; margin: 0; }
.process li { counter-increment: p; position: relative; padding: 26px 22px; border-radius: var(--radius-l); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.process li::before { content: "0" counter(p); display: block; font-family: var(--font-mono); font-size: .8rem; color: var(--cyan); margin-bottom: 26px; }
.process h3 { font-size: 1.05rem; }
.process p { margin: 0; color: var(--text-soft); font-size: .92rem; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.stat { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.section--light .stat { border-color: var(--paper-line); background: #fff; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.stat span { font-size: .84rem; color: var(--text-soft); }
.section--light .stat span { color: var(--ink-soft); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

.machine-card { padding: 24px; border-radius: var(--radius-l); background: var(--night-850); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.machine-card .mono { color: var(--cyan); }
.machine-card h3 { margin: 0; }
.machine-card p { margin: 0; color: var(--text-soft); font-size: .92rem; }

.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: clamp(36px, 6vw, 64px); border: 1px solid var(--line-strong); background: radial-gradient(60% 120% at 100% 0%, rgba(139, 124, 246, .22), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(47, 217, 244, .16), transparent 60%), var(--night-850); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 8px; max-width: 20ch; }
.cta-band p { margin: 0; color: var(--text-soft); max-width: 52ch; }

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.5rem; font-weight: 300; color: var(--cyan); transition: rotate .25s var(--ease); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list .answer { padding: 0 0 22px; color: var(--text-soft); max-width: 70ch; }
.faq-list .answer p:last-child { margin: 0; }
.faq-list .answer a, .prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.faq-cat { margin: 56px 0 12px; font-size: .78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
.faq-cat:first-child { margin-top: 0; }

.prose { color: var(--text-soft); }
.prose h2 { color: var(--text); font-size: 1.4rem; margin: 2.2em 0 .6em; }
.prose h3 { color: var(--text); font-size: 1.08rem; margin: 1.8em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .94rem; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.legal-meta { font-size: .86rem; color: var(--text-mute); }
.todo { background: rgba(245, 184, 74, .14); color: var(--warn); border-radius: 4px; padding: 0 4px; font-style: normal; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info .item { display: flex; gap: 14px; }
.contact-info .item svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 2px; }
.contact-info .item b { display: block; }
.contact-info .item span, .contact-info .item a { color: var(--text-soft); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night-950); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--text-soft); transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--text-soft); max-width: 34ch; margin-top: 16px; }
.payment-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.payment-note span { font-size: .74rem; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--text-mute); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Toast ---------- */
.toast-zone { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; gap: 10px; max-width: calc(100% - 32px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--night-800); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .92rem; animation: rise .3s var(--ease); max-width: 400px; }
.toast .t-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; flex: none; position: relative; }
.toast a { color: var(--cyan); font-weight: 600; white-space: nowrap; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.noscript { padding: 16px; background: var(--warn); color: #1b1300; text-align: center; font-weight: 600; }
