/* ──────────────────────────────────────────────────────────────
   Les Bons Lorrains — site public
   Concept : « La confiance se transmet » — une conversation,
   un fil qui relie les personnes, une mirabelle pour signature.
   ────────────────────────────────────────────────────────────── */

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivoire);
  color: var(--encre-2);
  font-family: var(--font-texte);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--vert); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--encre); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--encre); font-weight: 560; line-height: 1.15; }
strong { color: var(--encre); font-weight: 650; }
button { font: inherit; }
main { display: block; }
main:focus { outline: none; }
::selection { background: var(--mirabelle-pale); color: var(--encre); }

:focus-visible { outline: 3px solid var(--mirabelle); outline-offset: 3px; border-radius: 4px; }
.section--dark :focus-visible, .site-footer :focus-visible, .porte--pro :focus-visible { outline-color: var(--mirabelle-2); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--encre); color: var(--ivoire); padding: 12px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }

/* ── Typographie ──────────────────────────────────────────────── */
.h2, .page-title, .hero__title, .final__titre, .porte__titre, .h3, .step-title, .besoin__titre, .engagement__titre,
.lettre__lead, .form-success__titre {
  font-family: var(--font-titre);
  font-optical-sizing: auto;
  font-variation-settings: 'SOFT' 60, 'WONK' 0;
  letter-spacing: -0.022em;
  color: var(--encre);
  text-wrap: balance;
}
.h2 { font-size: var(--step-4); line-height: 1.02; font-weight: 520; }
.h2 + p, .page-title + p { margin-top: 1.2rem; }
.h3 { font-size: var(--step-2); line-height: 1.12; font-weight: 560; margin-bottom: 0.6em; }
.h2 em, .page-title em, .hero__title em, .final__titre em, .porte__titre em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1;
  font-weight: 440;
  color: var(--vert-2);
}
.section--dark .h2 em, .porte--pro .porte__titre em { color: var(--mirabelle-2); }

.eyebrow {
  display: flex; align-items: center; gap: 0.55em;
  margin: 0 0 1.1rem;
  font-size: var(--step--1); font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--vert-2);
}
.eyebrow--light { color: var(--mirabelle-2); }

.page-title { font-size: var(--step-4); line-height: 1.02; font-weight: 520; }
.page-title--small { font-size: var(--step-3); }
.page-lead { font-size: var(--step-1); line-height: 1.5; color: var(--encre-2); max-width: 38ch; }

.prose h2 { font-family: var(--font-titre); font-size: var(--step-2); margin: 2em 0 0.5em; letter-spacing: -0.015em; }
.prose p { max-width: 68ch; }

