/* edia studio — shared styles (header overlay nav, controls, fallbacks). Loaded before each page's own <style>. */

    /* ── HAMBURGER ── */
.hamburger{
  display:none;
  flex-direction:column;
  justify-content:space-around;
  width:28px;
  height:24px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:10100;
  position:relative;
}
.hamburger span{
  width:100%;
  height:2px;
  background:var(--fg);
  border-radius:10px;
  transition:background .3s ease, transform .45s cubic-bezier(0.16,1,0.3,1), opacity .3s ease, height .3s ease;
  transform-origin:center;
}
/* Hamburger bars — same in both modes, just follow --fg */
/* When overlay open: bars always go white (overlay is always dark) */
.hamburger.overlay-open span{ background:var(--bg) !important; opacity:1 !important; }
.hamburger.overlay-open span:nth-child(1){ transform:rotate(45deg) translateY(9px); }
.hamburger.overlay-open span:nth-child(2){ opacity:0 !important; transform:scaleX(0); }
.hamburger.overlay-open span:nth-child(3){ transform:rotate(-45deg) translateY(-9px); }

/* ── FULL-SCREEN OVERLAY NAV ── */
.mobile-overlay{
  position:fixed;
  inset:0;
  background:var(--fg);
  z-index:10000;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: clamp(70px,10vw,100px) clamp(28px,8vw,72px) clamp(100px,16vw,160px);
  pointer-events:none;
  transform-origin:top center;
  transform:scaleY(0);
  will-change:transform;
  overflow:hidden;
}
.mobile-overlay.is-open{ pointer-events:auto; }
.mobile-overlay-nav{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: clamp(6px,2.5vw,16px);
}
.mobile-overlay-nav li{ overflow:hidden; }
.mobile-overlay-link{
  display:flex;
  align-items:center;
  gap:16px;
  font-family:'Poppins',system-ui,sans-serif;
  font-size: clamp(36px,10vw,64px);
  font-weight:800;
  text-transform:lowercase;
  letter-spacing:-0.02em;
  line-height:1.05;
  color:var(--bg);
  text-decoration:none;
  transform:translateY(110%);
  will-change:transform;
  transition:color .22s ease, opacity .22s ease;
}
/* Light mode: dark overlay → light accent tones */
html[data-theme="light"] .mobile-overlay-link[data-sec="univers"]:hover{ color:#ebbab2; }
html[data-theme="light"] .mobile-overlay-link[data-sec="fait"]:hover    { color:#c7ddc8; }
html[data-theme="light"] .mobile-overlay-link[data-sec="cree"]:hover    { color:#cacbe2; }
html[data-theme="light"] .mobile-overlay-link[data-sec="parlons"]:hover { color:#e9eab0; }
/* Dark mode: light overlay → dark accent tones */
html[data-theme="dark"] .mobile-overlay-link[data-sec="univers"]:hover{ color:#722a1c; }
html[data-theme="dark"] .mobile-overlay-link[data-sec="fait"]:hover    { color:#33664a; }
html[data-theme="dark"] .mobile-overlay-link[data-sec="cree"]:hover    { color:#3b3075; }
html[data-theme="dark"] .mobile-overlay-link[data-sec="parlons"]:hover { color:#d7cb5b; }
/* Dot hidden — accent color + opacity contrast is sufficient */
.mobile-overlay-dot{ display:none; }

/* Non-active links: slightly dimmed so active stands out */
.mobile-overlay-link:not([aria-current="page"]){
  opacity:0.62;
}
.mobile-overlay-link:not([aria-current="page"]):hover{
  opacity:1;
}
/* Active link accent by page — light mode (dark overlay) */
html[data-theme="light"] .mobile-overlay-link[aria-current="page"][data-sec="univers"]{ color:#ebbab2; }
html[data-theme="light"] .mobile-overlay-link[aria-current="page"][data-sec="fait"]    { color:#c7ddc8; }
html[data-theme="light"] .mobile-overlay-link[aria-current="page"][data-sec="cree"]    { color:#cacbe2; }
html[data-theme="light"] .mobile-overlay-link[aria-current="page"][data-sec="parlons"] { color:#e9eab0; }
/* Active link accent — dark mode (light overlay) */
html[data-theme="dark"] .mobile-overlay-link[aria-current="page"][data-sec="univers"]{ color:#722a1c; }
html[data-theme="dark"] .mobile-overlay-link[aria-current="page"][data-sec="fait"]    { color:#33664a; }
html[data-theme="dark"] .mobile-overlay-link[aria-current="page"][data-sec="cree"]    { color:#3b3075; }
html[data-theme="dark"] .mobile-overlay-link[aria-current="page"][data-sec="parlons"] { color:#d7cb5b; }

/* Overlay footer: lang + theme + legal */
.mobile-overlay-footer{
  position:absolute;
  bottom: clamp(28px,6vw,48px);
  left: clamp(28px,8vw,72px);
  right: clamp(28px,8vw,72px);
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  opacity:0;
  transform:translateY(10px);
  will-change:transform,opacity;
}
.mobile-overlay-controls{
  display:flex;
  align-items:center;
  gap:0;
}
/* Lang codes inside overlay — inherit color from overlay context */
.mobile-overlay-footer .lang-code{
  color:var(--bg);
  opacity:.45;
  font-size:.8rem;
}
.mobile-overlay-footer .lang-code:hover{ opacity:.75; }
.mobile-overlay-footer .lang-code.active-lang{
  opacity:1 !important;
  font-weight:700 !important;
  text-decoration:underline !important;
  text-underline-offset:2px !important;
  color:var(--bg) !important;
}
.mobile-overlay-footer .lang-sep{
  color:var(--bg);
  opacity:.2;
}
.mobile-overlay-footer .controls-divider{
  background:var(--bg);
  opacity:.18;
  margin: 0 10px;
}
.mobile-overlay-footer .theme-btn{
  color:var(--bg);
  opacity:.45;
}
.mobile-overlay-footer .theme-btn:hover{ opacity:.75; }
.mobile-overlay-footer .theme-dot-ring{ stroke:var(--bg); }
.mobile-overlay-footer .theme-dot-fill{ fill:var(--bg); }
.mobile-overlay-legal{
  font-family:'Poppins',system-ui,sans-serif;
  font-size: clamp(11px,1.4vw,14px);
  font-weight:300;
  color:var(--bg);
  opacity:.5;
  text-decoration:none;
  text-transform:lowercase;
  letter-spacing:.02em;
  white-space:nowrap;
  text-align:right;
  transition:opacity .2s ease;
}
.mobile-overlay-legal:hover{ opacity:.8; }

/* ── Overlay header: logo + close button ── */
.mobile-overlay-header{
  position:absolute;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 20px clamp(20px,5vw,36px);
}
/* Logo inside overlay — always shows the inverted version */
.mobile-overlay-logo-link{
  display:block;
  line-height:0;
  flex-shrink:0;
}
.mobile-overlay-logo{
  display:block;
  height:32px;
  width:auto;
  opacity:0;
  transform:translateY(-8px);
  will-change:transform,opacity;
  transition:opacity .2s ease;
}
.mobile-overlay-logo:hover{ opacity:.7 !important; }
/* In overlay: always use the dark logo (overlay bg is --fg = dark) */
/* light mode overlay = dark bg → show dark logo (inverted = light asset) */
/* dark mode overlay  = light bg → show light logo (inverted = dark asset) */
/* Overlay inverts with theme: show correct logo for each overlay bg */
html[data-theme="light"] .mobile-overlay-logo.ov-light{ display:none; }
html[data-theme="dark"]  .mobile-overlay-logo.ov-dark{ display:none; }

/* X close button */
.mobile-overlay-close{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  opacity:0;
  transform:translateY(-8px) rotate(-90deg);
  will-change:transform,opacity;
  color:var(--bg);
  transition:opacity .2s ease, transform .2s ease;
}
.mobile-overlay-close:hover{ opacity:.6 !important; }
.mobile-overlay-close svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  stroke-width:2.5;
  stroke-linecap:round;
}

/* Closed overlay is invisible and unreachable by keyboard */
.mobile-overlay{ visibility:hidden; }
.mobile-overlay.is-open{ visibility:visible; }

/* Language switch: real links (crawlable alternates) styled like the old buttons */
a.lang-code{ display:inline-block; text-decoration:none; }

/* Touch screens have no hover: keep video controls visible */
@media (hover:none){
  .video-shell .video-controls,
  .univers-media .video-controls{ opacity:1 !important; }
}

/* Contact form status (sending…) */
.form-status{ margin:0; min-height:1.2em; font-size:clamp(11px,.9vw,12px); }
.btn[disabled], .btn[aria-busy="true"]{ opacity:.6; cursor:progress; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* No-JS / GSAP failed to load: never leave content hidden.
   The "js" class is set in <head> and removed on load if GSAP is missing. */
html:not(.js) .line-inner,
html:not(.js) .page-intro-eyebrow,
html:not(.js) .page-intro-sub,
html:not(.js) .page-intro-rule,
html:not(.js) .services-col,
html:not(.js) .services-explore-wrap,
html:not(.js) .univers-card,
html:not(.js) .univers-copy,
html:not(.js) .chantier-notice,
html:not(.js) .leadline,
html:not(.js) .genially-slot,
html:not(.js) .ai-section,
html:not(.js) .ai-eyebrow,
html:not(.js) .subtext,
html:not(.js) .sub2,
html:not(.js) .pill-btn,
html:not(.js) .hero p.lead,
html:not(.js) .hero p.line,
html:not(.js) .hero h2,
html:not(.js) .hero p.subline,
html:not(.js) .hero h3,
html:not(.js) .cta-reveal,
html:not(.js) .merci-title,
html:not(.js) .merci-sub,
html:not(.js) .pill-link{ opacity:1 !important; transform:none !important; }
html:not(.js) .chip{ opacity:1 !important; transform:rotate(var(--rot,0deg)) !important; }

/* Page transition: the curtain covers the page from the first paint (only when JS runs)
   and site.js lifts it. Colour = the section of the current page. */
html.js #page-transition{ transform:scaleY(1); }
html:has(.menu a[aria-current="page"][data-sec="univers"]) #page-transition{ background:#722a1c; }
html:has(.menu a[aria-current="page"][data-sec="fait"])    #page-transition{ background:#33664a; }
html:has(.menu a[aria-current="page"][data-sec="cree"])    #page-transition{ background:#3b3075; }
html:has(.menu a[aria-current="page"][data-sec="parlons"]) #page-transition{ background:#d7cb5b; }
html[data-theme="dark"]:has(.menu a[aria-current="page"][data-sec="univers"]) #page-transition{ background:#ebbab2; }
html[data-theme="dark"]:has(.menu a[aria-current="page"][data-sec="fait"])    #page-transition{ background:#c7ddc8; }
html[data-theme="dark"]:has(.menu a[aria-current="page"][data-sec="cree"])    #page-transition{ background:#cacbe2; }
html[data-theme="dark"]:has(.menu a[aria-current="page"][data-sec="parlons"]) #page-transition{ background:#e9eab0; }
@media (prefers-reduced-motion: reduce){ html.js #page-transition{ display:none; } }
