/* Styles de la page d'accueil (index.html) et de la page Spinfolio Deluxe (deluxe/), qui reprend la présentation
   détaillée de l'accueil. Les autres pages utilisent site.css. */

/* Jetons repris de l'app (AppColors.swift / AppTheme.swift) : fond crème en clair, anthracite en sombre,
   accent = palette Signature, or Premium. La page suit le réglage « Système » comme l'app. */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #EFECE6;
  --ink: #1B1A1E;
  --ink-2: #5E5B66;
  --line: rgba(27, 26, 30, .10);
  --a-light: #9E3DCF;
  --a-dark: #C96BF7;
  --accent: var(--a-light);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --gold-1: #FAC747;
  --gold-2: #E0851F;
  --gold-acc: #F2AD2E;
  --gold-ink: #7A4A06;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 30px 80px -30px rgba(40, 20, 60, .45);
  /* Nuances de violet dérivées de l'accent (Signature par défaut, change avec le nuancier de thèmes) :
     du plus lumineux (v1) au plus profond (v3). Mélangées à un noir violacé pour que le texte blanc
     reste lisible quelle que soit la palette choisie. */
  --v1: color-mix(in srgb, var(--accent) 84%, #2a0d4a);
  --v2: color-mix(in srgb, var(--accent) 60%, #2a0d4a);
  --v3: color-mix(in srgb, var(--accent) 34%, #1f0840);
  --v4: color-mix(in srgb, var(--accent) 14%, #160632);
  --tint-1: color-mix(in srgb, var(--accent) 7%, var(--bg));
  --tint-2: color-mix(in srgb, var(--accent) 16%, var(--bg));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141316;
    --surface: #1E1C22;
    --surface-2: #26232C;
    --ink: #F3F1F6;
    --ink-2: #A9A5B3;
    --line: rgba(255, 255, 255, .10);
    --accent: var(--a-dark);
    --gold-ink: #F2BD52;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
/* Même écriture que SectionEyebrow dans l'app : petites capitales, accent. */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #4D2605; background: linear-gradient(135deg, var(--gold-1), var(--gold-acc)); padding: 6px 14px; border-radius: 999px; box-shadow: 0 8px 24px -10px var(--gold-2); }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 15px 28px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 14px 34px -14px var(--accent); transition: transform .2s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1px solid var(--line); }

/* Sections sur fond violet : texte blanc, cartes en verre dépoli, bouton clair. Chaque section a son
   propre dégradé (angle et halos différents), comme les images de la fiche App Store. */
.on-violet { --ink: #fff; --ink-2: rgba(255, 255, 255, .86); --line: rgba(255, 255, 255, .22); --surface: rgba(255, 255, 255, .10); --surface-2: rgba(255, 255, 255, .14); --accent: #EDC9FF; --accent-soft: rgba(255, 255, 255, .16); --gold-ink: #FFD27A; --shadow: 0 30px 80px -26px rgba(8, 2, 18, .75); color: var(--ink); position: relative; isolation: isolate; }
.on-violet .btn { background: #fff; color: #4A1D78; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .5); }
.on-violet .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); box-shadow: none; }
.on-violet .card, .on-violet .step + .step { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.g-orchid { background: radial-gradient(900px 600px at 88% 8%, rgba(236, 160, 255, .38), transparent 62%), radial-gradient(800px 600px at 4% 96%, rgba(120, 60, 210, .5), transparent 60%), linear-gradient(162deg, var(--v1) 0%, var(--v2) 52%, var(--v3) 100%); }
.g-rose { background: radial-gradient(800px 560px at 12% 12%, rgba(255, 160, 222, .34), transparent 62%), radial-gradient(900px 600px at 92% 92%, rgba(130, 64, 220, .45), transparent 60%), linear-gradient(-152deg, var(--v1) 0%, var(--v2) 50%, var(--v3) 100%); }
.g-prune { background: radial-gradient(1100px 520px at 50% -8%, rgba(214, 120, 250, .34), transparent 64%), radial-gradient(800px 560px at 100% 64%, rgba(196, 110, 255, .22), transparent 62%), linear-gradient(180deg, var(--v2) 0%, var(--v3) 55%, color-mix(in srgb, var(--accent) 40%, #1f0840) 100%); }
.g-aube { background: radial-gradient(800px 600px at 96% 4%, rgba(255, 190, 232, .32), transparent 60%), linear-gradient(48deg, var(--v3) 0%, var(--v2) 46%, var(--v1) 100%); }
.t-lilas { background: linear-gradient(180deg, var(--tint-1), var(--tint-2)); }
.t-brume { background: radial-gradient(900px 500px at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%), linear-gradient(200deg, var(--tint-2), var(--tint-1) 70%); }

/* Navigation */
nav.top { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
nav.top ul { display: flex; gap: 22px; list-style: none; font-size: .92rem; }
nav.top ul a { color: var(--ink-2); white-space: nowrap; }
nav.top ul a:hover { color: var(--ink); text-decoration: none; }
nav.top .btn { padding: 9px 18px; font-size: .9rem; white-space: nowrap; }
/* En dessous de 980 px, les neuf liens ne tiennent plus sur une ligne : seul le bouton App Store reste */
@media (max-width: 980px) { nav.top ul { display: none; } }

/* Menu des petits écrans : bouton à trois traits, liste déroulée sous la barre (comportement dans assets/site.js) */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .i-close, nav.top.open .menu-toggle .i-open { display: none; }
nav.top.open .menu-toggle .i-close { display: inline; }
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  nav.top .btn { margin-left: auto; }
  nav.top.open ul { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; padding: 6px 20px 14px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .35); font-size: 1rem; }
  nav.top.open ul a { display: block; padding: 12px 0; color: var(--ink); }
  nav.top.open ul li + li { border-top: 1px solid var(--line); }
}

/* Bouton « retour en haut », visible après deux écrans de défilement (assets/site.js) */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.to-top.visible { opacity: 1; visibility: visible; }
.to-top path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Téléphone */
.phone { position: relative; width: var(--w, 300px); aspect-ratio: 1 / 2.1037; /* ratio du cadre = capture + marges de 3 % : l'écran garde exactement celui de l'image, sans rognage */ border-radius: calc(var(--w, 300px) * .15); background: #0b0a0d; padding: calc(var(--w, 300px) * .03); box-shadow: var(--shadow), inset 0 0 0 2px #2a2830; }
.phone::before { content: ""; position: absolute; z-index: 3; top: calc(var(--w, 300px) * .05); left: 50%; width: 31%; height: 3.4%; background: #000; border-radius: 99px; transform: translateX(-50%); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w, 300px) * .12); overflow: hidden; background: var(--surface-2); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.phone .screen img.on, .phone.single .screen img { opacity: 1; }

/* Héros */
.hero { position: relative; padding: 70px 0 110px; overflow: hidden; }
.hero .wrap { z-index: 1; }
.hero .wrap > div:first-child { position: relative; z-index: 2; } /* le texte passe devant le vinyle */
.hero .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.hero .g1 { width: 520px; height: 520px; background: #E7A8FF; opacity: .42; top: -160px; right: -120px; }
.hero .g2 { width: 380px; height: 380px; background: #FF9BDD; opacity: .26; bottom: -120px; left: -80px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .eyebrow { text-wrap: balance; } /* sur deux lignes au téléphone : pas de mot seul sur la seconde */
.hero .lead { margin: 22px 0 32px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .meta { margin-top: 20px; font-size: .88rem; color: var(--ink-2); }
.stage { position: relative; height: 640px; }
.stage .phone { position: absolute; left: 50%; top: 0; }
.stage .p-main { --w: 290px; transform: translateX(-50%); z-index: 2; }
.stage .p-left { --w: 240px; left: 4%; top: 70px; transform: rotate(-7deg); opacity: .96; }
.stage .p-right { --w: 240px; left: auto; right: 0; top: 90px; transform: rotate(7deg); opacity: .96; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta { justify-content: center; }
  .stage { height: 560px; }
  .stage .p-left, .stage .p-right { display: none; }
}

/* Sections */
section.block { padding: 110px 0; }
section.block.alt { background: var(--surface-2); }
.head { text-align: center; margin-bottom: 56px; }
.head .lead { margin: 18px auto 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.rev .text { order: 2; }
.split .shot { display: flex; justify-content: center; }
.split .text p { margin-top: 16px; color: var(--ink-2); font-size: 1.05rem; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.rev .text { order: 0; } }

/* Sélecteur de mode d'affichage */
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 28px; }
.tabs button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--ink-2); padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: .2s; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
/* Quatre boutons : sur un petit téléphone, ils ne tiendraient pas sur une ligne avec le rembourrage large */
.tabs.multi { flex-wrap: wrap; justify-content: center; border-radius: 26px; max-width: 100%; }
.chapters > .chapter { display: none; }
.chapters > .chapter.on { display: block; }
.chapter-text { max-width: 40em; margin: 0 auto 30px; text-align: center; color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 480px) { .tabs button { padding: 9px 13px; font-size: .88rem; } }


/* Écoute sur platine : trois supports, trois écrans */
.media-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 90px; }
.media-trio figure { text-align: center; width: 100%; max-width: 300px; justify-self: center; /* même largeur que les téléphones des autres sections */ }
/* Ombre en box-shadow (calquée sur les coins arrondis de l'image) et non en `filter: drop-shadow` : le filtre est très coûteux à repeindre sur iPhone */
.media-trio img, .media-trio video { display: block; width: 100%; height: auto; border-radius: 16.4% / 21.2%; box-shadow: 0 26px 34px -14px rgba(60, 20, 100, .36); }   /* coins : 118 px sur une vignette de 720 x 556 */
.media-trio figcaption { margin-top: 18px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.media-trio figcaption small { display: block; font-family: var(--sans); font-weight: 400; font-size: .92rem; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 860px) { .media-trio { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }

/* Gratuit : neuf cartes, trois lignes de trois */
#gratuit .grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { #gratuit .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #gratuit .grid { grid-template-columns: 1fr; } }
/* « Et aussi » : deux cartes côte à côte */
.more .grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .more .grid { grid-template-columns: 1fr; } }
/* Scan : deux téléphones côte à côte, chacun avec sa légende */
.scan-duo { display: flex; gap: 28px; justify-content: center; align-items: flex-start; }
.scan-duo figure { text-align: center; }
.scan-duo figcaption { margin-top: 18px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.scan-duo figcaption small { display: block; font-family: var(--sans); font-weight: 400; font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.scan-duo figcaption .badge { margin: 0 0 0 4px; }
/* La photo du scan montre déjà la pastille de la caméra : on ne redessine pas celle du cadre */
.phone.native-island::before { display: none; }
@media (max-width: 560px) { .scan-duo { gap: 14px; } .scan-duo figure { width: 160px; } .scan-duo .phone { --w: 150px !important; } .scan-duo figcaption { font-size: 1rem; } .scan-duo figcaption .badge { display: block; width: max-content; margin: 6px auto 0; } }
.shot.trio { display: flex; justify-content: center; gap: 26px; align-items: flex-start; margin-top: 8px; }
.shot.trio .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 760px) { .shot.trio { gap: 12px; } .shot.trio .phone { --w: 31vw !important; } .shot.trio .phone:nth-child(2) { margin-top: 30px; } }
.shot.duo { gap: 22px; align-items: flex-start; }
.shot.duo .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 560px) { .shot.duo .phone { --w: 150px !important; } .shot.duo .phone:nth-child(2) { margin-top: 30px; } }


/* Effets de profondeur et de mouvement (tous coupés si « Réduire les animations » est actif) */
.stage, .shot, .sticky, .theme-stage, .inline-shot { perspective: 1100px; }
.phone { transition: rotate .3s ease-out; }
.phone::after { content: ""; position: absolute; z-index: 4; pointer-events: none; inset: calc(var(--w, 300px) * .03); border-radius: calc(var(--w, 300px) * .12); background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .26), transparent 52%); opacity: 0; transition: opacity .3s; }
.phone.tilting::after { opacity: 1; }
.vinyl { position: absolute; z-index: 0; left: 50%; top: -48px; width: 720px; margin-left: -330px; pointer-events: none; opacity: .95; filter: saturate(1.15) brightness(1.08) drop-shadow(0 40px 50px rgba(20, 4, 40, .45)); }
.vinyl img { width: 100%; height: auto; will-change: transform; }
@media (max-width: 920px) { .vinyl { width: 520px; margin-left: -260px; top: 10px; opacity: .6; } }

/* Trio d'écoute : la page s'arrête, les trois écrans défilent d'un côté à l'autre (activé par le script) */
/* --pin-dist (px) est posé une seule fois par le script ; la hauteur en dépend en CSS pur. `svh` = hauteur de l'écran barre
   d'adresse dépliée : stable quand Safari replie sa barre en défilant (contrairement à `innerHeight`). */
.pin.on { width: 100vw; margin-left: calc(50% - 50vw); height: calc(100vh + var(--pin-dist, 0px)); height: calc(100svh + var(--pin-dist, 0px)); }
.pin.on .pin-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 72px; box-sizing: border-box; overflow: hidden; contain: layout paint; }
/* Titre resserré contre les images, centré (la piste, plus large que l'écran en mode glissement, reste calée à gauche) */
#platine .head { margin-bottom: 30px; }
#platine .pin-extra { max-width: 36em; margin: 0 auto 80px; }   /* journal, Live Activity, widget : sous les trois vignettes */
.pin.on .pin-head { width: min(1120px, 100% - 40px); margin: 0 auto; flex: none; }
.pin.on .head { margin-bottom: 26px; }
@media (max-height: 760px) { .pin.on .head .lead { display: none; } }
.pin.on .media-trio { display: flex; gap: 44px; width: max-content; margin: 0; padding: 0 max(20px, calc((100vw - 1120px) / 2)); transform: translate3d(0, 0, 0); will-change: transform; }
/* Même largeur que les téléphones des autres sections (300 px, 240 px sur mobile) */
.pin.on .media-trio figure { flex: none; width: 300px; }
@media (max-width: 860px) { .pin.on .media-trio figure { width: 240px; } }
/* Les trois écrans sont déjà là : pas d'apparition animée pendant qu'ils glissent (elle ajoutait des sauts) */
.pin.on .media-trio figure.reveal { opacity: 1; transform: none; transition: none; }
/* Navigateurs récents (Safari 26+, Chrome 115+) : le glissement suit le défilement par une animation pilotée par la page, sans JavaScript.
   `contain` = tant que le bloc couvre l'écran, c'est-à-dire pendant qu'il reste épinglé. */
@supports (animation-timeline: view()) {
  /* inset 0 : sinon la chronologie reprend le scroll-padding-top (72 px) de la page et démarre avec de l'avance */
  .pin.on { view-timeline: --pin block; view-timeline-inset: 0; }
  .pin.on:not(.spread) .pin-track { animation: pin-slide linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
}
@keyframes pin-slide { to { transform: translate3d(calc(var(--pin-dist, 0px) * -1), 0, 0); } }

/* Grands écrans : les trois supports tiennent côte à côte. Ils démarrent empilés (vinyle au-dessus, CD et cassette derrière,
   légèrement inclinés) puis s'écartent pendant que la page reste épinglée : vinyle à gauche, cassette à droite. */
.pin.spread .media-trio { display: flex; justify-content: center; gap: 44px; width: 100%; padding: 0; margin: 0; transform: none; will-change: auto; --spread: 344px; }
.pin.spread .media-trio figure { position: relative; will-change: transform; }
.pin.spread .media-trio figure:nth-child(1) { z-index: 3; transform: translate3d(var(--spread), 0, 0); }
.pin.spread .media-trio figure:nth-child(2) { z-index: 1; transform: rotate(-6deg) scale(.95); }
.pin.spread .media-trio figure:nth-child(3) { z-index: 2; transform: translate3d(calc(var(--spread) * -1), 0, 0) rotate(6deg); }
.pin.spread .media-trio figcaption { opacity: 0; }
@supports (animation-timeline: view()) {
  .pin.spread .media-trio figure { animation: 1s ease-in-out both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
  .pin.spread .media-trio figure:nth-child(1) { animation-name: spread-left; }
  .pin.spread .media-trio figure:nth-child(3) { animation-name: spread-right; }
  .pin.spread .media-trio figure:nth-child(2) { animation-name: spread-center; }
  .pin.spread .media-trio figcaption { animation: spread-caption linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
}
@keyframes spread-left { to { transform: none; } }
@keyframes spread-right { to { transform: none; } }
@keyframes spread-center { to { transform: none; } }
@keyframes spread-caption { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }

/* Grille gratuite */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; }
.card .eyebrow { margin-bottom: 10px; }

/* « Des questions ? » et « Guides du collectionneur » : quatre cartes chacun, menant à la FAQ ou aux guides */
.grid.faq-teaser, .grid.guides-teaser { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .grid.faq-teaser, .grid.guides-teaser { grid-template-columns: 1fr; } }
a.card { display: block; color: inherit; transition: border-color .2s; }
a.card:hover { text-decoration: none; border-color: var(--accent); }
a.card .more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: .94rem; color: var(--accent); }
.faq-all { text-align: center; margin-top: 36px; }
.note { margin-top: 18px; font-size: .9rem; color: var(--ink-2); background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; }

/* Premium : le téléphone reste en place, l'écran change pendant le défilement */
.steps { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 80px; align-items: start; }
.steps .col { order: 1; }
.sticky { order: 2; position: sticky; top: 90px; display: flex; justify-content: center; padding-top: 10px; }
.sticky .phone { --w: 300px; }
/* Étape à deux écrans (data-duo) : un second téléphone, même taille, se place derrière le premier ;
   les deux échangent leur place (classe flip) à mi-parcours de l'étape, pour que chacun soit vu en entier */
#premium-phone, .sticky .phone-2 { transition: rotate .3s ease-out, translate .6s, scale .6s, opacity .5s; transform-origin: 50% 0; }
#premium-phone { z-index: 2; }
.sticky .phone-2 { position: absolute; top: 10px; left: calc(50% - 150px); z-index: 1; opacity: 0; scale: .78; translate: 60px 50px; pointer-events: none; }
.sticky.duo #premium-phone { translate: -90px 0; }
.sticky.duo .phone-2 { opacity: 1; translate: 60px 50px; }
.sticky.duo.flip #premium-phone { z-index: 1; scale: .78; translate: -140px 50px; }
.sticky.duo.flip .phone-2 { z-index: 2; scale: 1; translate: 10px 0; }
@media (max-width: 1180px) { .sticky.duo #premium-phone { translate: -70px 0; } .sticky.duo .phone-2 { translate: 50px 50px; } .sticky.duo.flip #premium-phone { translate: -110px 50px; } .sticky.duo.flip .phone-2 { translate: 0 0; } }
.inline-shot.duo-shot { gap: 14px; align-items: flex-start; }
.inline-shot.duo-shot .phone { --w: 170px !important; }
.inline-shot.duo-shot .phone:nth-child(2) { margin-top: 40px; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .5s; }
.step.active { opacity: 1; }
.step p { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 32em; }
.step .inline-shot { display: none; }
.step .eyebrow { color: var(--gold-ink); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .sticky { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; }
  .step .inline-shot { display: flex; justify-content: center; margin-top: 26px; }
  .step .inline-shot .phone { --w: 240px; }
}
.more { margin-top: 70px; }
.more > h3 { text-align: center; margin-bottom: 28px; }
.more .card .eyebrow { color: var(--gold-ink); }

/* Thèmes : éventail de captures (bande défilante sur petit écran) */
.theme-name { text-align: center; color: var(--ink-2); min-height: 1.6em; margin-bottom: 8px; }
.fan { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 20px 26px; margin-inline: -20px; }
.fan .phone { --w: 170px; flex: none; scroll-snap-align: center; cursor: pointer; outline: none; }
.fan .phone:focus-visible { box-shadow: var(--shadow), 0 0 0 3px var(--accent); }
@media (min-width: 761px) {
  .fan { display: block; position: relative; height: 570px; overflow: visible; padding: 0; margin: 0; }
  /* Chaque écran pivote autour d'un point bas commun : l'angle suit son rang (--i de 0 à 9) */
  .fan .phone { --w: 200px; --a: calc((var(--i) - 4.5) * 6.2deg); position: absolute; left: 50%; top: 14px; margin-left: -100px; z-index: var(--i); transform-origin: 50% 200%; transform: rotate(var(--a)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
  .fan .phone.sel, .fan .phone:focus-visible { z-index: 20; transform: rotate(var(--a)) translateY(-30px); }
}
@media (prefers-reduced-motion: reduce) { .fan .phone { transition: none; } }

/* Comparatif */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--surface); font-family: var(--serif); font-size: 1.15rem; }
.compare thead th.pr { color: var(--gold-ink); }
.compare tbody th { font-weight: 500; text-align: left; }
.compare tbody th small { display: block; color: var(--ink-2); font-weight: 400; font-size: .84rem; }
.compare tr.sep td { background: var(--surface-2); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-align: left; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes { color: var(--accent); font-weight: 800; }
.no { color: var(--ink-2); opacity: .5; }
.yes.gold { color: var(--gold-ink); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 46px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; text-align: center; position: relative; }
.price.best { border: 2px solid var(--gold-2); box-shadow: 0 24px 60px -30px var(--gold-2); }
.price .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.price h3 { font-family: var(--sans); font-size: 1rem; letter-spacing: .02em; color: var(--ink-2); font-weight: 600; }
.price .amt { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; margin: 10px 0 2px; }
.price .amt small { font-size: 1rem; font-family: var(--sans); font-weight: 500; color: var(--ink-2); }
.price p { color: var(--ink-2); font-size: .92rem; }
/* Carte « Gratuit » des tarifs : sur toute la largeur, au-dessus des trois offres Deluxe (sinon elle étire ces cartes
   à sa hauteur), avec ce que comprend la version gratuite en liste cochée, sur plusieurs colonnes */
.price.free { grid-column: 1 / -1; }
/* Même liste cochée que le reste de la page (.ticks), répartie en colonnes */
.price.free .ticks { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 32px; max-width: 860px; margin: 18px auto 0; text-align: left; font-size: .94rem; color: var(--ink-2); }
/* Les trois offres Deluxe se partagent la largeur sous la carte « Gratuit » */
.prices.plans { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* « Le plus choisi » à l'accent du site, et non à l'or réservé à Deluxe, pour ne pas les confondre */
.price .pill.tag { white-space: nowrap; background: var(--accent); color: var(--bg); }
.price.best { border-color: var(--accent); box-shadow: 0 24px 60px -30px var(--accent); }
/* Ligne « Deluxe » entre la carte gratuite et les trois offres, et disque d'or devant le nom de chaque offre */
.plans-label { grid-column: 1 / -1; text-align: center; margin-top: 18px; }
.plans-label p { margin-top: 10px; color: var(--ink-2); }
.price h3 svg { width: 1.05em; height: 1.05em; fill: var(--gold-ink); vertical-align: -.15em; margin-right: 6px; }
/* Comparatif détaillé, replié sous les tarifs */
.compare-more { margin-top: 34px; }
.compare-more summary { cursor: pointer; list-style: none; text-align: center; font-weight: 700; color: var(--accent); padding: 12px; }
.compare-more summary::-webkit-details-marker { display: none; }
.compare-more summary::after { content: " ▾"; }
.compare-more[open] summary::after { content: " ▴"; }
.compare-more > div { margin-top: 16px; }
.fine { text-align: center; font-size: .84rem; color: var(--ink-2); margin-top: 22px; max-width: 46em; margin-inline: auto; }

/* Mode d'emploi : chapitres en pastilles, chacun menant à sa partie de la page /mode-d-emploi/ */
.chapters { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chapters a { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95rem; transition: border-color .2s; }
.chapters a:hover { text-decoration: none; border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 8px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #4D2605; background: linear-gradient(135deg, var(--gold-1), var(--gold-acc)); padding: 3px 9px; border-radius: 99px; }
/* Disque d'or de Spinfolio Deluxe (DeluxeDiscEmblem de l'app, style monochrome) */
.pill svg, .badge svg { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.badge.acc { color: var(--ink-2); background: var(--surface-2); }

/* Pied de page */
footer { padding: 60px 0 70px; color: var(--ink-2); font-size: .9rem; text-align: center; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 20px; }
footer p { max-width: 52em; margin: 8px auto 0; }

/* Apparition douce + mouvement : coupés si l'utilisateur demande moins d'animations */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone .screen img, .step, #premium-phone, .sticky .phone-2 { transition: none; }
}
