/* ============================================================
   RepèreBudget — base.css
   Palette: Forêt #1B2E1F | Vert #2F6B4F | Or #C9962C
            Light bg #F8FAFC | White #FFFFFF
   Style: Modern fintech, clean editorial — unique per project
   ============================================================ */

:root {
  --dark:      #1B2E1F;
  --dark-mid:  #24402A;
  --dark-lt:   #3C6144;
  --teal:      #2F6B4F;
  --teal-lt:   #6FA98A;
  --teal-dk:   #23543D;
  --amber:     #C9962C;
  --amber-lt:  #E0BE6E;
  --white:     #FFFFFF;
  --light:     #F7FAFA;
  --mid:       #E1E8E7;
  --text:      #1B2E1F;
  --muted:     #5C6B7A;
  --danger:    #EF4444;
  --success:   #10B981;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.05), 0 10px 40px rgba(0,0,0,.12);
  --transition:180ms ease;
  --max-w:     1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: var(--teal-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem);  font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem);   font-weight: 600; }
p  { font-size: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-dk);
  margin-bottom: .75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 2px;
  background: var(--teal-dk);
  border-radius: 2px;
}

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section    { padding: 80px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,148,136,.35);
}
.btn-primary:hover { background: var(--teal-dk); box-shadow: 0 6px 20px rgba(13,148,136,.45); text-decoration: none; }

.btn-amber {
  background: var(--amber);
  color: var(--dark);
  box-shadow: 0 4px 14px rgba(245,166,35,.3);
}
.btn-amber:hover { background: var(--amber-lt); text-decoration: none; }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* ── Top bar ── */
.top-bar {
  background: var(--teal);
  color: rgba(255,255,255,.95);
  font-size: .75rem;
  text-align: center;
  padding: .45rem 20px;
  letter-spacing: .02em;
}

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--mid);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -.02em;
}
.logo em { color: var(--teal); font-style: normal; }
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 32px;
  height: 32px;
  margin-right: .5rem;
  flex-shrink: 0;
  display: block;
}

/* ── Hero ── */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 540px;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-glow-2 {
  position: absolute;
  bottom: 0; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, black 52%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.5) 22%, black 52%);
}
.hero-content {
  position: relative;
  text-align: left;
  max-width: 560px;
  margin: 0;
  padding-bottom: 56px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(13,148,136,.18);
  border: 1px solid rgba(94,234,212,.3);
  color: var(--teal-lt);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  letter-spacing: .03em;
}
.hero-badge i, .hero-badge svg { width: 14px; height: 14px; stroke-width: 2; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 strong { color: var(--amber); font-weight: 700; }
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  margin: 0 0 2.25rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-note {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  padding-bottom: 40px;
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--dark-mid);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
}

/* ── Stats row ── */
.stats-row {
  background: var(--light);
  padding: 32px 0;
  border-bottom: 1px solid var(--mid);
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.03em;
}
.stat-item .desc {
  font-size: .78rem;
  color: var(--muted);
  max-width: 150px;
  line-height: 1.4;
  margin-top: .2rem;
}

/* ── Check grid (3 questions) ── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.check-card {
  background: var(--light);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 24px;
}
.check-num {
  width: 32px; height: 32px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 12px;
}
.check-card p { color: var(--text); font-size: .92rem; line-height: 1.6; }

.section-head { max-width: 640px; margin: 0 auto 2rem; text-align: center; }
.section-head h2 { color: var(--dark); margin-bottom: .75rem; }
.section-head p { color: var(--muted); line-height: 1.7; }
.section-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dk); margin-bottom: .75rem;
}
.section-alt { background: var(--light); }

/* ── Steps grid ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 32px; height: 32px;
  background: var(--dark);
  color: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  margin-bottom: 12px;
}
.step-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--teal-dk); margin-bottom: .4rem;
}
.step-card h3 { color: var(--dark); margin-bottom: .4rem; }
.step-card p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* ── Includes list ── */
.includes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.includes-item {
  display: flex;
  gap: 16px;
  background: var(--light);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 22px;
}
.includes-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: 10px;
  color: var(--teal-dk);
}
.includes-icon svg { width: 20px; height: 20px; }
.includes-item h4 { color: var(--dark); font-size: .98rem; margin-bottom: .3rem; }
.includes-item p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* ── Before grid ── */
.before-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.before-card {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 24px;
}
.before-card h3 { color: var(--dark); margin-bottom: .5rem; font-size: 1rem; }
.before-card p { color: var(--muted); font-size: .87rem; line-height: 1.65; }

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dk) 0%, var(--dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.7); max-width: 500px; margin: 0 auto 2rem; }
.steps-inline {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.step-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.75);
}
.step-inline-num {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}

