/*
 * Page Chrome extension : scène du hero, une page web analysée par l'extension épinglée
 * (pastille de compteur dans la barre d'outils, badge de l'extension sur chaque image, carte de scan),
 * puis trois vues de l'extension (popup Verify, scan de page, popup Sign) reproduites d'après
 * C2PA_Ext (thème actuel). Préfixe cx-. Gabarit : product-guide.css.
 */

.cx-br {
  box-sizing: border-box;
  width: 100%;
  max-width: 540px;
  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);
  color: var(--ps-ink);
}

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

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

.cx-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e6cfc3;
}

.cx-url {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #9a7d6f;
  font-family: var(--ps-font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Icône épinglée de l'extension avec son compteur. */
.cx-ext {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ps-orange);
}

.cx-ext img {
  width: 20px;
  height: 20px;
}

.cx-count {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-orange);
  color: #fff;
  font-family: var(--ps-font-mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cx-page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  overflow: hidden;
}

.cx-text {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: #ecdcd3;
}

.cx-t1 { width: 70%; height: 14px; background: #dcc3b5; }
.cx-t2 { width: 92%; }
.cx-t3 { width: 84%; }

.cx-media {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.cx-img {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #1c110b;
}

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

.cx-img--a {
  grid-row: 1 / span 2;
  min-height: 210px;
}

.cx-img--b { min-height: 100px; filter: hue-rotate(-20deg) saturate(0.9); }
.cx-img--c { min-height: 100px; filter: hue-rotate(25deg) saturate(0.7); }

/* Badge de l'extension (C2PA_Ext, thème actuel) : capsule blanche en haut à droite,
   pastille de couleur du statut, libellé encre. */
.cx-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  padding: 4px 10px 4px 8px;
  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);
}

.cx-dot {
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}

.cx-badge .cx-dot { box-shadow: none; }

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

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

/* Carte de progression du scan (coin supérieur droit dans le produit) : fond braise,
   coche, barre pleine, une pastille par statut. Ici posée au pied du navigateur. */
.cx-stage {
  position: relative;
  max-width: 540px;
  padding-bottom: 64px;
}

.cx-scan-card,
.cx-sr-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 12px 12px 11px;
  border: 1px solid rgba(255, 138, 61, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 90% at 100% 0%, rgba(244, 81, 30, 0.32), transparent 60%),
    #1c110b;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.75);
  color: #fffaf6;
}

.cx-scan-card {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 290px;
}

.cx-scan-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cx-scan-ring {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8a3d, #f4511e);
  box-shadow: 0 8px 18px -8px rgba(244, 81, 30, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.cx-scan-titles {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.cx-scan-titles b {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.cx-scan-titles small {
  color: rgba(255, 250, 246, 0.62);
  font-family: var(--ps-font-mono);
  font-size: 10px;
}

.cx-scan-x {
  align-self: flex-start;
  color: rgba(255, 250, 246, 0.55);
  font-size: 13px;
  line-height: 1;
}

.cx-scan-bar {
  display: block;
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.12);
}

.cx-scan-bar i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4511e, #ff8a3d);
}

.cx-scan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.cx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border: 1px solid rgba(255, 250, 246, 0.14);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}

.cx-chip .cx-dot {
  width: 7px;
  height: 7px;
}

/* Une ligne d'analyse descend une fois sur la page, puis les badges apparaissent. */
.cx-scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  background: var(--ps-orange);
  box-shadow: 0 0 18px 4px rgba(244, 81, 30, 0.45);
  opacity: 0;
  pointer-events: none;
}

@keyframes cx-scan {
  0% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(340px); }
}

@keyframes cx-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.cx-scan {
  animation: cx-scan 1.2s ease-in-out 0.6s both;
}

.cx-br .cx-badge,
.cx-count,
.cx-scan-card {
  animation: cx-pop 0.4s var(--ps-ease) both;
}

.cx-b1 { animation-delay: 1.6s; }
.cx-b2 { animation-delay: 1.85s; }
.cx-b3 { animation-delay: 2.1s; }
.cx-count { animation-delay: 2.35s; }
.cx-scan-card { animation-delay: 2.5s; }

/* ---------- Captures ---------- */

.cx-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cx-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

/* Popup de l'extension (VerifyHome / SignHome de C2PA_Ext) : en-tête marque + onglets,
   héro braise, zone de dépôt ou options de signature. */
