@charset "UTF-8";
/* mecavente.com - page de vente
   Un seul thème, clair (le magasin vide est bien éclairé), quel que soit le réglage
   clair/sombre de l'appareil. Seule la dernière section passe au noir : on éteint la lumière. */

:root {
  --bg: #f4f2ed;
  --bg-alt: #ebe7df;
  --card: #ffffff;
  --paper: #fffdf8;
  --text: #1c1e21;
  --muted: #5c6066;
  --line: #dcd7cd;
  --steel: #a3aab3;
  --steel-dark: #5f6670;
  --kraft: #c99a5d;
  --yellow: #ffd23f;
  --yellow-dark: #d9a900;
  --red: #d42a2f;
  --red-dark: #a81e22;
  --red-soft: #fbe4e2;
  --green: #23804a;
  --night: #121315;
  --night-text: #eceae6;
  --night-muted: #a4a7ac;
  --shadow: 0 1px 2px rgba(40, 30, 10, .08), 0 8px 24px rgba(40, 30, 10, .10);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-poster: Impact, Haettenschweiler, "Arial Narrow Bold", "Avenir Next Condensed", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --font-hand: "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.2; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 16px;
}
.narrow { max-width: 780px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.small { font-size: .85rem; color: var(--muted); }

/* Police d'affiche : Impact n'a qu'une graisse, on interdit le faux gras. */
.poster, .ticker, .price-value, .stat-num, .stamp, .btn-wait.sold::after {
  font-family: var(--font-poster);
  font-weight: 700;
  font-synthesis: none;
}

/* ---------- Bandeau défilant ---------- */
.ticker {
  background: var(--red);
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 1.02rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 60s linear infinite;
}
.ticker-group { display: inline-flex; }
.ticker-item { padding: 10px 0; }
.ticker .lc { text-transform: none; }
.ticker-item::after {
  content: "\2605";
  color: var(--yellow);
  margin: 0 18px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-gone { display: none; padding: 10px 16px; text-align: center; }
.sold-out .ticker-track { display: none; }
.sold-out .ticker-gone { display: block; }

/* ---------- Barre du haut ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 14px;
}
.brand {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--red); }
.last-day {
  margin: 0;
  font-size: .9rem;
  background: var(--yellow);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--yellow-dark);
}
.last-day-n { font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 56px;
}
.badge {
  display: inline-block;
  margin: 0;
  background: var(--text);
  color: #ffffff;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.domain {
  font-size: clamp(2.3rem, 11.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 16px 0 12px;
  white-space: nowrap;
}
.domain .v { color: var(--red); }
.domain .tld { color: var(--muted); font-weight: 700; }
.tagline {
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
}
.sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  text-wrap: pretty;
}
.hero-art .shelf {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}
.carton, .carton-shadow { transition: opacity .4s ease; }
.sold-out .carton, .sold-out .carton-shadow { opacity: 0; }

/* Étiquette de prix */
.price-tag {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 26px 0 4px;
  padding: 14px 26px 14px 46px;
  background: var(--yellow);
  border-radius: 6px 10px 10px 6px;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 6px 10px rgba(80, 60, 0, .18));
}
.price-tag::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.price-was { font-size: .85rem; }
.price-was s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.price-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 6px;
}
.price-value {
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: .01em;
}
.price-local { font-size: .9rem; font-weight: 700; margin-top: 4px; }
.price-local:empty { display: none; }

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  background: var(--red);
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 1.08rem;
  line-height: 1.3;
  box-shadow: 0 2px 0 var(--red-dark), var(--shadow);
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn small {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  opacity: .92;
  margin-top: 2px;
}

