/* =========================================================================
   PRINTÉA — Page « Solutions d'impression » · version test avec vidéos
   Complète impression.css (inchangé).
   ========================================================================= */

/* Les vidéos gardent leurs proportions (16:9) : position et taille calculées par le script, bords fondus dans le décor */
.iv-fit { position: absolute; left: var(--vx, 0px); top: var(--vy, 0px); width: var(--vw, 100%); height: var(--vh, 100%); }
.iv-fit .iv-poster, .iv-fit .iv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iv-fit--fade { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(0deg, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(0deg, transparent 0, #000 12%, #000 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.iv-studio { background: linear-gradient(180deg, #25272a 0%, #2b2d2f 55%, #3f4044 100%); }
.iv-video { opacity: 0; transition: opacity 1.2s ease; }
.iv-video.is-ready { opacity: 1; }

/* ---------- 1. Introduction vidéo ---------- */
.iv-hero { position: relative; height: 230svh; background: #1c1f1f; }
.iv-hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #1c1f1f; }
/* la machine est décalée vers la droite pour laisser la place au titre (vidéo agrandie, jamais déformée) */
.iv-hero__media { position: absolute; inset: 0; transform-origin: 62% 50%; will-change: transform, filter; }
.iv-hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 25, 25, .82) 0%, rgba(22, 25, 25, .5) 32%, rgba(22, 25, 25, 0) 56%), linear-gradient(0deg, rgba(22, 25, 25, .55) 0%, rgba(22, 25, 25, 0) 30%); }
.iv-hero__content { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%); color: #fff; }
.iv-hero__content > * { max-width: min(46vw, 700px); }
.iv-hero__title { margin-top: 18px; font-size: clamp(40px, 5.2vw, 96px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.iv-hero__title .line-mask { padding-top: .16em; margin-top: -.16em; padding-bottom: .2em; }
.iv-hero__title .line-mask + .line-mask { margin-top: -.36em; }
.iv-hero .svc-hero__lead { max-width: 44ch; }
.iv-hero__hint { color: rgba(255, 255, 255, .7); }

/* la section suivante glisse par-dessus l'introduction */
.svc-page--impression-video .svc-intro { position: relative; z-index: 2; border-radius: var(--v-radius) var(--v-radius) 0 0; margin-top: calc(var(--v-radius) * -1); }

@media (max-width: 899px) {
  .iv-hero { height: 200svh; }
  .iv-hero__media { transform-origin: 50% 30%; }
  .iv-hero__shade { background: linear-gradient(0deg, rgba(22, 25, 25, .95) 0%, rgba(22, 25, 25, .78) 38%, rgba(22, 25, 25, .1) 66%); }
  .iv-hero__content { top: auto; bottom: 5svh; transform: none; }
  .iv-hero__content > * { max-width: none; }
  .iv-hero__title { font-size: clamp(32px, 9vw, 50px); }
  .iv-hero .svc-hero__lead { font-size: 15px; }
}
@media (max-width: 899px) and (max-height: 700px) { .iv-hero .svc-hero__lead { display: none; } }

/* ---------- 2. La technologie au service de votre performance ---------- */
.iv-tech { position: relative; z-index: 5; height: 280svh; background: var(--v-green-50); border-radius: var(--v-radius) var(--v-radius) 0 0; margin-top: calc(var(--v-radius) * -1); }
.iv-tech__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.iv-tech__frame { position: absolute; inset: 0; overflow: hidden; background: #1c1f1f; will-change: clip-path;
  clip-path: inset(9% 6% 9% 6% round 28px); }
.iv-tech__frame .iv-fit { will-change: transform; }
.iv-tech__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(22, 25, 25, .85) 0%, rgba(22, 25, 25, .55) 30%, rgba(22, 25, 25, 0) 55%); }
.iv-tech__content { position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%); color: #fff; pointer-events: none; }
.iv-tech__content > * { max-width: min(40vw, 560px); }
.iv-tech__head .eyebrow { color: rgba(255, 255, 255, .7); }
.iv-tech__title { margin-top: 16px; font-size: clamp(34px, 4vw, 66px); line-height: 1; }
.iv-tech__title .line-mask { display: block; padding-top: .14em; margin-top: -.14em; padding-bottom: .18em; }
.iv-tech__title .line-mask + .line-mask { margin-top: -.32em; }
.iv-tech__points { list-style: none; margin: clamp(22px, 4vh, 40px) 0 0; padding: 0; display: grid; gap: 10px; }
.iv-tech__points li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(28, 33, 32, .55); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; }
.iv-tech__points span { flex: none; font-size: 12px; letter-spacing: .1em; color: var(--c-cyan); font-feature-settings: "tnum" 1; padding-top: 3px; }
.iv-tech__points b { display: block; font-size: 16.5px; font-weight: 600; }
.iv-tech__points p { margin-top: 3px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.iv-tech__note { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(18px, 4svh, 34px); font-size: 11.5px; color: rgba(255, 255, 255, .5); opacity: 0; }
@media (max-width: 899px) {
  .iv-tech { height: 240svh; }
  .iv-tech__frame { clip-path: inset(10% 4% 10% 4% round 20px); }
  .iv-tech__shade { background: linear-gradient(0deg, rgba(22, 25, 25, .95) 0%, rgba(22, 25, 25, .7) 45%, rgba(22, 25, 25, .1) 70%); }
  .iv-tech__content { top: auto; bottom: 4svh; transform: none; }
  .iv-tech__content > * { max-width: none; }
  .iv-tech__title { font-size: clamp(28px, 8vw, 40px); }
  .iv-tech__points { gap: 6px; margin-top: 14px; }
  .iv-tech__points li { padding: 10px 12px; } .iv-tech__points b { font-size: 14.5px; } .iv-tech__points p { font-size: 13px; }
  .iv-tech__note { left: var(--gutter); right: auto; top: calc(var(--nav-h) + 6px); bottom: auto; }
}

/* ---------- Superposition (la section vidéo s'insère après la gamme) ---------- */
.svc-page--impression-video .svc-benefits { z-index: 6; }
.svc-page--impression-video .svc-method { z-index: 7; }
.svc-page--impression-video .svc-cta { z-index: 8; }
.svc-page--impression-video .svc-others { z-index: 9; }
.svc-page--impression-video .footer { z-index: 10; }

/* Mouvement réduit : images fixes, pas de lecture automatique */
@media (prefers-reduced-motion: reduce) {
  .iv-hero, .iv-tech { height: auto; }
  .iv-hero__stage, .iv-tech__stage { position: relative; min-height: 100svh; }
  .iv-tech__frame { clip-path: none; }
  .iv-tech__shade, .iv-tech__points li, .iv-tech__note { opacity: 1; }
}

/* ---------- Lisibilité des titres sur les plans rapprochés des vidéos ---------- */
.iv-hero__content > .iv-hero__title { max-width: none; font-size: clamp(40px, 4.7vw, 88px); }
.iv-hero__title [data-hero-line], .iv-tech__title [data-tech-line] { white-space: nowrap; }
.iv-hero__shade { background: linear-gradient(90deg, rgba(22, 25, 25, .9) 0%, rgba(22, 25, 25, .66) 34%, rgba(22, 25, 25, 0) 60%), linear-gradient(0deg, rgba(22, 25, 25, .55) 0%, rgba(22, 25, 25, 0) 30%); }
.iv-tech__shade { background: linear-gradient(90deg, rgba(22, 25, 25, .92) 0%, rgba(22, 25, 25, .74) 34%, rgba(22, 25, 25, 0) 62%); }
.iv-tech__title .tone-soft { color: rgba(255, 255, 255, .74); }
@media (max-width: 899px) {
  .iv-hero__content > .iv-hero__title { font-size: clamp(30px, 8.6vw, 48px); }
  .iv-hero__title [data-hero-line], .iv-tech__title [data-tech-line] { white-space: normal; }
  .iv-hero__shade { background: linear-gradient(0deg, rgba(22, 25, 25, .96) 0%, rgba(22, 25, 25, .82) 40%, rgba(22, 25, 25, .1) 68%); }
  .iv-tech__shade { background: linear-gradient(0deg, rgba(22, 25, 25, .96) 0%, rgba(22, 25, 25, .8) 48%, rgba(22, 25, 25, .1) 72%); }
}
.iv-hero .svc-eyebrow { line-height: 1.45; }
@media (max-width: 899px) {
  .iv-hero .svc-eyebrow { align-items: flex-start; }
  .iv-hero__hint { display: none; }
  .iv-tech__content { bottom: 3svh; }
}
@media (max-width: 899px) and (max-height: 780px) { .iv-tech__points p { display: none; } }
