/* Valiqo — identité « Or révélé ». Palette reprise de src/constants/theme.ts */
:root {
  --ink: #101014;
  --ink-element: #1b1c21;
  --ink-selected: #26272e;
  --text: #f5f1e8;
  --text-secondary: #9b958a;
  --gold: #e8b24b;
  --gold-soft: rgba(232, 178, 75, 0.06);
  --on-gold: #1a1405;
  --success: #5bbe8a;
  --danger: #e2604f;
  --border: rgba(245, 241, 232, 0.08);
  --ink-glass: rgba(16, 16, 20, 0.82);
  --max-width: 1040px;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink-glass);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.nav-cta {
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--gold);
}
.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 14px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--on-gold);
}
.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  opacity: 0.94;
}
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  text-decoration: none;
  background: var(--ink-element);
}
.store-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Capture réelle (visuel héro) ---------- */
.hero-shot {
  justify-self: center;
  width: 100%;
  max-width: 330px;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
}

/* ---------- Sections ---------- */
section {
  padding: 68px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  text-wrap: pretty;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feature {
  grid-column: span 2;
  background: var(--ink-element);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.feature--lg {
  grid-column: span 4;
  padding: 34px 32px;
}
.feature--wide {
  grid-column: span 6;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--gold-soft);
  border-color: rgba(232, 178, 75, 0.28);
}
.feature--wide .ico {
  margin-bottom: 0;
  flex: 0 0 auto;
}
.decision-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.chip {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 999px;
}
.chip--buy {
  color: var(--success);
  background: rgba(91, 190, 138, 0.14);
}
.chip--nego {
  color: var(--gold);
  background: rgba(232, 178, 75, 0.14);
}
.chip--pass {
  color: var(--danger);
  background: rgba(226, 96, 79, 0.14);
}
.feature .ico {
  margin-bottom: 16px;
  color: var(--gold);
  line-height: 0;
}
.feature .ico svg {
  width: 30px;
  height: 30px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}
.feature p {
  color: var(--text-secondary);
  font-size: 15px;
}
.feature--lg h3 {
  font-size: 23px;
}
.feature--lg p {
  font-size: 16px;
  max-width: 40ch;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 0 8px;
}
.step .num {
  counter-increment: step;
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 720px;
  margin: 0 auto;
}
.plan {
  background: var(--ink-element);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.plan.featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold) inset;
}
.plan .tier {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.plan.featured .tier {
  color: var(--gold);
}
.plan .amount {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}
.plan .amount small {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}
.plan .trial {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan li {
  font-size: 15px;
  padding-left: 26px;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

/* ---------- Trust band (hero) ---------- */
.trust-band {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-secondary);
}
.trust-band svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: 0 0 auto;
}

/* ---------- Timeline (how) ---------- */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}
.tl-node {
  flex: 1 1 0;
  text-align: center;
  max-width: 240px;
}
.tl-ico {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.tl-ico svg {
  width: 28px;
  height: 28px;
}
.tl-node h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}
.tl-node p {
  color: var(--text-secondary);
  font-size: 14px;
}
.tl-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.55;
  margin-top: 16px;
}
.tl-arrow svg {
  width: 26px;
  height: 26px;
}

/* ---------- Comparaison (pourquoi) ---------- */
.compare {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare-row + .compare-row {
  border-top: 1px solid var(--border);
}
.compare-row > div {
  padding: 18px 22px;
  font-size: 15px;
}
.c-without {
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}
.c-with {
  color: var(--text);
  background: var(--gold-soft);
  font-weight: 600;
  position: relative;
}
.compare-row:not(.compare-head) .c-with {
  padding-left: 46px;
}
.compare-row:not(.compare-head) .c-with::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: var(--gold);
  font-weight: 800;
}
.compare-head > div {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
}
.compare-head .c-with {
  color: var(--gold);
}

/* ---------- Badge (pricing) ---------- */
.plan.featured {
  position: relative;
}
.badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer nav a {
  color: var(--text-secondary);
  padding: 11px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer nav a:hover {
  color: var(--gold);
  background: var(--ink-element);
}

/* ---------- Legal / long-form pages ---------- */
.legal {
  padding: 56px 0 80px;
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.legal .updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 8px;
}
.legal .placeholder {
  display: inline-block;
  background: rgba(232, 178, 75, 0.14);
  color: var(--gold);
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.95em;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 38px 0 12px;
  padding-top: 8px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}
.legal p,
.legal li {
  color: #d8d3c7;
  font-size: 16px;
}
.legal p {
  margin-bottom: 14px;
}
.legal ul {
  margin: 0 0 14px 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal .toc {
  background: var(--ink-element);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 40px;
}
.legal .toc ol {
  margin-left: 18px;
}
.legal .toc a {
  color: var(--text);
}
.legal .toc a:hover {
  color: var(--gold);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-size: 15px;
}
.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal th {
  background: var(--ink-element);
  font-weight: 700;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 56px 0 48px;
    gap: 44px;
  }
  .hero-shot {
    order: -1;
  }
  .features,
  .steps,
  .pricing {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature--lg,
  .feature--wide {
    grid-column: auto;
  }
  .timeline {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  .tl-node {
    max-width: 360px;
  }
  .tl-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
  }
}
@media (max-width: 520px) {
  .site-header .wrap {
    height: 60px;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .cta-row {
    width: 100%;
  }
}

/* ---------- Motion ---------- */
/* Le contenu est visible par défaut ; les révélations qui pré-cachent le
   contenu sont gated derrière `html.js` (donc visibles sans JS) ET un filet de
   sécurité JS les force à s'afficher si l'IntersectionObserver ne se déclenche
   pas. Tout est neutralisé sous prefers-reduced-motion. */

/* Feedback tactile : léger enfoncement au clic des CTA */
.btn:active,
.nav-cta:active {
  transform: translateY(0) scale(0.98);
}

@keyframes valiqo-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes valiqo-rise-img {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.timeline > *:nth-child(1) { --i: 0; }
.timeline > *:nth-child(2) { --i: 1; }
.timeline > *:nth-child(3) { --i: 2; }
.timeline > *:nth-child(4) { --i: 3; }
.timeline > *:nth-child(5) { --i: 4; }
.timeline > *:nth-child(6) { --i: 5; }
.timeline > *:nth-child(7) { --i: 6; }

@media (prefers-reduced-motion: no-preference) {
  /* Signature unique : chorégraphie de chargement du hero (CSS pur, sans JS) */
  .hero-copy > * {
    animation: valiqo-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.17s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.31s; }
  .hero-copy > *:nth-child(6) { animation-delay: 0.38s; }
  .hero-shot {
    animation: valiqo-rise-img 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
  }

  /* Reveal mérité : la timeline 4 étapes se dévoile en séquence */
  html.js .timeline .tl-node,
  html.js .timeline .tl-arrow {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  html.js .timeline.in .tl-node,
  html.js .timeline.in .tl-arrow {
    opacity: 1;
    transform: none;
  }
}

@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;
  }
  html.js .timeline .tl-node,
  html.js .timeline .tl-arrow {
    opacity: 1 !important;
    transform: none !important;
  }
}
