/* LSPA header — identité Unikin / laboratoire */

:root {
  --lspa-blue: #1e5aa8;
  --lspa-blue-dark: #163f78;
  --lspa-red: #c41e3a;
  --lspa-navy: #1a2340;
  --lspa-ink: #212741;
  --lspa-gold: #c9a227;
  --lspa-muted: #5c6478;
  --lspa-line: rgba(26, 35, 64, 0.08);
  --lspa-topbar-h: 36px;
  --lspa-bar-h: 84px;
}

.lspa-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--lspa-line);
}

.lspa-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(26, 35, 64, 0.1);
}

.lspa-header.is-scrolled .lspa-topbar {
  display: none;
}

.lspa-header.is-scrolled .lspa-bar {
  --lspa-bar-h: 72px;
}

.lspa-header.is-scrolled .lspa-brand img {
  width: 56px;
  height: 56px;
}

/* Top bar */
.lspa-topbar {
  background: var(--lspa-navy);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.lspa-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--lspa-topbar-h);
}

.lspa-topbar a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.lspa-topbar a:hover,
.lspa-topbar a:focus-visible {
  color: #fff;
}

.lspa-topbar a i {
  transition: transform 0.25s ease, color 0.25s ease;
}

.lspa-topbar a:hover i,
.lspa-topbar a:focus-visible i {
  transform: translateY(-1px) scale(1.12);
  color: #fff;
}

.lspa-topbar__uni {
  font-weight: 500;
  white-space: nowrap;
}

.lspa-topbar__uni i {
  color: var(--lspa-gold);
  font-size: 12px;
}

.lspa-topbar__meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lspa-topbar__meta i {
  color: var(--lspa-gold);
  font-size: 11px;
}

/* Main bar */
.lspa-bar {
  background: #fff;
}

.lspa-bar::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--lspa-blue) 0 58%, var(--lspa-red) 58% 100%);
}

.lspa-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--lspa-bar-h);
  position: relative;
}

.lspa-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none !important;
  color: var(--lspa-ink);
  transition: transform 0.3s ease;
}

.lspa-brand:hover,
.lspa-brand:focus-visible {
  transform: translateY(-1px);
}

.lspa-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lspa-brand:hover img,
.lspa-brand:focus-visible img {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(30, 90, 168, 0.22);
}

.lspa-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.lspa-brand__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.lspa-brand__name span:first-child {
  color: var(--lspa-red);
}

.lspa-brand__name span:last-child {
  color: var(--lspa-blue);
}

.lspa-brand__tag {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--lspa-muted);
  max-width: 280px;
}

/* Toggle */
.lspa-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lspa-line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lspa-toggle:hover,
.lspa-toggle:focus-visible {
  background: rgba(30, 90, 168, 0.06);
  border-color: rgba(30, 90, 168, 0.25);
  transform: translateY(-1px);
}

.lspa-toggle span,
.lspa-toggle span::before,
.lspa-toggle span::after {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--lspa-navy);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.lspa-toggle span {
  top: 50%;
  margin-top: -1px;
}

.lspa-toggle span::before,
.lspa-toggle span::after {
  content: "";
  left: 0;
}

.lspa-toggle span::before { top: -6px; }
.lspa-toggle span::after { top: 6px; }

.lspa-toggle.is-open span {
  background: transparent;
}

.lspa-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.lspa-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Nav */
.lspa-nav {
  display: flex;
  align-items: center;
}

.lspa-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lspa-menu > li {
  position: relative;
}

.lspa-menu > li > a,
.lspa-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lspa-ink);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.lspa-menu > li > a::after,
.lspa-menu__trigger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: linear-gradient(90deg, var(--lspa-blue), var(--lspa-red));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: 2px;
}

.lspa-menu > li > a:hover,
.lspa-menu > li > a:focus-visible,
.lspa-menu__trigger:hover,
.lspa-menu__trigger:focus-visible {
  color: var(--lspa-blue);
  background: rgba(30, 90, 168, 0.06);
}

.lspa-menu > li > a:hover::after,
.lspa-menu > li > a:focus-visible::after,
.lspa-menu > li > a.is-active::after,
.lspa-menu__trigger:hover::after,
.lspa-menu__trigger:focus-visible::after,
.lspa-menu__trigger.is-active::after,
.lspa-menu__dropdown.is-current > .lspa-menu__trigger::after {
  transform: scaleX(1);
}

.lspa-ico {
  font-size: 13px;
  color: var(--lspa-blue);
  transition: transform 0.3s ease, color 0.3s ease;
}

.lspa-menu > li > a:hover .lspa-ico,
.lspa-menu > li > a:focus-visible .lspa-ico,
.lspa-menu__trigger:hover .lspa-ico,
.lspa-menu__trigger:focus-visible .lspa-ico {
  transform: translateY(-2px);
  color: var(--lspa-red);
}

.lspa-menu > li > a.is-active .lspa-ico,
.lspa-menu__trigger.is-active .lspa-ico,
.lspa-menu__dropdown.is-current > .lspa-menu__trigger .lspa-ico {
  color: var(--lspa-red);
}

.lspa-menu > li > a.is-active,
.lspa-menu__trigger.is-active,
.lspa-menu__dropdown.is-current > .lspa-menu__trigger {
  color: var(--lspa-blue);
  font-weight: 600;
}

.lspa-chevron {
  font-size: 9px;
  margin-left: 2px;
  transition: transform 0.3s ease;
}

.lspa-menu__dropdown:hover .lspa-chevron,
.lspa-menu__dropdown.is-open .lspa-chevron {
  transform: rotate(180deg);
}

