/* NUVIA site-wide FR/EN selector — deliberately restrained, native to all pages. */
.nv-language-switch {
  position: fixed;
  top: 23px;
  right: clamp(22px, 4vw, 68px);
  z-index: 249;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(150, 126, 79, .29);
  border-radius: 100px;
  background: rgba(255,255,255,.90);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 14px rgba(22,31,43,.065);
  isolation: isolate;
}
.nv-language-switch .nv-language-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 100px;
  width: 36px;
  min-height: 29px;
  padding: 2px 6px;
  cursor: pointer;
  background: transparent;
  font: 600 11px/1 "Inter", Arial, sans-serif;
  letter-spacing: .025em;
  color: #414344;
  -webkit-text-fill-color: #414344;
  transition: background-color .22s ease, color .22s ease;
  touch-action: manipulation;
}
.nv-language-switch .nv-language-choice:hover {
  color: #171717;
  background: rgba(190,154,74,.10);
}
.nv-language-switch .nv-language-choice.is-current {
  color: #fff;
  -webkit-text-fill-color: #fff;
  /* Use exactly the NUVIA wordmark's warm metallic-gold palette. */
  background: linear-gradient(105deg,#8A6A26 0%,#BE9A4A 30%,#EAD3A0 52%,#BE9A4A 76%,#8A6A26 100%);
  text-shadow:0 1px 1px rgba(53,34,8,.48);
}
.nv-language-switch .nv-language-choice:focus-visible {
  outline: 2px solid #947439;
  outline-offset: 3px;
}
/* The desktop control is measured against the actual sample CTA by JS;
   this nonoverlapping position is the no-JS layout fallback. */
@media(min-width:821px) {
  body > .nv-language-switch {
    top:22px;
    right:clamp(225px,19vw,285px);
    z-index:94;
  }
}
/* Bilingual desktop navigation: reserve the longest FR/EN label in
   each slot. The logo, nav anchors, and sample button keep the same x
   coordinates when switching languages (no per-language re-centering). */
@media (min-width:1100px) {
  html body #nuvia-react-navigation .nv-links > .nv-navitem:not(.nv-navitem--pricing) {
    box-sizing:border-box!important;
    flex:0 0 auto!important;
    min-width:0!important;
    margin:0!important;
  }
  html body #nuvia-react-navigation .nv-links > .nv-navitem:nth-child(1) { width:85px!important; }
  html body #nuvia-react-navigation .nv-links > .nv-navitem:nth-child(2) { width:96px!important; }
  html body #nuvia-react-navigation .nv-links > .nv-navitem:nth-child(3) { width:57px!important; }
  html body #nuvia-react-navigation .nv-links > .nv-navitem:nth-child(4) { width:108px!important; }
  html body #nuvia-react-navigation .nv-links > .nv-navitem > button,
  html body #nuvia-react-navigation .nv-links > .nv-navitem > a.nv-nav-direct-link {
    justify-content:flex-start!important;
  }
}
/* The standalone sample CTA is right-anchored. Its measured width must
   not change between "Demander un échantillon" and "Request a sample":
   otherwise the adjacent language switch slides sideways on every reload. */
