@font-face {
  font-family: 'Anton';
  src: url('fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0b14;
  --panel: #171325;
  --panel-2: #1e1932;
  --border: #2c2542;
  --line: #3a3157;
  --text: #ece8f6;
  --soft: #d4cde6;
  --muted: #a49cbc;
  --accent: #b6ff3c;
  --accent-text: #10130a;
  --accent-line: #6a873f;
  --violet: #7b4dff;
  --violet-soft: #b39dff;
  --r-s: 8px;
  --r: 14px;
  --display: 'Anton', Impact, 'Arial Narrow', 'Roboto Condensed', sans-serif-condensed, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet-soft); }
a:hover { color: var(--text); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 3px; }

/* En-tête */
.top { border-bottom: 1px solid var(--border); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.brand b { font-weight: 400; color: var(--accent); }
.top-link { font-size: 14px; color: var(--soft); text-decoration: none; padding: 8px 0; }
.top-link:hover { color: var(--accent); }

/* Accueil */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 9.5vw, 92px);
  line-height: 1.02;
  letter-spacing: .01em;
  text-transform: uppercase;
  max-width: 14ch;
}
.hl { color: var(--accent); }
.lead { margin-top: 20px; max-width: 52ch; color: var(--soft); font-size: clamp(16px, 2.4vw, 19px); }

.search { display: flex; gap: 8px; margin-top: 28px; max-width: 620px; }
.search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  font-size: 16px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent-line); }
.search button, .cta {
  display: inline-block;
  padding: 14px 20px;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: var(--r-s);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.search button:hover, .cta:hover { background: #c8ff6a; color: var(--accent-text); }
.ghost {
  display: inline-block;
  padding: 13px 19px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--soft);
  text-decoration: none;
  cursor: pointer;
}
.ghost:hover { border-color: var(--accent-line); color: var(--text); }

.live { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
#live-text { transition: opacity .35s; }
#live-text.out { opacity: 0; }

/* Annonces */
.ads { padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.ads-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 20px; }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 38px);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid li { display: flex; }
.ad {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.ad:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.pic {
  position: relative;
  flex: none;
  width: 112px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  color: var(--violet-soft);
}
.pic svg { width: 56px; height: 56px; }
.pic em {
  position: absolute;
  left: 8px;
  top: 8px;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.body { display: flex; flex-direction: column; gap: 4px; padding: 14px; min-width: 0; }
.title { font-weight: 600; line-height: 1.3; }
.price { font-family: var(--display); font-size: 22px; letter-spacing: .02em; color: var(--accent); margin-top: 2px; }
.meta { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .ad { flex-direction: column; }
  .pic { width: auto; height: 130px; }
  .pic svg { width: 64px; height: 64px; }
}

/* Comment ça marche */
.how { padding: clamp(36px, 6vw, 72px) 0; border-top: 1px solid var(--border); background: var(--panel); }
.steps { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { display: flex; gap: 16px; }
.n {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}
h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--soft); font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Pied */
.foot { padding: 32px 0 48px; font-size: 14px; color: var(--soft); }
.foot p + p { margin-top: 6px; }

/* Fenêtre */
dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
dialog::backdrop { background: rgba(8, 6, 14, .82); }
.dlg-in { padding: 24px; }
#dlg-title { font-size: 28px; margin-bottom: 12px; outline: none; }
#dlg-text { color: var(--soft); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* Entrée en douceur */
.hero .wrap > *, .ad { animation: rise .6s both; }
.hero .wrap > :nth-child(2) { animation-delay: .06s; }
.hero .wrap > :nth-child(3) { animation-delay: .12s; }
.hero .wrap > :nth-child(4) { animation-delay: .18s; }
.hero .wrap > :nth-child(5) { animation-delay: .24s; }
.grid li:nth-child(2) .ad { animation-delay: .06s; }
.grid li:nth-child(3) .ad { animation-delay: .12s; }
.grid li:nth-child(4) .ad { animation-delay: .18s; }
.grid li:nth-child(5) .ad { animation-delay: .24s; }
.grid li:nth-child(6) .ad { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