.lspa-cta {
  margin-left: 8px;
  background: var(--lspa-blue) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  overflow: visible !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.lspa-cta::after {
  display: none !important;
}

.lspa-cta .lspa-ico {
  color: #fff;
}

.lspa-cta:hover,
.lspa-cta:focus-visible {
  background: var(--lspa-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 90, 168, 0.35) !important;
}

.lspa-cta:hover .lspa-ico,
.lspa-cta:focus-visible .lspa-ico {
  transform: translateY(-1px) scale(1.12);
  color: #fff;
}

.lspa-cta.is-active {
  background: var(--lspa-red) !important;
}

.lspa-cta.is-active:hover,
.lspa-cta.is-active:focus-visible {
  background: #a31830 !important;
  box-shadow: 0 8px 18px rgba(196, 30, 58, 0.35) !important;
}

/* Dropdown */
.lspa-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--lspa-line);
  box-shadow: 0 16px 40px rgba(26, 35, 64, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 20;
}

.lspa-menu__dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.lspa-menu__dropdown:hover .lspa-submenu,
.lspa-menu__dropdown.is-open .lspa-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lspa-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--lspa-ink);
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s ease;
}

.lspa-subico {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--lspa-blue);
  transition: transform 0.25s ease, color 0.25s ease;
}

.lspa-submenu a:hover,
.lspa-submenu a:focus-visible {
  background: rgba(30, 90, 168, 0.06);
  color: var(--lspa-blue);
  padding-left: 22px;
}

.lspa-submenu a:hover .lspa-subico,
.lspa-submenu a:focus-visible .lspa-subico {
  transform: translateX(4px);
  color: var(--lspa-red);
}

.lspa-submenu a.is-active {
  color: var(--lspa-red);
  background: rgba(196, 30, 58, 0.06);
}

.lspa-submenu a.is-active .lspa-subico {
  color: var(--lspa-red);
}

.lspa-nav-backdrop {
  display: none;
}

/* Layout offsets replacing the old absolute header */
.lspa-home .hero {
  margin-top: 0;
}

.lspa-home .hero__slider.swiper-container {
  height: calc(100vh - var(--lspa-topbar-h) - var(--lspa-bar-h));
  min-height: 520px;
}

.lspa-body:not(.lspa-home) .page-heading {
  padding: 72px 0 64px;
}

.lspa-body:not(.lspa-home) section {
  margin-top: 70px;
}

.lspa-body:not(.lspa-home) .about-founder {
  margin-top: 0;
}

.lspa-founder {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.lspa-founder__photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(26, 35, 64, 0.12);
}

.lspa-founder__photo img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 12%;
}

.lspa-founder .founder-block {
  text-align: left;
  margin-bottom: 0;
}

.lspa-founder .founder-bio {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.lspa-member {
  background: #fff;
  border: 1px solid rgba(26, 35, 64, 0.08);
  border-radius: 14px;
  padding: 1.25rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(26, 35, 64, 0.04);
}
.lspa-member img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.lspa-member h3 {
  font-size: 1.1rem;
  color: var(--lspa-navy, #1a2340);
  margin: 0 0 0.3rem;
}
.lspa-member__role {
  color: var(--lspa-red, #c41e3a);
  font-weight: 600;
  font-size: 0.9rem;
}
.lspa-partners__name {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--lspa-navy, #1a2340);
}

.lspa-portrait img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center 12%;
}

.lspa-body .left-image:not(.lspa-portrait) img,
.lspa-body .right-image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .lspa-founder {
    grid-template-columns: 1fr;
  }

  .lspa-founder__photo img {
    height: 320px;
  }
}

/* Mobile */
@media (max-width: 1099px) {
  .lspa-topbar__meta span {
    display: none;
  }

  .lspa-brand__tag {
    display: none;
  }

  .lspa-toggle {
    display: block;
    z-index: 1002;
  }

  .lspa-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 64, 0.45);
    z-index: 998;
  }

  .lspa-nav-backdrop[hidden] {
    display: none;
  }

  .lspa-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 1001;
    padding: 96px 20px 32px;
    box-shadow: -12px 0 40px rgba(26, 35, 64, 0.18);
    transform: translateX(110%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }

  body.lspa-menu-open .lspa-nav {
    transform: translateX(0);
  }

  body.lspa-menu-open {
    overflow: hidden;
  }

  .lspa-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .lspa-menu > li > a,
  .lspa-menu__trigger {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 12px;
    font-size: 16px;
    border-radius: 8px;
    overflow: visible;
  }

  .lspa-menu > li > a::after,
  .lspa-menu__trigger::after {
    display: none;
  }

  .lspa-chevron {
    margin-left: auto;
  }

  .lspa-menu > li > a.is-active {
    box-shadow: none;
    background: rgba(30, 90, 168, 0.08);
  }

  .lspa-cta {
    margin: 12px 0 0 !important;
    justify-content: center !important;
  }

  .lspa-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: #f6f8fb;
    border-radius: 8px;
    margin: 4px 0 8px;
    display: none;
    min-width: 0;
  }

  .lspa-menu__dropdown.is-open .lspa-submenu {
    display: block;
  }

  .lspa-menu__dropdown::after {
    display: none;
  }

  .lspa-home .hero__slider.swiper-container {
    height: auto;
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .lspa-topbar {
    display: none;
  }

  .lspa-brand img {
    width: 56px;
    height: 56px;
  }

  .lspa-brand__name {
    font-size: 1.15rem;
  }

  .lspa-bar__inner {
    min-height: 72px;
  }
}
