/*
 * Octave — feuille de style du site (accueil, fonctionnalités, FAQ, installer).
 *
 * /assets/ est servi en cache « immutable » pendant un an (vercel.json) :
 * pour modifier ce fichier, crée site-3.css et change le lien dans les pages.
 * Même règle pour les captures de /assets/screens/.
 */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Octave Script";
  src: url("/assets/fonts/Yellowtail-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --tint: #f4eefc;
  --ink: #121015;
  --ink-2: #57535e;
  --ink-3: #6e6a75;
  --line: #e8e5ec;
  --brand: #a338fe;
  --brand-ink: #7a1fd4;
  --brand-press: #8f22ea;

  --gutter: 20px;
  --max: 1120px;
  --radius: 14px;
  --radius-lg: 24px;

  --display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- En-tête ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.top.is-scrolled {
  border-bottom-color: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand span {
  font-family: "Octave Script", cursive;
  font-size: 28px;
  line-height: 1;
  transform: translateY(2px);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top nav a.link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 10px;
}
.top nav a.link:hover {
  color: var(--ink);
}
.top nav a.link[aria-current="page"] {
  color: var(--ink);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: 600 17px/1 var(--text);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color 180ms ease, transform 180ms ease;
}
.btn:hover {
  background: var(--brand-press);
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 11px;
}

.meta {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- Titres ---------- */

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

h1.display {
  font-size: clamp(54px, 13vw, 104px);
}

h2.display {
  font-size: clamp(36px, 8vw, 58px);
}

.lede {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Captures ----------
 * Les captures gardent leurs proportions : pas de faux téléphone, juste
 * l'écran posé sur une carte. */

.phone {
  width: min(320px, 82vw);
  margin: 0 auto;
}
.phone img {
  width: 100%;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow:
    0 28px 56px -30px rgba(40, 14, 70, 0.32),
    0 10px 22px -18px rgba(18, 16, 21, 0.28);
}

/* ---------- Accueil : ouverture ---------- */

.hero {
  padding: 40px 0 72px;
}
.hero .wrap {
  display: grid;
  gap: 56px;
  align-items: center;
}
.hero .cta {
  margin-top: 34px;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 112px;
  }
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* ---------- Accueil : chapitres ---------- */

.chapter {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.chapter .wrap {
  display: grid;
  gap: 44px;
  align-items: center;
}
.chapter .kicker {
  margin: 0 0 14px;
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 15px;
}
.chapter p.body {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 18px;
}

@media (min-width: 900px) {
  .chapter {
    padding: 104px 0;
  }
  .chapter .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .chapter.flip .copy {
    order: 2;
  }
}

/* ---------- Accueil : petites promesses ---------- */

.facts {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 36px;
}
.facts li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.facts .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand-ink);
}
.facts .icon svg {
  width: 22px;
  height: 22px;
}
.facts h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}
.facts p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

@media (min-width: 900px) {
  .facts ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* ---------- Bandeau final ---------- */

.closing {
  padding: 24px 0 88px;
}
.closing .card {
  padding: 48px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.closing .display {
  font-size: clamp(36px, 8vw, 60px);
}
.closing p {
  margin: 16px auto 0;
  max-width: 36ch;
  color: #c9c5cf;
}
.closing .cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  align-items: center;
}
.closing .cta a.plain {
  color: #fff;
  font-weight: 500;
}

/* ---------- Installer ---------- */

.page-head {
  padding: 40px 0 28px;
}
.page-head .lede {
  max-width: 36ch;
}

.notice {
  display: none;
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--ink);
  font-weight: 500;
}
.notice.is-visible {
  display: block;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  max-width: 680px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 36px 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 16px;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::after {
  display: none;
}
.steps h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}
.steps p {
  margin: 8px 0 0;
  color: var(--ink-2);
}
.steps .btn {
  margin-top: 16px;
}
.steps .meta {
  margin-top: 10px;
}

.split {
  display: grid;
  gap: 56px;
  padding: 28px 0 80px;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
  }
  .split .phone {
    position: sticky;
    top: 96px;
  }
}

.faq {
  padding: 64px 0 96px;
  border-top: 1px solid var(--line);
}
.faq h2.display {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 20px;
}
.faq details {
  max-width: 720px;
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 18px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--ink-3);
  transition: transform 200ms ease;
}
.faq details[open] summary svg {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  max-width: 60ch;
  color: var(--ink-2);
}

/* ---------- Merci (retour de paiement) ---------- */

.thanks {
  padding: 64px 0 96px;
  min-height: calc(100vh - 64px - 90px);
}
.thanks .wrap {
  max-width: 720px;
}
.thanks-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--brand-ink);
}
.thanks-mark svg {
  width: 26px;
  height: 26px;
}
.thanks h1.display {
  font-size: clamp(46px, 11vw, 84px);
}
.thanks-next {
  margin: 18px 0 32px;
  color: var(--ink-2);
}

/* ---------- Pied de page ---------- */

.foot {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
.foot a {
  color: var(--ink-2);
}

/* ---------- Apparition au défilement ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .faq summary svg {
    transition: none;
  }
}

/* Sans JavaScript, tout reste visible. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .top nav a.link {
    display: none;
  }
}

/* ---------- Fonctionnalités ---------- */

.features {
  padding: 8px 0 72px;
}
.features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.features li {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.features .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand-ink);
}
.features .icon svg {
  width: 22px;
  height: 22px;
}
.features h2 {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}
.features p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}
@media (min-width: 700px) {
  .features ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .features ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shots {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.shots h2.display {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 36px;
}
.shots .row {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}
.shots .phone {
  width: 100%;
}
@media (min-width: 900px) {
  .shots .row {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- FAQ (page entière) ---------- */

.faq.page {
  border-top: 0;
  padding-top: 8px;
}
.faq h2.group {
  margin: 40px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-ink);
}
.faq h2.group:first-of-type {
  margin-top: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
