/* ============================= */
/* ACCUEIL â€” VERSION PROPRE      */
/* - parallax.css gÃ¨re les reveals
/* - sticky projets conservÃ©     */
/* - plus de preload gris        */
/* - plus de blur / micro fx     */
/* ============================= */

/* sÃ©curitÃ© anti-Ã©cran gris */
body.page-index,
body.page-index.is-preload,
body.page-index.is-loading,
html.is-preload body.page-index,
html.is-loading body.page-index {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* ============================= */
/* HERO                          */
/* ============================= */

.hero {
  padding-top: 110px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 52px;
  align-items: stretch;
}

.hero-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-title {
  margin-top: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  justify-content: center;
}

.hero .hr {
  display: none;
}

/* ============================= */
/* HERO MEDIA                    */
/* ============================= */

.hero-media {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  justify-self: end;
  align-self: center;
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  isolation: isolate;
  clip-path: inset(0 round 18px);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  min-height: auto;
  transform-origin: center center;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.18));
  pointer-events: none;
  z-index: 1;
}

.hero-media::before {
  content: none !important;
  display: none !important;
}

.hero-media .cinematic-glow {
  display: none !important;
}

.hero-media .label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-media .label strong {
  color: var(--gold-2);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
}

/* ============================= */
/* BG LIVE neutralisÃ©            */
/* ============================= */

.bg-live,
.bg-live::after {
  transform: none !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
  filter: none !important;
}

/* ============================= */
/* SWAP                          */
/* ============================= */

.swap {
  position: relative;
  height: calc(var(--swap-count, 3) * 100vh);
}

.swap__sticky {
  position: sticky;
  top: 120px;
  height: min(500px, 65vh);
  display: flex;
  align-items: center;
}

.swap__card {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  filter: none !important;
}

.swap__track {
  height: 100%;
  transition: transform 0.8s var(--ease);
  will-change: transform;
}

.swap__slide {
  height: 100%;
  display: flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .swap__track {
    transition: none !important;
  }
}

/* ============================= */
/* PROJECT LAYOUT                */
/* ============================= */

.project-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  height: 100%;
  padding: 28px;
}

.project-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-result {
  color: var(--gold);
  font-weight: 500;
}

/* ============================= */
/* CTA ACTIONS                   */
/* ============================= */

.cta-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.services-cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.final-cta-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* sÃ©curitÃ© reveals accueil */
.page-index .hero-card,
.page-index .hero-media,
.page-index .swap__card {
  filter: none !important;
}


/* ========================================================= */
/* ACCUEIL - Aperçu de nos projets : cadrage images PC only   */
/* ========================================================= */
@media (min-width: 981px) {
  .page-index .swap .project-layout {
    align-items: center;
  }

  .page-index .swap .project-media {
    width: 100%;
    height: auto;
    min-height: 0;
    align-self: center;
    display: block;
    line-height: 0;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
  }

  .page-index .swap .project-media img {
    width: 100%;
    height: auto;
    max-height: min(430px, calc(65vh - 70px));
    object-fit: contain;
    object-position: center center;
    display: block;
    border-radius: 18px;
  }
}
