/* === PAGE D'ACCUEIL === */
.home-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.home-wrapper.visible {
  opacity: 1;
}
.home-wrapper.hiding {
  opacity: 0;
}

.home-title {
  font-size: clamp(2.25rem, 8vh, 5.75rem);
  font-weight: bold;
  text-align: center;
  color: #0f0f0f;
  font-family: "Coolvetica", sans-serif;
  line-height: 1.3;
  margin: 0;
  min-height: 2.6em;
}

.char-reveal {
  display: inline-block;
  opacity: 0;
  animation: letterFadeIn 0.4s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes letterFadeIn {
  to {
    opacity: 1;
  }
}

.neon-text {
  color: #0f0f0f;
  text-shadow: 0 0 5px #0066ff, 0 0 10px #0066ff, 0 0 20px #0066ff,
    0 0 30px #0066ff, 0 0 40px #0066ff;
  animation: neonPulse 2s ease-in-out infinite alternate,
    letterFadeIn 0.4s ease-out 1.16s forwards;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
}

@keyframes neonPulse {
  from {
    text-shadow: 0 0 5px #0066ff, 0 0 10px #0066ff, 0 0 20px #0066ff,
      0 0 30px #0066ff, 0 0 40px #0066ff;
  }
  to {
    text-shadow: 0 0 5px #0066ff, 0 0 10px #0066ff, 0 0 15px #0066ff,
      0 0 20px #008cff, 0 0 40px #0066ff;
  }
}

.home-subtitle {
  font-size: clamp(1.25rem, calc(0.53rem + 1.45vw), 1.75rem);
  color: #0066ff;
  font-weight: normal;
  margin-top: 50px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: subtitleFadeIn 0.5s 2s forwards;
}

@keyframes subtitleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-button-nav {
  display: none;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* === MENTIONS LÉGALES === */
.legal-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.legal-wrapper.visible {
  opacity: 1;
}
.legal-wrapper.hiding {
  opacity: 0;
}

.legal-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-column h2 {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 20px 0 0 0;
  font-family: "Coolvetica", sans-serif;
  border-bottom: 2px solid #0066ff;
  padding-bottom: 8px;
}
.legal-column h2:first-child {
  margin-top: 0;
}
.legal-column p,
.legal-column ul li {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-family: "Roboto Slab", serif;
  text-align: justify;
}
.legal-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.legal-column ul li {
  margin-bottom: 5px;
}
.legal-column ul li strong,
.legal-column ul ul li::before {
  color: #0066ff;
  font-weight: bold;
}
.legal-column ul ul {
  margin-top: 8px;
  padding-left: 20px;
}
.legal-column ul ul li::before {
  content: "• ";
  margin-right: 8px;
}

@media (max-width: 968px) {
  .legal-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-title {
    font-size: clamp(28px, 6vw, 48px);
  }
}

@media (max-width: 768px) {
  .home-subtitle {
    display: none;
  }
  .legal-wrapper {
    padding: 5px;
  }

  .home-button-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
  }
  .home-button-nav .button3,
  .home-button-nav .contact-btn {
    width: 65%;
    margin: auto;
    gap: 25px;
    opacity: 0;
    transform: translateY(10px);
  }
  .home-button-nav .contact-btn {
    margin-top: 15px;
  }

  .home-wrapper.visible .home-button-nav .button3,
  .home-wrapper.visible .home-button-nav .contact-btn {
    animation: subtitleFadeIn 0.5s ease-out forwards;
  }

  .home-wrapper.visible .home-button-nav #home-services-btn {
    animation-delay: 2s;
  }
  .home-wrapper.visible .home-button-nav #home-projects-btn {
    animation-delay: 2.15s;
  }
  .home-wrapper.visible .home-button-nav #home-about-btn {
    animation-delay: 2.3s;
  }
  .home-wrapper.visible .home-button-nav #home-contact-btn {
    animation-delay: 3s;
  }
}