/* ── Marque (mirabelle) ───────────────────────────────────────── */
.mark { width: 36px; height: 36px; flex: none; }
.mark--tiny { width: 18px; height: 18px; }
.mark--large { width: 64px; height: 64px; }
.mark__fruit { fill: var(--mirabelle); }
.mark__blush { fill: #D9932A; opacity: 0.7; }
.mark__shine { fill: #FFF6DC; }
.mark__leaf { fill: var(--menthe); }
.mark__stem { stroke: var(--encre); }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo__img { display: block; height: 46px; width: auto; }
.logo--footer .logo__img { height: auto; width: 250px; max-width: 100%; }
@media (max-width: 1079px) { .logo__img { height: 40px; } }

/* ── Icônes & boutons ─────────────────────────────────────────── */
.icon { width: 1.15em; height: 1.15em; flex: none; }

.btn {
  --btn-bg: var(--vert); --btn-fg: var(--ivoire); --btn-bd: var(--vert);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 52px; padding: 0.8em 1.45em;
  border: 1.5px solid var(--btn-bd); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-texte); font-size: 1.04rem; font-weight: 650; letter-spacing: 0.005em; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { --btn-bg: var(--encre); --btn-bd: var(--encre); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn__icon { transition: transform .25s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:hover .btn__icon--left { transform: translateX(-3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--encre); --btn-bd: var(--ligne-forte); }
.btn--ghost:hover { --btn-bg: var(--encre); --btn-fg: var(--ivoire); --btn-bd: var(--encre); }
.btn--mirabelle { --btn-bg: var(--mirabelle); --btn-fg: var(--encre); --btn-bd: var(--mirabelle); }
.btn--mirabelle:hover { --btn-bg: var(--mirabelle-2); --btn-fg: var(--encre); --btn-bd: var(--mirabelle-2); }
.btn--small { min-height: 44px; padding: 0.55em 1.15em; font-size: 0.98rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .65; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 650; color: var(--vert); text-decoration: none;
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--encre); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: var(--mirabelle-2); }
.link-arrow--light:hover { color: var(--ivoire); }

.chip {
  display: inline-block; padding: 0.18em 0.7em; border-radius: 999px;
  background: var(--blanc); border: 1px solid var(--ligne); font-size: 0.9rem; color: var(--encre-2);
}
.demo-tag {
  display: inline-flex; align-items: center; padding: 0.15em 0.6em; border-radius: 4px;
  background: repeating-linear-gradient(-45deg, var(--mirabelle-pale), var(--mirabelle-pale) 6px, #F3DCA0 6px, #F3DCA0 12px);
  color: var(--mirabelle-texte); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-texte);
}
.a-completer { background: var(--mirabelle-pale); color: var(--mirabelle-texte); padding: 0 .3em; border-radius: 3px; font-weight: 600; }
.a-completer-bloc { padding: 1rem 1.2rem; border: 1px dashed var(--mirabelle-texte); border-radius: var(--radius); background: var(--blanc); font-size: .95rem; }

.reperes { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.98rem; font-weight: 600; color: var(--encre); }
.reperes li { display: inline-flex; align-items: center; gap: 0.45em; }
.reperes .icon { color: var(--vert-3); width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.reperes--stack { flex-direction: column; gap: .5rem; margin: 1.6rem 0; }

.liste-check { list-style: none; display: grid; gap: 0.75rem; }
.liste-check li { display: flex; gap: 0.7em; align-items: flex-start; }
.liste-check .icon { margin-top: 0.22em; color: var(--vert-3); stroke-width: 2.3; }
.section--dark .liste-check .icon { color: var(--mirabelle); }
.liste-check--large { gap: 1.1rem; }

/* ── Bandeau démonstration ───────────────────────────────────── */
.demo-banner { background: var(--encre); color: #E9E3D6; font-size: .86rem; }
.demo-banner .container { display: flex; align-items: center; gap: .6rem; padding-block: .5rem; }
.demo-banner p { margin: 0; }
.demo-banner strong { color: var(--mirabelle-2); }

/* ── En-tête ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(246 241 231 / 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--ligne); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: 0.4rem; }
.nav__link {
  position: relative; display: block; padding: 0.55rem 0.8rem;
  color: var(--encre-2); font-weight: 560; text-decoration: none; font-size: 1rem;
}
.nav__link::after {
  content: ''; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.3rem; height: 2px;
  background: var(--mirabelle); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--encre); }
.nav__link:hover::after, .nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--encre); }

.menu-toggle {
  display: none; align-items: center; gap: .45rem; margin-left: auto;
  min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--ligne-forte); border-radius: 999px;
  background: transparent; color: var(--encre); font-weight: 650; cursor: pointer;
}
.menu-toggle:hover { border-color: var(--encre); }

@media (max-width: 1079px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  :root { --header-h: 66px; }
}

.menu-mobile {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--ivoire); padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile__top { display: flex; align-items: center; min-height: var(--header-h); }
.menu-mobile__list { list-style: none; margin-top: 2rem; border-top: 1px solid var(--ligne); }
.menu-mobile__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 0;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--font-titre); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--encre); text-decoration: none;
}
.menu-mobile__list a[aria-current='page'] { color: var(--vert-2); font-style: italic; }
.menu-mobile__num { font-family: var(--font-texte); font-size: .85rem; font-weight: 650; color: var(--encre-3); letter-spacing: .08em; }
.menu-mobile__bottom { margin-top: auto; padding-top: 2rem; }
.menu-mobile__sig { margin: 1rem 0 0; text-align: center; font-family: var(--font-titre); font-style: italic; color: var(--encre-3); }
@media (prefers-reduced-motion: no-preference) {
  .menu-mobile.is-open { animation: menu-in .35s var(--ease) both; }
  .menu-mobile.is-open .menu-mobile__list li { animation: rise .5s var(--ease) both; }
  .menu-mobile.is-open .menu-mobile__list li:nth-child(2) { animation-delay: .04s; }
  .menu-mobile.is-open .menu-mobile__list li:nth-child(3) { animation-delay: .08s; }
  .menu-mobile.is-open .menu-mobile__list li:nth-child(4) { animation-delay: .12s; }
}
body.menu-ouvert { overflow: hidden; }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--paper { background: var(--papier); }
.section--dark { background: var(--vert); color: rgb(246 241 231 / 0.86); }
.section--dark .h2, .section--dark .h3, .section--dark strong, .section--dark h3 { color: var(--ivoire); }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head--split { display: grid; gap: 1.5rem 4rem; align-items: end; }
.section-head__aside { margin: 0; max-width: 42ch; font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 7fr 4fr; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 4vw, 4.5rem); overflow: clip; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero__title {
  position: relative; isolation: isolate;
  font-size: var(--step-5); line-height: 0.98; font-weight: 500; letter-spacing: -0.032em;
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);
}
.hero__title em { display: inline; position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ''; position: absolute; left: 0.04em; right: 0.08em; bottom: 0.04em; height: 0.13em;
  background: var(--mirabelle); border-radius: 99px; z-index: -1; opacity: .85;
}
.hero__lead { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--encre-2); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }
.hero__visual { position: relative; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--papier);
}
.hero__sig {
  position: absolute; right: -2rem; top: 22%;
  writing-mode: vertical-rl; transform: rotate(180deg);
  margin: 0; font-family: var(--font-titre); font-style: italic; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--encre-3);
}

.bubbles { position: absolute; left: -1rem; bottom: 6%; width: min(82%, 340px); display: grid; gap: 0; }
.bubble {
  margin: 0; padding: 0.9rem 1.1rem; max-width: 260px;
  font-size: 1rem; line-height: 1.35; font-weight: 560;
  border-radius: 18px; box-shadow: var(--shadow);
}
.bubble--q { background: var(--blanc); color: var(--encre); border-bottom-left-radius: 4px; justify-self: start; }
.bubble--a {
  display: flex; align-items: center; gap: .55rem;
  background: var(--vert); color: var(--ivoire); border-bottom-right-radius: 4px; justify-self: end;
  font-family: var(--font-titre); font-size: 1.08rem; font-weight: 520; letter-spacing: -0.01em;
}
.bubbles__fil { width: 120px; height: 46px; margin-left: 2.4rem; overflow: visible; }
.bubbles__fil path { fill: none; stroke: var(--gres); stroke-width: 1.6; stroke-dasharray: 0.035 0.03; stroke-linecap: round; }

.hero__zone {
  list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 0;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne);
}
.hero__zone li {
  flex: 1 1 50%; display: flex; align-items: baseline; gap: .6rem;
  padding: 1rem 1rem 1rem 0; font-weight: 600; color: var(--encre); font-size: 1rem;
}
.hero__zone-code { font-family: var(--font-titre); font-style: italic; font-size: 1.5rem; font-weight: 450; color: var(--mirabelle-texte); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); }
  .hero__text { padding-bottom: 2rem; }
  .bubbles { left: -16%; bottom: 8%; }
  .hero__zone li { flex: 1 1 0; padding-left: 1.2rem; border-left: 1px solid var(--ligne); }
  .hero__zone li:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 959px) {
  .hero__visual { max-width: 520px; width: 100%; justify-self: center; padding-left: 1.5rem; }
  .hero__photo img { aspect-ratio: 5 / 5.4; }
  .hero__visual { margin-bottom: 2.5rem; }
  .bubbles { left: 0; bottom: -2.2rem; width: 80%; }
  .bubble { font-size: .95rem; }
  .hero__sig { right: auto; left: -0.2rem; font-size: .95rem; }
}

/* Entrée du hero : uniquement en CSS, sans dépendre du chargement du script */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise .8s var(--ease) both; }
  .hero .reveal:nth-child(2) { animation-delay: .08s; }
  .hero .reveal:nth-child(3) { animation-delay: .16s; }
  .hero .reveal:nth-child(4) { animation-delay: .24s; }
  .hero .reveal:nth-child(5) { animation-delay: .3s; }
  .hero__photo { animation: fade 1s var(--ease) both .1s; }
  .bubble--q { animation: pop .6s var(--ease) both .7s; }
  .bubbles__fil path { stroke-dasharray: 1; animation: draw .7s ease-out both 1.15s; }
  .bubble--a { animation: pop .6s var(--ease) both 1.7s; }
}

/* Apparition au défilement (ajoutée par le script, uniquement hors écran au chargement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-pending { opacity: 0; transform: translateY(18px); }
  .reveal-pending.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
}

/* ── Origine ──────────────────────────────────────────────────── */
.origine__grid { display: grid; gap: 2.5rem; }
.origine__head .h2 { max-width: 14ch; }
.vecu {
  list-style: none; align-self: start;
  background: var(--blanc); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: .4rem 1.4rem;
  transform: rotate(-1.2deg);
}
.vecu__item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px dashed var(--ligne-forte); }
.vecu__item:last-child { border-bottom: 0; }
.vecu__item p { margin: 0; line-height: 1.45; }
.vecu__item strong { display: block; font-family: var(--font-titre); font-size: 1.18rem; font-weight: 540; letter-spacing: -0.01em; }
.vecu__icon {
  width: 42px; height: 42px; padding: 10px; border-radius: 50%;
  background: var(--gres-pale); color: var(--gres); stroke-width: 1.7;
}
.lettre { max-width: 58ch; }
.lettre__lead { font-size: var(--step-2); line-height: 1.25; font-weight: 450; font-style: italic; font-variation-settings: 'SOFT' 100, 'WONK' 1; margin-bottom: 1.2em; }
.lettre__sign { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--ligne); font-family: var(--font-titre); font-style: italic; color: var(--encre-3); }
.lettre__prenom { font-style: normal; font-weight: 600; color: var(--encre); font-size: 1.2rem; }
.lettre__sign .demo-tag { margin-left: .5rem; vertical-align: .15em; }
.origine__photo { margin: 0; }
.origine__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--papier); }

