/*
 * Page Extension (ProvSeal Verify) : hero interactif (galerie + panneau de l'extension),
 * les quatre statuts, ce qu'elle ne fait pas, FAQ ; l'appel final utilise .ps-endcta.
 * Préfixe vf- (maquette v2 Extension.dc.html). La FAQ vient de product.css, la liste ✕ de provseal.css.
 */

/* ---------- Hero ---------- */

.vf-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 55% 65% at 75% 45%, rgba(244, 81, 30, 0.28), transparent 66%),
    var(--ps-ember);
}

.vf-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 104px;
}

.vf-hero-copy {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.vf-h1 {
  max-width: 11em;
  margin: 0;
  color: #fff;
  font-family: var(--ps-font-sans);
  font-size: clamp(46px, 5.4vw, 86px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.vf-lead {
  max-width: 30em;
  color: var(--ps-muted-dark);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.vf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.vf-install {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

.ps-page main .vf-more {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ps-page main .vf-more:hover {
  color: var(--ps-peach-light);
}

.vf-hero-scene {
  flex: 0 1 580px;
  min-width: 0;
}

/* ---------- Scène : navigateur + galerie + panneau ---------- */

.vf-scene {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.vf-br {
  overflow: hidden;
  border: 1px solid var(--ps-line-light);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.9);
}

.vf-tb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ps-line-light);
  background: #f6ece6;
}

.vf-dots {
  display: flex;
  gap: 6px;
}

.vf-d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e6cfc3;
}

.vf-url {
  flex: 1 1 auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #9a7d6f;
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.vf-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ps-orange);
}

.vf-ic img {
  width: 18px;
  height: 18px;
}

.vf-body {
  position: relative;
  min-height: 420px;
  padding: 20px;
  box-sizing: border-box;
}

.vf-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vf-th {
  position: relative;
  font-family: inherit;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #000;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.vf-th[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--ps-orange);
}

.vf-th-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
}

.vf-th-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vf-hue0 { filter: hue-rotate(-20deg); }
.vf-hue1 { filter: hue-rotate(5deg); }
.vf-hue2 { filter: hue-rotate(30deg); }
.vf-hue3 { filter: hue-rotate(55deg); }

/* Badge de l'extension posé sur l'image (C2PA_Ext, thème actuel) : capsule blanche en haut à droite,
   pastille de couleur du statut, libellé encre (comme .xw-badge de l'accueil). */
.vf-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 9px 4px 7px;
  box-sizing: border-box;
  border: 1px solid #ecdcd3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 20px -10px rgba(28, 17, 11, 0.45);
}

.vf-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}

.vf-dot--verified { background: var(--ps-status-trusted); }
.vf-dot--signed { background: var(--ps-status-untrusted); }
.vf-dot--invalid { background: var(--ps-status-invalid); }
.vf-dot--none { background: var(--ps-status-none); }

.vf-badge-txt {
  min-width: 0;
  overflow: hidden;
  color: #1c110b;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Popover de l'extension : en-tête braise (sceau, titre, trois contrôles), corps clair
   (signataire, bouton du rapport complet, mention locale), comme dans C2PA_Ext. */
.vf-pop {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: #fffaf6;
  box-shadow: 0 34px 70px -24px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(28, 17, 11, 0.06);
  color: #1c110b;
}

.vf-report {
  --vf-tone: var(--ps-status-none);
  display: flex;
  flex-direction: column;
}

.vf-report[hidden] {
  display: none;
}

.vf-report--verified { --vf-tone: var(--ps-status-trusted); }
.vf-report--signed { --vf-tone: var(--ps-status-untrusted); }
.vf-report--invalid { --vf-tone: var(--ps-status-invalid); }

.vf-pv-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(244, 81, 30, 0.34), transparent 62%),
    #1c110b;
  color: #fffaf6;
}

.vf-pv-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vf-pv-seal {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--vf-tone);
  box-shadow: 0 0 0 3px var(--vf-tone), 0 10px 22px -8px var(--vf-tone);
}

