/* =========================
   SUPRADRAMA — HOME (index)
   Premium polish + editorial hierarchy
   ========================= */

/* 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;
  width: min(980px, 92vw);
}

/* =========================
   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” */
  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{
    margin-top: -10px;
  }

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

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

  .static-logo img{
    width: min(150px, 50vw);
  }

  .home-logo::before{
    inset: -24px -14px;
    opacity: .75;
    filter: blur(12px);
  }
}

/* =========================
   LINKS (Title + Subtitle levels)
   ========================= */

.links{
  display: flex;
  justify-content: center;
  gap: clamp(18px, 5.2vw, 72px);
  margin-top: 54px;
  flex-wrap: wrap;
}

/* Anchor becomes a mini block */
.link{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-decoration: none;
  padding: 10px 8px;
  white-space: nowrap;

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

/* Title line (bigger / stronger) */
.link .nav-main{
  font-weight: 900;
  letter-spacing: .14em;
  font-size: clamp(1.35rem, 2.9vw, 1.9rem);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
}

/* Subtitle line (smaller / lighter) */
.link .nav-sub{
  font-size: .72rem;
  font-weight: 600;
  opacity: .60;
  letter-spacing: .10em;
  text-transform: none;
  color: rgba(255,255,255,.88);
  line-height: 1.2;
}

/* Underline gradient (premium) */
.link::after{
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  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(.22);
  transform-origin: left;
  transition: transform .25s ease;
  opacity: .92;
}

.link:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

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

.link:hover .nav-main{
  color: color-mix(in srgb, var(--g1) 70%, #fff);
}

@media (max-width: 768px){
  .links{
    margin-top: 38px;
    gap: 26px 30px;
  }

  .link{
    padding: 8px 6px;
  }

  .link .nav-main{
    font-size: 1.25rem;
  }

  .link .nav-sub{
    font-size: .72rem;
    letter-spacing: .08em;
  }
}

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

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

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