/* Bloc "Page Prestige" — voir IHM_PAGE_ACCUEIL_PAGE_PRESTIGE_algo.md pour le détail de tous
   les choix (secteurs/cas, verrou PIN, historique des versions rejetées pour les cartes
   métrique). Composants partagés consommés ici : assets/css/tabs.css (.tabs-sliding*, avec
   #results) et assets/css/phone-prestige.css (.phone-device/.pp-*, avec #hero).

   Tokens texte/sable "bloc clair" provisoires, identiques à #loop (seul autre bloc clair déjà
   implémenté) — à formaliser via /design-token. */
#prestige {
  --pr-text-dark: #1F2430;
  --pr-text-sec:  #5B6072;
  --pr-text-tert: #8B8FA3;
  --pr-border:    rgba(26,26,46,0.11);
  --pr-sand:      #F2EFE8;
  background: var(--background-clair);
  color: var(--pr-text-dark);
  padding: 90px 24px 90px;
}
#prestige .prestige-inner { max-width: 1120px; margin: 0 auto; }
#prestige .prestige-head { max-width: 640px; margin: 0 0 56px; }
#prestige .prestige-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
#prestige .prestige-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -0.2px;
  color: var(--marine); margin: 0 0 16px; text-wrap: balance;
}
#prestige .prestige-title em { font-style: italic; color: var(--gold); }
#prestige .prestige-tagline { font-size: 15px; line-height: 1.7; color: var(--pr-text-sec); margin: 0; }

#prestige .prestige-layout { display: flex; align-items: flex-start; justify-content: space-between; gap: 56px; }
#prestige .prestige-left { flex: 1 1 640px; min-width: 0; max-width: 640px; }
#prestige .prestige-right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* Onglets secteur : composant partagé (assets/css/tabs.css) — seuls la marge externe et un
   effet de survol supplémentaire sur l'icône sont propres à ce bloc (absent de #results). */
#prestige .tabs-sliding { margin-bottom: 40px; }
#prestige .tabs-sliding-tab-icon { transition: transform 0.35s cubic-bezier(.34,1.56,.64,1); }
#prestige .tabs-sliding-tab:not(.active):hover .tabs-sliding-tab-icon { transform: scale(1.18) translateY(-1px); }

#prestige .p-usecase-label { font-family: var(--font-display); font-size: 22px; color: var(--marine); margin-bottom: 8px; }
#prestige .p-desc-text { font-size: 14.5px; line-height: 1.7; color: var(--pr-text-sec); max-width: 580px; min-height: 3.4em; }

/* ---- Cartes métrique — grille asymétrique, même logique que .r-grid/.r-card--hero
   (Résultats) : la carte différenciatrice (PIN) occupe toute la hauteur de la colonne,
   72h/1 geste s'empilent à côté. PIN à gauche (comme .r-card--hero) : primauté de lecture
   gauche→droite + cohérence de langage visuel avec Résultats. ---- */
#prestige .p-metrics {
  display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 14px; margin-top: 32px;
}
#prestige .p-metrics > .p-metric:nth-child(1) { grid-column: 2; grid-row: 1; }
#prestige .p-metrics > .p-metric:nth-child(2) { grid-column: 2; grid-row: 2; }
#prestige .p-metric--hero { grid-column: 1; grid-row: 1 / 3; }
#prestige .p-metric {
  background: var(--pr-sand); border: 1px solid var(--pr-border); border-radius: 14px;
  padding: 20px 18px; display: flex; flex-direction: column; justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
#prestige .p-metric:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -16px rgba(26,26,46,0.3); border-color: rgba(202,138,4,0.35); }
#prestige .p-metric-icon {
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(202,138,4,0.12); color: var(--gold-dark);
}
#prestige .p-metric-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
#prestige .p-metric-num { font-family: var(--font-display); font-size: 24px; color: var(--marine); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
#prestige .p-metric-label { font-size: 11.5px; color: var(--pr-text-tert); line-height: 1.5; }