.vf-pv-seal svg {
  display: block;
  width: 20px;
  height: 20px;
}

.vf-pv-eyebrow {
  flex: 1 1 auto;
  color: #ff8a3d;
  font-family: var(--ps-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vf-pv-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 250, 246, 0.16);
  border-radius: 50%;
  color: rgba(255, 250, 246, 0.75);
  font-size: 14px;
  line-height: 1;
}

.vf-pv-title {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.vf-pv-title::after {
  content: ".";
  color: var(--vf-tone);
}

.vf-pv-sub {
  color: rgba(255, 250, 246, 0.68);
  font-size: 11.5px;
  line-height: 1.45;
}

.vf-pv-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.vf-pv-check {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 250, 246, 0.12);
  border-radius: 12px;
  background: rgba(255, 250, 246, 0.05);
}

.vf-pv-ico {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #64748b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.vf-pv-check--ok .vf-pv-ico { background: var(--ps-status-trusted); }
.vf-pv-check--warn .vf-pv-ico { background: var(--ps-status-untrusted); }
.vf-pv-check--err .vf-pv-ico { background: var(--ps-status-invalid); }

.vf-pv-check b {
  font-size: 11.5px;
  font-weight: 800;
}

.vf-pv-check small {
  overflow: hidden;
  color: rgba(255, 250, 246, 0.6);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vf-pv-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px 12px 10px;
}

.vf-pv-signer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #ecdcd3;
  border-radius: 14px;
  background: #fff;
}

.vf-pv-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8a3d, #f4511e);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.vf-pv-signer-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vf-pv-signer-copy small {
  color: #c2410c;
  font-family: var(--ps-font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vf-pv-signer-copy b {
  overflow: hidden;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vf-pv-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a3d, #f4511e);
  box-shadow: 0 14px 26px -14px rgba(244, 81, 30, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.vf-pv-foot {
  color: #047857;
  font-family: var(--ps-font-mono);
  font-size: 9.5px;
  text-align: center;
}

.vf-hint {
  justify-content: center;
  margin-top: 18px;
  color: var(--ps-faint-dark);
}

.vf-hint li::before {
  background: rgba(244, 81, 30, 0.18);
  color: var(--ps-peach);
}

/* ---------- Titres de section ---------- */

/* Titre puis sous-titre empilés, comme sur toutes les sections. */
.vf-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.vf-head .f-lead {
  margin: 0;
  line-height: 1.55;
}

/* ---------- Les quatre statuts ---------- */

.vf-statuses {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e3cfc4;
  list-style: none;
}

.vf-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 12px 40px;
  padding: 24px 0;
  border-top: 1px solid #e3cfc4;
}

.vf-status-name {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ps-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vf-dot--lg {
  width: 16px;
  height: 16px;
  box-shadow: none;
}

.vf-status-text {
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

/* ---------- Ce que fait l'extension (0.2.0) : cartes sur fond sombre, sans numéros ---------- */

.vf-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.vf-features li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid rgba(255, 180, 140, 0.16);
  border-radius: var(--ps-radius-card);
  background: rgba(255, 255, 255, 0.03);
}

.vf-feature-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vf-feature-text {
  color: #d7c3b8;
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.vf-nots {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 72px;
}

.ps-page .vf-nots-title {
  color: #fff;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.vf-more-line {
  margin-top: 40px;
}

/* ---------- FAQ ---------- */

.ps-page main .f-q p {
  margin-left: 0;
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px) {
  .vf-hero-inner {
    padding-top: 32px;
  }

  .vf-h1 {
    font-size: clamp(42px, 12.5vw, 64px);
  }

  .vf-scene {
    zoom: 0.62;
  }

  .vf-body {
    display: grid;
    gap: 10px;
    min-height: 0;
  }

  .vf-pop {
    position: static;
    width: auto;
  }

  .vf-status-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .vf-scene {
    zoom: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vf-th {
    transition: none;
  }
}
