:root {
  --ink: #1c2430;
  --ink-soft: #4b5563;
  --accent: #1d4ed8;
  --accent-dark: #1e40af;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --ok: #15803d;
  --err: #b91c1c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(160deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 56px 0 48px;
  text-align: center;
}
.site-header h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0 0 14px; line-height: 1.2; }
.site-header .lead { color: #cbd5e1; max-width: 620px; margin: 0 auto 26px; }
.site-header .lead strong { color: #fff; }
.badge {
  display: inline-block; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 12px; border-radius: 99px; margin: 0 0 18px;
}
.cta {
  display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 600;
  padding: 13px 28px; border-radius: 10px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ---------- sections ---------- */
main section { margin: 52px 0; }
h2 { font-size: 1.35rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: 12px 16px; font-size: .92rem; color: #713f12;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px;
}
.card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

.subhead { margin-top: 28px; }

.checklist { padding-left: 0; list-style: none; margin: 0; }
.checklist li { padding: 8px 0 8px 30px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 700; }

/* ---------- form ---------- */
form {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; margin-top: 18px;
}
.field { margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

label, legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
.req { font-weight: 600; color: var(--accent-dark); font-size: .84rem; }
.hint { font-size: .84rem; color: var(--ink-soft); margin: 6px 0 0; }

input[type="text"], textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px;
  font: inherit; color: var(--ink); background: #fff;
}
input[type="text"]:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
textarea { resize: vertical; }

fieldset { border: none; padding: 0; margin: 0 0 20px; }
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; padding: 6px 0; cursor: pointer;
}
.check input { margin-top: 4px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--accent); }

.dropzone {
  border: 2px dashed #cbd5e1; border-radius: 12px; padding: 26px 16px;
  text-align: center; cursor: pointer; background: #fdfdfe; position: relative;
  transition: border-color .12s ease, background .12s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #eff6ff; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone p { margin: 0 0 4px; }

.file-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 7px 12px; background: #f1f5f9; border-radius: 8px; margin-bottom: 6px;
}
.file-list button {
  background: none; border: none; color: var(--err); cursor: pointer; font-size: 1rem; padding: 2px 6px;
}
.file-list .too-big { color: var(--err); }

.consent label { margin: 0; font-size: .92rem; }

button[type="submit"] {
  width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 15px; font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer;
  transition: background .12s ease;
}
button[type="submit"]:hover { background: var(--accent-dark); }
button[type="submit"]:disabled { background: #93a6c9; cursor: wait; }

/* Champs obligatoires : encadré rouge tant qu'ils ne sont pas remplis */
.require-frame {
  border: 2px solid #fca5a5; border-radius: 10px; padding: 12px 14px;
  background: #fef2f2; transition: border-color .15s ease, background .15s ease;
}
.require-frame.filled { border-color: #86efac; background: #f0fdf4; }
.require-frame textarea { background: #fff; }
.require-frame.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }

.form-status { min-height: 1.4em; margin: 10px 0 0; font-size: .92rem; }
.form-status.error { color: var(--err); font-weight: 600; }
.form-status.sending { color: var(--ink-soft); }

.success {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: 14px;
  padding: 24px; margin-top: 18px;
}
.success h3 { color: var(--ok); }

/* honeypot : hors écran, invisible */
.hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- faq / footer ---------- */
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 18px; margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

.site-footer {
  border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 40px;
  font-size: .84rem; color: var(--ink-soft); text-align: center;
}
