/* ═══════════════════════════════════════════════
   PROSPERTA — landing page
   Palette : near-black #0A0A0A · blanc · accent #7C5CFF
   ═══════════════════════════════════════════════ */

:root {
  --black: #0A0A0A;
  --white: #FFFFFF;
  --accent: #7C5CFF;
  --ink: #141418;
  --gray-600: #5c5c66;
  --gray-400: #a7a7b0;
  --gray-300: #c4c4cc;
  --line-light: #e8e8ee;
  --line-dark: rgba(255, 255, 255, 0.1);
  --radius-sheet: clamp(24px, 4vw, 44px);
  --pad-inline: clamp(20px, 5vw, 48px);
  --font: "Satoshi", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

::selection { background: var(--accent); color: var(--white); }

/* ─────────────── Grain ─────────────── */

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────── Hero ─────────────── */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1150px 750px at -2% -20%, rgba(216, 223, 255, 0.92), transparent 58%),
    radial-gradient(1600px 1000px at 10% -14%, rgba(101, 86, 255, 0.55), transparent 60%),
    radial-gradient(2000px 1300px at 24% 4%, rgba(56, 46, 165, 0.22), transparent 62%),
    #050508;
  padding-bottom: calc(140px + var(--radius-sheet) + 56px);
}

/* nappe violette qui respire lentement derrière le hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(640px 420px at 22% 14%, rgba(124, 92, 255, 0.28), transparent 62%);
  animation: aurora 13s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.65; }
  to { transform: translate3d(5%, 4%, 0) scale(1.18); opacity: 1; }
}

.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* étoiles scintillantes (générées en JS) */
.twinkle {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: twinkle var(--d, 3.5s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.hero-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  animation: arc-glow 8s ease-in-out infinite alternate;
}

@keyframes arc-glow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* ─────────────── Nav ─────────────── */

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark { display: inline-flex; width: 26px; height: 26px; }
.brand-mark svg { width: 100%; height: 100%; }

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-pill--cta {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.nav-pill--cta:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--black);
}

