/* =========================================================
   KL FINANCE — Courtier en regroupement de crédits
   Feuille de style commune aux 3 pages
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --bg-soft: #111111;
  --surface: #151515;
  --surface-2: #1b1b1b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f3f1ec;
  --muted: #a3a09a;
  --dim: #85827b;

  --accent: #fed142;          /* jaune du logo KL Finance */
  --accent-hover: #ffdc6b;
  --on-accent: #141312;

  /* Josefin Sans = police du logo KL Finance */
  --f-display: "Josefin Sans", "Century Gothic", sans-serif;
  --f-brand: "Josefin Sans", "Century Gothic", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: 24px;
  --header-h: 84px;
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 4px; font-weight: 600; font-size: 0.85rem;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Typographie ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); }
.h2 { font-size: clamp(2rem, 3.5vw, 3.05rem); }
.h3 { font-size: clamp(1.45rem, 2.1vw, 1.85rem); }
.display--muted { color: var(--dim); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8em;
  font-family: var(--f-brand);
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.lead { color: var(--muted); font-size: 1.02rem; max-width: 36rem; }
.muted { color: var(--muted); }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 1.1em; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: #121212; }
.btn--light:hover { background: #e9e7e2; }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 0.78rem; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.88rem; color: var(--text);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 6px;
  transition: color .2s, border-color .2s;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
}
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(11, 11, 11, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--f-brand); font-weight: 600;
  font-size: 1.08rem; letter-spacing: 0.14em; line-height: 1;
  color: var(--accent); padding-top: 3px;
}
.brand__tag {
  font-family: var(--f-brand); font-weight: 300; font-style: italic;
  font-size: 0.7rem; letter-spacing: 0.02em; color: var(--muted);
  margin-top: 6px; line-height: 1;
}

.nav { display: flex; align-items: center; gap: 44px; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #cfccc6; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav__extra { display: none; }

.site-header__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }

/* Bouton « Me contacter » + menu des moyens de contact */
.contact-menu { position: relative; }
.contact-menu__toggle .contact-menu__chevron { width: 14px; height: 14px; margin-left: -2px; transition: transform .25s var(--ease); }
.contact-menu__toggle[aria-expanded="true"] .contact-menu__chevron { transform: rotate(180deg); }

/* Animations d'appel : halo, reflet et points de discussion (en boucle, avec pauses) */
.contact-menu__toggle {
  position: relative; isolation: isolate; overflow: hidden;
  transition: background-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.contact-menu__toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(254, 209, 66, 0.6); }
.contact-menu__toggle::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: cta-shine 7s ease-in-out 2s infinite;
}
.contact-menu::before {
  content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  animation: cta-pulse 7s ease-out 2s infinite;
}
.contact-menu__bubble circle {
  fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center;
  animation: cta-typing 3.5s ease-in-out 2s infinite;
}
.contact-menu__bubble circle:nth-of-type(2) { animation-delay: 2.15s; }
.contact-menu__bubble circle:nth-of-type(3) { animation-delay: 2.3s; }
.contact-menu.is-open::before,
.contact-menu.is-open .contact-menu__toggle::before,
.contact-menu.is-open .contact-menu__bubble circle { animation: none; }
/* Même effet sur un bouton jaune classique (ex. « Demander une étude gratuite »),
   décalé de 3,5 s pour alterner avec le bouton de l'en-tête */
.btn--attention {
  position: relative; isolation: isolate; overflow: hidden;
  animation: cta-pulse 7s ease-out 5.5s infinite;
}
.btn--attention:hover { transform: translateY(-1px); }
.btn--attention::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: cta-shine 7s ease-in-out 5.5s infinite;
}
.btn--attention .icon { animation: cta-arrow 7s ease-in-out 5.5s infinite; }
@keyframes cta-arrow { 0%, 44%, 60%, 100% { transform: translateX(0); } 52% { transform: translateX(4px); } }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(254, 209, 66, 0.6); } 20%, 100% { box-shadow: 0 0 0 12px rgba(254, 209, 66, 0); } }
@keyframes cta-shine { 0%, 22% { transform: translateX(-130%); } 42%, 100% { transform: translateX(130%); } }
@keyframes cta-typing { 0%, 36%, 100% { transform: translateY(0); opacity: 0.55; } 18% { transform: translateY(-1.8px); opacity: 1; } }

