/* ==========================================================================
   Pioneer Invest — Design System
   Ossature identique à Solarize, palette réelle Pioneer Invest :
   Primary #FFFFFF | Secondary (dark) #0B1F09 | Text #667066 | Accent #A3C614
   Font: Inter Tight
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --dark: #0B1F09;
  --dark-2: #12300E;
  --dark-3: #1B4014;
  --text: #667066;
  --accent: #A3C614;
  --accent-dark: #86A310;
  --accent-light: #C5E74F;
  --green-2: #5E9440;
  --border: #E4E9DE;
  --surface: #F5F8F1;
  --pos: #2E8B3D;
  --neg: #C0392B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(11, 31, 9, 0.08);
  --container: 1240px;
  --ff: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--ff); color: var(--dark); background: var(--white);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; color: var(--text); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 64px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
@media (max-width: 900px) { main { padding-bottom: 48px; } .section { padding: 64px 0; } }

h1 { font-size: 64px; }
h2 { font-size: 42px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; font-weight: 400; }
h6 { font-size: 14px; font-weight: 400; }
@media (max-width: 1024px) { h1 { font-size: 48px; } h2 { font-size: 32px; } h3 { font-size: 24px; } }
@media (max-width: 600px) { h1 { font-size: 34px; } h2 { font-size: 26px; } h3 { font-size: 21px; } }

.muted { color: var(--text); }
.small { font-size: 13px; }
.center-text { text-align: center; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.mt-0 { margin-top: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark); color: var(--white);
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.eyebrow-light { background: rgba(255,255,255,.12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 100px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: var(--dark); }
.btn-accent:hover { background: var(--dark); color: var(--accent); transform: translateY(-2px); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--accent); color: var(--dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--dark); }
.btn-ghost:hover { color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-outline:hover { background: var(--dark); color: var(--accent); border-color: var(--dark); }
.btn-sm { padding: 11px 20px; font-size: 13px; }
.btn-lg { padding: 18px 34px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- Risk banner + ticker ---------- */
.risk-banner { background: var(--dark); color: var(--white); font-size: 12px; font-weight: 600; text-align: center; padding: 7px 0; }
.ticker { background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; padding: 9px 0; }
.ticker-track { display: flex; gap: 36px; white-space: nowrap; animation: ticker-scroll 40s linear infinite; width: max-content; }
.ticker-item { font-size: 12.5px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.ticker-item strong { color: var(--dark); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand img { height: 30px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--dark); position: relative; padding: 6px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--dark); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.burger-btn { display: none; background: none; border: none; padding: 8px; color: var(--dark); }
.burger-btn .ic { width: 24px; height: 24px; }
.header-profile-btn {
  display: none; /* réactivé uniquement en mobile, cf. media query ci-dessous */
  align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-soft, #f2f4ee); border: 1px solid var(--border);
  color: var(--dark); text-decoration: none; transition: border-color .2s ease, background .2s ease;
}
.header-profile-btn:hover { border-color: var(--accent); background: #fff; }
.header-profile-btn .ic { width: 19px; height: 19px; }

.mobile-nav { position: fixed; inset: 0; z-index: 300; background: var(--dark); color: var(--white); padding: 24px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-nav-top .close-btn { background: none; border: none; color: var(--white); }
.mobile-nav-top .close-btn .ic { width: 24px; height: 24px; }
.mobile-nav a { display: block; font-size: 21px; font-weight: 600; color: var(--white); padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a.active { color: var(--accent); }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger-btn, .header-profile-btn { display: inline-flex; }
  .header-actions .btn-ghost, .header-actions .btn-accent { display: none; }
}
@media (min-width: 1081px) { .mobile-nav { display: none; } }

/* ---------- Hero (diaporama plein écran + cartes chevauchantes) ---------- */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; padding: 0; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: heroCrossfade 18s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
@keyframes heroCrossfade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(100deg, rgba(11,31,9,.88) 0%, rgba(11,31,9,.62) 45%, rgba(11,31,9,.28) 75%, rgba(11,31,9,.1) 100%),
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}
.hero .container { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 190px; }
.hero-inner { max-width: 640px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; }
.hero-actions { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-cards-row { display: grid; grid-template-columns: 1.15fr 1.3fr 1fr; gap: 22px; margin-top: -140px; position: relative; z-index: 3; }
@media (max-width: 1024px) { .hero-cards-row { grid-template-columns: 1fr; margin-top: 24px; } }
.hero-card { border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.hero-card h3 { font-size: 20px; margin-bottom: 8px; }
.hero-card-info { background: var(--surface); border: 1px solid var(--border); position: relative; padding-right: 110px; }
.hero-card-info p { font-size: 14px; margin: 0; }
.hero-card-thumb { position: absolute; top: 24px; right: 24px; width: 78px; height: 78px; border-radius: var(--radius-sm); overflow: hidden; }
.hero-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-thumb .play-btn { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(11,31,9,.75); display: flex; align-items: center; justify-content: center; }
.hero-card-thumb .play-btn .ic { width: 13px; height: 13px; color: var(--white); }
.hero-card-stats { background: var(--white); border: 1px solid var(--border); }
.hero-card-stats p { font-size: 14px; margin-bottom: 18px; }
.stats-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.stats-split .stat-col:first-child { border-right: 1px solid var(--border); padding-right: 18px; }
.stat-col .num { font-size: 26px; font-weight: 700; }
.stat-col .lbl { font-size: 12.5px; color: var(--text); margin-top: 4px; }
.badge-ic { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--dark); align-items: center; justify-content: center; margin-bottom: 8px; }
.badge-ic .ic { width: 17px; height: 17px; }
.hero-card-cta { background: var(--accent); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; position: relative; overflow: hidden; }
.hero-card-cta h3 { color: var(--dark); margin: 0; }
.hero-card-cta-deco { position: absolute; right: -14px; bottom: -14px; width: 84px; height: 84px; opacity: .9; }

/* ---------- Feature visual (photo + badge flottant + items numérotés sombres) ---------- */
.feature-visual { position: relative; padding-top: 44px; padding-left: 40px; }
.feature-photo { border-radius: var(--radius-lg); overflow: hidden; margin-left: 40px; box-shadow: var(--shadow); }
.feature-photo img { width: 100%; aspect-ratio: 4/4.3; object-fit: cover; display: block; }
.feature-badge {
  position: absolute; top: 0; left: 0; width: 150px; z-index: 2;
  background: var(--dark); color: var(--white); border-radius: var(--radius-md);
  padding: 22px 18px; text-align: center; box-shadow: var(--shadow);
}
.feature-badge .badge-ic-lg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--accent); }
.feature-badge strong { display: block; color: var(--accent); font-size: 15px; font-weight: 700; line-height: 1.3; }
.feature-plus { position: absolute; right: 26px; bottom: -22px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--dark); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.feature-plus .ic { width: 20px; height: 20px; }

.feature-items .feature-item { position: relative; display: flex; align-items: stretch; margin-bottom: 22px; }
.feature-items .feature-item:last-child { margin-bottom: 0; }
.feature-item .feature-num {
  flex-shrink: 0; width: 62px; height: 62px; margin-top: 22px; margin-right: -22px; z-index: 2;
  background: var(--accent); color: var(--dark); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 700; box-shadow: var(--shadow);
}
.feature-item .feature-body { flex: 1; background: var(--dark); border-radius: var(--radius-md); padding: 24px 24px 24px 46px; }
.feature-body h4 { color: var(--accent); margin-bottom: 6px; }
.feature-body p { color: rgba(255,255,255,.75); margin: 0; font-size: 14.5px; }
@media (max-width: 640px) { .feature-visual { padding-left: 20px; } .feature-photo { margin-left: 20px; } .feature-badge { width: 120px; padding: 16px 12px; } }

/* ---------- Deal card (carte sombre texte + photo côte à côte, méta dessous) ---------- */
.deal-card-inner { background: var(--dark); border-radius: var(--radius-lg); padding: 26px; display: flex; gap: 22px; align-items: stretch; }
.deal-card-text { flex: 1.25; display: flex; flex-direction: column; }
.deal-tag { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.deal-card-text h3 { color: var(--accent); font-size: 22px; margin-bottom: 10px; }
.deal-card-text p { color: rgba(255,255,255,.72); font-size: 14px; flex: 1; margin-bottom: 18px; }
.deal-card-photo { flex: 1; border-radius: var(--radius-md); overflow: hidden; min-height: 170px; }
.deal-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-meta { display: flex; gap: 26px; margin-top: 16px; padding: 0 6px; flex-wrap: wrap; }
.deal-meta .meta-item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--dark); }
.deal-meta .meta-item .ic { width: 15px; height: 15px; color: var(--accent-dark); }
@media (max-width: 640px) { .deal-card-inner { flex-direction: column; } .deal-card-photo { min-height: 200px; } }

