/* ==========================================================================
   finance-freelance.fr — système de design v5
   Règle de robustesse : jamais de grille sur un élément dont le nombre
   d'enfants varie. Numérotation et pictogrammes en position absolue.
   ========================================================================== */

:root {
  --ink:       #0B1A2B;
  --ink-2:     #14293F;
  --ink-3:     #24405C;
  --body:      #4C5563;
  --muted:     #7E8898;
  --line:      #E2E6EC;
  --line-2:    #EFF2F6;
  --paper:     #FFFFFF;
  --surface:   #F7F9FB;
  --surface-2: #EDF1F6;

  --acc:       #1B4571;
  --acc-2:     #123153;
  --acc-soft:  #EAF1F8;
  --acc-line:  #C3D6E8;

  --sig:       #B0812F;
  --sig-soft:  #FAF4E7;

  --on-dark:   #E9ECF2;
  --on-dark-2: #98A2B3;

  --wrap:  1240px;
  --prose: 680px;
  --rail:  420px;

  --r:  4px;
  --r2: 10px;
  --r3: 16px;

  --sh-1: 0 1px 2px rgba(11,26,43,.06);
  --sh-2: 0 2px 8px rgba(11,26,43,.05), 0 12px 32px rgba(11,26,43,.07);
  --sh-3: 0 8px 24px rgba(11,26,43,.08), 0 32px 72px rgba(11,26,43,.12);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(2.6rem, 5.6vw, 4.6rem);
  --t-h1:   clamp(2.2rem, 4vw, 3.4rem);
  --t-h2:   clamp(1.7rem, 3vw, 2.5rem);
  --t-h3:   1.16rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.ff-nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  color: var(--ink); margin: 0 0 .5em; font-weight: 700;
  line-height: 1.08; letter-spacing: -.032em; text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); margin-top: 2.2em; }
h3 { font-size: var(--t-h3); margin-top: 2em; font-weight: 670; letter-spacing: -.016em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 670; }

p { margin: 0 0 1.15em; }
strong { color: var(--ink); font-weight: 650; }

a { color: var(--acc); text-decoration: none; }
a:not([class]) { box-shadow: inset 0 -1px 0 rgba(40,86,138,.3); transition: box-shadow .15s, color .15s; }
a:not([class]):hover { color: var(--acc-2); box-shadow: inset 0 -2px 0 var(--acc-2); }

ul, ol { margin: 0 0 1.3em; padding-left: 1.15em; }
li { margin-bottom: .5em; }
li::marker { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 3px; }

.ff-skip { position: absolute; left: -9999px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 20px; }
.ff-skip:focus { left: 0; top: 0; }

.ff-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 1.1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc);
}
.ff-kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.ff-kicker--light { color: #A9C4DD; }

/* Badge de promesse — réutilisé partout dans les tunnels */
.ff-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 100px;
  background: var(--sig-soft); color: var(--sig);
  font-size: .8rem; font-weight: 650; letter-spacing: -.005em;
}
.ff-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 0 3px rgba(176,129,47,.16);
}
.ff-badge--light { background: rgba(255,255,255,.1); color: #DCB268; }
.ff-badge--acc { background: var(--acc-soft); color: var(--acc-2); }

/* -------------------------------------------------------------- gabarits */
.ff-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.entry-content { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.entry-content > p, .entry-content > h2, .entry-content > h3,
.entry-content > ul, .entry-content > ol { max-width: var(--prose); }
.ff-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* Apparition au défilement */
.ff-reveal { opacity: 0; transform: translateY(18px); }
.ff-reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }

/* -------------------------------------------------------------- en-tête */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); }
.ff-header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; gap: 24px; min-height: 78px;
}
.ff-logo { display: inline-flex; align-items: center; gap: 12px; box-shadow: none !important; }
.ff-logo-txt { display: flex; flex-direction: column; line-height: 1.06; }
.ff-logo-txt b { font-size: 1.08rem; font-weight: 750; color: var(--ink); letter-spacing: -.036em; }
.ff-logo-txt span {
  font-size: .59rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 3px;
}

.site-navigation { margin-left: auto; }
.site-navigation ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-navigation li { margin: 0; position: relative; }
.site-navigation a {
  display: block; padding: 9px 15px; border-radius: var(--r);
  font-size: .93rem; font-weight: 560; color: var(--ink-3); box-shadow: none;
  transition: background .15s, color .15s;
}
.site-navigation a:hover { background: var(--surface); color: var(--ink); }
.site-navigation a[aria-current="page"] { color: var(--acc); }
.site-navigation li.is-cta { margin-left: 12px; }
.site-navigation li.is-cta > a {
  background: var(--ink); color: #fff; padding: 11px 22px; font-weight: 640;
  border-radius: 100px; transition: transform .16s var(--ease), background .16s;
}
.site-navigation li.is-cta > a:hover { background: var(--acc); color: #fff; transform: translateY(-1px); }

.site-navigation .sub-menu {
  display: none; position: absolute; left: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r2);
  padding: 6px; min-width: 280px; box-shadow: var(--sh-3); flex-direction: column;
}
.site-navigation li:hover > .sub-menu, .site-navigation li:focus-within > .sub-menu { display: flex; }
.site-navigation .sub-menu a { padding: 11px 14px; font-size: .9rem; }

