:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --ink: #17201b;
  --muted: #5b665f;
  --line: #e2ddcf;
  --brand: #0f3d2e;
  --brand-2: #1f6b4f;
  --accent: #d98e2b;
  --err: #a8321f;
  --ok: #1f6b4f;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512; --surface: #18201b; --ink: #ecefe9; --muted: #a3ada6;
    --line: #2a352e; --brand: #8fd1b0; --brand-2: #6cc39a; --accent: #f0b25a;
    --err: #ff8a75; --ok: #8fd1b0;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--brand-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* En-tête + onglets */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo b { color: var(--brand-2); font-weight: 700; }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.tabs a:hover { color: var(--ink); background: var(--line); }
.tabs a[aria-current] { color: var(--bg); background: var(--brand); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 9vw, 3.7rem); line-height: 1.05; margin: 0 0 20px; white-space: nowrap; letter-spacing: -.01em; }
.narrow h1 { white-space: normal; }
h1 span { color: var(--brand-2); }
.lead { font-size: 1.2rem; margin: 0 0 16px; max-width: 34em; }
.note { color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin: 0; }

/* Carte enchère */
.bid-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(15, 61, 46, .08); }
.bid-head, .countdown { display: flex; flex-direction: column; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--brand); line-height: 1.15; }
.cd-value { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1.6em; }
.meta { font-size: .88rem; color: var(--muted); }
.closed { margin: 0; font-weight: 500; }

/* Formulaires */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input[type=email], .form input[type=text], .form input[type=number], .form textarea {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; }
.form small, .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; }
.check input { margin-top: 5px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--brand); color: var(--bg); border: 0; border-radius: 10px; padding: 13px 22px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: var(--brand-2); }
.btn:disabled { opacity: .7; cursor: wait; }
.tiny { font-size: .82rem; color: var(--muted); margin: 0; }
.err { color: var(--err); font-weight: 500; }
.ok { color: var(--ok); font-weight: 500; }

/* Sections */
.block { padding: 48px 16px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 12px; line-height: 1.2; }
.h1-small { font-size: clamp(2rem, 5vw, 2.8rem); }
.intro { color: var(--muted); max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.band { background: var(--brand); color: #f2efe6; }
.band h2 { color: #fff; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.facts li { border-top: 2px solid var(--accent); padding-top: 12px; display: grid; }
.facts b { font-family: var(--serif); font-size: 1.6rem; }
.facts span { opacity: .85; font-size: .92rem; }
@media (prefers-color-scheme: dark) { .band { background: #0d2a20; } }
.steps { padding-left: 22px; max-width: 48em; }
.steps li { margin-bottom: 12px; }
.prose h2 { font-size: 1.3rem; margin-top: 28px; }
.prose li { margin-bottom: 6px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .grid, .facts { grid-template-columns: 1fr; }
  .tabs a { padding: 7px 10px; font-size: .9rem; }
  .bid-card { padding: 18px; }
}