@media (min-width: 960px) {
  .origine__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3.5rem; }
  .origine__head { grid-column: 1 / 9; }
  .origine__photo { grid-column: 10 / 13; grid-row: 1; align-self: end; }
  .origine__photo img { aspect-ratio: 1; }
  .vecu { grid-column: 1 / 6; grid-row: 2; }
  .lettre { grid-column: 7 / 13; grid-row: 2; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .origine__grid { grid-template-columns: 1fr 1fr; }
  .origine__head, .lettre { grid-column: 1 / -1; }
}

/* ── Comment ça marche ───────────────────────────────────────── */
.etapes__list { list-style: none; display: grid; gap: 2.2rem; position: relative; }
.etape { position: relative; padding-left: 4.4rem; }
.etape__num {
  position: absolute; left: 0; top: -.2rem;
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--ivoire); border: 1.5px solid var(--vert);
  font-family: var(--font-titre); font-size: 1.45rem; font-weight: 500; color: var(--vert);
  z-index: 1;
}
.etape:nth-child(2) .etape__num, .etape:nth-child(4) .etape__num { background: var(--vert); color: var(--ivoire); }
.etape__qui { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gres); }
.etape:nth-child(2) .etape__qui, .etape:nth-child(4) .etape__qui { color: var(--vert-2); }
.etape:nth-child(3) .etape__qui { color: var(--mirabelle-texte); }
.etape__titre { font-family: var(--font-titre); font-size: var(--step-1); line-height: 1.2; font-weight: 560; letter-spacing: -0.015em; margin-bottom: .5rem; }
.etape__texte { margin: 0; font-size: 1.02rem; }
/* Le fil qui relie les étapes */
.etapes__list::before {
  content: ''; position: absolute; left: 1.55rem; top: 1rem; bottom: 1rem; width: 0;
  border-left: 1.5px dashed var(--gres);
}
@media (min-width: 960px) {
  .etapes__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
  .etape { padding-left: 0; padding-top: 4.6rem; }
  .etape__num { top: 0; }
  .etapes__list::before { left: 1.55rem; right: calc((100% - 3 * 2.4rem) / 4 - 1.55rem); top: 1.55rem; bottom: auto; height: 0; width: auto; border-left: 0; border-top: 1.5px dashed var(--gres); }
}
.etapes__bas { display: grid; gap: 2rem; margin-top: clamp(3rem, 2rem + 4vw, 5.5rem); align-items: center; }
.etapes__photo { margin: 0; }
.etapes__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.etapes__relance { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-left: 4px solid var(--mirabelle); background: var(--ivoire); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.etapes__relance p { max-width: 44ch; }
@media (min-width: 960px) {
  .etapes__bas { grid-template-columns: 7fr 5fr; gap: var(--gutter); }
}

/* ── Besoins ─────────────────────────────────────────────────── */
.besoins__grid { display: grid; gap: 2rem; }
.besoins__head p:last-child { max-width: 46ch; }
.besoins__list { list-style: none; border-top: 1px solid var(--ligne-forte); }
.besoin { border-bottom: 1px solid var(--ligne-forte); }
.besoin__link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.4rem; align-items: start;
  padding: 1.5rem 0; color: inherit; text-decoration: none;
}
.besoin__num { font-family: var(--font-titre); font-style: italic; font-size: 1rem; color: var(--encre-3); padding-top: .55rem; min-width: 1.6rem; }
.besoin__body { display: grid; gap: .45rem; }
.besoin__titre { font-size: var(--step-2); line-height: 1.1; font-weight: 520; transition: color .2s; }
.besoin__desc { color: var(--encre-2); max-width: 52ch; }
.besoin__metiers { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
.besoin__go {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--ligne-forte); color: var(--encre); margin-top: .2rem;
  transition: background-color .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.besoin__link:hover .besoin__titre, .besoin__link:focus-visible .besoin__titre, .besoin.is-active .besoin__titre { color: var(--vert-2); }
.besoin__link:hover .besoin__go, .besoin__link:focus-visible .besoin__go, .besoin.is-active .besoin__go { background: var(--mirabelle); border-color: var(--mirabelle); transform: rotate(-35deg); }
.besoin__link:focus-visible { outline-offset: -3px; }
.besoins__visual { display: none; }
@media (min-width: 960px) {
  .besoins__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
  .besoins__head { grid-column: 1 / 8; }
  .besoins__list { grid-column: 1 / 8; }
  .besoins__visual {
    display: block; grid-column: 8 / 13; grid-row: 1 / 3; align-self: start;
    position: sticky; top: calc(var(--header-h) + 2rem);
    aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--papier);
  }
  .besoins__img { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease); }
  .besoins__img.is-active { opacity: 1; }
  .besoins__img img { width: 100%; height: 100%; object-fit: cover; }
}

