/* =========================================================================
   Décennale Paris — feuille de style unique.
   Sans framework, sans police distante (RGPD + performance).
   Sommaire : 1. tokens · 2. base · 3. layout · 4. composants · 5. formulaire
              6. en-tête / pied · 7. utilitaires · 8. impression
   ========================================================================= */

/* ------------------------------------------------------------ 1. tokens */
:root {
  --ink: #0b1f2a;
  --ink-soft: #40545f;
  /* 5.19:1 sur blanc, 4.86:1 sur surface-mute — AA y compris en petite taille. */
  --ink-mute: #5c7079;

  --brand-900: #0e2a3a;
  --brand-800: #123549;
  --brand-700: #14465f;
  --brand-500: #1c6e92;
  --brand-100: #e6f0f5;
  --brand-050: #f2f7fa;

  /* --accent : décor (bordures, fonds sombres). --accent-dark : texte et fonds
     porteurs de texte blanc — 5.18:1 sur blanc (AA). */
  --accent: #ee6a2c;
  --accent-dark: #c2410c;
  --accent-deep: #a53a0a;
  --accent-050: #fff3ec;

  --success: #0e7a52; /* 5.35:1 sur blanc */
  --success-050: #e9f6f0;
  --warn: #a35f0c;
  --warn-050: #fdf4e4;

  --surface: #ffffff;
  --surface-mute: #f5f8f9;
  --line: #e0e8ec;
  --line-strong: #c8d5dc;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 42, 0.06), 0 2px 8px rgba(11, 31, 42, 0.04);
  --shadow: 0 2px 6px rgba(11, 31, 42, 0.06), 0 12px 32px rgba(11, 31, 42, 0.08);
  --shadow-lg: 0 8px 20px rgba(11, 31, 42, 0.1), 0 28px 60px rgba(11, 31, 42, 0.14);

  --wrap: 1140px;
  --wrap-wide: 1320px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

/* -------------------------------------------------------------- 2. base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* `hidden` doit l'emporter sur les `display` des composants (boutons, étapes). */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 700;
  color: var(--brand-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.35rem);
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.35rem);
}
h3 {
  font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.32rem);
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--brand-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent-dark);
}

img,
svg {
  max-width: 100%;
}

strong {
  font-weight: 650;
  color: var(--brand-900);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: var(--brand-900);
  color: #fff;
}

/* ------------------------------------------------------------ 3. layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide {
  max-width: var(--wrap-wide);
}

.section {
  padding-block: var(--section-y);
}
.section--mute {
  background: var(--surface-mute);
}
.section--brand {
  background: linear-gradient(165deg, var(--brand-900), var(--brand-700));
  color: #dbe7ee;
}
.section--brand h2,
.section--brand h3 {
  color: #fff;
}
.section--tight {
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__lead {
  font-size: 1.1em;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.section--brand .section__lead {
  color: #b9cedb;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.section--brand .eyebrow,
.hero .eyebrow {
  color: #ffb083;
}

.grid-2 {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
}

/* --------------------------------------------------------- 4. composants */

/* icônes ---------------------------------------------------------------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--inline {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  stroke-width: 2;
}
.icon--tick {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success);
  stroke-width: 2.6;
  margin-top: 0.28em;
}
.icon--chev {
  transition: transform 0.2s ease;
  transform: rotate(90deg);
  width: 1.15rem;
  height: 1.15rem;
  color: var(--brand-500);
}

/* boutons --------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent-dark);
  --btn-fg: #fff;
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(11, 31, 42, 0.12);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(194, 65, 12, 0.28);
  color: var(--btn-fg);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  /* Fond porteur de texte blanc : la teinte AA, pas la teinte décorative. */
  --btn-bg: var(--accent-dark);
}
.btn--primary:hover {
  --btn-bg: var(--accent-deep);
}
.btn--dark {
  --btn-bg: var(--brand-900);
}
.btn--dark:hover {
  --btn-bg: var(--brand-700);
  box-shadow: 0 6px 18px rgba(14, 42, 58, 0.25);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-900);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  --btn-bg: var(--brand-050);
  border-color: var(--brand-500);
  box-shadow: none;
}
.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.94rem;
}
.btn--block {
  width: 100%;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.9rem 0 1.1rem;
  align-items: flex-start;
}
.cta-row--band {
  margin: 0;
}

