/*
 * Pages Solutions : gabarit commun (hero clair + scène métier, étapes, bénéfices,
 * limites du C2PA, autres cas d'usage, FAQ, appel final .ps-endcta).
 * Rythme : les sections alternent fond sombre et fond clair selon le fond du hero ;
 * « Les autres cas d’usage » est toujours la dernière section, juste avant l’appel final, sur papier ;
 * la FAQ la précède, sur fond sombre. Chaque page ajoute sa scène
 * dans assets/scenes/<page>.css et le fond de son hero (classe sl-hero--<page>).
 * Pas de fil de provenance ici : il est réservé aux pages Produit.
 */

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

.sl-hero {
  overflow: hidden;
  background: radial-gradient(ellipse 70% 70% at 70% 45%, #fff, #efe4d8 70%);
  color: var(--ps-ink);
}

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

.sl-hero-copy {
  display: flex;
  flex: 1 1 460px;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.sl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a7266;
  font-size: 14px;
}

.ps-page main .sl-crumbs a {
  color: #8a7266;
  text-decoration: none;
}

.ps-page main .sl-crumbs a:hover {
  color: var(--ps-ink);
}

.sl-crumbs [aria-current="page"] {
  color: var(--ps-ink);
}

.ps-page .sl-h1 {
  max-width: 11em;
  color: var(--ps-ink);
  font-size: clamp(46px, 5.4vw, 86px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

/* Sur fond clair, le mot en contour passe en orange foncé pour rester lisible. */
.sl-hero .f-out {
  -webkit-text-stroke-color: var(--ps-orange);
}

.sl-lead {
  max-width: 30em;
  color: #5d4c43;
  font-size: 20px;
  line-height: 1.5;
}

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

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

.ps-page main .sl-hero .sl-text-link {
  color: var(--ps-ink);
}

/* Lien secondaire du hero : sur la ligne du bouton, centré verticalement. */
.ps-page main .sl-actions .ps-link {
  align-self: center;
}

.sl-scene-col {
  flex: 1 1 520px;
  min-width: 0;
}

.sl-scene {
  max-width: 600px;
}

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

.sl-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.sl-head .f-lead {
  margin: 0;
}

/* ---------- Comment ça se passe (vraie séquence : les numéros restent) ---------- */

.sl-how {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.sl-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sl-steps li {
  display: flex;
  flex: 1 1 240px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-top: 20px;
  border-top: 1.5px solid var(--ps-ink);
}

.sl-step-num {
  color: var(--ps-orange-dark);
  font-size: 15px;
  font-weight: 700;
}

.sl-step-title {
  color: var(--ps-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.sl-step-code {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(154, 52, 18, 0.25);
  color: #9a3412;
  font-size: 13px;
}

.f-dark .sl-steps li { border-top-color: rgba(255, 180, 140, 0.35); }
.f-dark .sl-step-num { color: var(--ps-orange-light); }
.f-dark .sl-step-title { color: #fff; }
.f-dark .sl-step-text { color: #d7c3b8; }
.f-dark .sl-step-code { border-top-color: rgba(255, 180, 140, 0.25); color: var(--ps-peach); }

/* ---------- Ce que ProvSeal change (pas une séquence : aucun numéro) ---------- */

.sl-gains {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 128px;
  padding-bottom: 128px;
}

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

.sl-gain-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid #e3cfc4;
}

.sl-gain-title {
  color: var(--ps-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.sl-gain-text {
  max-width: 40em;
  color: var(--ps-muted-light);
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

.f-dark .sl-gain-list,
.f-dark .sl-gain-list li { border-color: rgba(255, 180, 140, 0.2); }
.f-dark .sl-gain-title { color: #fff; }
.f-dark .sl-gain-text { color: #d7c3b8; }

/* Limites du C2PA : section à part, ou bloc sous les bénéfices quand le rythme l'impose. */
.sl-limits {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sl-gains .sl-limits {
  margin-top: 72px;
}

/* ---------- Autres cas d’usage (dernière section, sur papier, sans numéros) ---------- */

.sl-others {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* En colonne, la base de 560 px de l'index deviendrait une hauteur : on la neutralise. */
.sl-others .ps-index-list {
  flex: none;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  width: 100%;
}

.f-dark .ps-index-list { border-bottom-color: rgba(255, 180, 140, 0.2); }
.f-dark .ps-row { border-top-color: rgba(255, 180, 140, 0.2); }

.ps-page main .f-dark .ps-row,
.ps-page main .f-dark .ps-row:hover {
  color: #fff;
}

.f-dark .ps-row::before {
  background: linear-gradient(90deg, rgba(244, 81, 30, 0.22), rgba(244, 81, 30, 0.04));
}

.f-dark .ps-row-arrow {
  color: var(--ps-orange-light);
}

/* La page en cours reste dans la liste, atténuée et non cliquable. */
.ps-page main .sl-others .ps-row[aria-current="page"] {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- FAQ : titre et sous-titre au-dessus des questions ---------- */

.f-faqg.sl-faq {
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.sl-faq > div:last-child {
  max-width: 960px;
}

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

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .sl-hero-inner {
    padding-bottom: 72px;
  }

  .sl-how,
  .sl-others,
  .sl-gains {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .sl-gains .sl-limits {
    margin-top: 48px;
  }
}

/* Étapes : numéro, titre, texte et ligne technique alignés d'une carte à l'autre (subgrid),
   la ligne technique toujours au même niveau même si le texte est court. */
.sl-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  column-gap: 32px;
  row-gap: 40px;
}

.sl-steps li {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 12px;
  align-content: start;
}

.sl-steps li .sl-step-code {
  align-self: start;
  margin-top: 0;
}

/* ---------- Comment ça se passe : cartes (titre, texte, ce que ProvSeal enregistre) ----------
   Reprend les cartes de « Le logiciel n'est plus le problème » de l'accueil ; version claire
   sur papier, version sombre sur .f-dark. Sans numéro ni étiquette d'étape. */

.sl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}

.sl-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border: 1px solid #ecd4c8;
  border-radius: 20px;
  background: #fff;
}

.ps-page main .sl-card h3 {
  color: var(--ps-ink);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ps-page main .sl-card p {
  color: var(--ps-muted-light);
  font-size: 19px;
  line-height: 1.55;
}

.sl-card-code {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1e2d9;
  color: #9a7a6a;
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.f-dark .sl-card {
  border-color: rgba(255, 138, 76, 0.2);
  background: var(--ps-ink);
}

.ps-page main .f-dark .sl-card h3 { color: #fff; }
.ps-page main .f-dark .sl-card p { color: #d7c3b8; }

.f-dark .sl-card-code {
  border-top-color: rgba(255, 180, 140, 0.2);
  color: var(--ps-peach);
}
