/* Les guides : tout l'habillage vient de style.css (le site de sortie). Ici, seulement la mise en page d'un article. */
.page-guides { overflow-x: clip; }
.g-hero { position: relative; isolation: isolate; overflow: hidden; padding: 128px var(--pad) clamp(40px, 7vw, 80px); }
.g-hero::after { content: ""; position: absolute; inset: auto 0 0; z-index: -1; height: 160px; background: linear-gradient(180deg, rgba(10, 10, 11, 0), var(--bg)); pointer-events: none; }
.g-hero-in { width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.g-hero-copy { position: relative; z-index: 2; }
.g-hero--list { padding-bottom: clamp(32px, 5vw, 56px); }
.g-hero--list .g-hero-copy { width: min(100%, var(--max)); margin: 0 auto; }
.g-hero-phone { display: grid; place-items: center; }
.g-hero .iphone { --pw: clamp(240px, min(25vw, 37svh), 350px); }
/* le dégradé s'arrête au bord du bloc : assez de place en bas pour les g, p et y */
.g-h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.04; padding-bottom: .16em; margin-bottom: -.1em; text-wrap: balance; }
.g-crumb { display: flex; flex-wrap: wrap; gap: 8px; }
.g-crumb a:hover { color: #fff; }
.g-crumb span::before { content: "/"; margin-right: 8px; }
.g-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; }
.g-buy { display: inline-flex; margin: 0; height: 54px; padding: 0 30px; }

