/* Accueil : scènes propres à la page (calques du hero, bandeau, AI Act, IMATAG, extension). */

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

.hm-hero-bg {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 78% 42%, rgba(244, 81, 30, 0.34), transparent 66%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(120, 40, 10, 0.5), transparent 70%),
    var(--ps-ember);
}

.hm-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 130px;
}

.hm-hero-copy {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}

.hm-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  border: 1px solid rgba(255, 138, 76, 0.4);
  border-radius: var(--ps-radius-pill);
  background: rgba(255, 138, 76, 0.14);
  color: var(--ps-peach-light);
  font-size: 14px;
}

.hm-pill .ps-badge {
  padding: 3px 10px;
  font-size: 14px;
}

.hm-title {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hm-kicker {
  max-width: 34em;
  color: var(--ps-peach);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

.hm-slogan {
  color: #fff;
  font-size: clamp(52px, 6.4vw, 100px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hm-accent {
  color: var(--ps-orange-light);
}

.hm-lead {
  max-width: 30em;
  color: var(--ps-muted-dark);
  font-size: 21px;
  line-height: 1.5;
}

.hm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
}

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

.ps-page main .hm-text-link--peach {
  align-self: flex-start;
  color: var(--ps-peach);
}

.hm-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  color: var(--ps-faint-dark);
  font-size: 14px;
  list-style: none;
}

/* Deux engagements distincts, chacun marqué d'une coche. */
.hm-note li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hm-note li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(244, 81, 30, 0.18);
  color: var(--ps-peach);
  font-size: 11px;
  font-weight: 700;
}

/* Calques 3D : JS règle --rx/--rz (inclinaison) et --z de chaque calque. */

.hm-visual {
  display: flex;
  flex: 1 1 540px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hm-stage-wrap {
  --rx: 56;
  --rz: -34;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 560px;
  perspective: 1500px;
}

.hm-stage {
  position: relative;
  width: 340px;
  height: 228px;
  margin-right: 120px;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateZ(calc(var(--rz) * 1deg));
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ps-ease);
}

.hm-floor {
  position: absolute;
  inset: 6%;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.75);
  filter: blur(28px);
  transform: translateZ(-40px) scale(1);
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}

.hm-stage-wrap.is-exploded .hm-floor {
  transform: translateZ(-40px) scale(0.82);
}

.hm-layer {
  --z: 0px;
  position: absolute;
  inset: 0;
  transform: translateZ(var(--z));
  transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}

.hm-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.5s ease;
}

.hm-layer.is-active .hm-face {
  box-shadow: 0 0 0 2px var(--ps-orange-light), 0 0 46px 4px rgba(255, 138, 61, 0.45);
}

.hm-face--photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.hm-face--edit {
  border: 1.5px solid rgba(255, 220, 200, 0.7);
  background: linear-gradient(135deg, rgba(255, 140, 60, 0.35), rgba(120, 30, 90, 0.25));
}

.hm-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid #fff;
}

.hm-corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.hm-corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.hm-corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.hm-corner--br { right: 12px; bottom: 12px; border-right-width: 2px; border-bottom-width: 2px; }

.hm-curve {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: 64px;
  height: 42px;
}

.hm-ai-box {
  position: absolute;
  top: 26px;
  left: 34px;
  width: 150px;
  height: 84px;
  border: 2px dashed #ffe0c8;
  border-radius: 10px;
  background: rgba(255, 230, 210, 0.08);
}

.hm-ai-box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hm-ai-tag {
  position: absolute;
  top: -26px;
  left: -2px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffe0c8;
  color: var(--ps-ink);
  font-family: var(--ps-font-mono);
  font-size: 11px;
  font-weight: 500;
}

.hm-face--glass {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.1));
}

