/* Villa Vence — global header/footer design system */

@font-face {
  font-family: 'VV Fraunces Italic';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/fraunces-italic-300.woff2') format('woff2');
}
@font-face {
  font-family: 'VV Fraunces Semibold';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-semibold-600.woff2') format('woff2');
}
@font-face {
  font-family: 'VV Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}

:root{
  --vv-limestone: #2E1D10;
  --vv-limestone-soft: #3D2A18;
  --vv-ink: #ECDFC5;
  --vv-ink-soft: #C2AD87;
  --vv-pine: #C97C5D;
  --vv-pine-deep: #A85C3F;
  --vv-hairline: rgba(236,223,197,0.16);
  --vv-navy-deep: #1D1208;
  --vv-cream: #ECDFC5;
  --vv-serif-i: 'VV Fraunces Italic', Georgia, serif;
  --vv-serif-sb: 'VV Fraunces Semibold', Georgia, serif;
  --vv-mono: 'VV Plex Mono', ui-monospace, monospace;
}

.vv-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 56px);
  padding-right: clamp(20px, 4vw, 56px);
}

/* micro-bar */
.vv-microbar { background: var(--vv-limestone); border-bottom: 1px solid var(--vv-hairline); }
.vv-microbar-inner {
  display: flex; justify-content: space-between; align-items: center; height: 38px;
  font-family: var(--vv-mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--vv-ink-soft);
}
.vv-microbar a { color: inherit; text-decoration: none; transition: color 150ms ease-out; }
.vv-microbar a:hover { color: var(--vv-pine); }
.vv-microbar-left { display: flex; gap: 20px; }

.vv-lang-toggle {
  display: flex; gap: 10px;
  font-family: var(--vv-mono); font-size: 0.74rem; letter-spacing: 0.03em; color: var(--vv-ink-soft);
}
.vv-lang-toggle a { color: inherit; text-decoration: none; transition: color 150ms ease-out; }
.vv-lang-toggle a:hover { color: var(--vv-pine); }
.vv-lang-toggle a[aria-current="true"] { color: var(--vv-pine); }

/* nav — sticky: pinned to the viewport top, micro-bar above it scrolls away normally.
   Translucent material rather than a flat bar, so content passing underneath still reads
   through it — the floating-chrome treatment, not a fixed opaque strip. */
.vv-header {
  background: rgba(46,29,16,0.82); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  position: sticky; top: 0; z-index: 500;
  border-bottom: 1px solid var(--vv-hairline);
  box-shadow: 0 0 0 rgba(0,0,0,0); transition: box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.vv-header.is-stuck { box-shadow: 0 4px 16px rgba(0,0,0,0.35); background: rgba(46,29,16,0.94); }
@media (prefers-reduced-transparency: reduce) {
  .vv-header { background: var(--vv-limestone); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.vv-navbar { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.vv-navbar-right { display: flex; align-items: center; gap: 26px; }
.vv-logo {
  position: relative; z-index: 0; display: inline-flex; align-items: center;
  font-family: var(--vv-serif-i); font-style: italic; font-size: 1.5rem; letter-spacing: 0.01em;
  color: var(--vv-ink); text-decoration: none;
}
.vv-logo::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 70px; height: 70px;
  background-image: url("https://nutztech.fr/wp-content/uploads/2026/05/logo-nuca-70x70.png");
  background-repeat: no-repeat; background-size: contain; background-position: left center;
  opacity: 0.5; z-index: -1; pointer-events: none;
}
.vv-nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.vv-nav-links a {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem; color: var(--vv-ink); text-decoration: none; position: relative; padding-bottom: 4px; display: inline-block;
}
.vv-nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--vv-pine); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1);
}
.vv-nav-links a:hover::after { transform: scaleX(1); }
.vv-nav-cta {
  display: inline-flex; align-items: center; height: 42px; padding: 0 20px;
  border: 1px solid var(--vv-pine); color: var(--vv-pine); font-size: 0.88rem;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: 2px; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease-out, color 180ms ease-out, transform 100ms ease-out;
}
.vv-nav-cta:hover { background: var(--vv-pine); color: var(--vv-limestone-soft); }
.vv-nav-cta:active { transform: scale(0.97); }

/* mobile toggle + menu */
.vv-nav-toggle {
  display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--vv-hairline);
  background: none; cursor: pointer; border-radius: 2px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: transform 100ms ease-out;
}
.vv-nav-toggle:active { transform: scale(0.92); }
.vv-nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--vv-ink); transition: transform 200ms ease-out, opacity 200ms ease-out; }
.vv-nav-toggle.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.vv-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.vv-nav-toggle.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.vv-mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--vv-limestone-soft); border-bottom: 1px solid var(--vv-hairline);
  padding: 10px clamp(20px, 4vw, 56px) 26px;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 260ms cubic-bezier(0.16,1,0.3,1), opacity 220ms ease-out;
}
.vv-mobile-menu.is-open { max-height: 480px; opacity: 1; }
.vv-mobile-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vv-mobile-menu a {
  display: block; padding: 12px 0; border-bottom: 1px solid var(--vv-hairline);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem; color: var(--vv-ink); text-decoration: none;
}
.vv-mobile-menu .vv-lang-toggle { justify-content: center; gap: 22px; font-size: 0.9rem; padding: 16px 0; border-bottom: 1px solid var(--vv-hairline); }
.vv-mobile-cta { margin-top: 18px; justify-content: center; width: 100%; }

