/* ===== BOURGEAIS CONSULTING — direction visuelle "quiet luxury" (reprise du design GP Invest) ===== */
:root {
  --navy: #234B3C;
  --navy-deep: #12261E;
  --gold: #BD6B41;
  --gold-light: #DDA07D;
  --cream: #F6F2E9;
  --paper: #ffffff;
  --ink: #211E19;
  --muted: #746C60;
  --line: #E4DDCD;
  --radius: 16px;
  --shadow: 0 14px 34px -16px rgba(18, 38, 30, 0.28);
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--navy); }

p { margin: 0 0 1em 0; color: var(--ink); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.grid-3 .reveal:nth-child(2), .grid-4 .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .grid-4 .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #c9d3cb; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #c9d3cb; transition: color .15s ease; }
.topbar a:hover { color: var(--gold-light); }

/* ---------- Header ---------- */
header.site {
  background: rgba(246, 242, 233, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
header.site.scrolled {
  background: rgba(246, 242, 233, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(18,38,30,.35);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
  transition: padding .25s ease;
}
header.site.scrolled .wrap { padding-top: 9px; padding-bottom: 9px; }

.brand { display: flex; align-items: center; gap: 9px; }
.brand-icon { flex-shrink: 0; height: 32px; width: auto; display: block; transition: height .25s ease; }
header.site.scrolled .brand-icon { height: 26px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word .b1 {
  font-family: 'Baloo 2', 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 18.5px;
  color: var(--navy-deep);
  letter-spacing: .1px;
  white-space: nowrap;
  transition: font-size .25s ease;
}
header.site.scrolled .brand-word .b1 { font-size: 16.5px; }
.brand-word .b1 .dot { color: var(--gold); }
.brand-word .b2 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  font-size: 8.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  white-space: nowrap;
}

nav.main { display: flex; gap: 18px; align-items: center; flex-shrink: 1; min-width: 0; }
nav.main a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--navy-deep);
  padding: 6px 0;
  white-space: nowrap;
}
nav.main a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right .25s var(--ease);
}
nav.main a:hover::after, nav.main a.active::after { right: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); background: var(--navy-deep); box-shadow: 0 18px 34px -16px rgba(18,38,30,.45); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { transform: translateY(-2px); background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-video { background: var(--navy-deep); color: #fff; }
.btn-video:hover { transform: translateY(-2px); background: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); background: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Hero (accueil) ---------- */
.hero {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  padding: 68px 0 60px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero h1 { font-size: 46px; margin-bottom: 20px; }
.hero .lead { font-size: 17.5px; color: var(--muted); max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badge {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  transition: border-color .2s ease, transform .2s ease;
}
.badge:hover { border-color: var(--gold); transform: translateY(-1px); }

.hero-portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--navy);
  transition: transform .5s var(--ease);
}
.hero-portrait:hover { transform: translateY(-4px); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Bandeau habilitations ---------- */
.credentials-bar { background: var(--navy-deep); color: #cddbd2; }
.credentials-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: center;
  padding: 15px 28px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2px;
  text-align: center;
}
.credentials-bar strong { color: var(--gold-light); font-weight: 600; }

/* ---------- Page header (sous-pages) ---------- */
.page-header {
  background: var(--navy-deep);
  color: #fff;
  padding: 58px 0;
  position: relative;
  overflow: hidden;
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header h1 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.page-header p { color: #cddbd2; max-width: 60ch; margin: 0; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.alt { background: var(--paper); }
section.tight { padding: 48px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold);
  font-family: 'Newsreader', serif;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- Graphiques & tableaux pédagogiques ---------- */
.chart-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 10px;
}
.chart-box svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  padding-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.stat-row { margin-top: 20px; }
.stat-card { text-align: center; }
.stat-card .value {
  font-family: 'Newsreader', serif;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 4px;
}
.stat-card .value.accent { color: var(--gold); }
.stat-card .label { font-size: 13.5px; color: var(--muted); }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 8px 0 0;
}
.rate-table th, .rate-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.rate-table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--navy-deep);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.rate-table td.num, .rate-table th.num { text-align: right; }
.rate-table tr:last-child td { border-bottom: none; }

.example-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 18px;
}
.example-box h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gold);
  margin-bottom: 14px;
}
.example-box .rate-table { background: transparent; }
.example-box .rate-table th { background: rgba(255,255,255,.5); }

