/* =========================================================
   FRED SPECHT — Financement patrimonial pour CGP
   Feuille de style partagee : index.html + faq.html
   Univers Budgetlyss Gold, aligne sur questionnaire.html
   Palette et typographie reprises a l'identique du questionnaire :
     navy-deep #000A15 / navy #0D1B3E / navy-soft #132456
     gold #E3A13D / gold-soft #C9A227 / cream #F5F1E8
     Poppins (titres, interface) + Georgia (texte courant)
   Registre : premium bancaire, epure, confiant, rassurant.
   ========================================================= */

/* ---------------------------------------------------------
   1. Variables
   --------------------------------------------------------- */
:root {
  /* Palette exacte du questionnaire */
  --navy-deep: #000A15;
  --navy:      #0D1B3E;
  --navy-soft: #132456;
  --gold:      #E3A13D;
  --gold-soft: #C9A227;
  --cream:     #F5F1E8;
  --line-dark: rgba(245, 241, 232, .14);

  /* Extensions necessaires aux fonds clairs de la page */
  --navy-mid:  #1E3A6E;
  --navy-pale: #EDF0F6;
  --gold-100:  #F3E2C2;
  --gold-050:  #FBF4E6;
  --bronze:    #8F5D0C;   /* seule variante doree lisible en texte sur fond clair */
  --white:     #FFFFFF;
  --sand:      #EFEADF;

  /* Encre sur fond clair */
  --ink:      #101B33;
  --ink-soft: #4F5A72;
  --ink-mute: #666E82;   /* assombri pour passer le contraste AA sur blanc et sur creme */
  --line:     #E1E5EE;

  /* Rythme */
  --radius-sm: 9px;
  --radius:    14px;
  --radius-lg: 18px;

  --shadow-xs: 0 1px 2px rgba(0, 10, 21, .06);
  --shadow-sm: 0 4px 16px rgba(0, 10, 21, .08);
  --shadow:    0 16px 44px rgba(0, 10, 21, .12);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .7);

  --font-ui:   "Poppins", Arial, Helvetica, sans-serif;
  --font-text: Georgia, "Times New Roman", serif;

  --maxw: 1180px;
  --maxw-narrow: 800px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);

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

