/* Grapheva — page événement
   Charte : mêmes jetons que la landing page (apps/website/css/home.css).
   Règle de la marque : aucune capitale forcée (ni texte saisi en majuscules,
   ni transformation CSS en capitales) ; la hiérarchie passe par la graisse,
   la taille, la couleur et l'espace. */

:root {
  --ink: #111111;            /* fond principal */
  --ink-panel: #1b1b1e;      /* panneaux / cartes */
  --ink-field: #141416;      /* champs */
  --fg: #ffffff;
  --fg-soft: rgba(255, 255, 255, 0.82);
  --muted: #7b8087;
  --slate: #4c5166;
  --hairline: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --danger: #ff8a80;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --gutter: clamp(20px, 6vw, 96px);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(76, 81, 102, 0.35), transparent 60%),
    var(--ink);
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px var(--gutter) 48px;
}

.brand { margin-bottom: clamp(28px, 6vh, 64px); }
.brand-logo { display: block; height: 56px; width: auto; }

/* --- Mise en page : texte à gauche, formulaire à droite ------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lede {
  margin: 22px 0 0;
  max-width: 560px;
  color: var(--fg-soft);
  font-size: 18px;
}
.details { margin: 14px 0 0; color: var(--muted); font-weight: 500; }
.details:empty { display: none; }
.points {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--fg-soft);
}
.points li { display: flex; gap: 12px; align-items: baseline; }
.points li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--fg);
  transform: translateY(-2px);
}

/* --- Carte formulaire ------------------------------------------------------ */
.card {
  background: var(--ink-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.form h2, .done h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.form-hint { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--fg-soft); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }

input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--ink-field);
  color: var(--fg);
  font: inherit;
  font-size: 16px; /* évite le zoom automatique sur iOS */
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
input::placeholder { color: #5d6168; }
select { appearance: none; padding-right: 40px; background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237b8087' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select:invalid { color: #5d6168; }
option { color: var(--fg); background: var(--ink-panel); }
input:focus, select:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.error { min-height: 0; color: var(--danger); font-size: 13px; }
.error:empty { display: none; }

.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 138, 128, 0.35);
  border-radius: var(--r-sm);
  background: rgba(255, 138, 128, 0.08);
  color: var(--danger);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 26px;
  border: 0;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease-out, background-color 150ms ease-out, opacity 150ms;
}
.btn-primary { width: 100%; background: #fff; color: var(--ink); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #ececec; }
}
.privacy { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* --- Confirmation ---------------------------------------------------------- */
.done {
  max-width: 560px;
  margin: clamp(24px, 8vh, 96px) auto 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 5vw, 56px);
}
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done-mark { width: 56px; height: 56px; margin-bottom: 6px; }
.done h2 { font-size: clamp(26px, 3vw, 32px); }
.done p { margin: 0 0 10px; color: var(--fg-soft); font-size: 17px; }
.done .btn { width: auto; min-width: 240px; }

.footer {
  padding: 22px var(--gutter) 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.footer a { color: var(--fg-soft); text-decoration: none; }
.footer a:hover { color: var(--fg); }

.layout[hidden] { display: none; }

/* --- Tablette / téléphone ------------------------------------------------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .points { display: none; } /* le formulaire passe avant, sans défilement inutile */
  .lede { font-size: 17px; }
}
@media (max-width: 480px) {
  .page { padding-top: 20px; }
  .brand-logo { height: 46px; }
  .row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