.cx-pp {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 360px;
  min-height: 470px;
  padding: 0 12px 14px;
  overflow: hidden;
  border: 1px solid var(--ps-line);
  border-radius: 18px;
  background: #fffaf6;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color: #1c110b;
}

.cx-pp-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0 0;
}

.cx-pp-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.cx-pp-icon img {
  width: 26px;
  height: 26px;
}

.cx-pp-brand {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.cx-pp-brand b {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
}

.cx-pp-brand small {
  margin-top: 4px;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
}

.cx-pp-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #edf2f8;
}

.cx-tab {
  padding: 6px 9px;
  border-radius: 9px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
}

.cx-tab--on {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  color: #071126;
}

.cx-pp-menu {
  color: #64748b;
  font-size: 16px;
  font-weight: 900;
}

.cx-pp-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin: 0 -12px;
  padding: 16px 18px;
  border-radius: 0 0 24px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(244, 81, 30, 0.28), transparent 60%),
    #120a06;
  color: #f6ece6;
}

.cx-pp-eyebrow {
  color: #ff8a3d;
  font-family: var(--ps-font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cx-pp-eyebrow--light {
  color: #c2410c;
}

.cx-pp-display {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.cx-out {
  color: transparent;
  -webkit-text-stroke: 1.4px #ff8a3d;
}

.cx-out--light {
  -webkit-text-stroke-color: #f4511e;
}

.cx-pp-text {
  color: #c7ab9d;
  font-size: 12px;
  line-height: 1.45;
}

.cx-pp-btn {
  align-self: stretch;
  padding: 11px 16px;
  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;
  text-align: center;
}

.cx-pp-mode {
  color: #a98e80;
  font-family: var(--ps-font-mono);
  font-size: 9.5px;
}

.cx-pp-drop {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed #e6c3b2;
  border-radius: 20px;
  background: #fff;
}

.cx-pp-drop-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cx-pp-drop-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.cx-pp-formats {
  color: #6b5447;
  font-family: var(--ps-font-mono);
  font-size: 9.5px;
}

.cx-pp-drop-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff1eb;
  color: #f4511e;
}

.cx-pp-drop-icon svg {
  width: 20px;
  height: 20px;
}

.cx-pp-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cx-pp-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #ecdcd3;
  border-radius: 18px;
  background: #fff;
}

.cx-pp-opt-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.cx-pp-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1eb;
  color: #c2410c;
  font-family: var(--ps-font-mono);
  font-size: 9px;
}

.cx-pp-tag--muted {
  background: #f6efea;
  color: #6b5447;
}

.cx-pp-opt b {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cx-pp-opt small {
  color: #6b5447;
  font-size: 11px;
  line-height: 1.4;
}

.cx-pp-chev {
  color: #a98e80;
  font-size: 22px;
}

/* Vue « scan de page » : carte de scan puis médias avec leur badge. */
.cx-pp--scan {
  padding: 14px;
  background: #f6ece6;
}

.cx-sr-grid {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cx-sr-img {
  position: relative;
  display: block;
  min-height: 130px;
  overflow: hidden;
  border-radius: 10px;
  background: #1c110b;
}

.cx-sr-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cx-sr-img--b img { filter: hue-rotate(-20deg) saturate(0.9); }
.cx-sr-img--c img { filter: hue-rotate(25deg) saturate(0.7); }
.cx-sr-img--d img { filter: grayscale(0.6) brightness(1.05); }

.cx-sr-img .cx-badge {
  top: 6px;
  right: 6px;
  padding: 3px 8px 3px 6px;
}

.cx-sr-img .cx-badge-txt {
  font-size: 9.5px;
}


.cx-shot figcaption {
  color: #d7c3b8;
  font-size: 15px;
}

@media (max-width: 900px) {
  .cx-shots {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .cx-scan-card {
    right: 0;
  }
}

@media (max-width: 420px) {
  .cx-page {
    padding: 14px;
  }

  .cx-img--a {
    min-height: 170px;
  }

  .cx-img--b,
  .cx-img--c {
    min-height: 80px;
  }

  .cx-media {
    grid-template-columns: 1.2fr 1fr;
  }

  .cx-badge-txt {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cx-scan {
    display: none;
    animation: none;
  }

  .cx-br .cx-badge,
  .cx-count,
  .cx-scan-card {
    animation: none;
  }
}
