/* ==========================================================================
   Appareils : iPhone 17 Pro, Pixel, fenêtre de navigateur
   Proportions calées sur les captures (iPhone 1206×2622, Pixel 1080×2400) :
   l'écran a exactement le ratio de l'image, rien n'est rogné.
   ========================================================================== */

/* iPhone : 402×874 pt d'écran, bord noir 5 pt, cadre titane 3 pt */
.iphone {
  position: relative; width: 300px; max-width: 100%;
  aspect-ratio: 418 / 890;
  border-radius: 16.75% / 7.87%;
  padding: 0.72%;
  background:
    linear-gradient(145deg, #eceef2 0%, #b9bdc6 14%, #f4f5f7 30%, #8f949e 52%, #d9dce2 72%, #a4a8b1 88%, #e6e8ec 100%);
  box-shadow:
    0 0 0 1px rgba(13, 26, 51, .18),
    0 2px 2px rgba(13, 26, 51, .08),
    0 30px 50px -24px rgba(13, 26, 51, .45),
    0 60px 100px -50px rgba(13, 26, 51, .35);
}
.iphone::before, .iphone::after {
  content: ""; position: absolute; width: 0.9%; border-radius: 2px;
  background: linear-gradient(90deg, #7d828c, #c9ccd3 60%, #9a9ea7);
}
/* bouton Action + volume à gauche */
.iphone::before { left: -0.75%; top: 17%; height: 4.2%; }
.iphone::after { right: -0.75%; top: 27%; height: 9.5%; }
.iphone .vol { position: absolute; left: -0.75%; width: 0.9%; border-radius: 2px; background: linear-gradient(90deg, #7d828c, #c9ccd3 60%, #9a9ea7); }
.iphone .vol.up { top: 24.5%; height: 6.8%; }
.iphone .vol.down { top: 33%; height: 6.8%; }
.iphone .bezel {
  position: relative; height: 100%;
  border-radius: 16.26% / 7.58%;
  padding: 1.21%;
  background: #050507;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.iphone .screen, .pixel .screen {
  position: relative; height: 100%; overflow: hidden; background: #f4f6f9;
  isolation: isolate;
}
.iphone .screen { border-radius: 15.42% / 7.09%; }
.iphone .screen img, .pixel .screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
}
/* reflet très léger sur la vitre */
.iphone .screen::after, .pixel .screen::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%);
}

/* Pixel : écran 1080×2400, bord 2,2 %, cadre aluminium mat */
.pixel {
  position: relative; width: 290px; max-width: 100%;
  aspect-ratio: 1144 / 2464;
  border-radius: 11.54% / 5.36%;
  padding: 1.049%;
  background: linear-gradient(150deg, #5b6170 0%, #2f333c 35%, #4a4f5a 60%, #23262d 100%);
  box-shadow:
    0 0 0 1px rgba(13, 26, 51, .25),
    0 30px 50px -24px rgba(13, 26, 51, .45),
    0 60px 100px -50px rgba(13, 26, 51, .35);
}
.pixel::after { content: ""; position: absolute; right: -0.9%; top: 21%; height: 7%; width: 1%; border-radius: 2px; background: #3a3e47; }
.pixel .bezel { height: 100%; border-radius: 10.71% / 4.91%; padding: 1.786%; background: #050507; }
.pixel .screen { border-radius: 9.26% / 4.17%; }
.pixel .screen::before {
  content: ""; position: absolute; z-index: 4; left: 50%; top: 1.15%; width: 3.3%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3140 0 18%, #07080b 45%);
}

/* Diaporama dans un écran */
.screen .slide { opacity: 0; transition: opacity .9s ease; }
.screen .slide.on { opacity: 1; }

/* Fenêtre de navigateur */
.window {
  position: relative; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(13, 26, 51, .1),
    0 2px 4px rgba(13, 26, 51, .05),
    0 40px 80px -36px rgba(13, 26, 51, .45);
}
.window-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  height: 38px; padding: 0 14px; background: linear-gradient(#f7f8fb, #eef1f6); border-bottom: 1px solid #dfe4ec;
}
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.window-dots i:nth-child(2) { background: #febc2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-url {
  justify-self: center; width: min(360px, 100%); height: 24px; border-radius: 7px; background: #fff;
  box-shadow: inset 0 0 0 1px #e1e6ee; display: flex; align-items: center; justify-content: center; gap: 6px;
  font: 500 12.5px/1 var(--font-body, system-ui); color: #5d6980;
}
.window-url svg { width: 11px; height: 11px; color: #5d6980; }
.window-spacer { width: 47px; }
.window-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f5; }
.window-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (max-width: 600px) { .window-bar { height: 30px; padding: 0 10px; } .window-dots i { width: 8px; height: 8px; } .window-url { height: 20px; font-size: 11px; } .window-spacer { width: 30px; } }

/* Dynamic Island (absente des captures du simulateur) */
.iphone .screen::before {
  content: ""; position: absolute; z-index: 4; left: 50%; top: 1.26%; width: 31.3%; height: 4.23%;
  transform: translateX(-50%); border-radius: 999px; background: #000;
}
