/* ==========================================================================
   Atlas Pro ONTV — atlasproontvv.top
   Identite visuelle : "Midnight Aurora" / atlas celeste
   1. Tokens  2. Reset  3. Layout  4. Composants  5. Pages  6. Responsive  7. Motion
   ========================================================================== */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Fonds */
  --ink-900: #070a1f;
  --ink-800: #0b0f2b;
  --ink-700: #111634;
  --surface: #141a3d;
  --surface-glass: rgba(255, 255, 255, 0.045);
  --surface-glass-hi: rgba(255, 255, 255, 0.075);

  /* Traits */
  --line: rgba(160, 175, 255, 0.14);
  --line-hi: rgba(160, 175, 255, 0.28);

  /* Couleurs de marque */
  --violet: #6d4aff;
  --violet-bright: #8b6bff;
  --violet-deep: #4a2fd6;
  --cyan: #22d3ee;
  --cyan-deep: #0e9fb8;

  /* Texte */
  --text: #eef0ff;
  --text-dim: #a8b0d8;
  --text-faint: #7d86b0;

  /* Etats */
  --success: #34d399;
  --warn: #fbbf24;

  /* Typo */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", ui-monospace, monospace;

  --fs-hero: clamp(2.5rem, 7vw, 5rem);
  --fs-h1: clamp(2.1rem, 5vw, 3.4rem);
  --fs-h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.15rem, 2vw, 1.4rem);
  --fs-lead: clamp(1.02rem, 1.5vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Espacements */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);

  /* Rayons */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Ombres */
  --shadow-glow: 0 0 40px rgba(109, 74, 255, 0.35);
  --shadow-glow-cyan: 0 0 32px rgba(34, 211, 238, 0.28);
  --shadow-card: 0 18px 50px rgba(4, 6, 20, 0.55);

  /* Transitions */
  --t-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-mid: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1180px;
  --wrap-narrow: 780px;
  --header-h: 74px;
}

/* ---------- 2. RESET ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Voute celeste : mesh aurore fixe + champ d'etoiles */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(109, 74, 255, 0.34), transparent 62%),
    radial-gradient(ellipse 70% 50% at 88% 6%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 104%, rgba(74, 47, 214, 0.22), transparent 65%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(238, 240, 255, 0.9), transparent),
    radial-gradient(1px 1px at 74% 14%, rgba(34, 211, 238, 0.8), transparent),
    radial-gradient(1px 1px at 42% 62%, rgba(238, 240, 255, 0.55), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(238, 240, 255, 0.7), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(139, 107, 255, 0.85), transparent),
    radial-gradient(1px 1px at 62% 88%, rgba(238, 240, 255, 0.5), transparent),
    radial-gradient(1px 1px at 32% 8%, rgba(238, 240, 255, 0.45), transparent);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--sp-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--text);
}

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

ul,
ol {
  margin: 0 0 var(--sp-4);
  padding-left: 1.2rem;
}

li {
  margin-bottom: var(--sp-2);
}

strong {
  color: var(--text);
  font-weight: 650;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--violet);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}

.skip-link:focus {
  top: var(--sp-4);
  color: var(--ink-900);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. LAYOUT --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.wrap--narrow {
  max-width: var(--wrap-narrow);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--edge {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  line-height: 1.72;
}

.grid {
  display: grid;
  gap: var(--sp-5);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Dispositif structurel : coordonnee monospace (repere d'atlas) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-4);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ---------- 4. COMPOSANTS ---------------------------------------------- */

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo:hover {
  color: var(--text);
}

.logo svg {
  flex: 0 0 auto;
}

.logo__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 3px;
}

/* En-tete */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-mid),
    border-color var(--t-mid),
    backdrop-filter var(--t-mid);
}

.site-header.is-scrolled {
  background: rgba(11, 15, 43, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li {
  margin: 0;
}

.nav__link {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
  padding-block: var(--sp-2);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition:
    transform var(--t-fast),
    box-shadow var(--t-mid),
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn--primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 54px rgba(109, 74, 255, 0.55);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--ink-900);
  box-shadow: var(--shadow-glow-cyan);
}

.btn--cyan:hover {
  color: var(--ink-900);
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.45);
}

.btn--ghost {
  background: var(--surface-glass);
  border-color: var(--line-hi);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  color: var(--text);
  background: var(--surface-glass-hi);
  border-color: var(--violet-bright);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.btn-row--center {
  justify-content: center;
}

/* Carte de verre */
.card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  transition:
    transform var(--t-mid),
    border-color var(--t-mid),
    background var(--t-mid);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
  background: var(--surface-glass-hi);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(109, 74, 255, 0.28), rgba(34, 211, 238, 0.16));
  border: 1px solid var(--line-hi);
  color: var(--cyan);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card p {
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

.card h3 {
  margin-bottom: var(--sp-3);
}

/* Capsule de code : element signature */
.code-capsule {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5);
  background: rgba(7, 10, 31, 0.72);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.code-capsule__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}

.code-capsule__label {
  color: var(--text-faint);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.05);
  }
}