.hm-text-lines {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hm-text-lines span {
  width: 104px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.hm-text-lines span:first-child {
  width: 120px;
  background: rgba(255, 255, 255, 0.7);
}

.hm-text-lines span:nth-child(2) {
  width: 86px;
}

.hm-seal {
  position: absolute;
  top: -26px;
  right: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px var(--ps-orange), 0 16px 30px -8px rgba(244, 81, 30, 0.7);
}

.hm-seal img {
  width: 62%;
  height: 62%;
}

.hm-stage .hm-seal {
  opacity: 0;
  transform: scale(1.9);
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

.hm-stage-wrap.is-sealed .hm-seal {
  opacity: 1;
  transform: scale(1);
}

/* Étiquettes : contre-rotation pour rester face au lecteur. */
.hm-bill {
  position: absolute;
  top: 0;
  left: 100%;
  opacity: 0;
  transform: rotateZ(calc(var(--rz) * -1deg)) rotateX(calc(var(--rx) * -1deg));
  transform-origin: 0 0;
  transition: opacity 0.45s ease;
}

.hm-layer.is-active .hm-bill {
  opacity: 1;
}

.hm-bill-inner {
  display: flex;
  align-items: center;
  transform: translate(10px, -50%);
}

.hm-bill-line {
  width: 34px;
  height: 1.5px;
  background: var(--ps-orange-light);
}

.hm-bill-dot {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ps-orange-light);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.25);
}

.hm-bill-card {
  display: flex;
  flex-direction: column;
  padding: 9px 13px;
  border: 1px solid rgba(255, 138, 76, 0.45);
  border-radius: 10px;
  background: rgba(28, 17, 11, 0.92);
  line-height: 1.25;
  white-space: nowrap;
}

.hm-bill-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.hm-bill-code {
  color: var(--ps-peach);
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.hm-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.hm-segments {
  display: flex;
  gap: 6px;
}

.hm-segments span {
  flex: 1 1 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 211, 189, 0.18);
  transition: background-color 0.4s;
}

.hm-segments span.is-on {
  background: var(--ps-orange-light);
}

.hm-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.hm-caption-title {
  color: #fff;
  font-weight: 600;
}

.hm-caption-status {
  color: var(--ps-peach);
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.hm-caption-status.is-trusted {
  color: #6ee7b7;
}

/* ---------- Bandeau défilant ---------- */

@keyframes hm-marquee {
  to {
    transform: translateX(-50%);
  }
}

.hm-marquee {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 138, 76, 0.15);
  border-bottom: 1px solid rgba(255, 138, 76, 0.15);
  background: var(--ps-ember-raised);
  white-space: nowrap;
}

.hm-marquee-track {
  display: inline-block;
  color: #8f7568;
  font-family: var(--ps-font-mono);
  font-size: 15px;
  letter-spacing: 2px;
  animation: hm-marquee 40s linear infinite;
}

.hm-marquee-track span::after {
  content: "\00a0·\00a0";
}

/* ---------- Quatre étapes ---------- */

.hm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 290px;
  padding: 30px 26px;
  border-radius: var(--ps-radius-card);
  background: #fff;
  color: var(--ps-ink);
}

.hm-step-number {
  color: var(--ps-orange);
  font-size: 72px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.hm-step h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hm-step p {
  color: var(--ps-muted-light);
  font-size: 16px;
}

.hm-step-seal {
  position: absolute;
  top: 20px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ps-orange);
  border-radius: 50%;
  transform: none;
}

.hm-step--final {
  background: var(--ps-orange);
  color: #fff;
}

.hm-step--final .hm-step-number {
  color: #fff;
}

.hm-step--final p {
  color: #ffe9dc;
}

.hm-step--final .hm-step-seal {
  border: 0;
  background: #fff;
}

/* ---------- Pourquoi ---------- */

.hm-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hm-reason {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(255, 138, 76, 0.2);
  border-radius: 20px;
  background: var(--ps-ink);
}

.hm-reason-number {
  color: var(--ps-orange-light);
  font-size: 14px;
}

.hm-reason h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hm-reason p {
  color: #d7c3b8;
  font-size: 16px;
}

/* ---------- Déploiement ---------- */

.hm-archi {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

.hm-archi-card {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--ps-line-light);
  border-radius: var(--ps-radius-card);
  background: #fff;
  color: var(--ps-ink);
}

.hm-archi-card h3 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hm-archi-card p {
  color: var(--ps-muted-light);
  font-size: 16px;
}

.hm-archi-eyebrow {
  color: var(--ps-orange-dark);
  font-size: 14px;
  font-weight: 500;
}

