/* ============================================================
   SCIP — index. Héros : copie c1–c5, vraie fenêtre du logiciel
   (Carte live) c6–c12 en perspective, mot géant SCIP derrière.
   Puis : chiffres vérifiés, film (thème sombre du logiciel),
   trois piliers en bento, écran Control et sa boucle, CTA.
   ============================================================ */

/* ---------- Héros ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: 3vw;
  padding: clamp(96px, 13vh, 150px) var(--gutter) clamp(44px, 6vh, 80px);
}
.hero .ghost { right: -0.06em; top: 8%; font-size: 34vw; }
.load-seq .ghost { transform: translateY(3vh); }
.load-seq.ready .ghost { transform: none; }

.hero-copy { position: relative; z-index: 3; }
.hero-copy .t-body { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.hero-meta { margin: 22px 0 0; color: var(--muted); }

/* la fenêtre affleure le bord droit, inclinée */
.hero-figure { position: relative; z-index: 2; margin-right: calc(-1 * var(--gutter) - 3vw); perspective: 1400px; }
.hero-figure .shot-win { transform: perspective(1400px) rotateY(-7deg); transform-origin: 0 50%; }
.hero-figure figcaption { padding: 0 calc(var(--gutter) + 3vw) 0 4px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 150px; min-height: 0; }
  .hero .ghost { font-size: 56vw; top: auto; bottom: 22%; right: -0.08em; }
  .hero-figure { margin: 30px 0 0; }
  .hero-figure figcaption { padding: 0; }
  .hero-figure .shot-win { transform: none; }
}
@media (max-width: 640px) { .hero-actions .btn { width: 100%; } }

/* ---------- Chiffres : .t-kpi du logiciel (Plex Condensed 500, tabulaire) ---------- */
.stats-section { padding-top: 0; padding-bottom: clamp(48px, 6vw, 88px); }
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin: 0; padding: clamp(22px, 2.4vw, 36px) clamp(22px, 2.8vw, 44px);
}
.stats-bar div { border-left: 1px solid var(--line); padding-left: clamp(16px, 1.6vw, 28px); }
.stats-bar div:first-child { border-left: 0; padding-left: 0; }
.stats-bar dt { color: var(--muted); }
.stats-bar dd { margin: 8px 0 0; font-family: var(--display); font-size: clamp(40px, 4.2vw, 72px); font-weight: 500; line-height: 1.05; }
@media (max-width: 860px) {
  .stats-bar { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats-bar div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Film ---------- */
.film-frame { position: relative; overflow: hidden; border-radius: var(--radius-panel); background: var(--surface); padding: clamp(8px, .8vw, 12px); }
.film-frame video { width: 100%; height: auto; border-radius: var(--radius); background: var(--bg); }
.play-cover {
  position: absolute; inset: clamp(8px, .8vw, 12px);
  border: 0; border-radius: var(--radius);
  background: rgba(18, 19, 20, .38);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--ink); cursor: pointer;
  transition: opacity .4s var(--ease), transform .12s var(--ease);
}
.play-cover.gone { opacity: 0; pointer-events: none; }
.play-circle {
  width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); border-radius: 50%;
  background: var(--accent); color: var(--on-accent);   /* action du thème sombre du logiciel */
  display: grid; place-items: center; font-size: clamp(20px, 1.8vw, 26px);
  transition: transform .3s var(--ease);
}
@media (hover:hover) and (pointer:fine) { .play-cover:hover .play-circle { transform: scale(1.06); } }
.play-meta { background: rgba(18, 19, 20, .78); padding: 7px 14px; border-radius: 999px; }
.film-meta { margin: 16px 2px 0; color: var(--muted); line-height: 1.7; }

/* ---------- Bento des piliers ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.mod {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: clamp(210px, 17vw, 270px); padding: clamp(20px, 1.9vw, 30px);
  border-radius: var(--radius-panel); text-decoration: none; color: var(--ink);
  background: var(--surface);
  transition: transform .3s var(--ease);
}
.mod .pill-tag { color: var(--muted); }
.mod h3 { margin-top: auto; }
.mod p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.mod .tabs { margin-top: 8px; }
.mod-track { grid-column: span 7; background: var(--surface-2); }
.mod-optimise { grid-column: span 5; }
.mod-reseau, .mod-local, .mod-offline { grid-column: span 4; }
.mod-setup { grid-column: span 12; min-height: 0; background: var(--surface-2); }
.mod-setup h3 { margin-top: 6px; }
.mod.fill-ink { background: var(--ink); color: var(--on-accent); }
.mod.fill-ink p, .mod.fill-ink .pill-tag { color: rgba(255, 255, 255, .68); }
.mod.fill-ink .tabs li { background: transparent; border-color: rgba(255, 255, 255, .28); color: var(--on-accent); }
@media (hover:hover) and (pointer:fine) {
  .mod:hover { transform: translateY(-4px); }
  .mod:hover .corner { transform: rotate(45deg); opacity: 1; }
}
@media (max-width: 1000px) {
  .mod-track, .mod-optimise { grid-column: span 12; }
  .mod-reseau, .mod-local { grid-column: span 6; }
  .mod-offline { grid-column: span 12; }
}
@media (max-width: 600px) { .bento > * { grid-column: span 12 !important; } }

/* ---------- Control et sa boucle ---------- */
.loop-section { padding-top: clamp(24px, 3vw, 48px); }
.loop-shot .shot-win { max-width: 1280px; margin: 0 auto; }
.loop-shot figcaption { max-width: 1280px; margin-left: auto; margin-right: auto; }
.cap-note { color: var(--dim); letter-spacing: .06em; }
.loop-steps {
  list-style: none; margin: clamp(30px, 3.4vw, 52px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.loop-steps li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--surface-2);
  opacity: .3;
}
.loop-steps li:nth-child(3) { background: var(--ink); color: var(--on-accent); } /* comme dans Control : l'étape en cours est en encre */
.loop-steps li:nth-child(3) span { color: rgba(255, 255, 255, .7); }
/* les quatre étapes s'allument dans l'ordre, une fois */
.loop-steps.in li { opacity: 1; transition: opacity .6s var(--ease); transition-delay: calc(.2s + var(--i) * .3s); }
.loop-steps .n { color: var(--muted); }
.loop-steps b { font-weight: 600; font-size: 15.5px; }
.loop-steps span:last-child { color: var(--muted); font-size: 13.5px; }
.loop-note { margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .loop-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .loop-steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .loop-steps li { opacity: 1; } }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: clamp(72px, 8vw, 128px); }
.cta-inner .hero-actions { margin-top: 32px; gap: 20px; }
.cta-meta { margin: 20px 0 0; color: var(--muted); }
