/* Next Factory V5 — Build 8 surgical overrides — 2026-09-27 */

/* Home / 01 — three proofs use the same geometry; never crop the Cimatron 16:9 source vertically. */
.homeApproachV6 .home-proof-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.homeApproachV6 .home-proof,.homeApproachV6 .home-proof-wide{aspect-ratio:16/9!important;min-height:0!important}
.homeApproachV6 .home-proof video{width:100%;height:100%;min-height:0!important;object-fit:cover!important}
.homeApproachV6 .home-proof:first-child video{object-fit:contain!important;background:#05080c}

/* Home + Solutions / expertise — one common card architecture, equal heights. */
.home-tech-bento{grid-auto-rows:1fr;align-items:stretch}
.home-tech-bento article{min-height:360px;display:flex;flex-direction:column}
.home-tech-bento article pre,.home-tech-bento .portal-status:first-of-type{margin-top:auto}
.home-tech-bento .nf8-simulation-card{padding:20px!important;position:relative!important;aspect-ratio:auto!important}
.nf8-simulation-card .nf8-card-video{margin-top:auto;border:1px solid #2d4050;border-radius:11px;overflow:hidden;aspect-ratio:16/9;background:#05090d}
.nf8-simulation-card .nf8-card-video video{display:block;width:100%;height:100%;object-fit:cover}
.sol-cap-grid{align-items:stretch}
.sol-cap-grid article{height:100%;display:flex;flex-direction:column}
.sol-cap-grid .nf8-simulation-card{padding:18px;position:relative;min-height:330px}
.sol-cap-grid .nf8-simulation-card p{margin-bottom:14px}
.sol-cap-grid .nf8-simulation-card .nf8-card-video{margin-top:auto}

/* Solutions / bridge — preserve source framing and embedded text. */
.solBridgeV6 .bridge-video.nf8-contain-video{background:#070b10;display:flex;flex-direction:column;justify-content:center}
.solBridgeV6 .bridge-video.nf8-contain-video video{width:100%;height:auto!important;aspect-ratio:16/9;object-fit:contain!important;background:#070b10}
.solBridgeV6 .bridge-video.nf8-contain-video>span{z-index:3}

/* Home / 04 — distinct physical evidence instead of repeated tool-magazine views. */
.homeEcosystemV6 .nf8-eco-evidence{grid-template-columns:1.2fr 1fr 1fr;grid-template-rows:230px 230px;gap:12px}
.homeEcosystemV6 .nf8-eco-evidence article{min-height:0}
.homeEcosystemV6 .nf8-eco-evidence .eco-main{grid-row:1/3}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media{padding:0!important}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media img,
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.76}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#071018ee)}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media>div{position:absolute;z-index:3;left:18px;right:18px;bottom:16px}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media>div span{display:block}
.homeEcosystemV6 .nf8-eco-evidence .nf8-evidence-media>div h3{margin:8px 0 0}
.homeEcosystemV6 .nf8-eco-evidence .nf8-measure-card video{filter:saturate(.85)}

/* Home / 05 — compact crossfade carousel, four different stories. */
.home-centre-media.nf8-centre-carousel{position:relative;min-height:470px;background:#060b10;overflow:hidden}
.nf8-centre-slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity .65s ease;pointer-events:none}
.nf8-centre-slide.is-active{opacity:1;pointer-events:auto;z-index:2}
.nf8-centre-slide img,.nf8-centre-slide video{width:100%;height:100%;object-fit:cover;display:block}
.nf8-centre-slide figcaption{position:absolute;left:0;right:0;bottom:0;padding:56px 22px 18px;background:linear-gradient(transparent,#05090ee8);color:#fff;font-size:12px;letter-spacing:.02em}
.nf8-carousel-dots{position:absolute;z-index:5;right:18px;bottom:18px;display:flex;gap:7px}
.nf8-carousel-dots button{width:8px;height:8px;border-radius:50%;border:1px solid #fff9;background:#fff5;padding:0;cursor:pointer}
.nf8-carousel-dots button[aria-current="true"]{background:#fff}

/* Home / Micronora — bias crop right so Micro Vario + Julien Werlé remain visible. */
.event-editorial .nf7-micronora img{object-position:72% center!important}

/* Cimatron métier — protect the polaroid, prioritize contact zone. */
.focusOnlySection .nf5-polaroid.wide video{object-fit:cover!important;object-position:50% 50%!important}
.focusOnlySection .nf5-polaroid img[src*="masse-oscillante-resultat"]{object-position:center}

/* Centre — richest media zone, one room context only; every other tile tells a process/result story. */
.nf5-centre-gallery.nf8-centre-rich{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:220px!important;gap:12px!important}
.nf5-centre-gallery.nf8-centre-rich figure{grid-column:auto!important;grid-row:auto!important;position:relative;margin:0;border-radius:16px;overflow:hidden;background:#081018}
.nf5-centre-gallery.nf8-centre-rich figure.nf8-wide{grid-column:span 2!important;grid-row:span 2!important}
.nf5-centre-gallery.nf8-centre-rich figure.nf8-landscape{grid-column:span 2!important}
.nf5-centre-gallery.nf8-centre-rich img,.nf5-centre-gallery.nf8-centre-rich video{width:100%;height:100%;display:block;object-fit:cover}
.nf5-centre-gallery.nf8-centre-rich figcaption{position:absolute;left:0;right:0;bottom:0;padding:38px 13px 11px;background:linear-gradient(transparent,#05090ee8);color:#fff;font-size:11px}
.nf5-centre-gallery.nf8-centre-rich .nf8-contact-zone{object-position:center}

/* KERN — distinguish global manufacturer context from the Glovelier application centre. */
.nf8-kern-world{max-width:1200px;margin:26px auto 0;border:1px solid #d6dde3;border-radius:20px;overflow:hidden;background:#fff}
.nf8-kern-world-head{display:grid;grid-template-columns:.72fr 1.28fr;gap:28px;padding:22px 24px 18px;align-items:end}
.nf8-kern-world-head>span{font-size:10px;font-weight:800;letter-spacing:.13em;color:#e30613}
.nf8-kern-world-head h3{font-size:25px;line-height:1.12;margin:0 0 7px}
.nf8-kern-world-head p{font-size:12px;line-height:1.6;color:#596672;margin:0}
.nf8-kern-world-grid{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:1px;background:#d8dfe4;border-top:1px solid #d8dfe4}
.nf8-kern-world-card{position:relative;min-height:220px;background:#0b1219;color:#fff;overflow:hidden}
.nf8-kern-world-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.74}
.nf8-kern-world-card:after{content:"";position:absolute;inset:22% 0 0;background:linear-gradient(transparent,#05090ef2)}
.nf8-kern-world-card>div{position:absolute;z-index:2;left:18px;right:18px;bottom:16px}
.nf8-kern-world-card span{font-size:9px;letter-spacing:.13em;color:#ff7b84;font-weight:800}
.nf8-kern-world-card h4{font-size:18px;line-height:1.18;margin:7px 0 5px}
.nf8-kern-world-card p{font-size:11px;color:#c2ccd4;line-height:1.45;margin:0}
.nf8-kern-world-foot{display:flex;gap:8px;flex-wrap:wrap;padding:14px 18px;background:#0c151d;color:#fff}
.nf8-kern-world-foot b{border:1px solid #344654;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:700}

/* Contact — zoom the existing geographic path to Western Europe, no misleading leader lines. */
.nf7-contact-map-stage.nf8-western-europe{height:390px;background:#0a1721}
.nf7-contact-map-stage.nf8-western-europe svg{overflow:visible}
.nf7-contact-map-stage.nf8-western-europe .nf7-land{stroke-width:.10}
.nf7-contact-map-stage.nf8-western-europe .nf7-map-label{display:none!important}
.nf8-map-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 24px 22px;background:#0c151d}
.nf8-map-legend>div{border:1px solid #314553;border-radius:12px;padding:12px 14px;background:#111d26}
.nf8-map-legend b,.nf8-map-legend span{display:block}.nf8-map-legend b{font-size:12px;color:#fff}.nf8-map-legend span{font-size:11px;color:#adbbc5;margin-top:4px}
.nf8-map-dot{fill:#ff616c;stroke:#fff;stroke-width:.16;vector-effect:non-scaling-stroke}
.nf8-map-code{font-size:1.4px;font-weight:800;fill:#fff;paint-order:stroke;stroke:#08131b;stroke-width:.26px;stroke-linejoin:round}

/* Cimatron repères — fullscreen reading area must scroll; Build8 simplification cards. */
#serenite dialog.presentation #reading,#serenite dialog.presentation .reading{max-height:calc(100dvh - 112px);overflow-y:auto!important;overscroll-behavior:contain}
#serenite .group-v28-chain{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center;margin:10px 0 22px}
#serenite .group-v28-chain span,#serenite .group-v28-chain strong{padding:14px;border:1px solid #314452;border-radius:12px;text-align:center;background:#101a22;color:#fff}
#serenite .group-v28-chain strong{border-color:#ef4f59;background:#261116}
#serenite .group-v28-chain i{font-style:normal;color:#ef4f59}
#serenite .group-v28-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
#serenite .group-v28-grid article{border:1px solid #334653;border-radius:14px;padding:17px;background:#0f1820}
#serenite .group-v28-grid h3{margin:7px 0 7px;font-size:18px}#serenite .group-v28-grid p{margin:0;color:#b6c2ca;line-height:1.5;font-size:12px}
#serenite .nf8-data-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:8px}
#serenite .nf8-data-grid article{border:1px solid #344652;border-radius:14px;padding:17px;background:#0f1820}
#serenite .nf8-data-grid h3{font-size:18px;margin:0 0 8px}#serenite .nf8-data-grid p{font-size:12px;margin:0 0 6px;color:#fff}#serenite .nf8-data-grid small{color:#aebbc5;line-height:1.45}

@media(max-width:980px){
  .homeApproachV6 .home-proof-grid{grid-template-columns:1fr 1fr}.homeApproachV6 .home-proof:first-child{grid-column:1/-1}
  .homeEcosystemV6 .nf8-eco-evidence{grid-template-columns:1fr 1fr;grid-template-rows:310px 230px 230px}.homeEcosystemV6 .nf8-eco-evidence .eco-main{grid-row:auto;grid-column:1/-1}
  .nf5-centre-gallery.nf8-centre-rich{grid-template-columns:1fr 1fr!important}
  .nf8-kern-world-head{grid-template-columns:1fr}.nf8-kern-world-grid{grid-template-columns:1fr 1fr}.nf8-kern-world-card:first-child{grid-column:1/-1}
  #serenite .group-v28-grid,#serenite .nf8-data-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .homeApproachV6 .home-proof-grid{grid-template-columns:1fr}.homeApproachV6 .home-proof:first-child{grid-column:auto}
  .home-tech-bento article{min-height:0}.home-tech-bento .nf8-simulation-card{min-height:0}
  .homeEcosystemV6 .nf8-eco-evidence{grid-template-columns:1fr;grid-template-rows:none}.homeEcosystemV6 .nf8-eco-evidence .eco-main{grid-column:auto;min-height:340px}.homeEcosystemV6 .nf8-eco-evidence article{min-height:260px}
  .home-centre-media.nf8-centre-carousel{min-height:330px}
  .nf5-centre-gallery.nf8-centre-rich{grid-template-columns:1fr!important;grid-auto-rows:230px!important}.nf5-centre-gallery.nf8-centre-rich figure.nf8-wide,.nf5-centre-gallery.nf8-centre-rich figure.nf8-landscape{grid-column:auto!important;grid-row:auto!important}
  .nf8-kern-world-grid{grid-template-columns:1fr}.nf8-kern-world-card:first-child{grid-column:auto}.nf8-kern-world-card{min-height:250px}
  .nf7-contact-map-stage.nf8-western-europe{height:300px}.nf8-map-legend{grid-template-columns:1fr;padding:0 16px 18px}
  #serenite .group-v28-chain{grid-template-columns:1fr;gap:6px}#serenite .group-v28-chain i{transform:rotate(90deg);text-align:center}
}
@media(prefers-reduced-motion:reduce){.nf8-centre-slide{transition:none}}