.hm-archi-card--dark {
  border-color: rgba(255, 138, 76, 0.3);
  background: var(--ps-ink);
  color: #fff;
}

.hm-archi-card--dark .hm-archi-eyebrow {
  color: var(--ps-orange-light);
}

.hm-archi-card--dark p {
  color: #c7ab9d;
}

.hm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-chips span {
  padding: 5px 10px;
  border-radius: 6px;
  background: #fbefe8;
  color: #9a3412;
  font-family: var(--ps-font-sans);
  font-size: 14px;
  font-weight: 600;
}

.hm-archi-card--dark .hm-chips span {
  background: rgba(255, 138, 76, 0.14);
  color: var(--ps-peach);
}

@keyframes hm-packet {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

.hm-archi-link {
  display: flex;
  flex: 0 1 140px;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 10px;
  min-width: 90px;
  color: #9a7d6f;
  font-size: 11px;
  text-align: center;
}

.hm-archi-wire {
  position: relative;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #e2bfb0 0 6px, transparent 6px 12px);
}

.hm-packet {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ps-orange);
  animation: hm-packet 2.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.hm-packet--late {
  animation-delay: 1.2s;
}

/* ---------- Comparatif ---------- */

.hm-compare {
  overflow-x: auto;
}

.hm-compare table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
}

.hm-compare thead th,
.hm-compare thead td {
  padding: 0 18px 16px;
  color: #7f685c;
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.hm-compare thead td {
  width: 30%;
  padding-left: 0;
}

.hm-compare thead .hm-compare-us {
  padding: 20px 22px 16px;
  border-radius: 14px 14px 0 0;
  background: var(--ps-peach-light);
  color: var(--ps-ember);
  font-size: 18px;
  font-weight: 900;
}

.hm-compare-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hm-compare tbody th,
.hm-compare tbody td {
  padding: 16px 18px;
  border-top: 1px solid #e4d6cd;
  text-align: left;
}

.hm-compare tbody th {
  padding-left: 0;
  font-weight: 600;
}

.hm-compare tbody td {
  color: #7f685c;
}

.hm-compare tbody .hm-compare-us {
  padding: 16px 22px;
  border-top-color: #f2b99c;
  background: var(--ps-peach-light);
  color: var(--ps-ember);
  font-weight: 700;
}

.hm-compare tbody tr:last-child .hm-compare-us {
  border-radius: 0 0 14px 14px;
}

/* ---------- AI Act ---------- */

.hm-aiact {
  background:
    radial-gradient(ellipse 60% 70% at 85% 10%, rgba(244, 81, 30, 0.28), transparent 65%),
    var(--ps-ember);
}

.hm-countdown {
  --progress: 50%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hm-countdown-days {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  color: var(--ps-muted-dark);
  font-size: 16px;
}

.hm-countdown-number {
  color: var(--ps-orange-light);
  font-size: clamp(72px, 9vw, 132px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.hm-timeline {
  display: flex;
  flex: 1 1 420px;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.hm-timeline-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 211, 189, 0.15);
}

.hm-timeline-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--progress);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ps-orange-light), var(--ps-orange));
}

.hm-timeline-knob {
  position: absolute;
  top: 50%;
  left: var(--progress);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.35);
}

.hm-timeline-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}

.hm-timeline-labels > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 15em;
  color: #c7ab9d;
}

.hm-timeline-date {
  color: #fff;
  font-weight: 700;
}

.hm-timeline-today {
  max-width: 13em;
}

.hm-timeline-today .hm-timeline-date {
  color: var(--ps-orange-light);
}

.hm-timeline-end {
  text-align: right;
}

/* ---------- IMATAG ---------- */

.hm-imatag {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(244, 81, 30, 0.3), transparent 66%),
    var(--ps-ember);
}

.hm-imatag-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hm-imatag-copy {
  display: flex;
  flex: 1 1 440px;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.hm-marks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hm-marks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hm-marks li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #c7ab9d;
  font-size: 15px;
}

.hm-mark-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.hm-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: 3px;
  border-radius: 8px;
}

