:root {
  --bg: #0c0c1d;
  --bg-card: #16162a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --border: #2d2d4a;
  --error: #f87171;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
header { padding: 16px 0; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: white; text-decoration: none; white-space: nowrap; }
.logo-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; }
.back { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; }
.back:hover { color: white; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; border: 0; text-decoration: none; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.btn-outline { border: 1px solid var(--border); color: white; }
.btn-outline:hover { border-color: var(--accent); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
main { padding: 56px 0 72px; }
.form-wrap { max-width: 720px; margin: 0 auto; }
.section-label { color: var(--accent); font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 8px; text-align: center; }
h1 { color: white; font-size: 2.2rem; line-height: 1.2; text-align: center; margin-bottom: 12px; }
.intro { color: var(--text-muted); text-align: center; margin-bottom: 32px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
fieldset { border: 0; margin-bottom: 24px; }
legend { color: white; font-weight: 600; font-size: 1.05rem; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.9rem; font-weight: 500; }
.req { color: var(--accent); }
.hint { color: var(--text-muted); font-size: 0.8rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.consent input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: none; border: 1px solid var(--error); color: var(--error); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; font-size: 0.9rem; }
.alert.show { display: block; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.actions .hint { flex: 1; min-width: 200px; }
.thanks { text-align: center; }
.thanks .intro { margin-bottom: 24px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; }
.legal .intro { margin-bottom: 40px; }
.legal h2 { color: white; font-size: 1.2rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 10px; }
.legal ol { padding-left: 22px; margin-bottom: 10px; }
.legal ol li { padding-left: 4px; }
.legal strong { color: white; }
.encart { background: var(--bg-card); border: 1px solid var(--accent); border-radius: 12px; padding: 20px 24px; margin-bottom: 8px; }
.encart p { margin-bottom: 6px; }
.encart .note { font-size: 0.85rem; margin: 10px 0 0; }
.legal a, .consent a { color: var(--accent); }
.compte { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; color: var(--text-muted); font-size: 0.95rem; }
.explications { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.explications section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.explications h2 { color: white; font-size: 1.1rem; margin-bottom: 12px; }
.explications ol, .explications ul { padding-left: 20px; }
.explications li, .explications p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 8px; }
.explications strong { color: white; }
.explications.simple { grid-template-columns: 1fr; }
.explications.simple p { margin-top: 8px; }
.form-titre { color: white; font-size: 1.4rem; text-align: center; margin-bottom: 20px; }
@media (max-width: 640px) { .explications { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--text-muted); font-size: 0.85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner nav a { text-decoration: none; }
.footer-inner nav a:hover { color: white; }
@media (max-width: 640px) {
  main { padding: 36px 0 48px; }
  .container { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  .card { padding: 20px; }
  .grid { grid-template-columns: 1fr; }
}
