/* ============================= */
/* 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: rotate(-2deg);
  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;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-media {
    max-width: 100%;
    justify-self: center;
    min-height: auto;
  }

  .hero-media .label {
    padding: 8px 12px;
  }

  .hero-media .label strong {
    font-size: .64rem;
    letter-spacing: .15em;
  }
}

@media (max-width: 480px) {
  .hero-media {
    max-width: 100%;
    transform: rotate(-1deg);
  }

  .hero-media .label {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 12px;
  }

  .hero-media .label strong {
    font-size: .58rem;
    letter-spacing: .12em;
  }

  .hero-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================= */
/* 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;
}

@media (max-width: 980px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-media {
    height: 220px;
  }
}

@media (max-width: 980px) {
  .swap__slide .btn--ghost {
    display: none;
  }
}

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

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

@media (max-width: 768px) {
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

.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;
}
