
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #080c19;
  font-family: 'Outfit', Arial, sans-serif;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(4, 8, 20, 0.93),
      rgba(4, 8, 20, 0.65) 45%,
      rgba(4, 8, 20, 0.08)
    ),
    url("../images/IP.png");

  background-size: cover;
  background-position: center;
}

.contenu {
  width: 100%;
  padding: 7%;
}

.titre {
  font-size: clamp(1.7rem, 5.7vw, 6.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ligne {
  display: block;
  white-space: nowrap;
  color: #ffe5a0;

  text-shadow:
    0 0 10px rgba(255, 187, 0, 0.4),
    0 0 30px rgba(255, 170, 0, 0.2);
}

/* ANIMATION DES LETTRES */

.lettre {
  display: inline-block;
  opacity: 0;

  clip-path: inset(0 100% 0 0);

  animation: apparition 0.72s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;

  animation-delay: var(--delai);
}

@keyframes apparition {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-10px);
    filter: blur(8px) brightness(2);
  }

  60% {
    opacity: 1;
    clip-path: inset(0 15% 0 0);
    transform: translateX(-2px);
    filter: blur(1px) brightness(1.5);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
    filter: none;
  }
}

/* BARRE DORÉE */

.barre {
  width: min(675px, 100%);
  height: 3px;
  margin-top: 35px;

  background: linear-gradient(
    90deg,
    #ff9d00,
    #ffe066,
    #ffffff,
    transparent
  );

  box-shadow:
    0 0 12px #ffb300,
    0 0 30px #ff9500,
    0 0 55px rgba(255, 174, 0, 0.65);

  transform: scaleX(0);
  transform-origin: left;

  animation: dessinerBarre 1.5s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;

  animation-delay: var(--delai-barre, 5s);
}

@keyframes dessinerBarre {
  from {
    opacity: 0;
    transform: scaleX(0);
  }

  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* MOBILE */

@media (max-width: 768px) {
  .hero {
    background-position: 65% center;
  }

  .contenu {
    padding: 6%;
  }

  .titre {
    font-size: clamp(1.55rem, 6vw, 3.4rem);
  }

  .barre {
    margin-top: 25px;
  }
}

/* ACCESSIBILITÉ */

@media (prefers-reduced-motion: reduce) {
  .lettre, .barre {
    animation: none !important;
    opacity: 1;
    filter: none;
    clip-path: none;
    transform: none;
  }
}
