/* NUVIA | Footer compact, navigation seule.
   Logo et réseaux sont retirés du HTML. Aucun impact sur les topbars,
   le footer vidéo indépendant ou les pages internes. */
#nv-site-footer {
  height:auto !important;
  min-height:0 !important;
}
#nv-site-footer .nvsf-card {
  height:auto !important;
  min-height:0 !important;
  padding-bottom:30px !important;
}
#nv-site-footer .nvsf-navigation {
  margin-top:clamp(38px,4vw,54px) !important;
}
#nv-site-footer .nvsf-bottom {
  margin-top:0 !important;
  padding-top:clamp(32px,3.5vw,46px) !important;
}
@media (min-width:701px) and (max-width:800px) {
  #nv-site-footer .nvsf-navigation {
    row-gap:26px !important;
  }
}
@media (max-width:700px) {
  #nv-site-footer .nvsf-card {
    padding-bottom:24px !important;
  }
  #nv-site-footer .nvsf-navigation {
    margin-top:32px !important;
    row-gap:25px !important;
  }
  #nv-site-footer .nvsf-bottom {
    padding-top:26px !important;
  }
}
@media (max-width:500px) {
  #nv-site-footer .nvsf-card {
    padding-bottom:22px !important;
  }
  #nv-site-footer .nvsf-navigation {
    margin-top:26px !important;
    row-gap:22px !important;
  }
  #nv-site-footer .nvsf-bottom {
    padding-top:22px !important;
  }
}
/* Séparation dorée : mêmes cinq teintes que la signature Nuvia. */
#nv-site-footer .nvsf-top-rule {
  height:1px !important;
  flex:0 0 1px;
  background:linear-gradient(90deg,#8A6A26 0%,#BE9A4A 30%,#EAD3A0 52%,#BE9A4A 76%,#8A6A26 100%) !important;
}

/* NUVIA MOBILE FOOTER GRID V2 — same geometry across Home, About,
   Solutions and the eight detail pages. The document alone owns vertical scroll. */
@media (max-width:700px) {
  html body footer#nv-site-footer {
    display:block !important;
    position:relative !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
    background:#fff !important;
  }
  html body #nv-site-footer > .nvsf-card {
    position:relative !important;
    display:flex !important;
    flex-direction:column !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:24px clamp(20px,5.5vw,30px) 26px !important;
    overflow:visible !important;
    background:#fff !important;
  }
  html body #nv-site-footer .nvsf-top-rule {
    width:100% !important;
    flex:0 0 1px !important;
    margin:0 !important;
  }
  html body #nv-site-footer .nvsf-navigation {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:start !important;
    column-gap:clamp(16px,5vw,28px) !important;
    row-gap:clamp(30px,7vw,40px) !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:31px 0 0 !important;
    padding:0 !important;
  }
  html body #nv-site-footer .nvsf-column {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body #nv-site-footer .nvsf-column > h2 {
    margin:0 0 9px !important;
    color:#171c17 !important;
    font:650 13px/1.35 Inter,Arial,sans-serif !important;
    letter-spacing:-.015em !important;
  }
  html body #nv-site-footer .nvsf-column > a {
    display:flex !important;
    align-items:center !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:100% !important;
    min-height:34px !important;
    margin:0 !important;
    padding:6px 0 !important;
    color:#575e57 !important;
    font:450 12px/1.4 Inter,Arial,sans-serif !important;
    text-decoration:none !important;
    overflow-wrap:break-word !important;
    -webkit-tap-highlight-color:transparent;
  }
  html body #nv-site-footer .nvsf-column > a:focus-visible {
    outline:2px solid currentColor !important;
    outline-offset:3px !important;
  }
  html body #nv-site-footer .nvsf-bottom {
    margin:0 !important;
    padding:31px 0 0 !important;
    text-align:center !important;
  }
  html body #nv-site-footer .nvsf-bottom p {
    margin:0 !important;
    font:500 11px/1.5 Inter,Arial,sans-serif !important;
    color:#667065 !important;
    white-space:normal !important;
  }
}
@media (max-width:360px) {
  html body #nv-site-footer > .nvsf-card {
    padding-inline:18px !important;
  }
  html body #nv-site-footer .nvsf-navigation {
    column-gap:14px !important;
    row-gap:26px !important;
  }
  html body #nv-site-footer .nvsf-column > a {
    font-size:11.5px !important;
  }
}

