/* ════════════════════════════════════════
   IVOSTUD France — Premium Light Industrial
   ════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --ink: #1a1e26;
  --ink-muted: #5a6577;
  --ink-light: #8a94a6;
  --blue: #7d222a;
  --blue-hover: #641b22;
  --gold: #b8862e;
  --border: #e2e6ec;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:100%;scroll-behavior:smooth}
body{overflow-x:hidden}
body{font-family:var(--font);font-size:.95rem;line-height:1.6;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-decoration:none;transition:color .2s}
a:hover{color:var(--blue-hover);text-decoration:underline}
::selection{background:var(--blue);color:#fff}
.skip-link{position:absolute;top:-9999px;left:50%;background:var(--blue);color:#fff;padding:.6rem 1.2rem;z-index:9999;font-weight:600}
.skip-link:focus{top:0}
.container{max-width:var(--container);margin:0 auto;padding:0 1.5rem}
h1,h2,h3{line-height:1.2;font-weight:700;color:var(--ink);letter-spacing:-.01em}
h1{font-size:clamp(1.7rem,4vw,3rem)}
h2{font-size:clamp(1.3rem,3vw,2rem)}
h3{font-size:1.05rem}
p{margin-bottom:.75rem;max-width:70ch}
.text-gold{color:var(--gold)}

/* ── Buttons ── */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.6rem;font-weight:600;font-size:.9rem;border:2px solid;cursor:pointer;transition:all .2s;line-height:1.3;text-decoration:none!important}
.btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.btn-primary:hover{background:var(--blue-hover);color:#fff}
.btn-outline{background:transparent;color:var(--ink);border-color:var(--border)}
.btn-outline:hover{border-color:var(--blue);color:var(--blue)}

/* ── Header — white default, black only on .home ── */
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);transition:background .4s,border-color .4s;view-transition-name:site-header}
.header-inner{display:flex;justify-content:space-between;align-items:center;height:64px}
.logo img{height:52px;width:auto}
.main-nav ul{list-style:none;display:flex;gap:0}
.main-nav a{display:block;padding:.5rem 1.15rem;font-size:.8rem;font-weight:600;color:var(--ink-muted);text-transform:uppercase;letter-spacing:.06em;transition:all .2s;text-decoration:none!important;border-bottom:2px solid transparent}
.main-nav a:hover{color:var(--ink);border-bottom-color:var(--border)}
.main-nav a.active{color:var(--ink);border-bottom-color:var(--ink)}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;width:44px;height:44px;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:.5rem}
.nav-toggle .bar{display:block;width:22px;height:2px;background:var(--ink);transition:all .3s}