/* numéro de téléphone : mention « gratuit » ----------------------------- */
.phone-note {
  display: block;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--success);
  white-space: nowrap;
}
.hero .phone-note,
.band .phone-note,
.site-footer .phone-note,
.section--brand .phone-note {
  color: #61d6a4;
}
.cta-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.site-footer__contact .phone-note,
.prose .phone-note,
.card .phone-note {
  display: inline;
  white-space: normal;
}

/* badges & pastilles ---------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 650;
  background: var(--brand-100);
  color: var(--brand-700);
}
.badge--accent {
  background: var(--accent-050);
  color: var(--accent-dark);
}
.badge--success {
  background: var(--success-050);
  color: var(--success);
}
.badge--warn {
  background: var(--warn-050);
  color: var(--warn);
}

/* listes à coches ------------------------------------------------------- */
.ticks {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.ticks li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.ticks--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  column-gap: 1.75rem;
}

/* hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5rem) clamp(3rem, 6vw, 5.5rem);
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(28, 110, 146, 0.35), transparent 60%),
    linear-gradient(160deg, var(--brand-900) 0%, var(--brand-800) 45%, #0a2231 100%);
  color: #cfdee7;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
}
.hero__body h1 {
  color: #fff;
}
.hero .lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
  color: #b7cddb;
  max-width: 34rem;
}
.hero .ticks li {
  color: #dceaf2;
}
.hero .icon--tick {
  color: #61d6a4;
}
.hero__note {
  margin: 0;
  font-size: 0.9rem;
  color: #93b0c2;
}
.hero__aside {
  align-self: center;
  display: flex;
}
.hero--compact {
  padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero--compact .hero__grid {
  grid-template-columns: 1fr;
}
.hero--compact .hero__body {
  max-width: 48rem;
}

/* carte flottante du hero ---------------------------------------------- */
.panel {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.panel h2,
.panel h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}
.panel__meta {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}
.panel ol {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.97rem;
}
.panel__foot {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}

/* cartes ---------------------------------------------------------------- */
.cards {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.cards--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}
.cards--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, box-shadow 0.2s ease, transform 0.18s ease;
}
.card h3 {
  margin-bottom: 0.45rem;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
a.card:hover {
  border-color: var(--brand-500);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  margin-bottom: 1rem;
}
.card__eyebrow {
  margin: 0 0 0.3rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.95rem;
  font-weight: 650;
  font-size: 0.94rem;
  color: var(--brand-700);
}
a.card:hover .card__more {
  color: var(--accent-dark);
}
.cards--mute .card {
  background: var(--surface-mute);
  border-color: transparent;
}
.section--mute .cards--plain .card {
  background: var(--surface);
}
.section--brand .card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
  color: #dbe7ee;
}
.section--brand .card p {
  color: #adc5d3;
}
.section--brand .card__icon {
  background: rgba(255, 255, 255, 0.1);
  color: #ffb083;
}

