/* =====================================================================
   L'IMMO - ACHAT VENTE : couche graphique commune
   Menu complet (barre + menu plein écran), loader de chargement,
   rideau entre les pages et formulaires (+ code de sécurité).
   Mécanique reprise du site Chris à Vélo, charte L'Immo :
   fond blanc, gris #58595B, vert #8DC63F.
   ===================================================================== */

:root {
  --gris: #58595B;
  --gris-900: #3F4042;
  --gris-700: #4C4D4F;
  --gris-300: #B9BABB;
  --gris-100: #F2F2F2;
  --gris-50: #F8F8F7;
  --vert: #8DC63F;
  --vert-600: #76AC2C;
  --vert-100: #EEF6E2;
  --blanc: #FFFFFF;
  --erreur: #C4452B;
  --ligne: rgba(88, 89, 91, .14);
  --ligne-claire: rgba(255, 255, 255, .18);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: clamp(14px, 1.6vw, 22px);
  --hdr-h: 76px;
}

html.is-loading { overflow: hidden; }
body.body { background: var(--blanc); }
::selection { background: var(--vert); color: var(--blanc); }
/* Le menu est fixe : le contenu commence sous lui */
#wrapper { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }

/* ---------------------------------------------------------- Boutons */
.btn-pill {
  --bg: var(--vert); --fg: var(--blanc);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 8px 0 22px;
  border-radius: 99px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn-pill:hover, .btn-pill:focus { color: var(--fg); }
.btn-pill:active { transform: scale(.97); }
.btn-gris { --bg: var(--gris); --fg: var(--blanc); }
.btn-blanc { --bg: var(--blanc); --fg: var(--gris); }
.btn-plus {
  position: relative; width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 300ms var(--ease-out);
}
.btn-plus::before, .btn-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40%; height: 2px; background: var(--bg); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.btn-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

/* Texte qui défile au survol */
.btn-marquee-txt { position: relative; display: block; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .btn-pill:hover .btn-plus { transform: rotate(90deg); }
  .btn-marquee:hover .btn-marquee-txt { color: transparent; }
  .btn-marquee:hover .btn-marquee-txt::after {
    content: attr(data-text) "\00a0\00a0✦\00a0\00a0" attr(data-text) "\00a0\00a0✦\00a0\00a0" attr(data-text) "\00a0\00a0✦\00a0\00a0";
    position: absolute; left: 0; top: 0;
    color: var(--fg);
    white-space: nowrap;
    animation: btn-defile 3.2s linear infinite;
  }
}
@keyframes btn-defile { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------------------------------------------------------- Loader */
.loader {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: var(--blanc);
  will-change: transform;
}
html:not(.js) .loader { display: none; }
.loader-stage {
  width: min(64vw, 380px);
  transition: transform 500ms var(--ease-out), opacity 300ms ease;
}
.loader-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.loader-stage .lg-part { transform-box: fill-box; }

/* 1re page de la visite : la maison se construit, puis le nom apparaît */
.loader .lg-b1, .loader .lg-b2 { transform-origin: 50% 100%; animation: lg-monte 700ms var(--ease-out) both; }
.loader .lg-b1 { animation-delay: 150ms; }
.loader .lg-b2 { animation-delay: 320ms; }
.loader .lg-toit { transform-origin: 0 0; animation: lg-toit 800ms var(--ease-out) 520ms both; }
.loader .lg-fen { transform-origin: 50% 50%; animation: lg-fen 420ms var(--ease-out) both; }
.loader .lg-fen:nth-child(1) { animation-delay: 900ms; }
.loader .lg-fen:nth-child(2) { animation-delay: 960ms; }
.loader .lg-fen:nth-child(3) { animation-delay: 1020ms; }
.loader .lg-fen:nth-child(4) { animation-delay: 1080ms; }
.loader .lg-nom { animation: lg-nom 900ms var(--ease-in-out) 1050ms both; }
.loader .lg-sous { animation: lg-nom 900ms var(--ease-in-out) 1300ms both; }
.loader .lg-apo { transform-origin: 50% 100%; animation: lg-apo 600ms var(--ease-out) 1700ms both; }
@keyframes lg-monte { from { transform: translateY(40%) scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-toit { from { transform: translate(-18%, -26%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-fen { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-nom { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-apo { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Pages suivantes : version courte, le logo est déjà là */
.loader.is-short .lg-part { animation: none; }
.loader.is-short .loader-stage { animation: lg-pulse 900ms var(--ease-in-out) both; }
@keyframes lg-pulse { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

.loader-bar {
  position: absolute; left: 50%; bottom: max(9svh, 40px);
  width: min(220px, 50vw); height: 3px; transform: translateX(-50%);
  background: var(--gris-100); border-radius: 3px; overflow: hidden;
  transition: opacity 300ms ease;
}
.loader-bar span {
  position: absolute; inset: 0; background: var(--vert);
  transform-origin: left; transform: scaleX(0);
  animation: charge 2.4s var(--ease-out) forwards;
}
.loader.is-short .loader-bar span { animation-duration: .8s; }
.loader.is-done .loader-bar span { animation: none; transform: scaleX(1); transition: transform 300ms var(--ease-out); }
@keyframes charge { to { transform: scaleX(.88); } }

/* Sortie : le logo s'éloigne, le panneau se lève */
.loader.is-done .loader-stage { transform: translateY(-24px) scale(.98); opacity: 0; transition-delay: 150ms; }
.loader.is-done .loader-bar { opacity: 0; }
.loader.is-done { transform: translateY(-101%); transition: transform 900ms var(--ease-in-out) 450ms; }

/* Rideau des transitions entre pages */
.curtain {
  position: fixed; inset: 0; z-index: 99990;
  background: var(--gris);
  transform: translateY(101%);
  pointer-events: none;
}
.curtain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--vert); }
html.is-leaving .curtain { transform: translateY(0); transition: transform 520ms var(--ease-drawer); }

/* ---------------------------------------------------------- Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 9000;
  height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  color: var(--gris);
  font-family: "Manrope", sans-serif;
  transition: color 300ms ease, transform 400ms var(--ease-out);
}
.hdr::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blanc);
  transition: box-shadow 300ms ease;
}
.hdr.is-solid::after { box-shadow: 0 1px 0 var(--ligne), 0 10px 30px -18px rgba(63, 64, 66, .35); }
.hdr.is-hidden { transform: translateY(-100%); }
html.menu-open .hdr { color: var(--blanc); transform: none; }
html.menu-open .hdr::after { background: transparent; box-shadow: none; }
html.menu-open .hdr-logo .lg-gris { fill: var(--blanc); }
html.menu-open .hdr-logo .lg-fen { fill: var(--gris-900); }

.hdr a { text-decoration: none; }
.hdr-logo { display: block; width: clamp(150px, 13vw, 200px); justify-self: start; }
.hdr-logo svg { display: block; width: 100%; height: auto; }
.hdr-logo .lg-gris, .hdr-logo .lg-fen { transition: fill 300ms ease; }

.hdr-nav { display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 28px); list-style: none; margin: 0; padding: 0; }
.hdr-item { position: relative; display: flex; align-items: center; gap: 2px; }
.hdr-link {
  position: relative; font-size: .9rem; font-weight: 700; padding: 6px 0; color: inherit;
}
.hdr-link:hover, .hdr-link:focus { color: inherit; }
.hdr-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--vert); transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.hdr-link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .hdr-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.sub-toggle { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.sub-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 200ms var(--ease-out); }
.hdr-item.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 12px); left: -18px; min-width: 290px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--blanc); color: var(--gris);
  border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(63, 64, 66, .45), 0 0 0 1px var(--ligne);
  transform-origin: 30px 0;
  opacity: 0; transform: scale(.97) translateY(-4px); visibility: hidden;
  transition: opacity 150ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont de survol */
.hdr-item.is-open > .sub { opacity: 1; transform: none; visibility: visible; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--gris); transition: background-color 150ms ease, color 150ms ease; }
.sub a img { width: 26px; height: 26px; flex: none; }
.sub a span { font-weight: 700; font-size: .92rem; }
.sub a small { display: block; font-size: .74rem; font-weight: 600; opacity: .65; }
.sub a[aria-current="page"] { background: var(--vert-100); }
.sub .sub-tous { margin-top: 4px; border-top: 1px solid var(--ligne); padding-top: 4px; }
.sub .sub-tous a { color: var(--vert-600); }
@media (hover: hover) and (pointer: fine) { .sub a:hover { background: var(--gris-50); color: var(--gris); } }

.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hdr-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.hdr-icon:hover { color: inherit; background: var(--gris-50); }
.hdr-icon:active { transform: scale(.94); }
.hdr-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.menu-open .hdr .btn-pill { --bg: var(--blanc); --fg: var(--gris); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 300ms var(--ease-out);
}
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
html.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
html.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu plein écran (mobile / tablette) */
.mnav {
  position: fixed; inset: 0; z-index: 8990;
  background: var(--gris); color: var(--blanc);
  font-family: "Manrope", sans-serif;
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-drawer), visibility 0s linear 600ms;
  overscroll-behavior: contain; overflow-y: auto;
}
html.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 600ms var(--ease-drawer); }
.mnav a { color: inherit; text-decoration: none; }
.mnav-links { display: flex; flex-direction: column; gap: 4px; }
.mnav-group { opacity: 0; transform: translateY(24px); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
html.menu-open .mnav-group { opacity: 1; transform: none; transition-delay: calc(150ms + var(--i) * 60ms); }
.mnav-link {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.8rem, 7.5vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15;
}
.mnav-link.is-active .mnav-label { color: var(--vert); }
.mnav-num { font-size: .8rem; font-weight: 700; color: var(--vert); letter-spacing: .1em; }
.mnav-sub { list-style: none; margin: 4px 0 12px 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mnav-sub a { font-size: .98rem; font-weight: 600; opacity: .8; }
.mnav-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 22px 18px; align-items: end; margin-top: 36px;
  font-weight: 600;
  opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 500ms var(--ease-out);
}
html.menu-open .mnav-foot { opacity: 1; transform: none; transition-delay: 420ms; }
.mnav-cta { grid-column: 1 / -1; justify-self: start; height: 54px; }
.mnav-contact, .mnav-social { display: flex; flex-direction: column; gap: 4px; }
.mnav-contact .l-label { opacity: .6; margin-bottom: 4px; }
.mnav-social { align-items: flex-end; }
@media (min-width: 1101px) { .mnav { display: none; } }

.l-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---- Responsive header ---- */
@media (min-width: 1101px) {
  :root { --hdr-h: 92px; }
  .hdr-logo { width: clamp(180px, 13vw, 220px); }
  .nav-list { gap: clamp(18px, 2.2vw, 40px); }
  .hdr-link { font-size: clamp(.98rem, .72rem + .35vw, 1.08rem); padding: 8px 0; }
  .sub-toggle { width: 30px; height: 30px; }
  .sub-toggle svg { width: 12px; height: 12px; }
  .hdr .btn-pill { height: 52px; padding: 0 9px 0 26px; font-size: .84rem; gap: 16px; }
  .hdr .btn-plus { width: 36px; height: 36px; }
}
@media (min-width: 1101px) and (max-width: 1320px) {
  .hdr .btn-marquee-txt { display: none; }
  .hdr .btn-pill { padding: 0 8px; }
}
@media (max-width: 1100px) {
  .hdr-nav, .hdr-icon { display: none; }
  .burger { display: block; }
  .hdr { grid-template-columns: auto 1fr; }
}
@media (max-width: 860px) {
  :root { --hdr-h: 66px; }
  .hdr .btn-pill { height: 40px; padding: 0 6px 0 16px; font-size: .68rem; gap: 10px; }
  .hdr .btn-plus { width: 28px; height: 28px; }
}
@media (max-width: 600px) {
  .hdr { gap: 10px; }
  .hdr .btn-pill .btn-marquee-txt { display: none; }
  .hdr .btn-pill { padding: 0 6px; }
}

/* ---------------------------------------------------------- Formulaires */
.l-form {
  font-family: "Manrope", sans-serif; color: var(--gris);
  background: var(--gris-50); border-radius: calc(var(--radius) * 1.2);
  padding: clamp(22px, 3.2vw, 46px); border: 1px solid var(--ligne);
}
.l-form .fs { border: 0; padding: 0; margin: 0 0 clamp(26px, 3.4vw, 40px); min-width: 0; }
.l-form .fs legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 18px; float: none; width: auto; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--gris); }
.l-form .fs legend span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--vert); color: var(--blanc); font-size: .95rem;
}
.l-form .fs-help { font-size: .86rem; font-weight: 600; opacity: .75; margin: -8px 0 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field .flabel { font-size: .82rem; font-weight: 700; margin: 0; color: var(--gris); }
.req { color: var(--vert-600); }
.l-form .field input, .l-form .field select, .l-form .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; margin: 0;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--gris);
  background: var(--blanc); border: 1.5px solid rgba(88, 89, 91, .2); border-radius: 14px;
  box-shadow: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.l-form .field select { background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2358595B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; padding-right: 40px; }
.l-form .field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.l-form .field input::placeholder, .l-form .field textarea::placeholder { color: rgba(88, 89, 91, .5); font-weight: 500; }
.l-form .field input:focus, .l-form .field select:focus, .l-form .field textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(141, 198, 63, .18); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--erreur) !important; }
.field-err { font-size: .78rem; font-weight: 700; color: var(--erreur); }
.field-err:empty { display: none; }

/* Choix en pastilles (radio) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px;
  border: 1.5px solid rgba(88, 89, 91, .2); background: var(--blanc); font-weight: 700; font-size: .9rem; color: var(--gris);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.choice input:checked + span { background: var(--vert); color: var(--blanc); border-color: var(--vert); }
.choice input:focus-visible + span { outline: 2px solid var(--gris); outline-offset: 2px; }
.choice:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + span { border-color: var(--vert); } }

/* Code de sécurité */
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha img { width: 200px; height: 64px; border-radius: 12px; border: 1.5px solid rgba(88, 89, 91, .16); background: var(--blanc); user-select: none; -webkit-user-select: none; }
.captcha button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(88, 89, 91, .22); background: var(--blanc); color: var(--gris); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: transform 300ms var(--ease-out), border-color 200ms ease; }
.captcha button:hover { border-color: var(--vert); }
.captcha button:active { transform: rotate(-90deg) scale(.95); }
.l-form .field .captcha input { flex: 1 1 200px; max-width: 260px; text-transform: lowercase; }
.l-form .field .captcha input:not(:placeholder-shown) { letter-spacing: .3em; }
.l-form .field .captcha input::placeholder { letter-spacing: normal; text-transform: none; }