.ff-burger {
  display: none; margin-left: auto; background: none;
  border: 1px solid var(--line); border-radius: var(--r); padding: 10px 11px; cursor: pointer;
}
.ff-burger span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.ff-burger span + span { margin-top: 5px; }

/* ------------------------------------------------------------- boutons */
.ff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--acc); color: #fff !important; border: 1px solid var(--acc);
  font-family: inherit; font-size: 1rem; font-weight: 640; letter-spacing: -.008em;
  padding: 15px 28px; border-radius: 100px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(40,86,138,.2), 0 8px 24px rgba(40,86,138,.22) !important;
  transition: background .16s, box-shadow .16s, transform .16s var(--ease);
}
.ff-btn::after { content: "→"; transition: transform .18s var(--ease); }
.ff-btn:hover {
  background: var(--acc-2); border-color: var(--acc-2); color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(40,86,138,.22), 0 16px 36px rgba(40,86,138,.28) !important;
}
.ff-btn:hover::after { transform: translateX(4px); }
.ff-btn:active { transform: translateY(0); }
.ff-btn:disabled { opacity: .5; cursor: default; transform: none; }
.ff-btn--ghost {
  background: transparent; color: var(--ink) !important; border-color: var(--line);
  box-shadow: none !important;
}
.ff-btn--ghost::after { content: none; }
.ff-btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink) !important; box-shadow: none !important; }
.ff-btn--lg { padding: 18px 34px; font-size: 1.06rem; }

/* Lien-action discret, entre deux sections */
.ff-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin: 2.6rem 0; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2);
}
.ff-inline-cta p { margin: 0; color: var(--ink-2); font-weight: 560; }
.ff-inline-cta small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; margin-top: 2px; }

/* --------------------------------------------------- héros page d'offre */
.ff-offer-hero {
  background:
    radial-gradient(900px 420px at 12% -10%, var(--acc-soft), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.ff-offer-hero .ff-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 76px; align-items: start; padding-top: 1.4rem; padding-bottom: 4rem;
}
.ff-offer-hero__main { min-width: 0; }
.ff-offer-hero h1 { font-size: var(--t-hero); max-width: 13ch; margin-bottom: .3em; }
.ff-offer-lede { font-size: 1.24rem; line-height: 1.5; color: var(--ink-3); max-width: 44ch; margin-bottom: 1.8rem; }
.ff-hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.9rem; }

.ff-marks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0;
  margin: 0; padding: 1.7rem 0 0; border-top: 1px solid var(--line);
}
.ff-marks li { margin: 0; padding: 0 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.ff-marks li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ff-marks b {
  display: block; font-size: 1.45rem; font-weight: 750; color: var(--ink);
  letter-spacing: -.038em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.ff-marks span { font-size: .82rem; color: var(--muted); }

.ff-rail { position: sticky; top: 100px; min-width: 0; }

/* --------------------------------------------------- corps page d'offre */
.ff-offer-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 76px; align-items: start; padding-top: 3.6rem; padding-bottom: 1rem;
}
.ff-offer-grid .entry-content { padding: 0; max-width: none; min-width: 0; }
.ff-offer-grid .entry-content > p, .ff-offer-grid .entry-content > h2,
.ff-offer-grid .entry-content > h3, .ff-offer-grid .entry-content > ul,
.ff-offer-grid .entry-content > ol { max-width: var(--prose); }
.ff-offer-grid .entry-content > *:first-child { margin-top: 0; }

.ff-offer-aside { position: sticky; top: 100px; min-width: 0; }
.ff-aside-card {
  border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--paper); padding: 22px 24px; margin-bottom: 16px;
}
.ff-aside-card h3 {
  margin: 0 0 .5em; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ff-aside-card ul { list-style: none; padding: 0; margin: 0; }
.ff-aside-card li { margin: 0; border-top: 1px solid var(--line-2); }
.ff-aside-card li:first-child { border-top: 0; }
.ff-aside-card a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; font-size: .94rem; color: var(--ink-3); box-shadow: none; font-weight: 540;
}
.ff-aside-card a::after { content: "→"; color: var(--acc); opacity: 0; transform: translateX(-4px); transition: .18s var(--ease); }
.ff-aside-card a:hover { color: var(--acc); }
.ff-aside-card a:hover::after { opacity: 1; transform: none; }
.ff-aside-card--acc { background: var(--ink); border-color: var(--ink); }
.ff-aside-card--acc h3 { color: var(--on-dark-2); }
.ff-aside-card--acc p { color: var(--on-dark-2); font-size: .9rem; margin: 0 0 1rem; }
.ff-aside-card--acc .ff-btn { width: 100%; }

/* ----------------------------------------------------------- formulaire */
.ff-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r3);
  position: relative; overflow: hidden;
}
.ff-form--rail { padding: 28px 28px 26px; box-shadow: var(--sh-3); }
.ff-form--band { padding: 32px; max-width: 740px; box-shadow: var(--sh-2); }
.ff-form::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--acc), #3D6A99);
}

.ff-form__head { margin-bottom: 18px; }
.ff-form__title { font-size: 1.26rem; font-weight: 720; color: var(--ink); margin: 0 0 .25em; letter-spacing: -.028em; }
.ff-form__sub { font-size: .875rem; color: var(--muted); margin: 0; }

