/* Police Satoshi (Indian Type Foundry, ITF Free Font License) hébergée sur le site : aucune requête vers un tiers */
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/satoshi-400.woff2?v=71a6023c') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/satoshi-500.woff2?v=cd790237') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/satoshi-700.woff2?v=d4db658f') format('woff2'); }
[hidden] { display: none !important; }
/* Gymeal — site vitrine. Charte « brand/README.md » : blanc, noir, une seule touche fluo. */
:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --surface: #f5f5f5;   /* cartes, champs */
  --studio: #f2f2f3;    /* fond des silhouettes */
  --bg-sunken: #e5e5e5;
  --line: #e5e5e5;
  --text: #111111;
  --text-2: #5f5f62;
  --text-3: #737378;    /* ≥ 4,5:1 sur blanc */
  --accent: #2bff88;    /* fluo de marque : jamais du texte sur fond blanc */
  --accent-ink: #111111;
  --good: #2bff88;
  --radius: 4px;
  --radius-sm: 4px;
  --shadow: none;
  --shadow-lg: 0 24px 48px -24px rgba(0, 0, 0, .28);
  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(30px, 5.2vw, 50px); }
p { margin: 0; }
b, strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Boutons : rectangulaires, sans arrondi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 0; font: 700 15px/1 var(--font); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn-primary, .btn-dark { background: var(--text); color: #fff; }
.btn-primary:hover, .btn-dark:hover { background: #333336; }
/* Flèche fluo quand l'action « avance » */
.btn-go::after { content: '→'; color: var(--accent); font-size: 1.15em; letter-spacing: 0; line-height: 1; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { min-height: 56px; padding: 0 28px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }

.topbar {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.03em; min-height: 44px; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 15px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; box-shadow: inset 0 -2px 0 transparent; transition: color .2s, box-shadow .2s; }
.nav a:hover { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.topbar .btn { margin-left: auto; }
@media (min-width: 900px) { .nav { display: flex; } .topbar .btn { margin-left: 8px; } }

.hero { position: relative; overflow: hidden; margin-top: -64px; padding: 96px 0 56px; }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 10.5vw, 76px); margin: 18px 0 18px; }
/* Surlignage fluo d'un mot du titre (texte noir sur fluo) */
.hl { background: var(--accent); color: var(--accent-ink); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nowrap { white-space: nowrap; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); max-width: 34em; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .cta-row .btn { flex: 0 0 auto; } }

.hero-visual { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 358 / 560; }
.hero-visual .phone { position: absolute; width: 58%; max-width: 300px; }
.phone-front { right: 3%; top: 0; z-index: 2; }
.phone-back { left: 3%; top: 8%; transform: rotate(-5deg); z-index: 1; }
.chip {
  position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line);
  border-radius: 4px; padding: 9px 13px; font-size: 13.5px; font-weight: 500; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .18); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.chip b { font-weight: 700; }
.chip-a b { background: var(--accent); color: var(--accent-ink); padding: 1px 6px; }
.c-dot { width: 8px; height: 8px; }
.chip-a { left: 0; top: 22%; }
.chip-b { right: 0; top: 55%; }
.chip-c { left: 6%; bottom: 4%; }
@media (min-width: 980px) {
  .hero { padding: 120px 0 88px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero h1 { font-size: clamp(52px, 4.6vw, 66px); }
  .chip-a { left: -4%; }
  .chip-b { right: -4%; }
}

.phone {
  container-type: inline-size; position: relative; margin: 0; width: 280px; max-width: 100%;
  /* Cadre : épaisseur relative au téléphone lui-même (un padding en % dépendrait de la largeur du parent) */
  padding: 0; border-radius: 15.5% / 7.2%; background: #111111;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08), inset 0 0 0 4px #000;
}
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; background: #1a1a1e; border-radius: 2px; }
.phone::before { left: -2px; top: 19%; height: 7%; box-shadow: 0 12cqw 0 #1a1a1e; }
.phone::after { right: -2px; top: 25%; height: 11%; }
.phone-screen { position: relative; overflow: hidden; border-radius: 12.5% / 5.9%; background: var(--bg); margin: 3.4cqw; }
.phone-status {
  height: 12.2cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.4cqw 7.5cqw 0 9.5cqw;
  font: 600 4.3cqw/1 -apple-system, 'SF Pro Text', var(--font); color: #000; letter-spacing: -.01em; position: relative;
}
/* Téléphone neutre : simple point de caméra (ni encoche iPhone, ni marque) */
.phone-status .island { position: absolute; left: 50%; top: 3.4cqw; transform: translateX(-50%); width: 4.4cqw; height: 4.4cqw; background: #000; border-radius: 50%; }
/* Démo Apple : silhouette iPhone (encoche en pilule) */
.phone-apple .phone-status .island { top: 2.6cqw; width: 31%; height: 8.6cqw; border-radius: 99px; }
/* Démo Android : silhouette type Samsung Galaxy (coins plus droits, bordures fines, boutons à droite) */
.phone-samsung { border-radius: 10% / 4.8%; }
.phone-samsung .phone-screen { border-radius: 8% / 3.7%; margin: 2.4cqw; }
.phone-samsung::before { left: auto; right: -2px; top: 22%; height: 9%; box-shadow: none; }
.phone-samsung::after { top: 34%; height: 5%; }
.phone-status .st { width: 18.5cqw; height: 3.3cqw; fill: #000; color: #000; }
.phone-screen img { width: 100%; height: auto; aspect-ratio: 390 / 844; }

.stats { padding: 8px 0 24px; }
.stats-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; }
.stat::before { content: ''; display: block; width: 24px; height: 4px; background: var(--accent); margin-bottom: 14px; }
.stat b { display: block; font-size: clamp(30px, 6vw, 42px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.stat span { display: block; color: var(--text-2); font-size: 14.5px; margin-top: 4px; line-height: 1.35; }
@media (min-width: 820px) { .stats-in { grid-template-columns: repeat(4, 1fr); gap: 16px; } .stat { padding: 26px 24px; } }

.section { padding: 72px 0; }
.section-white { background: var(--bg-elev); }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 980px) { .section { padding: 120px 0; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 14px; }
.kicker::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--accent); }
.kicker:has(.pill-pro)::before { display: none; }
.muted-h { color: var(--text-3); }
.section p { color: var(--text-2); }
.section p b, .section .kicker { color: var(--text); }
.center-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.center-head p:not(.kicker) { margin-top: 16px; font-size: 18px; }
.center { text-align: center; }
.small { font-size: 14.5px; margin-top: 16px; }
.note { font-size: 14.5px; color: var(--text-3) !important; margin-top: 24px; }

.split { display: grid; gap: 44px; align-items: center; }
.split-copy > p:not(.kicker) { margin-top: 18px; font-size: 18px; }
.split-visual.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; width: 100%; margin: 0 auto; align-items: start; }
.split-visual.duo .phone { width: 100%; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-rev .split-copy { order: 2; }
  .split-visual.duo { gap: 22px; }
}

.feat { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.feat li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.feat b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.fi { flex: none; width: 44px; height: 44px; border-radius: 4px; display: grid; place-items: center; background: var(--surface); color: var(--text); }
.fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags span { background: var(--bg-elev); padding: 8px 14px; font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }

.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fig-card { margin: 0; background: var(--studio); border-radius: var(--radius); padding: 10px 10px 14px; overflow: hidden; }
.fig-card img, .fig-loop { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: var(--studio); }
.fig-card figcaption { padding: 6px 6px 0; display: flex; flex-direction: column; gap: 1px; }
.fig-card figcaption b { font-size: 15.5px; letter-spacing: -.01em; }
.fig-card figcaption span { font-size: 13.5px; color: var(--text-2); }
.fig-hero { grid-column: 1 / -1; }
/* Mannequin 3D qui tourne (vidéo en boucle, fond blanc : la carte est blanche pour se fondre) */
.fig-3d { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fig-3d video { display: block; width: 100%; max-width: 380px; max-height: 520px; margin: 0 auto; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; }
@media (min-width: 820px) {
  .figs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fig-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; }
  .fig-hero img { flex: 1; aspect-ratio: auto; min-height: 0; }
  .fig-3d video { flex: 1; min-height: 0; width: 100%; max-width: none; max-height: 560px; aspect-ratio: auto; }
  .fig-hero figcaption b { font-size: 20px; }
}

.rail-wrap { position: relative; }
.rail-nav { display: none; }
@media (min-width: 700px) {
  .rail-nav { display: flex; justify-content: center; gap: 12px; margin: -4px 0 8px; }
  .rail-nav button { width: 48px; height: 48px; border-radius: 0; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
  .rail-nav button:hover { background: var(--surface); }
  .rail-nav button:disabled { opacity: .35; cursor: default; }
  .rail-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter; }
}
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 28px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.rail-item { margin: 0; flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.rail-item .phone { width: 100%; }
.rail-item figcaption { margin-top: 16px; padding: 0 4px; color: var(--text-2); font-size: 14.5px; line-height: 1.4; }
.rail-item figcaption b { display: block; color: var(--text); font-size: 16px; }
@media (min-width: 980px) { .rail-item { width: 250px; } .rail { justify-content: flex-start; } }
@media (min-width: 1680px) { .rail { justify-content: center; } }

.cards3 { display: grid; gap: 12px; margin-top: 28px; }
.mini { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.mini .fi { margin-bottom: 14px; background: var(--bg-elev); }
.mini b { display: block; font-size: 17px; }
.mini p { margin-top: 6px; font-size: 15.5px; }
@media (min-width: 820px) { .cards3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.section-scan { background: var(--bg); }
.pill-pro { background: var(--accent); color: var(--accent-ink); font-size: 12px; padding: 3px 8px; letter-spacing: .12em; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; background: var(--text); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps b { display: block; color: var(--text); font-size: 16.5px; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px !important; line-height: 1.45; }
.disclaimer svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; margin-top: 1px; }

.quote { margin: 26px 0 0; background: var(--surface); border-radius: 0; padding: 20px 22px; border-left: 4px solid var(--accent); }
.quote p { color: var(--text) !important; font-weight: 500; font-size: 17px; line-height: 1.4; }
.quote footer { margin-top: 8px; color: var(--text-2); font-size: 13.5px; }

.privacy { display: grid; gap: 22px; background: #111111; color: #fff; border-radius: var(--radius); padding: 30px 22px; }
.privacy h2 { font-size: clamp(28px, 4.6vw, 42px); }
.privacy p { margin-top: 14px; font-size: 17px; color: #a1a1a6; }
.privacy-icon { width: 64px; height: 64px; background: var(--accent); display: grid; place-items: center; }
.privacy-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--accent-ink); stroke-width: 2; stroke-linecap: round; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 500; font-size: 16px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E") center/100% no-repeat; }
@media (min-width: 820px) {
  .privacy { grid-template-columns: auto 1fr; gap: 36px; padding: 52px 56px; }
  .checks { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
}

.install { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.install li { background: var(--surface); border-radius: var(--radius); padding: 22px; position: relative; }
.install .num { display: grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 14px; }
.install b { font-size: 18px; }
.install p { margin-top: 4px; font-size: 15.5px; }
@media (min-width: 820px) { .install { grid-template-columns: repeat(3, 1fr); gap: 16px; } .install li { padding: 28px; } }

.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--bg-elev); border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 17px; position: relative; min-height: 56px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center/80% no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; font-size: 16px; }

.final { padding: 80px 0; background: var(--surface); }
.final-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.final h2 { margin-top: 24px; font-size: clamp(32px, 6vw, 56px); }
.final p { color: var(--text-2); margin: 14px 0 28px; font-size: 18px; }
.final h2 + .btn { margin-top: 32px; }

.footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-in { display: grid; gap: 18px; }
.footer .brand { font-size: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 6px; margin-left: -12px; }
.footer-links a { text-decoration: none; color: var(--text-2); font-size: 15px; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.copy { color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
@media (min-width: 820px) { .footer-in { grid-template-columns: auto 1fr; align-items: center; } .footer-links { justify-content: flex-end; } .copy { grid-column: 1 / -1; } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-visual .phone-back.reveal.in { transform: rotate(-5deg); }
.js .hero-visual .phone-back.reveal:not(.in) { transform: translate(8%, 30px) rotate(0deg); }
.js .chip.reveal:not(.in) { transform: scale(.9) translateY(10px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: none !important; opacity: 1 !important; }
  .btn { transition: none; }
}
@media (max-width: 819px) { .figs .fig-card:last-child { grid-column: 1 / -1; } .figs .fig-card:last-child img { max-width: 70%; margin: 0 auto; } }

.scan-demo-note { grid-column: 1 / -1; text-align: center; margin-top: 12px; }

/* Installation : démo animée (reconstitution Safari) */
.install-demo { display: grid; gap: 28px; align-items: center; margin-bottom: 36px; }
.install-phone { width: 270px; margin: 0 auto; }
.ip-screen { aspect-ratio: 390 / 844; }
.ip-screen > .phone-status { position: absolute; left: 0; right: 0; top: 0; z-index: 5; }
.ip-safari, .ip-sheet, .ip-confirm, .ip-home { position: absolute; inset: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.ip-safari img { position: absolute; inset: 12.2cqw 0 auto 0; width: 100%; height: auto; }
.ip-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 3cqw 4cqw 7cqw; background: rgba(249,249,251,.96); border-top: 1px solid #e3e3e8; display: grid; gap: 2.6cqw; }
.ip-url { display: flex; align-items: center; justify-content: center; gap: 1.5cqw; background: #e9e9ee; border-radius: 3cqw; padding: 2.4cqw; font: 500 3.6cqw/1 var(--font); color: #1c1c1e; }
.ip-tools { display: flex; justify-content: space-around; color: #0a84ff; }
.ip-tools svg { width: 6.5cqw; height: 6.5cqw; }
.ip-sheet { top: auto; height: 74%; background: #f2f2f7; border-radius: 5cqw 5cqw 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); padding: 4.5cqw; transform: translateY(105%); z-index: 3; display: grid; align-content: start; gap: 3.5cqw; }
.ip-sheet-head, .ip-confirm-app { display: flex; gap: 3cqw; align-items: center; }
.ip-sheet-head img { width: 11cqw; height: 11cqw; border-radius: 2.6cqw; }
.ip-sheet-head b, .ip-confirm-app b { display: block; font-size: 4.2cqw; }
.ip-sheet-head span, .ip-confirm-app span { font-size: 3.2cqw; color: #8e8e93; }
.ip-apps { display: flex; gap: 3.2cqw; }
.ip-apps i { width: 13cqw; height: 13cqw; border-radius: 3cqw; background: #d1d1d6; }
.ip-apps i:nth-child(2) { background: #c7ddf7; } .ip-apps i:nth-child(3) { background: #cdeccf; } .ip-apps i:nth-child(4) { background: #e5e5e5; }
.ip-actions { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 3.2cqw; overflow: hidden; }
.ip-actions li { display: flex; justify-content: space-between; align-items: center; padding: 3.4cqw 4cqw; font-size: 3.9cqw; border-bottom: 1px solid #ececf0; }
.ip-actions li:last-child { border-bottom: 0; }
.ip-actions svg { width: 5.5cqw; height: 5.5cqw; color: #1c1c1e; }
.ip-add { transition: background .3s; }
.ip-confirm { background: #f2f2f7; z-index: 4; transform: translateY(100%); padding: 14cqw 4.5cqw 0; }
.ip-confirm-bar { display: flex; justify-content: space-between; align-items: center; font-size: 3.6cqw; margin-bottom: 6cqw; }
.ip-confirm-bar span { color: #0a84ff; } .ip-confirm-bar b { font-size: 3.6cqw; }
.ip-ok { font-weight: 700; }
.ip-confirm-app { background: #fff; border-radius: 3.2cqw; padding: 4cqw; }
.ip-confirm-app img { width: 15cqw; height: 15cqw; border-radius: 3.4cqw; }
.ip-home { background: #1c1c1e; opacity: 0; z-index: 4; padding: 18cqw 7cqw 0; }
.ip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6cqw 5cqw; }
.ip-grid i { aspect-ratio: 1; border-radius: 3.6cqw; background: rgba(255,255,255,.16); }
.ip-gymeal { display: grid; justify-items: center; gap: 1.2cqw; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1) .35s; }
.ip-gymeal img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 3.6cqw; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.ip-gymeal em { font-style: normal; font-size: 2.9cqw; color: #fff; font-weight: 500; }
/* doigt */
.ip-tap { position: absolute; z-index: 6; width: 11cqw; height: 11cqw; margin: -5.5cqw 0 0 -5.5cqw; border-radius: 50%; background: rgba(43,255,136,.45); border: 2px solid #111111; opacity: 0; pointer-events: none; }
.ip-tap.on { animation: ipTap .7s ease-out; }
@keyframes ipTap { 0% { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.3); } }
/* états */
.ip-screen[data-step="2"] .ip-sheet, .ip-screen[data-step="3"] .ip-sheet { transform: translateY(0); }
.ip-screen[data-step="3"] .ip-add { background: #d5ffe7; }
.ip-screen[data-step="3"] .ip-confirm, .ip-screen[data-step="4"] .ip-confirm { transform: translateY(0); }
.ip-screen[data-step="4"] .ip-home { opacity: 1; }
.ip-screen[data-step="4"] .ip-gymeal { transform: scale(1); }
.install-steps li { transition: background .3s, box-shadow .3s; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; }
.install-steps .num { margin: 0; grid-row: span 2; }
.install-steps p { margin: 0; }
.install-steps li.on { opacity: 1; background: #fff; box-shadow: inset 0 0 0 2px var(--text); }
@media (min-width: 820px) {
  .install-demo { grid-template-columns: 300px 1fr; gap: 48px; max-width: 860px; margin: 0 auto 36px; }
  .install-phone { width: 300px; }
  .install.install-steps { grid-template-columns: 1fr; margin: 0; gap: 12px; }
  .install.install-steps li { padding: 18px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ip-safari, .ip-sheet, .ip-confirm, .ip-home, .ip-gymeal { transition: none; } .ip-tap.on { animation: none; } }

/* Body Scan : balayage animé (barre qui descend, points de mesure) */
.scan-screen { background: #111114; /* même hauteur qu'un écran à capture : barre d'état + image 390×844 (largeur utile 93,2cqw) */ aspect-ratio: auto; height: calc(12.2cqw + 93.2cqw * 844 / 390); }
.scan-screen .phone-status { color: #fff; position: absolute; left: 0; right: 0; top: 0; z-index: 3; }
.scan-screen .phone-status .st { fill: #fff; color: #fff; }
.scan-cam { position: absolute; inset: 12cqw 5cqw 6cqw; }
.scan-cam .c { position: absolute; width: 10cqw; height: 10cqw; border: 1.2cqw solid var(--accent); }
.scan-cam .tl { left: 0; top: 0; border-right: 0; border-bottom: 0;  }
.scan-cam .tr { right: 0; top: 0; border-left: 0; border-bottom: 0;  }
.scan-cam .bl { left: 0; bottom: 0; border-right: 0; border-top: 0;  }
.scan-cam .br { right: 0; bottom: 0; border-left: 0; border-top: 0;  }
.scan-label { position: absolute; left: 50%; top: 3cqw; transform: translateX(-50%); font: 700 3.4cqw/1 var(--font); color: rgba(255,255,255,.75); letter-spacing: .12em; text-transform: uppercase; }
.scan-body { position: absolute; left: 50%; top: 10cqw; bottom: 12cqw; aspect-ratio: 448 / 1200; transform: translateX(-50%); }
.scan-body img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(80, 180, 255, .35)); }
.scan-bar { position: absolute; left: -30%; right: -30%; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px 3px rgba(43,255,136,.75); animation: scanBar 4.4s cubic-bezier(.45,0,.55,1) infinite; }
.scan-bar::before { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 16cqw; background: linear-gradient(rgba(43,255,136,0), rgba(43,255,136,.28)); }
@keyframes scanBar { 0% { top: -2%; opacity: 0; } 5% { opacity: 1; } 62% { top: 100%; opacity: 1; } 68%, 100% { top: 100%; opacity: 0; } }
.lm { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: 2.6cqw; height: 2.6cqw; margin: -1.3cqw 0 0 -1.3cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1cqw rgba(43,255,136,.55); opacity: 0; }
/* chaque paire de points s'allume quand la barre passe à sa hauteur, puis tout s'éteint en fin de boucle */
.lm1 { animation: lm1 4.4s infinite; } .lm2 { animation: lm2 4.4s infinite; } .lm3 { animation: lm3 4.4s infinite; } .lm4 { animation: lm4 4.4s infinite; }
@keyframes lm1 { 0%, 13% { opacity: 0; transform: scale(.3); } 16% { opacity: 1; transform: scale(1.4); } 19%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes lm2 { 0%, 26% { opacity: 0; transform: scale(.3); } 29% { opacity: 1; transform: scale(1.4); } 32%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes lm3 { 0%, 31% { opacity: 0; transform: scale(.3); } 34% { opacity: 1; transform: scale(1.4); } 37%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes lm4 { 0%, 45% { opacity: 0; transform: scale(.3); } 48% { opacity: 1; transform: scale(1.4); } 51%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.scan-pill { position: absolute; left: 50%; bottom: 2cqw; transform: translateX(-50%); white-space: nowrap; padding: 2cqw 4cqw; background: var(--accent); color: var(--accent-ink); font: 700 3.4cqw/1 var(--font); opacity: 0; animation: scanPill 4.4s infinite; }
@keyframes scanPill { 0%, 64% { opacity: 0; transform: translate(-50%, 2cqw); } 70%, 92% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scan-bar, .scan-pill { animation: none; opacity: 0; }
  .lm { animation: none !important; opacity: 1; }
}

/* Étape 1 : bouton d'ouverture + QR code (le QR n'a de sens que sur ordinateur) */
.install-open { grid-column: 2; display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.install-open .btn { min-height: 44px; }
.install-qr { display: none; align-items: center; gap: 10px; }
.install-qr img { width: 88px; height: 88px; background: #fff; padding: 4px; box-shadow: 0 0 0 1px var(--line); }
.install-qr em { font-style: normal; font-size: 13px; color: var(--text-2); max-width: 130px; line-height: 1.3; }
@media (hover: hover) and (min-width: 820px) { .install-qr { display: flex; } }
.install-steps li > .num { transition: background-color .3s; }
/* Étape inactive : pastille grise, texte lisible (contraste ≥ 4,5:1) */
.install-steps li:not(.on) > .num { background: var(--bg-sunken); }

.os-tabs { display: inline-flex; margin-top: 20px; padding: 0; gap: 8px; border-bottom: 1px solid var(--line); }
.os-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; font: inherit; font-weight: 500; color: var(--text-2); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; margin-bottom: -1px; transition: box-shadow .2s, color .2s; }
.os-tabs button:hover { color: var(--text); }
.os-tabs button svg { width: 18px; height: 18px; }
.os-tabs button[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
[data-panel][hidden] { display: none !important; }

/* Démo Android (Chrome) */
.ia-status .ia-cam { position: absolute; left: 50%; top: 3.6cqw; transform: translateX(-50%); width: 4.2cqw; height: 4.2cqw; border-radius: 50%; background: #000; }
.ia-chrome { position: absolute; inset: 0; background: #fff; }
.ia-bar { position: absolute; left: 0; right: 0; top: 12.2cqw; height: 13cqw; display: flex; align-items: center; gap: 2cqw; padding: 0 3cqw; background: #fff; border-bottom: 1px solid #e3e3e8; z-index: 2; }
.ia-url { flex: 1; display: flex; align-items: center; gap: 1.5cqw; background: #f1f3f4; border-radius: 99px; padding: 2.4cqw 3.4cqw; font: 500 3.3cqw/1 var(--font); color: #202124; white-space: nowrap; overflow: hidden; }
.ia-dots { width: 6cqw; height: 6cqw; color: #5f6368; flex: none; }
.ia-chrome img { position: absolute; inset: 25.2cqw 0 auto 0; width: 100%; height: auto; }
.ia-menu { position: absolute; top: 14cqw; right: 2cqw; width: 64%; z-index: 3; background: #fff; border-radius: 3cqw; box-shadow: 0 8px 28px rgba(0,0,0,.22); transform-origin: top right; transform: scale(.6); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.ia-menu ul { list-style: none; margin: 0; padding: 2cqw 0; }
.ia-menu li { display: flex; align-items: center; gap: 2.5cqw; padding: 3cqw 4.5cqw; font-size: 3.7cqw; color: #202124; }
.ia-menu li svg { width: 5cqw; height: 5cqw; color: #1a73e8; }
.ia-install { font-weight: 700; transition: background .3s; }
.ia-dialog { position: absolute; inset: 0; z-index: 4; background: rgba(0,0,0,.4); display: grid; place-items: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.ia-dlg { width: 82%; background: #fff; border-radius: 6cqw; padding: 6cqw 5.5cqw 4cqw; transform: scale(.9); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.ia-dlg > b { display: block; font-size: 4.8cqw; margin-bottom: 4.5cqw; color: #202124; }
.ia-dlg-app { display: flex; gap: 3cqw; align-items: center; }
.ia-dlg-app img { width: 12cqw; height: 12cqw; border-radius: 50%; }
.ia-dlg-app b { display: block; font-size: 4cqw; color: #202124; }
.ia-dlg-app span { font-size: 3cqw; color: #5f6368; }
.ia-btns { display: flex; justify-content: flex-end; gap: 6cqw; margin-top: 6cqw; font-size: 3.8cqw; font-weight: 700; color: #1a73e8; }
.ia-home { background: linear-gradient(170deg, #cfe3ff, #6b9bf2 55%, #3a64c8); }
.ia-home .ip-grid i, .ia-home .ip-gymeal img { border-radius: 50%; }
.ia-screen[data-step="2"] .ia-menu { transform: scale(1); opacity: 1; }
.ia-screen[data-step="2"] .ia-install { background: #e8f0fe; }
.ia-screen[data-step="3"] .ia-dialog, .ia-screen[data-step="4"] .ia-dialog { opacity: 1; }
.ia-screen[data-step="3"] .ia-dlg { transform: scale(1); }
.ia-screen[data-step="4"] .ia-dialog { opacity: 0; }

/* Autre : QR code et cas particuliers */
.install-other { display: grid; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); padding: 28px; }
.io-qr { justify-self: center; background: #fff; padding: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.io-qr img { display: block; width: 200px; height: 200px; }
.io-text h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.io-text p { margin: 0 0 14px; }
.io-text ul { margin: 0 0 18px; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }
.io-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 820px) { .install-other { grid-template-columns: 240px 1fr; padding: 36px; } }
@media (prefers-reduced-motion: reduce) { .ia-menu, .ia-dialog, .ia-dlg { transition: none; } }
.phone-samsung .phone-status { padding: 1.4cqw 5.5cqw 0 6.5cqw; font-size: 3.9cqw; }

/* Navigateur intégré (Instagram, Facebook…) : bandeau pour passer dans Safari / Chrome */
.inapp { position: relative; z-index: 2; margin: 12px 16px 0; padding: 16px; border-radius: var(--radius); background: var(--surface); color: var(--text); border-left: 4px solid var(--accent); display: grid; gap: 12px; }
.inapp p { margin: 0; font-size: 16px; line-height: 1.45; }
.inapp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inapp-actions .btn { min-height: 44px; font-size: 13px; padding: 0 16px; }
.inapp-url { font: 700 15px/1.3 ui-monospace, Menlo, monospace; word-break: break-all; user-select: all; -webkit-user-select: all; }
/* Libellés en majuscules espacées : un bouton long revient à la ligne plutôt que de déborder sur mobile */
.btn { max-width: 100%; }
@media (max-width: 519px) { .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; } }
.install-other > * { min-width: 0; }
/* Écran d'accueil sombre de la démo : barre d'état en blanc */
.ip-screen > .phone-status { transition: color .4s; }
.ip-screen:not(.ia-screen)[data-step="4"] > .phone-status { color: #fff; }
.ip-screen:not(.ia-screen)[data-step="4"] > .phone-status .st { fill: #fff; color: #fff; }
