/* Console : hero interactif (texte à gauche, console à droite dès 1100px : postes, politique, journal d'audit), reçoit, jamais, FAQ ; l'appel final utilise .ps-endcta. */

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

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

.cs-hero-inner {
  padding-top: 56px;
  padding-bottom: 104px;
}

.cs-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
  min-width: 0;
}

.cs-h1 {
  max-width: 11em;
  color: #fff;
  font-size: clamp(46px, 6.4vw, 104px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

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

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

.cs-btn-lg {
  min-height: 56px;
  padding: 17px 28px;
  font-size: 17px;
}

/* ---------- Console interactive ---------- */

.cs-demo {
  padding-top: 48px;
}

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

.cs-win [hidden] {
  display: none !important;
}

.cs-win {
  overflow: hidden;
  border: 1px solid rgba(255, 138, 76, 0.3);
  border-radius: 16px;
  background: var(--ps-ink);
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, 0.9);
}

.cs-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ps-line);
}

.cs-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 800;
}

.cs-brand img {
  width: 20px;
  height: 20px;
}

.cs-zero {
  color: #6ee7b7;
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.cs-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  min-height: 380px;
}

.cs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px;
}

.cs-col + .cs-col {
  border-left: 1px solid rgba(255, 138, 76, 0.15);
}

.cs-h {
  color: var(--ps-orange-light);
  font-size: 12px;
  font-weight: 700;
}

.cs-fleet {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}

.cs-row[aria-pressed="true"] {
  border-color: var(--ps-orange-light);
}

.cs-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
}

.cs-dot.is-pending {
  background: var(--ps-status-untrusted);
}

.cs-host {
  overflow: hidden;
  color: #fff;
  font-family: var(--ps-font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-state {
  margin-left: auto;
  color: var(--ps-subtle-dark);
  font-size: 12px;
  white-space: nowrap;
}

.cs-approve {
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--ps-radius-pill);
  background: var(--ps-status-untrusted);
  color: var(--ps-ember);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cs-pol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 138, 76, 0.3);
  border-radius: 10px;
  color: var(--ps-muted-dark);
  font-size: 13px;
}

.cs-pol b {
  color: #fff;
}

.cs-sw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cs-tg {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #3a2419;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cs-tg[aria-checked="true"] {
  background: var(--ps-orange);
}

.cs-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ps-ease);
}

.cs-tg[aria-checked="true"] .cs-knob {
  transform: translateX(20px);
}

.cs-applied {
  color: var(--ps-peach);
  font-family: var(--ps-font-mono);
  font-size: 11px;
}

.cs-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.cs-log {
  display: flex;
  flex-direction: column;
  max-height: 380px;
  overflow: hidden;
}

.cs-l {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 138, 76, 0.1);
  color: var(--ps-nav-text);
  font-family: var(--ps-font-mono);
  font-size: 11.5px;
  line-height: 1.5;
}

.cs-l.is-new {
  animation: cs-in 0.35s ease;
}

.cs-t {
  color: var(--ps-faint-dark);
}

@keyframes cs-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

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

/* ---------- Bureau : texte à gauche, console à droite ---------- */

@media (min-width: 1100px) {
  .cs-hero-inner {
    display: grid;
    /* Deux colonnes égales : le titre garde sa taille et tient en trois lignes (quatre en français). */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
  }

  .cs-demo {
    min-width: 0;
    padding-top: 0;
  }

  /* Postes et politique côte à côte, journal d'audit en pleine largeur dessous. */
  .cs-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 0;
  }

  .cs-logcol {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 138, 76, 0.15);
  }

  .cs-col + .cs-logcol {
    border-left: 0;
  }

  .cs-log {
    max-height: 132px;
  }

  .cs-hint {
    margin-top: 14px;
  }
}

/* ---------- Titres de section, reçoit / jamais, FAQ ---------- */

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

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

.cs-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #e3cfc4;
  list-style: none;
}

.cs-list li {
  padding: 20px 0;
  border-top: 1px solid #e3cfc4;
}

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

.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) {
  .cs-hero-inner {
    padding-top: 32px;
    padding-bottom: 88px;
  }

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

  .cs-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .cs-col + .cs-col {
    border-top: 1px solid rgba(255, 138, 76, 0.15);
    border-left: 0;
  }

  .cs-log {
    max-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-row,
  .cs-tg,
  .cs-knob {
    transition: none;
  }

  .cs-l.is-new {
    animation: none;
  }
}
