/*
 * Guides Produit sans maquette (/verify, /sign-content-credentials, /c2pa-manifest-inspector,
 * /c2pa-chrome-extension, /verify-c2pa-image) : gabarit commun, préfixe pg-.
 * Règles de la revue (référence : enterprise.html) : titre de section puis sous-titre empilés,
 * textes à 19 px, titres de cartes à 26 px / 800, numéros seulement pour de vraies étapes,
 * rien d'incliné, pastilles teintées (jamais de barre latérale), appel final .ps-endcta.
 * Les scènes propres à chaque page vivent dans leur feuille dédiée.
 */

/* Les colonnes démarrent au même x que le logo du header. */
.pg .f-wrap {
  max-width: var(--ps-container);
  padding-right: var(--ps-gutter);
  padding-left: var(--ps-gutter);
}

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

.pg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.pg-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}

.pg-h1 {
  max-width: 11em;
  color: #fff;
  font-size: clamp(46px, 5.6vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

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

/* Bouton orange et lien souligné sur la même ligne, centrés verticalement (comme .ep-actions). */
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.pg-actions .ps-btn {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

.ps-page main .pg-actions .ps-link {
  align-self: center;
}

.pg-scene-col {
  display: flex;
  justify-content: center;
  min-width: 0;
}

/* Trois repères sous le hero, sans numéros. */
.pg-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  padding-top: 0;
  padding-bottom: 88px;
  list-style: none;
}

.pg-strip li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--ps-line-strong);
}

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

.pg-strip-text {
  color: #d7c3b8;
  font-size: 19px;
  line-height: 1.55;
}

/* ---------- En-tête de section : titre puis sous-titre, empilés ---------- */

.pg-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.f-dark .pg-h2 {
  color: #fff;
}

/* Mot en contour lisible sur papier. */
.f-paper .pg-h2 .f-out {
  -webkit-text-stroke-color: var(--ps-orange-dark);
}