.g-body { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.g-body h2 { margin: clamp(52px, 7vw, 80px) 0 14px; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.g-body p:not(.p-lab, .p-sec, .p-note), .g-body li { color: var(--ink-2); line-height: 1.55; }
.g-body p:not(.p-lab, .p-sec, .p-note) { margin: 0 0 14px; }
.g-body strong { color: var(--ink); font-weight: 600; }
.g-body ul, .g-body ol { margin: 0 0 14px; padding-left: 22px; }
.g-body li { margin-bottom: 8px; }
.g-body p a, .g-body li a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.g-body p a:hover, .g-body li a:hover { text-decoration-color: #fff; }
.g-text { max-width: 720px; margin: 0 auto; }
.g-note { max-width: 720px; margin: 8px auto 0; padding: 18px 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); line-height: 1.5; }
.g-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 7vw, 100px); max-width: 1000px; margin: clamp(52px, 8vw, 96px) auto; }
.g-step--alt { grid-template-columns: auto minmax(0, 1fr); }
.g-step--alt .g-copy { order: 2; }
.g-step h2 { margin-top: 0; }
.g-num { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink-3); }
.g-phone { display: grid; justify-items: center; gap: 26px; margin: 0; }
.g-phone .iphone { --pw: clamp(220px, 24vw, 300px); }
.g-body figcaption { font-size: 14px; color: var(--ink-3); text-align: center; }
.g-wide { max-width: 1000px; margin: 28px auto; }
.g-wide img { display: block; width: 100%; height: auto; border-radius: 20px; }
.g-wide figcaption { margin-top: 10px; }
.g-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 28px auto; }
.g-pair .g-wide { margin: 0; }
.g-facts { display: grid; gap: 1px; margin: 16px 0; border-radius: 20px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.g-facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 14px 18px; background: var(--card); }
.g-facts dt { font-weight: 600; }
.g-facts dd { margin: 0; color: var(--ink-2); }
.g-body .faq { width: 100%; margin-top: 18px; }
.g-read { max-width: 1000px; margin: 0 auto; }
.g-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 !important; list-style: none; }
.g-next li { margin: 0; }
.g-next a { display: flex; flex-direction: column; height: 100%; padding: 0 22px 22px; overflow: hidden; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; transition: transform .25s var(--ease); }
.g-next a:hover { transform: translateY(-2px); }
.g-read-phone { display: grid; justify-items: center; height: 220px; padding-top: 24px; overflow: hidden; margin-bottom: 18px; }
.g-read-phone .iphone { --pw: 150px; }
.g-next h3 { margin: 0 0 10px; color: var(--ink); font-size: 21px; line-height: 1.14; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.g-next a > span { margin-top: auto; font-size: 14px; color: var(--ink-3); }
.g-end { margin-top: clamp(72px, 10vh, 120px); }
.g-end .g-offer { margin: -14px 0 0; font-size: 14px; color: var(--ink-2); }

.g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; margin: 0 !important; padding: 0 !important; list-style: none; }
.g-list li { margin: 0; }
.g-list a { position: relative; display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 22px; height: 100%; min-height: 240px; padding: 0 22px 0 0; overflow: hidden; border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none !important; transition: transform .25s var(--ease); }
.g-list a:hover { transform: translateY(-2px); }
.g-card-phone { align-self: start; display: grid; justify-items: center; padding-top: 26px; height: 240px; overflow: hidden; }
.g-card-phone .iphone { --pw: 124px; }
.g-list h3 { margin: 0 0 8px; color: var(--ink); font-size: 22px; line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.g-list p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
/* net partout : le téléphone reste dessiné à la taille de l'écran, et l'image garde sa finesse */
.page-guides .ip-3d { will-change: auto; }
.s-ui, .s-photo, .s-hist { position: absolute; display: block; }
.s-ui { inset: 0; z-index: 2; width: 100%; height: 100%; }
.s-photo { z-index: 1; object-fit: cover; }
.s-gr { left: 20.98%; top: 12.17%; width: 58.04%; height: 47.37%; border-radius: 3.9cqw; }
.s-pe { left: 27.86%; top: 12.32%; width: 44.28%; height: 35.85%; border-radius: 3.5cqw; }
.s-ex { left: 27.86%; top: 12.32%; width: 44.28%; height: 34.4%; border-radius: 3.5cqw 3.5cqw 0 0; opacity: .36; }
.s-hist { z-index: 3; left: 5.31%; top: 13%; width: 29.7%; height: auto; border-radius: 3cqw; }
.s-ho { left: 5.31%; top: 16.78%; width: 89.3%; height: 23.15%; border-radius: 3.9cqw; }
/* le verre de l'app, comme dans les captures du site */
.page-guides .ip-screen .pill, .page-guides .ip-screen .app-btn { background: rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: inset 0 0 0 .22cqw rgba(255, 255, 255, .2); }
.page-guides .ip-screen .panel { opacity: 0; background: rgba(12, 12, 14, .94); box-shadow: inset 0 0 0 .22cqw rgba(255, 255, 255, .12); }
.page-guides .app-read, .page-guides .ip-screen[data-state] .app-lens, .page-guides .ip-screen[data-state] .app-chip { display: none; }
.page-guides .ip-screen[data-state="looks"] .panel--looks { opacity: 1; transform: none; }
.page-guides .ip-screen[data-state="set"] .panel--set { opacity: 1; transform: none; }
.page-guides .ip-screen[data-state="looks"] .app-b-looks, .page-guides .ip-screen[data-state="fx"] .app-b-looks, .page-guides .ip-screen[data-state="set"] .app-b-gear, .page-guides .ip-screen[data-state="set"] .app-fmt { background: #fff; color: #000; }
/* le cadre 4:5 de l'app : le plus grand 4:5 centré dans l'image, l'extérieur assombri, un trait plein, la zone sûre à 5 % en pointillés */
.page-guides .app-vf { isolation: isolate; }
.g-frame { position: absolute; z-index: 3; left: 0; right: 0; top: 14.95%; bottom: 14.95%; border: solid rgba(255, 255, 255, .7); border-width: .25cqw 0; box-shadow: 0 0 0 100cqw rgba(0, 0, 0, .35); }
.g-safe { position: absolute; inset: 5%; border: .25cqw dashed rgba(255, 255, 255, .55); }
.page-guides .ip-screen[data-rec] .app-b-looks, .page-guides .ip-screen[data-rec] .app-b-gear, .page-guides .ip-screen[data-rec] .app-b-flip { opacity: .4; }
.page-guides [data-rec] .app-fmt { left: auto; width: auto; right: 5.3%; display: flex; align-items: center; gap: 1cqw; padding: 0 2.2cqw 0 2.4cqw; }
.rec-m { display: flex; align-items: flex-end; gap: .5cqw; height: 4cqw; }
.rec-m i { position: relative; width: .75cqw; height: 100%; border-radius: 1cqw; overflow: hidden; background: rgba(255, 255, 255, .28); }
.rec-m u { position: absolute; left: 0; right: 0; bottom: 0; height: 70%; background: #fff; border-radius: 1cqw; text-decoration: none; }
.rec-m i:last-child u { height: 55%; }
.rec-tc { font: 600 3.2cqw/1 -apple-system, "SF Pro Text", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #ff3b30; }
.chip-lock { width: 2.6cqw; height: 2.6cqw; margin-right: -.4cqw; }
[data-rec] .rec i { border-radius: 21%; transform: scale(.5); }
.panel-img { position: absolute; z-index: 6; left: 4.9%; width: 90.2%; bottom: 17.6%; height: auto; opacity: 0; object-fit: contain; }
.page-guides .ip-screen[data-state="fx"] .panel-img { opacity: 1; }
.page-guides .ip-screen .panel--looks { height: 60.3cqw; }
.page-guides .ip-screen .panel--set { top: 26.5%; overflow: hidden; }
.page-guides .ip-screen .p-fam { -webkit-mask: none; mask: none; }
.page-guides .p-reset { color: #fff; }
.page-guides .ip-screen .p-x { box-shadow: inset 0 0 0 .22cqw rgba(255, 255, 255, .22); }
/* chaque pastille montre la scène en cours sous son look */
.p-chips i:nth-child(2) img { filter: saturate(1.25) contrast(1.05); }
.p-chips i:nth-child(3) img { filter: sepia(.25) saturate(1.2); }
.p-chips i:nth-child(4) img { filter: hue-rotate(-12deg) brightness(.92); }
.page-guides [data-manual] .app-read { display: flex; }
.page-guides [data-preview] .p-seg i:first-child { background: none; color: rgba(255, 255, 255, .8); }
.page-guides [data-preview] .p-seg i:last-child { background: #fff; color: #000; }
.page-guides .ip-screen[data-rec] .tab-img { opacity: .45; }
.page-guides .ip-screen[data-rec] .app-lens i:not(.on) { opacity: .4; }

@media (max-width: 760px) {
  .g-next { grid-template-columns: minmax(0, 1fr); }
  .g-read-phone { height: 200px; }
  .g-hero { padding-top: 104px; }
  .g-hero-in { grid-template-columns: minmax(0, 1fr); }
  .g-hero-copy { text-align: center; }
  .g-crumb, .g-hero-cta { justify-content: center; }
  .g-hero-copy .lede { margin-left: auto; margin-right: auto; }
  .g-hero .iphone { --pw: min(62vw, 300px); }
  .g-step, .g-step--alt { grid-template-columns: minmax(0, 1fr); }
  .g-step--alt .g-copy { order: 0; }
  .g-phone .iphone { --pw: min(62vw, 280px); }
}
@media (max-width: 560px) {
  .g-pair { grid-template-columns: minmax(0, 1fr); }
  .g-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
