:root {
  --ink: #14213d;
  --ink-soft: #4a5672;
  --sea: #0a6e8a;
  --sea-dark: #075468;
  --sun: #f4b63f;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e6e1d8;
  --danger: #b3261e;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(244,182,63,.35), transparent 60%),
    linear-gradient(160deg, #0a6e8a 0%, #14213d 100%);
  overflow: hidden;
}
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,33,61,.25) 0%, rgba(20,33,61,.88) 75%);
}
.hero__content {
  position: relative;
  max-width: 880px;
  padding: 3rem 1.5rem 4rem;
  margin: 0 auto;
  width: 100%;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  font-weight: 600; opacity: .85; margin: 0 0 1rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.hl { color: var(--sun); }
.lead { font-size: 1.15rem; max-width: 46rem; opacity: .95; }
.hero__cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.counter { display: flex; flex-direction: column; line-height: 1.1; }
.counter strong { font-size: 2rem; font-family: var(--serif); color: var(--sun); }
.counter span { font-size: .85rem; opacity: .85; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 700; border-radius: 999px;
  padding: .95rem 1.8rem; transition: transform .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--sun); color: var(--ink); }
.btn--primary:hover { background: #ffc552; }
.btn--primary:disabled { opacity: .6; cursor: wait; }
.btn--ghost { background: transparent; color: var(--sea); border: 2px solid var(--sea); }
.btn--block { width: 100%; }

/* Sections */
.section { max-width: 980px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem;
}
.card__icon { font-size: 2rem; margin-bottom: .5rem; }
.card h3 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--ink-soft); }

.asks { padding-left: 0; list-style: none; counter-reset: ask; display: grid; gap: 1rem; }
.asks li {
  counter-increment: ask; position: relative; padding: 1.1rem 1.2rem 1.1rem 4rem;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
}
.asks li::before {
  content: counter(ask); position: absolute; left: 1.1rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--sea); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

/* Écoles */
.ecoles { padding-bottom: 0; }
.ecoles__box {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: #fff4dc; border: 1px solid #f1d9a3; border-radius: var(--radius); padding: 1.8rem;
}
.ecoles__icon { font-size: 2.6rem; line-height: 1; }
.ecoles p { margin: 0; }
@media (max-width: 760px) { .ecoles__box { flex-direction: column; gap: .5rem; } }

/* Sign */
.signer { max-width: none; background: var(--ink); color: #fff; }
.signer__grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: .8fr 1.45fr; gap: 4.5rem; align-items: start;
}
.signer .muted { color: rgba(255,255,255,.7); }
.progress__bar { height: 10px; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--sun); transition: width 1s ease; }
.progress p { margin: .5rem 0 0; font-size: .9rem; }

.form, .thanks {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 2.6rem 2.6rem 2.4rem; display: grid; gap: 1.6rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.form label > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
.form em { font-weight: 400; color: var(--ink-soft); }
.form input:not([type=checkbox]), .form select {
  width: 100%; font: inherit; padding: .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(10,110,138,.15); }
.form input:disabled { background: #f4f1ec; color: var(--ink-soft); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form__row--address { grid-template-columns: 6rem 1fr; }
.consent { display: flex; gap: .9rem; padding-top: .2rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.consent input { margin-top: .2rem; width: 1.2rem; height: 1.2rem; flex: none; accent-color: var(--sea); }
.consent span { font-weight: 400 !important; font-size: .85rem !important; }
.form__error { color: var(--danger); font-size: .9rem; margin: 0; }
.hp { position: absolute; left: -9999px; }

.profil { border: 0; padding: 0; margin: 0; }
.profil legend { font-size: .85rem; font-weight: 600; margin-bottom: .55rem; padding: 0; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span {
  display: flex !important; flex-direction: column; gap: .35rem; align-items: center; justify-content: center; text-align: center;
  height: 100%; min-height: 6rem; padding: 1rem .75rem; margin: 0 !important;
  border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer;
  font-size: .85rem !important; font-weight: 600; line-height: 1.25; color: var(--ink-soft);
}
.segmented i { font-style: normal; font-size: 1.5rem; line-height: 1; }
.segmented input:checked + span { border-color: var(--sea); background: rgba(10,110,138,.08); color: var(--sea-dark); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgba(10,110,138,.25); }

.autocomplete { position: relative; }
.autocomplete__list {
  position: absolute; z-index: 10; left: 0; right: 0; top: 100%; margin: .25rem 0 0; padding: .3rem;
  list-style: none; background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(20,33,61,.15);
}
.autocomplete__list li { padding: .6rem .7rem; border-radius: 7px; cursor: pointer; font-size: .95rem; }
.autocomplete__list li[aria-selected=true], .autocomplete__list li:hover { background: rgba(10,110,138,.08); }

.thanks { text-align: center; justify-items: center; }
.thanks__icon { font-size: 3rem; }

/* Map */
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* RGPD */
.rgpd dl { display: grid; grid-template-columns: 9rem 1fr; gap: .6rem 1.2rem; font-size: .92rem; }
.rgpd dt { font-weight: 700; }
.rgpd dd { margin: 0; color: var(--ink-soft); }

.footer { text-align: center; padding: 2rem; font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero { min-height: 92vh; }
  .signer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; gap: .5rem; }
  .segmented span { min-height: 3.2rem; flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .7rem 1rem; }
  .form, .thanks { padding: 1.6rem 1.3rem; gap: 1.3rem; }
  .form__row--address { grid-template-columns: 5rem 1fr; }
  .rgpd dl { grid-template-columns: 1fr; }
  .rgpd dt { margin-top: .6rem; }
  .map { aspect-ratio: 4/3; }
}