/* ---------- Carrousel de témoignages ---------- */
.testimonial-photo { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/4.6; object-fit: cover; }
.testimonial-carousel { position: relative; margin-top: 26px; }
.testimonial-quote-badge {
  position: absolute; top: -8px; left: 0; z-index: 3; width: 54px; height: 54px;
  background: var(--accent); border-radius: 16px 16px 16px 4px;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.testimonial-quote-badge .ic { width: 22px; height: 22px; color: var(--dark); }
.testimonial-panel-wrap { padding-left: 30px; }
.testimonial-slides { position: relative; min-height: 168px; }
.testimonial-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.testimonial-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.testimonial-panel { background: var(--dark); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 6px; padding: 30px 30px 26px 46px; }
.testimonial-panel .quote { color: var(--white); font-size: 15.5px; font-weight: 600; margin-bottom: 22px; }
.testimonial-panel-person { display: flex; align-items: center; gap: 14px; }
.testimonial-panel-person strong { display: block; color: var(--white); font-size: 14.5px; }
.testimonial-panel-person span { color: var(--accent); font-size: 13px; font-weight: 600; }
.testimonial-dots { display: flex; gap: 8px; margin-top: 18px; padding-left: 46px; }
.testimonial-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); border: none; padding: 0; transition: all .25s ease; }
.testimonial-dots button.active { background: var(--accent); width: 22px; border-radius: 5px; }
@media (max-width: 640px) { .testimonial-panel { padding-left: 30px; } .testimonial-dots { padding-left: 0; } }

