:root {
  --night: #0b0906;
  --night-2: #15100b;
  --panel: #1b140d;
  --line: rgba(242, 182, 54, .28);
  --gold: #f2b636;
  --gold-hi: #ffd978;
  --amber: #e07b14;
  --text: #f3ead7;
  --muted: #c4b59a;
  --ok: #8fd18b;
  --err: #ff9b7a;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-hi); }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }

/* ------------------------------------------------------------------ hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.hero-img {
  display: block;
  width: 100%;
  max-width: 1380px;
  height: auto;
  /* fond l'image dans le noir : bas + côtés (utile au-delà de 1380px) */
  -webkit-mask-image:
    linear-gradient(to bottom, #000 78%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 78%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.hero .cta { margin-top: .25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.cta {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: .85rem 1.7rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(11, 9, 6, .75);
  color: var(--gold-hi);
  font: 600 1rem/1.2 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.cta:hover, .cta:focus-visible { background: var(--gold); color: var(--night); transform: translateY(-1px); }
.cta:disabled { opacity: .6; cursor: wait; transform: none; }

/* ------------------------------------------------------------------ sections */
main { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.title {
  text-align: center;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  color: var(--gold);
  margin: 0 0 2rem;
}
.title::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: .8rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.intro p {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  color: var(--text);
}
.intro strong { color: var(--gold-hi); }

.grid3 { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.card .icon { font-size: 2rem; }
.card h3 { margin: .4rem 0 .5rem; font-size: 1.35rem; color: var(--gold-hi); }
.card p { margin: 0; color: var(--muted); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.chips li {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--night-2);
  color: var(--text);
}

.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; }
.timeline li { display: flex; gap: 1.1rem; padding: 0 0 1.6rem; position: relative; }
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), transparent);
  opacity: .5;
}
.timeline .n {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 1.2rem var(--serif);
  color: var(--night);
  background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--amber));
}
.timeline h3 { margin: .45rem 0 .25rem; font-size: 1.25rem; color: var(--gold-hi); }
.timeline p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------------ form */
.lead { text-align: center; color: var(--muted); max-width: 620px; margin: -1rem auto 2rem; }
.form {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.2rem);
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 1rem;
}
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form label { display: grid; gap: .35rem; font-size: .95rem; color: var(--muted); }
.req { color: var(--gold); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date], .form textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid rgba(242, 182, 54, .35);
  border-radius: 10px;
  background: #0f0b07;
  color: var(--text);
  font: inherit;
  color-scheme: dark;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form ::placeholder { color: #7d705c; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-size: .9rem !important; }
.consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--gold); }
.form .cta { justify-self: center; margin-top: .4rem; }
.status { margin: 0; min-height: 1.5em; text-align: center; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.privacy { max-width: 720px; margin: 0 auto; font-size: .92rem; color: var(--muted); }
.privacy h2 { font-size: 1.2rem; color: var(--gold); margin: 0 0 .6rem; }

/* ------------------------------------------------------------------ footer */
.footer {
  margin-top: 4rem;
  padding: 2rem 16px 2.4rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(224, 123, 20, .08));
  text-align: center;
}
.foot-line {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: center;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.foot-line a { text-decoration: none; color: var(--text); }
.foot-line small { font-weight: 400; color: var(--muted); }
.sep { width: 1px; height: 1.4em; background: var(--gold); opacity: .6; }
.copy { margin: 1rem 0 0; font-size: .85rem; color: #8a7d68; }

@media (max-width: 520px) {
  .sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
}
