/* Styles améliorés pour la section Hero avec palette beige et verte */

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(112, 141, 97, 0.9), rgba(139, 165, 125, 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;
}

/* 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;
}

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

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

.hero-cta {
    animation-delay: 0.8s;
}

@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(224, 216, 176, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-cta .btn-primary:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 216, 176, 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);
    }
}

/* Adaptation responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .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: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-pattern {
        background-size: 20px 20px; /* Motif plus petit sur mobile */
    }
    
    .hero-shape-2, .hero-shape-4 {
        opacity: 0.1; /* Réduire l'opacité des formes restantes */
    }
}
@media (max-width: 768px) and (pointer: coarse) {
    /* Réduire les animations sur les appareils tactiles */
    .hero-shape {
        animation-duration: 20s; /* Animation plus lente */
    }
    
    .hero-pattern {
        animation: none; /* Désactiver l'animation du motif */
    }
}
/* Correctif pour augmenter la taille du texte de la bannière en mode desktop */

/* Styles pour les écrans de taille moyenne et plus */
@media screen and (min-width: 768px) {
    .hero-subtitle {
        font-size: 16px;
        padding: 10px 20px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 48px;
        margin-bottom: 30px;
    }

    .hero-description {
        font-size: 20px;
        margin-bottom: 40px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Styles spécifiques pour les grands écrans (desktop) */
@media screen and (min-width: 1200px) {
    .hero-subtitle {
        font-size: 18px;
        padding: 12px 24px;
        margin-bottom: 32px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: 36px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 24px;
        margin-bottom: 48px;
        line-height: 1.5;
        max-width: 800px;
    }

    .hero-cta .btn {
        padding: 14px 36px;
        font-size: 18px;
        font-weight: 600;
    }
}

/* Assurer que le contenu reste centré et bien positionné */
@media screen and (min-width: 992px) {
    .hero-content {
        padding: 0 20px; /* Ajouter un peu d'espace sur les côtés */
    }
    
    .hero .container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
}