/* =========================================================================
   LIFT PROJECT STYLES (UPDATED)
   ========================================================================= */

body.lift-page {
  background-color: #0f0f0f; /* Very dark background */
  color: #ffffff;
}

/* --- Common Label Styling --- */
.lift-section-label-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 8px; /* Ajustement pour alignement visuel parfait avec la 1ère ligne du texte */
}

.lift-label-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.lift-vertical-bar {
  width: 2px;
  height: 16px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.lift-horizontal-dash {
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.lift-section-label {
  font-family: monospace, var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #ffffff; /* Labels in mockup are white, only the dash/bar is yellow */
  text-transform: uppercase;
}

/* --- Hero Section --- */
.lift-hero {
  position: relative;
  display: flex;
  height: 100vh;
  width: 100%;
  background-color: #0c0c0c;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lift-hero-vector {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: auto;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Menu latéral gauche — ancres */
.lift-hero-nav {
  position: absolute;
  left: 8vw;
  top: calc(var(--nav-height) + 15vh);
  z-index: 20;
}

.lift-hero-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lift-hero-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.lift-hero-nav a:hover {
  color: #fff;
}
.lift-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lift-hero-meta {
  display: flex;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 20px;
}

.lift-hero-date {
  color: #fff;
}

.lift-hero-status {
  color: rgba(255, 255, 255, 0.4);
}

.lift-hero-title-new {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: normal !important;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

/* --- Context Section --- */
.lift-context {
  padding: 120px 8vw;
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Cohérence avec les autres pages */
  gap: 100px;
  align-items: start; /* Aligne tout en haut */
  background-color: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lift-context-text p {
  font-family: 'Filson Pro', sans-serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #cccccc;
  font-weight: normal;
  margin-top: 0;
}

/* --- Logo Grid Section --- */
.lift-logo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px; /* Gutters between blocks */
  background-color: #000000; /* Black gutters */
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lift-logo-block {
  background-color: #0a0a0a; /* Dark gray for blocks */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lift-logo-block-top {
  grid-column: 1 / -1; /* Spans full width */
  padding: 150px 8vw;
}

.lift-logo-block-left,
.lift-logo-block-right {
  padding: 150px 5vw;
}

.lift-block-label {
  position: absolute;
  top: 60px;
  left: 8vw; /* default for top block */
}

.lift-logo-block-left .lift-block-label,
.lift-logo-block-right .lift-block-label {
  left: 5vw; /* align with padding */
}

.lift-logo-img {
  max-width: 35%;
  height: auto;
}

.lift-split-img {
  max-width: 40%;
  height: auto;
}

.lift-text-img {
  max-width: 50%;
}

/* --- Applications Section (Carousel) --- */
.lift-applications {
  padding: 120px 0 150px;
  background-color: #0f0f0f;
  position: relative;
}

.lift-app-label {
  padding: 0 8vw;
  margin-bottom: 60px;
}

.lift-carousel-container {
  overflow: hidden;
  width: calc(100vw - 8vw);
  margin-left: 8vw; /* Respects the left margin alignment */
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.lift-carousel-track {
  display: flex;
  gap: 10px; /* Un peu plus d'espace entre les blocs */
  width: max-content;
  animation: lift-scroll-left 40s linear infinite;
}

.lift-carousel-container:hover .lift-carousel-track {
  animation-play-state: paused;
}

@keyframes lift-scroll-left {
  0% { transform: translateX(0); }
  /* 50% de la track + la moitié du gap (5px) pour une boucle parfaite */
  100% { transform: translateX(calc(-50% - 5px)); }
}

.lift-app-item {
  flex: 0 0 auto; /* Prevent shrinking */
  width: 400px; /* Fixed width for slides */
  aspect-ratio: 9/16; /* Assure que toutes les images ont la même taille/hauteur */
  border-radius: 5px;
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid #ffffff; /* Contours blancs */
}

.lift-app-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recadre l'image sans la déformer pour remplir le bloc */
  display: block;
  transition: transform 0.4s ease;
}

/* --- UI Sections --- */
.lift-ui-section {
  padding: 80px 8vw;
  background-color: #0f0f0f;
  position: relative;
}

.lift-ui-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 100px;
  align-items: start;
  margin-bottom: 60px;
}

.lift-ui-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin-top: 50px;
}

.lift-ui-grid-2.left-aligned {
  margin-right: auto;
}

.lift-ui-grid-2.right-aligned {
  margin-left: auto;
}

.lift-ui-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin-top: 50px; /* Aligné à gauche avec le titre */
}

.lift-ui-img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: cover;
}

.lift-app-item:hover .lift-app-img {
  transform: scale(1.03);
}

/* --- Lightbox --- */
.lift-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lift-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.lift-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
}

.lift-lightbox-content {
    position: relative;
    z-index: 1001;
    max-width: 90vw;
    max-height: 90vh;
}

.lift-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lift-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.lift-lightbox-close:hover {
    color: var(--color-primary);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .lift-context {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .lift-hero-left {
    flex: 0 0 15vw;
  }
}

@media (max-width: 768px) {
  .lift-hero-vector {
    display: none; /* Hide the white vector on mobile for simplicity and space */
  }
  .lift-logo-grid {
    grid-template-columns: 1fr;
  }
  .lift-logo-block-top {
    padding: 100px 8vw;
  }
  .lift-logo-block-left,
  .lift-logo-block-right {
    padding: 100px 8vw;
  }
  .lift-block-label,
  .lift-logo-block-left .lift-block-label,
  .lift-logo-block-right .lift-block-label {
    left: 8vw;
  }
  .lift-app-item {
    width: 280px;
  }
  .lift-ui-grid-2,
  .lift-ui-grid-3 {
    grid-template-columns: 1fr;
    margin-right: 0;
    margin-left: 0;
  }
  .lift-ui-grid-2.left-aligned,
  .lift-ui-grid-2.right-aligned {
    margin-left: 0;
    margin-right: 0;
  }
  .lift-back-btn {
    top: auto !important;
    bottom: 30px;
    right: 30px;
  }
  .lift-ui-header {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
