:root {
  color-scheme: light;
  --bg: #f4f2ee;
  --text: #080c14;
  --muted: #5e5e6a;
  --accent: #001839;
  --accent-strong: #001839;
  --line: rgba(0,0,0,0.1);
  --shadow: 0 24px 60px rgba(0,0,0,0.1);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --chart-bg: #001226;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Libre Franklin","Helvetica Neue",sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%, rgba(0,24,57,0.05), transparent 40%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  padding: 0 6vw;
  overflow-x: clip;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

/* ══ Header ══ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 0 -6vw;
  padding: 0 6vw;
}

main, .site-footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  gap: 16px;
}

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

.nav-link {
  text-decoration: none;
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}
.nav-link:hover { opacity: 0.7; }
.nav-link--active { opacity: 1; }
.nav-user-name {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Archivo", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Typographie globale ── */
h1, h2, h3 {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { height: 52px; width: auto; }
.logo-wordmark {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  text-decoration: none;
}

/* ══ Buttons ══ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button.primary {
  background: #0a0a0a;
  color: #fff;
  padding: 28px 80px;
  font-size: 1.45rem;
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
}
.button.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 28px;
}
.button.ghost:hover { color: #fff; border-color: rgba(255,255,255,0.5); box-shadow: none; }

/* ══ Main ══ */
main { display: grid; gap: 100px; padding: 8vh 0 10vh; position: relative; }

/* ══ Hero ══ */
.hero-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14vh 0 10vh;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-simple-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 36px;
  align-self: stretch;
  justify-content: center;
}
.hero-divider-line {
  width: 1px;
  flex: 1;
  background: linear-gradient(to bottom, transparent, var(--line) 30%, var(--line) 70%, transparent);
  max-height: 180px;
}
.hero-divider-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
  writing-mode: vertical-rl;
  opacity: 0.55;
}

/* ── Texte (gauche) ── */
.hero-copy { display: grid; gap: 22px; animation: fadeUp 0.7s ease both; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.4rem,3.8vw,3.6rem);
  line-height: 1.08;
}