.ff-form__steps { display: flex; gap: 5px; margin-bottom: 20px; }
.ff-form__steps span { height: 3px; flex: 1; background: var(--line); border-radius: 3px; transition: background .3s; }
.ff-form__steps span.is-on { background: var(--acc); }

.ff-field { margin-bottom: 14px; min-width: 0; }
.ff-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-field label { display: block; font-size: .785rem; font-weight: 650; color: var(--ink-3); margin-bottom: 6px; }
.ff-field label span { color: var(--acc); }
.ff-field input, .ff-field select, .ff-field textarea {
  width: 100%; max-width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ff-field textarea { resize: vertical; min-height: 82px; }
.ff-field input:focus, .ff-field select:focus, .ff-field textarea:focus {
  outline: none; border-color: var(--acc); background: #fff; box-shadow: 0 0 0 4px var(--acc-soft);
}
.ff-field input::placeholder, .ff-field textarea::placeholder { color: #A8B0BE; }

.ff-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 18px; }
.ff-consent input { margin-top: 3px; accent-color: var(--acc); flex: none; width: 16px; height: 16px; }
.ff-consent label { font-size: .81rem; line-height: 1.5; color: var(--muted); }

.ff-form .ff-btn { width: 100%; }
.ff-form__actions { display: flex; align-items: center; gap: 14px; }
.ff-form__actions .ff-btn { width: auto; flex: 1; }
.ff-link-back { background: none; border: 0; color: var(--muted); font-size: .86rem; cursor: pointer; padding: 6px 0; font-family: inherit; }
.ff-link-back:hover { color: var(--ink); }
.ff-form__legal { font-size: .77rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.ff-form__error {
  margin: 12px 0 0; padding: 11px 14px; background: #FDF0EE;
  border-left: 3px solid #C0432A; border-radius: 0 var(--r) var(--r) 0; font-size: .85rem; color: #93331F;
}
.ff-hp { position: absolute; left: -9999px; }
.ff-form__done { text-align: center; padding: 22px 6px; }
.ff-done__mark {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--acc); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(40,86,138,.3);
}
.ff-done__title { font-size: 1.15rem; font-weight: 690; color: var(--ink); margin-bottom: .4em; letter-spacing: -.02em; }
.ff-done__sub { font-size: .87rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ bandeaux */
.ff-band { padding: clamp(3.6rem, 7vw, 6rem) 0; }
.ff-band--paper { background: var(--surface); border-block: 1px solid var(--line); }
.ff-band--deep { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.ff-band--deep::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 380px at 88% -10%, rgba(40,86,138,.32), transparent 62%);
}
.ff-band--deep > * { position: relative; z-index: 1; }
.ff-band--deep h2, .ff-band--deep h3, .ff-band--deep strong { color: #fff; }
.ff-band--deep p { color: var(--on-dark-2); }
.ff-band--deep a:not([class]) { color: #A9C4DD; box-shadow: inset 0 -1px 0 rgba(169,196,221,.36); }
.ff-band h2 { margin-top: 0; }

.ff-section-head { max-width: 56ch; margin-bottom: 2.8rem; }
.ff-section-head h2 { margin-bottom: .4em; }
.ff-section-head p { font-size: 1.1rem; color: var(--muted); margin-bottom: 0; }

/* ------------------------------------------ listes numérotées (robuste) */
.ff-numbers, .ff-steps { list-style: none; padding: 0; margin: 2.6rem 0; counter-reset: n; border-top: 1px solid var(--line); }
.ff-numbers > li, .ff-steps > li {
  counter-increment: n; position: relative; margin: 0;
  padding: 30px 0 30px 92px; border-bottom: 1px solid var(--line);
}
.ff-numbers > li::before, .ff-steps > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 28px;
  width: 54px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 1.08rem; font-weight: 750; color: var(--acc); letter-spacing: -.01em;
  background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: 100px;
  font-variant-numeric: tabular-nums;
}
.ff-numbers strong, .ff-steps strong {
  display: block; font-size: 1.14rem; font-weight: 680; color: var(--ink);
  margin-bottom: .3em; letter-spacing: -.022em;
}
.ff-numbers p, .ff-steps p { margin: 0; max-width: 64ch; }
.ff-numbers > li > p + p, .ff-steps > li > p + p { margin-top: .8em; }
.ff-band--deep .ff-numbers, .ff-band--deep .ff-steps { border-top-color: rgba(255,255,255,.14); }
.ff-band--deep .ff-numbers > li, .ff-band--deep .ff-steps > li { border-bottom-color: rgba(255,255,255,.14); }
.ff-band--deep .ff-numbers > li::before, .ff-band--deep .ff-steps > li::before {
  background: rgba(40,86,138,.18); border-color: rgba(169,196,221,.34); color: #C7D9EA;
}

/* ------------------------------------------------- listes à vérification */
.ff-checks { list-style: none; padding: 0; margin: 2.4rem 0; border-top: 1px solid var(--line); }
.ff-checks > li { margin: 0; padding: 26px 0 26px 44px; position: relative; border-bottom: 1px solid var(--line); }
.ff-checks > li::before {
  content: ""; position: absolute; left: 0; top: 30px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
}
.ff-checks > li::after {
  content: ""; position: absolute; left: 8px; top: 36px;
  width: 5px; height: 9px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg);
}
.ff-checks strong { display: block; color: var(--ink); font-size: 1.09rem; font-weight: 670; margin-bottom: .25em; letter-spacing: -.02em; }
.ff-checks p { margin: 0; max-width: 64ch; font-size: .98rem; }

/* ------------------------------------------------------------- tableaux */
.ff-table-wrap { overflow-x: auto; margin: 2.4rem 0; border: 1px solid var(--line); border-radius: var(--r2); }
.entry-content table, .ff-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.entry-content th, .entry-content td, .ff-table th, .ff-table td { text-align: left; padding: 15px 20px; vertical-align: top; }
.entry-content thead th, .ff-table thead th {
  background: var(--surface); color: var(--ink);
  font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 750;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.entry-content tbody tr + tr td, .ff-table tbody tr + tr td { border-top: 1px solid var(--line-2); }
.ff-table td:first-child, .entry-content tbody td:first-child { color: var(--ink); font-weight: 620; }
.ff-table tbody tr:hover td { background: #FAFCFF; }

/* -------------------------------------------------------- notes, cartes */
.ff-note {
  margin: 2.4rem 0; padding: 22px 26px; max-width: var(--prose);
  background: var(--acc-soft); border-left: 4px solid var(--acc);
  border-radius: 0 var(--r2) var(--r2) 0; font-size: .96rem; color: var(--ink-3);
}
.ff-note p { margin: 0; }
.ff-band--deep .ff-note { background: rgba(255,255,255,.06); border-left-color: #3D6A99; color: var(--on-dark); }

.ff-grid { display: grid; gap: 18px; margin: 2.6rem 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ff-grid--2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.ff-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 28px; min-width: 0; position: relative; overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.ff-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--acc); transform: scaleY(0); transform-origin: top; transition: transform .24s var(--ease);
}
.ff-card:hover { border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-3px); }
.ff-card:hover::before { transform: scaleY(1); }
.ff-card h3 { margin: 0 0 .5em; font-size: 1.08rem; }
.ff-card h3 a { color: var(--ink); box-shadow: none; }
.ff-card:hover h3 a { color: var(--acc); }
.ff-card p { margin: 0; font-size: .95rem; line-height: 1.58; }
.ff-card em { font-style: normal; color: var(--muted); font-size: .88rem; }
.ff-band--deep .ff-card { background: var(--ink-2); border-color: rgba(255,255,255,.12); }
.ff-band--deep .ff-card:hover { border-color: rgba(169,196,221,.4); }
.ff-band--deep .ff-card h3 { color: #fff; }

/* ------------------------------------------------------------------ FAQ */
.ff-faq { margin: 2.4rem 0; max-width: 820px; border-top: 1px solid var(--line); }
.ff-faq details { border-bottom: 1px solid var(--line); }
.ff-faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 22px 48px 22px 0; font-weight: 650; color: var(--ink); font-size: 1.04rem;
  letter-spacing: -.015em; transition: color .15s;
}
.ff-faq summary::-webkit-details-marker { display: none; }
.ff-faq summary:hover { color: var(--acc); }
.ff-faq summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; margin-top: -5px;
  width: 9px; height: 9px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc);
  transform: rotate(45deg); transition: transform .22s var(--ease);
}
.ff-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ff-faq details > p { margin: -6px 0 24px; max-width: 66ch; font-size: .97rem; }