/* Mode « renforcé » quand le visiteur a défilé (classe cta-boost sur <body>) :
   lueur permanente, double onde plus fréquente, bulle qui se dandine */
.cta-boost .contact-menu:not(.is-open) .contact-menu__toggle { box-shadow: 0 6px 22px -6px rgba(254, 209, 66, 0.7); }
.cta-boost .contact-menu:not(.is-open)::before { animation: cta-pulse-strong 4s ease-out infinite; }
.cta-boost .contact-menu:not(.is-open)::after {
  content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  animation: cta-pulse-strong 4s ease-out .35s infinite;
}
.cta-boost .contact-menu:not(.is-open) .contact-menu__toggle::before { animation: cta-shine 4s ease-in-out infinite; }
.cta-boost .contact-menu:not(.is-open) .contact-menu__bubble { transform-origin: 50% 70%; animation: cta-wiggle 4s ease-in-out infinite; }
@keyframes cta-pulse-strong { 0% { box-shadow: 0 0 0 0 rgba(254, 209, 66, 0.7); } 30%, 100% { box-shadow: 0 0 0 16px rgba(254, 209, 66, 0); } }
@keyframes cta-wiggle {
  0%, 50%, 100% { transform: rotate(0); }
  56% { transform: rotate(-14deg); } 62% { transform: rotate(10deg); } 68% { transform: rotate(-6deg); } 74% { transform: rotate(0); }
}

/* Bulle de rappel (une fois par visite) */
.contact-nudge {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 3;
  width: min(270px, calc(100vw - 32px));
  display: flex; align-items: flex-start; gap: 6px;
  padding: 14px 10px 14px 16px;
  background: var(--surface); border: 1px solid rgba(254, 209, 66, 0.45); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  animation: nudge-in .45s var(--ease);
}
.contact-nudge[hidden] { display: none; }
.contact-nudge::before {
  content: ""; position: absolute; top: -7px; right: 28px; width: 12px; height: 12px;
  background: var(--surface); border-left: 1px solid rgba(254, 209, 66, 0.45); border-top: 1px solid rgba(254, 209, 66, 0.45);
  transform: rotate(45deg);
}
.contact-nudge__open {
  flex: 1; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--text); font-size: 0.86rem; line-height: 1.45;
}
.contact-nudge__open strong { display: block; margin-bottom: 2px; color: var(--accent); font-weight: 700; }
.contact-nudge__close {
  flex: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.contact-nudge__close:hover { color: var(--text); background: var(--surface-2); }
@keyframes nudge-in { from { opacity: 0; transform: translateY(-8px); } }
.contact-menu__panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 300px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform-origin: top right; animation: menu-in .22s var(--ease);
}
.contact-menu__panel[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.contact-menu__title {
  padding: 10px 12px 8px; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.contact-menu ul { list-style: none; margin: 0; padding: 0; }
.contact-menu__panel a {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 8px;
  transition: background-color .2s;
}
.contact-menu__panel a:hover, .contact-menu__panel a:focus-visible { background: var(--surface-2); }
.contact-menu__panel strong { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.3; }
.contact-menu__panel small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.contact-menu__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; }
.contact-menu__icon .icon { width: 19px; height: 19px; }
.contact-menu__icon.is-phone, .contact-menu__icon.is-mail { background: rgba(254, 209, 66, 0.12); color: var(--accent); }
.contact-menu__icon.is-whatsapp { background: rgba(37, 211, 102, 0.14); color: #25d366; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Grand nom en fond (outline) ---------- */
.bigname {
  position: absolute; left: 50%; top: calc(var(--header-h) + 4px); z-index: -1;
  transform: translateX(-50%);
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(4rem, 12.5vw, 12rem); line-height: 0.8; letter-spacing: 0.045em;
  white-space: nowrap; text-transform: uppercase;
  text-indent: 0.045em; /* compense l'espacement après la dernière lettre */
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  pointer-events: none; user-select: none;
}

.bigname--long { font-size: clamp(3.5rem, 10.2vw, 9.8rem); letter-spacing: 0.03em; text-indent: 0.03em; }
/* Sur les heros avec photo, le grand nom descend pour passer derrière le portrait */
.hero .bigname, .page-hero:not(.page-hero--compact) .bigname { top: calc(var(--header-h) + clamp(24px, 9.5vw, 150px)); }

/* ---------- Hero accueil ---------- */
.hero {
  --portrait-w: 400px;   /* largeur de la photo ; sa hauteur = largeur × 1,517 (824×1250) */
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: var(--header-h);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, var(--portrait-w)) minmax(0, 0.75fr);
  column-gap: 24px;
  align-items: end;
  min-height: clamp(720px, calc(100svh - var(--header-h)), 860px);
}
.hero__copy {
  grid-column: 1; grid-row: 1; align-self: end;
  position: relative; z-index: 2;
  padding-bottom: clamp(48px, 6vh, 80px);
}
.hero__copy .h1 { font-size: clamp(2.1rem, 3vw, 2.7rem); }
.hero__copy .lead { margin: 22px 0 32px; font-size: 0.95rem; max-width: 25rem; }

.hero__portrait {
  grid-column: 2; grid-row: 1; align-self: end;
  position: relative; z-index: 1;
  padding-top: 140px;
}
.hero__portrait::before {
  content: ""; position: absolute; z-index: -1;
  left: -30%; right: -30%; top: 20%; bottom: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.10), transparent);
}
.portrait-img {
  width: 100%; height: auto;
  filter: grayscale(1) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 99%);
}
/* Carte d'avis centrée sur la partie visible de la photo (~45 % de sa hauteur) */
.hero__reviews {
  grid-column: 3; grid-row: 1; justify-self: center; align-self: end;
  position: relative; z-index: 2;
  margin-bottom: calc(var(--portrait-w) * 1.517 * 0.55);
  transform: translateY(50%);
}