@media (min-width:821px) {
  html body > a.nv-sample-cta--desktop { width:188px!important; }
}
@media (min-width:821px) and (max-width:1070px) {
  html body > a.nv-sample-cta--desktop { width:174px!important; }
}
@media(max-width:820px) {
  /* No second navigation layer on mobiles. */
  body:has(#nuvia-react-navigation) > .nv-language-switch {
    display:none!important;
  }
  /* Journal/teaser pages have no sitewide hamburger; keep the
     translator accessible at the lower-right safe area. */
  body:not(:has(#nuvia-react-navigation)) > .nv-language-switch {
    top:auto;
    left:auto;
    right:max(14px,env(safe-area-inset-right,0px));
    bottom:max(18px,env(safe-area-inset-bottom,0px));
    z-index:250;
  }
  /* Match the white menu's other rows. The language control is a LAST
     LI within the real mobile .nv-links list, directly after About. */
  html body #nuvia-react-navigation .nv-links > .nv-menu-language-row {
    box-sizing:border-box!important;
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:59px!important;
    height:59px!important;
    flex:0 0 59px!important;
    margin:0!important;
    padding:0 2px!important;
    border:0!important;
    border-top:1px solid #d5d5d5!important;
    background:#fff!important;
    box-shadow:none!important;
    color:#181a1e!important;
    opacity:1!important;
    transform:none!important;
  }
  html body #nuvia-react-navigation .nv-menu-language-row .nv-menu-language-label {
    font:500 14px/1.35 Inter,Arial,sans-serif!important;
    color:#181a1e!important;
    -webkit-text-fill-color:#181a1e!important;
    white-space:nowrap!important;
  }
  html body #nuvia-react-navigation .nv-menu-language-row .nv-language-switch {
    position:static!important;
    display:inline-flex!important;
    width:max-content!important;
    height:34px!important;
    min-width:0!important;
    max-width:none!important;
    inset:auto!important;
    margin:0!important;
    padding:2px!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    gap:2px!important;
    border:1px solid #e0ded7!important;
    border-radius:100px!important;
    background:#f7f6f2!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    opacity:1!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  html body #nuvia-react-navigation .nv-menu-language-row button.nv-language-choice {
    position:relative!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:none!important;
    width:35px!important;
    min-width:35px!important;
    height:28px!important;
    min-height:28px!important;
    padding:0 6px!important;
    margin:0!important;
    border:0!important;
    border-radius:100px!important;
    background:transparent!important;
    font:600 11px/1 Inter,Arial,sans-serif!important;
    letter-spacing:.025em!important;
    color:#414344!important;
    -webkit-text-fill-color:#414344!important;
    box-shadow:none!important;
    transition:background-color .2s ease,color .2s ease!important;
    touch-action:manipulation!important;
    -webkit-tap-highlight-color:transparent;
  }
  html body #nuvia-react-navigation .nv-menu-language-row button.nv-language-choice.is-current {
    background:linear-gradient(105deg,#8A6A26 0%,#BE9A4A 30%,#EAD3A0 52%,#BE9A4A 76%,#8A6A26 100%)!important;
    text-shadow:0 1px 1px rgba(53,34,8,.48);
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  html body #nuvia-react-navigation .nv-menu-language-row button.nv-language-choice:focus-visible {
    outline:2px solid #947439!important;
    outline-offset:2px!important;
  }
}
@media(max-width:820px) and (max-height:580px) {
  html body #nuvia-react-navigation .nv-links > .nv-menu-language-row {
    min-height:48px!important;
    height:48px!important;
    flex-basis:48px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .nv-language-switch .nv-language-choice{transition:none!important;}
}

/* Header controls must not sit below the 95-layer announcement strip.
   The strip is fixed at the page bottom, but its stacking context can
   otherwise intercept the upper-right sample link on some layouts.
   Keep dropdowns and the About flying wordmark above that strip. */
@media (min-width:821px) {
  html body #nuvia-react-navigation {z-index:96!important;}
  html body #nv-center-wordmark {z-index:97!important;}
  html body > a.nv-sample-cta--desktop {z-index:98!important;}
  html body > .nv-language-switch {z-index:99!important;}
}

/* NUVIA topbar contrast and button micro-interactions — 2026-11-02.
   Same ink/light surface signal across desktop, mobile and both languages.
   No dimensions or offsets change when scrolling, hovering or switching locale. */

/* On white sections, the frosted glass must be light rather than grey-dark;
   ink labels cannot remain legible over the old dark neutral gradient. */
html body #nv-nav-frost[data-nv-contrast="ink"]::after {
  background:linear-gradient(180deg,
    rgba(255,255,255,.86) 0%,
    rgba(255,255,255,.70) 40%,
    rgba(255,255,255,.30) 76%,
    rgba(255,255,255,0) 100%);
}

/* Higher-specificity fallback for historical desktop CSS declarations,
   including the homepage rules that previously forced white !important. */
@media (min-width:821px) {
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > button,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > button .nv-nav-label,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > button .nv-chevron,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > a.nv-nav-direct-link {
    color:#181a1e!important;
    -webkit-text-fill-color:#181a1e!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio):is(:hover,:focus-within) > button,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio)[data-open="true"] > button {
    color:#090c10!important;
    -webkit-text-fill-color:#090c10!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > button .nv-nav-label::after,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > a.nv-nav-direct-link .nv-nav-label::after {
    background:#181a1e!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > button:focus-visible,
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-links > .nv-navitem:not(.nv-navitem--studio) > a.nv-nav-direct-link:focus-visible {
    outline-color:#181a1e!important;
  }
  /* Studio keeps its identity color, deepening on light backgrounds.
     The Nuvia wordmark deliberately remains gold on both surfaces. */
  html body #nuvia-react-navigation[data-nv-contrast="ink"] .nv-navitem--studio > a.nv-nav-direct-link {
    color:#C85F4A!important;
    -webkit-text-fill-color:#C85F4A!important;
  }
}

/* CTA: subtle glint and raised hover, with no scale/width change at rest.
   White/sky uses a porcelain control; white sections use a neutral control. */