.text-gradient {
  display: block;
  background: linear-gradient(110deg, #001839 0%, #0052cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead { font-size: 1rem; color: var(--muted); max-width: 30rem; line-height: 1.7; }

.stat-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.stat-pill strong { color: var(--text); font-weight: 700; }

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.note { font-size: 0.85rem; color: var(--muted); }

.hero-copy > * { animation: fadeUp 0.7s ease both; }
.hero-copy > *:nth-child(2) { animation-delay: .07s; }
.hero-copy > *:nth-child(3) { animation-delay: .14s; }
.hero-copy > *:nth-child(4) { animation-delay: .20s; }
.hero-copy > *:nth-child(5) { animation-delay: .26s; }

/* ── Visuel graphique (droite) ── */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.7s ease both 0.1s;
}

.chart-glow {
  position: absolute;
  inset: -50px;
  background:
    radial-gradient(circle at 55% 38%, rgba(45,224,188,0.18), transparent 55%),
    radial-gradient(circle at 25% 70%, rgba(245,160,106,0.14), transparent 50%);
  filter: blur(40px);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
  z-index: 0;
}

/* ── Particules ── */
.particles { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.p { position: absolute; border-radius: 50%; opacity: 0; }
.p1 { width:4px; height:4px; background:#2de0bc; left:18%; top:82%; animation:p-rise 8s ease-in-out infinite 0s; }
.p2 { width:3px; height:3px; background:#f5a06a; left:72%; top:75%; animation:p-rise 7s ease-in-out infinite 1.4s; }
.p3 { width:5px; height:5px; background:#2de0bc; left:48%; top:88%; animation:p-rise 9.5s ease-in-out infinite 2.8s; }
.p4 { width:3px; height:3px; background:#f5a06a; left:32%; top:78%; animation:p-rise 6.5s ease-in-out infinite 0.6s; }
.p5 { width:4px; height:4px; background:#2de0bc; left:62%; top:92%; animation:p-rise 10s ease-in-out infinite 3.5s; }
.p6 { width:2px; height:2px; background:#f5a06a; left:85%; top:80%; animation:p-rise 7.5s ease-in-out infinite 2s; }

/* ── Carte métrique flottante ── */
.m-card {
  position: relative;
  z-index: 3;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.m-card--portfolio {
  padding: 14px 18px 12px;
  align-self: flex-end;
  margin-bottom: -20px;
  animation: float-a 5.5s ease-in-out infinite 0.4s;
}
.m-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }
.m-value { font-family: "Archivo",sans-serif; font-size: 1.4rem; font-weight: 600; color: var(--text); line-height: 1.15; margin: 2px 0; }
.m-delta { font-size: 0.8rem; font-weight: 600; color: var(--accent-strong); }
.delta-arrow { display: inline-block; animation: delta-bounce 1.5s ease-in-out infinite; }

/* ══ Carte graphique (fond sombre) ══ */
.chart-card {
  position: relative;
  z-index: 2;
  padding: 24px 28px 0;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(145deg, #1e1c19 0%, #252320 100%);
  box-shadow: -40px 32px 80px rgba(0,0,0,0.35), 0 0 0 0 rgba(45,224,188,0);
  display: grid;
  gap: 14px;
  overflow: hidden;
  animation: card-glow-dark 4.5s ease-in-out infinite;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chart-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(247,243,238,0.45);
}
.chart-sub {
  font-size: 0.76rem;
  color: rgba(247,243,238,0.25);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Résultat dans l'en-tête */
.chart-result-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.crb-value {
  font-family: "Archivo",sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(247,243,238,0.95);
  line-height: 1;
}
.crb-delta {
  font-size: 0.76rem;
  font-weight: 600;
  color: #2de0bc;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2de0bc;
  animation: live-pulse 1.5s ease-in-out infinite;
}

/* ── SVG elements ── */
.chart-svg { width: 100%; height: auto; display: block; }

.chart-glow-line { opacity: 0; animation: rise 1s ease forwards 0.5s; }
.chart-area      { opacity: 0; animation: rise 1.2s ease forwards 0.3s; }
.chart-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.2s cubic-bezier(.4,0,.2,1) forwards 0.2s;
}

/* Points de données (décalage croissant) */
.data-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0);
}
.dd1 { animation: dot-pop .3s ease forwards  0.5s; }
.dd2 { animation: dot-pop .3s ease forwards  0.8s; }
.dd3 { animation: dot-pop .3s ease forwards  1.1s; }
.dd4 { animation: dot-pop .3s ease forwards  1.35s; }
.dd5 { animation: dot-pop .3s ease forwards  1.6s; }
.dd6 { animation: dot-pop .3s ease forwards  1.8s; }
.dd7 { animation: dot-pop .3s ease forwards  2.0s; }
.dd8 { animation: dot-pop .3s ease forwards  2.2s; }
.dd9 { animation: dot-pop .3s ease forwards  2.4s; }

/* Point final + anneau */
.chart-dot {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: dot-pop .4s ease forwards 2.6s;
}
.chart-dot-ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: ring-pulse 2.8s ease-out infinite 3.0s;
}

/* Tooltip */
.chart-tip { opacity: 0; transform: translateY(6px); animation: tip-in .5s ease forwards 2.8s; }

/* ── Barres rendement annuel ── */
.bar-col {
  transform-box: fill-box;
  transform-origin: 50% 100%; /* croît depuis le bas (baseline) vers le haut */
  transform: scaleY(0);
  animation: bar-grow .55s cubic-bezier(.34,1.4,.64,1) forwards;
}
.bar-neg {
  transform-origin: 50% 0%; /* croît vers le bas depuis la baseline */
}
.bar-pct {
  opacity: 0;
  animation: fade-in .35s ease forwards;
}

/* ── Stats row (fond sombre) ── */
.chart-stats {
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 14px 4px 18px;
  gap: 0;
}
.chart-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.c-stat-v {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(247,243,238,0.9);
  font-family: "Archivo",sans-serif;
}
.c-stat-l {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(247,243,238,0.38);
}
.c-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.07); flex-shrink: 0; }

/* ── Badge flottant ── */
.float-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 3;
  animation: float-b 5s ease-in-out infinite 1.2s;
}
.float-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-strong); flex-shrink: 0;
  animation: live-pulse 2s ease-in-out infinite .5s;
}

/* ══ Liquidity section ══ */
.liquidity-section {
  max-width: 1380px;
  margin: 0 auto;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  padding: 64px 60px;
  display: grid;
  gap: 52px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.28);
  overflow: hidden;
  position: relative;
}
.liquidity-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,142,122,0.12), transparent 70%);
  pointer-events: none;
}
.liq-intro { display: grid; gap: 16px; max-width: 680px; }
.liq-intro .eyebrow { color: rgba(247,243,238,0.45); }
.liq-intro h2 {
  font-size: clamp(2rem,3.5vw,3rem);
  color: rgba(247,243,238,0.96);
}
.liq-intro p {
  font-size: 1.05rem;
  color: rgba(247,243,238,0.5);
  line-height: 1.7;
}
.liq-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.liq-card {
  padding: 32px 30px;
  border-radius: 20px;
  display: grid;
  gap: 20px;
}
.liq-card.problem {
  background: rgba(200,60,50,0.07);
  border: 1px solid rgba(200,60,50,0.18);
}
.liq-card.solution {
  background: rgba(0,24,57,0.08);
  border: 1px solid rgba(0,24,57,0.2);
}
.liq-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.liq-card-tag.problem {
  background: rgba(200,60,50,0.15);
  color: rgba(240,120,110,0.9);
  border: 1px solid rgba(200,60,50,0.25);
}
.liq-card-tag.solution {
  background: rgba(0,24,57,0.12);
  color: rgba(0,82,204,0.9);
  border: 1px solid rgba(0,24,57,0.22);
}
.liq-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(247,243,238,0.92);
}
.liq-card p {
  font-size: 0.9rem;
  color: rgba(247,243,238,0.48);
  line-height: 1.65;
}
.liq-points { display: grid; gap: 10px; }
.liq-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.liq-point.bad  { color: rgba(220,50,40,0.8); }
.liq-point.good { color: rgba(0,60,160,0.85); }
.liq-point-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.liq-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.liq-vs-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(247,243,238,0.35);
  letter-spacing: .06em;
}
.liq-vs-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.08);
}