/* ------------------------------------------------------- pages standard */
.ff-page-head {
  background: radial-gradient(760px 340px at 8% -20%, var(--acc-soft), transparent 62%), var(--surface);
  border-bottom: 1px solid var(--line); padding-bottom: 3rem;
}
.ff-page-head h1 { max-width: 20ch; margin: .45em 0 0; }
.ff-breadcrumb { font-size: .82rem; color: var(--muted); padding-top: 1.7rem; }
.ff-breadcrumb a { color: var(--muted); box-shadow: none; }
.ff-breadcrumb a:hover { color: var(--acc); }
.ff-breadcrumb span + span::before { content: "/"; margin: 0 .6em; color: #C9D2DE; }

.entry-content { padding-top: 3.2rem; padding-bottom: 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.ff-lede { font-size: 1.18rem; line-height: 1.56; color: var(--ink-3); max-width: 58ch; }

/* ---------------------------------------------------------- bande finale */
.ff-final {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(3.6rem, 7vw, 5.6rem) 0; position: relative; overflow: hidden;
}
.ff-final::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(820px 420px at 82% 108%, rgba(40,86,138,.34), transparent 62%);
}
.ff-final > * { position: relative; z-index: 1; }
.ff-final .ff-inner { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 76px; align-items: center; }
.ff-final h2 { color: #fff; font-size: var(--t-h2); margin: 0 0 .5em; max-width: 14ch; }
.ff-final p { color: var(--on-dark-2); max-width: 44ch; margin: 0 0 1.4rem; }

/* --------------------------------------------------------- pied de page */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: .93rem; padding: 4.2rem 0 0; }
.ff-final + .site-footer { border-top: 1px solid rgba(255,255,255,.1); }
.ff-footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid; gap: 48px; grid-template-columns: minmax(260px, 1.2fr) 1fr;
}
.site-footer .ff-logo-txt b { color: #fff; }
.site-footer .ff-logo-txt span { color: #7C8697; }
.ff-footer-brand p { margin: 1.3rem 0 0; max-width: 42ch; line-height: 1.6; }
.site-footer a { color: var(--on-dark); box-shadow: none; }
.site-footer a:hover { color: #fff; box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); }
.ff-footer-nav ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 36px; }
.ff-footer-nav li { margin-bottom: .8em; break-inside: avoid; }
.ff-footer-legal {
  max-width: var(--wrap); margin: 3.6rem auto 0; padding: 1.8rem 32px 2.8rem;
  border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: #6D7787; line-height: 1.6;
}
.ff-footer-legal p { margin-bottom: .6em; max-width: 96ch; }
.ff-footer-legal p:last-child { margin: 0; }

/* -------------------------------------------------------------- accueil */
.is-home .entry-content { padding: 0; max-width: none; }
.is-home .entry-content > p, .is-home .entry-content > h2 { max-width: none; }

.ff-hero {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(4.4rem, 9vw, 8rem) 0 clamp(3.6rem, 6vw, 5.4rem);
  position: relative; overflow: hidden;
}
.ff-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(880px 460px at 84% -12%, rgba(40,86,138,.46), transparent 60%),
    radial-gradient(600px 340px at 0% 106%, rgba(110,155,245,.14), transparent 58%);
}
.ff-hero > * { position: relative; z-index: 1; }
.ff-hero h1 { color: #fff; font-size: var(--t-hero); max-width: 16ch; margin-bottom: .34em; }
.ff-hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-dark); max-width: 54ch; margin-bottom: 2.2rem; line-height: 1.56; }
.ff-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ff-hero .ff-btn--ghost { background: rgba(255,255,255,.06); color: #fff !important; border-color: rgba(255,255,255,.28); }
.ff-hero .ff-btn--ghost:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.55); }
.ff-hero .ff-kicker { color: #A9C4DD; }
.ff-hero .ff-marks { border-top-color: rgba(255,255,255,.16); margin-top: 3.2rem; }
.ff-hero .ff-marks li { border-right-color: rgba(255,255,255,.16); }
.ff-hero .ff-marks b { color: #fff; }
.ff-hero .ff-marks span { color: var(--on-dark-2); }

.ff-cta {
  background: var(--ink); color: var(--on-dark); border-radius: var(--r3);
  padding: clamp(2.2rem, 4vw, 3rem); margin: 3.2rem 0; position: relative; overflow: hidden;
}
.ff-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 92% -20%, rgba(40,86,138,.4), transparent 60%);
}
.ff-cta > * { position: relative; z-index: 1; }
.ff-cta h3 { color: #fff; margin: 0 0 .5em; font-size: 1.5rem; letter-spacing: -.028em; }
.ff-cta p { color: var(--on-dark-2); }
.ff-cta p:last-child { margin-bottom: 0; margin-top: 1.5rem; }
.ff-cta__note { font-size: .87rem; color: var(--muted); margin-top: .9rem; }

/* ------------------------------------------------ barre d'action mobile */
.ff-sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(11,26,43,.09);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.ff-sticky-cta.is-on { transform: none; }
.ff-sticky-cta .ff-btn { width: 100%; }
.ff-sticky-cta small { display: block; text-align: center; color: var(--muted); font-size: .74rem; margin-top: 6px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1140px) {
  :root { --rail: 380px; }
  .ff-offer-hero .ff-inner, .ff-offer-grid, .ff-final .ff-inner { gap: 48px; }
}

@media (max-width: 1000px) {
  .ff-offer-hero .ff-inner, .ff-offer-grid, .ff-final .ff-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ff-rail, .ff-offer-aside { position: static; }
  .ff-form--rail { max-width: 620px; }
  .ff-offer-hero h1 { max-width: 17ch; }
  .ff-offer-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
  .ff-aside-card { margin-bottom: 0; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .ff-header-inner { min-height: 66px; gap: 14px; padding-inline: 22px; }
  .ff-burger { display: block; }
  .site-navigation {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); padding: 8px 22px 20px;
  }
  .site-navigation.is-open { display: block; }
  .site-navigation ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-navigation li { border-top: 1px solid var(--line-2); }
  .site-navigation li:first-child { border-top: 0; }
  .site-navigation a { padding: 14px 4px; border-radius: 0; }
  .site-navigation li.is-cta { margin: 12px 0 0; border: 0; }
  .site-navigation li.is-cta > a { text-align: center; }
  .site-navigation .sub-menu { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .ff-inner, .entry-content, .ff-footer-inner, .ff-footer-legal { padding-inline: 22px; }
  .ff-numbers > li, .ff-steps > li { padding-left: 70px; }
  .ff-numbers > li::before, .ff-steps > li::before { width: 46px; }
  .ff-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ff-sticky-cta { display: block; }
  .site-footer { padding-bottom: 70px; }
}

@media (max-width: 620px) {
  .ff-field-row { grid-template-columns: 1fr; gap: 0; }
  .ff-marks { gap: 16px 0; }
  .ff-marks li { padding-right: 22px; margin-right: 22px; }
  .ff-form--rail, .ff-form--band { padding: 24px 20px; }
  .ff-form__actions { flex-direction: column-reverse; align-items: stretch; }
  .ff-form__actions .ff-btn { width: 100%; }
  .ff-hero-actions { flex-direction: column; align-items: stretch; }
  .ff-hero-actions .ff-btn { width: 100%; }
  .ff-footer-nav ul { columns: 1; }
  .ff-inline-cta { flex-direction: column; align-items: stretch; }
  .ff-numbers > li, .ff-steps > li, .ff-checks > li { padding-left: 0; padding-top: 24px; }
  .ff-numbers > li::before, .ff-steps > li::before { position: static; margin-bottom: 14px; }
  .ff-checks > li::before, .ff-checks > li::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .ff-reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .ff-form, .ff-final, .ff-rail, .ff-offer-aside, .ff-sticky-cta { display: none; }
  body { font-size: 11pt; }
  .ff-hero, .ff-band--deep { background: #fff; color: #000; }
  .ff-hero h1 { color: #000; }
  .ff-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ENRICHISSEMENT VISUEL — le corps d'une page d'offre passe sur fond gris,
   les composants deviennent des cartes blanches. Contraste et rythme.
   ========================================================================== */

.ff-offer-body { background: var(--surface); border-bottom: 1px solid var(--line); }
.ff-offer-body .ff-offer-grid { padding-bottom: 4rem; }

/* Marqueur d'accent au-dessus des titres de section */
.ff-offer-grid .entry-content > h2 { position: relative; padding-top: 22px; margin-top: 3rem; }
.ff-offer-grid .entry-content > h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 40px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--acc), #C08F42);
}

/* Listes à vérification — cartes */
.ff-checks { border-top: 0; margin: 2rem 0; }
.ff-checks > li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 24px 26px 24px 62px; margin-bottom: 12px;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.ff-checks > li:last-child { border-bottom: 1px solid var(--line); }
.ff-checks > li:hover { border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-2px); }
.ff-checks > li::before { left: 24px; top: 27px; }
.ff-checks > li::after { left: 32px; top: 33px; }

/* Listes numérotées — cartes avec chiffre en pastille */
.ff-numbers, .ff-steps { border-top: 0; margin: 2rem 0; }
.ff-numbers > li, .ff-steps > li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 26px 28px 26px 108px; margin-bottom: 12px; border-bottom: 1px solid var(--line);
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.ff-numbers > li:hover, .ff-steps > li:hover {
  border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-2px);
}
.ff-numbers > li::before, .ff-steps > li::before {
  left: 26px; top: 24px; width: 56px; height: 42px;
  font-size: 1.2rem; background: var(--acc); border-color: var(--acc); color: #fff;
  border-radius: var(--r2); box-shadow: 0 4px 14px rgba(40,86,138,.28);
}

/* Tableaux et FAQ sur fond blanc */
.ff-offer-body .ff-table-wrap, .ff-band--paper .ff-table-wrap { background: var(--paper); }
.ff-offer-body .ff-faq { border-top: 0; }
.ff-offer-body .ff-faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  margin-bottom: 10px; padding: 0 24px;
}
.ff-offer-body .ff-faq details[open] { border-color: var(--acc-line); box-shadow: var(--sh-2); }

