/* Composant partagé — châssis téléphone + carte "aperçu Page Prestige" (.phone-device/.pp-*),
   utilisé par #hero et #prestige (voir IHM_PAGE_ACCUEIL_PAGE_PRESTIGE_algo.md § Réutilisation
   explicite — extrait de hero.css le 2026-08-31, identique à l'original, demande explicite de
   réutilisation du design du téléphone du hero pour Page Prestige).

   Couleurs pp-* = identité fixe Page Prestige (NafabeatPrestigeBrand, design_system_prestige.dart)
   — jamais réutilisées comme tokens génériques ailleurs. Valeurs de base pensées pour un fond
   sombre (contexte hero) ; #prestige (fond clair) applique ses propres overrides ponctuels dans
   assets/css/prestige.css — jamais dans ce fichier, qui reste neutre vis-à-vis du bloc
   appelant. */

.phone-device {
  width: fit-content;
  background: linear-gradient(180deg, #1E2333, #14161F);
  border: 1px solid rgba(248,244,239,0.16);
  border-radius: 22px; padding: 8px;
  box-shadow: 0 26px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(226,168,50,0.05);
}
.phone-screen {
  width: 300px; background: var(--pp-surface); border-radius: 14px;
  border: 1px solid var(--pp-border);
  box-shadow: 0 20px 40px -20px rgba(15,23,42,0.35);
  overflow: hidden; position: relative;
}
.pp-camera-clearance { height: 22px; position: relative; }
.pp-camera-dot {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3A4258, #0A0B10);
}

.pp-card-body { position: relative; padding: 20px; font-family: var(--pp-font); }
.pp-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--pp-badge-bg); color: var(--pp-badge-fg);
  font-size: 8px; font-weight: 600; letter-spacing: 0.4px;
  padding: 3px 7px; border-radius: 999px;
}
.pp-header { display: flex; align-items: flex-start; gap: 9px; padding-right: 44px; }

.pp-slides { position: relative; min-height: 486px; }
.pp-slide {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex; flex-direction: column;
}
.pp-slide.active { opacity: 1; pointer-events: auto; }
.pp-central { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pp-dots { display: flex; gap: 6px; justify-content: center; }
.pp-dot { width: 5px; height: 5px; border-radius: 3px; background: rgba(248,244,239,0.28); transition: width 0.3s, background 0.3s; }
.pp-dot.active { width: 15px; background: var(--gold-light); }
.pp-logo {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.pp-name { font-size: 14px; font-weight: 600; line-height: 1.2; }
.pp-sub { font-size: 11px; color: var(--pp-text-3); line-height: 1.2; margin-top: 2px; }
.pp-accroche { font-size: 10.5px; font-weight: 600; letter-spacing: 0.2px; margin-top: 10px; }
.pp-message { font-size: 12.5px; line-height: 1.55; color: var(--pp-text-2); margin-top: 13px; }
.pp-message strong { font-weight: 600; color: var(--pp-text-1); }
.pp-detail { background: var(--pp-badge-bg); border-radius: 7px; padding: 3px 12px; }
.pp-detail-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 12px; }
.pp-detail-row:not(:last-child) { border-bottom: 1px solid rgba(15,23,42,0.05); }
.pp-detail-k { color: var(--pp-text-2); }
.pp-detail-v { color: var(--pp-text-1); font-weight: 500; }
.pp-incitation { font-size: 12px; font-weight: 500; color: var(--pp-text-2); line-height: 1.5; }
.pp-actions { margin-top: 17px; display: flex; flex-direction: column; gap: 7px; }
.pp-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; border-radius: 7px; border: none; font-family: var(--pp-font); font-size: 12px; font-weight: 600; cursor: default; }
.pp-btn-icon { display: flex; flex-shrink: 0; width: 15px; height: 15px; }
.pp-btn-icon svg { width: 100%; height: 100%; }
.pp-btn-primary { background: var(--orange-pay); color: #fff; }
.pp-btn-tertiary { background: var(--gold-light); color: var(--marine); }
.pp-footer { text-align: center; font-size: 10px; color: var(--pp-text-3); margin-top: 14px; }
.pp-footer .u { text-decoration: underline; text-underline-offset: 2px; color: var(--pp-text-2); }

@media (max-width: 460px) {
  .phone-screen { width: min(300px, 82vw); }
}
