/* Hero Section - Design moderne inspiré des meilleures pratiques */

/* Variables CSS */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    --gradient-secondary: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent; /* Transparent pour laisser voir le Canvas */
    overflow: hidden;
    /* Pas de padding-top car ce n'est plus la première section */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1; /* Sous le header qui a z-index: 2 */
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
    background: rgba(255, 255, 255, 0.95); /* Fond semi-transparent pour la lisibilité */
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.stat {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-animation {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent; /* Transparent pour laisser voir le Canvas Three.js */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Three.js Container */
#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0; /* Sous les autres éléments */
    pointer-events: none; /* N'interfère pas avec les clics */
}

/* Floating Elements */
.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
    z-index: 2; /* Au-dessus du Canvas Three.js */
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    transition: var(--transition);
}

.floating-element:hover {
    opacity: 1;
    transform: scale(1.1);
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
}

.element-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 4.5s;
}

/* Scroll Indicator dans la section présentation */
#presentation .hero-scroll-indicator {
    position: relative;
    top: 33%;
    margin: 1.5rem auto;
    color: var(--primary-color);
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    /* Pas d'animation sur le conteneur principal */
}

.hero-scroll-indicator:hover {
    color: var(--primary-color);
}

.scroll-arrow {
    width: 16px;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--primary-color);
    margin: 0 auto;
    animation: bounce 2s infinite;
    box-sizing: border-box;
}

.hero-scroll-indicator span {
    display: block;
    width: fit-content;
    text-align: center;
    margin-top: 0.5rem;
    align-self: center;
    transform: translateX(-50%);
    margin-left: 50%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-elements {
        width: 200px;
        height: 200px;
    }
    
    .floating-element {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