.liq-block-group { display: grid; gap: 20px; }
.liq-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(247,243,238,0.3);
}
.liq-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
}

@media (max-width: 860px) {
  .liquidity-section { padding: 36px 24px; }
  .liq-cols { grid-template-columns: 1fr; }
  .liq-vs { flex-direction: row; }
  .liq-vs-line { width: 40px; height: 1px; }
}

/* ══ Compare chart card (partagé index + performance) ══ */
.compare-card {
  border-radius: 24px;
  padding: 28px 28px 20px;
}
.compare-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.compare-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: #080c14;
}
.compare-sub { font-size: 0.75rem; color: rgba(0,0,0,0.5); margin-top: 4px; }
.compare-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.cleg { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #080c14; font-weight: 500; }
.cleg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.compare-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cline-pe   { stroke: #3b82f6; stroke-width: 2.5; stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards .3s; }
.cline-cac  { stroke: #f59e0b; stroke-width: 2;   stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards .6s; }
.cline-immo { stroke: #10b981; stroke-width: 2;   stroke-dasharray: 550; stroke-dashoffset: 550; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards .9s; }
.cline-livret { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 540; stroke-dashoffset: 540; animation: draw 2.4s cubic-bezier(.4,0,.2,1) forwards 1.2s; }
.carea-pe  { opacity: 0; animation: rise 1s ease forwards 2.5s; }
.cend-dot  { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(0); animation: dot-pop .35s ease forwards; }
.clabel    { opacity: 0; animation: fade-in .4s ease forwards; }

/* ══ Big blocks ══ */
.bigblocks {
  max-width: 1080px;
  display: grid;
  gap: 16px;
}
.bigblock {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  padding: 44px 48px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1a1815 0%, #222018 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  transition: transform .22s, box-shadow .22s;
}
.bigblock:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.32);
}
.bigblock--accent {
  background: linear-gradient(145deg, #001226 0%, #001839 100%);
  border-color: rgba(0,40,100,0.25);
}
.bigblock-num {
  font-family: "Archivo",sans-serif;
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(247,243,238,0.08);
  letter-spacing: -.04em;
  padding-top: 4px;
}
.bigblock--accent .bigblock-num { color: rgba(0,40,100,0.2); }
.bigblock-body { display: grid; gap: 14px; }
.bigblock-body h2 {
  font-size: clamp(1.6rem,2.4vw,2.2rem);
  color: rgba(247,243,238,0.94);
}
.bigblock-body p {
  font-size: 0.97rem;
  color: rgba(247,243,238,0.45);
  line-height: 1.7;
  max-width: 540px;
}

@media (max-width: 640px) {
  .bigblock {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 24px;
  }
  .bigblock-num { font-size: 2.4rem; }
}

/* ══ Features ══ */
.features { max-width: 1080px; display: grid; gap: 44px; }
.features-header { display: grid; gap: 12px; }
.features-header h2 {
  font-size: clamp(1.9rem,3vw,2.6rem);
  max-width: 520px;
}
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.65);
  display: grid; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.88);
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: rgba(0,24,57,0.07);
  border: 1px solid rgba(0,24,57,0.14);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong);
}
.feature-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.feature-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ══ Footer ══ */
.site-footer { color: var(--muted); font-size: 0.9rem; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}
.footer-copy { font-size: 0.82rem; color: var(--muted); max-width: 480px; }
.site-footer .logo-wordmark { color: #080c14; }
.site-footer .logo-icon { filter: invert(1); }

/* ══ Auth ══ */
body.auth { padding: 0; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.auth-brand {
  background: #000;
  padding: 52px 48px;
  display: flex; flex-direction: column; gap: 48px;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ""; position: absolute; top: -80px; left: -60px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,24,57,0.6), transparent 70%);
  pointer-events: none;
}
.auth-brand::after {
  content: ""; position: absolute; bottom: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(0,24,57,0.3), transparent 70%);
  pointer-events: none;
}
.auth-brand .logo { color: var(--bg); position: relative; z-index: 1; }
.auth-brand-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px; position: relative; z-index: 1; }
.auth-brand-body h2 { font-size: clamp(1.8rem,2.8vw,2.8rem); color: var(--bg); }
.auth-brand-points { list-style: none; display: grid; gap: 18px; }
.auth-brand-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: rgba(247,243,238,0.72); line-height: 1.5; }
.auth-brand-points li svg { flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,0.7); }
.auth-brand-note { font-size: 0.82rem; color: rgba(247,243,238,0.38); position: relative; z-index: 1; }
.auth-shell {
  display: flex; align-items: center; justify-content: center; padding: 52px 48px;
  background:
    radial-gradient(circle at 80% 15%, rgba(224,122,79,0.12), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(31,142,122,0.1),  transparent 40%),
    var(--bg);
  position: relative; z-index: 1;
}
.auth-card { width: min(400px,100%); display: grid; gap: 20px; }
.auth-card h1 { font-size: 2.2rem; }
.auth-lead { color: var(--muted); margin-top: -6px; }
.auth-form { display: grid; gap: 16px; margin-top: 4px; }
.auth-field { display: grid; gap: 8px; }
.auth-field span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); font-weight: 600; }
.auth-input {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.95);
  font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,24,57,0.1); }