.hm-mark--glass {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.hm-mark--dots {
  background-color: var(--ps-ember-card);
  background-image: radial-gradient(circle, #ff9a66 1.2px, transparent 1.7px);
  background-size: 6px 6px;
}

.hm-imatag-scene {
  display: flex;
  flex: 1 1 460px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 460px;
  perspective: 1400px;
}

.hm-imatag-card {
  position: relative;
  width: 360px;
  height: 240px;
  transform-style: preserve-3d;
}

.hm-imatag-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, 0.8);
}

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

@keyframes hm-meta {
  0%, 30% { opacity: 1; transform: translateZ(26px); }
  34% { opacity: 1; transform: translateZ(60px) translateY(-6px); }
  50%, 88% { opacity: 0; transform: translateZ(140px) translateY(-80px); }
  96%, 100% { opacity: 1; transform: translateZ(26px); }
}

@keyframes hm-watermark {
  0%, 46% { opacity: 0.04; }
  58%, 84% { opacity: 0.55; }
  94%, 100% { opacity: 0.04; }
}

@keyframes hm-flash {
  0%, 30% { opacity: 0; }
  32% { opacity: 0.8; }
  38%, 100% { opacity: 0; }
}

@keyframes hm-tag-lost {
  0%, 30% { opacity: 0; transform: translate(-50%, 8px); }
  36%, 50% { opacity: 1; transform: translate(-50%, 0); }
  56%, 100% { opacity: 0; transform: translate(-50%, -6px); }
}

@keyframes hm-tag-found {
  0%, 56% { opacity: 0; transform: translate(-50%, -8px); }
  62%, 86% { opacity: 1; transform: translate(-50%, 0); }
  92%, 100% { opacity: 0; transform: translate(-50%, 0); }
}

.hm-watermark {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 214, 180, 0.95) 1.1px, transparent 1.6px);
  background-size: 11px 11px;
  mix-blend-mode: screen;
  animation: hm-watermark 9s ease infinite;
}

.hm-imatag-meta {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.12));
  animation: hm-meta 9s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

.hm-seal--small {
  top: -22px;
  right: -22px;
  width: 66px;
  height: 66px;
  box-shadow: 0 0 0 4px var(--ps-orange);
}

.hm-flash {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  animation: hm-flash 9s ease infinite;
}

.hm-tag {
  position: absolute;
  left: 50%;
  white-space: nowrap;
}

.hm-tag--lost {
  top: -54px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ps-ink);
  font-size: 12px;
  animation: hm-tag-lost 9s ease infinite both;
}

.hm-tag--found {
  bottom: -58px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--ps-orange-light);
  border-radius: 10px;
  background: var(--ps-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  animation: hm-tag-found 9s ease infinite both;
}

.hm-tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
}

/* ---------- Extension ---------- */

.hm-ext {
  overflow: hidden;
}

.hm-ext-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 64px;
}