.pg-head > p {
  max-width: 34em;
  margin: 0;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.f-dark .pg-head > p {
  color: #d7c3b8;
}

/* ---------- Pastilles teintées ---------- */

.pg-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--ps-radius-pill);
  background: rgba(255, 138, 76, 0.16);
  color: var(--ps-peach);
  font-family: var(--ps-font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.pg-pill--trusted { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }
.pg-pill--untrusted { background: rgba(245, 158, 11, 0.16); color: #fcd34d; }
.pg-pill--invalid { background: rgba(214, 38, 74, 0.16); color: #f6a3b3; }
.pg-pill--none { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }

.f-paper .pg-pill { background: rgba(244, 81, 30, 0.12); color: #9a3412; }
.f-paper .pg-pill--trusted { background: rgba(16, 185, 129, 0.14); color: #047857; }
.f-paper .pg-pill--untrusted { background: rgba(245, 158, 11, 0.18); color: #92400e; }
.f-paper .pg-pill--invalid { background: rgba(214, 38, 74, 0.13); color: #a8173a; }
.f-paper .pg-pill--none { background: rgba(100, 116, 139, 0.14); color: #475569; }

/* ---------- Étapes : numéros pleins, seulement pour une vraie séquence ---------- */

.pg-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1.5px solid var(--ps-ink);
}

.f-dark .pg-step {
  border-top-color: rgba(255, 138, 76, 0.3);
}

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

.f-dark .pg-step-num {
  color: var(--ps-orange-light);
}

.pg-step-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.f-dark .pg-step-title {
  color: #fff;
}

.pg-step-text {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.f-dark .pg-step-text {
  color: #d7c3b8;
}

/* ---------- Cartes (statuts, scénarios) ---------- */

.pg-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--ps-line-light);
  border-radius: var(--ps-radius-card);
  background: #fff;
}

.f-dark .pg-card {
  border-color: var(--ps-line);
  background: rgba(42, 24, 16, 0.55);
}

.pg-card-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.f-dark .pg-card-title {
  color: #fff;
}

.pg-card-text {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.f-dark .pg-card-text {
  color: #d7c3b8;
}

/* ---------- Deux listes face à face ---------- */

.pg-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pg-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--ps-line-light);
  border-radius: var(--ps-radius-card);
  background: #fff;
}

.f-dark .pg-col {
  border-color: var(--ps-line);
  background: rgba(42, 24, 16, 0.55);
}

.pg-col-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.f-dark .pg-col-title {
  color: #fff;
}

.pg-col > p {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.f-dark .pg-col > p {
  color: #d7c3b8;
}

/* Liste à coches : pastille ✓ teintée (comme .ps-note), jamais de dessin incliné. */
.pg-checks {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ps-line-light);
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.f-dark .pg-checks li {
  border-top-color: var(--ps-line);
  color: #d7c3b8;
}

.pg-checks li::before {
  content: "✓";
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-size: 12px;
  font-weight: 800;
}

.f-dark .pg-checks li::before {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

/* Liste « non » : pastille ✕ neutre. */
.pg-checks--no li::before {
  content: "✕";
  background: #f1e4dc;
  color: #8a7266;
}

.f-dark .pg-checks--no li::before {
  background: rgba(255, 255, 255, 0.08);
  color: #c7ab9d;
}

/* ---------- Encart d'interprétation : titre puis texte ---------- */

.pg-callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-top: 112px;
  padding-bottom: 112px;
}

.pg-callout > p {
  max-width: 40em;
  margin: 0;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.f-dark .pg-callout > p {
  color: #d7c3b8;
}

/* ---------- Pour aller plus loin ---------- */

.pg-guides {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-guides li {
  border-top: 1px solid var(--ps-line-light);
}

.pg-guides li:last-child {
  border-bottom: 1px solid var(--ps-line-light);
}

.f-dark .pg-guides li {
  border-color: rgba(255, 180, 140, 0.2);
}

.ps-page main .pg-guide {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 8px 28px;
  min-height: 44px;
  padding: 26px 8px;
  border-radius: var(--ps-radius-md);
  color: var(--ps-ink);
  text-decoration: none;
  transition: background-color 0.2s, transform 0.25s var(--ps-ease);
}

.ps-page main .pg-guide:hover {
  background: rgba(244, 81, 30, 0.06);
  transform: translateY(-2px);
}

.pg-guide .pg-pill {
  justify-self: start;
}

.pg-guide-title {
  color: var(--ps-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;
}

.pg-guide:hover .pg-guide-title {
  text-decoration-color: currentColor;
}

.pg-guide-text {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.f-dark .pg-guide-title {
  color: #fff;
}

.f-dark .pg-guide-text {
  color: #d7c3b8;
}

.ps-page main .f-dark .pg-guide:hover {
  background: rgba(255, 138, 76, 0.08);
}

/* ---------- FAQ : sans numéros, réponses au gabarit des textes ---------- */

.pg .f-q p {
  margin-left: 0;
  font-size: 19px;
  line-height: 1.55;
}

.pg .f-dark .f-q p {
  color: #d7c3b8;
}

/* ---------- Scène : fenêtre d'application commune ---------- */

.pg-win {
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 76, 0.25);
  border-radius: 18px;
  background: var(--ps-ink);
  box-shadow: var(--ps-shadow-panel);
  color: var(--ps-text-on-dark);
}

.pg-win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 138, 76, 0.15);
  background: #160d08;
  font-size: 13px;
}

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

.pg-win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a2419;
}

.pg-win-title {
  color: #fff;
  font-weight: 700;
}

.pg-win-side {
  margin-left: auto;
  color: var(--ps-faint-dark);
}

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

@media (max-width: 900px) {
  .pg-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .pg-h1 {
    font-size: clamp(40px, 11vw, 60px);
  }

  .pg-lead {
    font-size: 18px;
  }

  .pg-strip,
  .pg-pair {
    grid-template-columns: 1fr;
  }

  .pg-strip {
    gap: 20px;
    padding-bottom: 56px;
  }

  .pg-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .pg-step-num {
    font-size: 56px;
  }

  .pg-col {
    padding: 24px 20px;
  }

  .pg-callout {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .ps-page main .pg-guide {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 4px;
  }
}

@media (max-width: 520px) {
  .pg-steps {
    grid-template-columns: 1fr;
  }

  .pg-actions .ps-btn {
    flex: 1 1 100%;
  }

  .ps-page main .pg-actions .ps-link {
    align-self: flex-start;
  }
}

@media (hover: none) {
  .ps-page main .pg-guide:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-page main .pg-guide,
  .pg-guide-title {
    transition: none;
  }

  .ps-page main .pg-guide:hover {
    transform: none;
  }
}