/* Encadré plus affirmé */
.ff-offer-body .ff-note {
  background: var(--paper); border: 1px solid var(--acc-line); border-left: 5px solid var(--acc);
  border-radius: var(--r2); box-shadow: var(--sh-1); max-width: 100%;
}

/* Relance intermédiaire — plus visible */
.ff-inline-cta {
  background: var(--ink); border: 0; color: var(--on-dark);
  border-radius: var(--r3); padding: 26px 30px; position: relative; overflow: hidden;
}
.ff-inline-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(460px 240px at 88% -30%, rgba(40,86,138,.42), transparent 62%);
}
.ff-inline-cta > * { position: relative; z-index: 1; }
.ff-inline-cta p { color: #fff; font-size: 1.12rem; font-weight: 650; letter-spacing: -.02em; }
.ff-inline-cta small { color: var(--on-dark-2); font-weight: 400; }

/* -------------------------------------------------------- engagements */
.ff-pledges {
  background: var(--ink); color: var(--on-dark);
  padding: clamp(3.4rem, 6vw, 5rem) 0; position: relative; overflow: hidden;
}
.ff-pledges::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 380px at 10% -20%, rgba(40,86,138,.34), transparent 62%);
}
.ff-pledges > * { position: relative; z-index: 1; }
.ff-pledges h2 { color: #fff; margin: 0 0 2.4rem; max-width: 18ch; }

.ff-pledge-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ff-pledge {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r2); padding: 26px 24px;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.ff-pledge:hover { border-color: rgba(169,196,221,.44); background: rgba(255,255,255,.07); transform: translateY(-3px); }
.ff-pledge b {
  display: block; font-size: 2.5rem; font-weight: 750; color: #C08F42;
  letter-spacing: -.05em; line-height: 1; margin-bottom: .35em; font-variant-numeric: tabular-nums;
}
.ff-pledge strong { display: block; color: #fff; font-size: 1.02rem; font-weight: 660; margin-bottom: .35em; letter-spacing: -.018em; }
.ff-pledge p { margin: 0; color: var(--on-dark-2); font-size: .92rem; line-height: 1.55; }

@media (max-width: 900px) {
  .ff-numbers > li, .ff-steps > li { padding-left: 84px; }
  .ff-numbers > li::before, .ff-steps > li::before { left: 20px; width: 48px; }
  .ff-checks > li { padding-left: 56px; }
  .ff-checks > li::before { left: 20px; }
  .ff-checks > li::after { left: 28px; }
}

@media (max-width: 620px) {
  .ff-numbers > li, .ff-steps > li, .ff-checks > li { padding: 22px 20px; }
  .ff-numbers > li::before, .ff-steps > li::before { position: static; margin-bottom: 14px; }
  .ff-checks > li::before, .ff-checks > li::after { display: none; }
  .ff-inline-cta { padding: 22px 20px; }
  .ff-offer-grid .entry-content > h2 { margin-top: 2.2rem; }
}

/* ==========================================================================
   PAGE DE DÉPÔT DE BESOIN — réassurance à gauche, formulaire collant à droite
   ========================================================================== */
.ff-landing-hero {
  background: radial-gradient(880px 420px at 10% -12%, var(--acc-soft), transparent 60%), var(--surface);
  border-bottom: 1px solid var(--line);
}
.ff-landing-hero .ff-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--rail);
  gap: 76px; align-items: start; padding-top: 1.4rem; padding-bottom: 4rem;
}
.ff-landing-main { min-width: 0; }
.ff-landing-main h1 { font-size: var(--t-hero); max-width: 15ch; margin-bottom: .3em; }
.ff-landing-main > h2 { position: relative; padding-top: 22px; margin-top: 3.2rem; }
.ff-landing-main > h2::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 40px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--acc), #C08F42);
}
.ff-landing-main > p, .ff-landing-main > ul { max-width: var(--prose); }

