/* Site memorollapp.com : l'album de l'app sur le papier coton. Texte et iPhone en haut, puis le fil tendu d'un bord
   à l'autre où les tirages défilent sans fin, puis une colonne de 1160 px alignée à gauche. Toujours en clair. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --tex: url("/assets/img/paper.webp");
  --bg: #F8F5EE;
  --ink: #121212;
  --ink-2: #6B6B6B;
  --ink-3: #8A8A8A;
  --rule: #E2DED6;
  --outline: #CFCCC6;
  --on-ink: #FFFFFF;
  --print: #FBFAF7;
  --wire: #8A8A8A;
  --note: rgba(41, 38, 36, 0.92);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);

  /* Le fil : largeur d'un tirage, hauteur d'une pince, écart entre deux tirages */
  --pw: clamp(96px, 8.4vw, 128px);
  --ph: calc(var(--pw) * 0.36);
  --gap: calc(var(--pw) * 0.2);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--tex);
  background-size: 512px 512px;
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 0 var(--section); }

/* Typographie */
.label { font-family: var(--ui); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.7rem, 1.3rem + 3.3vw, 4.4rem); line-height: 1.02; letter-spacing: -0.022em; }
h2 { font-size: clamp(2.1rem, 1.45rem + 2.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.018em; }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.15; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 22px 0 0; text-wrap: pretty; }
.tagline { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--ink-2); }
.section-head { max-width: 760px; margin-inline: auto; text-align: center; }
.section-head .lead { margin-inline: auto; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--ink); color: var(--on-ink);
  font: 700 16px/1 var(--ui); text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--small { min-height: 44px; padding: 0 20px; border-radius: 22px; font-size: 15px; font-weight: 600; }

/* Pas encore sur l'App Store : les boutons de téléchargement sont inactifs (curseur interdit, rien au clic) et une
   infobulle dit que l'app arrive bientôt, au survol, au clavier ou au toucher (lang.js) */