html body > a.nv-sample-cta--desktop,
html body #nuvia-react-navigation .nv-sample-cta--mobile {
  overflow:hidden;
  isolation:isolate;
  --nv-sample-glint:rgba(230,202,142,.48);
  transition:background-color .26s ease,border-color .26s ease,
    box-shadow .26s ease,color .26s ease,transform .28s cubic-bezier(.22,.75,.25,1)!important;
}
/* Preserve the native fixed desktop topbar and the mobile grid slot. */
html body > a.nv-sample-cta--desktop {position:fixed;}
html body #nuvia-react-navigation .nv-sample-cta--mobile {position:relative;}

html body > a.nv-sample-cta--desktop::after,
html body #nuvia-react-navigation .nv-sample-cta--mobile::after {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(107deg,transparent 22%,var(--nv-sample-glint) 43%,rgba(255,255,255,.43) 52%,transparent 78%);
  opacity:0;
  transform:translate3d(-105%,0,0);
  transition:transform .72s cubic-bezier(.22,.75,.25,1),opacity .18s ease;
  pointer-events:none;
}
html body > a.nv-sample-cta--desktop {
  color:#1b2530;
  -webkit-text-fill-color:#1b2530;
}
html[data-nv-topbar-tone="ink"] body > a.nv-sample-cta--desktop {
  --nv-sample-glint:rgba(255,255,255,.18);
  color:#181a1e;
  -webkit-text-fill-color:#181a1e;
  background:rgba(250,250,250,.96);
  border-color:rgba(22,29,39,.18);
  box-shadow:0 2px 9px rgba(12,22,32,.055);
}
@media (hover:hover) and (pointer:fine) {
  html body > a.nv-sample-cta--desktop:hover,
  html body #nuvia-react-navigation .nv-sample-cta--mobile:hover {
    transform:translate3d(0,-1px,0);
  }
  html body > a.nv-sample-cta--desktop:hover::after,
  html body #nuvia-react-navigation .nv-sample-cta--mobile:hover::after {
    opacity:1;
    transform:translate3d(105%,0,0);
  }
  html[data-nv-topbar-tone="ink"] body > a.nv-sample-cta--desktop:hover {
    background:#1b222b!important;
    border-color:#1b222b!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 16px rgba(12,22,32,.16);
  }
  html[data-nv-topbar-tone="light"] body > a.nv-sample-cta--desktop:hover {
    background:#1b222b!important;
    border-color:#1b222b!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 16px rgba(13,34,63,.20);
  }
}
html body > a.nv-sample-cta--desktop:active,
html body #nuvia-react-navigation .nv-sample-cta--mobile:active {
  transform:scale(.986);
}

/* One shared dark reveal on sky and white, desktop hover and mobile press.
   The same glint travels across both CTA incarnations, without shifting
   their fixed/grid coordinates or requiring another animation loop. */
@media (hover:hover) and (pointer:fine) {
  html body #nuvia-react-navigation .nv-sample-cta--mobile:hover {
    background:#1b222b!important;
    border-color:#1b222b!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 16px rgba(12,22,32,.17)!important;
  }
}
html body > a.nv-sample-cta--desktop:is(:active,:focus-visible),
html body #nuvia-react-navigation .nv-sample-cta--mobile:is(:active,:focus-visible) {
  background:#1b222b!important;
  border-color:#1b222b!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html body > a.nv-sample-cta--desktop:is(:hover,:focus-visible,:active)::after,
html body #nuvia-react-navigation .nv-sample-cta--mobile:is(:hover,:focus-visible,:active)::after {
  opacity:1;
  transform:translate3d(105%,0,0);
}
@media (max-width:820px) {
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile:is(:active,:focus-visible) {
    background:#343e4b!important;
    border-color:#343e4b!important;
  }
}

/* Language selector: sky = warm translucent ivory and gold active state.
   White = neutral white shell, ink active state; slot sizes never change. */
