/* ==========================================================
   Journal numérique La Libre : tuto app + site
   Charte : magenta #AC115D, marine #061E4D
   Typo : Manuale (titres), Libre Franklin (textes)
   ========================================================== */

:root {
  /* Tokens charte La Libre v2 (tools-design/marque-lalibre.html) */
  --magenta: #AC115D;        /* --llb-magenta-600 */
  --magenta-700: #930A4D;
  --magenta-600: #930A4D;
  --magenta-100: #F9E1EC;
  --magenta-50: #FDF2F7;
  --marine: #061E4D;         /* --llb-marine-800 */
  --marine-500: #08619B;
  --marine-100: #D7E1F4;
  --marine-50: #EFF3FB;
  --graphite: #262729;       /* --llb-graphite : texte courant, bouton primaire */
  --pay: #F2C93D;            /* --llb-pay : abonnement */
  --pay-dark: #F7B500;
  --pay-ink: #5D3C10;
  --ink: #262729;
  --ink-600: #686868;        /* grey-600 */
  --ink-400: #999999;        /* grey-500 */
  --ink-300: #BDBDBD;        /* grey-400 : contour */
  --ink-200: #E0E0E0;        /* grey-200 : filet */
  --ink-100: #F2F2F2;        /* grey-100 */
  --ink-50: #F7F7F7;
  --paper: #FFFFFF;
  --bg: #F7F7F7;

  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Manuale", Georgia, serif;

  --radius: .25rem;          /* --llb-radius */
  --radius-lg: 10px;         /* header, menu */
  --shadow-1: 0 1px 1px rgba(0,0,0,.15), 0 2px 3px hsla(0,0%,40%,.12);   /* e10 */
  --shadow-2: 0 1px 1px rgba(0,0,0,.22), 0 3px 4px hsla(0,0%,40%,.21);   /* e20 */
  --shadow-3: 0 3px 10px rgba(68,5,36,.2);                               /* e30 */
  --shadow-4: 0 10px 20px rgba(30,30,30,.15);                            /* e40 */
  --shadow-5: 0 1px 15px rgba(0,0,0,.3);                                 /* e50 */
  --focus: 0 0 0 3px rgba(172,17,93,.5);
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: .3s;
  --duration-fast: .15s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--magenta-700); }
a { transition: color var(--duration-fast) var(--ease); }

strong { font-weight: 600; color: var(--graphite); }

.container { max-width: 1040px; margin-inline: auto; padding-inline: 16px; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--magenta);
  color: #fff;
  padding: 48px 0 56px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* Dégradé vivant : quatre nappes de couleur qui dérivent lentement */
.hero::before {
  content: "";
  position: absolute; inset: -45%;
  z-index: -1;
  background:
    radial-gradient(30% 30% at 22% 30%, #E0287F 0%, transparent 70%),
    radial-gradient(28% 28% at 80% 22%, #4A0E7A 0%, transparent 70%),
    radial-gradient(32% 32% at 70% 80%, #0A2766 0%, transparent 72%),
    radial-gradient(26% 26% at 20% 82%, #6E0A44 0%, transparent 70%),
    radial-gradient(22% 22% at 48% 52%, #F04E98 0%, transparent 70%);
  filter: blur(28px);
  animation: heroFlow 16s ease-in-out infinite alternate;
  will-change: transform;
}
/* Léger reflet pour garder de la profondeur sous le texte */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(60% 80% at 100% 0%, rgb(255 255 255 / .10), transparent 60%);
  pointer-events: none;
}
@keyframes heroFlow {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  33%  { transform: translate(12%, -8%) rotate(18deg) scale(1.12); }
  66%  { transform: translate(-10%, 7%) rotate(-14deg) scale(1.05); }
  100% { transform: translate(6%, 10%) rotate(24deg) scale(1.15); }
}

.hero__logo { display: inline-block; margin-bottom: 32px; }
.hero__logo img { display: block; width: 160px; height: auto; }

.hero__kicker {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .75);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  max-width: 14ch;
}

.hero__lead {
  font-size: 20px;
  line-height: 1.5;
  max-width: 56ch;
  margin: 0 0 40px;
  color: rgb(255 255 255 / .92);
}

/* ---------- Tabs ---------- */

.tabs {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 6px;
  margin: 16px auto 0;
  background: rgb(6 30 77 / .38);
  border: 1px solid rgb(255 255 255 / .16);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgb(6 30 77 / .35), inset 0 1px 0 rgb(255 255 255 / .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.tabs__btn {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / .85);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
}

.tabs__btn i { margin-right: 8px; }
.tabs__btn.is-active { color: var(--magenta); }
.tabs__btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--pay); }

.tabs__ink {
  position: absolute;
  top: 6px; bottom: 6px;
  left: var(--ink-x, 6px);
  width: var(--ink-w, 0);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgb(6 30 77 / .25);
  transition: left var(--duration) var(--ease), width var(--duration) var(--ease);
}

/* ---------- Panels ---------- */

.panel { display: none; padding-top: 56px; }
.panel.is-active { display: block; animation: panelIn var(--duration) var(--ease) both; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.panel__intro {
  font-size: 20px;
  color: var(--ink-600);
  max-width: 60ch;
  margin: 0 0 48px;
}
.panel__intro + .panel__intro--second { margin-top: -32px; }

/* Boutons stores, grand format (étape 1 app) */
.step__stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px !important; }
.store--big {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.1;
  gap: 12px;
}
.store--big i { font-size: 26px; }
.store--big small { display: block; font-size: 11px; font-weight: 400; opacity: .8; letter-spacing: .02em; }


/* ---------- Steps ---------- */

.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--ink-200);
}

.step--reverse .step__text { order: 2; }
.step--reverse .step__visual { order: 1; }

.step__num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--marine);
  color: #fff;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px var(--marine-50);
}

.step__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--marine);
}

.step__text p { margin: 0; color: var(--ink-600); }
.step__text p + p:not(.step__note) { margin-top: 12px; }
.step__note {
  margin-top: 16px !important;
  padding: 12px 16px;
  border-left: 3px solid var(--magenta);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step__note i { color: var(--magenta); margin-right: 6px; }

.step__visual { margin: 0; }
.step__visual figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-400);
  text-align: center;
}

/* ---------- Mockup : téléphone ---------- */

.phone {
  position: relative;
  width: 260px;
  height: 520px;
  margin: 0 auto;
  background: #111;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-4), var(--shadow-5), inset 0 0 0 2px #333;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone__notch {
  position: absolute; top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 22px;
  background: #111;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone__bar {
  background: var(--magenta);
  color: #fff;
  border-radius: 28px 28px 0 0;
  padding: 34px 14px 10px;
  display: flex; justify-content: space-between; align-items: center;
}

.phone__wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}

.phone__tools { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.phone__avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #F0C9A8 0 38%, var(--marine) 40% 100%);
  box-shadow: 0 0 0 2px rgb(255 255 255 / .35);
  position: relative;
}
.phone__chips {
  display: flex; gap: 6px; overflow: hidden;
  background: var(--magenta);
  padding: 0 10px 10px;
}
.phone__chips span {
  flex: 0 0 auto;
  font-size: 7px; font-weight: 600;
  color: #fff;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.phone__chips span.is-on { background: var(--magenta-700); }
.phone__une {
  display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--magenta); color: #fff;
  font-style: normal; font-family: var(--serif); font-weight: 800; font-size: 11px;
}
.phone__date { font-size: 8px; color: var(--ink-600); }

.phone__body {
  flex: 1;
  background: #fff;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}

.phone__nav {
  background: #fff;
  border-top: 1px solid var(--ink-200);
  border-radius: 0 0 28px 28px;
  padding: 8px 6px 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.phone__tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 13px;
  color: var(--ink-400);
  position: relative;
  padding: 4px 0;
  border-radius: 8px;
}
.phone__tab small { font-size: 8px; font-weight: 600; letter-spacing: .01em; }
.phone__tab.is-on { color: var(--magenta); }
.phone__tab.is-target { border-radius: 50% / 50%; }
.phone__tab.is-target::before {
  content: ""; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--marine-50);
  z-index: -1;
}
.phone__tab.is-on.is-target::before { background: var(--marine-100); }

