/* =====================================================
   LobbyLink — Global Beauty Pass
   Inspired by: Stripe / Linear / McKinsey digital / Apple clarity
   Brand teal #0095AB
   ===================================================== */

/* ---- Logo officiel toujours visible ---- */
.brand-logo {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(0, 149, 171, 0.4);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled .brand-logo {
  background: #fff;
  border-color: rgba(0, 149, 171, 0.22);
  box-shadow: 0 8px 24px rgba(11, 28, 34, 0.1);
  padding: 0.3rem 0.5rem;
}

.brand-logo img {
  height: 54px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header.is-scrolled .brand-logo img {
  height: 40px !important;
}

.site-header.is-transparent .logo-light { display: block !important; }
.site-header.is-transparent .logo-dark { display: none !important; }
.site-header.is-scrolled .logo-light { display: none !important; }
.site-header.is-scrolled .logo-dark { display: block !important; }

.header-client {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: all 0.3s var(--ease);
}

.site-header.is-scrolled .header-client {
  border-color: var(--ll-gray-200);
  color: var(--ll-navy);
}

.header-client:hover {
  background: var(--ll-teal);
  border-color: var(--ll-teal);
  color: #fff;
}

.footer-brand__logo {
  display: inline-block;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 149, 171, 0.25);
  margin-bottom: 1rem;
}

.footer-brand__logo img {
  height: 56px !important;
  width: auto;
  display: block;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  filter: none !important;
}

.footer-brand img {
  filter: none;
  background: transparent;
  padding: 0;
  border: 0;
}

/* ---- Header cleaner ---- */
.site-header {
  height: 78px;
}

.site-header.is-transparent {
  background: linear-gradient(180deg, rgba(5, 12, 16, 0.55), transparent);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(11, 28, 34, 0.06), 0 12px 40px rgba(11, 28, 34, 0.06);
}

.nav-main > a,
.nav-dropdown > button {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  letter-spacing: 0.01em;
}

.site-header.is-transparent .nav-main > a,
.site-header.is-transparent .nav-dropdown > button {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.header-cta {
  box-shadow: 0 10px 28px rgba(0, 149, 171, 0.35);
}

/* ---- Hero: Stripe/McKinsey clarity ---- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__overlay {
  background:
    linear-gradient(105deg, rgba(5, 12, 16, 0.92) 0%, rgba(5, 12, 16, 0.78) 42%, rgba(5, 12, 16, 0.45) 72%, rgba(5, 12, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 12, 16, 0.4) 0%, transparent 40%, rgba(5, 12, 16, 0.6) 100%);
}

.hero__content {
  max-width: 920px;
  margin-right: auto;
  padding-top: calc(var(--header-h) + 4.5rem);
  padding-bottom: 6rem;
}

.hero__logo-mark {
  display: none !important; /* remove giant watermark logo */
}

.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 149, 171, 0.16);
  border: 1px solid rgba(0, 149, 171, 0.35);
  color: var(--ll-teal-soft) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  max-width: none;
}