.hm-ext-copy {
  display: flex;
  flex: 1 1 380px;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.hm-ext-copy .ps-lead {
  font-size: 18px;
}

.hm-statuses {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@keyframes hm-status-row {
  0%, 23% { background: #fff; box-shadow: 0 0 0 1px var(--ps-line-light), 0 14px 28px -18px rgba(90, 30, 8, 0.35); }
  25%, 98% { background: transparent; box-shadow: 0 0 0 1px transparent; }
  100% { background: #fff; box-shadow: 0 0 0 1px var(--ps-line-light), 0 14px 28px -18px rgba(90, 30, 8, 0.35); }
}

@keyframes hm-status-label {
  0%, 23% { opacity: 1; transform: none; }
  25%, 98% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

.hm-status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  animation: hm-status-row 12s linear infinite;
}

.hm-status .ps-status-dot {
  margin-top: 7px;
}

.hm-status > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ps-muted-light);
  font-size: 14px;
}

.hm-status-title {
  color: var(--ps-ink);
  font-size: 16px;
  font-weight: 700;
}

.hm-ext-scene {
  flex: 1 1 520px;
  min-width: 0;
  perspective: 1600px;
}

.hm-browser-tilt {
  position: relative;
  transform: rotateY(-10deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.hm-browser {
  overflow: hidden;
  border: 1px solid var(--ps-line-light);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 50px 90px -40px rgba(90, 30, 8, 0.45);
}

.hm-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ps-line-light);
  background: #f6ece6;
}

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

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

.hm-browser-url {
  flex: 1 1 auto;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #9a7d6f;
  font-size: 12px;
}

.hm-browser-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.hm-skeleton {
  width: 92%;
  height: 8px;
  border-radius: 4px;
  background: var(--ps-line-light);
}

.hm-skeleton--short {
  width: 80%;
}

.hm-skeleton--title {
  width: 70%;
  height: 14px;
  background: var(--ps-ink);
}

.hm-skeleton--title.hm-skeleton--short {
  width: 45%;
}

.hm-browser-photo {
  position: relative;
  height: 230px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 10px;
}

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

.hm-seal--tiny {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 0 3px var(--ps-orange);
}

.hm-popup {
  position: absolute;
  top: 96px;
  right: -18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 260px;
  padding: 18px;
  border: 1px solid var(--ps-line-light);
  border-radius: 14px;
  background: #fff;
  color: var(--ps-ink);
  box-shadow: 0 30px 60px -24px rgba(90, 30, 8, 0.5);
  transform: translateZ(60px);
}

.hm-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.hm-popup-states {
  position: relative;
  height: 22px;
}

.hm-popup-state {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  animation: hm-status-label 12s linear infinite;
}

/* Décalages après les raccourcis « animation » : un seul statut est mis en avant à la fois. */
.hm-status--0, .hm-popup-state--0 { animation-delay: 0s; }
.hm-status--1, .hm-popup-state--1 { animation-delay: -9s; }
.hm-status--2, .hm-popup-state--2 { animation-delay: -6s; }
.hm-status--3, .hm-popup-state--3 { animation-delay: -3s; }

.hm-popup-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid #f0e2da;
  color: var(--ps-muted-light);
  font-size: 13px;
}

.hm-popup-details b {
  color: var(--ps-ink);
}

.hm-popup-details .ps-mono {
  color: #9a7d6f;
  font-size: 11px;
}

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

@media (max-width: 900px), (hover: none) {
  .hm-floor {
    display: none;
  }

  .hm-marquee-track,
  .hm-packet,
  .hm-watermark,
  .hm-imatag-meta,
  .hm-flash,
  .hm-tag--lost,
  .hm-tag--found,
  .hm-status,
  .hm-popup-state {
    animation: none;
  }

  .hm-flash,
  .hm-tag--lost,
  .hm-popup-state {
    opacity: 0;
  }

  .hm-popup-state--0 {
    opacity: 1;
  }

  .hm-watermark {
    opacity: 0.35;
  }

  .hm-tag--found {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 900px) {
  .hm-hero {
    padding-bottom: 96px;
  }

  .hm-stage-wrap {
    height: 600px;
    zoom: 0.6;
  }

  .hm-imatag-scene {
    zoom: 0.72;
  }

  .hm-ext-scene {
    flex-basis: auto;
    zoom: 0.7;
  }

  .hm-browser-tilt {
    transform: none;
  }

  .hm-timeline-end {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hm-stage-wrap { zoom: 0.52; }
  .hm-imatag-scene { zoom: 0.64; }
  .hm-ext-scene { zoom: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-stage,
  .hm-floor,
  .hm-layer,
  .hm-face,
  .hm-bill,
  .hm-stage .hm-seal,
  .hm-segments span {
    transition: none;
  }

  .hm-marquee-track,
  .hm-packet,
  .hm-watermark,
  .hm-imatag-meta,
  .hm-flash,
  .hm-tag--lost,
  .hm-tag--found,
  .hm-status,
  .hm-popup-state {
    animation: none;
  }

  .hm-packet {
    left: 45%;
  }

  .hm-flash,
  .hm-tag--lost,
  .hm-popup-state {
    opacity: 0;
  }

  .hm-popup-state--0,
  .hm-tag--found {
    opacity: 1;
  }

  .hm-tag--found {
    transform: translate(-50%, 0);
  }

  .hm-watermark {
    opacity: 0.35;
  }
}

/* Formats pris en charge : un titre, puis une ligne compacte d'étiquettes orange. */
.hm-formats-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hm-formats-title {
  color: var(--ps-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hm-formats .hm-chips span {
  border: 1.5px solid var(--ps-orange);
  background: #fff;
  color: var(--ps-orange-dark);
  font-weight: 700;
}

.hm-formats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
}

.hm-formats-label {
  color: var(--ps-ink);
  font-size: 15px;
  font-weight: 700;
}

.hm-formats-label + .hm-chips + .hm-formats-label {
  margin-left: 18px;
  padding-left: 32px;
  border-left: 1px solid var(--ps-line-light);
}

@media (max-width: 760px) {
  .hm-formats-label + .hm-chips + .hm-formats-label {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

/* Textes des cartes harmonisés : même taille que les intros de section (19 px), et Satoshi aussi
   pour les numéros, étiquettes et puces (plus de police mono sur l'accueil). */
.ps-page main :is(.hm-step p, .hm-reason p, .hm-archi-card p, .ps-card-text, .ps-deploy-copy > span:not(:first-child)) {
  font-size: 19px;
  line-height: 1.55;
}

.ps-page main :is(.ps-mono, .hm-chips span) {
  font-family: var(--ps-font-sans);
  letter-spacing: 0.01em;
}

.ps-page main :is(.ps-card-number, .hm-reason-number, .ps-row-number) {
  font-size: 14px;
  font-weight: 700;
}

.ps-page main :is(.ps-card-trail, .hm-chips span) {
  font-size: 14px;
}


/* ---------- Pourquoi : titre + sceau de confiance, fond en dégradé ---------- */
.hm-why {
  background:
    radial-gradient(ellipse 55% 60% at 85% 20%, rgba(244, 81, 30, 0.3), transparent 65%),
    radial-gradient(ellipse 45% 40% at 5% 100%, rgba(120, 40, 10, 0.45), transparent 70%),
    var(--ps-ember);
}

.hm-why-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px 56px;
}

.hm-why-copy {
  display: flex;
  flex: 1 1 520px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.hm-why-seal {
  position: relative;
  flex: 0 0 auto;
  width: 300px;
  height: 300px;
  margin-inline: auto;
}

.hm-why-ring {
  position: absolute;
  border-radius: 50%;
}

.hm-why-ring--outer {
  inset: 0;
  border: 1px dashed rgba(255, 180, 140, 0.35);
  animation: hm-why-spin 40s linear infinite;
}

.hm-why-ring--inner {
  inset: 46px;
  border: 1px solid rgba(255, 138, 76, 0.4);
  background: radial-gradient(circle, rgba(244, 81, 30, 0.35), rgba(244, 81, 30, 0) 70%);
}

.hm-why-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px var(--ps-orange), 0 30px 80px -10px rgba(244, 81, 30, 0.7);
  transform: translate(-50%, -50%);
}

.hm-why-core img {
  width: 84px;
  height: 84px;
}

.hm-why-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 180, 140, 0.3);
  border-radius: 999px;
  background: rgba(42, 24, 16, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.hm-why-chip--a { top: 22px; right: -6px; }
.hm-why-chip--b { bottom: 52px; left: -14px; }
.hm-why-chip--c { bottom: 6px; right: 26px; }

@keyframes hm-why-spin {
  to { transform: rotate(360deg); }
}

.hm-reason-tag {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 138, 76, 0.14);
  color: var(--ps-peach);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .hm-why-seal {
    width: 240px;
    height: 240px;
  }

  .hm-why-ring--inner {
    inset: 36px;
  }

  .hm-why-core {
    width: 104px;
    height: 104px;
  }

  .hm-why-core img {
    width: 68px;
    height: 68px;
  }

  .hm-why-chip--a { right: 0; }
  .hm-why-chip--b { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-why-ring--outer {
    animation: none;
  }
}

/* Petite illustration Desktop : une fenêtre d'app avec une image scellée. */
.hm-desk {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 320px;
  border: 1px solid var(--ps-line-light);
  border-radius: 12px;
  background: #fffaf6;
  box-shadow: 0 18px 36px -22px rgba(90, 30, 8, 0.45);
}

.hm-desk-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ps-line-light);
  background: #fff;
}

.hm-desk-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ecd9cd;
}

.hm-desk-bar i:first-child {
  background: var(--ps-orange);
}

.hm-desk-body {
  display: flex;
  gap: 10px;
  padding: 10px;
}

.hm-desk-side {
  display: flex;
  flex: 0 0 54px;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}

.hm-desk-side b,
.hm-desk-lines b {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: #ecd9cd;
}

.hm-desk-side b:first-child {
  background: var(--ps-orange);
  opacity: 0.7;
}

.hm-desk-main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.hm-desk-photo {
  display: block;
  height: 78px;
  overflow: hidden;
  border-radius: 6px;
}

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

.hm-desk-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hm-desk-lines b:last-child {
  width: 60%;
}

.hm-desk-seal {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ps-orange), 0 6px 14px -4px rgba(244, 81, 30, 0.6);
}

.hm-desk-seal img {
  width: 20px;
  height: 20px;
}

/* Variante Console : tableau de bord sombre (activité + postes avec statut). */
.hm-desk--dark {
  border-color: rgba(255, 180, 140, 0.22);
  background: #22140d;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.7);
}

.hm-desk--dark .hm-desk-bar {
  border-bottom-color: rgba(255, 180, 140, 0.16);
  background: #2a1810;
}

.hm-desk--dark .hm-desk-bar i,
.hm-desk--dark .hm-desk-side b {
  background: rgba(255, 180, 140, 0.2);
}

.hm-desk--dark .hm-desk-bar i:first-child,
.hm-desk--dark .hm-desk-side b:first-child {
  background: var(--ps-orange);
}

.hm-con-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 180, 140, 0.06);
}

