/* ============================================================
   Jockalia · Landing Assurance Courtiers — Futuriste Dark Premium
   ============================================================ */

:root {
  --bg-0: #05070a;
  --bg-1: #0a0f0d;
  --emerald: #10B981;
  --teal: #2a9d8f;
  --gold: #d4a853;
  --white: #e8eef0;
  --grey: #8fa3a0;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-title: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--bg-0);
  background-image: radial-gradient(ellipse 120% 80% at 50% -10%, #0a0f0d 0%, #05070a 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Aurora blobs ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.blob-1 {
  width: 45vw; height: 45vw;
  background: radial-gradient(circle, var(--emerald), transparent 70%);
  top: -10%; left: -8%;
  animation: drift1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--teal), transparent 70%);
  bottom: -12%; right: -6%;
  animation: drift2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 30vw; height: 30vw;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: 40%; left: 55%;
  opacity: 0.18;
  animation: drift3 30s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(8vw, 10vh) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-10vw, -8vh) scale(1.1); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vw, 6vh) scale(1.2); } }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 18px;
  opacity: 0.9;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.section-text {
  color: var(--grey);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: #04120c;
  background: linear-gradient(135deg, var(--emerald), var(--teal));
  padding: 15px 32px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 0 rgba(16,185,129,0), 0 8px 30px rgba(16,185,129,0.25);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(16,185,129,0.55), 0 8px 40px rgba(16,185,129,0.35);
}
.btn-nav { padding: 11px 24px; font-size: 0.88rem; }
.btn-hero {
  margin-top: 34px;
  padding: 17px 40px;
  font-size: 1.05rem;
  box-shadow: 0 0 40px rgba(16,185,129,0.4);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,7,10,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 38px; width: auto; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}
.hero-content::before {
  content: "";
  position: absolute;
  inset: -3rem -5rem;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(5,7,10,0.78) 0%, rgba(5,7,10,0.55) 40%, rgba(5,7,10,0) 72%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 26px;
  opacity: 0.9;
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 0 40px rgba(16,185,129,0.35), 0 0 80px rgba(16,185,129,0.15);
}
.hero-sub {
  color: #c9d4d2;
  opacity: 1;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--emerald);
  border-radius: 4px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(14px)} 100%{opacity:0} }

/* ---------- Dot canvases (constat / reveil) ---------- */
.constat-grid-wrap {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}
.dot-canvas {
  width: 100%;
  max-width: 720px;
  height: 260px;
  display: block;
}

/* ---------- Punch ---------- */
.punch {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  text-align: center;
  line-height: 1.25;
  margin-top: 30px;
}
.punch-glow {
  color: var(--emerald);
  text-shadow: 0 0 24px rgba(16,185,129,0.6);
  white-space: nowrap;
}

/* ---------- Preuve ---------- */
.section-preuve { text-align: center; }
.section-preuve .section-head { margin-left: auto; margin-right: auto; }
.counter-block { margin: 20px 0 10px; }
.counter {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, var(--emerald) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(16,185,129,0.4));
}
.counter-label {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.05em;
  color: var(--grey);
  margin-top: 6px;
}
.objectif {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--white);
  margin: 34px 0;
}
.objectif strong { color: var(--gold); }
.example-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 30px;
  border-radius: 18px;
  position: relative;
  text-align: left;
}
.example-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,168,83,0.35);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.example-card p { color: var(--grey); font-size: 1.05rem; }
.example-card strong { color: var(--white); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px rgba(0,0,0,0.35);
}

/* ---------- Qui je suis ---------- */
.qui-inner {
  display: flex;
  align-items: center;
  gap: clamp(30px, 6vw, 70px);
  flex-wrap: wrap;
}
.qui-photo { flex: 0 0 auto; }
.photo-frame {
  width: clamp(200px, 30vw, 300px);
  border-radius: 24px;
  overflow: hidden;
  padding: 10px;
}
.photo-frame img {
  width: 100%;
  display: block;
  border-radius: 16px;
}
.qui-text { flex: 1 1 320px; }

/* ---------- Cards (comment) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  padding: 34px 28px;
  border-radius: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(16,185,129,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(16,185,129,0.18);
}
.card-num {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  opacity: 0.8;
}
.card h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.card p { color: var(--grey); font-size: 1rem; }

/* ---------- CTA final ---------- */
.section-cta { text-align: center; }
.cta-inner { max-width: 700px; }
.section-cta h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-shadow: 0 0 40px rgba(16,185,129,0.3);
}
.cta-sub {
  color: var(--grey);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 18px 0 44px;
}
.magnetic-wrap {
  display: inline-block;
  padding: 30px;
}
.btn-magnetic {
  font-size: 1.15rem;
  padding: 20px 48px;
  box-shadow: 0 0 50px rgba(16,185,129,0.5), 0 8px 40px rgba(16,185,129,0.3);
  will-change: transform;
  transition: box-shadow 0.25s ease;
}
.btn-magnetic:hover {
  box-shadow: 0 0 70px rgba(16,185,129,0.75), 0 8px 50px rgba(16,185,129,0.4);
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 50px 24px 60px;
  border-top: 1px solid var(--glass-border);
  color: var(--grey);
  font-size: 0.92rem;
}
.footer a { color: var(--emerald); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- Reveal (GSAP handles, fallback visible) ---------- */
.reveal { will-change: transform, opacity; }

/* ============================================================
   RESPONSIVE — mobile-first tuning
   ============================================================ */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .qui-inner { flex-direction: column; text-align: center; }
  .qui-text { flex-basis: auto; }
  .dot-canvas { height: 200px; }
}
@media (max-width: 480px) {
  .section { padding: 70px 0; }
  .hero { padding-top: 90px; }
  .blob-3 { display: none; }
  .btn-hero { width: 100%; max-width: 320px; }
  .punch-glow { white-space: normal; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