.hero h1 .line {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.hero h1 .line span {
  display: inline-block;
}

/* Guarantee hero copy stays readable even if JS animation glitches */
.hero__brand,
.hero h1,
.hero h1 .line span,
.hero__subtitle,
.hero .btn-group-ll {
  opacity: 1;
  visibility: visible;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2.25rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero .btn-group-ll {
  gap: 0.85rem;
}

.hero .btn-ll--primary {
  min-width: 200px;
}

.hero .btn-ll--secondary {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Sections: airy international feel ---- */
.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-header h2 {
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.eyebrow {
  color: var(--ll-teal);
}

.eyebrow::before {
  background: var(--ll-teal);
}

/* ---- Cards: softer, more premium ---- */
.card-ll {
  border: 1px solid rgba(11, 28, 34, 0.06);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(11, 28, 34, 0.03);
  background: #fff;
}

.card-ll:hover {
  border-color: rgba(0, 149, 171, 0.28);
  box-shadow: 0 24px 56px rgba(11, 28, 34, 0.1);
  transform: translateY(-8px);
}

.card-ll__icon {
  background: linear-gradient(145deg, rgba(0, 149, 171, 0.12), rgba(0, 149, 171, 0.05));
  color: var(--ll-teal);
  border-radius: 14px;
}

.card-ll--premium {
  border: 0;
  box-shadow: 0 16px 48px rgba(11, 28, 34, 0.08);
}

.card-ll--premium .card-ll__media {
  aspect-ratio: 16 / 11;
}

/* ---- Brand strip refined ---- */
.brand-strip__visual {
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(11, 28, 34, 0.18);
}

.brand-strip h2 {
  letter-spacing: -0.03em;
}

/* ---- Stats ---- */
.section--navy {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 149, 171, 0.22), transparent 50%),
    linear-gradient(145deg, #061014 0%, #0B1C22 50%, #0F2A33 100%);
}

.stat-item__value {
  background: linear-gradient(120deg, #1AB0C4, #ffffff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- CTA ---- */
.cta-band {
  background:
    radial-gradient(ellipse at 90% 20%, rgba(0, 149, 171, 0.3), transparent 45%),
    linear-gradient(135deg, #061014, #0B1C22 55%, #12303A);
}

/* ---- Buttons ---- */
.btn-ll--primary {
  background: linear-gradient(135deg, #007A8C, #0095AB 45%, #1AB0C4);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
}

.btn-ll--outline {
  border-radius: 10px;
}

.btn-ll--secondary {
  border-radius: 10px;
}

/* ---- Page hero ---- */
.page-hero {
  padding: calc(78px + 4rem) 0 3.75rem;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(0, 149, 171, 0.3), transparent 48%),
    linear-gradient(145deg, #061014, #0B1C22 60%, #12303A);
}

.page-hero h1 {
  letter-spacing: -0.03em;
}

/* ---- Footer ---- */
.site-footer {
  background: #05090B;
}

.footer-brand img {
  height: 48px !important;
  width: auto;
  filter: none;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Reduce nav density on laptop ---- */
@media (max-width: 1200px) and (min-width: 993px) {
  .nav-main > a,
  .nav-dropdown > button {
    font-size: 0.78rem;
    padding: 0.45rem 0.5rem;
  }
}

@media (max-width: 768px) {
  /* ===== Mobile: plein écran, pas de colonne blanche ===== */
  :root {
    --header-h: 64px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .site-header {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    padding-top: max(0.75rem, env(safe-area-inset-top));
    padding-bottom: 0.55rem;
  }

  .site-header .container-ll.site-header__inner,
  .site-header .container-ll,
  .site-header__inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    height: auto;
    min-height: 48px;
    padding-inline: 1rem !important;
    gap: 0.75rem;
    box-sizing: border-box;
  }

  .brand-logo {
    border-radius: 8px;
    flex-shrink: 0;
  }

  .brand-logo img {
    height: 34px !important;
    max-width: 140px;
  }

  .header-actions {
    gap: 0.5rem;
    margin-left: auto;
  }

  .header-cta {
    display: none !important;
  }

  .header-client {
    width: 36px;
    height: 36px;
  }

  /* Menu mobile : pas de translateX(100%) qui élargit le scroll */
  .nav-main {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1001;
  }

  .nav-main.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
  }

  .header-actions {
    z-index: 1002 !important;
  }

  .header-client,
  .nav-toggle {
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 1003 !important;
  }

  /* Hero full-bleed */
  .hero {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero__media,
  .hero__overlay,
  .hero__glow {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
  }

  .hero__media video,
  .hero__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
  }

  .hero__content.container-ll,
  .hero .hero__content,
  .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 1.15rem max(2.5rem, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 0 !important;
    position: relative;
    z-index: 2;
  }

  .hero__brand {
    margin-bottom: 0.95rem !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.14em;
    padding: 0.35rem 0.7rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 6.2vw, 2.05rem) !important;
    line-height: 1.18 !important;
    margin-bottom: 0.85rem !important;
    max-width: none !important;
  }

  .hero h1 .line {
    white-space: nowrap;
  }

  .hero__subtitle {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    max-width: 34ch;
    margin-bottom: 1.45rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }

  .hero .btn-group-ll {
    width: auto !important;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero .btn-group-ll .btn-ll {
    width: auto !important;
    min-width: 0;
    min-height: 48px;
    padding: 0.8rem 1.3rem;
  }

  .hero .btn-group-ll .btn-ll--secondary {
    display: none !important;
  }

  .hero__scroll {
    display: none !important;
  }

  .hero__glow {
    height: 55%;
  }
}

@media (max-width: 480px) {
  .lang-switch {
    display: none;
  }

  .site-header .container-ll,
  .site-header__inner {
    padding-inline: 0.9rem !important;
  }

  .brand-logo img {
    height: 32px !important;
    max-width: 132px;
  }

  .hero__content.container-ll,
  .hero__content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: max(2.2rem, env(safe-area-inset-bottom)) !important;
  }

  .hero h1 {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem) !important;
  }

  .hero h1 .line {
    white-space: nowrap;
  }
}


/* Subtle grain for premium depth — sous le header pour ne jamais bloquer les clics */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