/* ---------- Étoiles de notation ---------- */
.star-rating { display: inline-flex; gap: 2px; margin-bottom: 12px; }
.star-ic { width: var(--star-size, 14px); height: var(--star-size, 14px); }

/* ---------- Badge "Avis vérifié" ---------- */
.verified-review-tag {
  display: flex; align-items: center; gap: 4px; margin-top: 4px;
  font-size: 11px !important; font-weight: 600; color: var(--accent) !important;
}
.verified-review-tag .ic { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Bandeau de confiance (Trustpilot + Avis Vérifiés) ---------- */
.trust-badges-row {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 22px 0 4px; padding: 16px 20px; background: var(--bg-2, #f7f8f4);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.trust-badge-item { display: flex; align-items: center; gap: 12px; }
.trust-stars-icon { height: 22px; width: auto; border-radius: 4px; overflow: hidden; }
.trust-av-logo { height: 26px; width: auto; }
.trust-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.trust-badge-text strong { font-size: 14.5px; color: var(--dark); }
.trust-badge-text span { font-size: 11.5px; color: var(--text); }
.trust-badge-sep { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }
@media (max-width: 560px) { .trust-badges-row { flex-direction: column; align-items: flex-start; gap: 14px; } .trust-badge-sep { display: none; } }

/* ==========================================================
   Sélecteur de langue unique
   Desktop : drapeau + libellé + chevron. Mobile (<640px) : bouton
   circulaire, drapeau seul — le menu déroulant reste identique.
   ========================================================== */
.lang-unified { position: relative; }
.lang-unified-btn {
  display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border);
  border-radius: 30px; padding: 7px 12px 7px 10px; font-size: 13px; font-weight: 600; color: var(--dark);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.lang-unified-btn:hover { background: var(--bg-soft, #f7f8f4); border-color: var(--accent); }
.lang-unified-flag { font-size: 16px; line-height: 1; display: inline-flex; align-items: center; }
.lang-flag-icon { width: 19px; height: 14px; border-radius: 2px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-flag-fallback { font-size: 15px; line-height: 1; }
.lang-unified-label { white-space: nowrap; }
.lang-unified-chevron { width: 14px; height: 14px; color: var(--text); transition: transform .2s ease; flex-shrink: 0; }
.lang-unified.open .lang-unified-chevron { transform: rotate(180deg); }
.lang-unified-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; min-width: 170px; z-index: 200;
}
.lang-unified.open .lang-unified-menu { display: block; }
.lang-unified-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--dark); text-decoration: none; transition: background .15s ease;
}
.lang-unified-item:hover { background: var(--bg-soft, #f7f8f4); }
.lang-unified-item.active { color: var(--accent); }
.lang-unified-item-label { flex: 1; }
.lang-unified-check { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 640px) {
  .lang-unified-btn {
    width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%;
  }
  .lang-unified-label, .lang-unified-chevron { display: none; }
  .lang-unified-flag { font-size: 18px; }
  .lang-flag-icon { width: 21px; height: 16px; }
  .lang-unified-menu { right: auto; left: 50%; transform: translateX(-50%); }
}

body { top: 0 !important; }
@media (max-width: 700px) { .hero-cards-row { margin-top: -60px; } .hero .container { padding-bottom: 130px; } }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  background-image:
    linear-gradient(180deg, rgba(11,31,9,.72), rgba(11,31,9,.72)),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    var(--hero-img);
  background-size: cover, 40px 40px, 40px 40px, cover;
  background-position: center, center, center, center;
  padding: 130px 0 60px; text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; max-width: 100%; }
.page-hero .crumb { color: rgba(255,255,255,.75); font-size: 14px; }
.page-hero .crumb a { color: var(--accent); }
.page-hero .crumb span { margin: 0 6px; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
@media (max-width: 700px) { .section-head-row { flex-direction: column; align-items: flex-start; } }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--radius-md); border: 1px solid var(--border); }
.pillar-card { padding: 30px 26px; transition: all .3s ease; }
.pillar-card:hover { background: var(--dark); border-color: var(--dark); }
.pillar-card:hover h3, .pillar-card:hover p { color: var(--white); }
.pillar-card h3 { font-size: 19px; }
.pillar-card p { font-size: 14.5px; margin: 0; }

.avatar { width: var(--avatar-size, 48px); height: var(--avatar-size, 48px); border-radius: 50%; background: linear-gradient(135deg, var(--green-2), var(--accent)); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(var(--avatar-size, 48px) * .36); flex-shrink: 0; }

.testimonial-card { padding: 28px 26px; }
.testimonial-text { font-size: 15.5px; color: var(--dark); font-style: italic; font-weight: 500; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-person strong { display: block; font-size: 14px; }
.testimonial-person span { font-size: 12.5px; color: var(--text); }

.team-card { padding: 26px; text-align: center; }
.team-card .avatar { margin: 0 auto 14px; }
.team-card h4 { margin-bottom: 2px; }

.blog-card { overflow: hidden; }
.blog-media { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover img { transform: scale(1.05); }
.blog-cat { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--dark); font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 100px; }
.blog-body { padding: 22px; }
.blog-body h3 { font-size: 18px; margin-bottom: 8px; }
.blog-body p { font-size: 14px; }

/* ---------- Stats ---------- */
.stats-row { display: flex; gap: 50px; flex-wrap: wrap; }
.stat-item h4 { font-size: 34px; margin-bottom: 2px; color: var(--dark); }
.stat-item p { margin: 0; font-size: 13.5px; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.split img { border-radius: var(--radius-lg); width: 100%; }

.numbered-list .num-item { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.numbered-list .num-item:first-child { border-top: none; }
.num-item .num { font-size: 20px; font-weight: 700; color: var(--accent-dark); width: 40px; flex-shrink: 0; }
.num-item h4 { margin-bottom: 6px; }
.num-item p { margin: 0; font-size: 14.5px; }

.info-box { background: var(--dark); color: var(--white); border-radius: var(--radius-md); padding: 26px; }
.info-box h4 { color: var(--white); }
.info-box p { color: rgba(255,255,255,.75); margin: 0; }
.info-box.is-accent { background: var(--accent); color: var(--dark); }
.info-box.is-accent h4, .info-box.is-accent p { color: var(--dark); }

/* ---------- Dark section ---------- */
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,.72); }
.section-dark .eyebrow { background: rgba(255,255,255,.12); }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card h3, .section-dark .card h4 { color: var(--white); }

/* ---------- Logos strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 44px; opacity: .55; }
.logo-strip span { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }

/* ---------- CTA ---------- */
.cta-section { background: var(--dark); color: var(--white); border-radius: var(--radius-lg); margin: 0 24px; width: auto; }
.cta-section .container { max-width: calc(var(--container) - 48px); }
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,.72); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; padding: 20px 0; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-form-wrap { background: var(--white); border-radius: var(--radius-md); padding: 30px; }
.cta-form-wrap h3 { color: var(--dark); font-size: 20px; margin-bottom: 18px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; font-family: var(--ff); font-size: 14px; background: var(--surface); color: var(--dark); box-sizing: border-box; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: 2px solid var(--accent); background: var(--white); }
textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-msg.ok { color: var(--pos); }
.form-msg.err { color: var(--neg); }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text); }
.checkbox-field input { width: auto; flex-shrink: 0; margin-top: 3px; }
.newsletter-form { display: flex; gap: 10px; margin-top: 16px; }
.newsletter-form input { flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: var(--white); font-family: var(--ff); }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 6px 0; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: none; text-align: left; padding: 20px 0; font-size: 16.5px; font-weight: 600; color: var(--dark); }
.faq-toggle { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s ease; }
.faq-toggle .ic { width: 14px; height: 14px; }
.faq-item.is-open .faq-toggle { transform: rotate(45deg); background: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-a { max-height: 320px; }
.faq-a p { padding-bottom: 18px; margin: 0; font-size: 14.5px; }
.section-dark .faq-item { border-color: rgba(255,255,255,.12); }
.section-dark .faq-q { color: var(--white); }
.section-dark .faq-toggle { background: rgba(255,255,255,.1); color: var(--white); }

/* ---------- Market / ETF ---------- */
.index-card { padding: 22px 24px; }
.index-card .name { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.index-card .value { font-size: 26px; font-weight: 700; }
.chg { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }
.chg.up, .ic-chg.up { color: var(--pos); }
.chg.down { color: var(--neg); }
.ic-chg { width: 12px; height: 12px; }
.mover-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); }
.mover-row:first-child { border-top: none; }
.mover-left { display: flex; align-items: center; gap: 12px; }
.mover-sym { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--accent-dark); flex-shrink: 0; }

