/* =========================
   SUPRADRAMA — HOME (index)
   Premium polish + mobile tweaks
   ========================= */

/* Layout global pour coller le footer en bas */
html, body{
  height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MAIN prend l'espace disponible */
main{
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(56px, 10vh, 120px) 0 56px;
}

.container{
  text-align: center;
}

/* =========================
   HEADER (home specific)
   ========================= */

/* pas de logo header sur la home */
body.is-home .header .logo{
  display: none;
}

/* header un peu plus compact mobile */
@media (max-width: 768px){
  body.is-home .header{
    height: 56px;
  }
}

/* =========================
   HOME LOGO (premium)
   ========================= */

.home-logo{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

  /* léger “cinema glow” derrière le logo */
  position: relative;
  isolation: isolate;
}

/* halo très doux (premium / studio) */
.home-logo::before{
  content: "";
  position: absolute;
  inset: -40px -20px;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(
      closest-side,
      color-mix(in srgb, var(--g1) 22%, transparent),
      transparent 70%
    ),
    radial-gradient(
      closest-side,
      color-mix(in srgb, var(--g2) 16%, transparent),
      transparent 75%
    );
  opacity: .9;
  filter: blur(14px);
  transform: translateZ(0);
}

.video-logo,
.static-logo{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Desktop video sizing */
.home-anim{
  display: block;
  margin: 0 auto;
  width: min(420px, 78vw);
  height: auto;
  background: transparent;

  /* reveal */
  opacity: 0;
  transform: scale(.97);
  animation: logoReveal .9s ease forwards;

  /* rendu “cinéma” : micro contraste + glow */
  filter:
    drop-shadow(0 18px 50px rgba(0,0,0,.35))
    drop-shadow(0 0 24px rgba(255,255,255,.10));
}

/* Static logo */
.static-logo img{
  width: min(220px, 70vw);
  height: auto;
  display: block;

  opacity: 0;
  transform: scale(.97);
  animation: logoReveal .9s ease forwards;

  filter:
    drop-shadow(0 18px 50px rgba(0,0,0,.35))
    drop-shadow(0 0 24px rgba(255,255,255,.10));
}

/* animation logo */
@keyframes logoReveal{
  to{
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================
   SWITCH VIDEO / MOBILE
   ========================= */

.home-logo .video-logo{ display: block; }
.home-logo .static-logo{ display: none; }

/* Mobile: hide video, show static + remonte un poil le logo */
@media (max-width: 768px){

  .home-logo{
    /* remonte légèrement l'ensemble */
    margin-top: -10px;
  }

  .home-logo .video-logo{
    display: none;
  }

  .home-logo .static-logo{
    display: block;
  }

  /* logo plus petit mobile */
  .static-logo img{
    width: min(150px, 50vw);
  }

  /* halo un peu plus discret en mobile */
  .home-logo::before{
    inset: -24px -14px;
    opacity: .75;
    filter: blur(12px);
  }
}

/* =========================
   LINKS
   ========================= */

.links{
  display: flex;
  justify-content: center;
  gap: clamp(18px, 6vw, 80px);
  margin-top: 56px;
  flex-wrap: wrap;
}

.link{
  position: relative;
  display: inline-block;

  font-weight: 800;
  letter-spacing: .12em;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  text-transform: uppercase;

  color: #fff;
  text-decoration: none;
  padding: 10px 6px;
  white-space: nowrap;

  transition: color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* underline gradient */
.link::after{
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 2px;
  height: 2px;

  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--g1) 60%, transparent),
    color-mix(in srgb, var(--g2) 60%, transparent)
  );

  transform: scaleX(.2);
  transform-origin: left;
  transition: transform .25s ease;
  opacity: .9;
}

.link:hover{
  color: color-mix(in srgb, var(--g1) 70%, #fff);
  transform: translateY(-1px);
}

.link:hover::after{
  transform: scaleX(1);
}

/* Mobile adjustments */
@media (max-width: 768px){
  .links{
    margin-top: 38px; /* un poil plus compact */
    gap: 28px;
  }
}

/* =========================
   FOOTER
   ========================= */

footer{
  margin-top: auto;
  padding: 18px 0;
}

@media (max-width: 768px){
  footer{
    padding-bottom: 20px;
  }
}