/* ══════════════════════════════════════════════════════════
   LV Stack Widget — CSS front
   Bricolage Grotesque · Stack scroll · Palette LV Home
══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wdth,wght@12..96,75..100,800;12..96,75..100,900&family=DM+Sans:opsz,wght@9..40,400;9..40,500&display=swap');

/* ── Wrap ───────────────────────────────────────────── */
.lv-stack-wrap {
  --lv-fh: 'Bricolage Grotesque', sans-serif;
  --lv-fb: 'DM Sans', sans-serif;
  --lv-nav-h: 52px;
  --lv-t: .22s ease;
  --lv-stack-h: 100svh;
  --lv-text: #fff;
  position: relative;
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────────── */
.lv-s-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: var(--lv-nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  mix-blend-mode: difference;
  pointer-events: none;
}
.lv-s-nav > * { pointer-events: auto; }

.lv-s-nav-logo {
  font-family: var(--lv-fh);
  font-size: 15px;
  font-weight: 800;
  font-variation-settings: 'wdth' 85;
  letter-spacing: -.02em;
  color: #fff;
  flex: 1;
  text-decoration: none;
}
.lv-s-nav-logo em { font-style: normal; opacity: .35 }

.lv-s-nav-links { display: flex }
.lv-s-nav-link {
  padding: 6px 10px;
  font-family: var(--lv-fb);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  opacity: .32;
  text-decoration: none;
  transition: opacity var(--lv-t);
}
.lv-s-nav-link:hover,
.lv-s-nav-link.lv-on { opacity: 1 }

@media(max-width:600px){
  .lv-s-nav-link:nth-child(n+3) { display: none }
}

/* ── SECTION STACK ──────────────────────────────────── */
.lv-s {
  position: sticky;
  top: var(--lv-nav-h);
  height: calc(var(--lv-stack-h) - var(--lv-nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lv-s-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 24px 32px;
}

/* ── LABEL (haut) ───────────────────────────────────── */
.lv-s-label {
  position: sticky;
  top: var(--lv-nav-h);
  padding: 14px 0 12px;
  font-family: var(--lv-fh);
  font-size: 10px;
  font-weight: 800;
  font-variation-settings: 'wdth' 85;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lv-text);
  opacity: .55;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  margin-bottom: auto;
  text-decoration: none;
  transition: opacity var(--lv-t);
}
.lv-s-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.lv-s-label:hover { opacity: .8 }

/* ── TITRE géant (fit-text via JS) ──────────────────── */
.lv-s-title {
  font-family: var(--lv-fh);
  font-weight: 900;
  font-variation-settings: 'wdth' 75;
  letter-spacing: -.055em;
  line-height: .88;
  white-space: nowrap;
  margin-bottom: 20px;
  display: block;
  cursor: pointer;
  color: var(--lv-text);
  text-decoration: none;
  position: relative;
  transition: opacity var(--lv-t);
}
.lv-s-title:hover { opacity: .8 }
.lv-s-title::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 3px;
  background: currentColor;
  transition: width .3s ease;
}
.lv-s-title:hover::after { width: 100% }

/* ── TRAIT ──────────────────────────────────────────── */
.lv-s-rule {
  width: 100%;
  height: 1px;
  background: var(--lv-text);
  opacity: .2;
  margin-bottom: 16px;
}

/* ── PIED ───────────────────────────────────────────── */
.lv-s-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.lv-s-desc {
  font-family: var(--lv-fb);
  font-size: clamp(11px, 1.6vw, 14px);
  line-height: 1.7;
  max-width: 420px;
  color: var(--lv-text);
  opacity: .55;
}

.lv-s-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--lv-fb);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--lv-text);
  opacity: .5;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
  transition: opacity var(--lv-t), gap var(--lv-t);
}
.lv-s-cta:hover { opacity: 1; gap: 13px }

/* ── SCROLL HINT ────────────────────────────────────── */
.lv-scroll-hint {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: lv-hint-in 1s ease .5s both;
  pointer-events: none;
  mix-blend-mode: difference;
}
.lv-scroll-hint span {
  font-family: var(--lv-fb);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  opacity: .7;
}
.lv-hint-arrow {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lv-bounce .9s ease-in-out infinite;
}
@keyframes lv-hint-in {
  from { opacity:0; transform:translateX(-50%) translateY(10px) }
  to   { opacity:1; transform:translateX(-50%) translateY(0) }
}
@keyframes lv-bounce {
  0%,100% { transform: translateY(0) }
  50%     { transform: translateY(5px) }
}
.lv-scroll-hint.lv-gone {
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

/* ── Masquer éléments Elementor autour du widget ────── */
.elementor-widget-lv_stack .elementor-widget-container {
  overflow: visible !important;
}

/* ── Editeur Elementor : aperçu simplifié ───────────── */
.elementor-editor-active .lv-stack-wrap .lv-s {
  position: relative !important;
  top: auto !important;
  height: 280px;
  margin-bottom: 4px;
}
.elementor-editor-active .lv-s-nav { display: none }
.elementor-editor-active .lv-scroll-hint { display: none }
.elementor-editor-active .lv-s-title { font-size: 3rem !important; white-space: normal !important }
