:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --surface: #ffffff;
  --ink: #16151a;
  --muted: #5f5d66;
  --line: #e4e0d7;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --accent-soft: #ffe7dc;
  --dark: #141318;
  --dark-surface: #1f1e25;
  --dark-line: #34323c;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(22, 21, 26, .18);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 2rem; }
h3 { font-size: 1.2rem; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; }
.hl { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--accent); color: var(--accent-ink);
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 600; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.nav__links { display: flex; gap: 1.6rem; font-weight: 500; white-space: nowrap; }
.nav__links a { color: var(--muted); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.cart-btn:hover { background: var(--bg-alt); }
.cart-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cart-btn__count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 700; display: grid; place-items: center;
}
.cart-btn__count.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.4); } }
.nav__toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 2.25rem; }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 500; }

/* Printer animation */
.printer { display: grid; place-items: center; }
.printer__frame {
  position: relative; width: min(400px, 100%); aspect-ratio: 1 / 1.05;
  border: 10px solid var(--ink); border-bottom-width: 22px; border-radius: 14px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, var(--bg-alt) 80%);
  box-shadow: var(--shadow);
}
/* Portique : sa hauteur (bottom) et la position de la tête (left) sont pilotées par script.js */
.printer__gantry {
  position: absolute; left: 0; right: 0; height: 8px; background: var(--ink);
  bottom: calc(8% + 28px); transition: bottom .18s ease;
}
.printer__head {
  position: absolute; top: -14px; left: 50%; width: 40px; height: 34px; margin-left: -20px;
  background: var(--accent); border-radius: 6px;
}
.printer__head::before { /* ventilateur de refroidissement */
  content: ""; position: absolute; left: 50%; top: 7px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55);
}
.nozzle { position: absolute; bottom: -8px; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top: 8px solid var(--ink); }
.printer__bed { position: absolute; left: 12%; right: 12%; bottom: 8%; height: 8px; border-radius: 4px; background: #9a978f; }
.printer__object { position: absolute; left: 50%; bottom: calc(8% + 8px); transform: translateX(-50%); }
/* Un segment de filament déposé : sa largeur grandit au passage de la buse */
.seg { position: absolute; border-radius: 1.5px; }
.seg--fresh { box-shadow: 0 0 6px 1px rgba(255, 140, 60, .55); } /* filament encore chaud */

/* Sections */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tight { padding: 1rem 0 2rem; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: #f4f2ee; }
.section--dark .lead { color: #b5b2bd; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section__head h2 { margin-bottom: 0; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 1rem; }
.cat {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s, box-shadow .2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat__emoji { font-size: 2rem; width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 16px; }
.cat--fun .cat__emoji { background: #fff1c9; }
.cat--util .cat__emoji { background: #d9ecff; }
.cat--custom .cat__emoji { background: var(--accent-soft); }
.cat p { color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: .2rem; }
.cats--many { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: .75rem; }
.cats--many .cat { padding: .85rem 1rem; gap: .8rem; align-items: center; }
.cats--many .cat__emoji { width: 46px; height: 46px; font-size: 1.5rem; border-radius: 13px; }
.cats--many .cat h3 { font-size: 1.02rem; }
.cats--many .cat p { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Filters */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.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;
  animation: fadeUp .4s both;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product__visual {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  font-size: 4.5rem; background: var(--tint, var(--bg-alt));
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 2px, transparent 2px 6px);
}
.product__emoji { transition: transform .3s; filter: drop-shadow(0 8px 8px rgba(0,0,0,.15)); }
.product:hover .product__emoji { transform: scale(1.12) rotate(-6deg); }
.badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: .35rem; }
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--surface); color: var(--ink);
}
.badge--hot { background: var(--accent); color: var(--accent-ink); }
.product__body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product__cat .weight { text-transform: none; letter-spacing: 0; }
.product__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.product__desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.colors { display: flex; gap: .4rem; margin-top: .25rem; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .15s;
}
.swatch.is-active { box-shadow: 0 0 0 2px var(--ink); }
.product__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .75rem; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.add-btn {
  background: var(--ink); color: var(--bg); padding: .55rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .9rem; transition: background .15s;
}
.add-btn:hover { background: var(--accent); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Succursale */
.branchbar { background: var(--ink); color: #f4f2ee; font-size: .88rem; }
.branchbar__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; padding: .55rem 0; }
.branchbar__label { font-weight: 600; }
.branchbar__select {
  font: 600 .88rem var(--font-body); color: var(--ink); background: #f4f2ee;
  border: 0; border-radius: 999px; padding: .35rem .8rem; max-width: 100%;
}
.branchbar__locate {
  font-weight: 600; font-size: .85rem; padding: .35rem .85rem; border-radius: 999px;
  background: var(--accent); color: #fff; transition: opacity .15s;
}
.branchbar__locate:disabled { opacity: .6; cursor: wait; }
.branchbar__info { color: #b5b2bd; }

/* Matériaux & disponibilité */
.mats { display: flex; gap: .3rem; flex-wrap: wrap; }
.mat {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: .2rem .6rem;
  border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); transition: all .15s;
}
.mat:hover { border-color: var(--ink); color: var(--ink); }
.mat.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.mat.is-static { cursor: help; }
.swatch { position: relative; }
.swatch.is-out { opacity: .4; cursor: not-allowed; }
.swatch.is-out::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: linear-gradient(45deg, transparent 44%, var(--ink) 44% 56%, transparent 56%);
}
.avail { font-size: .8rem; font-weight: 600; line-height: 1.4; }
.avail--ok { color: #1f8a50; }
.avail--out { color: #b13a00; }
.avail__switch { font-size: .8rem; font-weight: 600; color: var(--accent); text-decoration: underline; padding: 0; }
.add-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }

/* Panier : détails */
.cart__rows { display: grid; gap: .25rem; font-size: .88rem; color: var(--muted); }
.cart__rows:empty { display: none; }
.cart__rows div { display: flex; justify-content: space-between; }
.cart__branch { font-size: .82rem; color: var(--muted); text-align: center; }
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.delivery label {
  display: flex; align-items: center; justify-content: center; gap: .35rem; text-align: center;
  padding: .55rem .5rem; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; cursor: pointer;
}
.delivery label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.delivery input { position: absolute; opacity: 0; pointer-events: none; }
.delivery label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.checkout { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 1rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-content: start; }
.checkout label { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; font-weight: 500; font-size: .88rem; min-width: 0; }
.checkout input, .checkout textarea {
  font: inherit; padding: .65rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  width: 100%; min-width: 0; /* sans ça, un champ garde sa largeur « 20 caractères » et dépasse du panneau */
}
.checkout input[type="checkbox"], .checkout input[type="radio"] { width: auto; }
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); }
.checkout input[aria-invalid="true"] { border-color: #c62f00; }
.checkout__address { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.checkout__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .6rem; }
.checkout__back { justify-self: start; font-weight: 600; font-size: .88rem; color: var(--accent); }
.checkout__error { color: #b13a00; font-weight: 600; font-size: .88rem; }
.cart__done { flex: 1; padding: 2rem 1.5rem; text-align: center; display: grid; gap: .8rem; align-content: start; }
.cart__done .big { font-size: 3rem; }
.cart__done strong { font-family: var(--font-head); font-size: 1.3rem; }
.cart__done p { color: var(--muted); }
.offline {
  grid-column: 1 / -1; background: #fff1e6; border: 1px solid #ffb48f; color: #8a2d00;
  border-radius: var(--radius); padding: 1.25rem; font-weight: 500;
}

.line--out { border-color: #ffb48f; background: #fff7f2; }
.line__warn { font-size: .78rem; font-weight: 600; color: #b13a00; }

.customize { font-size: .85rem; font-weight: 600; color: var(--accent); margin-top: .2rem; }
.customize:hover { text-decoration: underline; }
.nav__new::after {
  content: "nouveau"; font-size: .62rem; font-weight: 700; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; padding: .1rem .4rem;
  margin-left: .35rem; vertical-align: 2px;
}
.line__meta a { color: var(--accent); font-weight: 600; }

/* Atelier 3D (promo) */
.atelier {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-image: radial-gradient(circle at 100% 0%, var(--accent-soft) 0, transparent 45%);
}
.atelier h2 { margin-bottom: 1rem; }
.atelier .hero__cta { margin-bottom: 0; }
.atelier__features { list-style: none; display: grid; gap: .8rem; }
.atelier__features li {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem;
  font-size: .92rem; color: var(--muted); line-height: 1.4;
}
.atelier__features span { font-size: 1.5rem; }
.atelier__features strong { display: block; color: var(--ink); font-family: var(--font-head); }
.btn--light { color: #f4f2ee; border-color: #f4f2ee; margin-top: 1.75rem; }
.btn--light:hover { background: #f4f2ee; color: var(--dark); }

/* Nos machines */
.machines-branch { margin-bottom: 2rem; }
.machines-branch h3 { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; font-size: 1.15rem; }
.machines-branch h3 small { font-family: var(--font-body); font-weight: 500; font-size: .85rem; color: var(--muted); }
.tag-here { font-family: var(--font-body); font-size: .72rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; padding: .15rem .55rem; }
.machines-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.machine {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: grid; gap: .2rem;
}
.machine__brand { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.machine strong { font-family: var(--font-head); font-size: 1.05rem; }
.machine__model { color: var(--ink); font-size: .9rem; }
.machine__specs { color: var(--muted); font-size: .82rem; }
.machines-energy { color: var(--muted); font-size: .88rem; }

/* Custom */
.custom { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.checks { list-style: none; margin-top: 1.75rem; display: grid; gap: .7rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.3rem; height: 1.3rem;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}

/* Forms */
.form { display: grid; gap: 1rem; background: var(--surface); padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); }
.form--dark { background: var(--dark-surface); border-color: var(--dark-line); }
.form label { display: grid; gap: .4rem; font-weight: 500; font-size: .92rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form select, .form textarea {
  font: inherit; padding: .8rem 1rem; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  transition: border-color .15s;
}
.form select, .form textarea, .form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.hp) { width: 100%; min-width: 0; }
.form--dark input, .form--dark select, .form--dark textarea { background: var(--dark); border-color: var(--dark-line); color: #f4f2ee; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file span {
  display: block; padding: 1rem; border: 1.5px dashed var(--dark-line); border-radius: 12px;
  text-align: center; color: #b5b2bd; cursor: pointer; transition: border-color .15s, color .15s;
}
.file:hover span, .file input:focus-visible + span { border-color: var(--accent); color: #fff; }
.form__ok { color: #6ee7a8; font-weight: 500; }
.form__error { color: #ffb48f; font-weight: 600; font-size: .9rem; }
.form__hint { color: #b5b2bd; font-size: .8rem; font-weight: 400; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"], .form select[aria-invalid="true"] { border-color: #ff7a45; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* champ piège anti-robots */

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps__num { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: .75rem; }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.review { background: var(--surface); border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .8rem; }
.stars { color: #f5a623; letter-spacing: .1em; }
.review p { font-size: 1.02rem; }
.review footer { color: var(--muted); font-weight: 600; font-size: .9rem; margin-top: auto; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
summary {
  font-family: var(--font-head); font-weight: 500; font-size: 1.15rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: .75rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 12, .45); z-index: 90; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%); background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart__head h2 { margin: 0; font-size: 1.4rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; }
.icon-btn:hover { background: var(--bg-alt); }
.cart__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: grid; gap: .75rem; align-content: start; }
.cart__empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart__empty span { font-size: 3rem; display: block; margin-bottom: .5rem; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .7rem; }
.line__thumb { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-size: 1.8rem; background: var(--tint); }
.line__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.line__meta { font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; }
.line__meta i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; box-shadow: 0 0 0 1px var(--line); }
.qty { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; }
.qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; line-height: 1; }
.qty button:hover { border-color: var(--ink); }
.qty span { min-width: 1.5rem; text-align: center; font-weight: 600; font-size: .9rem; }
.line__price { font-family: var(--font-head); font-weight: 700; }
.cart__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .9rem; }
.cart__ship { font-size: .88rem; color: var(--muted); }
.cart__ship .bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: .4rem; overflow: hidden; }
.cart__ship .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.cart__total { display: flex; justify-content: space-between; font-size: 1.15rem; }
.cart__total strong { font-family: var(--font-head); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 150%); opacity: 0;
  background: var(--ink); color: var(--bg); padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 500; transition: transform .3s, opacity .3s; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .custom, .atelier { grid-template-columns: minmax(0, 1fr); }
  .printer { order: -1; }
  .printer__frame { width: min(280px, 80%); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reviews, .cats { grid-template-columns: 1fr; }
  .cats--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .cats--many .cat { padding: .7rem; gap: .55rem; }
  .cats--many .cat__emoji { width: 38px; height: 38px; font-size: 1.25rem; }
  .cats--many .cat h3 { font-size: .9rem; }
  .cats--many .cat p { display: none; }
}
@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav__links.open { max-height: 320px; }
  .branchbar__info { width: 100%; font-size: .8rem; }
  .nav__links a { padding: 1rem 16px; border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .product__visual { font-size: 3rem; }
  .product__body { padding: .8rem; }
  .product__desc { display: none; }
  .product__foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .price { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Boutique : recherche, filtres, cartes, fiche produit
   ============================================================ */
.nav-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .15s; }
.nav-icon:hover { background: var(--bg-alt); }
.nav-icon svg, .account-btn svg { width: 21px; height: 21px; fill: currentColor; }
.account-btn { display: flex; align-items: center; gap: .45rem; height: 44px; padding: 0 .9rem 0 .7rem; border-radius: 999px; font-weight: 600; font-size: .9rem; transition: background .15s; }
.account-btn:hover { background: var(--bg-alt); }
.account-btn.is-in { background: var(--accent-soft); color: var(--accent); }

.shop-count { color: var(--muted); font-size: .92rem; }
.shop-sales { background: linear-gradient(90deg, #fff1e6, #ffe7dc); border: 1px solid #ffc9ad; border-radius: 14px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.link-inline { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.shop-toolbar {
  position: sticky; top: 68px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  padding: .7rem .8rem; margin: 0 -.8rem 1.5rem; border-radius: 0 0 18px 18px;
  background: var(--bg); /* opaque : les produits ne transparaissent pas dessous */
  box-shadow: 0 10px 18px -16px rgba(22, 21, 26, .35);
}
/* Catégories sur une seule ligne qu'on fait glisser (au lieu de 2 ou 3 lignes qui cachent les produits) */
.shop-toolbar .filters {
  order: 3; flex: 1 1 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; gap: .4rem;
  scrollbar-width: none; padding: .1rem 2rem .15rem 0; scroll-snap-type: x proximity;
  mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent);
}
.shop-toolbar .filters::-webkit-scrollbar { display: none; }
.shop-toolbar .chip { white-space: nowrap; padding: .4rem .85rem; font-size: .9rem; scroll-snap-align: start; flex: none; }
.shop-search { flex: 1 1 280px; display: flex; align-items: center; gap: .6rem; height: 48px; padding: 0 .9rem; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.shop-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.shop-search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.shop-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.shop-search kbd { font: 600 .75rem var(--font-body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .4rem; }
.shop-toolbar__end { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.shop-toggle { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.shop-toggle input { accent-color: var(--accent); width: 17px; height: 17px; }
#shop-sort { height: 42px; padding: 0 .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 500 .9rem var(--font-body); color: var(--ink); }
.shop-empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; gap: .6rem; justify-items: center; }
.shop-empty span { font-size: 2.6rem; }
.shop-empty strong { color: var(--ink); font-size: 1.1rem; }
.shop-empty a { color: var(--accent); font-weight: 600; }

button.product__visual { width: 100%; cursor: pointer; overflow: hidden; color: inherit; }
.product__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.product__visual .product__alt { opacity: 0; }
.product:hover .product__visual.has-photo img:first-of-type { transform: scale(1.04); }
.product:hover .product__visual .product__alt { opacity: 1; }
.product__peek { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0; z-index: 2;
  background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px; transition: opacity .2s, transform .2s; }
.product:hover .product__peek, .product__visual:focus-visible .product__peek { opacity: 1; transform: translate(-50%, 0); }
.product__title { font: inherit; text-align: left; padding: 0; }
.product__title:hover { color: var(--accent); }
.badge--sale { background: #1b7f4b; color: #fff; }
.price--sale { color: #c62f00; }
.price s { color: var(--muted); font-size: .8em; font-weight: 500; margin-left: .25rem; }

/* Fiche produit */
dialog.pdp, dialog.acct { border: 0; padding: 0; margin: auto; border-radius: 24px; background: var(--bg); color: var(--ink);
  width: min(1040px, calc(100% - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.4); overflow: hidden; }
dialog.acct { width: min(560px, calc(100% - 24px)); }
dialog.pdp::backdrop, dialog.acct::backdrop { background: rgba(10, 10, 12, .55); backdrop-filter: blur(3px); }
dialog.pdp[open], dialog.acct[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.pdp__close { position: absolute; top: 12px; right: 12px; z-index: 5; background: var(--surface); box-shadow: var(--shadow); }
.pdp__inner { display: grid; grid-template-columns: 1.05fr 1fr; max-height: calc(100dvh - 24px); overflow-y: auto; }
.pdp__gallery { padding: 1.25rem; display: grid; gap: .75rem; align-content: start; position: sticky; top: 0; }
.pdp__main { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: var(--tint, var(--bg-alt)); background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 2px, transparent 2px 6px); }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__emoji { font-size: clamp(6rem, 16vw, 10rem); filter: drop-shadow(0 14px 14px rgba(0,0,0,.18)); }
.pdp__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow); }
.pdp__nav--prev { left: 10px; } .pdp__nav--next { right: 10px; }
.pdp__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; }
.pdp__thumbs button { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.pdp__thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { padding: 2rem 2rem 2rem .75rem; display: grid; gap: .8rem; align-content: start; }
.pdp__info h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); padding-right: 2.5rem; }
.pdp__badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.pdp__badges .badge { border: 1px solid var(--line); }
.pdp__badges:empty { display: none; }
.pdp__price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pdp__price .price { font-size: 2rem; }
.pdp__price small { color: var(--muted); font-size: .85rem; }
.pdp__desc { color: var(--muted); font-size: 1rem; }
.pdp__buy { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.pdp__add { flex: 1 1 220px; }
.qty--big { margin: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem; }
.qty--big button { width: 38px; height: 38px; border: 0; font-size: 1.1rem; }
.qty--big button:disabled { opacity: .3; cursor: not-allowed; }
.qty--big span { min-width: 2rem; font-size: 1rem; }
.pdp__perks { list-style: none; display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); padding: .8rem 1rem; background: var(--bg-alt); border-radius: 14px; }
.pdp__details { border-top: 1px solid var(--line); padding-top: 1rem; display: grid; gap: .5rem; }
.pdp__details h3 { font-size: 1rem; }
.pdp__details p { color: var(--muted); font-size: .95rem; }
.pdp__specs { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .92rem; }
.pdp__specs dt { color: var(--muted); }
.pdp__specs dd small { color: var(--muted); }
.pdp__stock { list-style: none; display: grid; gap: .3rem; font-size: .9rem; }
.pdp__stock li { display: flex; justify-content: space-between; padding: .35rem .6rem; border-radius: 8px; }
.pdp__stock li.is-here { background: var(--accent-soft); }
.pdp__stock .ok { color: #1b7f4b; } .pdp__stock .out { color: var(--muted); font-weight: 500; }

/* Panier : photos, rabais, code promo, paiement */
.line__thumb { overflow: hidden; }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__open { font: inherit; text-align: left; padding: 0; }
.line__open:hover { color: var(--accent); }
.line__price { display: grid; justify-items: end; }
.line__price s { font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--muted); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.promo { display: flex; gap: .5rem; }
.promo input { flex: 1; min-width: 0; padding: .6rem .8rem; border-radius: 10px; border: 1.5px dashed var(--line); background: var(--surface);
  font: 600 .9rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--ink); }
.promo input:focus { outline: none; border-color: var(--accent); border-style: solid; }
.promo__apply { padding: 0 1rem; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: .88rem; }
.promo__status { font-size: .88rem; color: #1b7f4b; font-weight: 500; }
.promo__status.is-error { color: #b13a00; }
.cart__discount { color: #1b7f4b; font-weight: 600; }
.checkout__account { font-size: .85rem; color: var(--muted); background: var(--bg-alt); border-radius: 10px; padding: .6rem .8rem; }
.pay { border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; display: grid; gap: .7rem; background: var(--surface);
  min-width: 0; /* un fieldset refuse sinon de rétrécir sous la largeur du formulaire de carte : tout le panneau débordait */ }
.pay #card-container { min-width: 0; max-width: 100%; }
.pay legend { font-weight: 700; font-size: .9rem; padding: 0 .3rem; }
.pay__choices { display: grid; gap: .4rem; }
.pay__choices label { display: flex !important; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.pay__choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay__choices input { accent-color: var(--accent); }
.pay__card { min-height: 56px; }
.pay__loading { color: var(--muted); font-size: .88rem; }
.pay__error { color: #b13a00; font-size: .85rem; font-weight: 500; }
.pay__note, .pay__later { font-size: .8rem; color: var(--muted); }

/* Compte client */
.acct__inner { padding: 2rem; max-height: calc(100dvh - 24px); overflow-y: auto; display: grid; gap: 1rem; }
.acct__tabs { display: flex; gap: .3rem; background: var(--bg-alt); border-radius: 999px; padding: .3rem; margin-right: 2.5rem; }
.acct__tabs button { flex: 1; padding: .55rem .8rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.acct__tabs button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.acct__intro { color: var(--muted); font-size: .92rem; }
.acct__form { display: grid; gap: .8rem; }
.acct__form label { display: grid; gap: .3rem; font-weight: 500; font-size: .88rem; }
.acct__form input { font: inherit; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.acct__form input:focus { outline: none; border-color: var(--accent); }
.acct__form small { color: var(--muted); font-weight: 400; }
.acct__pw { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; display: grid; gap: .6rem; }
.acct__pw legend { font-size: .85rem; font-weight: 600; padding: 0 .3rem; }
.acct__error { color: #b13a00; font-weight: 600; font-size: .88rem; }
.acct__hint { font-size: .82rem; color: var(--muted); text-align: center; }
.acct__hello { display: flex; align-items: center; gap: .8rem; margin-right: 2.5rem; }
.acct__hello div { display: grid; }
.acct__hello small { color: var(--muted); }
.acct__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 700 1.3rem var(--font-head); }
.acct__logout { justify-self: center; color: var(--muted); font-size: .88rem; text-decoration: underline; margin-top: .5rem; }
.acct__empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.acct__empty span { font-size: 2.5rem; display: block; }
.acct-order { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: grid; gap: .8rem; margin-bottom: .8rem; }
.acct-order header { display: flex; justify-content: space-between; gap: 1rem; }
.acct-order header div { display: grid; }
.acct-order header small { color: var(--muted); font-size: .8rem; }
.acct-order__total { font: 700 1.1rem var(--font-head); display: grid; justify-items: end; text-align: right; }
.acct-order__total small { font: 500 .75rem var(--font-body); color: #b13a00; }
.acct-order__total small.paid { color: #1b7f4b; }
.acct-order__items { list-style: none; display: grid; gap: .25rem; font-size: .88rem; }
.acct-order__items li { display: flex; justify-content: space-between; gap: 1rem; }
.acct-order__items small { color: var(--muted); }
.acct-order__promo { font-size: .85rem; color: #1b7f4b; }
.trk { list-style: none; display: flex; counter-reset: trk; }
.trk li { flex: 1; position: relative; padding-top: 1.6rem; font-size: .72rem; text-align: center; color: var(--muted); counter-increment: trk; }
.trk li::before { content: counter(trk); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-alt); border: 2px solid var(--line); font-weight: 700; font-size: .7rem; }
.trk li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.trk li.done, .trk li.now { color: var(--ink); font-weight: 600; }
.trk li.done::before { content: "✓"; background: #1b7f4b; border-color: #1b7f4b; color: #fff; }
.trk li.now::before { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.trk li.done::after, .trk li.now::after { background: #1b7f4b; }
.trk--cancel { color: #b13a00; font-weight: 600; font-size: .9rem; }

/* Messagerie (bulle) */
.sc { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; justify-items: end; gap: .8rem; }
.sc__bubble { position: relative; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px var(--accent); transition: transform .2s; }
.sc__bubble:hover { transform: scale(1.06); }
.sc__bubble svg { width: 28px; height: 28px; fill: currentColor; }
.sc__bubble.is-open { background: var(--ink); box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); }
.sc__badge { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.sc__panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 120px)); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -16px rgba(0,0,0,.35); border: 1px solid var(--line); animation: pop .2s ease; }
.sc__head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: 1rem 1.1rem; background: var(--ink); color: #fff; }
.sc__head div { display: grid; }
.sc__head small { font-size: .75rem; opacity: .7; }
.sc__close { color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.sc__close:hover { background: rgba(255,255,255,.12); }
.sc__messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.sc-msg { max-width: 82%; display: grid; gap: .15rem; font-size: .9rem; line-height: 1.4; }
.sc-msg > div { padding: .55rem .8rem; border-radius: 16px; overflow-wrap: anywhere; }
.sc-msg small { font-size: .7rem; color: var(--muted); }
.sc-msg--in { align-self: flex-start; }
.sc-msg--in > div { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.sc-msg--out { align-self: flex-end; justify-items: end; }
.sc-msg--out > div { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.sc__form { border-top: 1px solid var(--line); padding: .7rem; display: grid; gap: .5rem; background: var(--surface); }
.sc__who { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.sc__who input, .sc__send textarea { font: inherit; font-size: .88rem; padding: .55rem .7rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; }
.sc__send { display: flex; gap: .4rem; align-items: end; }
.sc__send textarea { flex: 1; resize: none; max-height: 120px; }
.sc__who input:focus, .sc__send textarea:focus { outline: none; border-color: var(--accent); }
.sc__send button { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1rem; }
.sc__error { color: #b13a00; font-size: .8rem; font-weight: 600; }

@media (max-width: 860px) {
  .pdp__inner { grid-template-columns: 1fr; }
  .pdp__gallery { position: static; padding-bottom: 0; }
  .pdp__info { padding: 1rem 1.25rem 1.5rem; }
  .shop-toolbar { top: 68px; margin-inline: -16px; border-radius: 0; padding: .7rem 16px; }
  .shop-toolbar .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: .2rem; scrollbar-width: none; }
  .shop-toolbar .chip { white-space: nowrap; }
  .shop-toolbar__end { margin-left: 0; width: 100%; justify-content: space-between; }
}
@media (max-width: 1100px) {
  .account-btn span { display: none; }
  .account-btn { padding: 0; width: 44px; justify-content: center; }
}
@media (max-width: 760px) {
  .account-btn { padding: 0; width: 44px; justify-content: center; }
  .nav-icon { display: none; }
  .shop-search kbd { display: none; }
}
@media (max-width: 520px) {
  .sc { right: 12px; bottom: 12px; }
  .sc__who { grid-template-columns: 1fr; }
  .acct__inner { padding: 1.25rem; }
  .trk li { font-size: .62rem; }
}
.footer__mail { color: var(--accent); font-weight: 600; font-size: .9rem; }
.footer__mail:hover { text-decoration: underline; }
.acct__hint a { color: var(--accent); font-weight: 600; }
.acct__title { font-size: 1.4rem; margin: 0 2.5rem 0 0; }
.acct__ok { color: #1b7f4b; font-weight: 600; font-size: .9rem; background: #e8f6ee; border-radius: 10px; padding: .7rem .8rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .88rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--ink); text-decoration: underline; }
.checkout label.checkout__terms { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .85rem; line-height: 1.45; }
.checkout__terms input { margin-top: .2rem; accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.checkout__terms a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.checkout__terms:has(input[aria-invalid="true"]) span { color: #b13a00; }
.form__legal { font-size: .8rem; color: #a9a6b0; }
.form__legal a { color: inherit; text-decoration: underline; }
.acct__legal { font-size: .8rem; color: var(--muted); text-align: center; }
.acct__legal a { color: var(--accent); }

/* ============================================================
   Tous les écrans : téléphone, tablette, PC, télé, console
   ============================================================ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }

/* Clavier, télécommande, manette : on voit toujours où l'on est */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.is-keynav :focus { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent-soft); }

/* Écrans tactiles : pas de zoom automatique sur les champs, pas d'effet de survol « collé » */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: max(16px, 1em) !important; }
}
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; }
}

/* Grands écrans (PC 1440p/4K, télé) : tout grandit un peu au lieu de rester minuscule */
@media (min-width: 1700px) {
  html { font-size: 17px; }
  .container { width: min(1340px, 100% - 64px); }
}
@media (min-width: 2300px) {
  html { font-size: 20px; }
  .container { width: min(1580px, 100% - 96px); }
}
@media (min-width: 3200px) {
  html { font-size: 26px; }
  .container { width: min(2060px, 100% - 128px); }
}

/* Télé / console : texte lisible du canapé, cibles plus grandes */
.is-tv { font-size: 20px; }
.is-tv .container { width: min(1500px, 100% - 6vw); }
.is-tv .btn { padding: 1rem 1.8rem; }
.is-tv .cart-btn, .is-tv .nav-icon, .is-tv .nav__toggle { width: 52px; height: 52px; }
@media (min-width: 2300px) { .is-tv { font-size: 28px; } }

/* ============================================================
   Recherche par véhicule / par outil
   ============================================================ */
.finder { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 1.25rem; display: grid; gap: .7rem;
  background-image: linear-gradient(120deg, color-mix(in srgb, #e3e6ff 55%, transparent), transparent 55%); }
.finder__head { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.1rem; }
.finder__icon { font-size: 1.5rem; }
.finder__fields { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.finder__fields label { display: grid; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--muted); flex: 1 1 180px; min-width: 0; }
.finder__fields .finder__year { flex: 0 1 130px; }
.finder__fields input, .finder__fields select { font: inherit; font-size: .95rem; color: var(--ink); padding: .65rem .8rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); width: 100%; min-width: 0; }
.finder__fields input:focus, .finder__fields select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.finder__clear { padding: .7rem .3rem; }
.finder__status { font-size: .9rem; color: var(--muted); }
.finder__status strong { color: #1b7f4b; }
.fit { font-size: .78rem; color: var(--muted); font-weight: 600; margin: .1rem 0 .3rem; }
.fit--ok { color: #1b7f4b; }
.fit--no { color: #b13a00; }
.pdp__fit { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.pdp__fit li { background: var(--bg-alt); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; }

/* ============================================================
   Notes et avis
   ============================================================ */
.stars-mini { display: inline-flex; color: var(--line); letter-spacing: .02em; }
.stars-mini i { font-style: normal; }
.stars-mini i.on { color: #f5a623; }
.stars-mini i.half { background: linear-gradient(90deg, #f5a623 50%, var(--line) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.product__rating { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); margin: -.1rem 0 .2rem; }
.reviews-summary { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .92rem; }
.reviews-summary__avg { font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); }
.reviews-summary .stars-mini { font-size: 1.2rem; }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.review__top .stars-mini { font-size: 1.05rem; }
.review__verified { font-size: .75rem; font-weight: 700; color: #1b7f4b; background: #e8f6ee; border-radius: 999px; padding: .1rem .55rem; }
.review__title { font-size: 1.02rem; }
.review p { overflow-wrap: anywhere; }
.review__reply { background: var(--bg-alt); border-left: 3px solid var(--accent); border-radius: 8px; padding: .55rem .75rem; font-size: .88rem; color: var(--muted); }
.review__reply strong { display: block; color: var(--ink); font-size: .8rem; }
.reviews-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 1rem 0; }
.reviews-cta { text-align: center; margin-top: 1.5rem; }
.pdp__reviews-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pdp__review-list { display: grid; gap: .7rem; }
.pdp__review-list .review { padding: 1rem; }
.rating-box { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.rating-box__avg { display: grid; justify-items: center; }
.rating-box__avg strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.rating-box__avg small { color: var(--muted); font-size: .75rem; }
.rating-box__bars { flex: 1 1 180px; display: grid; gap: .2rem; font-size: .78rem; color: var(--muted); }
.rating-box__bars div { display: grid; grid-template-columns: 2.2rem 1fr 1.5rem; gap: .4rem; align-items: center; }
.rating-box__bars i { height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; }
.rating-box__bars b { display: block; height: 100%; background: #f5a623; border-radius: 3px; }

/* Formulaires avis / suggestion */
.feedback-form select, .feedback-form textarea { font: inherit; padding: .7rem .85rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.feedback-form textarea { resize: vertical; }
.feedback-form select:focus, .feedback-form textarea:focus { outline: none; border-color: var(--accent); }
.feedback-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.star-input { border: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-input legend { font-weight: 500; font-size: .88rem; margin-bottom: .2rem; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.2rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s, transform .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a623; }
.star-input label:active { transform: scale(.9); }
.star-input input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Bandeau suggestions */
.suggest-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem);
  background-image: radial-gradient(circle at 0% 100%, #fff1c9 0, transparent 45%); }
.suggest-band h2 { margin-bottom: .6rem; }
.suggest-band .lead { max-width: 60ch; }
.acct-order__track { font-size: .88rem; margin-top: .3rem; }

/* Bouton de langue FR / EN */
.lang-btn { height: 36px; min-width: 40px; padding: 0 .55rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--muted); transition: border-color .15s, color .15s; }
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-note { background: #e3e6ff; color: #2a2f7a; border-radius: 12px; padding: .7rem 1rem; margin: 1rem auto; max-width: 760px; font-size: .92rem; }

/* Page « Merci pour votre achat » */
.thanks { padding: 2.5rem 0 3rem; display: grid; gap: 1.25rem; }
.thanks__hero { text-align: center; display: grid; justify-items: center; gap: .4rem; }
.thanks__hero .eyebrow { margin: .6rem 0 0; }
.thanks__hero .lead { margin-inline: auto; }
.thanks__check { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 700; color: #fff;
  background: #1f8a50; box-shadow: 0 14px 30px -12px #1f8a50; animation: pop .45s ease; }
.thanks__steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; counter-reset: s; }
.thanks__steps li { display: grid; justify-items: center; gap: .3rem; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); position: relative; }
.thanks__steps li span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); border: 2px solid var(--line); font-weight: 700; z-index: 1; }
.thanks__steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.thanks__steps li.is-done { color: var(--ink); }
.thanks__steps li.is-done span { background: var(--accent); border-color: var(--accent); color: #fff; }
.thanks__steps li.is-done:not(:last-child)::after { background: var(--accent); }
.thanks__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; display: grid; gap: .8rem; }
.thanks__card h2 { font-size: 1.15rem; margin: 0; }
.thanks__next { list-style: none; display: grid; gap: .6rem; }
.thanks__next li { display: flex; gap: .7rem; align-items: flex-start; line-height: 1.45; }
.thanks__next a { color: var(--accent); font-weight: 600; }
.thanks__items { list-style: none; display: grid; gap: .1rem; }
.thanks__items li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.thanks__items small { display: block; color: var(--muted); font-size: .8rem; }
.thanks__emoji { font-size: 1.5rem; text-align: center; }
.thanks__totals { display: grid; gap: .3rem; font-size: .95rem; }
.thanks__totals > div { display: flex; justify-content: space-between; }
.thanks__grand { font-weight: 700; font-size: 1.15rem; padding-top: .3rem; border-top: 1px solid var(--line); }
.thanks__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.thanks__help { text-align: center; font-size: .9rem; }
@media (max-width: 520px) { .thanks__steps li { font-size: .7rem; } .thanks__card { padding: 1rem; } }

/* ---------- Paiement en pleine page (coordonnées à gauche, résumé de la commande à droite) ---------- */
.checkout-summary h3 { font-size: 1rem; margin: 0 0 .4rem; }
.sum-line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .45rem 0; }
.sum-line__thumb { position: relative; width: 52px; height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--tint, var(--bg-alt));
  display: grid; place-items: center; font-size: 1.4rem; }
.sum-line__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }
.sum-line__thumb b { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--ink, #16151a); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.sum-line strong { display: block; font-size: .9rem; line-height: 1.25; }
.sum-line small { color: var(--muted); font-size: .78rem; }
.sum-line > span { font-weight: 600; font-size: .9rem; }

.cart.cart--full { width: 100%; box-shadow: none; overflow-y: auto; display: grid; align-content: start;
  grid-template-columns: minmax(16px, 1fr) minmax(0, 620px) minmax(300px, 440px) minmax(16px, 1fr);
  grid-template-rows: auto auto 1fr; transition: none; }
.cart--full .cart__head { grid-column: 1 / -1; padding-inline: max(1.5rem, calc((100% - 1060px) / 2)); background: var(--surface); }
.cart--full .checkout { grid-column: 2; grid-row: 2 / span 2; overflow: visible; padding: 2rem 2.5rem 3rem 0; gap: 1rem; }
.cart--full .checkout-summary, .cart--full .cart__foot { grid-column: 3 / 5; background: var(--bg-alt); border-left: 1px solid var(--line);
  padding-inline: 2rem max(2rem, calc(100% - 440px + 2rem)); }
.cart--full .checkout-summary { grid-row: 2; padding-top: 2rem; padding-bottom: .5rem; }
.cart--full .cart__foot { grid-row: 3; border-top: 0; align-content: start; padding-bottom: 3rem; }
.cart--full .cart__foot, .cart--full .checkout-summary { padding-right: 2rem; }
.cart--full .cart__foot > *, .cart--full .checkout-summary > * { max-width: 400px; }
.cart--full .checkout__row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.cart--full .checkout input, .cart--full .checkout textarea { padding-block: .8rem; }
.cart--full .cart__foot #checkout { position: sticky; bottom: 1rem; }
@media (max-width: 860px) {
  .cart.cart--full { display: flex; flex-direction: column; }
  .cart--full .checkout { padding: 1.25rem 1.25rem 1rem; }
  .cart--full .checkout-summary, .cart--full .cart__foot { border-left: 0; padding: 1rem 1.25rem; }
  .cart--full .checkout-summary { order: -1; border-bottom: 1px solid var(--line); }
  .cart--full .cart__head { order: -2; padding-inline: 1.25rem; }
  .cart--full .cart__foot > *, .cart--full .checkout-summary > * { max-width: none; }
}

/* ---------- Paiement pleine page : version soignée ---------- */
.checkout__steps, .checkout__trust { display: none; }
.co-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; min-width: 0; }
.co-card__title { display: none; }
.checkout__row--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 520px) { .checkout__row--even { grid-template-columns: minmax(0, 1fr); } }

.cart.cart--full { align-content: stretch; background: var(--bg); }
.cart--full .cart__head { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.cart--full .cart__head h2 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.cart--full .cart__head h2::before { content: ""; width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 24h24M7 19h18M10 14h12M13 9h6' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.cart--full .cart__head h2::after { content: "🔒 Paiement sécurisé"; font: 500 .78rem var(--font-body, inherit); color: var(--muted);
  background: var(--bg-alt); padding: .25rem .6rem; border-radius: 99px; margin-left: .3rem; }
.cart--full .checkout { gap: 1.1rem; padding-top: 1.6rem; }
.cart--full .checkout__back { font-size: .85rem; }
.cart--full .checkout__steps { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: -.2rem 0 .3rem; font-size: .8rem; color: var(--muted); }
.cart--full .checkout__steps li { display: flex; align-items: center; gap: .4rem; }
.cart--full .checkout__steps li + li::before { content: "›"; color: var(--line-strong, #bbb); }
.cart--full .checkout__steps .is-done { color: var(--accent); }
.cart--full .checkout__steps .is-current { color: var(--ink, #16151a); font-weight: 700; }
.cart--full .co-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(22,21,26,.04), 0 8px 24px -16px rgba(22,21,26,.18); }
.cart--full .co-card__title { display: flex; align-items: center; gap: .65rem; margin: 0 0 .2rem; font-family: var(--font-head); font-size: 1.12rem; }
.cart--full .co-card__title > span:first-child { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 800; }
.cart--full .checkout label { font-size: .82rem; font-weight: 600; color: var(--ink-soft, #3d3b44); }
.cart--full .checkout input:not([type=checkbox]):not([type=radio]), .cart--full .checkout textarea {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 11px; font-size: .95rem; transition: border-color .15s, box-shadow .15s, background .15s; }
.cart--full .checkout input:not([type=checkbox]):not([type=radio]):focus, .cart--full .checkout textarea:focus {
  background: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cart--full .checkout__account { margin: 0; }
.cart--full .pay { border: 0; padding: 0; margin: 0; }
.cart--full .pay legend { display: none; }
.cart--full .pay__choices label { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; font-size: .9rem; }
.cart--full .pay__choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cart--full .checkout__terms { margin-top: .2rem; padding: .8rem 1rem; border-radius: 12px; background: var(--bg-alt); font-weight: 500 !important; }
.cart--full .checkout__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; padding: 0; margin: .2rem 0 0; color: var(--muted); font-size: .8rem; justify-content: center; }

.cart--full .checkout-summary, .cart--full .cart__foot { background: var(--bg-alt); }
.cart--full .checkout-summary { padding-top: 2.2rem; }
.cart--full .checkout-summary h3 { font-family: var(--font-head); font-size: 1.12rem; margin-bottom: .7rem; }
.cart--full .sum-line { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; padding: .65rem .8rem; margin-bottom: .5rem; }
.cart--full .cart__foot { gap: 1rem; }
.cart--full .cart__rows { font-size: .92rem; gap: .45rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.cart--full .cart__total { font-size: 1.3rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.cart--full .cart__total strong { font-size: 1.6rem; }
.cart--full .promo input { background: #fff; }
.cart--full #checkout { padding-block: 1.05rem; font-size: 1.05rem; box-shadow: 0 10px 24px -10px rgba(255,90,31,.7); }
.cart--full .cart__branch { margin-top: -.3rem; }
@media (max-width: 860px) {
  .cart--full .co-card { padding: 1.1rem 1.1rem 1.2rem; border-radius: 16px; }
  .cart--full .cart__head h2::after { display: none; }
  .cart--full .checkout { padding-top: 1.1rem; }
}

/* Colonne de droite grise sur toute la hauteur (même quand le formulaire est plus long que le résumé) */
.cart.cart--full { --split: calc(50% + 90px);
  background: linear-gradient(to right, var(--bg) var(--split), var(--line) var(--split), var(--line) calc(var(--split) + 1px), var(--bg-alt) calc(var(--split) + 1px));
  background-attachment: local; }
.cart--full .checkout-summary, .cart--full .cart__foot { background: transparent; border-left: 0; }
@media (max-width: 1092px) and (min-width: 861px) {
  .cart.cart--full { grid-template-columns: 24px minmax(0, 1fr) 380px 0; --split: calc(100% - 380px); }
}
@media (max-width: 860px) {
  .cart.cart--full { background: var(--bg); }
  .cart--full .checkout-summary { background: var(--bg-alt); }
}
.cart--full .checkout__row--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } @media (max-width: 520px) { .cart--full .checkout__row--even { grid-template-columns: minmax(0, 1fr); } }
.pay__paypal { min-height: 52px; margin-top: .4rem; } .pay__paypal-logo { font: italic 800 1.05rem/1 Verdana, Arial, sans-serif; color: #003087; } .pay__paypal-logo b { color: #0070e0; } .paypal-hint { font-size: .88rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: .8rem 1rem; text-align: center; } .pay__choices { display: grid; gap: .5rem; }
