
/* === ANIMATIONS === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardLift {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes titrePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.85;
  }
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === STRUCTURE DE BASE === */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.homepage {
  min-height: 100vh;
  background: url('image/image (10).jpg') no-repeat center center fixed;
  background-size: cover;
}

/* === CONTAINERS === */
.contentContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeInUp 1.2s ease-out both;
}

.hero-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  animation: softFadeSlide 1.2s ease-out both;
}

/* === CADRE NOIR === */
.cardeNoir {
  width: 65%;
  max-width: 90vw;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 4px solid rgba(49, 49, 49, 0.3);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(49, 49, 49, 0.3);
  padding: 20px;
  color: white;
  text-align: center;
  font-size: 1.575em;
  position: relative;
  margin: 150px auto 70px;
  animation: cardLift 1.2s ease-out both;
  animation-delay: 0.4s;
}

.cardeNoir::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  z-index: 0;
}

.cardeNoir > * {
  position: relative;
  z-index: 1;
}

/* === HEADER === */
.header {
  position: absolute;
  top: 25px;
  right: 0;
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 10;
}

/* === NAVIGATION === */
.navMenu {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
}

.navMenu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 28px;
  transition: 0.3s ease;
}

.navMenu li a:hover {
  color: rgb(101, 173, 255);
}

/* === HERO ELEMENTS === */
.logo-container,
.hero-title,
.hero-slogan,
.hero-btn,
.topNav {
  animation: slideDownFade 0.3s ease-out forwards;
  opacity: 0;
}

.logo-container {
  animation-delay: 0.2s;
}

.topNav {
  animation-delay: 0.3s;
}

.hero-title {
  animation-delay: 0.4s;
}

.hero-slogan {
  animation-delay: 0.5s;
}

.hero-btn {
  animation-delay: 0.6s;
}

/* === RESPONSIVE === */
@media (max-width: 48rem) {
  html {
    font-size: 1em;
  }

  .contentContainer {
    padding: 1em;
  }

  .cardeNoir {
    width: 95%;
    font-size: 1em;
    padding: 1.2em;
    margin: 2em auto 1em;
  }

  .header {
    padding: 1.3em 1.5em;
    top: 1.2em;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .navMenu {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.5em 1em;
  }

  .navMenu li a {
    font-size: 0.8rem;
    padding: 0.05em 0.1em;
  }

  .hero-container {
    padding-top: 1.5em;
    text-align: center;
  }

  .logo-container {
    margin: 1em auto;
  }

  .logo {
    height: 3em;
  }
}

/* === FOOTER === */
footer {
  font-size: 1em;
  padding: 1.2em 1em;
  text-align: center;
  color: white;
  background-color: transparent;
  width: 100%;
}

@media (max-width: 48rem) {
  footer {
    font-size: 0.85em;
    padding: 1em 0.5em;
    margin-top: 2em;
  }

  footer p {
    margin-bottom: 0.3em;
    line-height: 1.4em;
  }
}

.navMenu a {
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.6);
  transition: color 0.3s;
}

.navMenu a.active {
  color: rgb(101, 173, 255);
}