/*
 * Desktop : hero avec une réplique fidèle de l'écran d'accueil de ProvSeal Desktop (illustration
 * décorative, réduite proportionnellement par assets/scenes/desktop.js via --dk-scale),
 * plateformes et fin de page pilote.
 */

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

.dk-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;
}

/* Texte à gauche (46 %), application à droite à partir de 1100 px, comme le hero Enterprise. */
.dk-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 104px;
}

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

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

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

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

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

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

.ps-page main .dk-hero-link:hover {
  color: var(--ps-peach-light);
}

@media (min-width: 1100px) {
  /* Le titre garde sa taille : la colonne de texte (46 %) le tient en quatre lignes au plus. */
  .dk-hero-inner {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 40px;
  }

  .dk-hero-actions {
    gap: 14px 20px;
  }
}

/* Au-delà de 1280 px le titre grandit encore (6,4vw) alors que le conteneur est plafonné :
   la colonne de texte s'élargit pour rester à quatre lignes. */
@media (min-width: 1400px) {
  .dk-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (min-width: 1600px) {
  .dk-hero-inner {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
  }
}

/* ---------- Illustration : l'écran d'accueil de ProvSeal Desktop ---------- */

/*
 * Réplique de l'écran d'accueil réel (barre latérale braise, zone principale crème). La fenêtre est
 * dessinée à une largeur fixe de 1040 x 650 px puis réduite proportionnellement à la largeur de la
 * colonne : desktop.js mesure .dk-scene et pose --dk-scale (largeur / 1040). La hauteur de la scène
 * suit le même rapport grâce à aspect-ratio, sans script.
 */
.dk-demo {
  min-width: 0;
}

.dk-scene {
  --dk-w: 1040px;
  --dk-h: 650px;
  --dk-scale: 0.32; /* valeur de repli, remplacée par desktop.js */
  --dk-cream: #fdf7f2;
  --dk-ink: #1c1410;
  --dk-muted: #6f6158;
  --dk-line: #efe3da;
  --dk-brand: #e2541f;
  --dk-brand-ink: #c2410c;
  position: relative;
  width: 100%;
  max-width: var(--dk-w);
  margin: 0 auto;
  aspect-ratio: 1040 / 650;
  pointer-events: none;
  user-select: none;
}

.dk-win {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  width: var(--dk-w);
  height: var(--dk-h);
  overflow: hidden;
  border: 1px solid rgba(255, 138, 76, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #1f140f, #150d0a);
  color: var(--dk-ink);
  font-family: var(--ps-font-sans);
  box-shadow: 0 60px 110px -40px rgba(0, 0, 0, 0.9);
  transform: scale(var(--dk-scale));
  transform-origin: 0 0;
}

/* Valeurs de repli sans script, proches de la largeur réelle de la colonne. */
@media (min-width: 901px) {
  .dk-scene { --dk-scale: 0.8; }
}

@media (min-width: 1100px) {
  .dk-scene { --dk-scale: 0.48; }
}

@media (min-width: 1280px) {
  .dk-scene { --dk-scale: 0.6; }
}

/* Barre latérale : logo, Home actif, Workspaces, Manage, pastille « traité sur l'appareil ». */
.dk-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 14px 14px;
  color: #e9dcd2;
}

.dk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -14px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dk-brand img {
  width: 30px;
  height: 30px;
}

.dk-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.dk-brand-text b {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dk-brand-text span {
  margin-top: 2px;
  color: #ff6a2b;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dk-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
}

.dk-nav-label {
  margin: 16px 10px 6px;
  color: #8f7b70;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dk-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
}

.dk-nav-item svg {
  flex: none;
  color: #c9b6aa;
}

.dk-nav-item--on {
  margin-bottom: 6px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #ff7f45, #f4511e);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 26px -8px rgba(244, 81, 30, 0.7);
}

.dk-nav-item--on svg {
  color: #fff;
}

.dk-local {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid rgba(74, 222, 128, 0.32);
  border-radius: 6px;
  background: rgba(22, 101, 52, 0.22);
  color: #4ade80;
  font-size: 11.5px;
  font-weight: 600;
}

/* Zone principale : panneau crème arrondi, posé dans le cadre sombre de la fenêtre. */
.dk-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  margin: 8px 8px 8px 0;
  padding: 26px 28px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--dk-cream);
}