/* étapes ---------------------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step h3 {
  margin-bottom: 0.3rem;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.step__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.section--brand .step__num {
  background: var(--accent);
}
.section--brand .step p {
  color: #b9cedb;
}

/* statistiques ---------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin: 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.section:not(.section--brand) .stats,
.hero + .stats {
  border-top-color: var(--line);
}
.stat dd {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-900);
  line-height: 1.1;
}
.stat dt {
  order: 2;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.section--brand .stat dd {
  color: #fff;
}
.section--brand .stat dt {
  color: #9fbccd;
}

/* FAQ ------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq__item[open] {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  font-weight: 650;
  color: var(--brand-900);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  background: var(--brand-050);
}
.faq__item[open] .icon--chev {
  transform: rotate(-90deg);
}
.faq__answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
}
.faq__answer p {
  margin: 0;
}

/* encarts --------------------------------------------------------------- */
.callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--brand-050);
  border-left: 4px solid var(--brand-500);
  margin: 1.75rem 0;
}
.callout p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.callout__title {
  font-weight: 700;
  color: var(--brand-900) !important;
  margin-bottom: 0.2rem !important;
}
.callout__icon {
  color: var(--brand-500);
  display: flex;
}
.callout--warn {
  background: var(--warn-050);
  border-left-color: var(--warn);
}
.callout--warn .callout__icon {
  color: var(--warn);
}
.callout--success {
  background: var(--success-050);
  border-left-color: var(--success);
}
.callout--success .callout__icon {
  color: var(--success);
}

/* bandeau CTA ----------------------------------------------------------- */
.band {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #cfdee7;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem);
}
.band p {
  margin: 0;
  max-width: 36rem;
  color: #b7cddb;
}
/* Variante claire du bouton fantôme sur les fonds sombres (hero, bandeau). */
.band .btn--ghost,
.hero .btn--ghost,
.section--brand .btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.band .btn--ghost:hover,
.hero .btn--ghost:hover,
.section--brand .btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  border-color: #fff;
}

/* fil d'Ariane ---------------------------------------------------------- */
.breadcrumb {
  font-size: 0.87rem;
  color: var(--ink-mute);
  padding-block: 1rem 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.45rem;
  color: var(--line-strong);
}
.breadcrumb a {
  color: inherit;
}
.hero .breadcrumb,
.hero .breadcrumb a {
  color: #8fadc0;
}

/* contenu rédactionnel -------------------------------------------------- */
.prose {
  max-width: 44rem;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  margin-top: 2.6rem;
}
.prose h3 {
  margin-top: 1.9rem;
}
.prose ul,
.prose ol {
  margin: 0 0 1.3rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}
.prose li::marker {
  color: var(--brand-500);
}
.prose blockquote {
  margin: 1.75rem 0;
  padding: 0.2rem 0 0.2rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}
.prose--wide {
  max-width: 52rem;
}

/* tableaux -------------------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.96rem;
}
th,
td {
  text-align: left;
  padding: 0.8rem 1.05rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface-mute);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--brand-050);
}
td.num {
  font-family: var(--font-num);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* liste des métiers ----------------------------------------------------- */
.metier-groups {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
}
.metier-group h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.7rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.metier-group h3 .badge {
  font-weight: 600;
}
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-list a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--brand-800);
}
.pill-list a:hover {
  border-color: var(--brand-500);
  background: var(--brand-050);
}

/* --------------------------------------------------------- 5. formulaire */
.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.progress {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
  list-style: none;
  padding: 0;
}
.progress li {
  flex: 1;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 0.6rem;
  border-top: 4px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.progress li[aria-current='step'] {
  color: var(--accent-dark);
  border-top-color: var(--accent);
}
.progress li.is-done {
  color: var(--success);
  border-top-color: var(--success);
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.fieldset[hidden] {
  display: none;
}
.fieldset > legend {
  padding: 0;
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-900);
}
.fieldset__hint {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.field {
  margin-bottom: 1.15rem;
}
.field > label,
.field__label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--brand-900);
}
.field__help {
  font-size: 0.86rem;
  color: var(--ink-mute);
  margin: 0.35rem 0 0;
}
.field-row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f8a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.15rem;
  padding-right: 2.5rem;
}
textarea {
  min-height: 7rem;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(28, 110, 146, 0.15);
  outline: none;
}
input[aria-invalid='true'],
select[aria-invalid='true'] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.error-msg {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #c0392b;
}