/* Ce qui est à vendre (et ce qui ne l'est pas) */
.deal {
  margin: 20px 0 0;
  padding: 14px 18px;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.deal-title {
  margin: 0 0 8px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.deal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.deal-yes {
  flex-basis: 100%;
  font-weight: 800;
  font-size: 1.05rem;
}
.deal-yes::before { content: "\2713"; color: var(--green); font-weight: 900; margin-inline-end: 8px; }
.deal-no { color: var(--muted); font-size: .92rem; }
.deal-no::before { content: "\2717"; color: var(--red); font-weight: 900; margin-inline-end: 6px; }
.deal-foot { margin: 8px 0 0; font-size: .85rem; font-style: italic; color: var(--muted); }
.btn:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.btn-small { padding: 10px 18px; font-size: .95rem; border-radius: 999px; }

.btn-ghost, .btn-wait {
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  position: relative;
}
.btn-ghost {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--steel-dark);
  padding: 13px 22px;
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-wait {
  font-size: .92rem;
  color: var(--muted);
  background: transparent;
  border: 1.5px dashed var(--steel-dark);
  padding: 9px 16px;
}
.btn-wait:hover:not(:disabled) { color: var(--text); border-color: var(--text); }
.btn-ghost:focus-visible, .btn-wait:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.btn-wait:disabled { cursor: default; }
.btn-wait.sold::after {
  content: "Épuisé";
  position: absolute;
  inset: -7px -10px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(255, 253, 248, .9);
  border: 3px solid var(--red);
  border-radius: 6px;
  font-size: 1.35rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  animation: stamp .3s cubic-bezier(.3, 1.6, .5, 1) both;
}
@keyframes stamp {
  from { transform: rotate(-7deg) scale(2.4); opacity: 0; }
  to { transform: rotate(-7deg) scale(1); opacity: 1; }
}
.wait-msg {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-style: italic;
  font-weight: 600;
  color: var(--red-dark);
}
.note {
  color: var(--muted);
  font-size: .9rem;
  margin: 6px 0 0;
  max-width: 560px;
}

/* ---------- Sections ---------- */
section { padding-block: 72px; }
section.alt { background: var(--bg-alt); }

h2 {
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -.03em;
  margin: 0 0 10px;
  text-align: center;
  text-wrap: balance;
}
.lead {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 680px;
  text-wrap: pretty;
}
.punch {
  text-align: center;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 30px auto 0;
  max-width: 640px;
  text-wrap: balance;
}
.punch-left { text-align: start; margin-top: 22px; font-size: 1.05rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

/* ---------- Bilan ---------- */
.bilan { padding-top: 24px; }
.stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 10px 18px;
  box-shadow: var(--shadow);
}
.stat-num {
  font-size: clamp(2.8rem, 9vw, 4rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stat-num.landed { animation: land .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes land {
  from { transform: scale(1.5); }
  to { transform: scale(1); }
}
.stat-label { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- Inventaire ---------- */
.doc {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 34px 34px;
  box-shadow: 0 1px 0 #e6e1d6, 0 3px 0 -1px #f7f4ec, 0 4px 0 -1px #ddd8cc, var(--shadow);
}
.doc-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--text);
  padding-bottom: 12px;
}
.lots { list-style: none; margin: 0; padding: 0; }
.lot {
  display: grid;
  grid-template-columns: 76px 1fr 120px;
  gap: 4px 18px;
  padding: 16px 0;
  border-bottom: 1px dashed #cfc9bc;
}
.lot-no {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 3px;
}
.lot h3 { margin: 0 0 4px; font-size: 1.08rem; }
.lot p { margin: 0; color: var(--muted); }
.lot-est {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: end;
  padding-top: 3px;
}
.lot-est small {
  display: block;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}
.doc-sign {
  margin: 22px 0 0;
  text-align: end;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  font-weight: 700;
  color: #23407a;
}
.stamp {
  position: absolute;
  left: 34px;
  bottom: 30px;
  color: var(--red);
  border: 4px solid var(--red);
  border-radius: 6px;
  padding: 6px 14px 4px;
  font-size: 1.35rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
  opacity: .85;
  mix-blend-mode: multiply;
}

/* ---------- La pièce manquante ---------- */
.piece-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}
.piece-fig { margin: 0; }
.gears {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.gear-body { fill: var(--steel); stroke: var(--steel-dark); stroke-width: 1.5; stroke-linejoin: round; }
.gear-bolts circle { fill: var(--steel-dark); }
.gear-hub { fill: #ffffff; stroke: var(--steel-dark); stroke-width: 1.5; }
.gear-num {
  font: 800 22px var(--font);
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: middle;
}
.mv-solid .gear-body { fill: var(--red); stroke: var(--red-dark); }
.mv-solid .gear-bolts circle { fill: var(--red-dark); }
.mv-solid .gear-hub { fill: #ffffff; stroke: var(--red-dark); }
.gear-num-mv { font-size: 15px; fill: var(--red-dark); }
.ghost-path {
  fill: rgba(212, 42, 47, .05);
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  animation: ghost 2.4s ease-in-out infinite;
}
@keyframes ghost {
  0%, 100% { fill: rgba(212, 42, 47, .03); }
  50% { fill: rgba(212, 42, 47, .14); }
}
.ghost-ref { font: 800 16px var(--font); fill: var(--red); text-anchor: middle; }
.ghost-sub { font: 600 12px var(--font); fill: var(--red); text-anchor: middle; }
.mv-ghost { transition: opacity .25s ease; }
.mv-solid {
  opacity: 0;
  transform: translateY(-70px);
  transition: transform .45s cubic-bezier(.3, 1.5, .5, 1), opacity .2s ease;
}
.gears.mounted .mv-solid { opacity: 1; transform: none; }
.gears.mounted .mv-ghost { opacity: 0; }

/* Vue éclatée : les pièces se rassemblent quand la section apparaît (seulement avec JS). */
.js .gears .part:not(.part-mv) {
  transform: translate(var(--dx), var(--dy));
  opacity: .3;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .7s ease;
}
.js .gears.assembled .part:not(.part-mv) { transform: none; opacity: 1; }
.js .gears .part:nth-child(3) { transition-delay: .08s; }
.js .gears .part:nth-child(4) { transition-delay: .16s; }
.js .gears .part:nth-child(5) { transition-delay: .24s; }
.js .gears .part:nth-child(6) { transition-delay: .32s; }
.js .gears .part:nth-child(7) { transition-delay: .40s; }
.js .gears .part:nth-child(8) { transition-delay: .48s; }

.piece-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 16px;
  margin-top: 18px;
}
.start-msg {
  min-height: 1.6em;
  margin: 12px 0 0;
  text-align: center;
  font-style: italic;
  font-weight: 600;
  color: var(--red-dark);
}

.bom {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
.bom caption {
  caption-side: top;
  text-align: start;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 8px;
}
.bom th, .bom td {
  padding: 10px 14px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.bom thead th { background: var(--bg-alt); font-size: .85rem; }
.bom tbody th { font-family: var(--font-mono); font-weight: 700; }
.bom tbody tr:last-child th, .bom tbody tr:last-child td { border-bottom: 0; }
.bom .ok { color: var(--green); font-weight: 700; }
.bom .ok::before { content: "\2713"; margin-inline-end: 6px; }
.bom .missing th, .bom .missing td { background: var(--red-soft); color: var(--red-dark); font-weight: 700; }
.bom .missing small { font-weight: 600; }

/* ---------- Fiche produit ---------- */
.fiche {
  display: grid;
  gap: 26px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto;
  padding: 28px;
}
.fiche-visual { text-align: center; }
.fiche-carton { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 14px; }
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: var(--red-soft);
  color: var(--red-dark);
  font-weight: 800;
  font-size: .92rem;
  border-radius: 999px;
  padding: 6px 14px;
}
.stock-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .2; }
}
.stock-note { margin: 6px 0 0; font-size: .85rem; color: var(--muted); font-style: italic; }
.specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}
.specs dt, .specs dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  padding-inline-end: 22px;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 12px;
}
#fiche .small { margin: 18px 0 0; }

/* ---------- Mot du vendeur ---------- */
.letter {
  max-width: 760px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--red);
  border-radius: var(--radius);
  padding: 30px 30px 24px;
  box-shadow: var(--shadow);
  font-size: 1.06rem;
}
.letter h2 { text-align: start; font-size: 1.6rem; margin-bottom: 14px; }
.letter .sign { text-align: end; font-style: italic; color: var(--muted); margin-bottom: 0; }

/* ---------- Témoignages ---------- */
.quote { margin: 0; position: relative; padding-top: 38px; }
.quote::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 20px;
  font-size: 3.4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--red);
  opacity: .45;
}
.quote blockquote { margin: 0 0 12px; font-style: italic; }
.quote figcaption { color: var(--muted); font-size: .9rem; font-weight: 700; }