html body > .nv-language-switch {
  transition:border-color .30s ease,background-color .30s ease,
    box-shadow .30s ease;
}
html[data-nv-topbar-tone="light"] body > .nv-language-switch {
  background:rgba(255,255,255,.92);
  border-color:rgba(255,255,255,.72);
}
html[data-nv-topbar-tone="ink"] body > .nv-language-switch {
  background:rgba(250,250,250,.97);
  border-color:rgba(22,29,39,.17);
  box-shadow:0 2px 8px rgba(12,22,32,.05);
}
html body > .nv-language-switch .nv-language-choice {
  transition:transform .20s ease,background-color .24s ease,
    color .24s ease,box-shadow .24s ease;
}
html[data-nv-topbar-tone="ink"] body > .nv-language-switch .nv-language-choice.is-current {
  background:#1b222b!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
@media (hover:hover) and (pointer:fine) {
  html body > .nv-language-switch .nv-language-choice:hover {
    transform:translate3d(0,-1px,0);
  }
  html[data-nv-topbar-tone="light"] body > .nv-language-switch .nv-language-choice:not(.is-current):hover {
    background:#f0eadd;
  }
  html[data-nv-topbar-tone="ink"] body > .nv-language-switch .nv-language-choice:not(.is-current):hover {
    background:#e8e9eb;
    color:#171b22;
    -webkit-text-fill-color:#171b22;
  }
  html[data-nv-topbar-tone="ink"] body > .nv-language-switch .nv-language-choice.is-current:hover {
    background:#333c48;
  }
  html[data-nv-topbar-tone="light"] body > .nv-language-switch .nv-language-choice.is-current:hover {
    background:linear-gradient(105deg,#8A6A26 0%,#BE9A4A 30%,#EAD3A0 52%,#BE9A4A 76%,#8A6A26 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 2px 5px rgba(78,53,16,.18);
  }
}
html body .nv-language-switch .nv-language-choice:active {
  transform:scale(.94);
}

/* Small screens: contrast the TOP CONTROLS only. The mobile drawer remains
   a white panel with dark text regardless of the section underneath it. */
@media (max-width:820px) {
  html body #nuvia-react-navigation[data-nv-contrast="ink"]:not([data-mobile-open="true"]) .nv-mobile-toggle::before {
    border-color:rgba(24,30,38,.56)!important;
    background:rgba(255,255,255,.92)!important;
    box-shadow:0 1px 5px rgba(12,22,32,.065)!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"]:not([data-mobile-open="true"]) .nv-mobile-stroke {
    background:#171b22!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="light"]:not([data-mobile-open="true"]) .nv-mobile-stroke {
    background:#fff!important;
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"]:not([data-mobile-open="true"]) .nv-sample-cta--mobile {
    --nv-sample-glint:rgba(32,44,60,.085);
    background:rgba(250,250,250,.97)!important;
    border-color:rgba(22,29,39,.18)!important;
    color:#181a1e!important;
    -webkit-text-fill-color:#181a1e!important;
    box-shadow:0 2px 8px rgba(12,22,32,.06)!important;
  }
  html body #nuvia-react-navigation[data-mobile-open="true"] .nv-sample-cta--mobile {
    --nv-sample-glint:rgba(255,255,255,.16);
  }
  html body #nuvia-react-navigation[data-nv-contrast="ink"]:not([data-mobile-open="true"]) .nv-sample-cta--mobile:active {
    background:#1b222b!important;
    border-color:#1b222b!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }
  html body #nuvia-react-navigation .nv-sample-cta--mobile:focus-visible {
    outline:2px solid #947439!important;
    outline-offset:2px!important;
  }
  /* Respect the existing mobile language row. Keep its selected gold
     button and menu dimensions unchanged; only add a press response. */
  html body #nuvia-react-navigation .nv-menu-language-row .nv-language-choice {
    transition:transform .20s ease,background-color .22s ease,color .22s ease!important;
  }
}
/* Stable interaction layer shared by both sample CTAs.
   Do not depend on hover/pointer media emulation for desktop painting.
   Color is identical regardless of the sky or white section beneath it. */
@media (min-width:821px) {
  html body > a.nv-sample-cta--desktop:hover,
  html body > a.nv-sample-cta--desktop:focus-visible {
    background-color:#1b222b!important;
    border-color:#1b222b!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    box-shadow:0 5px 16px rgba(12,22,32,.17)!important;
    transform:translate3d(0,-1px,0)!important;
  }
  html body > a.nv-sample-cta--desktop:hover::after,
  html body > a.nv-sample-cta--desktop:focus-visible::after {
    opacity:1!important;
    transform:translate3d(105%,0,0)!important;
  }
}
/* In Safari the selected pill can remain gold while background-color
   interpolates, after the whole navbar has already switched to ink.
   Switch its surface color atomically; retain lift/press animation. */
html body > .nv-language-switch .nv-language-choice.is-current {
  transition:transform .20s ease,box-shadow .24s ease!important;
}

@media (prefers-reduced-motion:reduce) {
  html body > a.nv-sample-cta--desktop,
  html body #nuvia-react-navigation .nv-sample-cta--mobile,
  html body > a.nv-sample-cta--desktop::after,
  html body #nuvia-react-navigation .nv-sample-cta--mobile::after,
  html body > .nv-language-switch,
  html body .nv-language-switch .nv-language-choice {
    transition:none!important;
    animation:none!important;
  }
}
