/* ==========================================================================
   Accueil — porte d'entrée split-screen Professionnel / Particulier
   ========================================================================== */

/* --- Écran de chargement (animation du logo) --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-paper);
  cursor: pointer;
  transition: opacity 500ms var(--ease-standard);
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-hero {
  position: relative;
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.split-hero__panel {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-paper);
  transition: flex-grow var(--duration-hero) var(--ease-standard);
}

.split-hero__panel:not(:first-child) {
  border-left: 1px solid var(--color-border-on-dark);
}

.split-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(0.72);
  transition: transform var(--duration-hero) var(--ease-standard), filter var(--duration-hero) var(--ease-standard);
}

.split-hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.8), rgba(20, 18, 16, 0.1) 55%);
}

.split-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-8);
  max-width: 28rem;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.97);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}

.split-hero__title {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

.split-hero__tagline {
  color: var(--color-paper);
  opacity: 0.85;
}

@media (hover: hover) and (pointer: fine) {
  .split-hero__panel:hover .split-hero__image,
  .split-hero__panel:focus-visible .split-hero__image {
    transform: scale(1.06);
    filter: grayscale(0%) brightness(0.55);
  }

  .split-hero__panel:hover .split-hero__content,
  .split-hero__panel:focus-visible .split-hero__content {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .split-hero:has(.split-hero__panel:hover) .split-hero__panel:not(:hover),
  .split-hero:has(.split-hero__panel:focus-visible) .split-hero__panel:not(:focus-visible) {
    flex-grow: 0.82;
  }

  .split-hero__panel:hover,
  .split-hero__panel:focus-visible {
    flex-grow: 1.22;
  }
}

/* Sans survol possible (mobile/tactile) : texte affiché en permanence, panneaux empilés */
@media (hover: none), (max-width: 720px) {
  .split-hero {
    flex-direction: column;
    min-height: auto;
  }
  .split-hero__panel {
    flex: 1 1 50%;
    min-height: 50dvh;
  }
  .split-hero__content {
    opacity: 1;
    transform: none;
  }
  .split-hero__title {
    font-size: var(--text-3xl);
  }
}

/* --- En-tête : reste en texte clair sur cette page (pas de gris anthracite),
   même une fois défilée ou en menu mobile ouvert. --- */
.site-header.is-scrolled .site-header__nav a {
  color: var(--color-paper);
}
@media (max-width: 860px) {
  .site-header__nav a {
    color: var(--color-paper);
  }
}
