/* REVERSED — AIOS Delivery. Bichromie + accent rouge unique, radius 0. */

:root {
  --bg: #faf9f5;
  --fg: #0e0e0d;
  --muted: #6b6b67;
  --line: #d9d8d2;
  --line-soft: #ebeae4;
  --accent: #c2261a;
  --accent-soft: #f5e4e2;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--line); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Newsreader", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.red-i { font-style: italic; color: var(--accent); font-weight: 500; }

a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ── Gate ─────────────────────────────────────── */
#gate {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
#gate form { width: min(360px, 86vw); }
#gate .mono { color: var(--muted); display: block; margin-bottom: 14px; }
#gate h1 { font-weight: 500; font-size: 30px; margin-bottom: 26px; }
#gate input {
  width: 100%; padding: 13px 14px;
  font-family: "JetBrains Mono", monospace; font-size: 14px;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  outline: none;
}
#gate input:focus { border-color: var(--fg); }
#gate button {
  margin-top: 12px; width: 100%; padding: 13px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: none; cursor: pointer;
}
#gate button:hover { background: var(--accent); }
#gate .err { color: var(--accent); font-size: 14px; margin-top: 10px; display: none; }

/* ── Header ───────────────────────────────────── */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
header.site .wrap {
  display: flex; justify-content: space-between; align-items: center;
  height: 58px;
}
header.site .brand { font-weight: 700; letter-spacing: 0.2em; }
header.site .tag { color: var(--muted); }

/* ── Hero ─────────────────────────────────────── */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero .kicker { color: var(--accent); display: block; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero p.lead { font-size: 22px; max-width: 620px; color: var(--fg); }
.hero .statusline {
  margin-top: 40px; display: inline-flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); padding: 10px 16px;
}
.hero .statusline .dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ── Sections ─────────────────────────────────── */
section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.sec-head .num { color: var(--accent); }
.sec-head h2 { font-size: 32px; font-weight: 500; }
section p { max-width: 660px; margin-bottom: 16px; }
section p.muted, .muted { color: var(--muted); }

blockquote {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 22px; margin: 30px 0;
  font-size: 23px; font-style: italic; max-width: 620px;
}

/* ── Cartes phases ────────────────────────────── */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.phase { background: var(--bg); padding: 26px 22px; }
.phase .mono { color: var(--accent); display: block; margin-bottom: 12px; }
.phase h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.phase p { font-size: 16px; color: var(--muted); margin: 0; }

/* ── Timeline ─────────────────────────────────── */
.step {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 1px solid var(--line-soft); }
.step .n { font-family: "JetBrains Mono", monospace; font-size: 22px; color: var(--line); }
.step.done .n, .step.current .n { color: var(--accent); }
.step h3 { font-size: 21px; font-weight: 500; margin-bottom: 6px; }
.step .desc { font-size: 16px; color: var(--muted); max-width: 540px; }
.step .meta { font-size: 14px; color: var(--muted); margin-top: 10px; font-style: italic; }
.step .note { font-size: 15px; margin-top: 10px; padding-left: 14px; border-left: 2px solid var(--accent); }
.chip {
  align-self: start; white-space: nowrap;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line); color: var(--muted);
}
.step.done .chip { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.step.current .chip { border-color: var(--accent); color: var(--accent); }

/* ── Interview / accordéons ───────────────────── */
details {
  border: 1px solid var(--line); border-bottom: none;
}
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 16px;
  padding: 20px 22px;
}
summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--line-soft); }
summary .mono { color: var(--accent); }
summary h3 { font-size: 20px; font-weight: 500; flex: 1; }
summary .plus { font-family: "JetBrains Mono", monospace; color: var(--muted); transition: transform 0.25s var(--ease); }
details[open] .plus { transform: rotate(45deg); }
details .body { padding: 4px 22px 24px; }
details .why { font-size: 15px; font-style: italic; color: var(--muted); margin-bottom: 14px; max-width: 620px; }
details ol { padding-left: 22px; }
details ol li { padding: 7px 0; font-size: 17px; max-width: 620px; }
details ol li::marker { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--accent); }

/* ── Listes engagements / garanties ───────────── */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.row .mono { color: var(--accent); padding-top: 5px; }
.row h3 { font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.row p { font-size: 16px; color: var(--muted); margin: 0; max-width: 620px; }

/* ── Alignement de départ / signature ─────────── */
.pact { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 8px 0 36px; }
.pact > div { background: var(--bg); padding: 24px 22px; }
.pact .mono { color: var(--accent); display: block; margin-bottom: 14px; }
.pact ul { list-style: none; }
.pact li { padding: 7px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
.pact li:last-child { border-bottom: none; }

#signature .sign-box { border: 1px solid var(--fg); padding: 30px 26px; max-width: 620px; }
#signature label { display: block; }
#signature .lbl { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
#signature input[type="text"] {
  width: 100%; padding: 13px 14px; margin-bottom: 18px;
  font-family: "Newsreader", Georgia, serif; font-size: 20px; font-style: italic;
  background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--fg);
  outline: none;
}
#signature input[type="text"]:focus { border-color: var(--accent); }
#signature .check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; cursor: pointer; }
#signature .check input { margin-top: 6px; accent-color: var(--accent); width: 16px; height: 16px; }
#signature .check span { font-size: 16px; color: var(--muted); }
#signature button {
  padding: 14px 28px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: none; cursor: pointer;
}
#signature button:hover { background: var(--accent); }
#signature .signed { display: none; border-left: 2px solid var(--accent); padding: 6px 0 6px 22px; }
#signature .signed h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
#signature .signed .who { font-style: italic; color: var(--muted); }

@media (max-width: 720px) { .pact { grid-template-columns: 1fr; } }

/* ── Journal ──────────────────────────────────── */
.entry { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.entry .mono { color: var(--muted); padding-top: 4px; }
.entry h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.entry p { font-size: 16px; color: var(--muted); margin: 0; }
.entry:first-of-type h3 { color: var(--accent); }

/* ── Footer ───────────────────────────────────── */
footer { padding: 56px 0 72px; }
footer .wrap { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; }
footer .sig { font-style: italic; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 720px) {
  .phases { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }
  .step .chip { grid-column: 2; justify-self: start; margin-top: 8px; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}

@media print {
  #gate { display: none !important; }
  header.site { position: static; }
  details { break-inside: avoid; }
}
