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

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #F5F5F5;
  overflow-x: hidden;
}

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

.hero {
  height: 100vh;
  display: flex;
  align-items: flex-start; /* au lieu de center */
  justify-content: flex-start;
  text-align: left;

  padding: 40px 60px 0 60px; /* petite marge en haut */
}

.hero-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0px;
}

.hero h1 {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  line-height: 0.8;
  display: block;
}

/* =========================
   SCROLL TEXT PREMIUM (FULL MOTION)
========================= */

.scroll-text {
  position: relative;
  height: 40px;
  overflow: hidden;
  margin-top: 0px;
}

/* fade haut / bas */
.scroll-text::before,
.scroll-text::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 12px;
  z-index: 2;
  pointer-events: none;
}

.scroll-text::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,1),
    rgba(10,10,10,0)
  );
}

.scroll-text::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,1),
    rgba(10,10,10,0)
  );
}

/* INNER */
.scroll-inner {
  display: flex;
  flex-direction: column;
  animation: scrollPremium 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

/* TEXT */
.scroll-inner span {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.25rem;
  opacity: 0.9;
  letter-spacing: 0.3px;
}

/* =========================
   ANIMATION FULL MOTION (PRO)
========================= */

@keyframes scrollPremium {

  /* ========= PHRASE 1 ========= */

  0% {
    transform: translateY(0);
    filter: blur(2px);
    opacity: 0.2;
  }

  10% {
    filter: blur(0px);
    opacity: 1;
  }

  30% {
    transform: translateY(0);
    filter: blur(0px);
    opacity: 1;
  }

  38% {
    filter: blur(2px);
    opacity: 0.2;
  }

  /* ========= PHRASE 2 ========= */

  40% {
    transform: translateY(-40px);
    filter: blur(2px);
    opacity: 0.2;
  }

  48% {
    filter: blur(0px);
    opacity: 1;
  }

  62% {
    transform: translateY(-40px);
    filter: blur(0px);
    opacity: 1;
  }

  70% {
    filter: blur(2px);
    opacity: 0.2;
  }

  /* ========= PHRASE 3 ========= */

  72% {
    transform: translateY(-80px);
    filter: blur(2px);
    opacity: 0.2;
  }

  80% {
    filter: blur(0px);
    opacity: 1;
  }

  100% {
    transform: translateY(-80px);
    filter: blur(0px);
    opacity: 1;
  }
}

/* PAUSE HOVER */
.scroll-text:hover .scroll-inner {
  animation-play-state: paused;
}

/* =========================
   SECTIONS
========================= */

section {
  padding: 140px 60px;
}

/* =========================
   PÔLES
========================= */

.poles {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.pole {
  flex: 1;
}

.pole h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.pole p {
  opacity: 0.6;
  line-height: 1.6;
}

/* =========================
   PROJETS
========================= */

.projects h2 {
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  height: 250px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

/* =========================
   ABOUT
========================= */

.about {
  max-width: 650px;
}

/* =========================
   CONTACT
========================= */

.contact {
  text-align: center;
}

/* =========================
   TABLETTE
========================= */
@media (max-width: 1024px) {

  .hero {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .scroll-inner span {
    font-size: 1.1rem;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .hero {
    padding: 0 20px;
    justify-content: center; /* centre sur mobile */
    text-align: left;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.8rem;
    letter-spacing: -1px;
    line-height: 0.95;
  }

  .scroll-text {
    height: 32px;
  }

  .scroll-inner span {
    height: 32px;
    font-size: 1rem;
  }

  /* animation adaptée (hauteur réduite) */
  @keyframes scrollPremium {

    0% { transform: translateY(0); }
    30% { transform: translateY(0); }

    40% { transform: translateY(-32px); }
    70% { transform: translateY(-32px); }

    80% { transform: translateY(-64px); }
    100% { transform: translateY(-64px); }
  }
}

/* =========================
   PETITS MOBILES
========================= */
@media (max-width: 480px) {

  .hero h1 {
    font-size: 2.2rem;
  }

  .scroll-inner span {
    font-size: 0.95rem;
  }
}