.choice-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.choice {
  position: relative;
  touch-action: manipulation;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.96rem;
  background: var(--surface);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover {
  border-color: var(--brand-500);
  background: var(--brand-050);
}
.choice input {
  margin: 0.2rem 0 0;
  accent-color: var(--accent);
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
}
.choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-050);
}
.choice__title {
  font-weight: 600;
  display: block;
}
.choice__note {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-mute);
}

/* en-tête du tunnel : onglets + aide téléphonique */
.form-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}
.progress--tabs {
  flex: 1 1 18rem;
  margin-bottom: 0;
}
.form-help {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--brand-900);
  text-decoration: none;
  white-space: nowrap;
}
.form-help > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.form-help:hover {
  color: var(--accent-dark);
}

/* variantes de grilles de choix */
.choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 26rem;
}
.choice-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
}
.choice-grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
}

.choice--center {
  justify-content: center;
  text-align: center;
  position: relative;
}
/* Le rond du bouton radio est masqué : c'est la pastille entière qui fait
   office de contrôle. L'input reste dans le flux pour rester cliquable et
   focusable — l'anneau de focus est reporté sur le label (voir plus bas). */
.choice--center input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* Anneau de focus clavier reporté sur la pastille. */
.choice:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* cartes de choix de profession */
.choice--card {
  padding: 1.25rem 1rem;
  text-align: center;
}
.choice--card input {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  margin: 0;
}
.choice__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.choice__illu {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-700);
}
.choice__illu .icon {
  width: 1.8rem;
  height: 1.8rem;
}
.choice--card:has(input:checked) .choice__illu {
  background: var(--accent);
  color: #fff;
}

/* liste d'activités secondaires */
.secondaires {
  margin-top: 1.5rem;
}
.secondaires__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.secondaires__filtre {
  margin-bottom: 0.65rem;
}
.secondaires__liste {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  max-height: 21rem;
  overflow-y: auto;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-mute);
}
.choice--compact {
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  align-items: center;
}
.choice--compact input {
  margin-top: 0;
}
.choice input:disabled {
  opacity: 0.4;
}
.choice:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.choice:has(input:disabled):hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

