/* ScreenPair — accueil : scènes animées (A le bureau s'agrandit, B quel écran, D confidentialité, E gratuit ou Pro)
   et sections. Géométrie des scènes en « unités » (1 u = 1 px dans le décor à l'échelle 1) ; la caméra
   (scenes-home.js) met tout le décor à l'échelle de l'écran. Sans JavaScript ou en mouvement réduit : pistes à
   hauteur naturelle, décors masqués, images fixes pré-rendues (_build/frames.mjs) et légendes dans le flux. */

/* ================================================================== Scènes : structure commune */
.scene { position: relative; }
.js:not(.rm) .scene { height: calc(var(--track) * 1vh); }
@supports (height: 1svh) { .js:not(.rm) .scene { height: calc(var(--track) * 1svh); } }
.sticky { position: relative; }
.js:not(.rm) .scene > .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; contain: layout paint; }
@supports (overflow: clip) { .js:not(.rm) .scene > .sticky { overflow: clip; } }
.cam { position: absolute; inset: 0; pointer-events: none; display: none; }
.js:not(.rm) .cam { display: block; }
.js:not(.rm) .scene:not(.ready) .cam { visibility: hidden; }
.rig { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rig * { pointer-events: none; }
/* Images fixes : rendues par <noscript> sans JavaScript, recopiées dans .rm-slot en mouvement réduit
   (motion.js) ; jamais téléchargées quand les scènes tournent. */
.rm-stills, .rm-grid { display: grid; }
.js:not(.rm) .rm-slot { display: none; }
.sr-story { display: none; }
.js:not(.rm) .sr-story { display: block; }
.frame .scene-a *, .frame .scene-a *::before { animation-duration: 0s !important; animation-delay: 0s !important; }
.frame .lockup, .frame .steps-ui, .frame .scrim, .frame .gsweep, .frame .lnav, .frame .gnav, .frame .skip-anim { visibility: hidden !important; }
.frame .caps, .frame .caps-b, .frame .dotnav { display: none !important; }

/* Éléments promus pendant que la zone collante de leur scène est à l'écran (et seulement alors) : les grands calques
   qui bougent à chaque image. Les petits éléments sont composés à la demande (translate3d). */
.live .rig, .live .pad-flight, .live .w-drag, .live .app-layer, .live .app-in, .live .lockup, .live .host, .live .rx { will-change: transform, opacity; }

/* ============================================================== A. Le bureau s'agrandit */
.scene-a { background: #000; }
.skip-anim { position: absolute; left: 16px; top: calc(var(--gnav-h) + var(--lnav-h) + 12px); z-index: 20; padding: 8px 14px; border-radius: 980px; background: #f5f5f7; color: #1d1d1f; font-size: 14px; font-weight: 600; transform: translateY(-200%); opacity: 0; }
.skip-anim:focus { transform: none; opacity: 1; text-decoration: none; }

/* --- Bloc d'accueil (titre, texte, boutons) */
.lockup { position: relative; z-index: 3; width: min(var(--grid), 87.5%); margin-inline: auto; padding-top: calc(var(--gnav-h) + var(--lnav-h) + clamp(28px, 4.4vh, 48px)); text-align: center; }
.hero-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 980px; background: #1d1d1f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #f5f5f7; font-size: 14px; letter-spacing: -.016em; }
.hero-chip:hover { text-decoration: none; background: #2a2a2d; }
.hero-chip svg { width: 12px; height: 12px; color: #2997ff; stroke-width: 3; }
.lockup .hero-chip { margin-bottom: clamp(14px, 2.6vh, 26px); }
.lockup .t-hero { margin: 0; }
.t-hero .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.t-hero .ln > span { display: inline-block; }
.hero-lede { margin: clamp(18px, 2.6vh, 26px) auto 0; max-width: 760px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: clamp(22px, 3.2vh, 32px); }
.hero-ctas .link-arrow { font-size: 17px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px; margin-top: 16px; }
.hero-meta p { margin: 0; font-size: 14px; line-height: 1.43; color: #86868b; }
.hero-meta .seal { color: #f5f5f7; }
/* Chorégraphie du chargement (au temps, une fois ; rien en mouvement réduit ni sans JavaScript). */
@keyframes sp-line { from { transform: translateY(105%); } to { transform: none; } }
@keyframes sp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js:not(.rm) .t-hero .ln > span { animation: sp-line 1.2s var(--e-out) both; }
.js:not(.rm) .t-hero .ln2 > span { animation-delay: .12s; }
.js:not(.rm) .lockup .hl { animation: sp-rise .9s var(--e-apple) var(--d, 0s) both; }

/* --- Décor : large (2040 × 1040 u) */
.rig-a { width: 2040px; height: 1040px; }
.spill { position: absolute; left: -50px; top: 795px; width: 1500px; height: 220px; background: radial-gradient(closest-side, rgba(70, 110, 190, .16), transparent); opacity: 0; }
.shadow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.sh-mac { left: -50px; top: 870px; width: 1500px; height: 60px; }
.sh-pad { left: 1360px; top: 886px; width: 640px; height: 40px; opacity: 0; }
.ripples i { position: absolute; left: -50px; top: 813px; width: 1500px; height: 170px; border-radius: 50%; box-shadow: inset 0 0 0 3.5px rgba(150, 190, 255, .8), 0 0 28px rgba(41, 151, 255, .22), inset 0 0 22px rgba(41, 151, 255, .18); opacity: 0; transform: scale(.05); }
.beam { position: absolute; left: 0; top: 0; overflow: visible; }
.beam path { fill: none; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.beam-w path { stroke: url(#bg-w); }
.beam-c path { stroke: url(#bg-c); }
.beam .b0 { stroke-width: 14; opacity: .08; }
.beam .b1 { stroke-width: 6; opacity: .18; }
.beam .b2 { stroke-width: 1.6; }
.beam .pulses, .beam .pulses-still { opacity: 0; }
.beam-c { display: none; }
.pin { position: absolute; left: 1168px; top: 946px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px #2997ff, 0 0 0 6px rgba(0, 0, 0, .8); color: #f5f5f7; transform: scale(.3); opacity: 0; }
.pin svg { width: 20px; height: 20px; }
.pin-label { position: absolute; left: 890px; top: 1004px; width: 600px; margin: 0; text-align: center; font: 500 22px/1.2 var(--font); color: #86868b; letter-spacing: 0; opacity: 0; white-space: nowrap; }
.d-mac { position: absolute; left: 36px; top: 56px; width: 1328px; }
.pad-flight { position: absolute; left: 1356px; top: 40px; width: 648px; height: 864px; opacity: 0; transform-origin: 50% 50%; }
.pad-flight .d-pad { width: 100%; }
.pad-glint { position: absolute; inset: 0; border-radius: 46px; overflow: hidden; pointer-events: none; }
.pad-glint i { position: absolute; inset: -10% -60%; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .10) 45%, transparent 60%); opacity: 0; }

/* Contenu des écrans : un seul bureau en coordonnées partagées, recopié dans chaque écran (coupé par son cadre). */
.desk { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.desk-mac { transform: translate(-100px, -72px); }
.desk-pad { transform: translate(-1380px, -64px); }
.desk .pano { position: absolute; left: 100px; top: 64px; width: 2160px; height: 808px; }
.desk .pano picture, .wall picture, .cap-pair picture, .cap-ready picture { width: 100%; height: 100%; }
.desk .pano img { width: 100%; height: 100%; object-fit: cover; }
.desk-mac .pano { transform-origin: 50% 0; }
/* Fenêtres et pointeur : un calque coupé sous la barre des menus de chaque écran (une fenêtre ne passe jamais
   sous la barre). Le bureau des fenêtres est virtuel, comme dans macOS : le bord droit de l'écran du Mac (1300 u)
   est le bord gauche de la tablette, sans l'écart physique entre les deux appareils ; une fenêtre à cheval est donc
   continue d'un écran à l'autre. Le fond d'écran, lui, reste continu dans l'espace réel (.desk ci-dessus). */
.wins { position: absolute; left: 0; right: 0; bottom: 0; top: 22px; overflow: hidden; z-index: 1; }
.wins .desk-mac { transform: translate(-100px, -94px); }
.wins .desk-pad { transform: translate(-1300px, -86px); }
.win { position: absolute; left: 0; top: 0; }
.win-in { position: relative; border-radius: 5.2px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 .5px rgba(255, 255, 255, .14); }
.win img { width: 100%; height: auto; }
/* Une seule fenêtre de document (« Utiliser l’iPad comme écran. », capture réelle), glissée du Mac vers la
   tablette, et la fenêtre de l’app ScreenPair : le fond d’écran reste visible entre les deux. */
.w-drag { left: 250px; top: 150px; width: 480px; transform-origin: 240px 8px; }
.w-app { left: 830px; top: 100px; width: 440px; }
.w-drag { z-index: 2; } .w-app { z-index: 3; transform-origin: 50% 40%; } .w-drag.front { z-index: 4; } .cursor { z-index: 6; }
.w-drag .twin { position: absolute; inset: 0; opacity: 0; }
.w-drag .twin img { height: 100%; }
.win-lift { position: absolute; inset: 0; border-radius: 5.2px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55); opacity: 0; }
.w-app .win-in { overflow: hidden; border-radius: 10px; background: #1e1e1e; }
.tbar { position: relative; height: 24px; background: linear-gradient(90deg, #232d3e, #25243a); }
.tbar i { position: absolute; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.tbar.tl { background: #ebedf1; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .07); }
.tbar i:nth-child(1) { left: 12px; } .tbar i:nth-child(2) { left: 32px; background: #febc2e; } .tbar i:nth-child(3) { left: 52px; background: #28c840; }
.shot-box { position: relative; }
.ring { position: absolute; overflow: visible; fill: none; stroke: #2997ff; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.ring-mac { left: 51.2%; top: 16%; width: 44.5%; height: 34.9%; stroke-width: 7; }
.ring-pad { inset: 0; width: 100%; height: 100%; stroke-width: 8; }
.cursor { position: absolute; left: 0; top: 0; width: 18px; height: 26px; overflow: visible; fill: #000; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }
.menubar { height: 22px; font-size: 11px; z-index: 2; }
.d-pad .menubar { padding-left: 1.8em; }
.scr-sheen { position: absolute; inset: 0; overflow: hidden; z-index: 4; pointer-events: none; }
.scr-sheen::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .10) 50%, transparent 60%); transform: translateX(-60%); opacity: 0; }
.scr-cover { position: absolute; inset: 0; z-index: 5; background: #000; }
.app-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; }
.app-in { position: absolute; inset: 0; }
.cap-pair, .cap-ready { position: absolute; inset: 0; }
.cap-pair img, .cap-ready img { width: 100%; height: 100%; object-fit: cover; }
.app-band { position: absolute; top: 0; bottom: 0; left: 0; width: 140px; margin-left: -70px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55) 50%, transparent); opacity: 0; z-index: 6; }
/* Allumage de la tablette : le noir s'efface (opacité), un voile clair, large et flou traverse la vitre. */
.off-band { position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35) 50%, transparent); opacity: 0; z-index: 6; transform: translate3d(-100%, 0, 0); }
.scr-off { position: absolute; inset: 0; z-index: 5; background: #000; }
.scr-flash { position: absolute; inset: 0; z-index: 7; background: #fff; opacity: 0; }
.scr-glass { position: absolute; inset: 0; z-index: 8; background: linear-gradient(115deg, rgba(255, 255, 255, .06), transparent 38%); pointer-events: none; }
/* Allumage de l'écran du Mac au chargement (une fois que le fond d'écran est décodé : .lit). */
@keyframes sp-off { from { opacity: 1; } to { opacity: 0; } }
@keyframes sp-on { from { opacity: 0; } to { opacity: 1; } }
@keyframes sp-settle { from { transform: scale(1.04); } to { transform: none; } }
@keyframes sp-win { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sp-sheen { 0% { transform: translateX(-60%); opacity: 1; } 100% { transform: translateX(230%); opacity: 1; } }
.scene-a .d-mac .scr-cover { opacity: 1; }
.scene-a.lit .d-mac .scr-cover { animation: sp-off .7s var(--e-apple) .05s both; }
.scene-a.lit .spill { animation: sp-on .9s var(--e-apple) .05s both; }
.scene-a.lit .desk-mac .pano { animation: sp-settle 1.4s var(--e-out) both; }
.scene-a.lit .desk-mac .win-in { animation: sp-win .9s var(--e-out) var(--wd, .2s) both; }
.scene-a.lit .desk-mac .w-drag .win-in { --wd: .32s; }
.scene-a.lit .desk-mac .w-app .win-in { --wd: .44s; }
.scene-a.lit .d-mac .scr-sheen::before { animation: sp-sheen .8s var(--e-io) 1.1s both; }
html:not(.js) .scene-a .scr-cover, .rm .scene-a .scr-cover { opacity: 0; }

/* Légendes, barre de progression, indication de défilement */
.scrim { position: absolute; left: 0; right: 0; bottom: 0; height: calc(24vh + 72px); height: calc(24svh + 72px); z-index: 2; pointer-events: none; background: linear-gradient(to top, #000 0, #000 calc(100% - 72px), rgba(0, 0, 0, 0) 100%); opacity: 0; }
.caps { position: absolute; left: 0; right: 0; bottom: 0; height: 24vh; height: 24svh; z-index: 4; pointer-events: none; }
.cap { position: absolute; left: 0; right: 0; top: 28px; width: min(880px, 87.5%); margin: 0 auto; text-align: center; opacity: 0; }
.cap .t-caption, .capb p { text-wrap: balance; }
.caps .t-caption { font-size: clamp(22px, 2.3vw, 34px); }
.cap .tone { color: #86868b; }
.cap .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.chip-br { display: none; }
/* Téléphone : quatre pastilles en deux rangées égales. */
.compact .cap-end { width: min(880px, 94%); }
.compact .cap .chips { gap: 8px 6px; }
.compact .cap .chip { padding: 6px clamp(10px, 3.1vw, 14px); font-size: clamp(11px, 3.35vw, 13px); }
@media (max-width: 759px) { .compact .cap .chip-br { display: block; flex: 0 0 100%; height: 0; } }
.cap .chip { opacity: 0; transform: scale(.9) translateY(6px); transition: opacity .5s var(--e-out), transform .5s var(--e-out); transition-delay: calc(var(--i, 0) * 80ms); }
.cap.on .chip { opacity: 1; transform: none; }
.steps-ui { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; justify-content: center; gap: 20px; pointer-events: none; opacity: 0; }
.st { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 13px/1.23 var(--font); color: #a1a1a6; letter-spacing: -.01em; white-space: nowrap; transition: color .3s var(--e-nav); }
.st i { position: relative; display: block; width: 72px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.st b { position: absolute; inset: 0; background: #f5f5f7; transform-origin: 0 50%; transform: scaleX(0); }
.st.on { color: #f5f5f7; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; transform: translateX(-50%); font-size: 12px; color: #d2d2d7; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); pointer-events: none; }
.scroll-hint svg { width: 16px; height: 16px; }
@keyframes sp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.js:not(.rm) .scroll-hint svg { animation: sp-bob 1.8s var(--e-io) infinite; }
html:not(.js) .scroll-hint, .rm .scroll-hint { display: none; }
/* Balayage de lumière final : un reflet par vitre, dans l'écran de chaque appareil (coupé par l'écran et ses coins
   arrondis), jamais sur le fond noir. scenes-home.js le fait traverser les écrans comme une seule bande continue. */
.gsweep { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; }
.gsweep i { position: absolute; top: -12%; bottom: -12%; left: 0; width: 300px; margin-left: -150px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, .16) 58%, rgba(255, 255, 255, 0)); opacity: 0; transform: translate3d(-400px, 0, 0) skewX(-18deg); }
.lite .gsweep, .lite .ripples, .lite .beam .pulses, .lite .w-drag .twin { display: none; }

/* --- Décor : compact (1000 × 1400 u, Mac en haut, tablette en dessous) */
.compact .rig-a { width: 1000px; height: 1400px; }
.compact .spill { left: 0; top: 600px; width: 1000px; height: 180px; }
.compact .sh-mac { left: 0; top: 660px; width: 1000px; height: 44px; }
.compact .sh-pad { left: 300px; top: 1378px; width: 540px; height: 36px; }
.compact .ripples i { left: 50px; top: 624px; width: 900px; height: 120px; }
.compact .beam-w { display: none; }
.compact .beam-c { display: block; }
/* Lien du téléphone : l'arc passe dans l'espace libre à gauche de la tablette, le cadenas au milieu de cet espace. */
.compact .pin { left: 136px; top: 841px; }
.compact .pin-label { display: none; }
.compact .rig-a .d-mac { left: -9px; top: 36px; width: 1018px; }
.compact .rig-a .pad-flight { left: 310.8px; top: 700.8px; width: 518.4px; height: 691.2px; }
.compact .pad-glint { border-radius: 36.8px; }
.compact .rig-a .desk-mac { transform: translate(-40px, -48px); }
.compact .rig-a .desk-pad { transform: translate(-330px, -720px); }
/* Téléphone : la tablette est sous le Mac ; le bord bas de l'écran du Mac (646 u) est le bord haut de la tablette.
   La fenêtre entre donc par le haut de la tablette : elle y passe sous la barre des menus translucide (rien n'est
   perdu à la jonction), et se pose en dessous. */
.compact .rig-a .wins { top: 17px; }
.compact .rig-a .wins .desk-mac { transform: translate(-40px, -65px); }
.compact .rig-a .d-pad .wins { top: 0; }
.compact .rig-a .wins .desk-pad { transform: translate(-330px, -646.2px); }
.compact .rig-a .desk .pano { left: 40px; top: 48px; width: 920px; height: 1312px; }
.compact .rig-a .w-drag { left: 150px; top: 110px; width: 368px; transform-origin: 184px 6px; }
.compact .rig-a .w-app { left: 600px; top: 74px; width: 337px; }
.compact .rig-a .win-in, .compact .rig-a .win-lift { border-radius: 4px; }
.compact .rig-a .w-app .win-in { border-radius: 8px; }
.compact .rig-a .tbar { height: 18px; }
.compact .rig-a .tbar i { top: 4.5px; width: 9px; height: 9px; }
.compact .rig-a .tbar i:nth-child(1) { left: 9px; } .compact .rig-a .tbar i:nth-child(2) { left: 24px; } .compact .rig-a .tbar i:nth-child(3) { left: 39px; }
.compact .rig-a .menubar { height: 17px; font-size: 8.5px; }
.compact .rig-a .cursor { width: 14px; height: 20px; }
.compact .app-band { width: 110px; margin-left: -55px; }
.compact .caps { height: max(24svh, 200px); }
.compact .cap { top: 8px; }
/* Téléphone : la légende (trois lignes) est entièrement sur du noir ; le fondu se fait au-dessus d'elle. */
.compact .scrim { height: calc(max(24svh, 200px) + 104px); background: linear-gradient(to top, #000 0, #000 calc(100% - 104px), rgba(0, 0, 0, 0) 100%); }
.compact .steps-ui { bottom: 14px; gap: 10px; }
.compact .st { font-size: 0; gap: 0; }
.compact .st i { width: 56px; }
.compact .scroll-hint { bottom: 18px; }

/* --- Sans JavaScript / mouvement réduit : images fixes et légendes dans le flux */
.rm-stills { gap: clamp(56px, 7vw, 96px); padding: clamp(48px, 6vw, 80px) 0 var(--pad-y); }
.still { margin: 0; }
.still picture { border-radius: var(--r-tile); overflow: hidden; background: #000; }
/* Images fixes et image finale : toujours à la largeur de leur cadre (la variante large ou compacte porte ses
   propres dimensions, build.mjs), donc aucune bande grise et aucun décalage au chargement. */
.still img, .endframe img, .rm-grid img { display: block; width: 100%; height: auto; }
.still figcaption { display: grid; gap: 24px; margin-top: 32px; width: min(var(--grid), 100%); margin-inline: auto; text-align: center; }
.still .t-caption { margin: 0; }
.still .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
html:not(.js) .scene-a .lockup, .rm .scene-a .lockup { padding-bottom: 24px; }
/* Barre d'étapes et légendes animées : sans objet sans JavaScript ni en mouvement réduit (rien ne déborde à 320 px). */
html:not(.js) .scene-a .steps-ui, .rm .scene-a .steps-ui { display: none; }

/* ================================================================ Manifeste (texte mot à mot) */
.manifesto { padding-block: clamp(120px, 14vw, 200px); }
.manifesto .scrub { max-width: 980px; margin: 0; }
.manifesto:focus { outline: none; }

/* ================================================================== B. Quel écran ? */
.ecrans { background: #000; padding-top: var(--pad-y); }
.ecrans-head { margin-bottom: 0; }
.scene-b .sticky { display: flex; flex-direction: column; }
.rig-b { width: 2200px; height: 1040px; }
.rig-b .d-mac, .rig-b .d-pc { position: absolute; left: 36px; top: 56px; width: 1328px; }
.rig-b .host, .rig-b .rx { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.rig-b .d-pad, .rig-b .d-and, .rig-b .d-disp, .rig-b .d-mac, .rig-b .d-pc { transform-origin: 50% 50%; }
.rig-b .rx-mac { z-index: 1; } .rig-b .rx-pad { z-index: 2; } .rig-b .rx-and { z-index: 3; }
.rig-b .rx-pad .d-pad { position: absolute; left: 1356px; top: 40px; width: 648px; }
.rig-b .rx-and .d-and { position: absolute; left: 1376px; top: 300px; width: 800px; }
.rig-b .rx-mac .d-disp { position: absolute; left: 1360px; top: 150px; width: 820px; }
.rig-b .sh-host { left: -50px; top: 870px; width: 1500px; height: 60px; }
.rig-b .sh-rx { left: 1360px; top: 886px; width: 640px; height: 40px; opacity: 0; }
.rig-b .desk { left: 0; top: 0; }
.rig-b .d-mac .desk { transform: translate(-100px, -72px); }
.rig-b .d-pad .desk { transform: translate(-1380px, -64px); }
.rig-b .d-and .desk { transform: translate(-1394px, -319px); }
.rig-b .d-disp .desk { transform: translate(-1376px, -166px); }
.rig-b .desk .pano { height: 830px; }
.rig-b .w-app { left: 830px; top: 100px; width: 440px; }
/* Sur chaque récepteur, du travail venu du Mac (bureau de jour, captures réelles) : la fenêtre d'aide glissée dans la
   scène A sur l'iPad et sur l'autre Mac, la fenêtre de bienvenue sur la tablette Android. */
.rig-b .d-pad .w-aide { left: 1446px; top: 138px; width: 468px; }
.rig-b .d-and .w-onb { left: 1574px; top: 384px; width: 430px; }
.rig-b .d-disp .w-aide { left: 1618px; top: 212px; width: 320px; }
.rig-b .win-in { overflow: hidden; border-radius: 9px; }
.rig-b .w-aide .win-in { border-radius: 5px; box-shadow: 0 22px 48px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .12); }
.rig-b .d-mac .menubar, .rig-b .d-pad .menubar, .rig-b .d-disp .menubar { height: 22px; font-size: 11px; }
.rig-b .d-and .menubar { height: 20px; font-size: 10px; }
/* Bureau du PC (état 4) : fond d'écran de jour continu dans l'espace réel ; la fenêtre de l'app Windows (capture
   réelle, barre de titre Windows) est à cheval sur le PC et la tablette, dans un bureau virtuel : le bord droit de
   l'écran du PC (x 1300) est le bord gauche de la tablette. La barre des tâches du PC passe au-dessus des fenêtres. */
.rig-b .d-pc .desk-pc { transform: translate(-100px, -72px); }
.rig-b .d-pad .lay-pc > .desk-pc { transform: translate(-1380px, -64px); }
.rig-b .desk-pc .pano { left: 100px; top: 64px; width: 2160px; height: 830px; }
.rig-b .desk-pc .pano img { object-position: 50% 28%; }
.wins-pc { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.rig-b .d-pad .wins-pc .desk-pc { transform: translate(-1300px, -64px); }
.rig-b .w-doc { left: 1150px; top: 150px; width: 520px; z-index: 2; }
.rig-b .w-doc .win-in { border-radius: 9px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .12); }
.rig-b .lay-mac, .rig-b .lay-pc { position: absolute; inset: 0; }
.rig-b .lay-pc { opacity: 0; }
.rig-b .host-pc { opacity: 0; visibility: hidden; }
.rig-b .rx-and, .rig-b .rx-mac { opacity: 0; visibility: hidden; }
.rig-b .wipe { position: absolute; inset: 0; z-index: 6; background: #000; transform: translate3d(101%, 0, 0); }
.rig-b .wipe span { position: absolute; top: 0; bottom: 0; left: 0; width: 80px; margin-left: -40px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85) 50%, transparent); opacity: 0; }
.rig-b .rx-and .wipe, .rig-b .rx-mac .wipe { transform: none; }
.beam-b { position: absolute; left: 0; top: 0; overflow: visible; }
.beam-b path { fill: none; stroke: url(#bg-b); stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.beam-b .arc-and, .beam-b .arc-disp { opacity: 0; }
.rig-b .pin-b { left: 1168px; top: 946px; transform: none; opacity: 1; }
.compact .beam-b, .compact .rig-b .pin-b, .compact .rig-b .sh-rx { display: none; }
.caps-b { position: absolute; left: 0; right: 0; bottom: 104px; z-index: 3; height: 150px; }
/* Boîte de légende de hauteur fixe, légendes alignées en bas : le texte change, la pastille ne bouge jamais. */
.capb { position: absolute; left: 0; right: 0; bottom: 0; width: min(720px, 87.5%); margin: 0 auto; text-align: center; opacity: 0; }
.capb h3 { margin: 0 0 8px; }
.capb h3 .tag { vertical-align: .35em; margin-left: 6px; }
.capb p { margin: 0 0 8px; color: #86868b; font-size: 17px; line-height: 1.47; }
.capb .link-arrow { font-size: 17px; pointer-events: auto; }
/* Légende éteinte : lisible par les lecteurs d'écran et atteignable au clavier (motion.js ramène la scène à
   son moment), mais jamais cliquable à travers la légende affichée. */
.capb:not(.on) .link-arrow { pointer-events: none; }
.dotnav { position: absolute; left: 50%; bottom: 28px; z-index: 5; display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 10px; border-radius: 28px; background: rgba(42, 42, 45, .72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); transform: translate(-50%, 86px); opacity: 0; visibility: hidden; transition: transform .6s var(--e-spring), opacity .3s var(--e-nav), visibility 0s linear .6s; }
.dotnav.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .6s var(--e-spring), opacity .3s var(--e-nav), visibility 0s; }
/* Sans JavaScript / mouvement réduit : la grille d'images fixes remplace la scène B ; pas de lien « Passer l'animation ». */
html:not(.js) .scene-b > .sticky, .rm .scene-b > .sticky, html:not(.js) .skip-anim, .rm .skip-anim { display: none; }
.dotnav button { position: relative; height: 36px; padding: 0 16px; border: 0; border-radius: 18px; background: none; color: #a1a1a6; font: 600 14px/1 var(--font); letter-spacing: -.016em; cursor: pointer; transition: color .24s var(--e-nav); }
.dotnav button[aria-current="step"] { color: #f5f5f7; }
.dotnav button::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 1px; background: #f5f5f7; transform-origin: 0 50%; transform: scaleX(var(--fill, 0)); }
.dotnav button:focus-visible { outline-offset: 0; }
.ecrans-note { padding: 32px 0 var(--pad-y); margin-inline: auto; }
.rm-grid { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); padding: 56px 0 0; }
.rm-grid .tile { margin: 0; --tile: #161617; }
.rm-grid picture { border-radius: 18px; overflow: hidden; margin-bottom: 24px; background: #0b0b0c; }
.rm-grid figcaption p { color: #86868b; margin: 10px 0; }
/* compact : appareil hôte en haut, récepteur dessous (les enveloppes .host / .rx mettent chaque appareil à l'échelle) */
.compact .rig-b { width: 1000px; height: 1300px; }
.compact .rig-b .sh-host { left: 0; top: 600px; width: 1000px; height: 40px; }
.compact .rig-b .host { transform: translate(15.06px, -8.8px) scale(.69277); }
/* La tablette est à la même échelle que l'ordinateur (.69277) : le bureau du PC continue sur elle (état 4). */
.compact .rig-b .rx-pad { transform: translate(-663.9px, 612.3px) scale(.69277); }
.compact .rig-b .desk-pc .pano { left: 100px; top: 72px; width: 1200px; height: 1711px; }
.compact .rig-b .desk-pc .pano img { object-position: 50% 50%; }
.compact .rig-b .d-pad .lay-pc > .desk-pc { transform: translate(-399.9px, -960.5px); }
/* Téléphone : la tablette est sous le PC ; le bord bas de l'écran du PC (y 828) est le bord haut de la tablette. */
.compact .rig-b .d-pad .wins-pc .desk-pc { transform: translate(-399.9px, -828px); }
.compact .rig-b .w-doc { left: 470px; top: 690px; width: 480px; }
.compact .rig-b .rx-and { transform: translate(-1231.6px, 467.5px) scale(.975); }
.compact .rig-b .rx-mac { transform: translate(-924.6px, 559.3px) scale(.80488); }
.compact .caps-b { bottom: 92px; height: 200px; }
.compact .capb p { font-size: 15px; line-height: 1.4; }
.compact .dotnav { bottom: 18px; height: 48px; }
.compact .dotnav button { padding: 0 12px; font-size: 13px; }

/* ================================================================== Connexion */
.connexion .sec-head { max-width: 760px; }
.link-tile { --tile: #fff; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.link-tile > * + * { margin-top: 0; }
.link-tile .glyph { width: 72px; height: 72px; color: #1d1d1f; margin: 0 0 clamp(40px, 5vw, 72px) -4px; }
.link-tile p { color: #6e6e73; margin: 0; }
.js:not(.rm) .link-tile .glyph { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--e-out) calc(var(--i, 0) * 150ms + .2s); }
.js:not(.rm) .link-tile.in .glyph { stroke-dashoffset: 0; }
.links-note { margin-top: 24px; }

/* ===================================================== D. Vos pixels restent dans la pièce */
.confid { background: #000; }
.d-media { position: relative; height: 100%; }
html:not(.js) .d-media, .rm .d-media { height: auto; padding: var(--pad-y) 0; }
.d-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 0; }
.js:not(.rm) .d-clip { clip-path: inset(7% round 40px); }
.d-img { position: absolute; inset: 0; }
.d-img img { width: 100%; height: 100%; object-fit: cover; }
.js:not(.rm) .d-img { transform: scale(1.08); }
/* L'image se fond dans le noir en bas (pas de coupe nette quand la scène s'en va). */
.js:not(.rm) .d-clip { -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.d-scrim { position: absolute; inset: 0; background: #000; opacity: .3; }
.d-head { position: relative; z-index: 2; display: grid; place-items: center; text-align: center; padding-top: calc(var(--lnav-h) + clamp(48px, 16vh, 180px)); color: #f5f5f7; }
.d-head h2 { text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.d-lock { width: 40px; height: 40px; margin-top: 28px; fill: none; stroke: #f5f5f7; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js:not(.rm) .d-lock path, .js:not(.rm) .d-lock rect { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--e-out); }
.js:not(.rm) .scene-d.drawn .d-lock path, .js:not(.rm) .scene-d.drawn .d-lock rect { stroke-dashoffset: 0; }
.d-tiles { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); display: grid; gap: 20px; width: min(var(--media), 87.5%); margin: 0 auto; grid-template-columns: repeat(3, 1fr); }
.d-tile { padding: 28px 30px; border-radius: var(--r-tile); background: rgba(29, 29, 31, .9); color: #f5f5f7; opacity: 0; }
.d-tile h3 { font: 600 21px/1.19 var(--font-display); letter-spacing: .011em; margin-bottom: 10px; }
.d-tile p { margin: 0; font-size: 15px; line-height: 1.47; color: #a1a1a6; }
html:not(.js) .d-clip, .rm .d-clip { position: relative; height: clamp(320px, 50vw, 620px); width: min(var(--media), 87.5%); margin: 0 auto; border-radius: var(--r-tile); }
html:not(.js) .d-head, .rm .d-head { position: absolute; left: 0; right: 0; top: var(--pad-y); height: clamp(320px, 50vw, 620px); padding-top: 0; align-content: center; }
html:not(.js) .d-tiles, .rm .d-tiles { position: static; margin-top: 20px; }
html:not(.js) .d-tile, .rm .d-tile { opacity: 1; }
.confid-link { padding: 28px 0 var(--pad-y); text-align: center; font-size: 17px; }
@media (max-width: 899px) {
  .d-tiles { grid-template-columns: 1fr; gap: 10px; bottom: 20px; }
  .d-tile { padding: 18px 20px; }
  .d-tile h3 { font-size: 17px; margin-bottom: 4px; }
  .d-tile p { font-size: 13px; line-height: 1.38; }
  .d-head { padding-top: calc(var(--lnav-h) + 56px); }
}

/* ================================================================== Au travail (galerie) */
.metiers .sec-head { max-width: 820px; }
/* La première carte s'aligne sur la colonne du titre (grille de 980 px), comme sur apple.com. */
.gallery-track { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0 0 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: calc(50% - min(var(--grid), 87.5%) / 2); padding-inline: calc(50% - min(var(--grid), 87.5%) / 2); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline-offset: -2px; }
/* Tuiles image : en haut, l'installation qui va avec le métier (rendu réel des scènes de l'accueil, sur noir), le
   profil d'image conseillé posé sur l'image ; en dessous, le métier et l'usage. */
.gallery-item { position: relative; flex: 0 0 auto; width: min(372px, 82vw); display: flex; flex-direction: column; border-radius: var(--r-tile); background: #1d1d1f; overflow: hidden; scroll-snap-align: start; }
.g-media { aspect-ratio: 5 / 4; background: #000; }
.g-media picture, .g-media img { display: block; width: 100%; height: 100%; }
.g-media img { object-fit: cover; transition: transform .8s var(--e-out); }
@media (hover: hover) { .gallery-item:hover .g-media img { transform: scale(1.03); } }
.gallery-item h3 { margin: 24px 30px 8px; }
.gallery-item p { margin: 0 30px 32px; color: #a1a1a6; font-size: 17px; line-height: 1.47; }
.pill-profile { position: absolute; left: 18px; top: 18px; padding: 6px 12px; border-radius: 980px; background: rgba(42, 42, 45, .78); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); color: #f5f5f7; font-size: 12px; font-weight: 600; line-height: 1.33; }
/* Tuiles « profil » : gros plan sur le vrai sélecteur de l'app Mac (Auto · Texte · Fluide · Économie, segment actif
   centré), avec la phrase que l'app affiche à côté (StreamPlanner.summary). Aucune autre capture sous un métier. */
.g-prof { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 38%, #2f3349 0%, #1f2130 46%, #141416 100%); }
.pf-zoom { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 17%, #000 83%, transparent 100%); transition: transform .8s var(--e-out); }
@media (hover: hover) { .gallery-item:hover .pf-zoom { transform: scale(1.03); } }
.pf-ctl { --sw: 150px; position: absolute; left: 50%; top: 42%; display: flex; padding: 4px; border-radius: 14px; background: rgba(118, 118, 128, .24); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); transform: translate(calc(-4px - (var(--k) + .5) * var(--sw)), -50%); white-space: nowrap; }
.pf-ctl span { position: relative; display: grid; place-items: center; width: var(--sw); height: 54px; border-radius: 10px; color: rgba(245, 245, 247, .82); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.pf-ctl span + span::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(255, 255, 255, .16); }
.pf-ctl .on { background: #636366; color: #fff; font-weight: 600; box-shadow: 0 3px 8px rgba(0, 0, 0, .28), 0 0 40px rgba(120, 140, 255, .22); }
.pf-ctl .on::before, .pf-ctl .on + span::before { display: none; }
.pf-sum { position: absolute; left: 14%; right: 14%; top: calc(42% + 48px); color: #a1a1a6; font-size: 15px; line-height: 1.33; text-align: center; text-wrap: balance; }
@media (max-width: 499px) {
  .pf-zoom { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 4%, #000 27%, #000 73%, transparent 96%); mask-image: linear-gradient(90deg, transparent 0, transparent 4%, #000 27%, #000 73%, transparent 96%); }
  .pf-ctl { --sw: 124px; }
  .pf-ctl span { height: 48px; font-size: 19px; }
  .pf-sum { left: 12%; right: 12%; top: calc(42% + 42px); }
}
.paddles { display: flex; justify-content: flex-end; gap: 14px; margin-top: 28px; }
.metiers .paddles { width: min(var(--grid), 87.5%); }
.paddle { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #333336; color: #f5f5f7; cursor: pointer; transition: background-color .24s var(--e-nav), opacity .24s var(--e-nav); }
.paddle:hover { background: #424245; }
.paddle svg { width: 16px; height: 16px; stroke-width: 2.6; }
.paddle[data-gallery-prev] svg { transform: scaleX(-1); }
.paddle:disabled { opacity: .42; cursor: default; }

/* ============================================================== E. Gratuit ou Pro */
.qualite { background: #f5f5f7; padding-top: var(--pad-y); }
.qualite-head { margin-bottom: 40px; max-width: 820px; }
.scene-e .sticky { display: grid; align-items: center; }
.js:not(.rm) .scene-e .sticky { padding-top: var(--lnav-h); }
.e-stage { position: relative; }
.qualite-link { padding: 24px 0 var(--pad-y); font-size: 17px; }

/* Comparateur dans la scène E (le composant lui-même est dans site.css) */
.js:not(.rm) .scene-e .compare { aspect-ratio: auto; height: min(680px, calc(100svh - var(--lnav-h) - 210px)); }
@media (max-width: 699px) { .js:not(.rm) .scene-e .compare { height: min(420px, calc(100svh - var(--lnav-h) - 250px)); } }

/* ================================================================== Tarifs */
.tarifs .sec-head { margin-bottom: 56px; }
.plans { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan:not(.plan-pro) { padding-top: calc(clamp(28px, 3vw, 40px) + 36px); }
  .plan-for { min-height: 2.94em; }
}
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: var(--r-tile); background: #f5f5f7; overflow: hidden; }
.plan-tag { margin: 0; height: 22px; }
.plan-name { font: 600 28px/1.143 var(--font-display); letter-spacing: .007em; }
.plan-for { margin: 0; color: #6e6e73; font-size: 17px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.plan-price span { color: #6e6e73; font-size: 17px; }
.plan .checks { gap: 10px; font-size: 15px; margin: 4px 0 0; }
.plan-cta { margin-top: auto; padding-top: 18px; }
/* Petites lignes au-dessus du bouton : les boutons des trois offres sont tous en bas, alignés. */
.plan .fine { margin: auto 0 0; padding-top: 14px; }
.plan .fine + .plan-cta { margin-top: 0; padding-top: 14px; }
.plans-note { text-align: center; margin: 28px auto 0; max-width: 680px; }
.plan-sweep { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plan-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); transform: translateX(-120%) skewX(-18deg); opacity: 0; }
@keyframes sp-plan-sweep { 0% { transform: translateX(-120%) skewX(-18deg); opacity: .5; } 100% { transform: translateX(320%) skewX(-18deg); opacity: .5; } }
.js:not(.rm) .plan-pro.in .plan-sweep::before { animation: sp-plan-sweep 1.2s var(--e-io) 1.1s both; }

/* ================================================================== Questions */
.questions .t-section { margin-bottom: 40px; }
.faq-more { margin-top: 32px; font-size: 17px; }

/* ================================================================== Bande finale */
.final { background: #000; padding-bottom: clamp(48px, 6vw, 96px); }
.final .wrap { width: min(var(--media), 87.5%); }
.final .t-display-l { font-size: clamp(36px, 5.56vw, 80px); line-height: 1.05; letter-spacing: -.015em; }
.final-ctas { justify-content: center; margin-top: 40px; }
.final-seal { display: flex; justify-content: center; margin-top: 18px; }
.final-seal .seal { color: #f5f5f7; }
.endframe { position: relative; margin: clamp(56px, 7vw, 96px) auto 0; overflow: hidden; border-radius: 0; background: #000; }
/* Le reflet ne passe que sur les deux vitres de l'image (rectangles des écrans du décor large 2040 × 1040 ou compact
   1000 × 1400), jamais sur le fond noir. */
.endframe-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2040 1040' preserveAspectRatio='none'%3E%3Crect x='100' y='72' width='1200' height='780' rx='14'/%3E%3Crect x='1380' y='64' width='600' height='800' rx='24'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2040 1040' preserveAspectRatio='none'%3E%3Crect x='100' y='72' width='1200' height='780' rx='14'/%3E%3Crect x='1380' y='64' width='600' height='800' rx='24'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
@media (max-width: 699px) {
  .endframe-sweep {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1400' preserveAspectRatio='none'%3E%3Crect x='40' y='48' width='920' height='598' rx='11'/%3E%3Crect x='330' y='720' width='480' height='640' rx='19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1400' preserveAspectRatio='none'%3E%3Crect x='40' y='48' width='920' height='598' rx='11'/%3E%3Crect x='330' y='720' width='480' height='640' rx='19'/%3E%3C/svg%3E");
  }
}
.endframe-sweep::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); transform: translateX(-150%) skewX(-18deg); opacity: 0; }
@keyframes sp-end-sweep { 0% { transform: translateX(-150%) skewX(-18deg); opacity: 1; } 100% { transform: translateX(560%) skewX(-18deg); opacity: 1; } }
.js:not(.rm) .endframe.in .endframe-sweep::before { animation: sp-end-sweep 1.4s var(--e-io) .9s both; }

@media (max-width: 733px) {
  .hero-ctas { gap: 14px 22px; }
  .hero-meta { gap: 8px 16px; }
}