/* Carte « Avis Google » avec défilement vertical */
.reviews {
  width: 100%; max-width: 300px; padding: 18px;
  background: rgba(17, 17, 17, 0.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong); border-radius: 14px;
}
/* En-tête « badge d'excellence » : note entre lauriers + étoiles dorées */
.reviews__head { text-align: center; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.reviews__award { display: flex; align-items: center; justify-content: center; gap: 4px; }
.laurel { flex: none; width: 32px; height: 67px; }
.laurel--right { transform: scaleX(-1); }
.reviews__note { line-height: 1; }
.reviews__note strong {
  font-family: var(--f-display); font-weight: 200; font-size: 3.3rem; line-height: 1;
  letter-spacing: 0.02em; color: var(--text); display: inline-block; padding-top: 10px;
}
.reviews__stars {
  display: inline-block; margin-top: 4px; padding-left: 5px;
  font-size: 1.15rem; letter-spacing: 5px; line-height: 1.2;
  background: linear-gradient(100deg, #c7981c 0%, #fed142 35%, #fff5cc 50%, #fed142 65%, #c7981c 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(254, 209, 66, 0.35));
  animation: stars-shine 5s ease-in-out infinite;
}
@keyframes stars-shine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.reviews__count { margin-top: 10px; font-size: 0.86rem; color: var(--text); }
.reviews__count strong { color: var(--accent); font-weight: 700; }
.reviews__source {
  margin-top: 6px; font-family: var(--f-brand); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}

.reviews__viewport {
  position: relative; height: 300px; overflow: hidden; margin-top: 2px;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 88%, transparent);
}
.reviews__viewport[hidden] { display: none; }
.reviews__track { padding-top: 14px; }
.reviews__track.is-scrolling { animation: reviews-scroll 40s linear infinite; }
.reviews__viewport:hover .reviews__track,
.reviews__viewport:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-scroll { to { transform: translateY(-50%); } }

.review {
  margin: 0 0 12px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.review__stars { color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; }
.review__text {
  margin: 8px 0 12px; font-size: 0.86rem; line-height: 1.55; color: #dedbd4;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review__meta { display: flex; align-items: center; gap: 10px; }
.review__avatar {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(254, 209, 66, 0.14); color: var(--accent); font-weight: 700; font-size: 0.8rem;
}
.review__meta strong { display: block; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.review__meta small { display: block; font-size: 0.72rem; color: var(--dim); }

.reviews__link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; transition: color .2s;
}
.reviews__viewport[hidden] + .reviews__link { margin-top: 0; border-top: 0; }
.reviews__link-text { text-wrap: balance; }
.reviews__link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.reviews__link:hover { color: var(--accent); }
.reviews__link:hover .icon { transform: translate(3px, -3px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(48px, 6vw, 76px); }
.section-head .eyebrow { justify-content: center; }
.section-head > p:not(.eyebrow) { color: var(--muted); margin: 22px auto 0; max-width: 560px; }


/* ---------- Principe + schéma ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(40px, 6vw, 96px); align-items: center;
}
.split__text .h2 { margin-bottom: 26px; }

.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 0.95rem; }
.ticks .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px;
  background: rgba(254, 209, 66, 0.12); color: var(--accent); border-radius: 50%;
  stroke-width: 2.2;
}

.note {
  margin-top: 30px; padding-left: 16px; border-left: 2px solid var(--accent);
  font-size: 0.8rem; color: var(--dim); line-height: 1.55;
}

.merge {
  margin: 0; padding: clamp(18px, 4vw, 44px);
  border: 1px solid var(--line); border-radius: 10px;
  background:
    radial-gradient(circle at 82% 50%, rgba(254, 209, 66, 0.10), transparent 42%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-soft);
}
.merge svg { width: 100%; height: auto; overflow: visible; }
.merge__lines path { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: 0.7; }
.merge__chip rect { fill: #171717; stroke: rgba(255, 255, 255, 0.16); }
.merge__chip circle { fill: var(--accent); }
.merge__chip text { fill: #e8e5de; font-family: var(--f-body); font-size: 15px; font-weight: 500; }
.merge__target rect { fill: var(--accent); }
.merge__target .t1 { fill: var(--on-accent); font-family: var(--f-body); font-size: 17px; font-weight: 700; }
.merge__target .t2 { fill: #3a3421; font-family: var(--f-body); font-size: 13px; font-weight: 600; }
.merge figcaption { display: grid; gap: 6px; margin-top: 18px; font-size: 0.78rem; color: var(--dim); text-align: center; }
/* Prêt immobilier facultatif : contour et liaison en pointillés + étiquette */
.merge__chip.is-optional > rect { fill: rgba(23, 23, 23, 0.55); stroke: rgba(255, 255, 255, 0.3); stroke-dasharray: 5 4; }
.merge__chip.is-optional > circle { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.merge__chip.is-optional > text { fill: #bab6ae; }
.merge__chip .merge__badge rect { fill: var(--accent); stroke: none; }
.merge__chip .merge__badge text { fill: var(--on-accent); font-family: var(--f-body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; }
.merge__svg--compact .merge__chip .merge__badge text { font-size: 12px; }
.merge__lines path.is-optional { stroke-dasharray: 0.018 0.014; opacity: 0.55; }
.merge__legend { color: var(--muted); }
.merge__legend svg { display: inline-block; vertical-align: middle; width: 28px; height: 6px; margin: -2px 8px 0 0; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; }
.merge__svg--compact { display: none; }
.merge__svg--compact .merge__chip text { font-size: 17px; }
.merge__svg--compact .merge__target .t1 { font-size: 17.5px; }
.merge__svg--compact .merge__target .t2 { font-size: 14.5px; }

/* ---------- Chiffre clé : jauge « clients accompagnés » ---------- */
.section--band { padding-block: clamp(28px, 4vw, 48px); }
.trust {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 980px; margin-inline: auto;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(circle at 12% 55%, rgba(254, 209, 66, 0.10), transparent 40%), var(--bg-soft);
}
.trust .eyebrow { margin-bottom: 10px; }
.trust__title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.trust__link { white-space: nowrap; }
.trust__links { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Compteur + jauge verticale qui se remplit vers le haut */
.counter { display: flex; align-items: center; gap: 20px; padding-left: 14px; }
.vgauge {
  position: relative; flex: none; width: 12px; height: 104px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.07);
}
.vgauge::before { /* graduations */
  content: ""; position: absolute; left: -13px; top: 4px; bottom: 4px; width: 7px;
  background: repeating-linear-gradient(to top, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 12px);
}
.vgauge__fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 100%;
  border-radius: inherit;
  background: linear-gradient(to top, #c7981c, #fed142 65%, #fff0b3);
  box-shadow: 0 0 14px rgba(254, 209, 66, 0.45);
}
.vgauge__cap {
  position: absolute; left: 50%; bottom: 100%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff6d6; box-shadow: 0 0 10px 2px rgba(254, 209, 66, 0.8);
  transform: translate(-50%, 50%);
}
.counter.is-done .vgauge__cap { animation: cap-glow 2.6s ease-in-out infinite; }
@keyframes cap-glow {
  0%, 100% { box-shadow: 0 0 10px 2px rgba(254, 209, 66, 0.8); }
  50% { box-shadow: 0 0 20px 7px rgba(254, 209, 66, 0.4); }
}
.counter__figures { min-width: 8.5rem; text-align: left; }
.counter__value {
  font-family: var(--f-display); font-weight: 200; font-size: 3rem; line-height: 1;
  color: var(--text); font-variant-numeric: tabular-nums;
}
.counter__plus { color: var(--accent); font-weight: 300; margin-right: 1px; }
.counter__label {
  margin-top: 8px; font-family: var(--f-brand); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-strong); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--accent);
}
.step__num { font-family: var(--f-display); font-weight: 100; font-size: 2.8rem; line-height: 1; color: var(--accent); }
.step h3 { margin: 16px 0 8px; font-size: 1rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Partenaires pro ---------- */
.partner-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color .3s, transform .3s var(--ease);
}
.partner-card:hover { border-color: rgba(254, 209, 66, 0.45); transform: translateY(-3px); }
.partner-card__icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(254, 209, 66, 0.12); color: var(--accent);
}
.partner-card__icon .icon { width: 22px; height: 22px; }
.partner-card h3, .partner-card__title { margin: 6px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
.partner-card p { color: var(--muted); font-size: 0.92rem; }
.partner-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-weight: 600; font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); transition: border-color .2s, background-color .2s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .faq__icon { border-color: var(--accent); }
.faq__answer { padding: 0 60px 26px 0; color: var(--muted); font-size: 0.92rem; }
.faq__answer p + p { margin-top: 0.8em; }

/* ---------- Bandeau CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding: clamp(64px, 8vw, 110px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: 12px;
  background: radial-gradient(ellipse at 50% 120%, rgba(254, 209, 66, 0.14), transparent 60%), var(--surface);
}
.cta-band__fox {
  position: absolute; z-index: -1; right: -40px; bottom: -60px; width: 300px; opacity: 0.05;
}
.cta-band p:not(.eyebrow) { color: var(--muted); margin: 20px auto 36px; max-width: 520px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Pied de page ---------- */
.site-footer { padding: clamp(72px, 9vw, 110px) 0 40px; text-align: center; }
.site-footer .brand { justify-content: center; }
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin: 36px 0 26px; }
.footer-nav a { font-size: 0.85rem; color: var(--muted); transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 600; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .icon { width: 17px; height: 17px; color: var(--accent); }
.legal {
  max-width: 860px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line);
  font-size: 0.74rem; line-height: 1.7; color: var(--dim);
}
.legal p + p { margin-top: 8px; }
.legal strong { color: var(--muted); font-weight: 600; }
.legal a, .reg-list a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.legal a:hover, .reg-list a:hover { color: var(--accent); }
.copyright { margin-top: 26px; font-size: 0.74rem; color: var(--dim); }

/* ---------- Hero des pages intérieures ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--header-h); }
.page-hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 40px;
  min-height: min(820px, 100svh);
}
.page-hero__copy { padding-bottom: clamp(40px, 6vh, 80px); position: relative; z-index: 2; }
.page-hero__copy .h1 { margin-bottom: 18px; }
.page-hero__role { color: var(--dim); margin-bottom: 26px; }
.page-hero__copy .lead { margin-bottom: 14px; }
.page-hero__copy .lead strong { color: var(--text); font-weight: 600; }
.page-hero__copy .btn-row { margin-top: 32px; }
.page-hero__portrait { position: relative; padding-top: 150px; justify-self: center; width: 100%; max-width: 436px; }
.page-hero__portrait::before {
  content: ""; position: absolute; z-index: -1; left: -25%; right: -25%; top: 22%; bottom: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), transparent);
}

.page-hero--compact .page-hero__inner {
  min-height: 0; text-align: center;
  padding-block: clamp(150px, 20vw, 250px) clamp(56px, 7vw, 90px);
}
.page-hero--compact .eyebrow { justify-content: center; }
.page-hero--compact .bigname { top: calc(var(--header-h) + clamp(12px, 3vw, 40px)); }
.page-hero--compact .lead { margin: 24px auto 0; }

/* ---------- Page expert ---------- */
.quote {
  max-width: 940px; margin: 0 auto; text-align: center;
}
.quote blockquote {
  margin: 0; font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.35; color: var(--text);
}
.quote blockquote::before {
  content: "“"; display: block; font-size: 4.5rem; line-height: 0.6; color: var(--accent); margin-bottom: 24px; font-style: normal;
}
.quote figcaption {
  margin-top: 28px; font-family: var(--f-brand); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.value { padding: 36px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value__num { font-family: var(--f-display); font-weight: 100; font-size: 2.6rem; line-height: 1; color: var(--accent); }
.value h3 { margin: 18px 0 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: 0.02em; }
.value p { color: var(--muted); font-size: 0.9rem; }


.regulated { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.regulated .h2 { margin-bottom: 22px; }
.reg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reg-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.reg-list .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.reg-list strong { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }
.reg-list span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Page contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  transition: border-color .25s;
}
a.contact-card:hover { border-color: rgba(254, 209, 66, 0.5); }
.contact-card__icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
}
.contact-card__label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.contact-card__value { display: block; font-size: 1.08rem; font-weight: 600; margin-top: 2px; word-break: break-word; }
.contact-card__sub { display: block; font-size: 0.84rem; color: var(--muted); }
.contact-aside-note {
  margin-top: 10px; padding: 22px 24px; border-radius: 10px;
  background: rgba(254, 209, 66, 0.07); border: 1px solid rgba(254, 209, 66, 0.25);
  font-size: 0.88rem; color: var(--muted);
}
.contact-aside-note strong { color: var(--text); }

.form-card {
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.form-card .h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label, .field legend {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.field .req { color: var(--accent); }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px;
  color: var(--text); font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a3a09a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
select.input option { background: #151515; }
.input::placeholder { color: #5f5c57; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(254, 209, 66, 0.15); }
.input:user-invalid { border-color: #e2725b; }

fieldset.field { border: 0; margin: 0; padding: 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; cursor: pointer; letter-spacing: 0; text-transform: none; font-size: 0.86rem; color: var(--text); font-weight: 500; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; transition: all .2s;
}
.segmented input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consent, .field .consent {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer; line-height: 1.5;
  font-size: 0.84rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted);
}
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-hint { font-size: 0.78rem; color: var(--dim); max-width: 22rem; }
.form-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 6px; font-size: 0.88rem;
  background: rgba(254, 209, 66, 0.08); border: 1px solid rgba(254, 209, 66, 0.3); color: var(--text);
}
.form-status[hidden] { display: none; }
.form-status a { color: var(--accent); text-decoration: underline; }
.form-status.is-success { background: rgba(88, 196, 128, 0.10); border-color: rgba(88, 196, 128, 0.45); }
.form-status.is-success strong { color: #7fd6a0; }
.form-status.is-error { background: rgba(226, 114, 91, 0.10); border-color: rgba(226, 114, 91, 0.45); }
.btn:disabled { opacity: 0.65; cursor: progress; }
/* Champ piège anti-spam, hors écran */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; max-width: 940px; margin-inline: auto; list-style: none; padding: 0; }
.docs li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.docs .icon { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; stroke-width: 2; }
.docs li small { display: block; color: var(--dim); font-size: 0.8rem; }
.docs-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 36px; }

/* ---------- Page réalisations (cas clients) ---------- */
.cases { display: grid; gap: 28px; max-width: 980px; margin-inline: auto; }
.case {
  padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(circle at 85% 0%, rgba(254, 209, 66, 0.08), transparent 45%), var(--surface);
}
.case__tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.case__title { margin: 14px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); text-transform: uppercase; letter-spacing: 0.02em; }
.case__intro { color: var(--muted); font-size: 0.92rem; }
.case__compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin: 28px 0; }
.case__col { padding: clamp(22px, 3vw, 32px); border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.case__col:not(.case__col--after) .case__big { color: #9a968f; text-decoration: line-through; text-decoration-color: rgba(226, 114, 91, 0.7); text-decoration-thickness: 2px; }
.case__col--after {
  border-color: rgba(254, 209, 66, 0.6);
  background: radial-gradient(circle at 50% 0%, rgba(254, 209, 66, 0.14), transparent 70%), var(--bg);
  box-shadow: 0 0 0 1px rgba(254, 209, 66, 0.15), 0 18px 50px -20px rgba(254, 209, 66, 0.45);
}
.case__col--after .case__big { color: var(--accent); }
.case__label { font-family: var(--f-brand); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.case__col--after .case__label { color: var(--accent); }
.case__big { margin: 10px 0 4px; font-family: var(--f-display); font-weight: 200; font-size: clamp(2.8rem, 6vw, 4rem); line-height: 1; }
.case__label { font-size: 0.8rem !important; }
.case__big small { display: inline-block; text-decoration: none; font-size: 0.9rem; font-family: var(--f-body); font-weight: 500; color: var(--muted); margin-left: 4px; }
.case__bar { height: 6px; margin: 12px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.case__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #6f6c66; }
.case__col--after .case__bar span { background: linear-gradient(90deg, #c7981c, #fed142); }
.case__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.case__col strong { color: var(--text); font-weight: 600; }
.case__arrow { display: grid; place-items: center; color: var(--accent); }
.case__arrow .icon { width: 26px; height: 26px; }
.case__results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case__results div { padding: 16px; border-radius: 10px; background: rgba(254, 209, 66, 0.08); text-align: center; }
.case__results strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--accent); line-height: 1.1; }
.case__results span { font-size: 0.8rem; color: var(--muted); }
.case__terms { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--dim); line-height: 1.6; }
.cases-note { max-width: 980px; margin: 32px auto 0; font-size: 0.8rem; color: var(--dim); text-align: center; line-height: 1.6; }
@media (max-width: 700px) {
  .case__compare { grid-template-columns: 1fr; }
  .case__arrow { transform: rotate(90deg); }
  .case__results { grid-template-columns: 1fr; }
}

/* ---------- Page mentions légales ---------- */
.legal-page { max-width: 820px; }
.legal-page > section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-page h2 {
  margin: 0 0 18px; font-family: var(--f-display); font-weight: 400; font-size: 1.35rem;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.95rem; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { margin: 14px 0 14px; padding-left: 20px; }
.legal-page li + li { margin-top: 6px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.legal-page a:hover { color: var(--accent); }
.legal-facts { display: grid; grid-template-columns: max-content 1fr; gap: 12px 32px; margin: 0; }
.legal-facts dt { padding-top: 3px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.legal-facts dd { margin: 0; font-size: 0.95rem; color: var(--text); }
.todo { padding: 0 6px; border-radius: 3px; background: rgba(254, 209, 66, 0.16); color: var(--accent); font-size: 0.9em; }
.copyright a { text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.copyright a:hover, .copyright a[aria-current="page"] { color: var(--accent); }
@media (max-width: 560px) {
  .legal-facts { grid-template-columns: 1fr; gap: 2px; }
  .legal-facts dd { margin-bottom: 12px; }
}

/* ---------- Bouton « retour en haut » ---------- */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 40;
  display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(21, 21, 21, 0.88); color: var(--accent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background-color .2s, color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top::before { /* piste de l'anneau */
  content: ""; position: absolute; inset: 1px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.08);
}
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.to-top .icon { position: relative; width: 20px; height: 20px; transition: transform .25s var(--ease); }
.to-top:hover { background: var(--accent); color: var(--on-accent); }
.to-top:hover .to-top__ring circle { stroke: var(--on-accent); }
.to-top:hover .icon { transform: translateY(-2px); }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

.js .merge__lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.js .merge.is-visible .merge__lines path { stroke-dashoffset: 0; }
.js .merge__lines path.is-optional { stroke-dasharray: 0.018 0.014; stroke-dashoffset: 0; opacity: 0; transition: opacity .8s .5s; }
.js .merge.is-visible .merge__lines path.is-optional { opacity: 0.55; }
.js .merge__lines path:nth-child(2) { transition-delay: .12s; }
.js .merge__lines path:nth-child(3) { transition-delay: .24s; }
.js .merge__lines path:nth-child(4) { transition-delay: .36s; }
.js .merge__lines path:nth-child(5) { transition-delay: .48s; }
.js .merge__target { opacity: 0; transition: opacity .6s .9s; }
.js .merge.is-visible .merge__target { opacity: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 30px; }
  .brand__tag { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; }

  /* Navigation mobile */
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  .nav a { font-family: var(--f-display); font-size: 2rem; font-weight: 300; letter-spacing: 0.06em; color: var(--text); }
  .nav a::after { bottom: 2px; }
  .nav__extra { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 24px; }
  .nav__extra a { font-family: var(--f-body); font-size: 0.95rem; letter-spacing: 0.02em; text-transform: none; color: var(--muted); }
  .nav__extra a::after { display: none; }
  .contact-menu__chevron { display: none; }
  .contact-nudge::before { right: 16px; }
  /* Mobile : icône seule en haut de page, puis le texte apparaît en défilant */
  .contact-menu__toggle { min-width: 44px; height: 44px; padding: 0 13px; gap: 0; transition: padding .4s var(--ease), background-color .2s, box-shadow .25s; }
  .contact-menu__toggle span {
    max-width: 0; margin-left: 0; opacity: 0; overflow: hidden; white-space: nowrap;
    transition: max-width .45s var(--ease), margin-left .45s var(--ease), opacity .3s;
  }
  .cta-boost .contact-menu__toggle { padding: 0 16px; }
  .cta-boost .contact-menu__toggle span { max-width: 110px; margin-left: 8px; opacity: 1; }
  .site-header .brand__text { max-width: 220px; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s; }
  .cta-boost .site-header .brand__text { max-width: 0; opacity: 0; }
  .contact-menu__panel {
    position: fixed; top: calc(var(--header-h) - 4px); left: var(--gutter); right: var(--gutter); width: auto;
  }

  /* Hero */
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 11vw; }
  .hero__portrait { grid-column: 1; grid-row: 1; justify-self: center; width: min(76vw, 400px); padding-top: 0; }
  .hero__copy { grid-column: 1; grid-row: 2; margin: -24px 0 0; padding-bottom: 40px; }
  .hero__reviews { grid-column: 1; grid-row: 3; justify-self: stretch; align-self: start; max-width: none; margin: 0 0 64px; transform: none; }
  .reviews__viewport { height: 270px; }
  .bigname { font-size: 14.2vw; }
  .bigname--long { font-size: 11.4vw; }
  .hero .bigname, .page-hero:not(.page-hero--compact) .bigname { top: calc(var(--header-h) + 5vw); }

  .page-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .page-hero__portrait { grid-row: 1; width: min(72vw, 380px); padding-top: 9vw; }
  .page-hero__copy { margin-top: -56px; padding-bottom: 64px; }

  .split, .regulated, .contact-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .trust .eyebrow { justify-content: center; }
  .trust__link { justify-self: center; }
  .trust__links { align-items: center; justify-self: center; }
  .counter { justify-content: center; padding-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .partner-cards, .docs { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .faq__answer { padding-right: 0; }
  .brand img { height: 36px; }
  .brand__name { font-size: 0.98rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .merge { padding: 16px 12px; }
  .counter__label, .reviews__source { font-size: 0.72rem; } /* lisibilité sur petit écran */
  .site-footer { padding-bottom: 88px; } /* place pour le bouton « retour en haut » */
  .merge__svg--wide { display: none; }
  .merge__svg--compact { display: block; }
}

@media (max-width: 560px) {
  .steps, .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 28px 0 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .reviews__track.is-scrolling { animation: none !important; }
  .reviews__track > [aria-hidden="true"] { display: none; }
  .reviews__viewport { overflow-y: auto; }
}