/* Case à cocher ronde */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; font-weight: 600; cursor: pointer; margin: 0; color: var(--gris); }
.check a { color: var(--vert-600); text-decoration: underline; }
.l-form .field .check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: none; width: 26px; height: 26px; min-height: 0; margin: -2px 0 0; padding: 0;
  border-radius: 50%; border: 2px solid rgba(88, 89, 91, .4); background: var(--blanc);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.l-form .field .check input[type="checkbox"]::before {
  content: ""; width: 7px; height: 12px; margin-top: -3px;
  border: solid var(--blanc); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  transition: transform 180ms var(--ease-out);
}
.l-form .field .check input[type="checkbox"]:checked { background: var(--vert); border-color: var(--vert); }
.l-form .field .check input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.l-form .field .check input[type="checkbox"]:active { transform: scale(.92); }
.l-form .field .check input[type="checkbox"]:focus-visible { outline: 2px solid var(--gris); outline-offset: 3px; }
.field.is-error .check input[type="checkbox"] { border-color: var(--erreur) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-submit .btn-pill { height: 58px; padding-left: 28px; font-size: .84rem; }
.form-submit .btn-pill[disabled] { opacity: .7; cursor: progress; }
.form-submit .btn-pill.is-loading .btn-plus { animation: tourne .8s linear infinite; }
.form-submit .btn-pill.is-loading .btn-plus::after { opacity: 0; }
@keyframes tourne { to { transform: rotate(360deg); } }
.form-msg { font-weight: 700; font-size: .9rem; margin: 0; }
.form-msg.is-error { color: var(--erreur); }
.form-note { margin: 14px 0 0; font-size: .78rem; opacity: .7; font-weight: 600; }

.merci { display: none; text-align: center; padding: clamp(30px, 5vw, 60px) 10px; font-family: "Manrope", sans-serif; color: var(--gris); }
.form-wrap.is-sent .l-form { display: none; }
.form-wrap.is-sent .merci { display: block; animation: monte 600ms var(--ease-out) both; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.merci h2, .merci .merci-titre { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; margin: 18px 0 14px; color: var(--gris); }
.merci h2 em, .merci .merci-titre em { font-style: normal; color: var(--vert); }
.merci p { max-width: 30em; margin: 0 auto; font-weight: 600; }
.merci-icone { width: min(40vw, 150px); margin: 0 auto; animation: flotte 2.4s var(--ease-in-out) infinite alternate; }
@keyframes flotte { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* Version compacte (colonne latérale d'une fiche bien) */
.l-form.is-compact { padding: 22px; background: var(--blanc); }
.l-form.is-compact .f-row { grid-template-columns: 1fr; gap: 0; }
.l-form.is-compact .captcha img { width: 170px; height: 54px; }
.l-form.is-compact .captcha input { flex-basis: 100%; max-width: none; }
.l-form.is-compact .form-submit .btn-pill { width: 100%; justify-content: space-between; }

@media (max-width: 600px) {
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit .btn-pill { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .loader .lg-part, .loader.is-short .loader-stage, .loader-bar span, .merci-icone { animation: none !important; }
  .loader.is-done { transition: opacity 400ms ease; transform: none; opacity: 0; }
  .mnav, .mnav-group, .mnav-foot, .sub, .hdr { transition-duration: 1ms !important; }
}