/* Etiquettes */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-hi);
  background: var(--surface-glass);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.pill--accent {
  border-color: rgba(34, 211, 238, 0.42);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
}

/* Cartes tarifaires */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  transition:
    transform var(--t-mid),
    border-color var(--t-mid);
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--line-hi);
}

.plan--featured {
  border-color: rgba(139, 107, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(139, 107, 255, 0.2), 0 24px 60px rgba(74, 47, 214, 0.3);
}

.plan--featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(160deg, var(--violet), transparent 45%, var(--cyan));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan__badge {
  position: absolute;
  top: -12px;
  left: var(--sp-6);
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan__screens {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-3);
}

.plan__name {
  font-size: 1.35rem;
  margin-bottom: var(--sp-4);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-2);
}

.plan__amount {
  font-size: 2.9rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan__currency {
  font-size: 1.4rem;
  color: var(--text-dim);
}

.plan__period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6);
  flex: 1;
}

.plan__features li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.55;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

/* Accordeon FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: color var(--t-fast);
}

.faq__trigger:hover {
  color: var(--cyan);
}

.faq__sign {
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-hi);
  border-radius: 50%;
  transition:
    transform var(--t-mid),
    border-color var(--t-mid);
}

.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: currentColor;
}

.faq__sign::before {
  width: 9px;
  height: 1.5px;
}

.faq__sign::after {
  width: 1.5px;
  height: 9px;
  transition: opacity var(--t-fast);
}

.faq__trigger[aria-expanded="true"] .faq__sign {
  transform: rotate(180deg);
  border-color: var(--cyan);
}

.faq__trigger[aria-expanded="true"] .faq__sign::after {
  opacity: 0;
}

.faq__panel {
  display: none;
  padding-bottom: var(--sp-5);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  max-width: 72ch;
}

.faq__panel.is-open {
  display: block;
}

/* Etapes numerotees (sequence reelle) */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(139, 107, 255, 0.32);
  line-height: 1;
}

.steps h3 {
  font-size: 1.08rem;
  margin-bottom: var(--sp-2);
  padding-right: 2.5rem;
}

.steps p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  margin: 0;
}

/* Guide pas a pas ordonne */
.walkthrough {
  counter-reset: wstep;
  list-style: none;
  padding: 0;
  margin: 0;
}

.walkthrough > li {
  counter-increment: wstep;
  position: relative;
  padding: 0 0 var(--sp-6) var(--sp-8);
  margin: 0;
}

.walkthrough > li::before {
  content: counter(wstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(109, 74, 255, 0.14);
  border: 1px solid var(--line-hi);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--cyan);
}

.walkthrough > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 46px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-hi), transparent);
}

.walkthrough h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sp-2);
  padding-top: 0.5rem;
}

.walkthrough p,
.walkthrough ul {
  color: var(--text-dim);
  font-size: var(--fs-sm);
}

/* Cadre de capture d'ecran */
.frame {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-hi);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.frame img {
  border-radius: calc(var(--r-lg) - 8px);
  width: 100%;
}

.frame--glow::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 60%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(109, 74, 255, 0.4), transparent 70%);
  filter: blur(30px);
}

/* Bandeau de statistiques */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.stat {
  padding: var(--sp-5);
  background: rgba(11, 15, 43, 0.7);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Temoignages */
.quote {
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-left: 2px solid var(--violet-bright);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.quote blockquote {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.72;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.quote__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  flex: 0 0 auto;
}

.quote__name {
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--text);
}

.quote__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

/* Tableau */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 560px;
}

th,
td {
  padding: var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: rgba(7, 10, 31, 0.6);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody td {
  color: var(--text-dim);
}

tbody th {
  color: var(--text);
  font-weight: 600;
}

/* Note / encadre */
.note {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.24);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.note strong {
  color: var(--cyan);
}

.note--warn {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.26);
}

.note--warn strong {
  color: var(--warn);
}

/* Fil d'Ariane */
.breadcrumb {
  padding-top: var(--sp-6);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.breadcrumb li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-hi);
}

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

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

/* Grille d'appareils */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
}

.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  text-align: center;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-dim);
  font-size: var(--fs-sm);
  transition:
    border-color var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast);
}

.device:hover {
  border-color: var(--line-hi);
  color: var(--text);
  transform: translateY(-3px);
}

.device svg {
  width: 26px;
  height: 26px;
  color: var(--cyan);
}