.filters-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
@media (max-width: 800px) { .filters-bar { grid-template-columns: 1fr 1fr; } }
.filter-group label { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.filter-group select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--dark); font-family: var(--ff); }
.etf-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.etf-table, table.compare-table { width: 100%; border-collapse: collapse; }
table.etf-table { min-width: 720px; }
.etf-table th, .compare-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.etf-table td, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.etf-table tr:last-child td, .compare-table tr:last-child td { border-bottom: none; }
.etf-name { display: flex; align-items: center; gap: 12px; }
.etf-sym { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--accent-dark); flex-shrink: 0; }
.risk-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.risk-faible { background: rgba(46,139,61,.12); color: var(--pos); }
.risk-moyen { background: rgba(163,198,20,.16); color: var(--accent-dark); }
.risk-élevé { background: rgba(192,57,43,.12); color: var(--neg); }

/* ---------- Pricing ---------- */
.plan-card { padding: 34px 30px; position: relative; }
.plan-card.is-highlight { border-color: var(--accent); background: var(--surface); }
.plan-badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--dark); font-size: 11.5px; font-weight: 700; padding: 5px 14px; border-radius: 100px; }
.plan-price { font-size: 40px; font-weight: 700; margin: 14px 0 6px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text); }
.plan-features { display: grid; gap: 12px; margin: 24px 0; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.plan-features .ic { width: 16px; height: 16px; color: var(--accent-dark); flex-shrink: 0; margin-top: 3px; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table th, .compare-table td { text-align: center; }
.compare-table .ic { width: 16px; height: 16px; }
.compare-table .yes { color: var(--accent-dark); }
.compare-table .no { color: var(--text); opacity: .4; }

/* ---------- Simulateur épargne ---------- */
.sim-card { padding: 34px; }
.sim-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
@media (max-width: 800px) { .sim-row { grid-template-columns: 1fr 1fr; } }
.sim-field label { display: block; font-size: 12.5px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.sim-field input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--dark); font-family: var(--ff); }
.sim-result { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: var(--dark); border-radius: var(--radius-md); padding: 24px; color: var(--white); }
.sim-result .big { font-size: 30px; font-weight: 700; color: var(--accent); }
.fiscal-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
@media (max-width: 700px) { .fiscal-compare { grid-template-columns: 1fr; } }
.fiscal-compare .info-box h4 { font-size: 16px; }

/* ---------- Baskets ---------- */
.basket-card { padding: 28px; }
.basket-risk { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: 100px; background: var(--surface); color: var(--accent-dark); margin-bottom: 14px; }
.basket-meta { display: flex; gap: 24px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.basket-meta div span { display: block; font-size: 12px; color: var(--text); }
.basket-meta div strong { font-size: 15px; }

/* ---------- Contact ---------- */
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; }
.contact-direct li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14.5px; }
.contact-direct .ic { width: 18px; height: 18px; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 640px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text); }
.auth-foot a { color: var(--accent-dark); font-weight: 700; }

