/* ===== GP INVEST — direction visuelle "quiet luxury" ===== */
:root {
  --navy: #234B3C;        /* vert forêt profond — couleur de marque */
  --navy-deep: #12261E;   /* vert quasi noir — fonds sombres, texte fort */
  --gold: #BD6B41;        /* terracotta — accent, utilisé avec parcimonie */
  --gold-light: #DDA07D;  /* terracotta clair — hover */
  --cream: #F6F2E9;       /* pierre / ivoire chaud — fond de page */
  --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;
}
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; }

/* ---------- 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;
}
.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: 16px;
  padding-bottom: 16px;
  gap: 24px;
  transition: padding .25s ease;
}
header.site.scrolled .wrap { padding-top: 11px; padding-bottom: 11px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  height: 264px;
  width: auto;
  display: block;
  margin-top: -88px;
  margin-bottom: -88px;
  transition: height .25s ease, margin .25s ease;
}
header.site.scrolled .brand img { height: 168px; margin-top: -56px; margin-bottom: -56px; }

/* ---------- 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; }

nav.main { display: flex; gap: 20px; 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-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s ease;
}
.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); }

/* ---------- Hero ---------- */
.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; }

/* ---------- 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-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 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 .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;
}

.risk-box {
  background: #FBF3EA;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.risk-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: 12px;
}
.risk-box ul { margin: 0; padding-left: 20px; }
.risk-box li { margin-bottom: 8px; font-size: 14.5px; color: var(--ink); }
.risk-box li:last-child { margin-bottom: 0; }

.scale-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.scale-legend span { display: flex; align-items: center; gap: 6px; }
.scale-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.video-box {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-deep);
}
.video-box iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Article / post cards */
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 12.5px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.post-card h3 { font-size: 17px; margin-bottom: 10px; }
.post-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.post-card .read-more { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 12px; display: inline-block; }
.post-card .read-more:after { content: " →"; transition: margin-left .2s ease; }
.post-card:hover .read-more:after { margin-left: 4px; }

/* ---------- Liens utiles : grandes cartes plateformes ---------- */
.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 22px 26px;
  min-height: 190px;
  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); }

/* Sites de référence : cartes compactes, discrètes */
.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 .logo-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.link-card img {
  max-height: 64px;
  max-width: 168px;
  width: auto;
  object-fit: contain;
}
.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; }

.subgroup-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--muted);
  margin: 40px 0 18px;
}
.subgroup-title:first-child { margin-top: 0; }

/* ---------- Marquee (logos partenaires) ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 72px;
  align-items: center;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .5;
  transition: opacity .25s ease, filter .25s ease;
}
.marquee-track img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 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-line {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-line h2 { font-size: 27px; }
.cta-line p { color: var(--muted); }
.cta-line .hero-cta { justify-content: center; }

/* ---------- 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-legal {
  border-top: 1px solid var(--line);
  padding: 22px 0 26px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 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; }

/* ---------- 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; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  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: 34px; }
}
