
.how-page { background: #fff; color: var(--ink); }
.how-nav { position: sticky; top: 0; z-index: 10; height: 64px; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; background: #fffffff5; border-bottom: 1px solid var(--line); }
.how-nav .brand { margin-right: auto; }
.how-nav .button { min-height: 40px; padding: 11px 20px; font-size: 13px; }
.how-back { font-size: 13px; }
.story-shell { max-width: 1240px; padding: 64px 40px 40px; margin: auto; }
.story-intro { padding: 0 0 56px; }
.story-intro p { font-size: 15px; font-weight: 600; margin: 0 0 22px; }
.story-intro h1 { font: 600 clamp(48px,6vw,80px)/1.03 var(--display); letter-spacing: -.05em; margin: 0; }
.story-gesture { margin-bottom: 110px; }
.story-gesture > img { display: block; width: 100%; height: auto; border-radius: 32px; }
.story-gesture > div { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 40px 20px 0; align-items: start; }
.story-gesture h2, .demo-explanation h2 { font: 600 clamp(34px,4vw,52px)/1.08 var(--display); letter-spacing: -.04em; margin: 0; }
.story-gesture p { font-size: 18px; line-height: 1.7; color: var(--graphite); margin: 0; }
.story-step { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; margin: 0 0 90px; padding: 54px; background: #f7f7f8; border-radius: 36px; scroll-margin-top: 88px; }
.demo-capture { margin: 0; width: 100%; max-width: 340px; justify-self: center; }
.demo-capture img { display: block; width: 100%; height: auto; border-radius: 22px; box-shadow: 0 8px 30px #00000007; }
.demo-moment { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.demo-explanation h2 { font-size: clamp(32px,3.5vw,46px); margin-bottom: 32px; }
.demo-actor { margin: 0 0 24px; }
.demo-actor h3 { font-size: 15px; font-weight: 650; margin: 0 0 10px; }
.demo-actor p { font-size: 16px; line-height: 1.7; color: var(--graphite); margin: 0; }
.demo-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 26px 0 0; }
.story-context { color: var(--muted); font-size: 12px; text-align: center; }
.how-footer { display: flex; gap: 28px; padding: 24px var(--pad); border-top: 1px solid var(--line); font-size: 12px; }
.how-footer span { margin-left: auto; }
@media(max-width:950px) { .story-step { padding: 36px; gap: 36px; } .story-gesture > div { gap: 35px; } }
@media(max-width:760px) {
.how-nav { padding: 0 20px; gap: 14px; } .how-nav .brand { font-size: 22px; } .how-nav .button { font-size: 11px; padding: 10px 13px; } .how-back { font-size: 11px; }
.story-shell { padding: 36px 20px; } .story-intro { padding-bottom: 30px; } .story-intro h1 { font-size: 48px; }
.story-gesture { margin-bottom: 60px; } .story-gesture > img { border-radius: 20px; } .story-gesture > div { display: block; padding: 28px 0 0; } .story-gesture h2 { margin-bottom: 20px; } .story-gesture p { font-size: 16px; }
.story-step { display: flex; flex-direction: column; gap: 32px; padding: 28px 20px; margin-bottom: 28px; border-radius: 24px; } .demo-capture { max-width: 300px; } .demo-explanation h2 { font-size: 32px; margin-bottom: 25px; } .demo-actor p { font-size: 15px; }
.how-footer { flex-wrap: wrap; padding: 24px 20px; gap: 16px; font-size: 11px; } .how-footer > a:first-child { flex-basis: 100%; }
}
.editorial-page { overflow: hidden; }
.editorial-hero { text-align: center; padding: 80px 24px 0; }
.editorial-hero > p { font-size: 17px; font-weight: 600; margin: 0 0 25px; }
.editorial-hero h1 { font: 650 clamp(64px,8vw,112px)/.98 var(--display); letter-spacing: -.055em; margin: 0; }
.editorial-hero > img { display: block; width: min(100%,1000px); height: auto; margin: 20px auto 0; }
.editorial-lead { max-width: 920px; padding: 30px 30px 100px; margin: auto; text-align: center; font: 500 clamp(22px,2.5vw,32px)/1.45 var(--display); letter-spacing: -.025em; }
.editorial-content { max-width: 1220px; padding: 0 40px; margin: auto; }
.editorial-content h2 { font: 600 clamp(38px,5.5vw,72px)/1.04 var(--display); letter-spacing: -.045em; margin: 0 0 28px; }
.editorial-content p { font-size: 18px; line-height: 1.7; }
.editorial-content .editorial-eyebrow { font-size: 14px; font-weight: 600; color: #686868; margin: 0 0 22px; }
.editorial-wallet,.editorial-reward { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; border-radius: 40px; padding: 70px 65px 0; overflow: hidden; background: #f5f5f7; }
.editorial-wallet > div { padding-bottom: 60px; }
.editorial-capture { width: 100%; max-width: 330px; margin: 0 auto; background: #f8f9fb; padding: 8px; border: 3px solid #88898c; border-radius: 46px; box-shadow: inset 0 0 0 5px #181818,0 14px 30px #0000000c; overflow: hidden; }
.editorial-capture img { display: block; width: 100%; height: auto; border-radius: 0 0 34px 34px; }
.editorial-status { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font: 600 12px var(--ui); }
.editorial-status i { display: block; width: 78px; height: 23px; border-radius: 20px; background: #111; }
.editorial-wallet .editorial-capture { margin-bottom: -55px; }
.editorial-content .editorial-caption { max-width: 830px; margin: 28px auto 100px; text-align: center; color: #686868; font-size: 16px; }
.editorial-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 110px; }
.editorial-stage { height: 460px; background: #f5f5f7; border-radius: 32px; overflow: hidden; padding: 42px 25px 0; }
.editorial-copy { padding: 35px 10px 0; }
.editorial-copy h2 { font-size: clamp(36px,4vw,52px); }
.editorial-content .editorial-merchant { color: #686868; font-size: 15px; }
.editorial-reward { background: #f1ede6; padding-top: 60px; }
.editorial-reward > div { padding-bottom: 60px; }
.editorial-reward .editorial-capture { margin-bottom: -35px; }
.editorial-validation { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; padding: 0 65px; margin: 30px 0 100px; }
.editorial-validation h2 { font-size: clamp(38px,4.5vw,60px); }
.editorial-end { text-align: center; border-top: 1px solid #e5e5e5; padding: 75px 20px; }
.editorial-end .button { margin-top: 12px; }
.editorial-content .editorial-context { font-size: 11px; text-align: center; color: #686868; margin: 0 0 30px; }
@media(max-width:950px) { .editorial-wallet,.editorial-reward { gap: 32px; padding: 45px 35px 0; } .editorial-validation { gap: 45px; padding: 0 20px; } .editorial-pair { gap: 30px; } .editorial-stage { height: 400px; } }
@media(max-width:760px) {
.editorial-hero { padding-top: 48px; } .editorial-hero h1 { font-size: 58px; } .editorial-hero > p { font-size: 14px; } .editorial-hero > img { width: calc(100% + 48px); max-width: none; margin-left: -24px; }
.editorial-lead { padding: 30px 24px 60px; font-size: 23px; } .editorial-lead br { display: none; }
.editorial-content { padding: 0 20px; } .editorial-content h2 { font-size: 42px; } .editorial-content p { font-size: 16px; }
.editorial-wallet,.editorial-reward { display: flex; flex-direction: column; gap: 36px; border-radius: 26px; padding: 35px 25px 0; }
.editorial-wallet > div { order: -1; padding: 0; } .editorial-wallet h2 br:nth-child(2) { display: none; }
.editorial-capture { max-width: 280px; } .editorial-wallet .editorial-capture { margin-bottom: -30px; }
.editorial-content .editorial-caption { font-size: 14px; margin: 22px 5px 60px; }
.editorial-pair { display: block; margin: 0; } .editorial-pair > section { margin-bottom: 60px; } .editorial-stage { height: 380px; padding: 30px 22px 0; border-radius: 26px; }
.editorial-copy { padding: 28px 5px 0; } .editorial-reward > div { padding: 0; } .editorial-reward h2 br { display: none; } .editorial-reward h2 { max-width: 260px; }
.editorial-validation { display: flex; flex-direction: column; gap: 35px; padding: 0 8px; margin-bottom: 60px; } .editorial-validation > div { width: 100%; }
.editorial-end { padding: 50px 0; }
}
.editorial-stage { height: 600px; }
.editorial-content section[id] { scroll-margin-top: 88px; }
@media(max-width:950px) and (min-width:761px) { .editorial-stage { height: 510px; } }
@media(max-width:760px) { .editorial-stage { height: 530px; } }

@media(max-width:760px) { .editorial-hero h1 { font-size: 46px; } }

/* Les captures restent des écrans Klapp, sans imitation du matériel Apple. */
.editorial-capture { border: 0; border-radius: 18px; padding: 0; box-shadow: none; background: transparent; max-width: 350px; }
.editorial-capture img { border-radius: 18px; }
.editorial-hero > img { mask-image: linear-gradient(to right,transparent,#000 14%,#000 86%,transparent); }
.editorial-hero h1 { font-weight: 500; letter-spacing: -.024em; }
.editorial-content h2 { font-weight: 490; }
.editorial-registration { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; padding: 0 65px; margin-bottom: 100px; }
.editorial-registration .editorial-stage { height: auto; padding: 0; background: transparent; overflow: visible; }
.editorial-registration .editorial-copy { padding: 0; }
.editorial-registration h2 { font-size: clamp(38px,4vw,54px); }
.editorial-return { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 0 65px; margin: 0 0 100px; }
.editorial-return h2 { font-size: clamp(38px,4vw,54px); }
.editorial-return p:first-child { margin-top: 0; }
.editorial-wallet .editorial-capture,.editorial-reward .editorial-capture { margin-bottom: 0; }
.editorial-wallet,.editorial-reward { padding-bottom: 55px; }
.editorial-wallet h2 { font-size: clamp(38px,4.5vw,60px); }
@media(max-width:950px) { .editorial-registration,.editorial-return { padding: 0 20px; gap: 40px; } }
@media(max-width:760px) {
.editorial-hero > img { width: 100%; max-width: 100%; margin-left: auto; margin-right: auto; }
.editorial-registration,.editorial-return { display: flex; flex-direction: column; padding: 0 5px; gap: 30px; margin-bottom: 60px; }
.editorial-capture { max-width: 300px; }
.editorial-wallet,.editorial-reward { padding-bottom: 30px; }
.editorial-wallet h2,.editorial-registration h2,.editorial-return h2 { font-size: 38px; }
.editorial-wallet > div { order: 0; }
.editorial-return { gap: 0; }
}

/* Les mains quittent la composition aux bords de la page, sans fondu. */
.editorial-hero > img { mask-image: none; display: block; width: 100vw; max-width: none; height: auto; margin-left: calc(50% - 50vw); margin-right: 0; }
/* Le visuel matériel conserve ses proportions et ses détails photographiques. */
.editorial-capture { position: relative; width: 100%; max-width: 330px; aspect-ratio: 1100 / 2249; overflow: visible; border-radius: 0; background: none; }
.editorial-capture > .device-hardware { display: block; width: 100%; height: auto; border-radius: 0; }
.device-display { position: absolute; top: 9%; left: 5.5%; width: 89%; bottom: 4.5%; background: #f8f9fb; overflow: hidden; }
.device-display > img { width: 100%; height: auto; display: block; border-radius: 0; }
@media(max-width:760px) { .editorial-capture { max-width: 290px; } .editorial-hero > img { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); } }
.device-display { border-radius: 0 0 25px 25px; }

/* Le visuel reste contenu dans la page, comme les autres sections. */
.editorial-hero { max-width: 1220px; margin: auto; padding: 48px 40px 0; }
.editorial-hero > p { margin-bottom: 18px; }
.editorial-hero h1 { font-size: clamp(30px,3.6vw,48px); line-height: 1.15; }
.editorial-hero > img { width: 100%; max-width: 100%; height: auto; max-height: 570px; object-fit: cover; object-position: center; margin: 48px auto 0; border: 1px solid #ededed; border-radius: 22px; }
.editorial-lead { padding-top: 42px; }
@media(max-width:760px) {
.editorial-hero { padding: 32px 20px 0; }
.editorial-hero h1 { max-width: 330px; margin: auto; font-size: 31px; line-height: 1.15; }
.editorial-hero > img { width: 100%; max-width: 100%; max-height: none; margin: 28px auto 0; border-radius: 16px; }
.editorial-lead { padding-top: 30px; font-size: 21px; }
}
.editorial-hero > img { width: min(100%,800px); max-height: none; object-fit: contain; }

.editorial-wallet { grid-template-columns: 1.1fr 1fr; padding: 70px 55px; gap: 60px; }
.editorial-wallet > div { padding: 0; }
.wallet-pass { margin: 0; align-self: center; }
.wallet-pass img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 18px 35px #35241622; }
.wallet-pass figcaption { font-size: 11px; color: #686868; text-align: center; margin-top: 22px; }
@media(max-width:950px) { .editorial-wallet { padding: 45px 35px; gap: 35px; } }
@media(max-width:760px) { .editorial-wallet { padding: 35px 25px; gap: 35px; } .wallet-pass { width: 100%; } }

/* La navigation commune reste lisible sur cette page au fond blanc. */
.how-page { padding-top: 64px; }
.how-page .site-nav { height: 64px; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.how-page .site-nav .nav-cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.how-page .site-nav .nav-login:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.editorial-capture.wallet-device { max-width: 265px; }
.wallet-display { background: #f2f2f7; padding: 12px 10px; }
.editorial-content .wallet-app-title { font: 650 25px/1.2 var(--ui); letter-spacing: -.035em; margin: 0 0 18px; }
.wallet-display > .editorial-pass-art { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 5px 12px #0002; }
@media(max-width:760px) { .editorial-capture.wallet-device { max-width: 245px; } }

/* Une seule grille garde les mêmes bords et les mêmes colonnes à chaque étape. */
.editorial-page { --story-width: 1040px; --story-gutter: 32px; --story-gap: 40px; }
.editorial-hero, .editorial-content, .editorial-lead {
  width: calc(100% - 80px);
  max-width: var(--story-width);
  padding-left: 0;
  padding-right: 0;
}
.editorial-hero > img { width: 100%; }
.editorial-registration, .editorial-wallet, .editorial-return, .editorial-reward, .editorial-validation {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--story-gap);
  padding-left: var(--story-gutter);
  padding-right: var(--story-gutter);
}
.editorial-content h2 { font-size: clamp(34px, 4vw, 46px); }
@media(max-width:760px) {
  .editorial-page { --story-gutter: 24px; --story-gap: 30px; }
  .editorial-hero, .editorial-content, .editorial-lead { width: calc(100% - 40px); }
  .editorial-content h2 { font-size: 34px; }
}

/* Les aplats reprennent la palette de la landing et rythment le parcours. */
.editorial-wallet { background: var(--cloud); }
.editorial-end { background: var(--hero-blue); border-top: 0; border-radius: 40px; margin-bottom: 30px; }
@media(max-width:760px) { .editorial-end { border-radius: 26px; padding: 50px 24px; } }

/* Le décor occupe toute la largeur, avec les deux objets visibles au centre. */
.editorial-hero > img {
  width: 100vw;
  max-width: none;
  height: clamp(520px, 80svh, 900px);
  margin-left: calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
}
.editorial-reward { background: var(--mist); }
.editorial-end { background: var(--mist); }
@media(max-width:760px) {
  .editorial-hero > img { height: auto; aspect-ratio: 4 / 3; }
}

/* Le format paysage suit la largeur de l’écran sans recadrage vertical. */
.editorial-hero > img { height: auto; aspect-ratio: 1672 / 941; }
@media(max-width:760px) { .editorial-hero > img { aspect-ratio: 4 / 3; } }

/* Le titre fait partie du grand visuel, avec un contraste stable sur la photo. */
.editorial-hero-immersive { position: relative; isolation: isolate; width: 100%; max-width: none; height: max(900px, 85vw, calc(100svh - 64px)); padding: 0; margin: 0 0 100px; color: #fff; }
.editorial-hero-immersive > img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; object-position: center 75%; z-index: -2; }
.editorial-hero-immersive::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #121820b8 0%, #12182099 40%, #12182014 65%, #1218200a); }
.hero-overlay-copy { padding: clamp(48px, 6vw, 96px) 24px 0; max-width: 1040px; margin: auto; }
.hero-overlay-copy > p:first-child { margin: 0 0 24px; font-size: 16px; font-weight: 600; }
.editorial-hero-immersive h1 { font-size: clamp(48px, 5.5vw, 80px); line-height: 1.05; max-width: none; margin: 0; }
.hero-description { max-width: 720px; margin: 28px auto 0; font-size: 20px; line-height: 1.5; }
@media(max-width:760px) {
.editorial-hero-immersive { height: max(720px, calc(100svh - 64px)); margin-bottom: 60px; }
.hero-overlay-copy { padding: 40px 24px 0; }
.editorial-hero-immersive h1 { font-size: 36px; }
.hero-description { font-size: 16px; margin-top: 22px; }
.hero-description br { display: none; }
}

@media(max-width:760px) {
  .editorial-hero-immersive > img { object-fit: cover; object-position: center bottom; }
}

/* Trois formats distincts donnent à chaque usage sa propre place. */
.editorial-return { display: block; padding: 0; }
.passage-detail-copy { padding: 0; margin-bottom: 36px; }
.passage-detail-copy h2 { margin-top: 0; }
.fidelity-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fidelity-feature { margin: 0; min-width: 0; }
.fidelity-art { aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fidelity-art-card { background: #eee9ed; padding: 22px; }
.fidelity-art-message { background: #f3f4f5; padding: 26px; }
.florist-message { width: 100%; }
.editorial-return .florist-sender { margin: 0 0 12px; color: #666; font-size: 13px; }
.editorial-return .florist-bubble { position: relative; background: #dfe8dd; color: #253b2b; border-radius: 24px 24px 4px 24px; padding: 23px; margin: 0; font-size: 23px; line-height: 1.25; letter-spacing: -.5px; }
.fidelity-art-photo img { width: 100%; height: 100%; object-fit: cover; }
.fidelity-feature figcaption { padding: 22px 6px 0; }
.fidelity-feature h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 10px; }
.fidelity-feature figcaption p { font-size: 16px; line-height: 1.5; color: #62666b; margin: 0; }
@media(max-width:760px) {
 .fidelity-gallery { grid-template-columns: 1fr; gap: 36px; }
 .fidelity-art { aspect-ratio: 4 / 5; }
 .fidelity-art-card { padding: 32px; }
 .fidelity-art-message { padding: 32px; }
 .fidelity-feature figcaption { padding-top: 18px; }
}

/* La rotation reprend la référence tout en gardant la structure des passes KLAPP. */
.fidelity-art-card { position: relative; background: #f1edf0; padding: 0; }
.loyalty-stack { position: relative; width: 82%; height: 86%; }
.loyalty-stack::after { content: ""; position: absolute; width: 72%; height: 8px; bottom: 1%; left: 14%; border-radius: 50%; background: #30242c30; filter: blur(8px); }
.loyalty-layer { position: absolute; width: 92%; aspect-ratio: 1.36; overflow: hidden; border-radius: 9px; background: var(--pass-color); color: white; transform: translate(-50%, -50%) matrix(.27, -1, 1, 0, 0, 0); box-shadow: 2px 3px 0 #0002, -9px 9px 18px #2f253525; display: grid; grid-template-rows: 23% 52% 25%; }
.loyalty-layer-back { left: 64%; top: 62%; z-index: 1; }
.loyalty-layer-middle { left: 53%; top: 52%; z-index: 2; }
.loyalty-layer-front { left: 42%; top: 42%; z-index: 3; }
.klapp-pass-header { display: flex; justify-content: space-between; align-items: center; padding: 7px; }
.klapp-pass-header strong { font-size: 19px; letter-spacing: -.5px; }
.klapp-pass-header span { text-align: right; font-size: 5px; line-height: 1.2; }
.klapp-pass-header b { font-size: 9px; font-weight: 500; }
.loyalty-layer > img { width: 100%; height: 100%; object-fit: cover; }
.klapp-pass-fields { display: flex; justify-content: space-between; align-items: center; padding: 6px 7px; gap: 5px; }
.klapp-pass-fields span { font-size: 5px; }
.klapp-pass-fields b { display: block; margin-top: 3px; font-size: 9px; font-weight: 400; }
