:root {
  --ink: #1b2430;
  --ink-soft: #4a5565;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --line: #e8e1d8;
  --navy: #14213d;
  --ember: #e4572e;
  --ember-dark: #c2441f;
  --warm: #fdeee6;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--ember-dark); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--ember), #f4a259);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.logo span em { font-style: normal; color: var(--ember); }

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--ember); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 162, 89, .35), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, #23395d 100%);
  color: #fff;
  padding: 88px 0 96px;
}

.hero h1 { color: #fff; max-width: 760px; }

.hero p.lead {
  font-size: 1.2rem;
  max-width: 640px;
  color: #dfe6f0;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f4a259;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.btn:hover { background: var(--ember-dark); }

.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .5);
  margin-left: 10px;
}

.btn.ghost:hover { background: rgba(255, 255, 255, .1); }

.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .actions .btn.ghost { margin-left: 0; }

/* Sections */
section { padding: 72px 0; }

section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }

.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

section.alt .card { background: var(--bg); }

.card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.card p { color: var(--ink-soft); margin-bottom: 0; }

.split {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}

.callout {
  background: var(--warm);
  border-left: 4px solid var(--ember);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
}

.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }

ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
ul.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-weight: 700;
}

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

details p { margin: 12px 0 0; color: var(--ink-soft); }

/* Partners */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #23395d 100%);
  color: #dfe6f0;
  padding: 64px 0;
}

.page-hero h1 { color: #fff; }

.breadcrumb { font-size: .9rem; margin-bottom: 12px; }
.breadcrumb a { color: #f4a259; text-decoration: none; }

.partner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 28px;
}

.partner.featured { border-top: 4px solid var(--ember); }

.tag {
  display: inline-block;
  background: var(--warm);
  color: var(--ember-dark);
  font-size: .78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.nap {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px;
  font-style: normal;
}

.nap strong { display: block; font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.nap div { margin-bottom: 6px; }
.nap a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #b8c3d4;
  padding: 48px 0 28px;
  font-size: .92rem;
}

.site-footer .cols {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 32px;
}

.site-footer h3 { color: #fff; font-size: 1rem; font-family: inherit; }
.site-footer a { color: #dfe6f0; text-decoration: none; }
.site-footer a:hover { color: #f4a259; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid #2c3d5e; padding-top: 20px; }

@media (max-width: 820px) {
  .site-header { position: static; }
  .nav { gap: 6px 16px; padding-bottom: 12px; }
  .split, .partner, .site-footer .cols { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 68px; }
  section { padding: 52px 0; }
  .partner { padding: 22px; }
}

/* Formulaire de demande */
.lead-form { display: grid; gap: 14px; }
.lead-form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: transparent; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.lead-form .consent input { width: auto; margin-top: 5px; }
.lead-form button { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; }
.lead-form button:disabled { opacity: .6; cursor: wait; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.ok { color: #2e7d4f; font-weight: 600; }
.form-status.error { color: var(--ember-dark); font-weight: 600; }

@media (max-width: 820px) {
  .lead-form .row { grid-template-columns: 1fr; }
}

section[id] { scroll-margin-top: 72px; }

/* Formulaire dans le haut de page */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero ul.hero-checks { margin-top: 22px; }
.hero ul.hero-checks li { color: #dfe6f0; }
.hero ul.hero-checks li::before { color: #f4a259; }
.hero .hero-form { box-shadow: 0 24px 60px rgba(8, 15, 30, .35); border: 0; }
.form-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.hero-form button { width: 100%; justify-self: stretch; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-form { max-width: 560px; }
}

@media (max-width: 820px) {
  .hero { padding: 36px 0 44px; }
  .hero h1 { font-size: 1.85rem; margin-bottom: .4em; }
  .hero p.lead { font-size: 1.02rem; margin-bottom: 0; }
  .hero ul.hero-checks { margin: 14px 0 0; }
  .hero .actions { display: none; }
  .hero .hero-form { padding: 20px; }
  .hero-form .row { grid-template-columns: 1fr 1fr; }
  .lead-form .consent { font-size: .9rem; }
}

@media (max-width: 360px) {
  .hero-form .row { grid-template-columns: 1fr; }
}

/* Mobile : le formulaire passe juste sous le titre, le texte d'introduction en dessous */
@media (max-width: 820px) {
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero .hero-form { order: 3; margin: 6px 0 24px; max-width: none; }
  .hero p.lead { order: 4; }
  .hero ul.hero-checks { order: 5; }
  .form-title { font-size: 1.15rem; }
  .lead-form { gap: 12px; }
  .lead-form input, .lead-form select { padding: 10px 12px; }
}