/* ---------- FAQ ---------- */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 700; }
summary:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 4px; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Appel final : on éteint la lumière ---------- */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: 0 96px;
  background: var(--night);
  color: var(--night-text);
  transition: background-color .45s ease, color .45s ease;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 236, 190, .16), transparent 70%);
  pointer-events: none;
  transition: opacity .45s ease;
}
.final .wrap { position: relative; }
.final h2 { font-size: clamp(1.9rem, 6vw, 3rem); }
.final .lead { color: var(--night-muted); margin-bottom: 28px; }
.final .note { color: var(--night-muted); margin: 14px auto 0; }
.final .note a { color: var(--yellow); }
.tube {
  width: min(260px, 60%);
  height: 8px;
  margin: 0 auto 64px;
  border-radius: 0 0 4px 4px;
  background: #3a3c40;
}
/* Avec JS : la lumière est allumée, puis s'éteint quand on arrive. */
.final.lit { background: var(--bg-alt); color: var(--text); }
.final.lit::before { opacity: 0; }
.final.lit .lead, .final.lit .note { color: var(--muted); }
.final.lit .note a { color: var(--red-dark); }
.final.lit .tube { background: #fffbe8; box-shadow: 0 0 22px 8px rgba(255, 246, 210, .9); }
.final.off .tube { animation: tube-off .5s steps(1, end); }
@keyframes tube-off {
  0% { background: #fffbe8; box-shadow: 0 0 22px 8px rgba(255, 246, 210, .9); }
  30% { background: #3a3c40; box-shadow: none; }
  50% { background: #fffbe8; box-shadow: 0 0 22px 8px rgba(255, 246, 210, .9); }
  70%, 100% { background: #3a3c40; box-shadow: none; }
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  padding: 28px 0 96px;
  text-align: center;
}
footer p { margin: 6px auto; max-width: 720px; }

/* ---------- Barre d'achat collante ---------- */
.sticky {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 160%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(440px, calc(100% - 24px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  box-shadow: 0 10px 30px rgba(40, 30, 10, .2);
  transition: transform .3s ease;
}
.sticky.show { transform: translate(-50%, 0); }
.sticky-name { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-name strong { color: var(--red); margin-inline-start: 4px; }

/* ---------- Page 404 ---------- */
.nf { text-align: center; padding-block: 40px 72px; }
.nf .shelf-404 { display: block; width: min(420px, 100%); height: auto; margin: 10px auto 18px; }
.nf .sub { margin: 0 auto; }
.nf .cta { justify-content: center; }
.page-404 footer { padding-bottom: 36px; }

/* ---------- Grands écrans ---------- */
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; gap: 36px; padding-top: 28px; }
  .domain { font-size: clamp(3.2rem, 5.6vw, 4.6rem); }
  .piece-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; }
  .fiche { grid-template-columns: 300px 1fr; gap: 40px; padding: 34px 40px; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding-block: 52px; }
  .card { padding: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .doc { padding: 22px 18px 26px; }
  .lot { grid-template-columns: 1fr; gap: 2px; }
  .lot-est { text-align: start; }
  .lot-est small { display: inline; margin-inline-end: 8px; }
  .stamp { position: static; display: inline-block; margin-top: 18px; font-size: 1.1rem; }
  .doc-sign { margin-top: 10px; }
  .letter { padding: 22px 20px 18px; }
  .btn { padding: 15px 22px; font-size: 1.02rem; }
  .price-value { font-size: 2.6rem; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { padding-bottom: 0; border-bottom: 0; }
  .specs dd { padding-top: 2px; }
  .last-day-n { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { flex-wrap: wrap; }
}