/* Liens de guides */
.guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-links li {
  margin: 0;
}

.guide-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 100%;
  padding: var(--sp-5);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition:
    border-color var(--t-fast),
    background var(--t-fast),
    transform var(--t-fast);
}

.guide-links a:hover {
  border-color: var(--violet-bright);
  background: var(--surface-glass-hi);
  transform: translateX(3px);
}

.guide-links svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  flex: 0 0 auto;
}

/* Paiements */
.pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.pay-row img {
  height: 26px;
  width: auto;
  opacity: 0.75;
  transition: opacity var(--t-fast);
}

.pay-row img:hover {
  opacity: 1;
}

/* Formulaire */
.form {
  display: grid;
  gap: var(--sp-4);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(7, 10, 31, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) center,
    calc(100% - 14px) center;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field option {
  background: var(--ink-800);
}

.field__error {
  font-size: var(--fs-xs);
  color: #fca5a5;
  min-height: 1em;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #f87171;
}

/* Appel a l'action final */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  border: 1px solid var(--line-hi);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(109, 74, 255, 0.28), transparent 70%),
    rgba(7, 10, 31, 0.6);
  backdrop-filter: blur(14px);
}

.cta-panel h2 {
  max-width: 22ch;
  margin-inline: auto;
}

.cta-panel .lead {
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

/* Pied de page */
.site-footer {
  margin-top: var(--sp-9);
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 31, 0.5);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-4);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: var(--sp-3);
}

.site-footer a {
  color: var(--text-dim);
}

.site-footer a:hover {
  color: var(--text);
}

.footer-about p {
  color: var(--text-dim);
  max-width: 42ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* Bouton WhatsApp flottant */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  border-radius: var(--r-pill);
  background: #25d366;
  color: #062b13;
  font-size: var(--fs-sm);
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(37, 211, 102, 0.34);
  transition:
    transform var(--t-fast),
    box-shadow var(--t-mid);
}

.wa-float:hover {
  color: #062b13;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(37, 211, 102, 0.46);
}

.wa-float svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

/* ---------- 5. PAGES --------------------------------------------------- */

/* Heros */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-y);
  text-align: center;
}

.hero__inner {
  max-width: 900px;
  margin-inline: auto;
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
}

.hero__accent {
  display: block;
  background: linear-gradient(100deg, var(--cyan), var(--violet-bright) 60%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.hero__capsule {
  margin-bottom: var(--sp-6);
}

.hero__figure {
  position: relative;
  max-width: 940px;
  margin: var(--sp-8) auto 0;
}

/* Hero interne (pages secondaires) */
.page-hero {
  padding-block: var(--sp-6) var(--sp-7);
}

.page-hero .lead {
  max-width: 66ch;
}

.page-hero h1 {
  margin-bottom: var(--sp-4);
}

/* Corps redactionnel */
.prose {
  max-width: 74ch;
}

.prose h2 {
  margin-top: var(--sp-7);
}

.prose h3 {
  margin-top: var(--sp-6);
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-dim);
}

.prose strong {
  color: var(--text);
}

/* Blocs de contenu de chaines */
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.cat-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  margin: 0;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.cat-list svg {
  width: 18px;
  height: 18px;
  color: var(--violet-bright);
  flex: 0 0 auto;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-card {
  padding: var(--sp-6);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
}

.contact-card + .contact-card {
  margin-top: var(--sp-4);
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: 1.05rem;
  margin-bottom: var(--sp-3);
}

.contact-card svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex: 0 0 auto;
}

.contact-card p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

/* Reveal au defilement */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--t-slow),
    transform var(--t-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 6. RESPONSIVE ---------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-5);
    background: rgba(7, 10, 31, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform var(--t-mid);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .nav .btn {
    margin-top: var(--sp-5);
  }
}

@media (max-width: 620px) {
  :root {
    --fs-body: 0.97rem;
  }
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .card,
  .plan,
  .contact-card {
    padding: var(--sp-5);
  }
  .btn {
    padding: 0.8rem 1.25rem;
  }
  .btn-row .btn {
    width: 100%;
  }
  .code-capsule {
    font-size: var(--fs-xs);
    padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
    gap: var(--sp-3);
  }
  .wa-float span {
    display: none;
  }
  .wa-float {
    padding: 0.85rem;
  }
  .walkthrough > li {
    padding-left: 3.2rem;
  }
  .walkthrough > li::before {
    width: 34px;
    height: 34px;
  }
  .walkthrough > li:not(:last-child)::after {
    left: 17px;
    top: 38px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- 7. MOTION -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .plan:hover,
  .device:hover,
  .wa-float:hover,
  .guide-links a:hover {
    transform: none;
  }
}