.auth-footer { font-size: 0.9rem; color: var(--muted); }

/* ── Lien admin nav ── */
.admin-nav-link { color: var(--accent) !important; font-weight: 600; }
.admin-nav-link:hover { color: var(--accent-strong) !important; }

/* ── Bouton Google ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background .18s, box-shadow .18s, border-color .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}
.google-btn:hover {
  background: #fff;
  border-color: rgba(31,29,26,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-link { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.auth-link:hover { text-decoration: underline; }

/* ── Input avec bouton œil ── */
.auth-input-wrap { position: relative; }
.auth-input-wrap .auth-input { padding-right: 44px; width: 100%; }
.auth-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; padding: 4px;
  transition: color .2s;
}
.auth-eye:hover { color: var(--text); }

/* ── Indicateur force mot de passe ── */
.pw-strength { font-size: 0.76rem; font-weight: 600; margin-top: 5px; min-height: 16px; }

/* ── Texte optionnel ── */
.auth-optional { font-weight: 400; opacity: 0.55; font-size: 0.9em; }

/* ── Alertes ── */
.auth-alert {
  padding: 12px 16px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 500; line-height: 1.5;
}
.auth-alert--error {
  background: rgba(224,88,72,0.1);
  border: 1px solid rgba(224,88,72,0.25);
  color: #c0392b;
}
.auth-alert--success {
  background: rgba(31,142,122,0.1);
  border: 1px solid rgba(0,24,57,0.2);
  color: var(--accent);
}