/* Les composants passent en cartes blanches, comme sur les pages métier */
.ff-landing-main .ff-numbers { border-top: 0; margin: 2rem 0; }
.ff-landing-main .ff-numbers > li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 26px 28px 26px 108px; margin-bottom: 12px;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.ff-landing-main .ff-numbers > li:hover {
  border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-2px);
}
.ff-landing-main .ff-numbers > li::before {
  left: 26px; top: 24px; width: 56px; height: 42px;
  font-size: 1.2rem; background: var(--acc); border-color: var(--acc); color: #fff;
  border-radius: var(--r2); box-shadow: 0 4px 14px rgba(40,86,138,.28);
}
.ff-landing-main .ff-note {
  background: var(--paper); border: 1px solid var(--acc-line); border-left: 5px solid var(--acc);
  border-radius: var(--r2); box-shadow: var(--sh-1); max-width: 100%;
}
.ff-landing-main .ff-faq { border-top: 0; }
.ff-landing-main .ff-faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  margin-bottom: 10px; padding: 0 24px;
}
.ff-landing-main .ff-faq details[open] { border-color: var(--acc-line); box-shadow: var(--sh-2); }

@media (max-width: 1000px) {
  .ff-landing-hero .ff-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ff-landing-hero .ff-rail { position: static; order: -1; }
  .ff-landing-main h1 { max-width: 18ch; }
}
@media (max-width: 900px) {
  .ff-landing-main .ff-numbers > li { padding-left: 84px; }
  .ff-landing-main .ff-numbers > li::before { left: 20px; width: 48px; }
}
@media (max-width: 620px) {
  .ff-landing-main .ff-numbers > li { padding: 22px 20px; }
  .ff-landing-main .ff-numbers > li::before { position: static; margin-bottom: 14px; }
}

