/* ===== HERO SECTION MODERNE ===== */

/* Variables CSS pour la cohérence */
:root {
    --hero-primary: #0f172a;
    --hero-secondary: #1e293b;
    --hero-accent: #3b82f6;
    --hero-accent-light: #60a5fa;
    --hero-text: #f8fafc;
    --hero-text-muted: #cbd5e1;
    --hero-success: #10b981;
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --hero-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --hero-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Arrière-plan avec effets */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hero-gradient);
    opacity: 0.95;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

/* Container principal */
.hero-container-modern {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Contenu principal */
.hero-content-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

/* Contenu textuel */
.hero-main-content {
    animation: slideInLeft 1s ease-out;
}

/* Badge de nouveauté */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    color: var(--hero-accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.badge-icon {
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

/* Titre principal */
.hero-title-modern {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--hero-text);
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    animation: fadeInUp 1s ease-out both;
}

.title-line-1 {
    animation-delay: 0.3s;
    color: var(--hero-text-muted);
    font-weight: 600;
    font-size: 0.8em;
}

.title-line-2 {
    animation-delay: 0.4s;
    margin: 0.5rem 0;
}

.title-line-3 {
    animation-delay: 0.5s;
    color: var(--hero-accent-light);
    font-size: 0.9em;
}

.brand-name {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -0.2em;
    left: 0;
    right: 0;
    height: 0.1em;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 0.05em;
    animation: expandWidth 1s ease-out 0.8s both;
}

/* Description */
.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--hero-text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description strong {
    color: var(--hero-accent-light);
    font-weight: 600;
}

/* Statistiques */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--hero-text);
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--hero-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Boutons d'action */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--hero-transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-modern {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    box-shadow: var(--hero-shadow);
}

.btn-primary-modern::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: left 0.5s;
}

.btn-primary-modern:hover::before {
    left: 100%;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 64px -12px rgba(59, 130, 246, 0.4);
}

.btn-secondary-modern {
    background: rgba(248, 250, 252, 0.1);
    color: var(--hero-text);
    border: 1px solid rgba(248, 250, 252, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary-modern:hover {
    background: rgba(248, 250, 252, 0.2);
    transform: translateY(-2px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-modern:hover .btn-icon {
    transform: translateX(4px);
}

/* Visuel principal */
.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out 0.4s both;
}

.visual-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.visual-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero-logo-modern {
    position: relative;
    z-index: 2;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

/* Éléments flottants */
.visual-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(16, 185, 129, 0.2));
    animation: floatRandom 8s ease-in-out infinite;
}

.element-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Indicateur de scroll */
.scroll-indicator-modern {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hero-text-muted);
    animation: fadeInUp 1s ease-out 1s both;
    cursor: pointer;
    transition: var(--hero-transition);
}

.scroll-indicator-modern:hover {
    color: var(--hero-accent-light);
    transform: translateX(-50%) translateY(-4px);
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

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

@keyframes floatRandom {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-15px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

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

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-container-modern {
        padding: 0 30px;
    }
    
    .hero-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title-modern {
        font-size: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .hero-section-modern {
        min-height: 80vh;
        padding: 60px 0;
    }
    
    .hero-container-modern {
        padding: 0 20px;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .stat-item {
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn-primary-modern,
    .btn-secondary-modern {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .hero-logo-modern {
        max-width: 200px;
    }
    
    .floating-element {
        display: none;
    }
    
    .hero-particles::before,
    .hero-particles::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section-modern {
        min-height: 70vh;
        padding: 40px 0;
    }
    
    .hero-container-modern {
        padding: 0 15px;
    }
    
    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .hero-title-modern {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        margin-bottom: 25px;
    }
    
    .stat-item {
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-logo-modern {
        max-width: 150px;
    }
    
    .scroll-indicator-modern {
        bottom: 15px;
    }
}

/* Optimisations pour les écrans haute résolution */
@media (min-width: 1400px) {
    .hero-container-modern {
        max-width: 1320px;
    }
    
    .hero-title-modern {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .hero-logo-modern {
        max-width: 400px;
    }
}

/* Optimisations pour les tablettes en mode paysage */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section-modern {
        min-height: 90vh;
    }
    
    .hero-main-content {
        gap: 30px;
    }
    
    .hero-title-modern {
        font-size: 2.8rem;
    }
}

/* Préférences utilisateur pour les animations */
@media (prefers-reduced-motion: reduce) {
    .hero-section-modern *,
    .hero-section-modern *::before,
    .hero-section-modern *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none !important;
    }
    
    .hero-particles::before,
    .hero-particles::after {
        animation: none !important;
    }
}