/* ── Engagements ─────────────────────────────────────────────── */
.engagements__grid { display: grid; gap: 2.5rem; }
.engagement { padding-top: 1.4rem; border-top: 1px solid rgb(246 241 231 / 0.22); }
.engagement__num { display: block; font-family: var(--font-titre); font-style: italic; font-size: 1.1rem; color: var(--mirabelle); margin-bottom: .6rem; }
.engagement__titre { font-size: var(--step-2); line-height: 1.12; font-weight: 500; margin-bottom: 1rem; color: var(--ivoire); }
.engagement p { margin: 0; max-width: 46ch; }
.engagements__photo { margin: 0; }
.engagements__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); opacity: .92; }
.engagements__honnete {
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) 0 1.6rem; padding: 1.4rem 1.6rem; max-width: 70ch;
  border: 1px solid rgb(246 241 231 / 0.25); border-radius: var(--radius-lg);
}
@media (min-width: 720px) { .engagements__grid { grid-template-columns: 1fr 1fr; gap: 3rem var(--gutter); } }
@media (min-width: 1080px) {
  .engagements__grid { grid-template-columns: 1fr 1fr minmax(0, .85fr); }
  .engagements__photo { grid-column: 3; grid-row: 1 / 3; }
}

/* ── Preuves (masquées tant que vides) ───────────────────────── */
.preuves__chiffres { list-style: none; display: flex; flex-wrap: wrap; gap: 2rem 4rem; margin: 2rem 0 3rem; }
.preuves__valeur { display: block; font-family: var(--font-titre); font-size: var(--step-4); color: var(--vert); line-height: 1; }
.preuves__temoignages { display: grid; gap: 1.5rem; }
.temoignage { margin: 0; padding: 1.6rem; background: var(--blanc); border-radius: var(--radius-lg); }
.temoignage blockquote { margin: 0 0 1rem; font-family: var(--font-titre); font-size: var(--step-1); line-height: 1.35; color: var(--encre); }
.preuves__note { font-size: .9rem; color: var(--encre-3); margin-top: 1rem; }
@media (min-width: 900px) { .preuves__temoignages { grid-template-columns: repeat(3, 1fr); } }