/* bloc révélé conditionnellement */
.reveal {
  padding: 1.1rem 1.25rem 0.1rem;
  margin-bottom: 1.15rem;
  border-left: 3px solid var(--brand-500);
  background: var(--brand-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.form-actions__right {
  display: flex;
  gap: 0.7rem;
  margin-left: auto;
}

.form-status {
  margin-top: 1.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
}
.form-status--error {
  background: #fdeceb;
  color: #a5281b;
}
.form-status--ok {
  background: var(--success-050);
  color: var(--success);
}
.form-status[hidden] {
  display: none;
}

.form-aside {
  display: grid;
  gap: 1.15rem;
  position: sticky;
  top: 5.5rem;
}
.form-aside .card {
  background: var(--surface-mute);
  border-color: transparent;
}
.consent {
  font-size: 0.88rem;
  color: var(--ink-mute);
}
.consent label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.consent input {
  margin-top: 0.22rem;
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------- 6. en-tête & pied */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.15rem;
  background: var(--brand-900);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4.5rem;
}
.site-header__brand {
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
}
.logo__img {
  display: block;
  height: 2.55rem;
  width: auto;
}
.logo--footer .logo__img {
  height: 2.35rem;
  margin-bottom: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--brand-800);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap; /* aucun libellé ne doit se couper en deux lignes */
}
.site-nav__cta .btn {
  white-space: nowrap;
}
.site-nav ul a:hover {
  color: var(--accent-dark);
}
.site-nav ul a[aria-current='page'] {
  border-bottom-color: var(--accent);
  color: var(--brand-900);
}
.site-nav__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.site-nav__phone {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  font-weight: 700;
  color: var(--brand-900);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__phone-num {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.site-nav__phone .phone-note {
  font-size: 0.68rem;
}

.burger {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger__bars,
.burger__bars::before,
.burger__bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger__bars::before,
.burger__bars::after {
  content: '';
  position: absolute;
}
.burger__bars::before {
  transform: translateY(-6px);
}
.burger__bars::after {
  transform: translateY(6px);
}
.burger[aria-expanded='true'] .burger__bars {
  background: transparent;
}
.burger[aria-expanded='true'] .burger__bars::before {
  transform: rotate(45deg);
}
.burger[aria-expanded='true'] .burger__bars::after {
  transform: rotate(-45deg);
}

.site-footer {
  background: var(--brand-900);
  color: #a8c1cf;
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.site-footer h2 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb083;
  margin-bottom: 0.9rem;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.site-footer a {
  color: #cddde7;
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__brand p {
  max-width: 30rem;
}
.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}
.site-footer__hours {
  font-size: 0.88rem;
  color: #7fa0b3;
}
.site-footer__legal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #7fa0b3;
}
.site-footer__legal p {
  margin-bottom: 0.5rem;
}
.site-footer__legal a {
  color: #a8c1cf;
  text-decoration: underline;
}

/* ------------------------------------------------------- 7. utilitaires */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.push {
  margin-top: 2rem;
}
.push-sm {
  margin-top: 1.75rem;
}
.stack-block {
  margin-bottom: 3rem;
}
/* Marqueur « à compléter » des mentions légales : impossible à rater. */
.todo-mark {
  background: var(--warn-050);
  color: var(--warn);
  font-weight: 700;
  padding: 0 0.3em;
}
/* Récapitulatif du tunnel : mêmes stats, sans le filet du haut. */
.stats--recap {
  border-top: 0;
  padding-top: 0;
}
.stats--recap dd {
  font-size: 1rem;
  font-weight: 600;
}
.stack > * + * {
  margin-top: 1.15rem;
}
.muted {
  color: var(--ink-mute);
}
.small {
  font-size: 0.9rem;
}

/* Fallback sans JavaScript : la CSP interdit les <style> inline, ces règles
   vivent donc ici. <html class="no-js"> est retiré par main.js dès son
   exécution ; sans JS, le tunnel affiche toutes ses étapes et le message
   noscript invite à appeler. */
.no-js [data-step][hidden],
.no-js [data-activites][hidden],
.no-js [data-reveal][hidden] {
  display: block !important;
}
.no-js [data-submit] {
  display: inline-flex !important;
}
.no-js [data-next],
.no-js [data-prev] {
  display: none !important;
}

/* ------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__aside {
    max-width: 32rem;
  }
  .form-shell {
    grid-template-columns: 1fr;
  }
  .form-aside {
    position: static;
  }
  .site-footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
}

@media (max-width: 860px) {
  .burger {
    display: grid;
    position: relative;
    order: 2;
  }
  .site-nav {
    position: fixed;
    inset: 4.5rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    max-height: calc(100dvh - 4.5rem);
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav li + li {
    border-top: 1px solid var(--line);
  }
  .site-nav ul a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 0;
    font-size: 1.02rem;
  }
  .site-nav ul a[aria-current='page'] {
    color: var(--accent-dark);
  }
  .site-nav__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.15rem;
  }
  .site-nav__phone {
    justify-content: center;
    padding: 0.7rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
  }
  .band__inner {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .cta-row .btn,
  .cta-row .cta-phone {
    width: 100%;
  }
  .logo__img {
    height: 2.15rem;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .form-actions__right {
    margin-left: 0;
    flex-direction: column-reverse;
  }
  .form-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------- 8. impression */
@media print {
  .site-header,
  .site-footer,
  .band,
  .cta-row,
  .breadcrumb {
    display: none !important;
  }
  body {
    color: #000;
    font-size: 11pt;
  }
  .hero {
    background: none;
    color: #000;
    padding-block: 0;
  }
  .hero h1,
  .hero .lead {
    color: #000;
  }
  a[href^='http']::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }
}
