/* ==============================
   investir-crowdlending.fr
   Design System & Styles
   ============================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #f7f8f9;
  --color-bg-white: #ffffff;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-light: #dbeafe;
  --color-cta: #00DE0F;
  --color-cta-hover: #00c40d;
  --color-cta-text: #ffffff;
  --color-bonus: #f59e0b;
  --color-bonus-light: #fef3c7;
  --color-warning: #ef4444;
  --color-success: #10b981;
  --color-border: #e5e7eb;
  --color-header-bg: #ffffff;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-cta: 0 4px 12px rgba(0,222,15,0.3);
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--color-text);
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

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

.section {
  padding: 64px 0;
}

.section-alt {
  background-color: var(--color-bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* --- Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

/* ==============================
   HEADER / NAVIGATION
   ============================== */
.header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  border-radius: 0;
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all var(--transition);
}

/* ==============================
   HERO
   ============================== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg) 100%);
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 16px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   BUTTONS
   ============================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,222,15,0.4);
}

.btn-cta-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-accent);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-cta-text);
}

/* ==============================
   CARDS
   ============================== */
.card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
}

/* Platform card */
.platform-card {
  text-align: center;
  padding: 32px 24px;
}

.platform-card .platform-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-bg);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-accent);
  border: 2px solid var(--color-border);
  overflow: hidden;
}

.platform-card .platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-card .platform-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-card .platform-type {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.platform-card .platform-rate {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.platform-card .platform-rate-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.platform-card .btn-cta {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* ==============================
   BADGES
   ============================== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-bonus {
  background: var(--color-bonus);
  color: var(--color-cta-text);
}

.badge-best {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.badge-regulated {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ==============================
   BONUS BANNER
   ============================== */
.bonus-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bonus-banner h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.bonus-banner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.bonus-banner .btn-cta {
  flex-shrink: 0;
}

/* ==============================
   COMPARE TABLE
   ============================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-white);
  font-size: 0.95rem;
}

.table-compare thead {
  background: var(--color-accent);
  color: white;
}

.table-compare th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.table-compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.table-compare tr:last-child td {
  border-bottom: none;
}

.table-compare tbody tr:hover {
  background: rgba(37,99,235,0.03);
}

.table-compare .platform-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.table-compare .platform-cell .mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-accent);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.table-compare .highlight-row {
  background: var(--color-bonus-light);
}

.table-compare .rate-cell {
  font-weight: 700;
  color: var(--color-accent);
}

/* Colonne "S'inscrire" sticky à droite */
.table-compare th:last-child,
.table-compare td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--color-bg-white);
  box-shadow: -4px 0 8px rgba(0,0,0,0.06);
  text-align: center;
  white-space: nowrap;
}

.table-compare thead th:last-child {
  background: var(--color-accent);
}

.table-compare .highlight-row td:last-child {
  background: var(--color-bonus-light);
}

/* ==============================
   STARS
   ============================== */
.stars {
  color: var(--color-bonus);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ==============================
   FAQ
   ============================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-family);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==============================
   STEPS
   ============================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9rem;
}

/* ==============================
   STATS
   ============================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ==============================
   BREADCRUMB
   ============================== */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ==============================
   PLATFORM PAGE
   ============================== */
.platform-hero {
  padding: 48px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg) 100%);
}

.platform-hero .platform-logo-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--color-bg-white);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-accent);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow);
}

.platform-hero .badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.platform-hero h1 {
  margin-bottom: 8px;
}

.platform-hero .stars {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

/* Info table */
.info-table {
  max-width: 600px;
  margin: 0 auto 32px;
}

.info-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
}

.info-table td:last-child {
  color: var(--color-text-light);
}

/* Pros/Cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pros h3,
.cons h3 {
  margin-bottom: 16px;
}

.pros li,
.cons li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text-light);
}

.pros li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.cons li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--color-warning);
  font-weight: 700;
}

/* Content */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}

.content-block h2 {
  margin-top: 40px;
}

.content-block ul,
.content-block ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-block ul {
  list-style: disc;
}

.content-block ol {
  list-style: decimal;
}

.content-block li {
  margin-bottom: 8px;
  color: var(--color-text-light);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 48px 0;
}

.cta-box h2,
.cta-box h3 {
  color: white;
}

.cta-box p {
  color: rgba(255,255,255,0.85);
  max-width: 500px;
  margin: 0 auto 24px;
}

.cta-box .btn-cta {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ==============================
   BONUS PAGE
   ============================== */
.bonus-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  margin-bottom: 16px;
}

.bonus-card .bonus-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  min-width: 120px;
  text-align: center;
}

.bonus-card .bonus-info {
  flex: 1;
}

.bonus-card .bonus-info h3 {
  margin-bottom: 4px;
}

.bonus-card .bonus-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ==============================
   GUIDE - TOC
   ============================== */
.toc {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 40px;
}

.toc h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  font-size: 0.95rem;
  color: var(--color-accent);
}

/* Alert box */
.alert-box {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.alert-box-warning {
  background: #fef2f2;
  border-left: 4px solid var(--color-warning);
  color: #991b1b;
}

.alert-box-info {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-accent-dark);
}

.alert-box-success {
  background: #ecfdf5;
  border-left: 4px solid var(--color-success);
  color: #065f46;
}