/* ── Territoire & carte ──────────────────────────────────────── */
.territoire__grid { display: grid; gap: 2.5rem; align-items: center; }
.deps { list-style: none; margin: 2rem 0; border-top: 1px solid var(--ligne-forte); }
.dep {
  display: flex; gap: 1.2rem; align-items: baseline; padding: 1rem .6rem 1rem 0;
  border-bottom: 1px solid var(--ligne-forte); cursor: default; border-radius: 4px;
  transition: background-color .2s, padding .25s var(--ease);
}
.dep.is-active { background: var(--ivoire); padding-left: .8rem; }
.dep__code { font-family: var(--font-titre); font-style: italic; font-size: 1.9rem; line-height: 1; color: var(--mirabelle-texte); min-width: 2.4rem; }
.dep__body { display: grid; gap: .1rem; }
.dep__nom { font-weight: 650; color: var(--encre); font-size: 1.1rem; }
.dep__villes { color: var(--encre-3); font-size: .96rem; }
.territoire__note { display: flex; gap: .7rem; font-size: .98rem; max-width: 52ch; }
.territoire__note .icon { color: var(--gres); margin-top: .2em; }
.carte { margin: 0; }
.carte__svg { width: 100%; height: auto; max-height: 680px; }
.carte__voisins path { fill: none; stroke: var(--ligne-forte); stroke-width: 1; stroke-dasharray: 3 4; }
.carte__dep { fill: var(--vert-pale); stroke: var(--blanc); stroke-width: 3; stroke-linejoin: round; transition: fill .3s var(--ease); }
.carte__dep.is-active { fill: var(--mirabelle-2); }
.carte__fil { fill: none; stroke: var(--gres); stroke-width: 1.6; stroke-dasharray: .006 .008; stroke-linecap: round; opacity: .8; }
.carte__code { font-family: var(--font-titre); font-style: italic; font-size: 40px; fill: var(--vert); font-weight: 450; pointer-events: none; }
.carte__ville { fill: var(--vert); stroke: var(--papier); stroke-width: 2.5; }
.carte__ville-nom { font-family: var(--font-texte); font-size: 14px; font-weight: 600; fill: var(--encre); paint-order: stroke; stroke: var(--papier); stroke-width: 4px; stroke-linejoin: round; }
@media (min-width: 960px) {
  .territoire__grid { grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 5rem); }
}

/* ── Deux portes ─────────────────────────────────────────────── */
.portes__grid { display: grid; gap: 1.2rem; }
.porte { border-radius: var(--radius-lg); padding: clamp(1.8rem, 1rem + 3vw, 3.4rem); }
.porte p { max-width: 44ch; }
.porte__titre { font-size: var(--step-3); line-height: 1.05; font-weight: 520; margin-bottom: 1rem; }
.porte--client { background: var(--blanc); box-shadow: inset 0 6px 0 var(--mirabelle); }
.porte--pro { background: var(--encre); color: rgb(246 241 231 / 0.82); }
.porte--pro .porte__titre { color: var(--ivoire); }
@media (min-width: 960px) { .portes__grid { grid-template-columns: 7fr 5fr; } }

/* ── Appel final ─────────────────────────────────────────────── */
.final { background: var(--mirabelle); padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); position: relative; overflow: hidden; }
.final::before {
  content: ''; position: absolute; right: -8vw; top: -20%; width: 46vw; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgb(255 246 220 / .55), transparent 60%);
  pointer-events: none;
}
.final__inner { position: relative; display: grid; gap: 1.8rem; }
.final__titre { font-size: var(--step-4); line-height: 1.02; font-weight: 520; max-width: 18ch; }
.final__titre em { color: var(--vert); }
.final .mark__fruit { fill: var(--blanc); }
.final .mark__blush { fill: #F1D18B; }
.final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.final__reperes { margin: 0; font-weight: 650; color: var(--encre); }
.final__sig { margin: 0; font-family: var(--font-titre); font-style: italic; color: var(--encre); opacity: .8; }
.final--compact { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }

/* ── Pied de page ────────────────────────────────────────────── */
.site-footer { background: var(--encre); color: rgb(246 241 231 / 0.74); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); font-size: 1rem; }
.site-footer a { color: var(--ivoire); text-decoration: none; }
.site-footer a:hover { color: var(--mirabelle-2); text-decoration: underline; }
.site-footer .logo { color: var(--ivoire); }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__sig { margin: 1rem 0 .3rem; font-family: var(--font-titre); font-style: italic; font-size: 1.3rem; color: var(--ivoire); }
.site-footer__zone { font-size: .92rem; }
.site-footer__title { font-family: var(--font-texte); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mirabelle-2); margin-bottom: 1rem; font-weight: 700; }
.site-footer__nav ul, .site-footer__contacts { list-style: none; display: grid; gap: .55rem; }
.site-footer__contacts { margin-bottom: 1rem; }
.site-footer__contacts a { display: inline-flex; gap: .5rem; align-items: center; }
.site-footer .link-arrow { color: var(--mirabelle-2); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .6rem 2rem; padding-block: 1.4rem; border-top: 1px solid rgb(246 241 231 / 0.14); font-size: .88rem; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { list-style: none; display: flex; gap: 1.4rem; }
.site-footer__credit { margin-left: auto !important; opacity: .7; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 5fr 3fr 4fr; } }

