@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #070707;
  --panel: #101010;
  --panel-2: #161616;
  --line: #262626;
  --line-2: #3a3a3a;
  --text: #f4f4f2;
  --muted: #8f8f8c;
  --red: #e10600;
  --red-hi: #ff2a22;
  --display: "Chakra Petch", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --cut: 16px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}

/* ───────── Barre supérieure ───────── */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.top span, .top a {
  font-family: var(--display); font-weight: 500; font-size: 12px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.top a { color: var(--text); display: inline-flex; align-items: center; gap: 10px; }
.top a::before { content: ""; width: 6px; height: 6px; background: var(--red); }
.top a:hover { color: var(--red-hi); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero::before {            /* projecteur rouge */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 22% 0%, rgba(225, 6, 0, 0.30), transparent 70%),
    radial-gradient(45% 50% at 100% 100%, rgba(225, 6, 0, 0.10), transparent 70%),
    linear-gradient(180deg, #0c0c0c, var(--bg));
}
.hero::after {             /* trame fine */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 85%);
          mask-image: radial-gradient(80% 70% at 30% 30%, #000, transparent 85%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.logo { display: block; width: min(100%, 470px, 42svh); height: auto; margin: 22px 0 26px; }
.pitch {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5; color: #d6d6d3; max-width: 30em;
}
.pitch strong { color: var(--text); font-weight: 600; }

.facts { display: inline-grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 16px 34px 16px 0; margin-right: 34px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.facts small { display: block; font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.facts strong { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

/* Bouton d'appel (mobile uniquement : sur ordinateur le formulaire est à côté) */
.cta-mobile { display: none; margin-top: 30px; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ───────── Boutons ───────── */
.btn {
  display: block; width: 100%;
  padding: 19px 24px;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  letter-spacing: 0.2em; text-transform: uppercase; text-align: center; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--red-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); pointer-events: none; }

/* ───────── Carte formulaire (pans coupés) ───────── */
.card {
  background: linear-gradient(180deg, var(--line-2), var(--line));
  padding: 1px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.card-in {
  background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(12, 12, 12, 0.98));
  padding: clamp(24px, 3vw, 40px);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: 0.08em; text-transform: uppercase; }
.card-head span { font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { display: block; margin-top: 18px; min-width: 0; padding: 0; border: 0; }
.field > span, .field > label, .field > legend, .checks > legend { display: block; padding: 0; font-family: var(--display); font-weight: 500; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input {
  display: block; width: 100%; padding: 14px 14px;
  background: #0a0a0a; color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font: inherit; font-size: 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input::placeholder { color: #55554f; }
.field input:hover { border-color: var(--line-2); }
.field input:focus { outline: none; border-color: var(--red); background: #0d0d0d; }
.field input.invalide { border-color: var(--red); }
.date { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px; }
.date input { padding-left: 10px; padding-right: 10px; text-align: center; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.aide { margin-top: 7px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.msg { margin-top: 7px; font-size: 13px; line-height: 1.4; color: #ff7d77; }
.msg + .aide, .aide:has(+ .msg:not([hidden])) { display: none; }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.checks { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.checks > legend { float: left; width: 100%; margin-bottom: 0; }
.checks > legend + * { clear: both; }
.checks .msg { margin-left: 32px; }
.case { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: #d6d6d3; cursor: pointer; }
.case input {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin-top: 1px;
  background: #0a0a0a; border: 1px solid var(--line-2); border-radius: 0; cursor: pointer;
  display: grid; place-content: center;
}
.case input::after { content: ""; width: 10px; height: 10px; background: var(--red); transform: scale(0); transition: transform 0.12s ease; }
.case input:checked { border-color: var(--red); }
.case input:checked::after { transform: scale(1); }
.case input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.case.invalide span { color: #ff7d77; }
.case.invalide input { border-color: var(--red); }

.turnstile { margin-top: 20px; min-height: 65px; }
.erreur { margin: 14px 0 0; padding: 12px 14px; border-left: 2px solid var(--red); background: rgba(225, 6, 0, 0.08); color: #ff9c97; font-size: 14.5px; }
#form .btn { margin-top: 18px; }
.legal { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.state { padding: 26px 0 8px; }
.state strong { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.state p { color: #d6d6d3; }
#ferme { padding: 26px 0 8px; font-size: 17px; color: #d6d6d3; }

/* ───────── Sections ───────── */
.section { padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: 0.02em; text-transform: uppercase; margin-top: 14px; }
.section-head > p { color: #c4c4c0; font-size: clamp(16px, 1.3vw, 18px); max-width: 38em; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.steps li { padding: 30px 26px 34px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%); }
.steps li:last-child { border-right: 0; }
.steps .n { display: block; font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--red); margin-bottom: 22px; }
.steps strong { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15px; }

.points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.points li { padding: 28px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.points li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.points strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; padding-left: 18px; position: relative; }
.points strong::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; background: var(--red); }
.points p { color: var(--muted); font-size: 15px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two h3 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: 0.03em; text-transform: uppercase; margin: 14px 0 22px; }

.rules { list-style: none; }
.rules li { position: relative; padding: 16px 0 16px 30px; border-top: 1px solid var(--line); color: #d6d6d3; }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 8px; height: 8px; background: var(--red); }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--body); font-weight: 400; font-size: 22px; line-height: 1; color: var(--red); }
details[open] summary::after { content: "–"; }
summary:hover { color: var(--red-hi); }
summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
details .body { padding: 0 0 20px; color: #bdbdb9; font-size: 15px; max-width: 46em; }
details .body p + p { margin-top: 10px; }
details .body a { color: var(--text); }

/* ───────── Pied de page ───────── */
footer { padding: 44px 0 56px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
footer img { width: 64px; height: auto; opacity: 0.9; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 32px; }
footer a, footer small { font-family: var(--display); font-weight: 500; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ───────── Apparition ───────── */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.card { animation: up 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ───────── Tablette ───────── */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ───────── Mobile ───────── */
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 92px 0 56px; display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .logo { width: min(82vw, 400px); margin: 22px 0 26px; }
  .cta-mobile { display: block; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .points { grid-template-columns: 1fr; }
  .points li { padding: 24px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .points li:last-child { border-bottom: 0; padding-bottom: 0; }
  .two { grid-template-columns: 1fr; }
  .top span { display: none; }
  .top .wrap { justify-content: flex-end; }
}
@media (max-width: 560px) {
  :root { --cut: 12px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { margin-right: 0; padding: 14px 0; border-right: 0; }
  .facts div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 22px 26px; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
  .steps li:last-child { border-bottom: 0; }
  .steps .n { grid-row: span 2; font-size: 36px; margin: 0; }
  .card-head { flex-direction: column; gap: 4px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