/* ─────────────── Hero content ─────────────── */

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(90px, 14vh, 160px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.badge-star {
  font-size: 11px;
  opacity: 0.9;
  display: inline-block;
  animation: star-pulse 2.8s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
  margin-top: 34px;
  font-size: clamp(2rem, 11.2vw, 7.2rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-title span { display: block; }
.hero-title .l1 { --tc: #ffffff; --shine: #b49cff; color: var(--white); }
.hero-title .l2 { --tc: #c9c9d6; --shine: #ffffff; color: #c9c9d6; }
.hero-title .l3 { --tc: #a78fff; --shine: #ffffff; color: #a78fff; }

/* effet miroir : un reflet balaie le titre, en cascade ligne par ligne */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-title span {
    background: linear-gradient(105deg, var(--tc) 36%, var(--shine) 50%, var(--tc) 64%);
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-shine 4.5s ease-in-out infinite;
  }
  .hero-title .l2 { animation-delay: 0.15s; }
  .hero-title .l3 { animation-delay: 0.3s; }
}

@keyframes title-shine {
  0%, 36% { background-position: 130% 0; }
  70%, 100% { background-position: -30% 0; }
}

.hero-sub {
  margin-top: 36px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.hero-ctas {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ─────────────── Boutons ─────────────── */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(0.22, 0.68, 0.36, 1),
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* reflet qui balaie le bouton au survol */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(130%) skewX(-18deg); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary::before {
  background: linear-gradient(110deg, transparent 25%, rgba(124, 92, 255, 0.22) 50%, transparent 75%);
}

.btn--primary:hover {
  background: #f1effc;
  box-shadow: 0 12px 32px rgba(124, 92, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.btn--ghost::before {
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.14) 50%, transparent 75%);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.btn--lg { padding: 18px 38px; font-size: 16px; }

/* ─────────────── Sceau rotatif ─────────────── */

.seal {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 7vw, 110px);
  bottom: calc(var(--radius-sheet) + 120px);
  width: clamp(110px, 13vw, 160px);
  height: clamp(110px, 13vw, 160px);
  color: var(--white);
}

.seal-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.seal-text text {
  fill: rgba(255, 255, 255, 0.85);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.seal-star {
  position: absolute;
  inset: 30%;
  width: 40%;
  height: 40%;
  color: var(--white);
  filter: drop-shadow(0 0 14px rgba(180, 170, 255, 0.55));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─────────────── Feuilles ─────────────── */

.sheet {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  margin-top: calc(-1 * (var(--radius-sheet) + 40px));
}

.sheet--light {
  background: var(--white);
  border-radius: var(--radius-sheet);
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(80px, 10vw, 140px);
}

.sheet--dark {
  z-index: 1;
  border-radius: 0;
  margin-top: 0;
  background:
    radial-gradient(1200px 800px at 85% 108%, rgba(96, 82, 255, 0.32), transparent 60%),
    radial-gradient(900px 600px at 70% 115%, rgba(160, 150, 255, 0.18), transparent 55%),
    #08080c;
  color: var(--white);
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 140px);
}

.sheet--dark > .container { position: relative; z-index: 2; }

/* ─────────────── Manifeste ─────────────── */

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.mark-ghost {
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: #c3b3ff;
  margin-bottom: 28px;
}

.mark-ghost svg { width: 100%; height: 100%; }

.manifesto-title {
  text-wrap: balance;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
}

.manifesto-title .accent { color: var(--accent); }

.manifesto-right p {
  font-size: clamp(1.05rem, 1.45vw, 1.19rem);
  line-height: 1.62;
  color: #1c1c22;
}

.manifesto-right p + p { margin-top: 1.1em; }

.fade { color: var(--gray-400); }
.fade-dark { color: rgba(255, 255, 255, 0.45); }

/* ─────────────── Stats ─────────────── */

.stats {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(36px, 5vw, 88px);
  border-left: 1px solid var(--line-light);
  padding-left: clamp(16px, 2.4vw, 30px);
  padding-block: 8px;
}

.stat-num {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
}

.stat-label {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--gray-600);
  max-width: 16em;
}

.stat-source {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* cascade des stats et des étapes au reveal */
html.js .stats .stat:nth-child(2) { transition-delay: 0.12s; }
html.js .steps .step:nth-child(2) { transition-delay: 0.1s; }
html.js .steps .step:nth-child(3) { transition-delay: 0.2s; }
html.js .steps .step:nth-child(4) { transition-delay: 0.3s; }

/* ─────────────── Méthode ─────────────── */

.method {
  margin-top: clamp(90px, 12vw, 150px);
  scroll-margin-top: 48px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.kicker span { color: var(--accent); font-size: 11px; }

.kicker--dark { color: var(--gray-400); }

.steps {
  margin-top: 40px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.step {
  border-top: 1px solid var(--line-light);
  padding-top: 26px;
}

.step-num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gray-400);
}

.step h3 {
  margin-top: 46px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--black);
}

.step p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--gray-600);
}

/* ─────────────── Pourquoi ─────────────── */

.why {
  max-width: 780px;
  scroll-margin-top: 48px;
}

.why-title {
  margin-top: 28px;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
}

.why-body {
  margin-top: 36px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.roi {
  margin-top: 44px;
  border-left: 2px solid var(--accent);
  padding-left: clamp(18px, 2.5vw, 28px);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.roi strong {
  font-weight: 500;
  color: var(--white);
}

/* ─────────────── CTA final ─────────────── */

.cta {
  margin-top: clamp(110px, 15vw, 200px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 48px;
}

.cta-title {
  text-wrap: balance;
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 17em;
  color: var(--white);
}

.cta-sub {
  text-wrap: balance;
  margin-top: 24px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  max-width: 30em;
}

.cta > .btn--lg { margin-top: 40px; }

/* ─────────────── Booking / formulaire ─────────────── */

.booking {
  margin-top: clamp(64px, 8vw, 96px);
  width: min(640px, 100%);
  scroll-margin-top: 48px;
  text-align: left;
}

.contact-form {
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 15.5px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(124, 92, 255, 0.65);
  background: rgba(255, 255, 255, 0.07);
}

.form-submit { align-self: flex-start; }

/* ─────────────── Connect / keycaps ─────────────── */

.connect {
  margin-top: clamp(64px, 8vw, 90px);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.connect-line {
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
}

.connect-email {
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s ease;
}

.connect-email:hover { border-color: var(--white); }

.keys {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 6px;
}

.keycap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 3px 0 rgba(255, 255, 255, 0.07), 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.keys:hover .keycap { transform: translateY(-1px); }
.keys:active .keycap {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.keys-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}

.keys:hover .keys-hint { color: rgba(255, 255, 255, 0.75); }

.keys.copied .keys-hint { color: var(--accent); }

.signature {
  margin-top: 34px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.45);
}

/* ─────────────── Footer ─────────────── */

.footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(90px, 12vw, 150px);
  border-top: 1px solid var(--line-dark);
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand strong {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.footer-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

/* ─────────────── Reveal (gated derrière html.js : tout reste visible sans JS) ─────────────── */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ─────────────── Responsive ─────────────── */

@media (max-width: 900px) {
  .manifesto { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links .nav-pill:not(.nav-pill--cta) { display: none; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .step h3 { margin-top: 28px; }
  .stats { grid-template-columns: 1fr; gap: 28px; }
  .stat { gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .seal {
    width: 96px;
    height: 96px;
    right: 20px;
    bottom: calc(var(--radius-sheet) + 72px);
  }
  .hero-ctas .btn { width: 100%; }
  .connect { flex-direction: column; gap: 16px; }
  .connect-line { text-align: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

/* ─────────────── Motion réduite ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seal-text { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn::before { display: none; }
  .btn:hover, .nav-pill:hover { transform: none; }
  .hero-title span { animation: none; }
  .hero::before, .twinkle, .hero-arc, .badge-star { animation: none; }
  html.js .stats .stat, html.js .steps .step { transition-delay: 0s; }
}