/* ── CTA mobile collant ──────────────────────────────────────── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: .7rem var(--gutter) max(.7rem, env(safe-area-inset-bottom));
  background: rgb(246 241 231 / .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--ligne);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta[hidden] { display: none; }
body.has-sticky-cta { padding-bottom: 84px; }
@media (min-width: 1080px) { .sticky-cta { display: none !important; } body.has-sticky-cta { padding-bottom: 0; } }

/* ── Pages intérieures ───────────────────────────────────────── */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(2rem, 1rem + 3vw, 4rem); }
.page-hero--simple { padding-bottom: 1rem; }
.page-hero__grid { display: grid; gap: 2rem; align-items: end; }
.page-hero__photo { margin: 0; }
.page-hero__photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.page-hero__text .page-title { margin-bottom: 1.4rem; max-width: 16ch; }
.page-hero__text .page-lead { margin-bottom: 2rem; }
.page-hero__aside { margin: 0; }
@media (min-width: 960px) {
  .page-hero__grid { grid-template-columns: 7fr 5fr; gap: var(--gutter); }
  .page-hero--photo .page-hero__grid { align-items: center; }
}

.duo { display: grid; gap: 2rem; }
.duo .h2 { font-size: var(--step-3); line-height: 1.05; }
.duo__col { padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); border-radius: var(--radius-lg); background: var(--blanc); }
.duo__col--paper { background: var(--papier); }
.duo__titre { margin-bottom: 1.4rem; }
@media (min-width: 900px) {
  .duo { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .duo--wide { grid-template-columns: 5fr 7fr; }
}

.charte { list-style: none; counter-reset: charte; display: grid; gap: 0; border-top: 1px solid var(--ligne-forte); }
.charte li { counter-increment: charte; display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--ligne-forte); font-size: 1.06rem; color: var(--encre); }
.charte li::before { content: counter(charte, decimal-leading-zero); font-family: var(--font-titre); font-style: italic; color: var(--mirabelle-texte); font-size: 1.1rem; }
.charte--compact li { padding: .75rem 0; font-size: 1rem; }

.parcours { list-style: none; display: grid; gap: 1.6rem; margin-top: 2rem; }
.parcours li { position: relative; padding: 1.6rem; background: var(--ivoire); border-radius: var(--radius-lg); }
.parcours h3 { font-family: var(--font-titre); font-size: var(--step-1); font-weight: 560; margin: .8rem 0 .4rem; }
.parcours p { margin: 0; font-size: 1rem; }
.parcours__num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--vert); color: var(--ivoire); font-family: var(--font-titre); font-size: 1.15rem; }
@media (min-width: 900px) { .parcours { grid-template-columns: repeat(4, 1fr); } }

.circuit { list-style: none; display: grid; gap: 1rem; margin-top: 2rem; position: relative; }
.circuit__noeud { position: relative; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--blanc); border: 1px solid var(--ligne); }
.circuit__noeud--centre { background: var(--vert); color: rgb(246 241 231 / .86); border-color: var(--vert); }
.circuit__noeud--centre h3 { color: var(--ivoire); }
.circuit__noeud h3 { font-family: var(--font-titre); font-size: var(--step-2); font-weight: 520; margin: 1rem 0 .4rem; }
.circuit__noeud p { margin: 0; }
.circuit__icone { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--papier); color: var(--vert); }
.circuit__icone .icon { width: 1.5rem; height: 1.5rem; }
.circuit__noeud--centre .circuit__icone { background: var(--ivoire); }
.circuit__retour { display: flex; align-items: center; gap: .6rem; margin-top: 1.2rem; font-family: var(--font-titre); font-style: italic; color: var(--gres); font-size: 1.1rem; }
@media (min-width: 900px) {
  .circuit { grid-template-columns: 1fr 1.25fr 1fr; gap: 2.4rem; }
  .circuit__noeud:not(:last-child)::after {
    content: ''; position: absolute; top: 3.4rem; right: -2.4rem; width: 2.4rem; border-top: 1.5px dashed var(--gres);
  }
}

.criteres { list-style: none; display: grid; gap: 1px; background: var(--ligne-forte); border-radius: var(--radius-lg); overflow: hidden; }
.criteres li { background: var(--ivoire); padding: 1.5rem; }
.criteres h3 { font-family: var(--font-titre); font-size: var(--step-1); font-weight: 560; margin-bottom: .4rem; }
.criteres p { margin: 0; }
@media (min-width: 640px) { .criteres { grid-template-columns: 1fr 1fr; } }

.criteres-attribution { list-style: none; counter-reset: c; display: grid; gap: .2rem; margin-bottom: 1.4rem; }
.criteres-attribution li { counter-increment: c; display: flex; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid rgb(246 241 231 / .18); font-size: 1.1rem; }
.criteres-attribution li::before { content: counter(c); font-family: var(--font-titre); font-style: italic; color: var(--mirabelle); font-size: 1.4rem; min-width: 1.4rem; }
.note-light { font-weight: 600; color: var(--ivoire); }

.faq { border-top: 1px solid var(--ligne-forte); }
.faq__item { border-bottom: 1px solid var(--ligne-forte); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-titre); font-size: var(--step-1); font-weight: 520; color: var(--encre); letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transform: rotate(90deg); transition: transform .25s var(--ease); color: var(--vert); }
.faq__item[open] summary .icon { transform: rotate(-90deg); }
.faq__item p { padding-bottom: 1.2rem; max-width: 62ch; }

.coords { list-style: none; display: grid; gap: 1rem; }
.coords li { display: flex; gap: 1rem; align-items: flex-start; }
.coords .icon { color: var(--vert); margin-top: .2em; width: 1.4em; height: 1.4em; }
.coord__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--encre-3); }