@media (max-width: 900px) {
  .vv-nav-links, .vv-navbar-right { display: none; }
  .vv-nav-toggle { display: flex; }
  .vv-mobile-menu { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .vv-mobile-menu { transition: none; }
}

/* footer — stays dark-on-dark in both schemes (was navy-deep on light page, stays the darkest shade on the dark page) */
.vv-footer { background: var(--vv-navy-deep); color: var(--vv-cream); padding: clamp(50px, 6vw, 76px) 0 0; }
.vv-footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px;
  padding-bottom: 46px; border-bottom: 1px solid rgba(236,223,197,0.14);
}
.vv-footer-logo { font-family: var(--vv-serif-i); font-style: italic; font-size: 1.4rem; margin-bottom: 18px; }
.vv-footer-col h5 {
  font-family: var(--vv-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(236,223,197,0.55); margin: 0 0 18px;
}
.vv-footer-col p, .vv-footer-col a {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem; line-height: 1.9; color: rgba(236,223,197,0.88); display: block; text-decoration: none; margin: 0;
}
.vv-footer-col a { transition: color 150ms ease-out; }
.vv-footer-col a:hover { color: var(--vv-cream); }
.vv-footer-desc { color: rgba(236,223,197,0.68); line-height: 1.6; margin-bottom: 14px !important; max-width: 32ch; }
.vv-footer-phone a { font-family: var(--vv-mono); font-size: 1.05rem; margin-bottom: 4px !important; color: var(--vv-cream); }
.vv-footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding: 26px 0; font-size: 0.82rem; color: rgba(236,223,197,0.55);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.vv-footer-bottom p { margin: 0; }
.vv-footer-legal { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.vv-footer-legal a { color: rgba(236,223,197,0.55); font-size: 0.82rem; text-decoration: none; }
.vv-footer-legal a:hover { color: var(--vv-cream); }
@media (max-width: 760px) { .vv-footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cookie consent banner (Complianz) — visual restyle only.
   Complianz themes its banner, the floating "manage consent" re-open tab,
   and the inline consent widget on the Cookie Policy page entirely through
   CSS custom properties (--cmplz_*) redeclared here. No Complianz markup,
   JS, or consent-recording logic is touched — same principle as the Cookie
   Policy page itself.
   Selectors are ID+class (not plain :root) so this always wins regardless
   of whether Complianz's own generated stylesheet loads before or after
   this one — plain :root vs :root would be a specificity tie decided by
   load order, which isn't guaranteed to stay in our favour.
   ========================================================================== */
#cmplz-cookiebanner-container .cmplz-cookiebanner,
#cmplz-manage-consent .cmplz-manage-consent,
#cmplz-manage-consent-container {
  --cmplz_banner_background_color: #3D2A18;
  --cmplz_banner_border_color: rgba(236,223,197,0.16);
  --cmplz_banner_border_radius: 3px 3px 3px 3px;
  --cmplz_text_color: #ECDFC5;
  --cmplz_hyperlink_color: #C97C5D;
  --cmplz_button_accept_background_color: #C9A468;
  --cmplz_button_accept_border_color: #C9A468;
  --cmplz_button_accept_text_color: #2B1B10;
  --cmplz_button_deny_background_color: transparent;
  --cmplz_button_deny_border_color: #C97C5D;
  --cmplz_button_deny_text_color: #C97C5D;
  --cmplz_button_settings_background_color: transparent;
  --cmplz_button_settings_border_color: rgba(236,223,197,0.3);
  --cmplz_button_settings_text_color: #ECDFC5;
  --cmplz_button_border_radius: 2px 2px 2px 2px;
  --cmplz_category_header_always_active_color: #C97C5D;
  --cmplz_slider_active_color: #C97C5D;
  --cmplz_slider_inactive_color: #6b5c48;
  --cmplz_slider_bullet_color: #ECDFC5;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner,
#cmplz-manage-consent-container {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
  font-family: var(--vv-serif-i);
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem !important;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
  background-color: rgba(201,124,93,0.12);
}

/* Minimalist cookie line-art, drawn as a low-opacity background watermark
   behind the banner content — a single decorative image, not a DOM element,
   so it can never sit on top of or intercept clicks on real controls. */
#cmplz-cookiebanner-container .cmplz-cookiebanner {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20200%20200%22%3E%3Ccircle%20cx%3D%22100%22%20cy%3D%22100%22%20r%3D%2278%22%20fill%3D%22none%22%20stroke%3D%22rgba%28201%2C124%2C93%2C0.22%29%22%20stroke-width%3D%222%22/%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%2270%22%20r%3D%227%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%2262%22%20r%3D%225%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3Ccircle%20cx%3D%22140%22%20cy%3D%22110%22%20r%3D%226%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3Ccircle%20cx%3D%2295%22%20cy%3D%22135%22%20r%3D%228%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3Ccircle%20cx%3D%2260%22%20cy%3D%22120%22%20r%3D%224%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3Ccircle%20cx%3D%22110%22%20cy%3D%2295%22%20r%3D%225%22%20fill%3D%22rgba%28201%2C124%2C93%2C0.22%29%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom -20px right -20px;
  background-size: 190px 190px;
}

/* Mobile fix (SEO audit 2026-08-23): Complianz's own base CSS centers the
   banner (top/left 50%) with max-height: calc(100vh - 20px) as an
   UNCONDITIONAL rule (cookiebanner.css) — on a real mobile screen this lets
   a banner with several category toggles fill nearly the entire viewport,
   hiding the H1 and phone CTA underneath, and makes it the page's LCP
   element. Below repositions it as a slim bottom sheet on small screens
   instead, well clear of Complianz's own file so a plugin update won't
   wipe this. */
@media (max-width: 480px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 42vh !important;
    border-radius: 10px 10px 0 0 !important;
  }
}
