/* =====================================================================
   NuxCine — enhancement layer
   Loaded AFTER the Webflow CSS. Adds polish the export lacks without
   touching the generated styles or the visual brand.
   Brand: ink #0a0a0a · paper #ffffff · accent (yellow) #ffb906
   ===================================================================== */

:root {
  --nx-accent: #ffb906;
  --nx-accent-600: #e0a400;
  --nx-ink: #0a0a0a;
  --nx-paper: #ffffff;
  --nx-ring: 0 0 0 3px rgba(255, 185, 6, .45);
}

/* ---- Keyboard accessibility: visible focus (Webflow strips it) ------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible,
.w-inline-block:focus-visible {
  outline: 2px solid var(--nx-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
/* don't show the ring on mouse click, only keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ---- Brand text selection ------------------------------------------ */
::selection { background: var(--nx-accent); color: #0a0a0a; }
::-moz-selection { background: var(--nx-accent); color: #0a0a0a; }

/* ---- Refined scrollbar (desktop pointer devices only) -------------- */
@media (pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--nx-accent) transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: #c9c9c9; border-radius: 10px;
    border: 2px solid transparent; background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--nx-accent); background-clip: content-box; }
}

/* ---- Comfortable tap targets for icon links on touch --------------- */
@media (hover: none) {
  .social-icon-wrapper { min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; }
}

/* ---- Media: never overflow, avoid layout shift, crisp scaling ------ */
img, video { max-width: 100%; }
img[width][height] { height: auto; }

/* ---- Honour "reduce motion": calm the heavy Webflow animations ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print: keep it clean ------------------------------------------ */
@media print {
  .sticky-navigation, .waves-bar-1, .lottie-animation-7 { display: none !important; }
}

/* ---- Visual polish (on-brand, non-destructive) --------------------- */

/* Anchored sections clear the sticky nav when scrolled to */
:where(section, [id]):target { scroll-margin-top: 96px; }
section[id], [id^="qui-"], [id^="Nos-"], #highlights, #skills { scroll-margin-top: 96px; }

/* Gentle, consistent feedback on interactive elements */
a, button, [role="button"], .w-inline-block { cursor: pointer; }

/* Social icons: subtle lift on hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .social-icon-wrapper:hover { transform: translateY(-2px); }
}

/* ---- Scroll-reveal system (additive, reduced-motion safe) ---------- */
/* Hidden only when JS is active (html.nx-js); no-JS keeps content visible */
.nx-js [data-nx-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--nx-delay, 0s);
  will-change: opacity, transform;
}
.nx-js [data-nx-reveal].nx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .nx-js [data-nx-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}



/* ---- Menu plein écran : ligne horizontale des autres pages (Contact, Blogue, Studio, Academy) ----
   Alignée sous les grands liens. Elle apparaît en cascade à chaque ouverture du menu
   (le menu passe de display:none à flex, ce qui relance l'animation). */
.nx-menu-more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin: 26px 0 0 var(--nx-menu-indent, 40px); }
.nx-menu-more a {
  position: relative; padding: 6px 0; color: #bdbdbd; text-decoration: none;
  font-family: Oswald, "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; transform: translateY(14px); animation: nx-menu-in .7s cubic-bezier(.16, 1, .3, 1) forwards;
  transition: color .3s ease;
}
.nx-menu-more a + a { margin-left: 30px; }
.nx-menu-more a + a::before { content: ""; position: absolute; left: -17px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--nx-accent); }
.nx-menu-more a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--nx-accent); transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.nx-menu-more a:hover, .nx-menu-more a[aria-current="page"] { color: #fff; }
.nx-menu-more a:hover::after, .nx-menu-more a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nx-menu-more a:nth-child(1) { animation-delay: .45s; }
.nx-menu-more a:nth-child(2) { animation-delay: .52s; }
.nx-menu-more a:nth-child(3) { animation-delay: .59s; }
.nx-menu-more a:nth-child(4) { animation-delay: .66s; }
.nx-menu-more a:nth-child(5) { animation-delay: .73s; }
@keyframes nx-menu-in { to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .nx-menu-more { margin-left: 0; margin-top: 18px; }
  .nx-menu-more a { font-size: 13px; letter-spacing: .12em; }
  .nx-menu-more a + a { margin-left: 24px; }
  .nx-menu-more a + a::before { left: -14px; }
}

/* ---- Surlignage des titres : le fond se dessine comme un coup de marqueur à l'apparition ---- */
.nx-js [data-nx-reveal]:is(h1, h2, h3, p) .nx-accent:not(.nx-section--dark *):not(.nx-founder__photo *) {
  background-color: transparent;
  background-image: linear-gradient(var(--nx-mark, #ffb906), var(--nx-mark, #ffb906));
  background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .9s cubic-bezier(.65, 0, .35, 1) .4s;
}
.nx-js .nx-about__hero .nx-accent, .nx-js .nx-section--brand .nx-accent { --nx-mark: #0a0a0a; }
.nx-js [data-nx-reveal].nx-in:is(h1, h2, h3, p) .nx-accent:not(.nx-section--dark *):not(.nx-founder__photo *) { background-size: 100% 100%; }

/* ---- Cartes et vignettes : légère élévation au survol (souris uniquement) ---- */
@media (hover: hover) and (pointer: fine) {
  .nx-card, .nx-service, .nx-step, .nx-blog-card { transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s ease; }
  .nx-card:hover, .nx-step:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(0, 0, 0, .45); }
  .nx-blog-card img, .nx-proj-grid img { transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
  .nx-blog-card:hover img, .nx-proj-grid a:hover img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .nx-menu-more a { animation: none; opacity: 1; transform: none; }
  .nx-js [data-nx-reveal] .nx-accent { background-size: 100% 100% !important; transition: none !important; }
}

/* ---- Listes Webflow vides : l'export statique n'a pas les données CMS, on masque « No items found. » ---- */
.w-dyn-empty { display: none !important; }
