/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-image {
    position: relative;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: float 3s ease-in-out infinite;
    border: 5px solid rgba(255, 255, 255, 0.1);
}

/* Particles background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: particle-float 20s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-100px) translateX(50px);
    }

    50% {
        transform: translateY(-200px) translateX(-50px);
    }

    75% {
        transform: translateY(-100px) translateX(100px);
    }
}

/* Masquer l'image de fond SVG sur mobile */
@media (max-width: 991px) {
    .hero-section::before {
        display: none !important;
    }
}

/* Wrapper for bottom actions */
.hero-bottom-actions {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
}

/* Bouton Allan est devenu fou */
.btn-allan-fou {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 50px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-allan-fou::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-allan-fou:hover::before {
    left: 100%;
}

.btn-allan-fou:hover {
    background: white;
    color: #6a11cb;
    /* Deep Purple */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.4);
    border-color: white;
}

.btn-allan-fou i {
    transition: transform 0.4s ease;
}

.btn-allan-fou:hover i {
    transform: rotate(360deg) scale(1.2);
}

@media (max-width: 1199px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        padding-bottom: 50px;
        padding-top: 120px;
    }

    .hero-bottom-actions {
        position: relative;
        text-align: center;
        bottom: auto;
        right: auto;
        flex-direction: column;
        margin-top: 30px;
        width: 100%;
    }

    .btn-allan-fou {
        width: auto;
    }

    .btn-allan-fou:hover {
        transform: translateY(-3px);
    }

    .mini-terminal {
        margin-bottom: 20px !important;
    }
}

/* Réduire la taille de l'image sur tablette (entre 769px et 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-image img {
        margin-top: 80px;
        max-width: 300px !important;
        width: 100% !important;
        height: 300px !important;
    }
}