/* Carte hero (PIN) : fond dégradé repris de .phone-device (composant partagé), pas une
   couleur inventée — --marine plat lisait comme du gris neutre à cette taille (essayé puis
   écarté en session). Icône/chiffre montés d'un cran pour remplir la hauteur double. */
#prestige .p-metric--hero {
  background: linear-gradient(165deg, #232842, #14161F);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(226,168,50,0.18);
}
#prestige .p-metric--hero:hover { box-shadow: 0 20px 34px -16px rgba(0,0,0,0.42), 0 0 0 1px rgba(226,168,50,0.4); }
#prestige .p-metric--hero .p-metric-icon { background: rgba(226,168,50,0.16); color: var(--gold-light); width: 38px; height: 38px; }
#prestige .p-metric--hero .p-metric-icon svg { width: 20px; height: 20px; }
#prestige .p-metric--hero .p-metric-num { color: var(--gold-light); font-size: 32px; margin-bottom: 8px; }
#prestige .p-metric--hero .p-metric-label { color: var(--text-sec-dark); font-size: 12.5px; max-width: 220px; }

#prestige .p-footnote { margin-top: 26px; font-size: 12.5px; color: var(--pr-text-tert); line-height: 1.6; max-width: 580px; }
#prestige .p-footnote strong { color: var(--pr-text-sec); font-weight: 600; }

/* Téléphone : composant partagé (assets/css/phone-prestige.css) — overrides ponctuels pour
   rester lisible sur fond clair (les valeurs de base sont pensées pour le fond marine du hero). */
#prestige .phone-device { box-shadow: 0 30px 56px -20px rgba(26,26,46,0.32), 0 0 0 1px rgba(202,138,4,0.08); }
#prestige .pp-dot { background: rgba(26,26,46,0.14); }
#prestige .pp-dot.active { background: var(--gold); }
#prestige .p-phone-caption { text-align: center; font-size: 11px; color: var(--pr-text-tert); letter-spacing: 0.2px; max-width: 280px; }

/* ---- Verrou PIN — conforme à nb_apercu_prestige.md (etatVerification = 'verrouille') :
   un seul bloc remplace détail+incitation+actions, jamais affiché en même temps qu'eux.
   Couleur : couleurBoutons.primary résolue de la marque affichée sur ce téléphone — ici
   --orange-pay dans les 5 cas verrouillés, ces marques fictives affichant déjà --orange-pay
   ailleurs sur le même écran (boutons Payer/Confirmer...). #3B82F6 (boutonPrimaryDefaut de
   design_system_prestige.dart, désormais lui-même #E2680C depuis le 2026-08-26 — voir
   l'algo) ne s'affiche que si AUCUNE couleur de marque n'est déjà connue, pas notre cas ici. */
#prestige .pp-pin-block { background: var(--pp-badge-bg); border-radius: 8px; padding: 16px; margin-top: 6px; }
#prestige .pp-pin-label { font-size: 12px; font-weight: 600; color: var(--pp-text-1); margin-bottom: 12px; }
#prestige .pp-pin-boxes { display: flex; justify-content: center; gap: 9px; margin-bottom: 14px; }
#prestige .pp-pin-box {
  width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--pp-text-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pp-font); font-size: 15px; font-weight: 600; color: var(--pp-text-1);
}
#prestige .pp-pin-box.pp-pin-box--active { border-color: var(--orange-pay); }
#prestige .pp-pin-continue {
  width: 100%; height: 38px; border: none; border-radius: 7px;
  background: var(--orange-pay); color: #fff; font-family: var(--pp-font); font-size: 12px; font-weight: 600;
}

@media (max-width: 980px) {
  #prestige .prestige-layout { flex-direction: column; align-items: center; gap: 48px; }
  #prestige .prestige-left { width: 100%; flex-basis: auto; max-width: 460px; }
}
@media (max-width: 460px) {
  #prestige { padding-left: 16px; padding-right: 16px; }
}