/* ==========================================================================
   PROFILS TYPES — typologies de recherche, jamais des personnes disponibles
   ========================================================================== */
.ff-profiles { margin: 3rem 0; }
.ff-profiles__head { max-width: 62ch; margin-bottom: 1.8rem; }
.ff-profiles__head h2 { margin-top: 0 !important; padding-top: 22px; position: relative; }
.ff-profiles__head h2::before {
  content: ""; position: absolute; left: 0; top: 0; width: 40px; height: 4px;
  border-radius: 4px; background: linear-gradient(90deg, var(--acc), #C08F42);
}
.ff-profiles__note { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.55; }

.ff-profile-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.ff-profile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2);
  padding: 24px; display: flex; flex-direction: column; min-width: 0;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.ff-profile:hover { border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-3px); }

.ff-profile__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ff-profile__mark {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 750; font-size: .95rem; letter-spacing: .04em;
  color: #fff; background: linear-gradient(140deg, var(--acc), #3D6A99);
  /* Volontairement adouci : c'est une typologie, pas une personne */
  text-shadow: 0 0 10px rgba(255,255,255,.55);
  box-shadow: 0 4px 14px rgba(40,86,138,.3);
}
.ff-profile__id { min-width: 0; }
.ff-profile__id b {
  display: block; color: var(--ink); font-size: 1rem; font-weight: 670;
  letter-spacing: -.018em; line-height: 1.25;
}
.ff-profile__id span { font-size: .84rem; color: var(--muted); }
.ff-profile > p { font-size: .93rem; margin: 0 0 16px; line-height: 1.55; }