/* ---------- Career / jobs ---------- */
.job-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px; flex-wrap: wrap; background: var(--white); }
.job-card h4 { margin-bottom: 6px; }
.job-card .meta { font-size: 13px; color: var(--accent-dark); font-weight: 600; }
.job-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.job-filters button { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 13.5px; font-weight: 600; }
.job-filters button.active { background: var(--dark); color: var(--white); border-color: var(--dark); }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.legal-toc a { display: block; font-size: 13.5px; padding: 7px 0; color: var(--text); }
.legal-toc a:hover { color: var(--accent-dark); }
.legal-body h3 { margin-top: 40px; font-size: 19px; color: var(--dark); }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { font-size: 14.5px; }
.legal-updated { color: var(--text); font-size: 13px; margin-bottom: 30px; }

/* ---------- Blog single ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h1 { font-size: 38px; }
.article-body p { font-size: 16px; color: var(--dark); opacity: .85; }
.article-body h3 { font-size: 22px; margin-top: 34px; }

/* ---------- 404 ---------- */
.error-page { min-height: 65vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-size: 130px; font-weight: 700; color: var(--accent); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding-top: 32px; background-size: cover; background-position: center; }
@media (max-width: 900px) { .site-footer { padding-top: 20px; } }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } .footer-about { grid-column: 1 / -1; } }
.site-footer h4 { color: var(--white); font-size: 15px; margin-bottom: 16px; }
.footer-about p { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.5); padding: 22px 0; }
.footer-disclaimer a { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0 30px; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.55); border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--accent); color: var(--dark); }
.social-row .ic { width: 15px; height: 15px; }