/* ══ Keyframes ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dot-pop  { to { opacity: 1; transform: scale(1); } }
@keyframes ring-pulse {
  0%   { opacity: 0.55; transform: scale(0.85); }
  100% { opacity: 0;    transform: scale(2.4); }
}
@keyframes tip-in { to { opacity: 1; transform: translateY(0); } }

@keyframes bar-grow { to { transform: scaleY(1); } }
@keyframes growBar  { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0% 0 0); } }
@keyframes growBarV { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fade-in  { to { opacity: 1; } }

#fc-amount-input::-webkit-inner-spin-button,
#fc-amount-input::-webkit-outer-spin-button,
#fc-return-input::-webkit-inner-spin-button,
#fc-return-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

@keyframes float-main {
  0%,100% { transform: translateY(0px)   rotate(0deg); }
  40%     { transform: translateY(-8px)  rotate(-0.4deg); }
  70%     { transform: translateY(-5px)  rotate(0.3deg); }
}
@keyframes float-a {
  0%,100% { transform: translateY(0px); }
  50%     { transform: translateY(-10px); }
}
@keyframes float-b {
  0%,100% { transform: translateY(-4px); }
  50%     { transform: translateY(7px); }
}

@keyframes card-glow-dark {
  0%,100% { box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 0  0px rgba(45,224,188,0); }
  50%     { box-shadow: 0 32px 80px rgba(0,0,0,0.35), 0 0 40px 6px rgba(45,224,188,0.1); }
}

@keyframes live-pulse {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.7); }
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.8; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.08); }
}
@keyframes delta-bounce {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-3px); }
}
@keyframes p-rise {
  0%   { opacity: 0; transform: translate(0,0) scale(1); }
  12%  { opacity: 0.75; }
  88%  { opacity: 0.55; }
  100% { opacity: 0; transform: translate(12px,-85px) scale(0.2); }
}

/* ══ Zoom global desktop (conçu sur 4K) ══ */
@media (min-width: 721px) {
  html { zoom: 0.8; }
}

/* ══ Responsive ══ */
@media (max-width: 900px) {
  .chart-card {
    margin-right: 0;
    padding-right: 24px;
    border-radius: 22px;
    border-right: 1px solid rgba(255,255,255,0.06);
  }
}

@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 40px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: "Archivo", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}
.mobile-menu a:hover { opacity: .6; }

