/* Styles améliorés pour la section Hero - Loudia Propreté */

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(21, 101, 192, 0.9), rgba(30, 136, 229, 0.85)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dot.png');
    opacity: 0.05;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
}

.hero-content {
    text-align: center;
}

/* Animation du contenu avec fade-in progressif */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.2s;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 24px;
}

.hero-title {
    animation-delay: 0.4s;
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    animation-delay: 0.6s;
    font-size: 20px;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    animation-delay: 0.8s;
    display: flex;
    gap: 16px;
    justify-content: center;
}

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

/* Éléments décoratifs animés */
.hero-animated-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none; /* Permet les clics à travers les formes */
}

.hero-animated-shapes, .hero-shape {
    display: block !important;
    visibility: visible !important;
}

/* Formes flottantes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    z-index: 2;
}

.hero-shape-1 {
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    background-color: var(--white);
    animation: floatAnimation 12s ease-in-out infinite;
}

.hero-shape-2 {
    bottom: 20%;
    right: 15%;
    width: 150px;
    height: 150px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: var(--secondary);
    animation: floatAnimation 15s ease-in-out infinite 1s, morphAnimation 12s ease-in-out infinite;
}

.hero-shape-3 {
    top: 40%;
    right: 25%;
    width: 60px;
    height: 60px;
    background-color: var(--white);
    animation: floatAnimation 10s ease-in-out infinite 2s;
}

.hero-shape-4 {
    bottom: 35%;
    left: 20%;
    width: 120px;
    height: 120px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    background-color: var(--secondary);
    animation: floatAnimation 14s ease-in-out infinite 3s, morphAnimation 12s ease-in-out infinite reverse;
}

.hero-shape-5 {
    top: 30%;
    left: 30%;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    animation: floatAnimation 8s ease-in-out infinite 1s;
}

.hero-shape-6 {
    top: 60%;
    right: 10%;
    width: 70px;
    height: 70px;
    background-color: var(--secondary);
    animation: floatAnimation 11s ease-in-out infinite;
}

/* Animation du motif de points */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    animation: patternAnimation 40s linear infinite;
}

/* Animations des formes */
@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(10px);
    }
    50% {
        transform: translateY(10px) translateX(-10px);
    }
    75% {
        transform: translateY(-5px) translateX(-15px);
    }
}

@keyframes morphAnimation {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    50% {
        border-radius: 30% 70% 70% 30% / 70% 30% 70% 30%;
    }
    75% {
        border-radius: 70% 30% 30% 70% / 30% 70% 30% 70%;
    }
}

@keyframes patternAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Style des boutons CTA amélioré */
.hero-cta .btn-primary {
    background-color: var(--secondary);
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-cta .btn-primary:hover {
    background-color: #FFD54F;
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.hero-cta .btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease-out;
    z-index: -1;
}

.hero-cta .btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.hero-cta .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-cta .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Amélioration de l'animation du bouton de défilement */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    color: var(--white);
    font-size: 32px;
    opacity: 0.8;
    transition: var(--transition);
    display: block;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseAnimation 2s infinite, bounceAnimation 3s infinite;
}

.hero-scroll a:hover {
    opacity: 1;
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes bounceAnimation {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Media queries */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .hero-shape-1, .hero-shape-3, .hero-shape-5 {
        display: none; /* Masquer certaines formes sur mobile pour alléger */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
}