
:root {
    --bg-start: #0f2027;
    --bg-end: #2c5364;
  }
  
body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(to bottom, var(--bg-start), var(--bg-end));
    transition: background 0.5s ease;
    color: #fff;
    overflow-x: hidden;
  }
  
  
  header .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .hero-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    position: absolute;
    top: 0;
    left: 0;
  }
  .hero {
    position: relative;
    overflow: hidden;
  
    display: flex;
    justify-content: center;
    align-items: center; /* centre verticalement */
    flex-direction: column;
    text-align: center;
  }

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  /* Ajout d’un dégradé en overlay */
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  transition: opacity 1.5s ease;
}

/* Animation fadeIn pour le texte */
@keyframes fadeInText {
  to {
    opacity: 1;
  }
}

.overlay-text {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 900px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .overlay-text h1 {
    font-size: 3rem;
    margin: 0;
    animation: glow 2s ease-in-out infinite alternate;
  }
  
  .overlay-text p {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.9;
  }
  
  section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
    text-align: center;
  }
  
  section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #4fd1c5;
    position: relative;
  }
  
  section p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.85;
  }
  
  .btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    color: #0a1e2c;
    background: #4fd1c5;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.4);
  }
  
  .btn.hovered,
  .btn:hover {
    background: #38b2ac;
    box-shadow: 0 0 25px rgba(79, 209, 197, 0.8);
    transform: scale(1.05);
  }
  
  footer {
    background: #071521;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #8ca6b1;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes glow {
    from {
      text-shadow: 0 0 10px #4fd1c5, 0 0 20px #4fd1c5;
    }
    to {
      text-shadow: 0 0 20px #4fd1c5, 0 0 40px #38b2ac;
    }
  }