.erreur .mark { margin-bottom: 1.5rem; }
.erreur .page-title { margin-bottom: 2rem; }

/* ── Formulaires ─────────────────────────────────────────────── */
.form-page { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section); }
.form-page__grid { display: grid; gap: 2rem; align-items: start; }
.form-page__aside .page-title { margin-bottom: 1.2rem; }
.form-page__alt { font-size: .98rem; }
.form-page__mobile-only { display: block; }
@media (max-width: 999px) {
  .form-page__aside .reperes--stack { flex-direction: row; gap: .3rem 1rem; margin: 1rem 0 0; font-size: .9rem; }
  .form-page__aside .page-lead { font-size: var(--step-0); margin-bottom: 0; }
  .form-page__aside .page-title { font-size: var(--step-3); }
}
.form-page__desktop-only { display: none; }
@media (min-width: 1000px) {
  .form-page__grid { grid-template-columns: 4fr 7fr; gap: clamp(2rem, 5vw, 5rem); }
  .form-page__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
  .form-page__mobile-only { display: none; }
  .form-page__desktop-only { display: block; }
}
.rassurance { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; color: var(--encre-2); }
.rassurance .icon { color: var(--vert-3); margin-top: .15em; }

.form-card {
  background: var(--blanc); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 0.8rem + 3vw, 3rem);
  box-shadow: 0 1px 0 var(--ligne), var(--shadow);
}

.apres { padding: 1.6rem 0 0; }
.apres__titre { font-family: var(--font-titre); font-size: var(--step-1); font-weight: 560; margin-bottom: 1rem; }
.apres__list { list-style: none; display: grid; gap: .8rem; }
.apres__list li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .7rem; font-size: .98rem; line-height: 1.45; }
.apres__list span { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px solid var(--vert-3); color: var(--vert); font-family: var(--font-titre); font-size: .95rem; }

.wizard__progress { margin-bottom: 1.8rem; }
.wizard__bar { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.wizard__bar li {
  display: flex; align-items: center; gap: .5rem;
  padding-top: .8rem; border-top: 4px solid var(--papier);
  font-size: .9rem; font-weight: 600; color: var(--encre-3);
  transition: border-color .3s var(--ease), color .3s;
}
.wizard__bar li span { display: none; }
.wizard__bar li.is-done { border-top-color: var(--vert-3); color: var(--encre-2); }
.wizard__bar li.is-current { border-top-color: var(--mirabelle); color: var(--encre); }
@media (max-width: 520px) { .wizard__bar li { font-size: .8rem; } }

.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .wizard__step:not(.is-active) { display: none; }
.no-js .wizard__step + .wizard__step { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--ligne); }
.js .wizard__step.is-active { animation: fade .35s var(--ease) both; }
.no-js [data-next], .no-js [data-prev] { display: none; }
.no-js .wizard__progress { display: none; }

.step-title { display: grid; gap: .2rem; font-size: var(--step-3); line-height: 1.05; font-weight: 520; margin-bottom: 1.6rem; }
.step-title__num { font-family: var(--font-texte); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vert-2); }
.step-title:focus { outline: none; }
.step-intro { color: var(--encre-3); margin-top: -.6rem; }

.field { margin: 0 0 1.5rem; border: 0; padding: 0; min-width: 0; }
.field__label { display: block; margin-bottom: .45rem; font-weight: 650; color: var(--encre); font-size: 1.04rem; padding: 0; }
.field__opt { font-weight: 500; color: var(--encre-3); font-size: .9rem; }
.field__hint { margin: -.15rem 0 .6rem; color: var(--encre-3); font-size: .95rem; line-height: 1.45; }
.field__error { display: flex; align-items: flex-start; gap: .4rem; margin: .45rem 0 0; color: var(--erreur); font-weight: 600; font-size: .95rem; }
.field__error:empty { display: none; }
.field__error .icon { margin-top: .2em; width: 1em; height: 1em; stroke-width: 2.6; }
.input {
  display: block; width: 100%; min-height: 52px; padding: .75rem 1rem;
  border: 1.5px solid var(--ligne-forte); border-radius: 10px; background: var(--blanc);
  color: var(--encre); font: inherit; font-size: 1.06rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #6E7671; }
.input:hover { border-color: var(--encre-3); }
.input:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgb(237 179 58 / .45); }
.input--area { min-height: 150px; resize: vertical; line-height: 1.5; }
.has-error .input { border-color: var(--erreur); background: #FFFAF8; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--cp { grid-template-columns: 11rem 1fr; }
}
.counter { display: block; text-align: right; font-size: .85rem; color: var(--encre-3); margin-top: .3rem; }

.choices { display: grid; gap: .6rem; }
.choices--cards { grid-template-columns: 1fr; }
@media (min-width: 560px) { .choices--cards { grid-template-columns: 1fr 1fr; } }
.choices--pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center;
  height: 100%; padding: .95rem 1rem; border: 1.5px solid var(--ligne-forte); border-radius: 12px; background: var(--blanc);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.choice__icon { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; padding: .55rem; border-radius: 50%; background: var(--papier); color: var(--vert); }