/* ---------- Logos de conformité (régulateurs) — sous les réseaux sociaux ---------- */
.footer-compliance-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.footer-compliance-logo { height: 34px; width: auto; display: block; }
.footer-compliance-logo-chip {
  display: inline-flex; align-items: center; height: 34px; padding: 6px 10px;
  background: #fff; border-radius: 6px;
}
.footer-compliance-logo-chip img { height: 100%; width: auto; display: block; }

/* ---------- Back to top / cookie banner ---------- */
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 48px; height: 48px; border-radius: 50%; background: var(--dark); color: var(--accent); display: flex; align-items: center; justify-content: center; border: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top .ic { width: 18px; height: 18px; transform: rotate(-90deg); }

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 250; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -10px 30px rgba(11,31,9,.08); padding: 18px 0; transform: translateY(120%); transition: transform .4s ease; }
.cookie-banner.is-visible { transform: none; }
.cookie-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 13.5px; max-width: 640px; color: var(--text); }
.cookie-inner a { color: var(--accent-dark); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Ambiance globale (halos discrets derrière tout le site) ---------- */
body::before, body::after {
  content: ''; position: fixed; z-index: -1; border-radius: 50%; filter: blur(110px); pointer-events: none;
}
body::before { width: 620px; height: 620px; background: var(--accent); opacity: .10; top: -220px; right: -180px; }
body::after { width: 560px; height: 560px; background: var(--green-2); opacity: .09; bottom: -160px; left: -200px; }

/* ---------- Motif grille décoratif (sections sombres, hero, page-hero, CTA) ---------- */
.section-dark, .cta-section { position: relative; overflow: hidden; }
.section-dark::before, .cta-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 20% 15%, black 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 20% 15%, black 35%, transparent 78%);
}
.section-dark > .container, .cta-section > .container { position: relative; z-index: 1; }

