:root {
  --bg-black: #0a0a0b;
  --bg-alt: #131316;
  --white: #f5f5f4;
  --gray: #9a9a9f;
  --gray-dim: #6b6b70;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.06);
  --blue: #5b8cff;
  --blue-dim: #3d5fb8;
  --radius: 20px;
  --max-width: 1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg-black);
  color: var(--white);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; }

p { margin: 0; color: var(--gray); }

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 140px 24px;
  position: relative;
}

.section.panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bg-alt);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: -1;
}

/* ---------- Global grid texture ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 0%, transparent 75%);
  opacity: 0.5;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(
    circle 420px at var(--x, 50%) var(--y, 50%),
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cursor-glow.active { opacity: 1; }

/* ---------- Glow text ---------- */
.glow-text {
  position: relative;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.22), 0 0 90px rgba(255, 255, 255, 0.08);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 18px;
}
.eyebrow-center { display: block; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: normal;
}
.btn-primary {
  background: var(--white);
  color: #050505;
  box-shadow: 0 0 0 rgba(255,255,255,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.18);
}
.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--border-strong);
  color: var(--white);
  backdrop-filter: blur(20px);
}
.btn-secondary:hover {
  border-color: var(--white);
  background: var(--glass-strong);
}
.btn-small { padding: 11px 22px; font-size: 0.85rem; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.logo span {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gray-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 24px 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
}
.accent {
  color: var(--white);
  border-bottom: 2px solid var(--blue);
  text-shadow: 0 0 30px rgba(91, 140, 255, 0.35);
}
.hero-sub {
  margin-top: 26px;
  font-size: 1.05rem;
  max-width: 46ch;
}
.hero-text .btn { margin-top: 38px; }

.hero-visual { display: flex; justify-content: center; }

/* ---------- iPhone mock (17 Pro style) ---------- */
.iphone-mock {
  position: relative;
  width: 272px;
  height: 560px;
  padding: 10px;
  border-radius: 58px;
  background: linear-gradient(155deg, #4a4a4d 0%, #232325 18%, #131314 45%, #0a0a0a 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.iphone-btn {
  position: absolute;
  background: linear-gradient(90deg, #3a3a3c, #1c1c1e);
  border-radius: 3px;
}
.iphone-btn-action { left: -2px; top: 108px; width: 4px; height: 26px; }
.iphone-btn-vol-up { left: -2px; top: 158px; width: 4px; height: 44px; }
.iphone-btn-vol-down { left: -2px; top: 212px; width: 4px; height: 44px; }
.iphone-btn-power { right: -2px; top: 168px; width: 4px; height: 70px; }

.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 48px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.9);
}
.dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 56px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: var(--gray);
}
.phone-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #333, #111);
  border: 1px solid var(--border-strong);
}
.phone-body { padding: 20px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
}
.bubble-out {
  background: var(--white);
  color: #050505;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  max-width: 88%;
}
.bubble-link {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  align-self: flex-end;
  padding: 10px 14px;
}
.bubble-link-icon { font-size: 1.1rem; color: var(--blue); }
.bubble-link strong { display: block; font-size: 0.82rem; color: var(--white); }
.bubble-link small { color: var(--gray-dim); font-size: 0.7rem; }

.iphone-home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  margin: 0 auto 10px;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.banner-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
}
.banner-text {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 36px;
  color: var(--white);
}

/* ---------- Section titles ---------- */
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- Profiles ---------- */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.profile-card:hover { border-color: var(--border-strong); transform: translateY(-4px); background: var(--glass-strong); }
.profile-card p { font-size: 1.02rem; }
.profile-card strong {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.profiles-closing {
  text-align: center;
  max-width: 620px;
  margin: 60px auto 0;
  font-size: 1.08rem;
  color: var(--white);
}

/* ---------- Contrast ---------- */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contrast-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}

/* Zone grise (hasard) — deliberately flat and lifeless */
.contrast-before {
  filter: saturate(0.6) brightness(0.88);
}
.contrast-before p { color: var(--gray-dim); }
.contrast-before .chart-canvas { opacity: 0.75; }

.contrast-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contrast-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  line-height: 1.4;
}
.contrast-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.contrast-list-off li { color: var(--gray-dim); }
.contrast-list-off li::before { content: "✕"; color: var(--gray-dim); }
.contrast-list-on li { color: var(--white); }
.contrast-list-on li::before { content: "✓"; color: var(--blue); }