.dk-top {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 26px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 40% 90% at 72% 0%, rgba(214, 98, 40, 0.45), transparent 70%),
    #1a110d;
}

.dk-top-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dk-kicker,
.dk-card-k {
  color: var(--dk-brand);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dk-kicker {
  color: #ff8a4c;
}

.dk-title {
  color: #fff;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.dk-title-out {
  color: rgba(255, 138, 76, 0.28);
  -webkit-text-stroke: 1.4px #ff8a4c;
}

.dk-sub {
  color: #b9a79c;
  font-size: 12px;
}

.dk-stats {
  display: flex;
  flex: none;
  gap: 8px;
}

.dk-stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 80px;
  height: 58px;
  padding: 9px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.dk-stat-k {
  color: #cdbcb1;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dk-stat-v {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.dk-stat-v--warn {
  color: #facc15;
  font-size: 12px;
  line-height: 1.6;
}

/* Les deux cartes : vérifier un fichier, signer son travail. */
.dk-cards {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.dk-card {
  overflow: hidden;
  border: 1px solid var(--dk-line);
  border-radius: 18px;
  background: #fff;
}

.dk-card-art {
  position: relative;
  height: 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 80% at 45% 0%, rgba(176, 72, 24, 0.55), transparent 72%),
    #22150f;
}

.dk-photo {
  position: absolute;
  top: 18px;
  left: 24px;
  width: 124px;
  height: 84px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 9px;
  background:
    linear-gradient(160deg, transparent 52%, #8a3a17 53%),
    linear-gradient(180deg, #ff9b62, #e35a24);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.7);
}

.dk-photo-sun {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffe2c9;
}

.dk-checks {
  position: absolute;
  top: 22px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dk-chk {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 78px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 9.5px;
  font-weight: 500;
}

.dk-chk-dot {
  display: grid;
  flex: none;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
}

.dk-doc {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 140px;
  height: 92px;
  margin-left: -82px;
  padding: 18px 16px;
  border-radius: 9px;
  background: #fdf3ec;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7);
}

.dk-doc span {
  height: 4px;
  border-radius: 2px;
  background: #ead4c6;
}

.dk-doc span:nth-child(1) { width: 84%; }
.dk-doc span:nth-child(2) { width: 66%; }
.dk-doc span:nth-child(3) { width: 46%; }

.dk-seal {
  position: absolute;
  top: 50px;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  margin-left: 22px;
  place-items: center;
  border: 3px solid #f4511e;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 22px -8px rgba(244, 81, 30, 0.7);
}

.dk-seal img {
  width: 30px;
  height: 30px;
}

.dk-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 16px;
}

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

.dk-card-text {
  min-height: 34px;
  color: var(--dk-muted);
  font-size: 11px;
  line-height: 1.55;
}

.dk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--dk-line);
  color: var(--dk-ink);
  font-size: 11px;
  font-weight: 700;
}

.dk-card-foot--brand {
  color: var(--dk-brand-ink);
}

.dk-card-foot-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dk-card-foot-icon,
.dk-arrow {
  flex: none;
  color: var(--dk-brand);
}

/* Bandeau pointillé « Un dossier entier ? ». */
.dk-batch {
  display: flex;
  flex: none;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border: 1px dashed #e7cdbd;
  border-radius: 14px;
}

.dk-batch-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 30px;
}

.dk-batch-icon span {
  position: absolute;
  width: 26px;
  height: 20px;
  border: 1.5px solid #f4511e;
  border-radius: 5px;
  background: #fde3d4;
}