.soon { position: relative; display: inline-flex; }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { transform: none; }
.soon-tip {
  position: absolute; z-index: 20; top: calc(100% + 12px); left: 50%; width: max-content; max-width: min(300px, calc(100vw - 32px));
  padding: 9px 14px; border-radius: 12px; background: var(--ink); color: #FFFFFF; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font: 500 14px/1.35 var(--ui); text-align: center; text-transform: none; letter-spacing: 0; white-space: pre-line;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.soon-tip::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: inherit; transform: rotate(45deg); }
.soon:hover .soon-tip, .soon:focus-within .soon-tip, .soon.is-open .soon-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav .soon-tip { left: auto; right: 0; transform: translateY(4px); }
.nav .soon:hover .soon-tip, .nav .soon:focus-within .soon-tip, .nav .soon.is-open .soon-tip { transform: none; }
.nav .soon-tip::before { left: auto; right: 28px; }
.meta { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.meta span + span::before { content: "·"; margin: 0 0.5em; color: var(--ink-3); }

/* En-tête : une bande noir d'album (le fond sombre de l'app), sur laquelle l'icône crème ressort */
.top { padding-block: 14px; position: relative; z-index: 5; background: #141312; color: #FBFAF7; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }
.top .brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 10px rgba(0, 0, 0, 0.5); }
.brand span { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.025em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 15px; font-weight: 500; text-decoration: none; color: #CFCCC6; }
.nav a:not(.btn):hover { color: #FFFFFF; }
.nav .btn { margin-left: 12px; background: #FBFAF7; color: var(--ink); border-color: #FBFAF7; }
.top :focus-visible { outline-color: #FBFAF7; }
@media (max-width: 700px) { .nav a:not(.btn) { display: none; } .nav .btn { margin-left: 0; } }

/* Héros : le texte à gauche, la caméra de l'app à droite. Le titre change d'appareil toutes les 3 secondes (« Ton iPhone
   devient un appareil photo jetable. », toujours sur une ligne : site.js réduit un nom trop long pour la colonne) et
   tout le haut de page avec lui : le viseur, l'icône de la pastille de la pellicule, l'étiquette de l'appareil (icône et
   nom) et les icônes sous le bouton. Chaque relais porte la classe r1 à r6 de son appareil. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(24px, 4vw, 48px) clamp(16px, 2.2vw, 32px);
}
.hero-copy { min-width: 0; }
.hero-copy .lead { margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.hero h1 { font-size: clamp(2.3rem, 1rem + 4.2vw, 4.4rem); }
.h1-start { display: block; }
.turns { display: grid; align-items: center; font-style: italic; font-weight: 500; }
.turns > span { grid-area: 1 / 1; white-space: nowrap; }
.cams { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 0; }
.cams-icons { display: flex; gap: 12px; }
.cams-icons img { width: 36px; height: 36px; }
.cams-more { font: italic 500 1.05rem/1.2 var(--display); color: var(--ink-2); }
.phones { display: flex; justify-content: center; }
/* Sur téléphone, une colonne : le texte, puis l'iPhone, les icônes des appareils juste dessous, puis le bouton et
   « Gratuit · iPhone » (le bloc du texte s'efface pour que ses éléments se rangent avec l'iPhone) */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; text-align: center; }
  .hero-copy { display: contents; }
  .hero-copy .lead { margin-inline: auto; }
  .phones { order: 1; margin-top: 30px; }
  .cams { order: 2; justify-content: center; margin-top: 28px; }
  .hero-cta { order: 3; justify-content: center; margin-top: 28px; }
  .hero-copy .meta { order: 4; }
}

/* L'iPhone 17 Pro dessiné en CSS, à l'échelle de sa largeur. La capture contient la barre d'état et l'îlot. */
.device { --dw: 300px; container-type: inline-size; width: var(--dw); max-width: 100%; margin: 0; position: relative; flex: none; }
.device-body {
  position: relative; padding: 2.6cqw; border-radius: 17.6cqw; background: #0b0b0c;
  box-shadow: 0 0 0 0.55cqw #0b0b0c, 0 0 0 1.25cqw #8f8d88, 0 0 0 1.5cqw #d9d7d2, 0 2.5cqw 5cqw -1cqw rgba(0, 0, 0, 0.18), 0 9cqw 16cqw -4cqw rgba(0, 0, 0, 0.32);
}
.device-body::before {
  content: ""; position: absolute; inset: -1.5cqw; border-radius: 19cqw; padding: 0.7cqw;
  background: linear-gradient(135deg, #f4f2ee, transparent 30%, transparent 70%, #f4f2ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none;
}
.device-body::after {
  content: ""; position: absolute; left: -2.3cqw; top: 23%; width: 1.1cqw; height: 8%; border-radius: 0.6cqw 0 0 0.6cqw;
  background: #8f8d88; box-shadow: 0 13cqw 0 #8f8d88, 0 26cqw 0 #8f8d88;
}
.device-screen { display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: 14.6cqw; background: #f8f5ee; }

/* La caméra du haut de page, posée sur la capture (804 × 1748 px, écran large de 94,8 cqw : 1 px = 0,11791 cqw) :
   le viseur 3:4 (px 256 à 1328), le zoom redessiné par-dessus les rendus (px 1207 à 1295), et l'icône d'appareil
   de la pastille de la pellicule (centrée en x 256,5 en français, 209,5 en anglais, le nom n'ayant pas la même longueur) */
.device--live { --dw: clamp(230px, 21vw, 300px); }
.vf { position: absolute; left: 2.6cqw; top: 32.79cqw; width: 94.8cqw; height: 126.4cqw; overflow: hidden; background: #0b0b0c; }
.vf img, .vf video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zoom {
  position: absolute; left: 50%; bottom: 3.9cqw; transform: translateX(-50%); display: flex; padding: 0.47cqw; border-radius: 6cqw;
  background: rgba(0, 0, 0, 0.38); box-shadow: inset 0 0 0 0.25cqw rgba(255, 255, 255, 0.35); font: 600 2.9cqw/1 var(--mono); color: #FFFFFF;
}
.zoom span { display: grid; place-items: center; width: 9.6cqw; height: 9.43cqw; border-radius: 50%; }
.zoom span:nth-child(2) { background: #FFFFFF; color: var(--ink); }
.vf-cam { position: absolute; top: 20.24cqw; width: 4.6cqw; height: 8cqw; display: grid; place-items: center; background: #FFFFFF; }
.vf-cam--fr { left: 30.54cqw; }
.vf-cam--en { left: 25cqw; }
.vf-cam img { grid-area: 1 / 1; width: 5.4cqw; height: 5.4cqw; max-width: none; }
/* Mode vidéo pendant les appareils vidéo : VIDÉO en noir et déclencheur rouge, posés sur la capture (px 240 à 564, 1360 à 1650) */
.vf-mode { position: absolute; left: 30.9cqw; top: 162.96cqw; width: 38.2cqw; height: 34.19cqw; max-width: none; }
.live {
  position: absolute; z-index: 3; left: -17cqw; bottom: 70cqw; display: flex; align-items: center; gap: 3cqw;
  padding: 3cqw 5cqw 3cqw 3.6cqw; border-radius: 5.4cqw; background: var(--print); box-shadow: 0 4.6cqw 11cqw rgba(0, 0, 0, 0.18); text-align: left;
}
.live-icon { display: grid; flex: none; width: 11cqw; height: 11cqw; }
.live-icon img { grid-area: 1 / 1; width: 100%; height: 100%; }
.live-name { display: grid; font: italic 500 max(15px, 7cqw)/1.2 var(--display); }
.live-name > span { grid-area: 1 / 1; white-space: nowrap; }

/* Les relais : le premier appareil seul sans animation ; sinon un cycle de 18 s, 3 s par appareil, en fondu, le mot
   du titre glissant d'un cran vers le haut. Le premier part déjà visible (délai négatif) pour que rien ne manque au
   chargement. */
.turns > span, .vf img, .vf video, .vf-mode, .vf-cam img, .live img, .live-name > span { opacity: 0; }
.turns > .r1, .vf .r1, .vf-cam .r1, .live .r1, .live-name > .r1 { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .turns > span { animation: turn 18s infinite; }
  .vf img, .vf video, .vf-mode, .vf-cam img, .live img, .live-name > span { animation: relay 18s infinite; }
  .cams-icons img { opacity: 0.3; animation: lit 18s infinite; }
  .hero .r1 { animation-delay: -0.5s; }
  .hero .r2 { animation-delay: 2.5s; }
  .hero .r3 { animation-delay: 5.5s; }
  .hero .r4 { animation-delay: 8.5s; }
  .hero .r5 { animation-delay: 11.5s; }
  .hero .r6 { animation-delay: 14.5s; }
  @keyframes turn {
    0% { opacity: 0; transform: translateY(0.28em); }
    2.5%, 14.8% { opacity: 1; transform: none; }
    16.67%, 100% { opacity: 0; transform: translateY(-0.28em); }
  }
  @keyframes relay { 0% { opacity: 0; } 1.8%, 16.67% { opacity: 1; } 18.4%, 100% { opacity: 0; } }
  @keyframes lit { 0% { opacity: 0.3; } 1.8%, 16.67% { opacity: 1; } 18.4%, 100% { opacity: 0.3; } }
}

/* Le fil : trois couches comme dans l'app (branche arrière des pinces, fil, puis tirages et branche avant avec le ressort) */
.line {
  --top: 14px;
  position: relative;
  height: calc(var(--top) + var(--ph) * 0.76 + var(--pw) * 1.5 + 30px);
  overflow: hidden;
  margin-bottom: clamp(56px, 8vw, 104px);
}
.wire {
  position: absolute; left: 0; right: 0; z-index: 2;
  top: calc(var(--top) + var(--ph) * 0.7 - 0.75px);
  height: 1.5px; background: var(--wire);
  box-shadow: 0 1px 1.5px rgba(0, 0, 0, 0.08);
}
.track { position: absolute; left: 0; top: var(--top); display: flex; align-items: flex-start; gap: var(--gap); padding-right: var(--gap); will-change: transform; }
.track--back { z-index: 1; }
.track--front { z-index: 3; }
.hung, .hung-back { position: relative; flex: none; width: var(--pw); transform-origin: 50% 0; }
.hung { padding-top: calc(var(--ph) * 0.76); }
.hung-back { height: var(--ph); }
.pin { position: absolute; top: 0; left: 50%; width: calc(var(--ph) * 0.6); height: var(--ph); transform: translateX(-50%); overflow: visible; }
.pin--front { z-index: 2; filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.22)); }

/* Le tirage de l'app : bordure papier, photo 4:5, légende, ombre */
.print { margin: 0; background: var(--print); padding: calc(var(--pw) * 0.047) calc(var(--pw) * 0.047) 0; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.print .photo { position: relative; overflow: hidden; }
.print .photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print .photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.22) 100%); }
/* La légende est écrite comme la note d'une photo dans l'app (NoteRenderer : Fraunces italique 500, encre chaude) */
.print figcaption {
  height: calc(var(--pw) * 0.2); padding-top: calc(var(--pw) * 0.05);
  font: italic 500 clamp(10px, calc(var(--pw) * 0.094), 13px) / 1.15 var(--display); color: var(--note);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Une pellicule par moment : chaque pellicule comme sur l'accueil de l'app, son nom, la pastille de son appareil
   (CameraBadge : disque papier, dessin au trait à 62 %, anneau d'encre de 7 %) et ses photos, toutes du même rendu */
.badge {
  --bd: 44px;
  flex: none; display: inline-grid; place-items: center; width: var(--bd); height: var(--bd); border-radius: 50%;
  background: var(--print); box-shadow: inset 0 0 0 calc(var(--bd) * 0.07) var(--ink);
}
.badge img { width: 62%; height: 62%; object-fit: contain; }
.interlude { margin: clamp(56px, 8vw, 104px) 0 0; }
.interlude img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Variante « cartes » : deux colonnes de pellicules, trois photos chacune */
.roll-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(24px, 3.5vw, 48px); margin-top: clamp(40px, 6vw, 72px); }
.roll-card { min-width: 0; }
.roll-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.roll-head h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); min-width: 0; }
.roll-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.roll-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
@media (max-width: 760px) { .roll-cards { grid-template-columns: minmax(0, 1fr); } }

/* Variante « rangées » : comme l'accueil de l'app, le nom et la pastille au-dessus d'une rangée de cinq photos */
.roll-rows { display: grid; gap: clamp(32px, 4.5vw, 52px); margin-top: clamp(40px, 6vw, 72px); }
.roll-row .roll-head { margin-bottom: 12px; }
.roll-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.roll-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
@media (max-width: 760px) {
  .roll-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .roll-strip::-webkit-scrollbar { display: none; }
  .roll-strip img { flex: 0 0 38%; width: 38%; min-width: 0; scroll-snap-align: start; }
}

/* Variante « piles » : la pile de tirages, puis la pastille et le nom, centrés */
.rolls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .rolls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
.roll { min-width: 0; text-align: center; }
.roll .roll-name { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.roll .badge { --bd: 38px; }
.roll h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); }
.pile { position: relative; display: block; width: 100%; aspect-ratio: 1 / 0.98; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.pile .pp {
  position: absolute; left: 50%; top: 50%; width: 58%;
  background: var(--print); padding: 4% 4% 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.55s cubic-bezier(.2, .8, .2, 1);
}
.pile .pp::after { content: ""; display: block; height: 0.9rem; }
.pile .pp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pile .pp:nth-child(1) { z-index: 1; transform: translate(-56%, -50%) rotate(-6deg) scale(0.94); }
.pile .pp:nth-child(2) { z-index: 2; transform: translate(-44%, -51%) rotate(5deg) scale(0.94); }
.pile .pp:nth-child(3) { z-index: 3; transform: translate(-50%, -50%); }
.pile:hover .pp:nth-child(1), .pile.is-open .pp:nth-child(1), .pile:focus-visible .pp:nth-child(1) { transform: translate(-82%, -48%) rotate(-12deg) scale(0.94); }
.pile:hover .pp:nth-child(2), .pile.is-open .pp:nth-child(2), .pile:focus-visible .pp:nth-child(2) { transform: translate(-18%, -50%) rotate(10deg) scale(0.94); }
.pile:hover .pp:nth-child(3), .pile.is-open .pp:nth-child(3), .pile:focus-visible .pp:nth-child(3) { transform: translate(-50%, -54%) rotate(-1deg); }

/* Comment ça marche */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin: clamp(40px, 6vw, 72px) 0 0; list-style: none; padding: 0; }
.step { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.step .device { --dw: min(100%, 270px); }
.step-shot { width: 100%; display: flex; justify-content: center; }
.step-dot { display: none; }
.step-n { font: 600 13px/1 var(--mono); color: var(--ink-2); letter-spacing: 0.04em; }
.step h3 { margin-top: 8px; }
.step p { margin: 10px auto 0; color: var(--ink-2); font-size: 16px; max-width: 24em; }
/* Sur téléphone et tablette, une frise qui se lit en descendant : le numéro dans une pastille, une ligne qui relie les
   étapes, le texte, puis seulement la partie utile de l'écran, en grand, coupée en fondu */
@media (max-width: 900px) {
  .steps { display: flex; flex-direction: column; gap: 40px; }
  .step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 16px; align-items: start; text-align: left; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 46px; bottom: -34px; width: 2px; border-radius: 1px; background: var(--rule); }
  .step-dot { display: grid; place-items: center; grid-column: 1; grid-row: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 600 15px/1 var(--mono); }
  .step-text { grid-column: 2; grid-row: 1; padding-top: 4px; }
  .step-n { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .step h3 { margin-top: 0; }
  .step p { margin: 6px 0 0; max-width: 34em; }
  .step-shot {
    grid-column: 2; grid-row: 2; display: block; position: relative; height: 380px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
  }
  .step-shot--end {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 86%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 86%, transparent);
  }
  .step-shot .device { --dw: min(calc(100% - 8px), 340px); position: absolute; left: 4px; top: 6px; }
  /* Le configurateur : la fenêtre descend jusqu'en bas du téléphone, pour les cartes d'appareils et « Continuer » */
  .step-shot--end .device { top: 0; transform: translateY(calc(-99% + 380px)); }
}

/* Questions */
.faq { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding-block: 16px;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--outline); position: relative; transition: transform 0.25s ease; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { transform: rotate(45deg); }

/* Appel final */
.final { text-align: center; }
.final h2 { max-width: 14em; margin-inline: auto; }
.final .hero-cta { justify-content: center; }
.final .meta { text-align: center; }
.namefield {
  margin: 36px auto 0; width: min(100%, 440px); height: 60px; border: 1.5px solid var(--ink); border-radius: 30px;
  display: flex; align-items: center; gap: 0.35em; padding: 0 24px; text-align: left; overflow: hidden;
  font-size: 18px; font-weight: 500;
}
.namefield .ex { color: var(--ink-3); flex: none; }
.namefield .slot { position: relative; flex: 1; height: 1.5em; overflow: hidden; }
.namefield .slot span { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--ink); transition: transform 0.5s cubic-bezier(.3, 1.4, .5, 1), opacity 0.4s ease, filter 0.4s ease; }
.namefield .slot span.out { transform: translateY(-12px); opacity: 0; }
.namefield .slot span.in { transform: translateY(12px); opacity: 0; filter: blur(3px); }

/* Pied de page : le même noir d'album que l'en-tête, textes clairs */
.foot { background: #141312; padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: #A3A3A3; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 800px) { .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { color: #FBFAF7; }
.foot-brand .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 10px rgba(0, 0, 0, 0.5); }
.foot-brand .brand span { font-size: 22px; }
.foot-brand p { margin: 6px 0 0; font-family: var(--display); font-style: italic; font-size: 17px; color: #A3A3A3; }
.foot h2 { margin: 0 0 8px; font: 700 12px/1.3 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: #FBFAF7; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: #CFCCC6; }
.foot li a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.foot .mail { font-family: var(--mono); font-size: 13px; color: #FBFAF7; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.foot-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; color: #8A8A8A; }
.foot :focus-visible { outline-color: #FBFAF7; }
.foot-lang { display: flex; gap: 4px; margin-right: auto; }
.foot-lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 22px; color: #A3A3A3; text-decoration: none; }
.foot-lang a:first-child { margin-left: -10px; }
.foot-lang a:hover { color: #FFFFFF; }
.foot-lang a[aria-current] { color: #FBFAF7; font-weight: 600; }

/* Pages de texte (conditions, confidentialité, lien d'invitation, 404) */
.doc { max-width: 720px; padding-block: clamp(32px, 6vw, 72px) var(--section); }
.doc h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); }
.doc .updated { margin: 14px 0 0; font: 500 13px/1.4 var(--mono); color: var(--ink-3); }
.doc h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); margin-top: 44px; }
.doc p, .doc li { color: #3a3a3a; text-wrap: pretty; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { text-underline-offset: 3px; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.doc .btn--outline { background: transparent; color: var(--ink); }

/* Arrivée douce des sections, depuis un état déjà lisible */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise { from { opacity: 0.35; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pile .pp, .namefield .slot span, .btn { transition: none; }
}

/* Petits utilitaires (aucun style en ligne : la politique de sécurité du site les refuse) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.final-tagline { font-size: 1.3rem; margin: 0 0 14px; }

/* Réponses de la FAQ : paragraphes, et l'offre Gratuit / Pro en deux listes côte à côte */
.faq .faq-a { padding: 0 48px 22px 0; color: var(--ink-2); }
.faq .faq-a p { margin: 0; max-width: 40em; }
.faq .faq-a p + p, .faq .faq-a .plans + p { margin-top: 14px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.plans > div { border: 1.5px solid var(--outline); border-radius: 16px; padding: 16px 18px; background: rgba(255, 255, 255, 0.45); }
.plans > div:last-child { border-color: var(--ink); }
.plans h3 { font-size: 1.1rem; margin: 0 0 8px; }
.plans ul { margin: 0; padding-left: 1.1em; color: #3a3a3a; font-size: 15px; }
.plans li + li { margin-top: 4px; }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } .faq .faq-a { padding-right: 0; } }

/* Informations encore à fournir sur les pages légales */
mark.todo { background: #FFE58A; color: #121212; padding: 0 0.25em; border-radius: 3px; }
.doc h3 { font-size: 1.1rem; margin-top: 26px; }
.doc .legal-id { list-style: none; padding: 0; }
.doc .legal-id li + li { margin-top: 2px; }