.choice__label { font-weight: 650; color: var(--encre); line-height: 1.25; }
.choice__desc { font-size: .9rem; color: var(--encre-3); line-height: 1.35; }
.choice:hover .choice__box { border-color: var(--encre-3); }
.choice input:checked + .choice__box { border-color: var(--vert); background: #EEF6F3; box-shadow: inset 0 0 0 1px var(--vert); }
.choice input:checked + .choice__box .choice__icon { background: var(--mirabelle); color: var(--encre); }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--mirabelle); outline-offset: 2px; }
.choice--pill .choice__box { display: inline-flex; padding: .65rem 1.05rem; border-radius: 999px; font-weight: 600; color: var(--encre-2); min-height: 46px; }
.choice--pill input:checked + .choice__box { color: var(--encre); }
.has-error .choice__box { border-color: rgb(161 46 27 / .55); }

.dropzone {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem;
  border: 1.5px dashed var(--ligne-forte); border-radius: 12px; background: var(--ivoire);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--vert); background: #EEF6F3; }
.dropzone__icon { width: 2.6rem; height: 2.6rem; padding: .6rem; border-radius: 50%; background: var(--blanc); color: var(--vert); }
.dropzone__text { display: grid; line-height: 1.3; }
.dropzone__text span { color: var(--encre-3); font-size: .93rem; }
.dropzone__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__input:focus-visible + .photo-previews, .dropzone:focus-within { outline: 3px solid var(--mirabelle); outline-offset: 2px; }
.js .dropzone__input:focus-visible ~ .dropzone { outline: 3px solid var(--mirabelle); }
.no-js .dropzone__input { position: static; width: auto; height: auto; opacity: 1; margin-top: .6rem; }
.photo-previews { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.photo-previews:empty { display: none; }
.photo-previews li { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--papier); }
.photo-previews img { width: 100%; height: 100%; object-fit: cover; }
.photo-previews .preview-name { display: grid; place-items: center; height: 100%; padding: .3rem; font-size: .7rem; text-align: center; word-break: break-all; }
.photo-previews button {
  position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: rgb(24 33 29 / .82); color: #fff; cursor: pointer;
}
.photo-previews button .icon { width: 15px; height: 15px; }

.zone-info { display: flex; gap: .6rem; padding: .9rem 1rem; border-radius: 10px; background: var(--mirabelle-pale); color: var(--encre); font-size: .96rem; }
.zone-info[hidden] { display: none; }

.rgpd { margin: .5rem 0 1.2rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--ivoire); font-size: .94rem; }
.rgpd p { display: flex; gap: .7rem; margin: 0; }
.rgpd .icon { color: var(--vert-3); margin-top: .15em; }

.field--check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; align-items: start; }
.field--check label { font-size: 1rem; line-height: 1.45; color: var(--encre-2); cursor: pointer; }
.field--check .field__error { grid-column: 2; }
.check {
  appearance: none; width: 24px; height: 24px; margin: 0; margin-top: .05rem;
  border: 1.5px solid var(--ligne-forte); border-radius: 6px; background: var(--blanc); cursor: pointer;
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.check::after { content: ''; width: 12px; height: 7px; border-left: 2.5px solid var(--ivoire); border-bottom: 2.5px solid var(--ivoire); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check:checked { background: var(--vert); border-color: var(--vert); }
.check:checked::after { opacity: 1; }
.check:focus-visible { outline: 3px solid var(--mirabelle); outline-offset: 2px; }
.has-error .check { border-color: var(--erreur); }

.wizard__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.wizard__nav .btn--primary { margin-left: auto; }
@media (max-width: 480px) {
  .wizard__nav .btn--primary { flex: 1 1 auto; }
}

.form-alert { margin-bottom: 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; }
.form-alert[hidden] { display: none; }
.form-alert--error { background: var(--erreur-pale); color: #5E1A0E; border-left: 4px solid var(--erreur); }
.form-alert p { margin: 0 0 .4rem; }
.form-alert ul { padding-left: 1.2rem; }
.form-alert a { color: #5E1A0E; font-weight: 600; }
.form-alert:focus { outline: none; }
.form-alert .btn { margin-top: .8rem; }

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

.form-section { font-family: var(--font-titre); font-size: var(--step-1); font-weight: 560; margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne); }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.form-success { text-align: left; }
.form-success:focus { outline: none; }
.form-success .mark { margin-bottom: 1.4rem; }
.form-success__titre { font-size: var(--step-3); line-height: 1.05; font-weight: 520; margin-bottom: 1rem; }
.form-success__texte { font-size: var(--step-1); line-height: 1.45; max-width: 36ch; color: var(--encre-2); }
.form-success__ref strong { white-space: nowrap; }
.form-success__ref { padding: .8rem 1rem; border-radius: 10px; background: var(--ivoire); display: inline-block; font-size: .98rem; }
.form-success .apres { margin-bottom: 2rem; }
.form-success--page { padding: clamp(1.5rem, 1rem + 3vw, 3rem); background: var(--blanc); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .form-success.is-shown { animation: rise .6s var(--ease) both; }
  .form-success.is-shown .mark { animation: pop .6s var(--ease) both .15s; }
}

/* Photos manquantes (si une image n'a pas encore été traitée) */
.photo-missing { display: grid; place-items: center; aspect-ratio: 4 / 5; background: repeating-linear-gradient(-45deg, var(--papier), var(--papier) 10px, var(--ivoire) 10px, var(--ivoire) 20px); border-radius: var(--radius-lg); color: var(--encre-3); font-size: .9rem; }

@media print {
  .site-header, .site-footer, .sticky-cta, .demo-banner, .bubbles { display: none !important; }
}