.dk-batch-icon span:nth-child(1) { top: 0; left: 0; }
.dk-batch-icon span:nth-child(2) { top: 4px; left: 4px; }
.dk-batch-icon span:nth-child(3) { top: 9px; left: 9px; border-color: #f4511e; background: linear-gradient(180deg, #ff7f45, #f4511e); }

.dk-batch-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  color: var(--dk-muted);
  font-size: 11px;
}

.dk-batch-copy b {
  color: var(--dk-ink);
  font-size: 12.5px;
  font-weight: 700;
}

.dk-batch-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dk-brand-ink);
  font-size: 11px;
  font-weight: 700;
}

.dk-batch-link .dk-arrow {
  color: currentColor;
}

/* Haut des panneaux « Activité récente » et « Identité de signature », coupés par la fenêtre. */
.dk-lower {
  display: grid;
  flex: none;
  grid-template-columns: 1.22fr 1fr;
  gap: 14px;
}

.dk-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 120px;
  padding: 18px 20px;
  border: 1px solid var(--dk-line);
  border-radius: 18px;
  background: #fff;
}

.dk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dk-panel-head b {
  color: var(--dk-ink);
  font-size: 14.5px;
  font-weight: 700;
}

.dk-panel-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--dk-line);
  border-radius: 999px;
  color: var(--dk-ink);
  font-size: 10px;
  font-weight: 600;
}

.dk-panel-meta {
  color: #9a8a80;
  font-size: 10px;
}

.dk-panel-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dk-panel-line {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #f3e9e1;
}

.dk-panel-line--short {
  flex: 0 1 50%;
}

.dk-panel-tag {
  width: 50px;
  height: 14px;
  border-radius: 999px;
  background: #fdf0c4;
}

.dk-panel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f6e7dc;
}

/* ---------- Plateformes ---------- */

.dk-platforms {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.dk-plats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dk-plat {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  border: 1px dashed rgba(255, 138, 76, 0.25);
  border-radius: var(--ps-radius-card);
  background: rgba(255, 255, 255, 0.02);
}

.dk-plat--on {
  border: 1px solid rgba(255, 138, 76, 0.45);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, rgba(244, 81, 30, 0.3), transparent 65%),
    var(--ps-ember-card);
  box-shadow: 0 30px 60px -34px rgba(244, 81, 30, 0.55);
}

.dk-plat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dk-plat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 138, 76, 0.25);
  border-radius: 14px;
  color: var(--ps-faint-dark);
}

.dk-plat--on .dk-plat-icon {
  border-color: rgba(255, 138, 76, 0.5);
  background: rgba(255, 138, 76, 0.12);
  color: var(--ps-orange-light);
}

.dk-plat-pill {
  padding: 4px 10px;
  border: 1px solid rgba(255, 211, 189, 0.2);
  border-radius: var(--ps-radius-pill);
  color: var(--ps-faint-dark);
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

.dk-plat-pill--on {
  border-color: transparent;
  background: var(--ps-orange-light);
  color: var(--ps-ember);
  font-weight: 700;
}

.dk-plat-name {
  margin-top: auto;
  color: var(--ps-muted-dark);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.dk-plat--on .dk-plat-name {
  color: #fff;
}

.dk-plat-text {
  color: #d7c3b8;
  font-size: var(--ps-lead-size);
  line-height: 1.55;
}

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

.dk-plat-chips span {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 138, 76, 0.14);
  color: var(--ps-peach);
  font-family: var(--ps-font-mono);
  font-size: 12px;
}

/* ---------- Titres de section et FAQ ---------- */

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

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

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

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

@media (max-width: 900px) {
  .dk-hero-inner {
    padding-top: 32px;
  }

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

  .dk-plats {
    grid-template-columns: 1fr;
  }

  .dk-plat {
    min-height: 0;
  }

  .dk-platforms {
    padding-top: 88px;
    padding-bottom: 88px;
  }
}