/* ---------------------------------------------------------
   2. Reset et bases
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--navy-mid); text-underline-offset: 3px; text-decoration-color: rgba(30, 58, 110, .35); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0 0 .65em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.14; letter-spacing: -.022em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

strong { font-weight: 700; color: var(--navy); }

::selection { background: var(--gold-100); color: var(--navy-deep); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: var(--cream);
  font-family: var(--font-ui); font-size: .85rem;
  padding: .8rem 1.2rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------
   3. Mise en page
   --------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(3.4rem, 8vw, 6.4rem); position: relative; }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }

.section--navy {
  background: linear-gradient(170deg, var(--navy) 0%, #0A1633 100%);
  color: rgba(245, 241, 232, .8);
}
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--cream); }
.section--navy a { color: var(--gold); }
.section--navy::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 10% 0%, rgba(227, 161, 61, .09), transparent 62%),
    radial-gradient(760px 420px at 94% 100%, rgba(19, 36, 86, .7), transparent 60%);
}
.section--navy > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-ui);
  font-size: .69rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); flex: none; }
.section--navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-soft); }

.lead { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); max-width: 64ch; }
.section--navy .lead { color: rgba(245, 241, 232, .78); }

.section__head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3.1rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lead { margin-inline: auto; }

.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.55rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

/* ---------------------------------------------------------
   4. Boutons
   --------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-ui); font-size: .875rem; font-weight: 600;
  letter-spacing: .02em;
  padding: .92rem 1.6rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--navy-deep);
  text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .35s var(--ease), filter .2s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  box-shadow: 0 8px 22px rgba(227, 161, 61, .24);
}
.btn::after {
  content: "";
  position: absolute; top: 0; left: -120%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg);
  transition: left .75s var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 30px rgba(227, 161, 61, .3); color: var(--navy-deep); }
.btn:hover::after { left: 135%; }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--navy);
  border-color: rgba(13, 27, 62, .24); box-shadow: none;
}
.btn--ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); filter: none; box-shadow: var(--shadow-sm); }

.btn--ghost-light {
  background: transparent; color: var(--cream);
  border-color: rgba(245, 241, 232, .3); box-shadow: none;
}
.btn--ghost-light:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); filter: none; }

.btn--sm { padding: .66rem 1.15rem; font-size: .8rem; }
.btn--lg { padding: 1.08rem 2rem; font-size: .96rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-note { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-mute); margin: .9rem 0 0; }
.section--navy .btn-note, .hero .btn-note { color: rgba(245, 241, 232, .55); }

/* ---------------------------------------------------------
   5. Barre de progression de lecture
   --------------------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
}

/* ---------------------------------------------------------
   6. En-tete
   --------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 1.4rem; min-height: 76px; transition: min-height .4s var(--ease); }
.header.is-stuck {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(0, 10, 21, .06);
}
.header.is-stuck .header__inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.brand__mark {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--gold);
  box-shadow: 0 0 12px 2px rgba(227, 161, 61, .55);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--font-ui); font-size: 1.02rem; font-weight: 600;
  color: var(--navy); letter-spacing: .01em;
}
.brand__role {
  font-family: var(--font-ui); font-size: .63rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}

.nav { display: flex; align-items: center; gap: 1.45rem; margin-left: auto; }
.nav__link {
  position: relative; font-family: var(--font-ui);
  font-size: .855rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: .3rem 0;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .38s var(--ease);
}
.nav__link:hover { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link[aria-current="page"] { color: var(--navy); }

.header__cta { display: flex; align-items: center; gap: .55rem; flex: none; }

.burger {
  display: none; flex: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 19px; height: 1.6px; margin: 4px auto;
  background: var(--navy); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .header { background: rgba(255, 255, 255, .93); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
}

.mobile-menu {
  position: fixed; inset: 76px 0 auto; z-index: 149;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 1rem var(--pad) 1.5rem;
  display: grid; gap: .2rem;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  display: block; padding: .75rem 0; font-family: var(--font-ui);
  font-weight: 500; font-size: .98rem; color: var(--navy);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: .9rem; width: 100%; }

/* ---------------------------------------------------------
   7. Hero
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(7.5rem, 14vw, 10.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 1100px 620px at 50% -8%, var(--navy-soft) 0%, var(--navy-deep) 68%);
  color: rgba(245, 241, 232, .8);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(760px 460px at 8% 8%, rgba(227, 161, 61, .11), transparent 62%);
}
.hero::after {
  /* trame fine, apporte de la matiere sans recourir a une image */
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 241, 232, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 241, 232, .04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 38%, #000 22%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 22%, transparent 76%);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero__grid {
  display: grid; gap: clamp(2rem, 5vw, 3.4rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
}
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 { color: var(--cream); margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero__lead {
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  color: rgba(245, 241, 232, .8);
  max-width: 55ch; margin-bottom: 1.9rem;
}
.hero__caution {
  display: inline-flex; align-items: center; gap: .7rem;
  margin-top: 2.1rem; padding: .65rem 1.1rem;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: rgba(245, 241, 232, .04);
  font-family: var(--font-ui); font-size: .78rem;
  color: rgba(245, 241, 232, .7);
}
.hero__caution b { color: var(--gold-soft); font-weight: 600; }

/* Emplacements visuels en attente des photographies reelles */
.media-slot {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(245, 241, 232, .06), rgba(245, 241, 232, .01)),
    linear-gradient(180deg, var(--navy) 0%, #0A1633 100%);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center; padding: 2rem;
}
.media-slot::before {
  content: ""; position: absolute; inset: 13px; pointer-events: none;
  border: 1px solid rgba(227, 161, 61, .32); border-radius: calc(var(--radius-lg) - 7px);
}
.media-slot::after {
  content: ""; position: absolute; top: -40%; left: -10%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(227, 161, 61, .08) 0%, transparent 65%);
  pointer-events: none;
}
.media-slot__label {
  position: relative; z-index: 1;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
  color: rgba(245, 241, 232, .45); line-height: 2;
}
.media-slot--wide { aspect-ratio: 16 / 10; }
.media-slot--photo { padding: 0; background: var(--navy-deep); }
.media-slot--photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  position: relative; z-index: 1;
}
.media-slot--light {
  background: linear-gradient(180deg, var(--white), var(--sand));
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.media-slot--light::before { border-color: rgba(227, 161, 61, .42); }
.media-slot--light::after { display: none; }
.media-slot--light .media-slot__label { color: var(--ink-mute); }

/* ---------------------------------------------------------
   8. Bandeau de chiffres
   --------------------------------------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; margin-top: clamp(2.6rem, 6vw, 4rem);
}
.stat { padding: 1.5rem 1.4rem; background: rgba(245, 241, 232, .03); }
.stat__value {
  font-family: var(--font-ui); font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.4rem); line-height: 1;
  color: var(--gold); margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: .5em; font-weight: 600; letter-spacing: .04em; margin-left: .18em; }
.stat__label { font-size: .88rem; color: rgba(245, 241, 232, .7); line-height: 1.55; }

/* ---------------------------------------------------------
   9. Engagement de non concurrence (bloc signature)
   --------------------------------------------------------- */
.pledge {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy) 0%, #0A1633 100%);
  border: 1px solid rgba(227, 161, 61, .3);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.8rem, 4.5vw, 3.3rem);
  color: rgba(245, 241, 232, .82);
}
.pledge::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold), var(--gold-soft));
}
.pledge::after {
  content: ""; position: absolute; top: -40%; left: -10%; width: 60%; height: 180%;
  background: radial-gradient(circle, rgba(227, 161, 61, .08) 0%, transparent 65%);
  pointer-events: none;
}
.pledge > * { position: relative; z-index: 1; }
.pledge h2 { color: var(--cream); }
.pledge h2 em { font-style: normal; color: var(--gold); }
.pledge__grid {
  display: grid; gap: clamp(1.2rem, 3vw, 2.3rem); margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.pledge__item { padding-top: 1.05rem; border-top: 1px solid rgba(227, 161, 61, .3); }
.pledge__item h3 {
  font-size: .92rem; font-weight: 600; color: var(--gold-soft);
  margin-bottom: .5rem; letter-spacing: .01em;
}
.pledge__item p { font-size: .93rem; color: rgba(245, 241, 232, .72); }
.pledge__seal {
  display: inline-block; margin-top: 2rem; padding-left: .95rem;
  border-left: 2px solid var(--gold);
  font-size: .89rem; font-style: italic; color: rgba(245, 241, 232, .62);
}

/* ---------------------------------------------------------
   10. Cartes
   --------------------------------------------------------- */
.card {
  position: relative; overflow: hidden; height: 100%;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #D3D9E5; }
.card:hover::before { transform: scaleX(1); }

.card__tag {
  display: inline-block; margin-bottom: .85rem;
  font-family: var(--font-ui); font-size: .655rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--bronze); background: var(--gold-050);
  border: 1px solid var(--gold-100); padding: .3rem .6rem; border-radius: 5px;
}
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card__meta {
  margin-top: 1.05rem; padding-top: .9rem; border-top: 1px dashed var(--line);
  font-family: var(--font-ui); font-size: .78rem; color: var(--ink-mute);
}

/* ---------------------------------------------------------
   11. Etudes de cas
   --------------------------------------------------------- */
.case {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case__head { background: linear-gradient(150deg, var(--navy-soft), var(--navy)); padding: 1.25rem 1.45rem; }
.case__ref {
  display: block; margin-bottom: .4rem;
  font-family: var(--font-ui); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
}
.case__title { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin: 0; color: var(--cream); }
.case__body { padding: 1.35rem 1.45rem 1.55rem; flex: 1; display: flex; flex-direction: column; }
.case__row { margin-bottom: .95rem; }
.case__k {
  display: block; margin-bottom: .22rem;
  font-family: var(--font-ui); font-size: .655rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--ink-mute);
}
.case__v { font-size: .94rem; color: var(--ink); margin: 0; line-height: 1.6; }
.case__foot {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 600; color: var(--navy-soft);
}
.case__foot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--gold); box-shadow: 0 0 0 4px var(--gold-050);
}

