/* Styles partagés : page merci + pages légales. Mêmes tokens que la page de vente. */
:root {
  --bg: #F7F2EA;
  --bg-2: #EFE7DA;
  --paper: #FFFDF9;
  --ink: #4e2609;
  --ink-deep: #2E1606;
  --muted: #7B5B44;
  --line: #DCCFBD;
  --yellow: #F2E6B3;
  --alert: #A3261B;
  --font-brand: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 3rem; }
.wrap { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; }
.topbar { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.topbar .wrap { flex-direction: row; justify-content: space-between; align-items: center; max-width: 68rem; }
.brand { font-family: var(--font-brand); font-weight: 900; font-stretch: 70%; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1; display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); text-decoration: none; }
.brand i { width: .55rem; height: .55rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; display: inline-block; }
h1, h2, h3 { font-family: var(--font-brand); margin: 0; text-wrap: balance; }
h1 { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: .98; }
h2 { font-weight: 850; font-stretch: 85%; text-transform: uppercase; font-size: 1.5rem; line-height: 1.1; margin-top: 1rem; }
h3 { font-weight: 800; font-size: 1.1rem; }
p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
a { color: var(--ink); }
.eyebrow { font-family: var(--font-brand); font-weight: 700; font-stretch: 110%; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.muted { color: var(--muted); }
.todo { background: #F6DCD6; color: #6b1a12; border: 1px dashed var(--alert); border-radius: 4px; padding: .05rem .35rem; font-size: .95em; }

.cta { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; background: var(--ink); color: var(--bg); text-decoration: none; font-family: var(--font-brand); font-weight: 800; font-stretch: 90%; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; padding: 1rem 1.5rem; border-radius: 999px; transition: background .15s ease; }
.cta::after { content: "→"; color: var(--yellow); font-size: 1.2em; }
.cta:hover { background: var(--ink-deep); }
.cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
.cta--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.cta--ghost::after { color: var(--ink); }
.cta--ghost:hover { background: var(--bg-2); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.access a.tile { display: flex; flex-direction: column; gap: .3rem; background: var(--ink); color: var(--bg); text-decoration: none; border-radius: 1rem; padding: 1.3rem; min-width: 0; transition: background .15s ease; }
.access a.tile:hover { background: var(--ink-deep); }
.access a.tile:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.access .tile strong { font-family: var(--font-brand); font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 1.25rem; line-height: 1.1; }
.access .tile span { font-size: .9rem; color: #D9C8B5; }
.access .tile em { font-style: normal; color: var(--yellow); font-weight: 700; font-size: .9rem; margin-top: .4rem; }
.steps { list-style: none; padding: 0; counter-reset: s; gap: .8rem; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; counter-increment: s; }
.steps li::before { content: counter(s); font-family: var(--font-brand); font-weight: 900; font-stretch: 70%; font-size: 1.4rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; line-height: 1; }
.state[hidden] { display: none !important; }
.loader { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { border: 1.5px solid var(--alert); border-radius: 1rem; padding: 1.2rem 1.4rem; background: var(--paper); display: flex; flex-direction: column; gap: .5rem; }
.alert h2 { color: var(--alert); margin: 0; font-size: 1.2rem; }

.legal h2 { font-size: 1.2rem; }
.legal p, .legal li { font-size: .98rem; }

footer { font-size: .82rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
footer .wrap { max-width: 68rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.legal-links a { color: inherit; }

@media (max-width: 40rem) {
  .access { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .loader { animation-duration: 3s; } .cta, .access a.tile { transition: none; } }

.logo { display: inline-flex; line-height: 0; text-decoration: none; }
.logo svg { width: 3.1rem; height: 3.1rem; display: block; }
.logo text { font-family: "Archivo", "Arial Black", sans-serif; font-weight: 900; }
.logo .arc { font-weight: 700; letter-spacing: .3em; }
.access a.tile--wide { grid-column: 1 / -1; }
.access a.tile[hidden], .steps li[hidden] { display: none; }