/* ==============================
   CROSS-LINK BANNER
   ============================== */
.cross-link {
  background: var(--color-bg-white);
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius);
  padding: 24px 32px;
  text-align: center;
  margin: 32px 0;
}

.cross-link p {
  margin-bottom: 12px;
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

/* ==============================
   STICKY CTA
   ============================== */
.sticky-cta {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  transition: bottom 0.4s ease;
}

.sticky-cta.visible {
  bottom: 0;
}

.sticky-cta .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sticky-cta p {
  color: white;
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.sticky-cta .btn-cta {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: 0.9rem;
}

.sticky-cta-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.sticky-cta-close:hover {
  color: white;
}

/* ==============================
   UPDATE DATE
   ============================== */
.update-date {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* ==============================
   404 PAGE
   ============================== */
.page-404 {
  text-align: center;
  padding: 120px 24px;
}

.page-404 h1 {
  font-size: 5rem;
  color: var(--color-accent);
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-hover);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 99;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .hamburger {
    display: block;
  }

  /* Grids */
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .simulator-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .sim-result-value {
    font-size: 2rem;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-badge {
    font-size: 0.8rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Table scroll */
  .table-wrapper {
    border-radius: var(--radius-sm);
  }

  /* Bonus banner */
  .bonus-banner {
    text-align: center;
    justify-content: center;
  }

  /* Bonus card */
  .bonus-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  /* Sticky CTA */
  .sticky-cta p {
    font-size: 0.85rem;
    text-align: center;
  }

  .sticky-cta .container {
    flex-direction: column;
    gap: 8px;
  }

  .sticky-cta-close {
    top: 8px;
    right: 8px;
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* ==============================
   READING PROGRESS BAR
   ============================== */
.reading-progress {
  position: fixed;
  top: 70px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cta) 0%, var(--color-accent) 100%);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ==============================
   HERO ENHANCED
   ============================== */
.hero-enhanced {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 30%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.trust-icon {
  font-size: 1rem;
}

/* ==============================
   SIMULATOR
   ============================== */
.simulator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 40px;
  border: 1px solid var(--color-border);
}

.simulator-field {
  margin-bottom: 20px;
}

.simulator-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}

.input-with-unit:focus-within {
  border-color: var(--color-accent);
}

.input-with-unit input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-family);
  outline: none;
  min-width: 0;
}

.input-unit {
  padding: 12px 16px;
  background: var(--color-bg);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-left: 1px solid var(--color-border);
}

.sim-range {
  width: 100%;
  margin-top: 8px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.sim-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

.simulator-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-result-main {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.sim-result-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.sim-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.2;
}

.sim-result-details {
  margin-bottom: 20px;
}

.sim-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-bg);
}

.sim-detail-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sim-detail-value {
  font-weight: 700;
  font-size: 0.9rem;
}

.sim-profit {
  color: var(--color-success);
}

.sim-comparison {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 8px;
}

.sim-comparison p {
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sim-gain-highlight {
  color: var(--color-success) !important;
  font-weight: 600;
}

/* ==============================
   TESTIMONIALS
   ============================== */
.testimonial-card {
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--color-bonus);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ==============================
   ANIMATED STATS
   ============================== */
.stats {
  grid-template-columns: repeat(4, 1fr);
}

.stat-value.animated {
  transition: none;
}

/* ==============================
   EXIT-INTENT POPUP
   ============================== */
.exit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.exit-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.exit-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: var(--color-bg-white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 9999;
  max-width: 480px;
  width: 90%;
  padding: 40px 32px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.exit-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.exit-popup-close:hover {
  color: var(--color-text);
}

.exit-popup-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.exit-popup h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.exit-popup p {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.exit-popup .bonus-highlight {
  background: var(--color-bonus-light);
  border: 2px solid var(--color-bonus);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-bonus-dark);
}

.exit-popup .btn-cta {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px 24px;
}

.exit-popup .exit-no-thanks {
  display: block;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}

/* ==============================
   SOCIAL PROOF TOAST
   ============================== */
.social-proof-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 500;
  max-width: 340px;
  transform: translateX(-120%);
  transition: transform 0.4s ease;
  cursor: pointer;
  border-left: 4px solid var(--color-cta);
}

.social-proof-toast.visible {
  transform: translateX(0);
}

.social-proof-toast .toast-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.social-proof-toast .toast-text {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.4;
}

.social-proof-toast .toast-text strong {
  color: var(--color-accent);
}

.social-proof-toast .toast-time {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ==============================
   BACK TO TOP BUTTON
   ============================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  z-index: 400;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

/* ==============================
   RGPD COOKIE BANNER
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-header-bg);
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
  z-index: 9000;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  min-width: 200px;
}

.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-banner .btn-accept {
  padding: 8px 20px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-banner .btn-accept:hover {
  background: var(--color-accent-dark);
}

.cookie-banner .btn-refuse {
  padding: 8px 20px;
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-banner .btn-refuse:hover {
  background: var(--color-bg);
}

@media (max-width: 768px) {
  .social-proof-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .back-to-top {
    bottom: 72px;
    right: 16px;
  }

  .exit-popup {
    padding: 28px 20px;
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner p {
    text-align: center;
  }
}