.ff-profile__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 20px; }
.ff-profile__tags li {
  margin: 0; padding: 5px 11px; border-radius: 100px;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  color: var(--acc-2); font-size: .78rem; font-weight: 600;
}
.ff-profile .ff-btn { margin-top: auto; }
.ff-btn--sm { padding: 11px 20px; font-size: .9rem; }

/* ==========================================================================
   GRILLE GÉOGRAPHIQUE — bibliothèque de bassins et de formules
   ========================================================================== */
.ff-geo-grid {
  display: grid; gap: 12px; margin: 2rem 0;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.ff-geo-link {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r2);
  background: var(--paper); box-shadow: none !important;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.ff-geo-link b { color: var(--ink); font-size: .98rem; font-weight: 660; letter-spacing: -.018em; }
.ff-geo-link span { color: var(--muted); font-size: .82rem; }
.ff-geo-link:hover {
  border-color: var(--acc-line); box-shadow: var(--sh-2); transform: translateY(-2px);
}
.ff-geo-link:hover b { color: var(--acc); }

@media (max-width: 620px) {
  .ff-profile-grid { grid-template-columns: 1fr; }
  .ff-geo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ==========================================================================
   MARQUE — logo fourni, détouré. Pastille claire sur fond sombre.
   ========================================================================== */
.ff-logo-img { display: block; height: 42px; width: auto; flex: none; }
.ff-logo-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; flex: none;
  background: #fff; border-radius: 12px; padding: 6px;
}
.ff-logo-badge .ff-logo-img { height: 38px; }

@media (max-width: 900px) {
  .ff-logo-img { height: 36px; }
  .ff-logo-txt b { font-size: 1rem; }
}

/* ==========================================================================
   CORRECTIF SOUS-MENU — l'espace entre l'entrée et son sous-menu créait une
   zone morte : la souris n'y survolait plus rien et le menu se refermait.
   Le sous-menu est désormais collé à l'entrée, l'écart visuel étant obtenu
   par une marge doublée d'un pont transparent qui prolonge la zone de survol.
   ========================================================================== */
.site-navigation .sub-menu {
  top: 100%;
  margin-top: 8px;
}
.site-navigation .sub-menu::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 9px;
}

/* Ouverture pilotée par le script : tolérance au déplacement de la souris */
.site-navigation li.is-open > .sub-menu { display: flex; }

/* Zone de survol élargie sous l'entrée parente */
.site-navigation li.has-children > a { position: relative; }
.site-navigation li.has-children > a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 10px;
}

@media (max-width: 900px) {
  .site-navigation .sub-menu { margin-top: 0; }
  .site-navigation .sub-menu::before,
  .site-navigation li.has-children > a::before { display: none; }
}

/* ==========================================================================
   ANTI-DÉBORDEMENT — sur mobile, tableau et encarts sortaient du cadre et
   se faisaient couper à droite. Rien ne doit dépasser son conteneur.
   ========================================================================== */

/* Les colonnes de grille doivent pouvoir rétrécir sous leur contenu */
.ff-offer-grid > *,
.ff-offer-hero .ff-inner > *,
.ff-landing-hero .ff-inner > *,
.ff-final .ff-inner > * { min-width: 0; max-width: 100%; }

/* Plafond ferme sur tous les blocs de contenu */
.entry-content > *,
.ff-landing-main > *,
.ff-inline-cta, .ff-note, .ff-cta, .ff-faq, .ff-profiles,
.ff-geo-grid, .ff-numbers, .ff-checks, .ff-marks, .ff-pledge-grid { max-width: 100%; }

/* Mots très longs : on coupe plutôt que de pousser le cadre */
.ff-inline-cta p, .ff-note p, .ff-card p, .ff-profile p,
.ff-numbers p, .ff-checks p, .entry-content p { overflow-wrap: anywhere; }

/* Tableaux : défilement horizontal réel, avec indice visuel */
.ff-table-wrap {
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

@media (max-width: 900px) {
  /* Une seule colonne, sans ambiguïté d'unité */
  .ff-offer-hero .ff-inner,
  .ff-offer-grid,
  .ff-landing-hero .ff-inner,
  .ff-final .ff-inner { grid-template-columns: 100%; }

  /* En-têtes de tableau sur plusieurs lignes : la table tient mieux */
  .entry-content thead th, .ff-table thead th { white-space: normal; }
  .entry-content th, .entry-content td,
  .ff-table th, .ff-table td { padding: 12px 14px; }
  .ff-table { min-width: 520px; }

  .ff-table-wrap {
    position: relative;
    background:
      linear-gradient(to right, var(--paper) 30%, rgba(255,255,255,0)) left / 28px 100% no-repeat,
      linear-gradient(to left,  var(--paper) 30%, rgba(255,255,255,0)) right / 28px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(11,26,43,.13), transparent) left / 12px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(11,26,43,.13), transparent) right / 12px 100% no-repeat,
      var(--paper);
    background-attachment: local, local, scroll, scroll, local;
  }
}

@media (max-width: 620px) {
  .ff-inline-cta { padding: 20px 18px; }
  .ff-inline-cta .ff-btn { width: 100%; }
  .ff-marks li { padding-right: 16px; margin-right: 16px; }
}