@media (max-width: 720px) {
  /* ── Layout général ── */
  body { padding: 0 4vw; }
  .site-header { margin: 0 -4vw; padding: 0 4vw; }
  .nav { padding: 12px 0; }
  .logo-icon { height: 36px; }
  .logo-wordmark { font-size: 1.2rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  main { padding: 4vh 0 8vh; gap: 40px; }

  /* ── Hero ── */
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-divider { display: none; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-simple { padding: 6vh 0 4vh; gap: 20px; text-align: center; }
  .hero-simple-title { font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .hero-simple .button.primary { align-self: center; }

  /* ── Bouton primary : trop grand par défaut ── */
  .button.primary { padding: 16px 32px !important; font-size: 1.05rem !important; }

  /* ── Features ── */
  .features-grid { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* ── Auth / login ── */
  .m-card--portfolio { align-self: flex-start; margin-bottom: -12px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 24px; gap: 20px; }
  .auth-brand-body h2 { font-size: 1.6rem; }
  .auth-shell { padding: 40px 24px; }

  /* ── Frais calculator ── */
  .fc-controls { flex-direction: column; align-items: stretch; }
  #fc-bars { gap: 10px !important; }
  #fc-search { width: 100% !important; box-sizing: border-box !important; }

  /* ── Grilles 2 col → 1 col ── */
  .contact-grid { grid-template-columns: 1fr !important; }
  .rapidite-grid { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* ── Titres de section ── */
  h2[style*="clamp(2rem"] { font-size: clamp(1.55rem, 7.5vw, 2.2rem) !important; }

  /* ── Compare chart card ── */
  .compare-card { padding: 16px 14px 10px; }
  .compare-header { flex-direction: column; gap: 10px; margin-bottom: 12px; }
  .compare-legend { gap: 8px; flex-wrap: wrap; }

  /* ── Paddings de cartes ── */
  [style*="padding:36px 32px"], [style*="padding: 36px 32px"] { padding: 22px 18px !important; }
  [style*="padding:28px 32px"], [style*="padding: 28px 32px"] { padding: 18px 16px !important; }
  [style*="padding:48px 40px"], [style*="padding: 48px 40px"] { padding: 28px 18px !important; }
  [style*="padding:36px 40px"], [style*="padding: 36px 40px"] { padding: 22px 18px !important; }
  [style*="padding:36px 48px"], [style*="padding: 36px 48px"] { padding: 22px 18px !important; }
  [style*="padding:44px 48px"], [style*="padding: 44px 48px"] { padding: 24px 18px !important; }
  [style*="padding:64px 60px"], [style*="padding: 64px 60px"] { padding: 32px 20px !important; }

  /* ── Sélectivité : stat ~1% ── */
  [style*="font-size:clamp(4rem"] { font-size: clamp(3rem, 13vw, 4.5rem) !important; }

  /* ── Labels uppercase avec letter-spacing → réduire spacing sur mobile ── */
  [style*="letter-spacing:.14em"][style*="text-transform:uppercase"] {
    letter-spacing: .04em !important;
  }

  /* ── Sélectivité : grand texte (clamp 1.3rem) ── */
  [style*="font-size:clamp(1.3rem"] { font-size: clamp(1.1rem, 5vw, 1.4rem) !important; }

  /* ── Table performance : colonnes ── */
  #perf-table th:nth-child(3),
  #perf-table td:nth-child(3) { white-space: nowrap !important; }

  /* ── Email long → wrap ── */
  a[href^="mailto"] { word-break: break-all; }

  /* ── Sections avec var(--gutter) ── */
  section[style*="var(--gutter)"] { padding-left: 0 !important; padding-right: 0 !important; }
  div[style*="var(--gutter)"] { padding-left: 0 !important; padding-right: 0 !important; }

  /* ── Liquidity section CSS ── */
  .liquidity-section { padding: 28px 18px; }
  .liq-cols { grid-template-columns: 1fr; }
  .liq-vs { flex-direction: row; }
  .liq-vs-line { width: 40px; height: 1px; }

  /* ── Bigblock ── */
  .bigblock { grid-template-columns: 1fr; gap: 12px; padding: 28px 20px; }
  .bigblock-num { font-size: 2.4rem; }
}