/* ---------------------------------------------------------
   12. Timeline de la methode
   --------------------------------------------------------- */
.timeline { position: relative; margin-top: clamp(1.6rem, 4vw, 2.6rem); padding-left: 2.6rem; }
.timeline__rail {
  position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(245, 241, 232, .16); border-radius: 2px; overflow: hidden;
}
.section--cream .timeline__rail, .section--sand .timeline__rail { background: var(--line); }
.timeline__fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transition: height .2s linear;
}
.step { position: relative; padding-bottom: clamp(1.7rem, 4vw, 2.5rem); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: -2.6rem; top: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); border: 2px solid rgba(245, 241, 232, .22);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease);
}
.section--cream .step::before, .section--sand .step::before { background: var(--cream); border-color: var(--line); }
.step.is-active::before { border-color: var(--gold); background: var(--gold); transform: scale(1.14); }
.step__when {
  display: inline-block; margin-bottom: .35rem;
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.section--cream .step__when, .section--sand .step__when { color: var(--bronze); }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .95rem; margin: 0; }
.section--navy .step p { color: rgba(245, 241, 232, .74); }

/* ---------------------------------------------------------
   13. Objections traitees
   --------------------------------------------------------- */
.objection { border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.4rem; margin-bottom: 2rem; }
.objection:last-child { margin-bottom: 0; }
.objection__q {
  font-family: var(--font-text); font-style: italic;
  font-size: clamp(1.08rem, 2vw, 1.26rem); font-weight: normal;
  color: var(--navy); margin: 0 0 .55rem; letter-spacing: 0; line-height: 1.45;
}
.section--navy .objection__q { color: var(--cream); }
.objection__a { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.section--navy .objection__a { color: rgba(245, 241, 232, .76); }

/* ---------------------------------------------------------
   14. Listes a puces doree
   --------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .72rem; }
.ticks li { position: relative; padding-left: 1.85rem; margin: 0; font-size: .96rem; color: var(--ink-soft); }
.section--navy .ticks li { color: rgba(245, 241, 232, .78); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg);
}

/* ---------------------------------------------------------
   15. Bandeau partenaires bancaires
   --------------------------------------------------------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 1rem; margin-top: 2rem; }
.logo-slot {
  height: 74px; border-radius: var(--radius-sm);
  border: 1px dashed rgba(245, 241, 232, .22); background: rgba(245, 241, 232, .03);
  display: grid; place-items: center; text-align: center; padding: .5rem;
  font-family: var(--font-ui); font-size: .66rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 241, 232, .58);
}

/* ---------------------------------------------------------
   16. Presentation de Fred
   --------------------------------------------------------- */
.about__grid {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
}
@media (max-width: 880px) { .about__grid { grid-template-columns: 1fr; } }

.signature { font-family: var(--font-text); font-style: italic; font-size: 1.08rem; color: var(--navy-soft); margin-top: 1.5rem; }

.partner-badge {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.7rem;
  padding: 1rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white);
}
.partner-badge__slot {
  width: 92px; height: 46px; flex: none; padding: .2rem;
  border: 1px dashed var(--line); border-radius: 5px;
  display: grid; place-items: center; text-align: center; line-height: 1.35;
  font-family: var(--font-ui); font-size: .56rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-mute);
}
.partner-badge p { font-size: .87rem; color: var(--ink-soft); margin: 0; }