.note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin-top: 14px;
}

/* ---------- Liens utiles : grandes cartes plateformes ---------- */
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 20px 24px;
  min-height: 130px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s ease;
}
.link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.link-card.ref-link { min-height: auto; padding: 16px 14px; gap: 4px; }
.link-card.ref-link strong { font-size: 14px; font-weight: 600; color: var(--navy-deep); }
.link-card.ref-link:hover { transform: none; box-shadow: none; border-color: var(--gold); }
.link-card strong { font-size: 15.5px; color: var(--navy-deep); font-weight: 600; }
.link-card .go {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.link-card .go:after { content: " →"; }
.link-card:hover .go { opacity: 1; transform: none; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 25px; margin-bottom: 8px; }
.cta-band p { color: #cddbd2; margin: 0; max-width: 46ch; }
.cta-band .hero-cta { margin-top: 0; }

/* ---------- Simulateurs ---------- */
.simulator-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.sim-inputs .sim-field { margin-bottom: 24px; }
.sim-inputs .sim-field:last-child { margin-bottom: 0; }
.sim-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 10px;
}
.sim-field label .sim-val {
  font-family: 'Newsreader', serif;
  font-weight: 600;
  color: var(--gold);
  font-size: 15.5px;
}
.sim-field input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
  height: 4px;
  margin: 4px 0;
}
.sim-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14.5px;
  background: var(--cream);
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}
.sim-results {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px 28px;
  align-self: start;
}
.sim-results h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--muted);
  margin-bottom: 16px;
}
.sim-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.sim-result-row:last-child { border-bottom: none; padding-bottom: 0; }
.sim-result-row:first-child { padding-top: 0; }
.sim-result-row .r-label { font-size: 14px; color: var(--muted); }
.sim-result-row .r-value { font-family: 'Newsreader', serif; font-weight: 600; color: var(--navy); font-size: 18px; text-align: right; white-space: nowrap; }
.sim-result-row.highlight .r-value { color: var(--gold); font-size: 26px; }
.sim-result-row.highlight .r-label { font-weight: 600; color: var(--navy-deep); }
.sim-cta-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.sim-cta-box p { max-width: 56ch; margin: 0 auto 22px; color: var(--muted); }
.sim-cta-box .btn { margin: 6px; }

/* ---------- Footer ---------- */
footer.site { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--navy-deep); margin-bottom: 16px; font-weight: 700; }
.footer-grid a, .footer-grid p { font-size: 14.5px; color: var(--muted); display: block; margin-bottom: 10px; transition: color .15s ease; }
.footer-grid a:hover { color: var(--navy); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .brand-icon { height: 38px; }
.footer-brand .brand-word .b1 { font-size: 21px; }
.footer-legal { border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  nav.main { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; }
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .simulator-box { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .topbar .wrap { justify-content: center; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cta-band { padding: 32px 26px; }
  header.site .wrap { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .brand { gap: 6px; flex-shrink: 0; }
  .brand-icon, header.site.scrolled .brand-icon { height: 22px; }
  .brand-word .b2 { display: none; }
  .brand-word .b1, header.site.scrolled .brand-word .b1 { font-size: 13.5px; }
  header.site .btn-primary { flex-shrink: 0; padding: 8px 12px; font-size: 11.5px; }
}
@media (max-width: 340px) {
  header.site .wrap { gap: 6px; padding-left: 12px; padding-right: 12px; }
  .brand-word .b1, header.site.scrolled .brand-word .b1 { font-size: 12px; }
  .brand-icon, header.site.scrolled .brand-icon { height: 20px; }
  header.site .btn-primary { padding: 7px 10px; font-size: 10.5px; }
}