/* NUVIA — footer mobile : disposition restaurée avant les ajustements d'équilibrage. */
@media (max-width:700px) {
  html body #nv-site-footer .nvsf-navigation > .nvsf-column:nth-child(2n) {
    padding-left:clamp(8px,2.5vw,12px) !important;
  }
}

/* NUVIA — desktop footer : recadrage du groupe de navigation vers la droite. */
/* Le filet doré, les dimensions des colonnes, les espacements inter-colonnes
   et le copyright ne sont pas déplacés. Seul le groupe de liens se décale. */
@media (min-width:1101px) {
  html body #nv-site-footer .nvsf-navigation {
    position:relative !important;
    left:clamp(46px,4vw,76px) !important;
  }
}


/* NUVIA — uniform footer vertical space: About is the reference. */
/* About adds a white entry area of 40–60px on desktop and 28–42px
   on mobile. Match that exact space on Home and all Solutions pages.
   Preserve the approved column grid, desktop offset and mobile positions. */
@media (min-width:701px) {
  html body:not(.nv-about-page) footer#nv-site-footer {
    padding-top:clamp(40px,5vw,60px) !important;
  }
}
@media (max-width:700px) {
  html body:not(.nv-about-page) footer#nv-site-footer {
    padding-top:clamp(28px,5vw,42px) !important;
  }
}


/* NUVIA 2026-10-31 — footer entry spacing: Solutions is the locked reference. */
/* HOME: the hidden gallery still reserves 140–260px of empty white space.
   Keep the atmospheric transition but compress that reservation substantially.
   Only the gallery-off variant is affected; the gallery itself remains untouched. */
@media (min-width:701px) {
  html body #nv-white-interlude.nv-gallery-off {
    /* La galerie reste masquée, mais on préserve le blanc entre le ciel et le filet. */
    height:clamp(44px,5.2svh,64px) !important;
    min-height:0 !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
  }
  html body #nv-white-interlude.nv-gallery-off + footer#nv-site-footer {
    padding-top:clamp(38px,3vw,52px) !important;
  }
  /* ABOUT: extend its short white entry to approximate the approved
     Solutions transition, without altering the navigation inside the footer. */
  html body.nv-about-page footer#nv-site-footer {
    padding-top:clamp(102px,8vw,126px) !important;
  }
}
@media (max-width:700px) {
  html body #nv-white-interlude.nv-gallery-off {
    height:clamp(28px,5svh,48px) !important;
    min-height:0 !important;
    padding:0 !important;
  }
  html body #nv-white-interlude.nv-gallery-off + footer#nv-site-footer {
    padding-top:clamp(20px,4vw,28px) !important;
  }
  html body.nv-about-page footer#nv-site-footer {
    padding-top:clamp(60px,9vw,76px) !important;
  }
}

/* iPhone Safari: only while the final panoramic film is inside the viewport,
   stop elastic scrolling past the true document end. This does not lock
   touch gestures or change ordinary scrolling, and leaves other platforms
   unchanged. Applied through IntersectionObserver in the lightweight guard. */
@media (max-width:820px) {
  html.nv-mobile-footer-at-end {
    overscroll-behavior-y: none;
  }
}

/* 2026-11-01 — Footer navigation lowered on desktop only.
   Visual offset (position:relative) leaves the footer, film boundary,
   card height, vertical document flow, and mobile layout untouched. */
@media (min-width:1025px) {
  html body #nv-site-footer > .nvsf-card > .nvsf-top-rule,
  html body #nv-site-footer > .nvsf-card > .nvsf-navigation,
  html body #nv-site-footer > .nvsf-card > .nvsf-bottom {
    position:relative !important;
    top:20px !important;
  }
}