.hm-con-chart i {
  flex: 1 1 0;
  border-radius: 2px 2px 0 0;
  background: rgba(255, 138, 76, 0.45);
}

.hm-con-chart i:nth-child(1) { height: 40%; }
.hm-con-chart i:nth-child(2) { height: 65%; }
.hm-con-chart i:nth-child(3) { height: 50%; }
.hm-con-chart i:nth-child(4) { height: 85%; }
.hm-con-chart i:nth-child(5) { height: 60%; }
.hm-con-chart i:nth-child(6) { height: 100%; background: var(--ps-orange); }
.hm-con-chart i:nth-child(7) { height: 75%; }

.hm-con-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hm-con-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hm-con-row .ps-status-dot {
  width: 7px;
  height: 7px;
  box-shadow: none;
}

.hm-con-row b {
  flex: 1 1 auto;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 180, 140, 0.22);
}

.hm-con-row em {
  flex: 0 0 22%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 180, 140, 0.12);
}

/* Même liste à coches que sous le hero, version fond clair. */
.hm-note--light {
  color: var(--ps-muted-light);
  font-size: 16px;
}

.hm-note--light li::before {
  background: rgba(244, 81, 30, 0.14);
  color: var(--ps-orange-dark);
}

/* Tous les titres de section de l'accueil à la même taille que « Quatre étapes ». */
.ps-page main .ps-h2 {
  font-size: var(--ps-h2-size);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

/* Sous-titres de section de l'accueil : une seule taille, comme les cartes. */
.ps-page main .ps-lead {
  font-size: 19px;
  line-height: 1.55;
}

/* Comparatif fermé : tout le tableau dans un cadre arrondi, en-têtes alignés sur une même ligne. */
.hm-compare {
  border: 1px solid var(--ps-line-light);
  border-radius: var(--ps-radius-card);
  background: #fff;
}

.hm-compare thead th,
.hm-compare thead td,
.hm-compare thead .hm-compare-us {
  padding: 20px 22px;
  border-radius: 0;
  font-size: 18px;
  vertical-align: middle;
}

.hm-compare thead th,
.hm-compare thead td {
  color: var(--ps-ink);
  font-weight: 800;
}

.hm-compare tbody th,
.hm-compare tbody td,
.hm-compare tbody .hm-compare-us {
  padding: 16px 22px;
}

.hm-compare tbody tr:last-child .hm-compare-us {
  border-radius: 0;
}

/* Lien des cartes métiers : même forme que « Voir le process » du hero (texte souligné). */
.ps-page main .ps-cards .ps-card-more {
  align-self: flex-start;
  color: var(--ps-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ps-page main .ps-cards .ps-card:hover .ps-card-more {
  color: var(--ps-orange-dark);
}

/* Index des cas d'usage : titre de bloc et paragraphe au même gabarit que les sous-titres. */
.ps-page main .ps-index-intro .ps-index-title {
  margin: 0;
  font-size: 32px;
}

.ps-page main .hm-index-text {
  margin: 0;
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

/* Logos en tête des deux couches (ProvSeal / C2PA dans le fichier, IMATAG dans les pixels). */
.hm-mark--logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}

.hm-mark--logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* ---------- Extension (fond sombre) : vérification web comme dans la vraie extension ---------- */
.hm-ext .hm-status-title { color: #fff; }
.hm-ext .hm-status > span:last-child { color: #c7ab9d; }

@keyframes hm-status-row-dark {
  0%, 23% { background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 180, 140, 0.25); }
  25%, 98% { background: transparent; box-shadow: 0 0 0 1px transparent; }
  100% { background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px rgba(255, 180, 140, 0.25); }
}

.hm-ext .hm-status { animation-name: hm-status-row-dark; }
.hm-ext .ps-btn--primary { align-self: flex-start; }

.hm-ext-scene { perspective: none; }

/* Navigateur : page d'article avec les badges posés sur chaque image. */
.xw-browser {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
  border: 1px solid rgba(255, 180, 140, 0.22);
  border-radius: 16px;
  background: #fffaf6;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.xw-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ps-line-light);
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.xw-dots { display: flex; gap: 6px; }
.xw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ecd9cd; }

.xw-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #f6ece5;
  color: #8a7266;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Icône de l'extension épinglée, avec le nombre de médias analysés. */
.xw-ext {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fbefe8;
}

.xw-ext b {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 17px;
  padding: 1px 4px;
  border-radius: 999px;
  background: var(--ps-orange);
  color: #fff;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
}

.xw-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.xw-line { display: block; width: 90%; height: 7px; border-radius: 4px; background: #ecdcd3; }
.xw-line--title { width: 55%; height: 12px; background: var(--ps-ink); opacity: 0.85; }
.xw-line--short { width: 55%; }

.xw-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 220px;
}

.xw-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.xw-media--main { grid-row: span 2; }

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

.xw-media:nth-child(2) img { filter: hue-rotate(-12deg) saturate(0.8); }
.xw-media:nth-child(3) img { filter: grayscale(0.6) brightness(1.05); }

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

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

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

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

/* Popover ouvert depuis le badge : en-tête braise (sceau, titre, trois contrôles),
   puis signataire, bouton du rapport complet et mention locale. */
.xw-pv {
  --xw-tone: var(--ps-status-trusted);
  position: absolute;
  top: 128px;
  left: 96px;
  display: flex;
  flex-direction: column;
  width: 262px;
  overflow: hidden;
  border-radius: 18px;
  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;
}

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

.xw-pv-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xw-pv-seal {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--xw-tone);
  box-shadow: 0 0 0 2px var(--xw-tone), 0 8px 18px -8px var(--xw-tone);
}

.xw-pv-seal svg { display: block; width: 17px; height: 17px; }

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

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

.xw-pv-title {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

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

.xw-pv-sub {
  color: rgba(255, 250, 246, 0.68);
  font-size: 10.5px;
  line-height: 1.4;
}

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

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

.xw-pv-check i {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.xw-pv-check b { font-size: 10.5px; font-weight: 800; }

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

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

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

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

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

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

.xw-pv-signer-copy b { font-size: 13.5px; font-weight: 900; letter-spacing: -0.02em; }

.xw-pv-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  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: 12px;
  font-weight: 800;
}

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

/* Le popover déborde sous le navigateur, comme dans la vraie page. */
.hm-ext-scene { padding-bottom: 96px; }

@media (max-width: 900px) {
  .hm-ext-scene { zoom: 1; }
  .xw-pv { left: 40px; }
}

@media (max-width: 420px) {
  .hm-ext-scene { zoom: 1; padding-bottom: 110px; }
  .xw-grid { height: 180px; }
  .xw-pv { left: 12px; top: 110px; width: 236px; }
}

/* Liste « Tous les cas d'usage » : une puce orange à la place des numéros. */
.ps-row-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--ps-orange);
}