/* Système P.A.C.E. — alive, glowing, in control */
.contrast-after {
  border-color: rgba(91, 140, 255, 0.35);
  background: var(--glass-strong);
}
.contrast-after p { color: var(--white); }
.contrast-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.contrast-before .contrast-label { color: var(--gray-dim); }
.contrast-after .contrast-label { color: var(--white); }
.contrast-sublabel {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-dim);
  margin-top: -14px;
  margin-bottom: 18px;
}

/* HUD corner brackets + status dot (Système P.A.C.E. card only) */
.hud-corner {
  position: absolute;
  z-index: 2;
  width: 16px;
  height: 16px;
  border: 2px solid var(--blue);
  filter: drop-shadow(0 0 4px rgba(91, 140, 255, 0.65));
  opacity: 0.9;
}
.hud-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.hud-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.hud-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.hud-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

.hud-status {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(91, 140, 255, 0.9);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.chart-canvas {
  position: relative;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  border: 1px solid var(--border);
  padding: 18px 18px 12px;
  margin: 22px 0 26px;
}
.chart-svg { width: 100%; height: 130px; display: block; overflow: visible; }
.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line-irregular { stroke: var(--gray); }
.chart-line-exponential {
  stroke: var(--blue);
  filter: drop-shadow(0 0 6px rgba(91, 140, 255, 0.6));
}
.chart-end-dot {
  fill: var(--blue);
  filter: drop-shadow(0 0 6px rgba(91, 140, 255, 0.85));
}
.chart-area { opacity: 0.9; }
.chart-markers-irregular circle {
  fill: var(--bg-black);
  stroke: var(--gray);
  stroke-width: 1.5;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.62rem;
  color: var(--gray-dim);
  letter-spacing: 0.04em;
}

.contrast-closing {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 52px;
  letter-spacing: -0.02em;
}

/* ---------- Guarantees ---------- */
.guarantees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.guarantee-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.guarantee-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid rgba(91, 140, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.guarantee-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.guarantee-card p { font-size: 0.98rem; }

/* ---------- Specialized / About ---------- */
.specialized, .about { text-align: center; }
.specialized-body, .about-body {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1.08rem;
}
.about .section-title { margin-bottom: 32px; }
.about-body { margin-bottom: 0; }

/* ---------- FAQ book ---------- */
.faq-book {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.faq-page-viewport {
  position: relative;
  flex: 1;
  min-height: 220px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  overflow: hidden;
}
.faq-page {
  position: absolute;
  inset: 0;
  padding: 48px 52px;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.faq-page.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.faq-page.is-leaving-prev { transform: translateX(16px); opacity: 0; }
.faq-page.is-leaving-next { transform: translateX(-16px); opacity: 0; }
.faq-page h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.3;
}
.faq-page p { font-size: 1rem; line-height: 1.6; }

.faq-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--border-strong);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.faq-nav:hover { background: var(--glass-strong); transform: scale(1.05); }
.faq-nav:disabled { opacity: 0.3; cursor: default; transform: none; }

.faq-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}
.faq-dots { display: flex; gap: 8px; }
.faq-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.faq-dot.is-active { background: var(--blue); transform: scale(1.3); }
.faq-count {
  font-size: 0.75rem;
  color: var(--gray-dim);
  letter-spacing: 0.08em;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  padding: 170px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 780px;
  margin: 0 auto;
}
.cta-final h2 .letter {
  display: inline-block;
  white-space: pre;
}
.cta-final h2.letters-animate .letter {
  animation: letter-sweep 1s ease forwards;
  animation-delay: calc(var(--i) * 0.045s);
}
@keyframes letter-sweep {
  50% { color: var(--blue); text-shadow: 0 0 20px rgba(91, 140, 255, 0.75); }
}
.cta-final p {
  margin: 28px auto 46px;
  font-size: 1.1rem;
  max-width: 480px;
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--gray-dim);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { order: -1; }
  .main-nav { display: none; }
  .profiles-grid, .contrast-grid, .guarantees-grid { grid-template-columns: 1fr; }
  .section { padding: 90px 24px; }
  .cta-final { padding: 110px 24px; }
  .banner { padding: 100px 24px; }
  .faq-page-viewport, .faq-page { padding: 36px 28px; }
  .faq-book { gap: 10px; }
  .faq-nav { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dashed-path { animation: none; }
  html { scroll-behavior: auto; }
  .cursor-glow { display: none; }
  .btn, .profile-card, .faq-page { transition: none; }
  .hud-dot { animation: none; opacity: 0.85; }
  .cta-final h2 .letter { animation: none; }
}

.reduce-motion .hud-dot { animation: none; opacity: 0.85; }
.reduce-motion .cta-final h2 .letter { animation: none; }