/* ---------- Halo qui suit la souris (hero, page-hero, CTA) ---------- */
.hero, .page-hero, .cta-section { --spot-x: 50%; --spot-y: 40%; }
.hero::after, .page-hero::after, .cta-section::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), rgba(163,198,20,.22), transparent 70%);
  opacity: 0; transition: opacity .4s ease;
}
.hero:hover::after, .page-hero:hover::after, .cta-section:hover::after { opacity: 1; }
.page-hero { position: relative; }
.page-hero .container { position: relative; z-index: 1; }

/* ---------- Interactivité générique des cartes ---------- */
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ---------- Extras : pages article de blog (contenu long, réutilise les classes existantes) ---------- */
.article-body{max-width:760px;margin:0 auto;}
.article-body h2{margin-top:36px;}
.blog-tag{display:inline-block;background:var(--dark);color:var(--white);padding:6px 14px;border-radius:100px;font-size:12.5px;font-weight:600;}
.article-callout{background:var(--surface);border-left:3px solid var(--accent);border-radius:var(--radius-sm);padding:16px 20px;margin:24px 0;display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--dark);}
.article-callout .ic{width:18px;height:18px;flex-shrink:0;margin-top:2px;color:var(--accent-dark);}

/* ---------- Extras : tableaux dans le contenu légal (mentions légales, etc.) ---------- */
.legal-table{width:100%;border-collapse:collapse;margin:24px 0;font-size:14px;}
.legal-table th, .legal-table td{border:1px solid var(--border);padding:10px 14px;text-align:left;vertical-align:top;}
.legal-table thead th, .legal-table tr:first-child th{background:var(--dark);color:var(--white);}
.legal-table tr th:first-child{background:var(--surface);font-weight:600;}
.legal-body table{width:100%;}