/* ---------------------------------------------------------
   17. Appel a l'action final
   --------------------------------------------------------- */
.cta-paths {
  display: grid; gap: 1.15rem; margin-top: 2.5rem; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.cta-path {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 1.7rem 1.55rem; background: rgba(245, 241, 232, .04);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.cta-path:hover { border-color: rgba(227, 161, 61, .45); background: rgba(245, 241, 232, .07); transform: translateY(-3px); }
.cta-path--primary { border-color: rgba(227, 161, 61, .45); background: rgba(227, 161, 61, .08); }
.cta-path__rank {
  margin-bottom: .7rem;
  font-family: var(--font-ui); font-size: .655rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft);
}
.cta-path h3 { color: var(--cream); font-size: 1.18rem; margin-bottom: .5rem; }
.cta-path p { font-size: .92rem; color: rgba(245, 241, 232, .74); margin-bottom: 1.4rem; }
.cta-path .btn { margin-top: auto; width: 100%; }

/* ---------------------------------------------------------
   18. Pied de page
   --------------------------------------------------------- */
.footer {
  background: var(--navy-deep); color: rgba(245, 241, 232, .6);
  padding-block: clamp(2.8rem, 6vw, 4rem) 1.9rem; font-size: .89rem;
}
.footer__grid {
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
  padding-bottom: 2.1rem; border-bottom: 1px solid rgba(245, 241, 232, .1);
}
.footer h4 {
  font-family: var(--font-ui); font-size: .69rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: .9rem;
}
.footer a { color: rgba(245, 241, 232, .72); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer .brand__name { color: var(--cream); }
.footer .brand__role { color: rgba(245, 241, 232, .48); }
.footer__tagline {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em;
  color: rgba(245, 241, 232, .42); margin: 1.1rem 0 0;
}
.footer__tagline b { color: var(--gold-soft); font-weight: 600; }
.footer__bottom {
  padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem;
  justify-content: space-between;
  font-family: var(--font-ui); font-size: .76rem; color: rgba(245, 241, 232, .42);
}

/* ---------------------------------------------------------
   19. Barre de conversion mobile
   --------------------------------------------------------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: none; gap: .55rem;
  padding: .65rem var(--pad) calc(.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(115%); transition: transform .4s var(--ease);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar .btn { flex: 1; padding-inline: .5rem; font-size: .78rem; }
@media (max-width: 760px) { .mobile-bar { display: flex; } }

/* ---------------------------------------------------------
   20. FAQ
   --------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-top: clamp(7rem, 13vw, 9.5rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  background: radial-gradient(ellipse 1000px 560px at 50% -10%, var(--navy-soft) 0%, var(--navy-deep) 68%);
  color: rgba(245, 241, 232, .8);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 400px at 10% 0%, rgba(227, 161, 61, .11), transparent 62%);
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); }
.page-hero .lead { color: rgba(245, 241, 232, .78); }

.breadcrumb { font-family: var(--font-ui); font-size: .78rem; color: rgba(245, 241, 232, .5); margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(245, 241, 232, .72); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.faq-layout {
  display: grid; gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: minmax(0, 248px) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 940px) { .faq-layout { grid-template-columns: 1fr; } }

.toc {
  position: sticky; top: 92px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; background: var(--white); box-shadow: var(--shadow-xs);
}
@media (max-width: 940px) { .toc { position: static; } }
.toc h2 {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .85rem;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: .25rem; }
.toc a {
  display: block; padding: .35rem 0 .35rem .8rem;
  font-family: var(--font-ui); font-size: .84rem; color: var(--ink-soft);
  text-decoration: none; border-left: 2px solid var(--line);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.toc a:hover, .toc a.is-current { color: var(--navy); border-left-color: var(--gold); }

.faq-group { margin-bottom: clamp(2.4rem, 5vw, 3.4rem); scroll-margin-top: 100px; }
.faq-group > h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  padding-bottom: .6rem; margin-bottom: 1.3rem; border-bottom: 1px solid var(--line);
}
.faq-group__intro { font-size: .96rem; color: var(--ink-soft); margin-bottom: 1.4rem; }

.qa {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); margin-bottom: .75rem; box-shadow: var(--shadow-xs);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
  scroll-margin-top: 100px;
}
.qa:hover { border-color: #D3D9E5; }
.qa.is-open { border-color: rgba(227, 161, 61, .5); box-shadow: var(--shadow-sm); }

.qa__q { margin: 0; }
.qa__btn {
  width: 100%; display: flex; align-items: flex-start; gap: 1rem;
  text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-ui); font-size: clamp(.98rem, 1.7vw, 1.08rem);
  font-weight: 600; color: var(--navy); line-height: 1.45;
}
.qa__icon {
  flex: none; width: 23px; height: 23px; margin-top: 2px; position: relative;
  border-radius: 50%; border: 1.5px solid var(--gold);
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--bronze); border-radius: 2px; transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.qa__icon::before { width: 10px; height: 1.6px; }
.qa__icon::after  { width: 1.6px; height: 10px; }
.qa.is-open .qa__icon { background: var(--gold); transform: rotate(90deg); }
.qa.is-open .qa__icon::after { opacity: 0; }
.qa.is-open .qa__icon::before { background: var(--navy-deep); }

.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--ease); }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
.qa__inner { overflow: hidden; }
.qa__content { padding: 0 1.25rem 1.3rem; color: var(--ink-soft); font-size: .96rem; }
.qa__content > p:first-child {
  font-size: 1.01rem; color: var(--ink);
  border-left: 3px solid var(--gold); padding-left: 1rem; margin-bottom: 1.05rem;
}
.qa__content h3, .qa__content h4 {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 600;
  color: var(--navy-soft); margin: 1.25rem 0 .45rem; letter-spacing: .01em;
}
.qa__content ul { margin: .8rem 0 1rem; }
.qa__content li { font-size: .95rem; }

.table-wrap { overflow-x: auto; margin: 1.05rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 470px; }
th, td { padding: .68rem .9rem; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--navy-pale); color: var(--navy);
  font-family: var(--font-ui); font-weight: 600; font-size: .78rem; letter-spacing: .02em;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FAFBFD; }

.note-box {
  border: 1px solid var(--gold-100); background: var(--gold-050);
  border-radius: var(--radius-sm); padding: .95rem 1.15rem;
  font-size: .89rem; color: #57420F; margin: 1.15rem 0;
}
.note-box strong { color: #3B2C08; }

.updated { font-family: var(--font-ui); font-size: .78rem; color: var(--ink-mute); margin-top: 2rem; }

/* ---------------------------------------------------------
   21. Reveal au defilement
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   22. Mouvement reduit et impression
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .btn::after { display: none; }
  .progress { display: none; }
}

@media print {
  .header, .mobile-bar, .progress, .mobile-menu, .btn, .toc { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  .qa__panel { grid-template-rows: 1fr !important; }
  .section--navy, .hero, .page-hero, .footer { background: #fff !important; color: #000 !important; }
}

/* ---------------------------------------------------------
   Correctifs de lisibilite (20 nov 2026)
   --------------------------------------------------------- */
/* Texte des boutons dores lisible dans les sections bleu nuit */
.section--navy a.btn, .section--navy a.btn:hover { color: var(--navy-deep); }
.section--navy a.btn--ghost-light { color: var(--cream); }
.section--navy a.btn--ghost-light:hover { color: var(--navy-deep); }

/* En-tete toujours fonce, textes clairs */
.header, .header.is-stuck {
  background: rgba(0, 10, 21, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(245, 241, 232, .1);
}
.header .brand__name { color: var(--cream); }
.header .brand__role { color: var(--gold-soft); }
.header .nav__link { color: rgba(245, 241, 232, .88); }
.header .nav__link:hover, .header .nav__link[aria-current="page"] { color: var(--gold); }
.header .btn--ghost { color: var(--cream); border-color: rgba(245, 241, 232, .4); }
.header .btn--ghost:hover { background: var(--cream); color: var(--navy-deep); border-color: var(--cream); }
.header .burger { background: transparent; border-color: rgba(245, 241, 232, .3); }
.header .burger span { background: var(--cream); }
@media (max-width: 980px) {
  .header { background: rgba(0, 10, 21, .95); }
}
/* Pied de page : meme marque claire */
.footer .brand__name { color: var(--cream); }
/* Bouton LinkedIn mis en avant */
.btn-linkedin { background: #0A66C2; color: #fff; box-shadow: 0 8px 22px rgba(10, 102, 194, .25); margin: .4rem 0 1.4rem; }
.btn-linkedin:hover { color: #fff; box-shadow: 0 14px 30px rgba(10, 102, 194, .32); }
/* Logo Budgetlyss Gold */
.partner-badge__logo { width: 150px; height: auto; flex: none; display: block; }
@media (max-width: 520px) { .partner-badge { flex-direction: column; align-items: flex-start; } }
