/* Hero Component */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero__decoration {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: float 8s ease-in-out infinite;
    filter: blur(1px);
    transition: all 0.3s ease;
}

.hero__decoration:hover {
    filter: blur(0.5px);
    transform: scale(1.1);
}

/* Carré de points - en haut à gauche */
.hero__decoration--1 {
    width: 400px;
    height: 400px;
    background-image: url('../../assets/images/homepage/deco/carre_points.svg');
    top: 8%;
    left: 5%;
    animation: float 8s ease-in-out infinite, decoration-spin 15s linear infinite;
    animation-delay: 0s;
    opacity: 0.3;
}

/* Fireworks - en haut à droite */
.hero__decoration--2 {
    width: 600px;
    height: 600px;
    background-image: url('../../assets/images/homepage/deco/Fireworks_big.svg');
    top: 3%;
    right: 2%;
    animation: float 8s ease-in-out infinite, decoration-bounce 6s ease-in-out infinite;
    animation-delay: 2s;
    opacity: 0.2;
}

/* Ligne serpentin - au milieu à droite */
.hero__decoration--3 {
    width: 800px;
    height: 200px;
    background-image: url('../../assets/images/homepage/deco/Ligne_serpentin.svg');
    top: 50%;
    right: -8%;
    animation: float 8s ease-in-out infinite, decoration-wave 10s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.4;
    transform: rotate(-15deg);
}

/* Petit galet - en bas à gauche */
.hero__decoration--4 {
    width: 200px;
    height: 200px;
    background-image: url('../../assets/images/homepage/deco/Petit_galet.svg');
    bottom: 25%;
    left: 8%;
    animation: float 8s ease-in-out infinite, decoration-roll 12s linear infinite;
    animation-delay: 3s;
    opacity: 0.5;
}

/* Gros galet - en bas à droite */
.hero__decoration--5 {
    width: 300px;
    height: 300px;
    background-image: url('../../assets/images/homepage/deco/Gros_galet.svg');
    bottom: 20%;
    right: 5%;
    animation: float 8s ease-in-out infinite, decoration-roll 15s linear infinite reverse;
    animation-delay: 4s;
    opacity: 0.4;
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.hero__subtitle {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero__subtitle-icon {
    font-size: 1.2em;
    animation: mouseBounce 2s ease-in-out infinite;
    display: inline-block;
}

.hero__title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 661px;
    height: 422px;
    background-image: url('../../assets/images/homepage/Shape_homepage.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
    animation: title-shape-rotate 20s linear infinite, title-shape-pulse 4s ease-in-out infinite;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
}

.scroll-indicator__bar {
    width: 22px;
    height: 128px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.scroll-indicator__bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background-color: var(--color-text);
    border-radius: var(--radius-full);
    animation: scroll-progress 2s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) scale(1.02) rotate(1deg);
    }
    50% {
        transform: translateY(-20px) scale(1.05) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) scale(1.03) rotate(-1deg);
    }
}

@keyframes title-shape-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes title-shape-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes decoration-spin {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
        transform: translateY(0) scale(1) rotate(360deg);
    }
}

@keyframes decoration-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes decoration-wave {
    0%, 100% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-10deg) translateY(-15px);
    }
}

@keyframes decoration-roll {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

@keyframes scroll-progress {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(250%);
    }
}

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

@keyframes mouseBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: var(--font-size-2xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-md);
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .hero__title::before {
        width: 400px;
        height: 255px;
        opacity: 0.3;
    }

    .hero__decoration--1 {
        width: 250px;
        height: 250px;
        top: 12%;
        left: 2%;
    }

    .hero__decoration--2 {
        width: 350px;
        height: 350px;
        top: 5%;
        right: -2%;
    }

    .hero__decoration--3 {
        width: 400px;
        height: 100px;
        top: 55%;
        right: -15%;
    }

    .hero__decoration--4 {
        width: 120px;
        height: 120px;
        bottom: 30%;
        left: 5%;
    }

    .hero__decoration--5 {
        width: 180px;
        height: 180px;
        bottom: 25%;
        right: 2%;
    }

    .scroll-indicator {
        display: none;
    }
}