.phone__shot { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; border-radius: 28px; }

/* Kiosque / liseuse dans le téléphone */

.phone__body--kiosque { align-items: center; }
.phone__body--reader { background: var(--ink-100); align-items: center; justify-content: center; }

.phone__bar--reader { padding-top: 34px; }
.reader-tools { display: flex; gap: 12px; font-size: 13px; }
.reader-tools i { position: relative; padding: 4px; border-radius: 6px; }
.reader-tools--magenta { color: var(--magenta); }

.phone__nav--reader { padding: 12px 18px 18px; }
.slider { display: block; height: 3px; background: var(--ink-200); border-radius: 2px; position: relative; }
.slider span { position: absolute; left: 0; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--magenta); }

/* ---------- Mockup : navigateur ---------- */

.browser {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-5);
  overflow: hidden;
  border: 1px solid var(--ink-200);
}

.browser__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px;
  background: var(--ink-100);
  border-bottom: 1px solid var(--ink-200);
}
.browser__chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-200); }
.browser__chrome span:nth-child(1) { background: #ED6A5E; }
.browser__chrome span:nth-child(2) { background: #F4BF4F; }
.browser__chrome span:nth-child(3) { background: #61C554; }
.browser__chrome em {
  flex: 1; margin-left: 8px;
  font-style: normal; font-size: 10px; color: var(--ink-400);
  background: #fff; border-radius: 4px; padding: 2px 8px;
}

.site { min-height: 230px; }

.site__bar {
  background: var(--magenta);
  color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 11px;
}
.site__wordmark { font-family: var(--serif); font-weight: 800; font-size: 15px; margin: 0 auto 0 8px; }
.site__wordmark--magenta { color: var(--magenta); margin: 0; }

.site__icons { display: flex; align-items: center; gap: 8px; }
.site__ico {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; position: relative; padding: 3px 4px; border-radius: 6px;
}
.site__ico small { font-size: 6px; font-weight: 600; }
.site__cta { background: var(--pay); color: var(--pay-ink); font-weight: 600; font-size: 7px; padding: 5px 7px; border-radius: var(--radius); }

.site__menu { display: flex; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--ink-200); }
.site__menu span { height: 7px; width: 40px; border-radius: 3px; background: var(--ink-200); }

.site__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 14px; }

/* Kiosque */
.kiosque { padding: 0; min-height: 230px; }
.kiosque__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--ink-200); }
.kiosque__bar small { font-size: 8px; color: var(--magenta); }
.kiosque__grid { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px; }
.kiosque__left { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kiosque__left small { font-size: 8px; color: var(--ink-600); }
.kiosque__right { display: flex; flex-direction: column; gap: 6px; }

/* Liseuse */
.reader { min-height: 230px; display: flex; flex-direction: column; }
.reader__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--ink-200); }
.reader__rub { display: flex; gap: 8px; margin: 0 auto; font-size: 8px; color: var(--magenta); }
.reader__rub b { background: var(--magenta); color: #fff; padding: 1px 5px; border-radius: 3px; font-weight: 600; }
.reader__body { flex: 1; display: grid; grid-template-columns: 1fr 44px; gap: 10px; padding: 12px; background: var(--ink-100); }
.reader__thumbs { display: flex; flex-direction: column; gap: 6px; }
.reader__thumbs .cover { width: 32px; height: 42px; }

/* ---------- Petits éléments de maquette ---------- */

.sk { display: block; background: var(--ink-100); border-radius: 4px; }
.sk--img { height: 120px; border-radius: 8px; background: linear-gradient(135deg, var(--ink-200), var(--ink-100)); }
.sk--title { height: 14px; width: 85%; background: var(--ink-200); margin-top: 4px; }
.sk--line { height: 8px; width: 100%; }
.sk--line.short { width: 60%; }
.sk--label { height: 8px; width: 60px; background: var(--ink-200); }
.sk--hero { height: 120px; border-radius: 6px; background: linear-gradient(135deg, var(--ink-200), var(--ink-100)); }
.sk--col { height: 120px; border-radius: 6px; }

.cover {
  display: block;
  width: 36px; height: 48px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--marine) 0 30%, var(--ink-200) 30%);
  box-shadow: var(--shadow-1);
  position: relative;
}
.cover--big {
  width: 92px; height: 124px;
  background: linear-gradient(180deg, var(--magenta) 0 9%, #1b1b25 9% 100%);
  border-radius: 2px;
  box-shadow: var(--shadow-2);
}
.cover__head {
  position: absolute; top: 18px; left: 0; right: 0;
  text-align: center;
  color: #fff; font-family: var(--serif); font-weight: 800; font-size: 14px;
}
.cover-row { display: flex; gap: 6px; }

.btn-mock {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 6px 22px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.btn-mock--yellow { background: var(--pay); color: var(--pay-ink); }
.btn-mock--wide { display: block; text-align: center; padding: 9px; font-size: 11px; }
.btn-mock--ghost { background: #fff; color: var(--magenta); box-shadow: inset 0 0 0 1.5px var(--magenta); }
.demo__scene--login .login__sub { margin-bottom: 14px; line-height: 1.4; }

.page {
  display: block;
  background: #fff;
  box-shadow: var(--shadow-3);
  border-radius: 2px;
  position: relative;
}
.page--a { width: 150px; height: 200px; background: linear-gradient(180deg, var(--magenta) 0 8%, #1b1b25 8% 100%); }
.page--b { display: none; }
.reader__body .page--a { width: 100%; height: 100%; max-width: 150px; margin: 0 auto; background: linear-gradient(180deg, var(--magenta) 0 8%, #1b1b25 8% 100%); }

/* ---------- Animation : cible, doigt, curseur ---------- */

.is-target::after,
.is-target-2::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 3px solid var(--pay-dark);
  box-shadow: 0 0 0 2px rgb(255 255 255 / .8);
  opacity: 0;
  pointer-events: none;
}
.is-target { border-radius: 8px; }

.is-playing .is-target::after { animation: ring 1.6s ease-out .9s infinite; }
.is-playing .is-target-2::after { animation: ring 1.6s ease-out 2.4s infinite; }

@keyframes ring {
  0%   { opacity: 1; transform: scale(.85); }
  70%  { opacity: 0; transform: scale(1.35); }
  100% { opacity: 0; transform: scale(1.35); }
}

.finger,
.cursor {
  position: absolute;
  left: 0; top: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--from-x, 40%), var(--from-y, 60%));
  will-change: transform, opacity;
}

/* Doigt : disque magenta translucide, bord blanc, ombre portée */
.finger {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgb(172 17 93 / .45);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / .35), 0 0 0 2px rgb(172 17 93 / .6);
  margin: -22px 0 0 -22px;
}

/* Curseur : flèche marine bord blanc, plus grande que nature */
.cursor {
  width: 26px; height: 32px;
  margin: -3px 0 0 -4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'><path d='M3 2 L3 26 L9 20 L13 30 L18 28 L14 18 L22 18 Z' fill='%23061E4D' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/></svg>") no-repeat center / contain;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / .4));
}

/* Onde de clic, émise par le doigt et le curseur au moment du contact */
.finger::after,
.cursor::after {
  content: "";
  position: absolute;
  width: 44px; height: 44px;
  left: 50%; top: 50%;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 3px solid var(--pay-dark);
  opacity: 0;
}
.cursor::after { left: 4px; top: 3px; }
.finger--js::after { left: 22px; top: 22px; }

.is-playing .finger { animation: tap 5s var(--ease) .2s infinite; }
.is-playing .cursor { animation: point 5s var(--ease) .2s infinite; }
.is-playing .finger::after,
.is-playing .cursor::after { animation: ripple 5s ease-out .2s infinite; }

@keyframes tap {
  0%   { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(1); }
  12%  { opacity: 1; }
  40%  { opacity: 1; transform: translate(var(--to-x), var(--to-y)) scale(1); }
  47%  { transform: translate(var(--to-x), var(--to-y)) scale(.7); }
  56%  { transform: translate(var(--to-x), var(--to-y)) scale(1); }
  82%  { opacity: 1; transform: translate(var(--to-x), var(--to-y)) scale(1); }
  100% { opacity: 0; transform: translate(var(--to-x), var(--to-y)) scale(1); }
}

@keyframes point {
  0%   { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(1); }
  12%  { opacity: 1; }
  40%  { opacity: 1; transform: translate(var(--to-x), var(--to-y)) scale(1); }
  47%  { transform: translate(var(--to-x), var(--to-y)) scale(.8); }
  56%  { transform: translate(var(--to-x), var(--to-y)) scale(1); }
  82%  { opacity: 1; transform: translate(var(--to-x), var(--to-y)) scale(1); }
  100% { opacity: 0; transform: translate(var(--to-x), var(--to-y)) scale(1); }
}

@keyframes ripple {
  0%, 46% { opacity: 0; transform: scale(.4); }
  48%     { opacity: 1; transform: scale(.5); }
  70%     { opacity: 0; transform: scale(2.2); }
  100%    { opacity: 0; transform: scale(2.2); }
}

/* Effet "clic" sur la cible */
.is-playing .is-target { animation: press 5s ease .2s infinite; }
@keyframes press {
  0%, 44% { background: transparent; }
  48%     { background: rgb(247 181 0 / .55); }
  60%, 100% { background: transparent; }
}
.is-playing .btn-mock.is-target { animation: pressBtn 5s ease .2s infinite; }
@keyframes pressBtn {
  0%, 44% { filter: brightness(1); transform: none; }
  48%     { filter: brightness(.85); transform: scale(.96); }
  60%, 100% { filter: brightness(1); transform: none; }
}

/* ---------- Onglet abonnés via les stores ---------- */

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: #FFF8E1;
  border: 1px solid var(--pay);
  border-left: 4px solid var(--pay-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: -16px 0 24px;
  color: var(--pay-ink);
}
.notice > i { font-size: 24px; margin-top: 2px; }
.notice b { display: block; font-family: var(--serif); font-weight: 800; font-size: 20px; margin-bottom: 4px; }
.notice p { margin: 0; font-size: 16px; line-height: 1.5; }
.step__text .step__note + .step__note { margin-top: 8px !important; }
.step__text .help__phone { margin-top: 16px; }

.phone--static { display: flex; }
.settings {
  flex: 1; border-radius: 28px;
  background: var(--ink-50);
  padding: 44px 12px 12px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--graphite);
}
.settings__head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.settings__head i { color: #007AFF; font-size: 11px; }
.settings__label { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-600); padding-left: 8px; }
.settings__row {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 8px 10px;
}
.settings__row > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.settings__row b { font-size: 11px; }
.settings__row small { font-size: 8px; color: var(--ink-600); }
.settings__row > i { font-size: 9px; color: var(--ink-300); }
.settings__row img { width: 36px; height: 36px; border-radius: 9px; }
.settings__row.is-highlight { box-shadow: 0 0 0 2px var(--pay-dark); }
.settings__ic { width: 36px; height: 36px; border-radius: 9px; }
.settings__ic--a { background: linear-gradient(#FC5C7D, #FA233B); }
.settings__ic--b { background: linear-gradient(#5AB6FF, #1A6FD6); }

.pending-card {
  max-width: 320px; margin: 0 auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  border-top: 3px solid var(--marine);
  padding: 28px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  color: var(--graphite);
}
.pending-card > i { font-size: 28px; color: var(--marine); margin-bottom: 8px; }
.pending-card b { font-family: var(--serif); font-weight: 800; font-size: 20px; }
.pending-card > span { font-size: 15px; color: var(--ink-600); }
.pending-card__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pending-card__list i { color: var(--ink-300); margin-right: 8px; }
.pending-card--help { border-top-color: var(--magenta); }
.pending-card--help > i { color: var(--magenta); }

/* ---------- Aide ---------- */

.help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 64px 0 48px;
}

.help__card {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-2);
  border-top: 3px solid var(--marine);
}
.help__card--app { border-top-color: var(--magenta); }

.help__card h2 { font-family: var(--serif); font-weight: 800; font-size: 24px; margin: 0 0 8px; color: var(--marine); }
.help__card p { margin: 0 0 12px; color: var(--ink-600); font-size: 16px; }
.help__card p:last-child { margin-bottom: 0; }

.help__icon { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 14px; }
.help__icon--fa { display: grid; place-items: center; font-size: 28px; color: var(--marine); background: var(--marine-50); }

.help__stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--graphite); color: #fff;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.store:hover { background: #111111; color: #fff; box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
.store:focus-visible { outline: 0; box-shadow: var(--focus); }

.help__phone a {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 30px;
  color: var(--marine);
  text-decoration: none;
}

/* ---------- FAQ ---------- */

.faq { margin: 0 0 64px; max-width: 720px; }
.faq h2 { font-family: var(--serif); font-weight: 800; font-size: 30px; color: var(--marine); margin: 0 0 16px; }
.faq details { border-top: 1px solid var(--ink-200); }
.faq details:last-child { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  color: var(--marine);
  list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 24px; line-height: 1;
  color: var(--magenta);
  transition: transform var(--duration) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-600); }

/* ---------- Footer ---------- */

.footer {
  background: var(--marine);
  color: rgb(255 255 255 / .8);
  padding: 48px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-size: 14px;
  text-align: center;
}
.footer p { margin: 0 0 8px; }
.footer a { color: #fff; }
.footer__social { display: flex; justify-content: center; gap: 20px; margin-top: 16px; font-size: 20px; }
.footer__social a { text-decoration: none; opacity: .8; }
.footer__social a:hover { opacity: 1; }

/* ---------- Easter egg : la Une qui tourne ---------- */

.hero__title.is-spinning { animation: spinTitle 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes spinTitle { to { transform: rotateY(360deg); } }


/* ---------- Démo d'installation (étape 1 app) ---------- */

.finger--js {
  opacity: 0;
  transform: translate(50%, 85%);
  transition: transform var(--finger-travel, 1.1s) var(--ease), opacity .4s var(--ease);
}
.finger--js.is-visible { opacity: 1; }
.finger--js { background: none; border: 0; box-shadow: none; }
.finger__dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgb(172 17 93 / .45);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / .35), 0 0 0 2px rgb(172 17 93 / .6);
}
.finger--js.is-tap .finger__dot { animation: fingerTap .6s var(--ease); }
.finger--js.is-tap::after { animation: ripple2 .7s ease-out; }
@keyframes fingerTap { 0%,100% { transform: scale(1); } 40% { transform: scale(.7); } }
@keyframes ripple2 { 0% { opacity: 1; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.2); } }

.demo {
  flex: 1;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #0B4FCF 0%, #1E8BE0 38%, #8FDDE0 62%, #2D6FD1 100%);
  display: flex; flex-direction: column;
}
.phone.is-android .demo { background: linear-gradient(160deg, #1F8A70 0%, #185A7D 60%, #0F2A4A 100%); }
.demo { transition: background .4s var(--ease); }
.demo.is-store, .phone.is-android .demo.is-store { background: #fff; }
.demo.is-store .demo__status { color: var(--graphite); }

.demo__status {
  display: flex; justify-content: space-between;
  padding: 10px 18px 0;
  font-size: 10px; font-weight: 600; color: #fff;
  transition: color .4s var(--ease);
}
.demo__status i { font-size: 9px; }

.demo__scene {
  position: absolute; inset: 30px 0 0;
  display: flex; flex-direction: column;
  opacity: 0; transform: scale(.96);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.demo__scene.is-active { opacity: 1; transform: none; }

/* Écran d'accueil */
.demo__scene--home { padding: 18px 16px 12px; justify-content: space-between; }
.demo__icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.ic {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 10px; color: #fff;
}
.ic::before {
  content: ""; display: block;
  width: 40px; height: 40px; border-radius: 10px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .25);
  background: var(--ic, #ddd);
}
.ic small { font-size: 7px; font-weight: 500; text-shadow: 0 1px 2px rgb(0 0 0 / .4); white-space: nowrap; }
.ic--a { --ic: linear-gradient(#5CF777, #2BB84A); }
.ic--b { --ic: conic-gradient(#F6C, #FC6, #6F9, #6CF, #C6F, #F6C); }
.ic--c { --ic: linear-gradient(#5AB6FF, #1A6FD6); }
.ic--d { --ic: #111; }
.ic--e { --ic: linear-gradient(#8E8E93, #48484A); }
.ic--f { --ic: linear-gradient(#FFF 0 30%, #FFE88A 30%); }
.ic--g { --ic: linear-gradient(#9A9A9E, #5E5E62); }
.ic--store::before { --ic: linear-gradient(#1C8CF8, #0B5ED7); }
.phone.is-android .ic--store::before { --ic: #fff; }
.ic--store > i {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  font-size: 26px; color: #fff;
}
.phone.is-android .ic--store > i { font-size: 22px; top: 9px; background: linear-gradient(135deg, #00D7FE, #00F076, #FFC900, #FF3A44); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ic.is-pressed::before, .ic.is-pressed img { filter: brightness(.7); }
.ic--lalibre::before { display: none; }
.ic--lalibre img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgb(0 0 0 / .25); }

/* Scènes connexion et app (étape 2) */
.demo__scene--login, .demo__scene--signup, .demo__scene--app { background: #fff; }
.login__bar {
  background: var(--magenta); color: #fff;
  padding: 10px 14px 16px;
  display: flex; justify-content: center; align-items: center;
}
.login__bar--app { justify-content: space-between; padding-bottom: 10px; }
.demo__scene--app .phone__chips { padding-top: 0; }
.login__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; color: var(--graphite); }
.login__title { font-family: var(--serif); font-weight: 800; font-size: 18px; }
.login__sub { font-size: 9px; color: var(--ink-600); margin-bottom: 6px; }
.login__field {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius);
  padding: 6px 8px;
  min-height: 36px;
  transition: border-color .2s var(--ease);
}
.login__field.is-focus { border-color: var(--magenta); }
.login__field.is-pressed { background: var(--ink-100); }
.login__field small { font-size: 7px; color: var(--ink-600); text-transform: uppercase; letter-spacing: .04em; }
.login__typed { font-size: 10px; min-height: 12px; line-height: 12px; white-space: pre; display: inline-block; }
.login__field .demo__caret { position: absolute; left: 8px; bottom: 7px; height: 12px; background: var(--magenta); }
.login__field.is-focus .demo__caret { opacity: 1; animation: caret 1s steps(2) infinite; }
.login__field .login__typed:not(:empty) + .demo__caret { position: static; vertical-align: bottom; margin-left: 1px; }
.demo__scene--signup .btn-mock--wide, .demo__scene--login .btn-mock--wide { position: relative; margin-top: 6px; transition: filter .15s var(--ease), transform .15s var(--ease); }
.demo__scene--signup .btn-mock.is-pressed, .demo__scene--login .btn-mock.is-pressed { filter: brightness(.8); transform: scale(.97); }
.demo__scene--signup .btn-mock.is-done::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid var(--pay-dark); animation: ring 1.2s ease-out 2; }
.login__link { font-size: 9px; color: var(--magenta); text-align: center; text-decoration: underline; }
.phone__nav--flat { border-radius: 0; margin-top: auto; }
.demo__scene--app .phone__body { padding: 12px; flex: 1; }
.demo.is-login, .demo.is-signup, .demo.is-app, .phone.is-android .demo.is-login, .phone.is-android .demo.is-signup, .phone.is-android .demo.is-app { background: var(--magenta); }
.demo.is-login .demo__status, .demo.is-signup .demo__status, .demo.is-app .demo__status { color: #fff; }

.demo__dock {
  display: flex; justify-content: space-around;
  background: rgb(255 255 255 / .25);
  border-radius: 22px; padding: 8px 10px;
  backdrop-filter: blur(6px);
}
.demo__dock .dk { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: #fff; font-size: 15px; box-shadow: 0 2px 6px rgb(0 0 0 / .2); }
.dk--phone { background: linear-gradient(#5CF777, #2BB84A); }
.dk--msg { background: linear-gradient(#5AB6FF, #1A6FD6); }
.dk--web { background: #fff; color: #4285F4 !important; }
.dk--cam { background: #1b1b1b; }

/* Accueil Android : horloge, recherche Google, icônes rondes, grille basse */
.demo__clock { display: none; }
.demo__gsearch { display: none; }
.phone.is-android .demo { background: linear-gradient(170deg, #B9C2CF 0%, #6E7A8C 45%, #2B3340 100%); }
.phone.is-android .demo__scene--home { padding: 10px 14px 10px; justify-content: flex-end; gap: 12px; }
.phone.is-android .demo__clock {
  display: flex; flex-direction: column; color: #fff; margin-right: auto;
  position: absolute; top: 10px; left: 16px; right: 16px;
  text-shadow: 0 1px 3px rgb(0 0 0 / .35);
}
.phone.is-android .demo__clock b { font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.phone.is-android .demo__clock small { font-size: 8px; margin-top: 3px; }
.phone.is-android .demo__weather { position: absolute; right: 0; top: 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone.is-android .demo__weather i { font-size: 16px; color: #fff; }
.phone.is-android .demo__weather small { font-size: 6px; }
.phone.is-android .demo__gsearch {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 7px 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .18);
  color: #5F6368; font-size: 12px;
}
.phone.is-android .demo__gsearch span { flex: 1; }
.phone.is-android .demo__g { font-family: var(--sans); font-weight: 700; font-size: 15px; background: linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone.is-android .demo__gsearch i:last-child { color: #4285F4; }
.phone.is-android .demo__icons { gap: 10px 6px; }
.phone.is-android .ic::before, .phone.is-android .ic--lalibre img, .phone.is-android .demo__dock .dk { border-radius: 14px; }
.phone.is-android .ic small { font-size: 7px; }
.phone.is-android .ic--a { --ic: linear-gradient(135deg, #FF9A8B, #FF6A88 60%, #FF99AC); }
.phone.is-android .ic--b { --ic: linear-gradient(#3DDC84, #2BB673); }
.phone.is-android .ic--c { --ic: linear-gradient(#56D1A5, #1E9E7A); }
.phone.is-android .ic--d { --ic: linear-gradient(#DADDE3, #9AA1AC); }
.phone.is-android .ic--e { --ic: #fff; }
.phone.is-android .ic--e::after { content: "G"; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 18px; background: linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phone.is-android .ic--f { --ic: linear-gradient(#5AB6FF, #1A6FD6); }
.phone.is-android .ic--g { --ic: linear-gradient(#F29DB5, #E0558A); }
.phone.is-android .demo__dock { background: rgb(255 255 255 / .18); border-radius: 26px; padding: 8px 12px; }
.phone.is-android .demo__dock .dk { border-radius: 50%; }

/* Boutique */
.demo__scene--store { background: #fff; padding: 12px 14px; gap: 10px; color: var(--graphite); }
.phone.is-android .demo__scene--store { background: #fff; }
.demo__store-head b { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.phone.is-android .demo__store-head b { font-size: 15px; color: #5F6368; }

.demo__search {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--ink-100);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px; color: var(--ink-600);
  border: 1.5px solid transparent;
  transition: border-color .2s var(--ease);
}
.phone.is-android .demo__search { border-radius: 999px; }
.demo__search.is-focus { border-color: #007AFF; background: #fff; }
.phone.is-android .demo__search.is-focus { border-color: #01875F; }
.demo__search.is-pressed { background: var(--ink-200); }
.demo__typed { color: var(--graphite); font-weight: 600; white-space: pre; }
.demo__caret { width: 1.5px; height: 14px; background: #007AFF; opacity: 0; }
.demo__search.is-focus .demo__caret { opacity: 1; animation: caret 1s steps(2) infinite; }
@keyframes caret { to { opacity: 0; } }
.demo__search.is-focus .demo__placeholder,
.demo__typed:not(:empty) ~ .demo__placeholder { display: none; }

.demo__result {
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.demo__result.is-visible { opacity: 1; transform: none; }
.demo__result img { width: 52px; height: 52px; border-radius: 12px; box-shadow: var(--shadow-1); }
.demo__meta { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.demo__meta b { font-size: 13px; }
.demo__meta small { font-size: 9px; color: var(--ink-600); }
.demo__stars { color: var(--pay-dark) !important; letter-spacing: 1px; }

.demo__get {
  position: relative;
  background: #007AFF; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  transition: filter .15s var(--ease), background .3s var(--ease);
}
.demo__get.is-pressed { filter: brightness(.75); }
.demo__get.is-done { background: var(--ink-200); color: var(--ink-400); }
.demo__get.is-done::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid var(--pay-dark); animation: ring 1.2s ease-out 2; }
.phone.is-android .demo__get { background: #01875F; border-radius: 6px; }
.phone.is-android .demo__get.is-done { background: var(--ink-200); }

.demo__shots { display: flex; gap: 8px; opacity: 0; transition: opacity .4s var(--ease) .2s; }
.demo__result.is-visible ~ .demo__shots { opacity: 1; }
.demo__shots span {
  flex: 1; aspect-ratio: 9 / 16;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--magenta) 0 18%, var(--ink-100) 18% 100%);
}
.demo__scene--store .sk { opacity: .6; }

/* Téléphone Android : poinçon au lieu de l'encoche, coins plus droits */
.phone.is-android { border-radius: 30px; }
.phone.is-android .phone__notch { width: 14px; height: 14px; border-radius: 50%; top: 18px; }
.phone.is-android .demo { border-radius: 20px; }

/* iOS / Android : masquage croisé */
.phone.is-android .ios-only, .step__visual.is-android .ios-only { display: none !important; }
.phone:not(.is-android) .android-only, .step__visual:not(.is-android) .android-only { display: none !important; }

/* Interrupteur iPhone / Android */
.os-switch {
  position: relative;
  display: flex;
  width: max-content;
  margin: 20px auto 0;
  padding: 4px;
  background: var(--ink-100);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .08);
}
.os-switch__btn {
  position: relative; z-index: 1;
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-600);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}
.os-switch__btn i { margin-right: 6px; }
.os-switch__btn.is-active { color: var(--graphite); }
.os-switch__btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.os-switch__ink {
  position: absolute; top: 4px; bottom: 4px;
  left: var(--ink-x, 4px); width: var(--ink-w, 0);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: left var(--duration) var(--ease), width var(--duration) var(--ease);
}


/* ---------- Écrans d'accueil v2 (iOS / Android) ---------- */

.home { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 6px 14px 10px; }
.home__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 6px; }

.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.app__ic {
  position: relative;
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px; color: #fff;
  overflow: hidden;
  box-shadow: 0 1px 4px rgb(0 0 0 / .22);
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.app__ic img { width: 100%; height: 100%; display: block; }
.app small { font-size: 6.5px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .45); white-space: nowrap; }
.app.is-pressed .app__ic { filter: brightness(.65); transform: scale(.94); }

/* Widgets iOS */
.home__widget { grid-column: span 2; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.home__widget > small { font-size: 6.5px; font-weight: 500; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.widget {
  position: relative; width: 100%; height: 80px;
  border-radius: 16px; padding: 7px 9px;
  display: flex; flex-direction: column;
  color: #fff; font-size: 7px; line-height: 1.25;
  box-shadow: 0 2px 6px rgb(0 0 0 / .2);
  overflow: hidden;
}
.widget--weather { background: linear-gradient(#2F7FE0, #1653B0); }
.widget--weather b { font-size: 8px; font-weight: 600; }
.widget__temp { font-size: 24px; font-weight: 300; line-height: 1.05; }
.widget--weather i { font-size: 9px; margin-top: auto; }
.widget--map {
  justify-content: flex-end; color: #1C1C1E;
  background:
    linear-gradient(115deg, transparent 0 46%, #fff 46% 50%, transparent 50%),
    linear-gradient(20deg, transparent 0 60%, #fff 60% 63%, transparent 63%),
    linear-gradient(135deg, #DDEFD6 0 35%, #F6F3EA 35% 62%, #CFE6F7 62%);
}
.widget__pin {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: #0A84FF; border: 2px solid #fff;
  display: grid; place-items: center; font-size: 10px; color: #fff;
  box-shadow: 0 2px 5px rgb(0 0 0 / .3);
}
.widget__place { font-size: 7px; }
.widget__place b { display: block; font-size: 8px; }

/* Icônes iOS */
.app--facetime .app__ic, .app--phone .app__ic, .app--messages .app__ic { background: linear-gradient(#5DF270, #21C33A); }
.app--calendar .app__ic { background: #fff; color: #111; }
.cal { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: var(--sans); font-size: 17px; font-weight: 400; }
.cal em { font-style: normal; font-size: 6px; font-weight: 700; color: #FF3B30; margin-bottom: 1px; }
.app--photos .app__ic { background: #fff; }
.flower {
  width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(#FFCC00, #FF9500, #FF3B30, #FF2D55, #AF52DE, #5856D6, #007AFF, #34C759, #FFCC00);
  -webkit-mask: radial-gradient(circle, transparent 0 3px, #000 3.5px);
          mask: radial-gradient(circle, transparent 0 3px, #000 3.5px);
}
.app--camera .app__ic { background: linear-gradient(#D1D1D6, #8E8E93); color: #1C1C1E; }
.app--mail .app__ic { background: linear-gradient(#5AC8FA, #0A84FF); }
.app--notes .app__ic { background: linear-gradient(#FFD52E 0 24%, transparent 24%), repeating-linear-gradient(transparent 0 6px, #E5E5EA 6px 7px), #fff; }
.app--reminders .app__ic { background: #fff; color: #FF9500; }
.app--clock .app__ic { background: #1C1C1E; font-size: 26px; }
.app--books .app__ic { background: linear-gradient(#FFB340, #FF8A00); }
.app--tv .app__ic, .app--wallet .app__ic { background: #1C1C1E; }
.app--podcasts .app__ic { background: linear-gradient(#D56EF5, #8E3BD6); }
.app--appstore .app__ic { background: linear-gradient(#1C9BFF, #0A5DEB); font-size: 22px; }
.app--maps .app__ic { background: linear-gradient(135deg, #A4E57C 0 40%, #F5F0E1 40% 55%, #7CC3F7 55%); color: #0A84FF; }
.app--health .app__ic { background: #fff; color: #FF2D55; }
.app--settings .app__ic { background: linear-gradient(#C7C7CC, #8E8E93); color: #3A3A3C; font-size: 22px; }
.app--lalibre .app__ic { background: none; }
.app--safari .app__ic { background: #fff; color: #0A84FF; font-size: 24px; }
.app--music .app__ic { background: linear-gradient(#FF5E7A, #FA243C); }

.home__search {
  align-self: center;
  font-size: 7px; font-weight: 600; color: #fff;
  background: rgb(255 255 255 / .25);
  padding: 3px 10px; border-radius: 999px;
  margin-top: auto;
}
.home__search i { font-size: 6px; margin-right: 2px; }
.home__dock {
  display: flex; justify-content: space-around;
  background: rgb(255 255 255 / .28);
  backdrop-filter: blur(8px);
  border-radius: 24px; padding: 8px 10px;
}

/* Accueil Android */
.home--android { justify-content: flex-end; gap: 12px; }
.home__clock { position: absolute; top: 6px; left: 16px; right: 16px; display: flex; flex-direction: column; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .35); }
.home__clock b { font-size: 30px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.home__clock small { font-size: 8px; margin-top: 3px; }
.home__weather { position: absolute; right: 0; top: 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.home__weather i { font-size: 16px; }
.home__gsearch {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 7px 12px;
  color: #5F6368; font-size: 12px;
  box-shadow: 0 2px 6px rgb(0 0 0 / .18);
}
.home__gsearch span { flex: 1; }
.home__gsearch i:last-child { color: #4285F4; }
.gee { font-family: var(--sans); font-weight: 700; font-size: 15px; background: linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home__grid--android { gap: 10px 6px; }
.home--android .app__ic { border-radius: 13px; }
.home__dock--android { background: rgb(255 255 255 / .18); border-radius: 26px; padding: 8px 12px; backdrop-filter: none; }
.home__dock--android .app__ic { border-radius: 50%; }
.app--gallery .app__ic { background: linear-gradient(135deg, #7B8CFF, #B07BFF); }
.app--appmall .app__ic { background: linear-gradient(135deg, #FF6B6B, #FFB84D); }
.app--home .app__ic { background: linear-gradient(#3DDC84, #1FA45B); }
.app--params .app__ic { background: linear-gradient(#E4E7EC, #A9B0BB); color: #3C4350; font-size: 20px; }
.app--google .app__ic { background: #fff; }
.app--google .gee { font-size: 19px; }
.app--play .app__ic { background: #fff; font-size: 20px; }
.app--play .app__ic i { background: linear-gradient(135deg, #00D7FE, #00F076 40%, #FFC900 65%, #FF3A44); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app--browser .app__ic { background: linear-gradient(#5AB6FF, #1A6FD6); }
.app--themes .app__ic { background: linear-gradient(135deg, #F29DB5, #E0558A); }
.app--aphone .app__ic, .app--amsg .app__ic { background: #1A73E8; }
.app--chrome .app__ic { background: #fff; color: #4285F4; font-size: 22px; }
.app--acam .app__ic { background: #1B1B1B; }

/* ---------- Démo Réglages → Abonnements (onglet 3) ---------- */

.demo__scene--page { background: #F2F2F7; color: #1C1C1E; }
.phone.is-android .demo__scene--page { background: #fff; color: #202124; }
.demo.is-s1, .demo.is-s2, .demo.is-s3, .demo.is-subs { background: #F2F2F7; }
.phone.is-android .demo.is-s1, .phone.is-android .demo.is-s2, .phone.is-android .demo.is-s3, .phone.is-android .demo.is-subs { background: #fff; }
.demo.is-s1 .demo__status, .demo.is-s2 .demo__status, .demo.is-s3 .demo__status, .demo.is-subs .demo__status { color: #1C1C1E; }

.pg { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px; }
.pg__title { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.pg__back { font-size: 9px; color: #0A84FF; display: flex; align-items: center; gap: 4px; }
.pg__search { background: #E3E3E8; border-radius: 9px; padding: 5px 8px; font-size: 9px; color: #8E8E93; }
.pg__label { font-size: 7px; text-transform: uppercase; letter-spacing: .05em; color: #8E8E93; padding-left: 9px; margin-bottom: -4px; }
.pg__group { display: flex; flex-direction: column; background: #fff; border-radius: 11px; overflow: hidden; }
.pg__row {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px;
  font-size: 9px;
  border-bottom: .5px solid #E5E5EA;
  transition: background .15s var(--ease);
}
.pg__row:last-child { border-bottom: 0; }
.pg__row.is-pressed { background: #D9D9DE; }
.pg__row.is-done { box-shadow: inset 0 0 0 2px var(--pay-dark); animation: subPulse .9s ease-in-out infinite alternate; }
@keyframes subPulse { to { background: #FFF6D6; } }
.pg__row > i:last-child { font-size: 7px; color: #C7C7CC; }
.pg__txt { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.pg__txt b { font-weight: 500; }
.pg__txt small { font-size: 7px; color: #8E8E93; }
.pg__ico { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; color: #fff; overflow: hidden; }
.pg__ico--img { width: 26px; height: 26px; border-radius: 6px; }
.pg__ico--img img { width: 100%; height: 100%; display: block; }
.ic-orange { background: #FF9500; } .ic-blue { background: #0A84FF; } .ic-green { background: #34C759; }
.ic-red { background: #FF3B30; } .ic-pink { background: #FF2D55; } .ic-grey { background: #8E8E93; }
.ic-line { background: none; color: #5F6368; font-size: 12px; }
.pg__avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(#A0A7B4, #6B7280); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 600; transition: filter .15s var(--ease); }
.pg__avatar--lg { width: 50px; height: 50px; font-size: 16px; }
.pg__avatar--sm { width: 22px; height: 22px; font-size: 8px; background: linear-gradient(#7C9CF5, #3F63D8); }
.pg__avatar.is-pressed { filter: brightness(.7); }
.pg__row--profile { padding: 9px; }
.pg__row--profile .pg__txt b { font-size: 11px; font-weight: 600; }
.pg__hero { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 12px; }
.pg__hero small { font-size: 8px; color: #8E8E93; }

/* Variante Android (Play Store) */
.phone.is-android .pg__group { background: none; border-radius: 0; }
.phone.is-android .pg__row { border-bottom: 0; padding: 9px 4px; font-size: 10px; }
.phone.is-android .pg__row.is-pressed { background: #E8EAED; }
.phone.is-android .pg__back { color: #202124; font-size: 13px; }
.phone.is-android .pg__title { font-size: 17px; font-weight: 500; }
.phone.is-android .pg__label { padding-left: 4px; }
.pg__playbar { display: flex; align-items: center; gap: 8px; background: #F1F3F4; border-radius: 999px; padding: 6px 6px 6px 12px; font-size: 9px; color: #5F6368; }
.pg__playbar > span:not(.pg__avatar) { flex: 1; }
.pg__playbar.is-dim { opacity: .35; }
.pg__chips { display: flex; gap: 6px; overflow: hidden; }
.pg__chips span { flex: 0 0 auto; font-size: 8px; padding: 4px 9px; border-radius: 8px; border: 1px solid #DADCE0; color: #3C4043; }
.pg__chips span.is-on { background: #E6F4EA; border-color: #E6F4EA; color: #137333; }
.pg__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pg__cards span { height: 90px; border-radius: 12px; background: linear-gradient(135deg, #E8F0FE, #F1F3F4); }
.pg__cards--small { grid-template-columns: repeat(3, 1fr); }
.pg__cards--small span { height: 52px; border-radius: 12px; background: #F1F3F4; }
.pg__menu { background: #fff; border-radius: 20px; box-shadow: 0 6px 20px rgb(0 0 0 / .18); padding: 10px 10px 4px; display: flex; flex-direction: column; }
.pg__menuhead { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; border-bottom: 1px solid #E8EAED; margin-bottom: 4px; font-size: 10px; }
.pg__menuhead small { font-size: 8px; color: #5F6368; }


/* ---------- Guidage du regard ---------- */

/* Sur l'écran d'accueil, tout ce qui n'est pas la cible passe en retrait */
.home .app:not([data-target]),
.home__widget, .home__search, .home__gsearch, .home__clock {
  opacity: .35;
  filter: saturate(.2);
}
.home .app[data-target] small { font-weight: 700; opacity: 1; }

/* La cible s'allume avant que le doigt ne parte */
.app.is-next .app__ic { animation: nextApp 1.1s ease-in-out infinite; }
@keyframes nextApp {
  0%, 100% { transform: scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pay-dark), 0 4px 12px rgb(0 0 0 / .3); }
  50%      { transform: scale(1.14); box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgb(247 181 0 / .55), 0 4px 12px rgb(0 0 0 / .3); }
}
.demo__search.is-next, .demo__get.is-next, .login__field.is-next,
.btn-mock.is-next, .pg__avatar.is-next {
  outline: 2px solid var(--pay-dark);
  outline-offset: 2px;
  animation: nextRing 1.1s ease-out infinite;
}
@keyframes nextRing {
  0%   { box-shadow: 0 0 0 0 rgb(247 181 0 / .8); }
  80%, 100% { box-shadow: 0 0 0 10px rgb(247 181 0 / 0); }
}
.pg__row.is-next, .phone.is-android .pg__row.is-next {
  background: #FFF6D6;
  box-shadow: inset 0 0 0 2px var(--pay-dark);
}
/* Dans les menus : les lignes voisines s'effacent quand une cible est allumée */
.pg:has(.is-next) .pg__row:not(.is-next),
.pg:has(.is-next) .pg__chips, .pg:has(.is-next) .pg__cards { opacity: .4; transition: opacity .3s var(--ease); }

/* Maquettes en boucle (étapes 3 à 5, onglet site) : on atténue le reste */
.phone[data-anim] .phone__nav .phone__tab:not(.is-target),
.phone[data-anim] .reader-tools i:not(.is-target),
.browser .site__ico:not(.is-target),
.browser .reader-tools i:not(.is-target) { opacity: .4; }


/* ---------- Logos officiels dans les maquettes ---------- */

.phone__wordmark, .site__wordmark, .cover__head {
  font-size: 0 !important;
  color: transparent;
  background: url("./img/logo-lalibre-blanc.svg") no-repeat center / contain;
}
.phone__wordmark { display: block; width: 62px; height: 18px; }
.site__wordmark { display: block; width: 52px; height: 15px; }
.site__wordmark--magenta { background-image: url("./img/logo-lalibre-magenta.svg"); }
.cover__head { height: 14px; }
.page--a .cover__head { height: 20px; top: 22px; }


/* ---------- Formulaires de connexion / inscription (site et app) ---------- */

.weblogin { display: flex; flex-direction: column; gap: 7px; width: 190px; margin: 12px auto 14px; color: var(--graphite); }
.weblogin--app { width: auto; margin: 0; padding: 12px 16px; gap: 7px; }
.weblogin__title { text-align: center; font-size: 9.5px; }
.weblogin--app .weblogin__title { font-size: 10px; }
.weblogin__social { display: flex; justify-content: center; gap: 5px; }
.so { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; }
.weblogin--app .so { width: 22px; height: 22px; font-size: 11px; }
.so--fb { background: #3B5998; }
.so--apple { background: #000; }
.so--g { background: #fff; box-shadow: inset 0 0 0 1px var(--ink-200); }
.so--g .gee { font-size: 9.5px; }
.weblogin--app .so--g .gee { font-size: 11px; }
.weblogin__or { display: flex; align-items: center; gap: 6px; font-size: 7px; color: var(--ink-600); }
.weblogin--app .weblogin__or { font-size: 8px; }
.weblogin__or::before, .weblogin__or::after { content: ""; flex: 1; height: 1px; background: var(--ink-200); }
.weblogin__field {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  border: 1px solid var(--ink-300); border-radius: 3px;
  padding: 5px 7px; min-height: 20px;
  font-size: 7.5px; color: var(--ink-400);
  transition: border-color .2s var(--ease);
}
.weblogin--app .weblogin__field { min-height: 24px; padding: 5px 8px; font-size: 8px; border-radius: 4px; }
.weblogin__field i { color: var(--graphite); font-size: 7px; }
.weblogin__field[data-target] { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.weblogin__field .login__typed { display: none; font-size: 9px; line-height: 1.1; color: var(--graphite); }
.weblogin__field .login__typed:not(:empty) { display: block; }
.weblogin__field .login__typed:not(:empty) ~ .demo__caret { display: none; }
.weblogin__field .demo__caret { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); height: 11px; background: var(--magenta); }
.weblogin__field.is-focus { border-color: var(--magenta); }
.weblogin__field.is-focus .demo__caret { opacity: 1; animation: caret 1s steps(2) infinite; }
.weblogin__field.is-pressed { background: var(--ink-100); }
.weblogin__field:has(.login__typed:not(:empty)) .weblogin__ph { font-size: 6px; line-height: 1; }
.weblogin__field.is-focus:has(.login__typed:empty) .weblogin__ph { padding-left: 4px; }
.weblogin__row { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.weblogin__forgot { align-self: flex-end; font-size: 6.5px; color: var(--magenta); }
.weblogin--app .weblogin__forgot { font-size: 7.5px; }
.weblogin__btn {
  position: relative;
  display: block; text-align: center;
  background: var(--magenta); color: #fff;
  font-size: 7.5px; font-weight: 600;
  padding: 6px; border-radius: 3px;
  transition: filter .15s var(--ease), transform .15s var(--ease);
}
.weblogin--app .weblogin__btn { font-size: 9px; padding: 7px; border-radius: 4px; }
.weblogin__btn--ghost { background: #fff; color: var(--graphite); box-shadow: inset 0 0 0 1px var(--ink-300); }
.weblogin__btn.is-pressed { filter: brightness(.85); transform: scale(.97); }
.weblogin__btn.is-done::after { content: ""; position: absolute; inset: -6px; border-radius: 6px; border: 3px solid var(--pay-dark); animation: ring 1.2s ease-out 2; }
.weblogin__btn.is-next, .weblogin__field.is-next {
  outline: 2px solid var(--pay-dark); outline-offset: 2px;
  animation: nextRing 1.1s ease-out infinite;
}
.weblogin:has(.is-next) .weblogin__social,
.weblogin:has(.is-next) .weblogin__or,
.weblogin:has(.is-next) .weblogin__field:not(.is-next):not(.is-focus):not(:has(.login__typed:not(:empty))),
.weblogin:has(.is-next) .weblogin__forgot,
.weblogin:has(.is-next) .weblogin__btn:not(.is-next) { opacity: .4; transition: opacity .3s var(--ease); }
/* Maquette site en boucle : le reste du formulaire en retrait */
.browser .weblogin > :not(.is-target) { opacity: .45; }
.browser .weblogin .weblogin__btn.is-target { border-radius: 3px; }


/* ---------- Icônes iOS officielles (fournies par IPM) ---------- */
.app--img .app__ic { background: none !important; box-shadow: 0 1px 3px rgb(0 0 0 / .18); border-radius: 9px; }
.app--img .app__ic img { width: 100%; height: 100%; display: block; }

/* ---------- FAQ sourcée et horaires ---------- */
.faq__src { white-space: nowrap; font-size: .9em; margin-left: 4px; }
.faq__all { margin-top: 20px; font-size: 15px; color: var(--ink-600); }
.help__hours { font-size: 14px !important; margin-top: -4px !important; }
.pending-card--fix { border-top-color: var(--pay-dark); }
.pending-card--fix > i { color: var(--pay-dark); }
.pending-card__steps { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.pending-card__steps li::marker { color: var(--magenta); font-weight: 700; }

/* ---------- Avatar de l'app La Libre (fourni par IPM) ---------- */
.phone__avatar:not(.pg__avatar) {
  background: url("./img/avatar-app.webp") center / cover no-repeat, #0A1F3F;
}

/* ---------- Mouvement réduit ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-playing .finger, .is-playing .cursor,
  .is-playing .is-target, .is-playing .btn-mock.is-target { animation: none; }
  .is-playing .finger, .is-playing .cursor { opacity: 1; transform: translate(var(--to-x), var(--to-y)); }
  .is-playing .is-target::after { animation: none; opacity: 1; }
  .is-playing .finger::after, .is-playing .cursor::after { animation: none; opacity: 0; }
  .finger--js, .demo__scene, .demo__result, .os-switch__ink { transition: none; }
  .pg__row.is-done { animation: none; background: #FFF6D6; }
  .app.is-next .app__ic, .demo__search.is-next, .demo__get.is-next, .login__field.is-next, .btn-mock.is-next, .pg__avatar.is-next { animation: none; }
  .panel.is-active { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 767.98px) {
  body { font-size: 17px; }
  .hero { padding-top: 32px; }
  .hero__title { font-size: 36px; }
  .hero__lead { font-size: 18px; margin-bottom: 32px; }
  .tabs { display: flex; flex-wrap: wrap; border-radius: 24px; margin-bottom: -24px; }
  .tabs__btn { flex: 1 1 40%; padding: 12px 8px; font-size: 15px; }
  .tabs__btn:last-of-type { flex-basis: 100%; }
  .tabs__ink { border-radius: 999px; }
  .panel { padding-top: 56px; }
  .panel__intro { font-size: 18px; margin-bottom: 32px; }
  .step { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .step--reverse .step__text { order: 1; }
  .step--reverse .step__visual { order: 2; }
  .step__title { font-size: 24px; }
  .phone { width: 220px; height: 440px; }
  .help { grid-template-columns: 1fr; margin-top: 48px; }
  .help__card { padding: 20px; }
  .help__phone a { font-size: 24px; }
  .faq h2 { font-size: 24px; }
}

/* ==========================================================
   Expérience mobile « à la Apple » (js/mobile.js)
   ========================================================== */

.tabs__short { display: none; }

/* Bouton « + Lire les explications » (mobile uniquement) */
.step__more {
  display: none;
  align-items: center; gap: 10px;
  border: 0; cursor: pointer;
  background: var(--graphite); color: #fff;
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-2);
  transition: background var(--duration) var(--ease), transform var(--duration-fast) var(--ease);
}
.step__more:active { transform: scale(.97); }
.step__more:focus-visible { outline: 0; box-shadow: var(--focus); }
.step__more-ic {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--graphite); font-size: 14px;
}

/* Feuille modale */
.sheet {
  inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
}
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet__panel {
  width: 100%; max-width: 640px; max-height: 88svh;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgb(0 0 0 / .25);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .3s var(--ease);
}
.sheet__grab { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-300); margin: 10px auto 2px; touch-action: none; }
.sheet__head {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 20px 14px;
  border-bottom: 1px solid var(--ink-200);
  touch-action: none;
}
.sheet__num { order: 0 !important; flex: 0 0 auto; width: 36px; height: 36px; font-size: 18px; margin: 0; }
.sheet__title { flex: 1; margin: 0; font-family: var(--serif); font-weight: 800; font-size: 22px; line-height: 1.15; color: var(--marine); }
.sheet__close {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--ink-100); color: var(--graphite); font-size: 16px;
}
.sheet__close:focus-visible { outline: 0; box-shadow: var(--focus); }
.sheet__content {
  overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px 28px;
  font-size: 17px; line-height: 1.6; color: var(--ink-600);
}
.sheet__content > p { margin: 0 0 14px; }
.sheet__content .step__stores { margin-top: 4px !important; }
html.is-sheet-open { overflow: hidden; scroll-snap-type: none !important; scroll-behavior: auto; }
html.is-sheet-open body { overflow: hidden; }

/* Pastille d'étapes */
.stepnav {
  position: fixed; z-index: 50;
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: rgb(38 39 41 / .84);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgb(0 0 0 / .25);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.stepnav[hidden] { display: flex; opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
.stepnav__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgb(255 255 255 / .14); color: #fff; font-size: 15px;
}
.stepnav__btn:disabled { opacity: .3; cursor: default; }
.stepnav__btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--pay); }
.stepnav__label { font-size: 15px; padding: 0 10px; white-space: nowrap; }
.stepnav__label b { font-weight: 700; }
@media (min-width: 768px), (max-height: 600px) { .stepnav { display: none !important; } }

@media (max-width: 767.98px) {
  body { font-size: 17px; }

  /* Hero et onglets */
  .hero { padding: 28px 0 20px; border-radius: 0 0 18px 18px; }
  .hero::before { filter: blur(18px); }
  .tabs { margin-top: 0; padding: 4px; }
  .tabs__ink { top: 4px; bottom: 4px; }
  .hero__logo { margin-bottom: 20px; }
  .hero__logo img { width: 120px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 17px; margin-bottom: 24px; }
  .tabs__long { display: none; }
  .tabs__short { display: inline; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin-bottom: 0; border-radius: 999px; flex-wrap: nowrap; }
  .tabs__btn, .tabs__btn:last-of-type { flex: none; padding: 11px 4px; font-size: 14px; }
  .tabs__btn i { margin-right: 5px; }
  .panel { padding-top: 32px; }
  .panel__intro { font-size: 17px; margin-bottom: 20px; }
  .panel__intro + .panel__intro--second { margin-top: 0; }
  .notice { margin: 0 0 8px; padding: 16px; }

  /* Une étape par écran */
  html { scroll-snap-type: y proximity; }
  .step, .step--reverse {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px;
    min-height: 100svh;
    padding: 24px 0 84px;
    text-align: center;
    scroll-snap-align: start;
  }
  .step__text { display: contents; }
  .step__head { order: 1; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; padding: 0 4px; }
  .step__head .step__num { flex: 0 0 auto; margin: 0; width: 40px; height: 40px; font-size: 20px; box-shadow: 0 0 0 4px var(--marine-50); }
  .step__head .step__title { margin: 0; font-size: 24px; line-height: 1.15; }
  .step__body { display: none; }
  .step__more { order: 2; display: inline-flex; }
  .step .step__visual, .step--reverse .step__visual { order: 3; width: 100%; }
  .step__visual figcaption { display: none; }
  .os-switch { margin-top: 14px; }

  /* Téléphones à taille réelle, mis à l'échelle de l'écran */
  .phone {
    width: 260px; height: 520px;
    transform: scale(var(--ph-scale, 1));
    margin: calc((var(--ph-scale, 1) - 1) * 260px) auto;
  }
  .browser { max-width: 100%; }
  .pending-card { text-align: left; }

  /* Apparitions au défilement */
  .step .step__head, .step .step__visual, .step .step__more {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s cubic-bezier(.2, .9, .25, 1);
  }
  .step .step__visual { transition-delay: .14s; }
  .step .step__more { transition-delay: .28s; }
  .step.is-inview .step__head, .step.is-inview .step__visual, .step.is-inview .step__more { opacity: 1; transform: none; }

  .help { margin-top: 32px; }
}


/* Barre d'onglets fixe (apparaît quand les onglets du hero sortent de l'écran) */
.tabbar {
  position: fixed; z-index: 60;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: center;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: rgb(255 255 255 / .82);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid rgb(0 0 0 / .06);
  transform: translateY(-110%);
  transition: transform .35s var(--ease);
}
.tabbar.is-visible { transform: none; }
.tabbar__track {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: 100%; max-width: 640px;
  padding: 3px;
  background: var(--ink-100);
  border-radius: 999px;
}
.tabbar__btn {
  position: relative; z-index: 1;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink-600);
  padding: 9px 4px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--duration) var(--ease);
}
.tabbar__btn i { margin-right: 6px; }
.tabbar__btn.is-active { color: var(--magenta); }
.tabbar__btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.tabbar__ink {
  position: absolute; top: 3px; bottom: 3px;
  left: var(--ink-x, 3px); width: var(--ink-w, 0);
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: left var(--duration) var(--ease), width var(--duration) var(--ease);
}
html.has-tabbar { scroll-padding-top: 64px; }
@media (max-width: 767.98px) {
  .tabbar__btn { font-size: 13.5px; }
  .tabbar__btn i { margin-right: 4px; }
  html { scroll-padding-top: 64px; }
  .step, .step--reverse {
    justify-content: flex-start;   /* le contenu commence sous la barre, jamais poussé vers le bas */
    min-height: calc(100svh - 64px);
    padding-top: 12px; gap: 14px;
  }
  .panel { scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .step .step__head, .step .step__visual, .step .step__more { opacity: 1; transform: none; transition: none; }
}