/* ── Lead Form ── */
.form-section { background: var(--white); }
.form-container,
.form-row.form-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
.form-intro h2, .form-left h2 { color: var(--dark); margin-bottom: .75rem; }
.form-intro p, .form-left p  { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.form-intro ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.form-intro ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--muted);
}
.form-intro ul li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.form-trust-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.form-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: var(--muted);
}
.form-trust-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.form-card {
  background: var(--light);
  border: 1px solid var(--mid);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-card h3 { color: var(--dark); margin-bottom: 1.5rem; font-size: 1.1rem; }
.form-field, .form-group { margin-bottom: 14px; }
.form-field label, .form-group label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.form-field input, .form-field select,
.form-group input, .form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--mid);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
}
.form-field input:focus, .form-field select:focus,
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--teal); }
.form-field input.error, .form-group input.error { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .72rem; margin-top: 4px; display: none; }
.field-error.visible { display: block; }
#consent-error { display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-consent, .form-check-group {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0;
}
.form-consent input, .form-check-group input { margin-top: 2px; flex-shrink: 0; accent-color: var(--teal); }
.form-submit, .btn-submit { width: 100%; justify-content: center; font-size: 1rem; padding: .95rem; margin-top: .25rem; }
.form-note, .form-meta { font-size: .7rem; color: var(--muted); text-align: center; margin-top: .6rem; line-height: 1.5; }
.form-meta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.form-error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .82rem;
  color: #991B1B;
  margin-bottom: 14px;
}
#form-success { display: none; text-align: center; padding: 20px 0; }
#form-success.visible { display: block; }
#form-success .ok-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: rgba(16,185,129,.12); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--success); font-size: 1.6rem; font-weight: 700;
}
#form-success h3 { color: var(--dark); margin-bottom: .5rem; }
#form-success ul { list-style: none; text-align: left; margin-top: 1rem; color: var(--muted); font-size: .85rem; display: flex; flex-direction: column; gap: .4rem; }

/* ── FAQ ── */
.faq-section { background: var(--light); }
.faq-section h2 { color: var(--dark); text-align: center; margin-bottom: 2rem; }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--dark);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .plus { color: var(--teal); font-size: 1.1rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 500px; padding: 0 20px 18px; }
.faq-a p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.faq-a a { color: var(--teal-dk); }

/* ── Final CTA ── */
.final-cta { text-align: center; }
.final-cta h2 { color: var(--dark); margin-bottom: 1rem; }

/* ── Footer ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 56px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--white); margin-bottom: .75rem; }
.footer-brand p { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 320px; }
.footer-col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: .85rem; font-weight: 600; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-col ul li { font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-col ul li a:hover { color: var(--teal-lt); text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 0 0 24px; }

.amf-box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  line-height: 1.65;
  margin-bottom: 20px;
}
.amf-box strong { color: rgba(255,255,255,.5); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  font-size: .68rem;
  color: rgba(255,255,255,.3);
  line-height: 1.65;
}
.footer-bottom a { color: rgba(255,255,255,.45); }

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  max-width: 560px;
  margin: 0 auto;
}
.cookie-inner { display: flex; flex-direction: column; gap: 14px; }
.cookie-text { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.55; }
.cookie-text a { color: var(--teal-lt); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-btn {
  padding: .6rem 1.35rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.cookie-btn-accept { background: var(--teal); color: var(--white); border: 1.5px solid var(--teal); }
.cookie-btn-reject { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }

/* ── Legal pages ── */
.legal-page { max-width: 800px; margin: 60px auto; padding: 0 24px; }
.legal-page h1 { color: var(--dark); margin-bottom: 1.5rem; }
.legal-page h2 { color: var(--dark); margin: 2rem 0 .75rem; font-size: 1.15rem; }
.legal-page p  { color: var(--muted); margin-bottom: .75rem; line-height: 1.7; }
.legal-page ul { margin: .5rem 0 .75rem 1.5rem; color: var(--muted); }
.legal-page ul li { margin-bottom: .35rem; }
.legal-page a { color: var(--teal-dk); }
.legal-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .form-container, .form-row.form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .check-grid, .before-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .includes-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 56px 0; }
  .hero { padding: 64px 0 0; }
  .hero-photo { display: none; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .steps-inline { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .stats-inner { gap: 24px; }
  .steps-grid { grid-template-columns: 1fr; }
}
