@font-face {
  font-family: "Switzer-Regular";
  src: url("/wp-content/uploads/fonts/Switzer-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer-Bold";
  src: url("/wp-content/uploads/fonts/Switzer-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hauora-ExtraBold";
  src: url("/wp-content/uploads/fonts/Hauora-ExtraBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Hide the body content only while the custom font is still downloading */
html.font-loading body {
    opacity: 0;
}

/* Create a beautiful, ultra-fast fade-in once the font is loaded */
html.font-loaded body {
    opacity: 1;
    transition: opacity 0.25s ease-in-out;
}

/* ==========================
   Variables globales
   ========================== */
:root {
  --text-base: 0.75rem; /* 12px */
  --ratio: 1.618;       /* Golden ratio */
  --line-base: 1.3;     /* Corps texte */
}

/* ==========================
   TYPOGRAPHIE
   ========================== */

body {
  font-family: "Switzer-Regular", sans-serif;
  font-size: var(--text-base);
  line-height: var(--line-base);
  font-weight: 400;
  color: #111;
}

p {margin:8px 0;}

h1 { font-size: clamp(2.75rem, 7.4vw, 7.65rem); line-height: 0.95; font-weight: 700; letter-spacing: -0.05em; }
h2 { font-size: clamp(1.85rem, 5.5vw, 4.7rem);  line-height: 1;    font-weight: 700; letter-spacing: -0.05em; }
h3 { font-size: clamp(1.4rem, 4.1vw, 2.9rem);  line-height: 1.1;  font-weight: 400; letter-spacing: -0.05em; }
h4 { font-size: clamp(1.1rem, 3.2vw, 1.8rem);  line-height: 1.2;  font-weight: 700; letter-spacing: -0.05em; }
h5 { font-size: clamp(0.95rem, 2.7vw, 1.1rem); line-height: 1.3;  font-weight: 700; letter-spacing: -0.05em; }
h6 { font-size: clamp(0.85rem, 2.3vw, 0.9rem); line-height: 1.4;  font-weight: 700; letter-spacing: -0.05em; }

.uk-heading-large  { font-size: clamp(1.85rem, 5.5vw, 4.7rem); line-height: 1;   font-weight: 700; letter-spacing: -0.05em; }
.uk-heading-medium { font-size: clamp(1.4rem, 4.1vw, 2.9rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.05em; }
.uk-heading-small  { font-size: clamp(1.1rem, 3.2vw, 1.8rem); line-height: 1.2; font-weight: 700; letter-spacing: -0.05em; }

.uk-text-small,
.uk-tab > * > a {
  font-size: clamp(0.8rem, 1.8vw, 0.85rem);
  line-height: 1.3;
  font-weight: 400;
    letter-spacing: -0.01em;
}

.uk-text-lead {
  font-size: clamp(0.95rem, 2.1vw, 1.05rem);
  line-height: 1.3;
  font-weight: 400;
}

.uk-text-large {
  font-size: clamp(1.05rem, 2.3vw, 1.15rem);
  line-height: 1.4;
  font-weight: 400;
    letter-spacing: -0.03em
}

@media (max-width: 768px) {
  h1 { font-size: clamp(1.85rem, 7.4vw, 4.1rem); line-height: 1; }
  h2 { font-size: clamp(1.6rem, 5.5vw, 3.2rem); line-height: 1.05; }
  h3 { font-size: clamp(1.35rem, 4.1vw, 2.3rem); line-height: 1.1; }
  h4 { font-size: clamp(1.1rem, 3.2vw, 1.85rem); line-height: 1.2; }
  h5 { font-size: clamp(0.95rem, 2.7vw, 1.35rem); line-height: 1.3; }
  h6 { font-size: clamp(0.8rem, 2.3vw, 0.95rem); line-height: 1.4; }

  .uk-heading-large  { font-size: clamp(1.6rem, 5.5vw, 3.6rem); line-height: 1; }
  .uk-heading-medium { font-size: clamp(1.35rem, 4.1vw, 2.3rem); line-height: 1.1; }
  .uk-heading-small  { font-size: clamp(1.1rem, 3.2vw, 1.85rem); line-height: 1.2; }

  .uk-text-small,
  .uk-tab > * > a {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .uk-text-lead {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .uk-text-large {
    font-size: 0.95rem;
    line-height: 1.3;
  }
}




/* Global: remove blue outline and white lines for links, buttons, inputs */
a,
button,
input,
textarea,
select {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Optional: remove text selection highlight on click */
a::selection,
button::selection,
input::selection,
textarea::selection {
  background: transparent;
}

/* Optional: smoother interaction without losing click feedback */
a:hover,
button:hover,
input:hover,
textarea:hover,
select:hover {
  box-shadow: none !important;
  border: none !important;
}

/* Disable blue highlight on button click */
button {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* You can do the same for links */
a {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ==========================
   6️⃣ Overlay Title (superposition)
   ========================== */
.overlay-title {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* contenu cliquable dessous */
  z-index: 9999;
}

.overlay-title h1 {
  font-family: "Switzer", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 8.3rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  mix-blend-mode: multiply;
  color: #000;
}


h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

img, video {
    border-radius: 2px;
    mix-blend-mode: multiply;
}

/* ------------------------ */
/* Desktop navbar alignment */
/* ------------------------ */
@media (min-width: 960px) {
  .uk-navbar-center {
    position: absolute;
    left: 50%;
    transform: none !important;
    justify-content: flex-start !important;
    margin-left: 10px !important;
    top: 50%;
    translate: 0 -50%;
  }
}

.uk-logo {
    display: block;
    padding:10px;
}

/* Hide logo only on devices 960px and wider */
@media (min-width: 960px) {
    .uk-logo {
        display: none;
    }
}

/* Container */
.logo-slide {
  position: relative;
  margin-left: 5px;
  display: inline-block;
  font-family:"Hauora-ExtraBold";
  white-space: nowrap;
  line-height: 1;       /* vertical alignment */
  font-size: 2.21em;     /* adjust to your navbar font */
  min-width: 9ch;       /* width to prevent jump; adjust to 'Lovibond:' */
    letter-spacing: -0.05em;
}

/* Full word behind the icon */
.logo-full {
  display: inline-flex;
  position: relative;
  z-index: 1;           /* behind the icon */
}

/* Individual letters start hidden */
.logo-full span {
  opacity: 0;
  transform: translateX(-0.2em);
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: inline-block;
}

/* Icon on top */
.logo-icon {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  transition: transform 0.5s ease;
}

/* Hover / tap state */
.logo-slide:hover .logo-icon,
.logo-slide.is-active .logo-icon {
  transform: translateX(calc(5.3ch));
    opacity: 0 ease 0.05s;
}

.logo-slide:hover .logo-full span,
.logo-slide.is-active .logo-full span {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger letters for reveal effect */
.logo-full span:nth-child(1) { transition-delay: 0.05s; }
.logo-full span:nth-child(2) { transition-delay: 0.1s; }
.logo-full span:nth-child(3) { transition-delay: 0.15s; }
.logo-full span:nth-child(4) { transition-delay: 0.2s; }
.logo-full span:nth-child(5) { transition-delay: 0.25s; }
.logo-full span:nth-child(6) { transition-delay: 0.3s; }
.logo-full span:nth-child(7) { transition-delay: 0.35s; }
.logo-full span:nth-child(8) { transition-delay: 0.4s; }
.logo-full span:nth-child(9) { transition-delay: 0.45s; }

.uk-modal-dialog {
  background-color: rgba(241, 241, 233, 0.5); /* almost transparent */
  backdrop-filter: blur(25px); /* heavy blur + optional saturation */
  -webkit-backdrop-filter: blur(25px); /* Safari support */
}

.uk-modal {z-index: 10000;}
/*
.uk-navbar-container.uk-dark {
  background-color: rgba(241, 241, 233, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}


.uk-navbar-container.uk-dark {
  background-color: rgba(241, 241, 233, 1);
}
*/

/* Common styles for sticky button */
.sticky-button {
  position: fixed;
  z-index: 10001; /* stay on top of everything */
  bottom: 20px;  /* distance from bottom on desktop */
  right: 20px;   /* distance from right on desktop */
  display: inline-block;
    border-radius: 3px; 
    padding:5px 25px;
}


/* Mobile devices: full-width at bottom */
@media (max-width: 960px) {
  .sticky-button {
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto; /* use left/right offsets instead of full width */
    border-radius: 3px; 
      padding:6px;
  }
}

/* ==========================================
   Desktop Navbar Toggle — Main Toggle
   ========================================== */

/* ==========================================
   Desktop Navbar Toggle — Main Toggle
   ========================================== */

/* Hide native UIkit SVG */
.uk-navbar-toggle-icon svg {
  display: none;
}

/* Replace with custom SVG using mask */
.uk-navbar-toggle-icon {
  width: 8px;
  height: 16px;
  background-color: currentColor;
position: relative;
    right: 10px;
  -webkit-mask: url('/wp-content/uploads/2026/01/lovibond-toggle-01.svg') no-repeat center / contain;
  mask: url('/wp-content/uploads/2026/01/lovibond-toggle-01.svg') no-repeat center / contain;

  /* Always transition rotation smoothly */
  transition: transform 0.3s ease;
}

/* Rotate when menu opens */
.uk-navbar-toggle[aria-expanded="true"] .uk-navbar-toggle-icon {
  transform: rotate(90deg);
}


/* ==========================================
   Mobile Modal Close Button
   ========================================== */

/* Base style — initially rotated 90° */
.uk-modal-close-default.uk-close {
  position: fixed;      /* float above menu */
  top: 30px;            /* vertical position */
  right: 25px;          /* horizontal position */
  z-index: 1001;        /* above modal, below fixed buttons */
  width: 8px;
  height: 16px;
  background-color: #111;

  /* Use SVG as mask (like main toggle) */
  -webkit-mask: url('/wp-content/uploads/2026/01/lovibond-toggle-01.svg') no-repeat center / contain;
  mask: url('/wp-content/uploads/2026/01/lovibond-toggle-01.svg') no-repeat center / contain;

  transform: rotate(90deg); /* initial rotation */
  transition: transform 0.3s ease; /* smooth rotation if JS triggers */
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Optional: add hover/focus style if needed */
.uk-modal-close-default.uk-close:hover {
  opacity: 0.8;
}

/* section parent */
#hero-video {
  position: relative; /* référentiel pour le layer */
}

/* couche cliquable full viewport */
#hero-video .hero-click-layer {
  position: absolute;
  inset: 0;        /* top:0; right:0; bottom:0; left:0 */
  z-index: 100;    /* au-dessus de la vidéo et overlay */
}

/* lien à l’intérieur */
#hero-video .hero-click-layer a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Hide arrows */
.click-to-slide .el-slidenav {
    display: none !important;
}

/* Change cursor to a Plus (+) sign */
.click-to-slide .uk-slideshow-items,
.click-to-slide .uk-slideshow-items * {
    cursor: crosshair !important; 
}

/* Prevent selection */
.click-to-slide .uk-slideshow-items {
    user-select: none;
    -webkit-user-select: none;
}

/* 
   FIX: Only apply the snappier timing functions when a slide transition is actively running.
   This targets UIkit's native animation utility state classes, leaving initialization untouched.
*/
.click-to-slide .uk-slideshow-items .uk-transition-leave,
.click-to-slide .uk-slideshow-items .uk-transition-enter,
.click-to-slide .uk-slideshow-items [class*='uk-animation-'] {
    transition-timing-function: ease !important;
    transition-duration: 300ms !important;
    animation-duration: 300ms !important;
}

/* Only apply these styles on Desktop screens */
@media (min-width: 960px) {
  #dynamic-viewport-image {
    position: fixed;
    
    /* --- INCREASED WIDTH --- */
    width: 60vw;       /* Change to 65vw if you want it even larger */
    max-height: 70vh;  /* Slightly bumped height capacity to match the wider scale */
    object-fit: contain;
    
    /* Retains perfect mathematical centering in the left column */
    left: 25vw;  
    top: 50%;    
    transform: translate(-50%, -50%);
    
    z-index: 1000;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  #dynamic-viewport-image.hidden {
    opacity: 0;
    visibility: hidden;
  }

  #dynamic-viewport-image.visible {
    opacity: 1;
    visibility: visible;
  }
}

/* Hide the injected element entirely on mobile layouts */
@media (max-width: 959px) {
  #dynamic-viewport-image {
    display: none !important;
  }
}

/* Ensure Lenis works perfectly with modern browser standards */
html.lenis, html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  scroll-behavior: contain;
}

/* 1. Force the mobile modal body to fill its parent using flexbox */
#tm-dialog-mobile .uk-modal-body {
    display: flex !important;
    flex-direction: column !important;
}

/* 2. Tell the inner container to expand to the full height of the viewport */
#tm-dialog-mobile .uk-margin-auto-bottom {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 3. Re-route the grid to become a flex column that spaces its items apart */
#tm-dialog-mobile .uk-grid-stack {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* Pushes menu to top, widget to bottom */
}

/* 4. Ensure your widget row spans beautifully across the screen width */
#tm-dialog-mobile #builderwidget-7 {
    width: 100% !important;
    margin-top: auto !important; /* Extra safety push */
    padding-bottom: env(safe-area-inset-bottom, 20px); /* Keeps it safe from mobile home bars */
}

/* 5. Wipe out any leftover inline styles on the row element */
#tm-dialog-mobile [id*="builderwidget-7"] {
    position: relative !important;
    bottom: auto !important;
    width: 100% !important;
}

/* 1. Force the menu list items to only be as wide as the text itself */
#tm-dialog-mobile .uk-nav-primary > li {
    width: max-content !important;
    max-width: 100% !important;
}

/* Lock container to the absolute BOTTOM screen edge */
#methodology-progress-wrapper.global-top {
    position: fixed !important;
    bottom: 0 !important; /* Swapped from top: 0 to bottom: 0 */
    top: auto !important;   /* Reset top positioning explicitly */
    left: 0 !important;
    width: 100vw !important;
    height: 10px !important; /* Slightly thicker to make it less discrete */
    background: rgba(0, 0, 0, 0.05) !important; /* Soft track line */
    z-index: 999999 !important; /* Sits above any footer elements */
    pointer-events: none !important;
}

/* Let the bar scale beautifully across the track */
#methodology-progress-bar {
    width: 0%;
    height: 100% !important;
    background: #251BE4 !important; /* Your signature vibrant blue/purple */
    will-change: width;
    transition: width 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoothed the ease engine */
}