/* Section iPhone éditoriale : deux très grands mots de part et d'autre, iPhone central (écran Higgsfield + détails animés en code).
   Palette Kora : blanc, noir, gris neutres. Couleurs fonctionnelles uniquement dans l'écran (bleu, orange). Aucun violet ni vert. */
.ph-sec { position: relative; background: var(--pearl, #FAFAFA); overflow-x: clip; }
.ph-stage { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 96px 0 64px; }
.ph-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: 100%; }

/* — Grands textes — */
.ph-word { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; will-change: transform, filter, opacity; }
.ph-word-l { align-items: flex-end; text-align: right; margin-right: clamp(8px, 1.2vw, 28px); }
.ph-word-r { align-items: flex-start; text-align: left; margin-left: clamp(8px, 1.2vw, 28px); }
.ph-big { margin: 0; font-family: "Polysans", Inter, sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 4.35vw, 100px); line-height: .94; letter-spacing: -.045em; color: var(--ink, #07070A); }
.ph-big span { display: block; white-space: nowrap; }
.ph-word-r .ph-big { color: #71717A; }
.ph-micro { margin: 0; max-width: 17em; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.45; color: #55555C; }

/* — Mise en scène — */
.ph-center { position: relative; z-index: 3; display: grid; place-items: center; padding: 0 clamp(10px, 2vw, 40px); }
.ph-center::before { content: ""; position: absolute; width: 190%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(7,7,10,.075), transparent 70%); pointer-events: none; }
.ph-rise, .ph-float { position: relative; }
.ph-ground { position: absolute; left: 50%; bottom: -4%; width: 84%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(7,7,10,.30), rgba(7,7,10,.12) 55%, transparent); }

/* — iPhone (titane, verre, reflets) — */
.ph { --pw: clamp(250px, 23vw, 340px); --r: calc(var(--pw) * .15); --t: calc(var(--pw) * .034);
  position: relative; width: var(--pw); aspect-ratio: 9 / 19.1; border-radius: var(--r); padding: var(--t);
  transform: rotate(-3deg); transform-origin: 50% 60%; backface-visibility: hidden; outline: 1px solid transparent;
  /* châssis noir (titane noir) : dégradé sombre, arête claire très fine, ombre portée */
  background: linear-gradient(145deg, #55565b 0%, #232427 14%, #0c0c0d 38%, #08080a 62%, #262729 86%, #5a5b60 100%);
  box-shadow: 0 0 0 .6px #000, inset 0 0 0 1px rgba(255,255,255,.20), inset 0 1.5px 1px rgba(255,255,255,.28), inset 0 -1.5px 1px rgba(255,255,255,.10); }
.ph::before { content: ""; position: absolute; inset: calc(var(--pw) * .010); border-radius: calc(var(--r) - var(--pw) * .010); background: #000; box-shadow: inset 0 0 0 1px #151517; }
.ph-btn { position: absolute; width: calc(var(--pw) * .010); border-radius: 2px; background: linear-gradient(90deg, #17171a, #3b3c41 55%, #1c1c1f); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); }
.ph-btn.a { left: calc(var(--pw) * -.009); top: 15%; height: 3.6%; } .ph-btn.b { left: calc(var(--pw) * -.009); top: 21.5%; height: 7%; } .ph-btn.c { left: calc(var(--pw) * -.009); top: 30%; height: 7%; } .ph-btn.d { right: calc(var(--pw) * -.009); top: 25%; height: 11%; }
.ph-screen { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: calc(var(--r) - var(--t)); overflow: hidden; background: #fff; container-type: inline-size; }
.ph-screen::after { content: ""; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 22%, transparent 38%); border-radius: inherit; }
.ph-img { position: absolute; left: 0; top: 10cqw; width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.ph-island { position: absolute; z-index: 5; top: 3cqw; left: 50%; width: 29cqw; height: 8.4cqw; border-radius: 99px; background: #000; transform: translateX(-50%); }
.ph-status { position: absolute; z-index: 4; top: 3.9cqw; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 9cqw 0 10cqw; font: 600 3.6cqw/1 Inter, sans-serif; color: #07070a; }
.ph-status svg { height: 3.2cqw; width: auto; fill: #07070a; }
.ph-status .sig { display: inline-flex; align-items: center; gap: 1.6cqw; }
.ph-status .bat { display: inline-block; width: 6.4cqw; height: 3.1cqw; border: .3cqw solid #07070a; border-radius: .9cqw; position: relative; margin-left: 1cqw; }
.ph-status .bat::before { content: ""; position: absolute; inset: .35cqw; right: 1.5cqw; background: #07070a; border-radius: .4cqw; }
.ph-tabbar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 21cqw; padding: 3cqw 5cqw 0; display: flex; justify-content: space-between; background: rgba(255,255,255,.94); border-top: 1px solid #eceef1; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 1cqw; width: 18cqw; font: 500 2.7cqw/1 Inter, sans-serif; color: #7a828f; }
.ph-tab svg { width: 6cqw; height: 6cqw; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ph-tab.on { color: #2563eb; }
.ph-tab b { position: absolute; margin: -1cqw 0 0 3.6cqw; min-width: 4cqw; height: 4cqw; padding: 0 1cqw; border-radius: 99px; background: #e5484d; color: #fff; font: 700 2.5cqw/4cqw Inter, sans-serif; text-align: center; }
.ph-home { position: absolute; z-index: 5; left: 50%; bottom: 2.2cqw; width: 34cqw; height: 1.3cqw; border-radius: 99px; background: #07070a; opacity: .9; transform: translateX(-50%); }

/* — Détails reconstruits en code (posés sur l'image) — */
.ph-ov { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); box-sizing: border-box; overflow: hidden; background: #fff; border: 1px solid #e4e7ec; border-radius: 4cqw; box-shadow: 0 1px 3px rgba(7,7,10,.06), 0 8px 18px -12px rgba(7,7,10,.12); font-family: Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #07070a; }
.ph-ov-l { position: absolute; left: 4.6cqw; top: 3.6cqw; font-size: 3.1cqw; color: #6b7280; }
.ph-ov-n { position: absolute; left: 4.6cqw; top: 8.4cqw; font-size: 6.6cqw; font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.ph-ov-n small { margin-left: 1.4cqw; font-size: 3.4cqw; font-weight: 500; color: #6b7280; letter-spacing: 0; }
.ph-chart { position: absolute; left: 3%; bottom: 2%; width: 91%; height: auto; overflow: visible; }
.ph-chart .grid path { fill: none; stroke: #e6e9ef; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ph-chart text { font: 500 8.6px Inter, sans-serif; fill: #6b7280; }
.ph-chart .area { fill: url(#phg); }
.ph-chart .ln { fill: none; stroke: #2563eb; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ph-chart .dot { fill: #fff; stroke: #2563eb; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.ph-toast { position: absolute; z-index: 6; left: 5cqw; right: 5cqw; top: 17.5cqw; display: flex; align-items: center; gap: 3cqw; padding: 3cqw 3.6cqw; border-radius: 4.2cqw; background: rgba(255,255,255,.97); border: 1px solid #e4e7ec; box-shadow: 0 10px 28px -10px rgba(7,7,10,.28); opacity: 0; transform: translateY(-14cqw); font-family: Inter, sans-serif; }
.ph-toast i { flex: none; width: 8cqw; height: 8cqw; border-radius: 50%; background: #e6f0ff; color: #2563eb; display: grid; place-items: center; font: 700 3cqw/1 Inter, sans-serif; font-style: normal; }
.ph-toast b { display: block; font-size: 3.1cqw; font-weight: 650; color: #07070a; } .ph-toast span { display: block; margin-top: .6cqw; font-size: 2.7cqw; color: #6b7280; }

/* — Tablette — */
@media (max-width: 1024px) { .ph-big { font-size: clamp(34px, 5.8vw, 60px); } .ph-word { gap: 16px; } }
/* — Mobile : mot haut, iPhone, mot bas — */
@media (max-width: 767px) {
  .ph-stage { min-height: 100svh; padding: 78px 0 36px; }
  .ph-grid { grid-template-columns: 1fr; gap: 22px; justify-items: center; }
  .ph-center { order: 2; } .ph-word-l { order: 1; } .ph-word-r { order: 3; }
  .ph-word-l, .ph-word-r { align-items: center; text-align: center; margin: 0; gap: 10px; }
  .ph-big { font-size: clamp(30px, 9.6vw, 48px); }
  .ph { --pw: min(54vw, 230px); }
  .ph-micro { font-size: 13px; max-width: 20em; }
}
/* — Mouvement réduit : composition statique, valeurs finales — */
.ph-sec.is-static .ph-stage { min-height: 0; padding: 96px 0; }
@media (prefers-reduced-motion: reduce) { .ph-toast { display: none; } }
