/* Page d'accueil - CSS autonome et propre */

.home-landing {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #000;
  color: var(--color-white);
  font-family: var(--font-primary);
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.split-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.left, .right {
  flex: 1;
  display: flex;
  align-items: center;

.split-container .subtitle {
  margin-top: var(--spacing-sm);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--color-white);
  text-shadow: 0 0.25rem 0.85rem rgba(0, 0, 0, 0.6);
}
  text-decoration: none;
  color: var(--color-white);
  position: relative;
  transition: all 0.3s ease;
  padding: var(--spacing-xl);
  overflow: hidden; /* AJOUT : Empêche le débordement */
}

.left {
  background-image: url('../assets/images/autres/home000.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: flex-start;
}

.right {
  background-image: url('../assets/images/autres/home001.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  justify-content: flex-end;
}

.content {
  z-index: 10;
  opacity: 0; /* Masque le contenu par défaut */
  transition: opacity 0.3s ease;
}

.left .content {
  text-align: left;
}

.right .content {
  text-align: right;
}

/* Fond noir semi-transparent pour le texte */
.content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: var(--spacing-xs);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.split-container h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
  letter-spacing: 0.12em;

  .split-container .subtitle {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }
  font-family: var(--font-primary);
  position: relative;
  z-index: 1;
  text-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.55);
}

p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: var(--font-primary);
  position: relative;
  z-index: 1;
}

.left:hover,
.right:hover {
  flex: 1.2;
  filter: brightness(1.1);
}

/* Affichage du contenu au survol */
.left:hover .content,
.right:hover .content {
  opacity: 1;
}

.left:hover .content::before,
.right:hover .content::before {
  opacity: 1;
}

.title {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.title img {
  max-width: 500px;
  width: auto;
  height: auto;
  max-height: 150px;
  background-color: var(--color-white);
  padding: 5px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }

  .left, .right {
    height: 50vh;
    justify-content: center;
    padding: var(--spacing-lg);
  }

  .left .content,
  .right .content {
    text-align: center;
    opacity: 1; /* Toujours visible sur mobile */
  }

  .content::before {
    opacity: 1; /* Fond toujours visible sur mobile */
  }

  .split-container h1 {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
  }

  .title {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .title img {
    max-width: 250px;
    max-height: 60px;
    padding: 12px;
  }
}