/* Homepage only: black nav → white on scroll */
.home .site-header{background:#1a1e26;border-bottom-color:transparent}
.home .site-header.nav-scrolled{background:rgba(255,255,255,.97);border-bottom-color:var(--border)}
.home .logo img{transition:filter .4s}
.home .nav-scrolled .logo img{filter:none}
.home .main-nav a{color:rgba(255,255,255,.85)}
.home .nav-scrolled .main-nav a{color:var(--ink-muted)}
.home .main-nav a:hover{color:#fff;border-bottom-color:rgba(255,255,255,.3)}
.home .main-nav a.active{color:#fff;border-bottom-color:#fff}
.home .nav-scrolled .main-nav a:hover{color:var(--ink);border-bottom-color:var(--border)}
.home .nav-scrolled .main-nav a.active{color:var(--ink);border-bottom-color:var(--ink)}
.home .nav-toggle .bar{background:#fff}
.home .nav-scrolled .nav-toggle .bar{background:var(--ink)}

/* ── Site Frame ── */
/* ── Site Frame — air around everything ── */
.site-frame{min-height:100vh;display:flex;flex-direction:column}
.site-frame > main{flex:1}

/* ── View Transition: fade between pages ── */
@view-transition{navigation:auto}
::view-transition-old(root){animation:fade-out .25s ease-out}
::view-transition-new(root){animation:fade-in .25s ease-out}
@keyframes fade-out{from{opacity:1}to{opacity:0}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
@media(min-width:1024px){
  .site-frame{border-left:1px solid var(--border);border-right:1px solid var(--border);max-width:1560px;margin:0 auto;padding:0;box-shadow:0 0 40px rgba(0,0,0,.06)}
  body{background:#f0f2f4}
}

/* ── Hero Video (auto, no controls) ── */
.hero-video{position:relative;height:100vh;min-height:500px;max-height:800px;overflow:hidden;background:#ddd}
.hero-video video{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.hero-video-overlay{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:1}
.hero-video-content{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:center;padding:6rem 0 4rem}
.hero-video-content .container{width:100%}
.hero-video-content h1{color:#fff;font-weight:300;text-transform:uppercase;letter-spacing:.02em;line-height:1.05;font-size:clamp(1.8rem,4vw,3.5rem);max-width:14ch;margin-bottom:0}
.hero-video-content h1 strong{font-weight:700;color:var(--gold)}
.hero-video-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:2rem}
.hero-video-actions .btn-primary{background:#fff;color:#1a1e26;border-color:#fff}
.hero-video-actions .btn-primary:hover{background:rgba(255,255,255,.85);border-color:rgba(255,255,255,.85)}
.hero-video-actions .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.hero-video-actions .btn-outline:hover{background:#fff;color:#1a1e26;border-color:#fff}
.hero-video-badge{display:inline-flex;padding:.3rem .9rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.25);margin-bottom:1.25rem}

/* ── Hero small (light) ── */
.hero-sm{background:var(--surface);padding:3rem 0 2rem;border-bottom:1px solid var(--border)}
.hero-sm h1{font-weight:700;color:var(--ink);font-size:clamp(1.5rem,3vw,2.2rem);margin-bottom:.4rem}
.hero-sm p{color:var(--ink-muted);margin-bottom:0;max-width:none}

/* ── Sections ── */
.section{padding:4rem 0}
.section-surface{background:var(--surface)}
.section-alt{background:var(--bg)}
.section-header{margin-bottom:1.5rem}
.section-label{display:inline-block;font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.12em;color:var(--blue);margin-bottom:.5rem}

/* Section row — 50/50 text + image, equal height */
.section-row{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"content image";gap:2.5rem;align-items:stretch}
.section-row-rev{grid-template-areas:"image content"}
.section-content{display:flex;flex-direction:column;justify-content:center;grid-area:content}
.section-image{overflow:hidden;border-radius:8px;box-shadow:0 6px 30px rgba(0,0,0,.1);min-height:300px;grid-area:image}
.section-image img{width:100%;height:100%;object-fit:cover;display:block}

/* Certification card — full width below intro text */
.intro-full p{max-width:none}
.cert-title-mobile{display:none}.cert-card{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:1.5rem;margin-top:1.75rem;padding:1.5rem 2rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.04)}
.cert-card img{height:45px;width:auto;opacity:.8}
.cert-badges{display:flex;flex-wrap:wrap;gap:.45rem;justify-content:center}
.cert-badges span{display:inline-block;padding:.3rem .7rem;font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;background:var(--surface);border:1px solid var(--border);border-radius:4px;color:var(--ink-muted)}

/* Section accent bar — 4px blue line above headers */
.section-header.accent::before{content:'';display:block;width:48px;height:4px;background:var(--blue);margin-bottom:.85rem;border-radius:2px}

/* Thin divider between major sections — bigger visual */
.section-divider{height:1px;background:linear-gradient(90deg,transparent,var(--border) 15%,var(--border) 85%,transparent);margin:0}
.section-divider-dot{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:2.5rem 0}
.section-divider-dot::before,.section-divider-dot::after{content:'';flex:1;height:1px;background:linear-gradient(90deg,transparent,var(--border))}
.section-divider-dot::after{background:linear-gradient(90deg,var(--border),transparent)}
.section-divider-dot span{width:8px;height:8px;border-radius:50%;background:var(--blue);opacity:.4}

/* ── Anchor scroll fix (sticky header) ── */
section[id]{scroll-margin-top:80px}

/* ── Stats bar (light) ── */
.stats-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border)}
.stat-item{background:var(--bg);padding:2rem 1.5rem;text-align:center}
.stat-num{display:block;font-size:3.2rem;font-weight:200;color:var(--blue);line-height:1;margin-bottom:.15rem}
.stat-lbl{display:block;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:var(--ink);margin-bottom:.5rem}
.stat-item p{font-size:.85rem;color:var(--ink);margin-bottom:0}

/* ── Feature cards (timeline) ── */
.features-grid{max-width:780px;margin:0 auto;padding-left:2.5rem;position:relative}
.features-grid::before{content:'';position:absolute;left:0;top:.75rem;bottom:.75rem;width:2px;background:var(--border)}
.feature-card{position:relative;padding:1.75rem 1.5rem 1.75rem 2rem;border:none;border-left:none}
.feature-card::before{content:'';position:absolute;left:-2.5rem;top:2rem;width:14px;height:14px;border-radius:50%;background:var(--blue);border:3px solid var(--bg);box-shadow:0 0 0 2px var(--blue);z-index:1}
.feature-card:not(:last-child){margin-bottom:0;position:relative}
.feature-card h3{font-size:1.1rem;margin-bottom:.5rem;color:var(--blue)}
.feature-card p{font-size:.9rem;color:var(--ink-muted);margin-bottom:0;max-width:60ch}

/* ── Product image cards (spaced) ── */
.prod-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;justify-items:stretch}
.prod-grid-2x2{grid-template-columns:repeat(2,1fr)}
.prod-card{background:var(--bg);border:1px solid var(--border);transition:all .2s;display:flex;flex-direction:column}
.prod-card:hover{border-color:var(--blue);box-shadow:0 2px 12px rgba(28,105,212,.1)}
.prod-card-img{aspect-ratio:16/10;object-fit:cover;width:100%;display:block}
.prod-card-stacked > .prod-card-heading{padding:1.1rem 1.25rem .6rem;font-size:1.1rem;margin-bottom:0;font-weight:700}
.prod-card-body{padding:1rem 1.25rem 1.25rem;display:flex;flex-direction:column;flex:1}
.prod-card-body p{font-size:.85rem;color:var(--ink-muted);margin-bottom:.75rem;flex:1}
.prod-card-link{display:inline-flex;align-items:center;gap:.35rem;font-size:.8rem;font-weight:600;color:var(--blue);text-decoration:none!important;border-top:1px solid var(--border);padding-top:.75rem;width:100%}
a.prod-card{display:flex;flex-direction:column;color:inherit;text-decoration:none!important}
a.prod-card span.prod-card-link:hover::after{transform:translateX(3px)}
.prod-grid.center{justify-content:center}
.prod-grid.center > *{max-width:380px}

/* ── Center orphans in 3-col product grids ── */
.prod-grid > :last-child:nth-child(3n+1){grid-column:2}
.prod-grid-2x2 > :last-child:nth-child(2n+1){grid-column:auto}
a.prod-card:hover{cursor:pointer}
.prod-card-link:hover{color:var(--blue-hover)}
.prod-card-link::after{content:'→';transition:transform .2s}
.prod-card-link:hover::after{transform:translateX(3px)}
.prod-meta{list-style:none;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border)}
.prod-meta li{font-size:.8rem;color:var(--ink-light);padding:.2rem 0}
.prod-meta li::before{content:'— ';color:var(--blue)}

/* ── Product rows ── */
.prod-row{display:grid;grid-template-columns:1fr 1fr;gap:0;border-bottom:1px solid var(--border);text-decoration:none!important;color:inherit}
a.prod-row{cursor:pointer}
a.prod-row:hover{background:rgba(28,105,212,.02)}
.prod-row-img{width:100%;height:300px;object-fit:cover}
.prod-row-body{padding:2rem;display:flex;flex-direction:column;justify-content:center}
.prod-row-body h3{font-size:1.2rem;margin-bottom:.5rem}
.prod-row-body p{font-size:.9rem;color:var(--ink-muted);margin-bottom:0}

/* ── Image banner ── */
.img-banner{position:relative;height:360px;overflow:hidden;background:var(--surface)}
.img-banner img{width:100%;height:100%;object-fit:cover;opacity:.85}
.img-banner-overlay{position:absolute;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center}
.img-banner-overlay .container{width:100%}
.img-banner-overlay h2{color:#fff;font-weight:300;text-transform:uppercase;font-size:clamp(1.3rem,2.5vw,1.8rem);margin-bottom:.4rem}
.img-banner-overlay p{color:rgba(255,255,255,.9);max-width:50ch;font-size:.9rem;margin-bottom:0}

/* ── Contact / Value grids ── */
.contact-grid,.value-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem;border-top:1px solid var(--border);padding-top:1rem}
.contact-grid.center,.value-grid.center{display:flex;flex-wrap:wrap;justify-content:center;gap:0}
.contact-grid.center .contact-card,
.value-grid.center .value-card{flex:0 0 280px;max-width:100%}
.contact-card,.value-card{background:var(--bg);padding:1.5rem;border:1px solid var(--border)}
.contact-card h3,.value-card h3{font-size:.95rem;font-weight:600;margin-bottom:.3rem}
.contact-card p,.value-card p{font-size:.85rem;color:var(--ink-muted);margin-bottom:.2rem}

/* ── Trust bar ── */
.trust-row{display:flex;flex-wrap:wrap;align-items:center;gap:2rem;margin-top:.75rem}
.trust-item{display:flex;align-items:center;gap:.75rem}
.trust-item img{height:45px;width:auto}
.trust-item span{font-size:.8rem;font-weight:600;color:var(--ink-muted)}

/* ── CTA (light) ── */
.cta-band{background:var(--surface);border-top:1px solid var(--border);padding:4rem 0;text-align:center}
.cta-band h2{font-weight:700;margin-bottom:.5rem}
.cta-band p{color:var(--ink-muted);margin:0 auto 1.5rem;max-width:50ch}

/* ── Footer (light) ── */
.site-footer{background:var(--ink);color:rgba(255,255,255,.5);padding:4rem 0 0}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:3rem}
.footer-col h3{color:#fff;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin-bottom:1rem}
.footer-col p,.footer-col address{font-style:normal;font-size:.85rem;line-height:1.6}
.footer-col a{color:rgba(255,255,255,.5);font-size:.85rem}
.footer-col a:hover{color:#fff}
.footer-col img{height:60px;width:auto}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:3rem;padding:1.25rem 0;text-align:center;font-size:.8rem}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:.4rem}

/* ── Responsive ── */
@media(max-width:960px){.footer-grid{grid-template-columns:1fr 1fr}
.section-row{grid-template-columns:1.5fr 1fr;gap:2rem}
}
@media(max-width:768px){
.nav-toggle{display:flex}
.main-nav{display:none;position:absolute;top:64px;left:0;right:0;background:rgba(255,255,255,.98);border-bottom:1px solid var(--border)}
.home .main-nav{background:#1a1e26;border-bottom-color:rgba(255,255,255,.1)}
.home .nav-scrolled .main-nav{background:rgba(255,255,255,.98);border-bottom-color:var(--border)}
.main-nav.open{display:block}
.main-nav ul{flex-direction:column;padding:.5rem 0}
.main-nav a{padding:.7rem 1.25rem;border-bottom:1px solid var(--border)}
.home .main-nav a{border-bottom-color:rgba(255,255,255,.08)}
.home .nav-scrolled .main-nav a{border-bottom-color:var(--border)}
.stats-bar{grid-template-columns:1fr 1fr}
.stat-num{font-size:3.4rem}
.prod-grid,.prod-grid-2x2{grid-template-columns:1fr}
.prod-grid > :last-child:nth-child(n),.prod-grid-2x2 > :last-child:nth-child(n){grid-column:auto}
.prod-card-img{aspect-ratio:1/1;object-fit:cover}
#goujons .prod-card-img{aspect-ratio:21/9;object-fit:cover}
.features-grid{padding-left:2rem}
.features-grid::before{left:0}
.feature-card::before{left:-2rem;width:12px;height:12px}
.prod-row{grid-template-columns:1fr}
.prod-row-img{height:200px}
.section{padding:2.5rem 0}
.section-row{grid-template-columns:1fr;gap:1.5rem;grid-template-areas:"image" "content"}
.section-row-rev{grid-template-areas:"image" "content"}
.footer-grid{grid-template-columns:1fr}
.cert-card{flex-direction:column;text-align:center}
.cert-title-mobile{display:block;text-align:center;font-size:1.05rem;font-weight:700;margin-bottom:.75rem;color:var(--ink);letter-spacing:-.01em;text-transform:uppercase;width:100%}
}
@media(max-width:600px){
.stat-num{font-size:3.6rem;transform:scale(1.05)}
.stat-item{padding:1.8rem 1rem}
}
@media(max-width:500px){
.stats-bar{grid-template-columns:1fr}
.prod-grid,.prod-grid-2x2{grid-template-columns:1fr}
.prod-grid > :last-child:nth-child(n),.prod-grid-2x2 > :last-child:nth-child(n){grid-column:auto}
.prod-card-img{aspect-ratio:1/1;object-fit:cover}
#goujons .prod-card-img{aspect-ratio:21/9;object-fit:cover}
.section-row{grid-template-columns:1fr;gap:1rem;grid-template-areas:"image" "content"}
.section-row-rev{grid-template-areas:"image" "content"}
.section-image{min-height:200px}
.section{padding:1.5rem 0}
.section-header{margin-bottom:1rem}
.hero-video{max-height:600px}
.hero-video-content h1{font-size:1.5rem}
}