/* Styles pour la section hero et l'animation de bulles */
.hero-section {
    padding: calc(var(--spacing-xl) - 20px) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: left;
    max-width: 600px;
    margin: 0;
    margin-top: -40px;
    padding: 0 0 var(--spacing-md) 0;
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 137, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.hero-title {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 3.8rem; /* Réduit de 4.2rem à 3.8rem uniquement sur desktop */
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
    color: #000000;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: var(--spacing-md);
}

.hero-title span {
  display: inline-block;
  margin-right: 0.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: wordBoost 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards;
}

.word-1 { animation-delay: 0.1s; }
.word-2 { animation-delay: 0.2s; }
.word-3 { animation-delay: 0.3s; }
.word-4 { animation-delay: 0.4s; color: var(--primary-color); }
.word-5 { animation-delay: 0.5s; }

@keyframes wordBoost {
  0% {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.hero-subtitle {
    font-family: var(--body-font);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    max-width: 100%;
    width: 100%;
}

.subtitle-highlight {
  position: relative;
  display: inline-block;
  font-weight: 800;
  color: #7C89FF;
  padding: 5px 12px;
  border-radius: 30px;
  background-color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: rotate(-2deg);
  z-index: 2;
  margin: 0 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
  animation: subtitleFloat 3s ease-in-out infinite;
}

.subtitle-highlight:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

@keyframes subtitleFloat {
  0% {
    transform: rotate(-2deg) translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }
  50% {
    transform: rotate(-2deg) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  100% {
    transform: rotate(-2deg) translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  }
}

.hero-cta {
    margin-top: var(--spacing-md);
}

/* Animation de bulles */
.bubbles-animation {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(124, 137, 255, 0.2);
    animation-name: float-up;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-fill-mode: backwards; /* Empêche les bulles d'apparaître en haut avant l'animation */
    opacity: 0.9;
    background-size: cover;
    background-position: center;
}

.bubble-1 {
    width: 90px;
    height: 90px;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550773/1_auqmnj.jpg');
}

.bubble-2 {
    width: 120px;
    height: 120px;
    left: 25%;
    animation-duration: 10s;
    animation-delay: 1s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550773/2_o3wwoa.jpg');
}

.bubble-3 {
    width: 95px;
    height: 95px;
    left: 45%;
    animation-duration: 9s;
    animation-delay: 2s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550774/3_iojzye.jpg');
}

.bubble-4 {
    width: 75px;
    height: 75px;
    left: 60%;
    animation-duration: 7s;
    animation-delay: 3s;
    /* Image supprimée */
}

.bubble-5 {
    width: 105px;
    height: 105px;
    left: 75%;
    animation-duration: 12s;
    animation-delay: 4s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550776/5_v0g4px.jpg');
}

.bubble-6 {
    width: 80px;
    height: 80px;
    left: 15%;
    animation-duration: 9.5s;
    animation-delay: 5s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550777/6_l0y3oy.jpg');
}

.bubble-7 {
    width: 110px;
    height: 110px;
    left: 35%;
    animation-duration: 11s;
    animation-delay: 6s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550778/7_dkjvfg.jpg');
}

.bubble-8 {
    width: 70px;
    height: 70px;
    left: 65%;
    animation-duration: 8.5s;
    animation-delay: 7s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550779/8_d0xtko.jpg');
}

.bubble-9 {
    width: 60px;
    height: 60px;
    left: 85%;
    animation-duration: 9s;
    animation-delay: 8s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550780/9_yjw2v5.jpg');
}

.bubble-10 {
    width: 100px;
    height: 100px;
    left: 5%;
    animation-duration: 11s;
    animation-delay: 9s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550781/10_dmfzlv.jpg');
}

.bubble-11 {
    width: 70px;
    height: 70px;
    left: 50%;
    animation-duration: 8s;
    animation-delay: 10s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550781/11_olz3uj.jpg');
}

.bubble-12 {
    width: 85px;
    height: 85px;
    left: 80%;
    animation-duration: 10s;
    animation-delay: 11s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550782/12_xqvebh.jpg');
}

.bubble-13 {
    width: 70px;
    height: 70px;
    left: 5%;
    animation-duration: 9s;
    animation-delay: 0.2s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550800/G1_pbr5ri.jpg');
}

.bubble-14 {
    width: 100px;
    height: 100px;
    left: 50%;
    animation-duration: 12s;
    animation-delay: 0.5s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550783/13_fbcses.jpg');
}

.bubble-15 {
    width: 80px;
    height: 80px;
    left: 90%;
    animation-duration: 8s;
    animation-delay: 0.8s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550783/14_vco12g.jpg');
}

.bubble-16 {
    width: 110px;
    height: 110px;
    left: 20%;
    animation-duration: 11s;
    animation-delay: 0.3s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550784/15_intjq7.jpg');
}

.bubble-17 {
    width: 75px;
    height: 75px;
    left: 70%;
    animation-duration: 10s;
    animation-delay: 0.6s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550785/16_xqa2yy.jpg');
}

.bubble-18 {
    width: 95px;
    height: 95px;
    left: 30%;
    animation-duration: 9.5s;
    animation-delay: 1s;
    background-image: url('https://res.cloudinary.com/dydmnilxi/image/upload/v1751550786/17_eo8ljq.jpg');
}

@keyframes float-up {
    0% {
        bottom: -100px;
        transform: translateX(0) rotate(0deg) scale(1);
    }
    33% {
        transform: translateX(10px) rotate(5deg) scale(1.05);
    }
    66% {
        transform: translateX(-10px) rotate(-5deg) scale(0.95);
    }
    100% {
        bottom: 120%;
        transform: translateX(0) rotate(0deg) scale(1);
    }
}

/* Responsive hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.0rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .subtitle-highlight {
        margin-bottom: var(--spacing-xs);
    }
    
    .bubbles-animation {
        width: 35%;
    }
    
    .bubble {
        opacity: 0.6;
    }
    
    /* Cacher environ 60% des bulles sur mobile */
    .bubble-1, .bubble-2, .bubble-3, .bubble-5, .bubble-6, .bubble-7,
    .bubble-9, .bubble-15, .bubble-17 {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .bubbles-animation {
        width: 100%;
        height: 100%;
        opacity: 0.5;
        pointer-events: none;
        z-index: 0;
    }
}
