/* =================================
   HERO SECTION - FICHIER CONSOLIDÉ
   ================================= */

/* ===== STYLES DE BASE ===== */

/* Section Hero - Arrière-plan et positionnement */
.hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 25%, #333333 50%, #1e1e1e 75%, #2a2a2a 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Espacement par défaut */
    padding-bottom: 20px;
    margin-bottom: 15px;
}

/* Couleurs des textes */
.hero h1 {
    color: white !important;
}

.hero .highlight {
    color: #00D4AA !important;
}

.hero .subtitle {
    color: white !important;
}

/* ===== BADGES HERO ===== */

/* Container des badges */
.hero-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Style de base des badges */
.hero .badge {
    display: inline-flex;
    align-items: center;
    background-color: rgba(248, 249, 250, 0.95);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #2680EB;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero .badge i {
    margin-right: 8px;
}

.hero .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Badge de disponibilité pays - style spécial vert */
.hero .badge.available,
#country-badge,
.hero-badges .badge:nth-child(4) {
    color: #10B981 !important;
    border: 1px solid #10B981 !important;
    background: rgba(220, 252, 231, 0.95) !important;
    font-weight: 600 !important;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}

.hero .badge.unavailable {
    color: #EF4444;
    border: 1px solid #EF4444;
}

/* Emoji du drapeau */
#country-flag {
    margin-right: 8px;
    font-size: 1.2rem;
    font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "EmojiSymbols", sans-serif;
    display: inline-block;
    line-height: 1;
}

/* ===== BOUTONS CTA ===== */

/* Bouton principal "Recevoir un appel" - réduit */
.hero .btn-primary,
.hero button.btn-primary,
.hero .cta-form button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    max-width: 180px !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Bouton secondaire "Écoutez une démo" */
.hero .btn-secondary {
    margin-bottom: 5px !important;
}

/* Conteneur des boutons CTA */
.hero .cta-buttons {
    margin-bottom: 5px !important;
    margin-top: 30px !important;
}

/* Forcer la réduction d'espacement - Sélecteurs très spécifiques */
section.hero .cta-buttons {
    margin-bottom: 5px !important;
}

section.hero .btn-secondary {
    margin-bottom: 2px !important;
}

section.hero {
    padding-bottom: 10px !important;
    margin-bottom: 5px !important;
}

/* Rapprocher drastiquement la section suivante */
.hero + section,
.hero + .features,
.features {
    margin-top: -30px !important;
    padding-top: 50px !important;
}

/* Réduction drastique pour grands écrans */
@media screen and (min-width: 1800px) {
    .hero + section,
    .hero + .features,
    .features {
        margin-top: -50px !important;
        padding-top: 70px !important;
    }
}

/* ===== ÉLÉMENTS FUTURISTES DYNAMIQUES ===== */

/* Lignes de circuit dynamiques */
.circuit-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 212, 170, 0.3) 10%, 
        #00D4AA 30%, 
        #00F5D4 50%, 
        #47FFB8 70%, 
        rgba(0, 212, 170, 0.3) 90%, 
        transparent 100%);
    border-radius: 2px;
    opacity: 0;
    z-index: 3;
    box-shadow: 
        0 0 8px #00D4AA,
        0 0 16px rgba(0, 212, 170, 0.5),
        inset 0 0 4px rgba(255, 255, 255, 0.3);
    filter: blur(0.5px);
    will-change: transform, opacity;
}

.circuit-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
    transform: translateY(-50%);
    animation: electricPulse 2s infinite ease-in-out;
}

.circuit-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: radial-gradient(ellipse, #00F5D4, transparent);
    border-radius: 50%;
    animation: sparkle 1.5s infinite ease-in-out;
    opacity: 0.8;
}

/* Positionnement des lignes de circuit */
.circuit-line-1 {
    top: 15%;
    left: -150px;
    width: 200px;
    animation: pcbFlow1 14s infinite linear;
    animation-delay: 0s;
}

.circuit-line-2 {
    top: 70%;
    right: -150px;
    width: 180px;
    animation: pcbFlow2 12s infinite linear;
    animation-delay: 3s;
}

.circuit-line-3 {
    top: 35%;
    left: -120px;
    width: 160px;
    animation: pcbFlow3 16s infinite linear;
    animation-delay: 6s;
}

.circuit-line-4 {
    top: 85%;
    right: -140px;
    width: 220px;
    animation: pcbFlow4 13s infinite linear;
    animation-delay: 9s;
}

.circuit-line-5 {
    top: 25%;
    left: -110px;
    width: 190px;
    animation: pcbFlow5 15s infinite linear;
    animation-delay: 12s;
}

/* Chipsets dynamiques */
.chipset {
    position: absolute;
    width: 14px;
    height: 10px;
    background: linear-gradient(45deg, #2a2a2a, #404040);
    border: 1px solid #555;
    border-radius: 3px;
    z-index: 4;
    opacity: 0.4;
    transition: all 0.4s ease;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 1px 2px rgba(0,0,0,0.3);
}

.chipset::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: radial-gradient(ellipse, #00D4AA, #00F5D4);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(1px);
}

.chipset::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(45deg, #00D4AA 0%, #00F5D4 50%, #47FFB8 100%);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chipset.active {
    opacity: 1;
    box-shadow: 
        0 0 12px #00D4AA,
        0 0 24px rgba(0, 212, 170, 0.6),
        inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.chipset.active::before {
    opacity: 0.6;
}

.chipset.active::after {
    opacity: 0.8;
}

/* Positionnement des chipsets */
.chipset-1 {
    top: 18%;
    left: 22%;
    animation: chipsetGlow1 14s infinite;
    animation-delay: 2s;
    transform: rotate(15deg);
}

.chipset-2 {
    top: 72%;
    right: 28%;
    animation: chipsetGlow2 12s infinite;
    animation-delay: 5s;
    transform: rotate(-20deg);
}

.chipset-3 {
    top: 42%;
    left: 48%;
    animation: chipsetGlow3 16s infinite;
    animation-delay: 8s;
    transform: rotate(10deg);
}

.chipset-4 {
    top: 85%;
    right: 22%;
    animation: chipsetGlow4 13s infinite;
    animation-delay: 11s;
    transform: rotate(-15deg);
}

.chipset-5 {
    top: 28%;
    left: 65%;
    animation: chipsetGlow5 15s infinite;
    animation-delay: 14s;
    transform: rotate(25deg);
}

/* ===== ÉLÉMENTS FUTURISTES SUBTILS ===== */

/* Grille futuriste animée */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 170, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, rgba(0, 255, 136, 0.2) 3px, transparent 3px),
        radial-gradient(circle at 70% 60%, rgba(71, 255, 184, 0.15) 2px, transparent 2px);
    background-size: 60px 60px, 60px 60px, 200px 200px, 150px 150px;
    z-index: -3;
    animation: futuristicGrid 150s ease-in-out infinite, gridPulse 8s ease-in-out infinite;
}

/* Particules flottantes vertes */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(0, 212, 170, 0.4) 4px, transparent 4px),
        radial-gradient(circle at 85% 75%, rgba(0, 255, 136, 0.3) 3px, transparent 3px),
        radial-gradient(circle at 45% 15%, rgba(71, 255, 184, 0.25) 2px, transparent 2px),
        radial-gradient(circle at 75% 35%, rgba(16, 185, 129, 0.2) 2px, transparent 2px),
        radial-gradient(circle at 25% 85%, rgba(0, 245, 212, 0.3) 3px, transparent 3px);
    background-size: 300px 300px, 250px 250px, 180px 180px, 220px 220px, 280px 280px;
    z-index: -2;
    animation: floatingParticles 180s linear infinite;
}

/* Ondes d'énergie vertes */
.hero-energy-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-energy-wave::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.8), rgba(0, 255, 136, 0.6), transparent);
    animation: energyWave1 200s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.hero-energy-wave::after {
    content: '';
    position: absolute;
    top: 70%;
    right: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(71, 255, 184, 0.7), rgba(16, 185, 129, 0.5), transparent);
    animation: energyWave2 250s ease-in-out infinite reverse;
    box-shadow: 0 0 15px rgba(71, 255, 184, 0.4);
}

/* Formes géométriques flottantes */
.hero-geometric {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
}

.hero-geometric-1 {
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(0, 212, 170, 0.1), rgba(0, 255, 136, 0.05));
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: geometricFloat1 300s ease-in-out infinite;
}

.hero-geometric-2 {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(71, 255, 184, 0.15), rgba(16, 185, 129, 0.08));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: geometricFloat2 400s ease-in-out infinite;
}

.hero-geometric-3 {
    top: 35%;
    left: 75%;
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, rgba(0, 245, 212, 0.12), rgba(0, 212, 170, 0.06));
    border-radius: 50%;
    animation: geometricFloat3 350s ease-in-out infinite;
}

/* Lignes d'énergie diagonales */
.hero-energy-line {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
}

.hero-energy-line-1 {
    top: 10%;
    left: 20%;
    width: 200px;
    height: 1px;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 170, 0.6), transparent);
    transform: rotate(45deg);
    animation: energyPulse1 200s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.hero-energy-line-2 {
    bottom: 20%;
    right: 25%;
    width: 150px;
    height: 1px;
    background: linear-gradient(45deg, transparent, rgba(71, 255, 184, 0.5), transparent);
    transform: rotate(-45deg);
    animation: energyPulse2 250s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(71, 255, 184, 0.3);
}

.hero-energy-line-3 {
    top: 50%;
    left: 5%;
    width: 120px;
    height: 1px;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.4), transparent);
    transform: rotate(30deg);
    animation: energyPulse3 220s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
}

/* ===== MEDIA QUERIES RESPONSIVES ===== */

/* Écrans 19 pouces (5:4) - Préserver l'espacement parfait */
@media screen and (aspect-ratio: 5/4) {
    .hero {
        padding-bottom: 20px !important;
        margin-bottom: 15px !important;
    }
    .hero .cta-buttons {
        margin-bottom: 10px !important;
    }
}

/* Écrans 16:9 standards */
@media screen and (aspect-ratio: 16/9) {
    .hero {
        padding-bottom: 15px !important;
        margin-bottom: 10px !important;
    }
    .hero .cta-buttons {
        margin-bottom: 8px !important;
    }
    .hero .btn-secondary {
        margin-bottom: 3px !important;
    }
}

/* Écrans 16:10 */
@media screen and (aspect-ratio: 16/10) {
    .hero {
        padding-bottom: 18px !important;
        margin-bottom: 12px !important;
    }
    .hero .cta-buttons {
        margin-bottom: 8px !important;
    }
    .hero .btn-secondary {
        margin-bottom: 5px !important;
    }
}

/* Écrans 24 pouces - Résolutions spécifiques */
@media screen and (min-width: 1900px) and (max-width: 2600px) {
    section.hero {
        padding-bottom: 5px !important;
        margin-bottom: 3px !important;
    }
    section.hero .cta-buttons {
        margin-bottom: 2px !important;
    }
    section.hero .btn-secondary {
        margin-bottom: 1px !important;
    }
    section.hero .container {
        padding-bottom: 0px !important;
    }
}

/* Très grands écrans */
@media screen and (min-width: 2560px) {
    .hero {
        padding-bottom: 8px !important;
        margin-bottom: 5px !important;
    }
    .hero .cta-buttons {
        margin-bottom: 3px !important;
    }
    .hero .btn-secondary {
        margin-bottom: 1px !important;
    }
}

/* ===== ANIMATIONS DYNAMIQUES ===== */

/* Animations des circuits */
@keyframes electricPulse {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1.2); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

/* Animations des lignes PCB */
@keyframes pcbFlow1 {
    0% { left: -150px; opacity: 0; }
    5% { opacity: 0.8; }
    95% { opacity: 0.8; }
    100% { left: calc(100% + 150px); opacity: 0; }
}

@keyframes pcbFlow2 {
    0% { right: -150px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: calc(100% + 150px); opacity: 0; }
}

@keyframes pcbFlow3 {
    0% { left: -120px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 120px); opacity: 0; }
}

@keyframes pcbFlow4 {
    0% { right: -140px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { right: calc(100% + 140px); opacity: 0; }
}

@keyframes pcbFlow5 {
    0% { left: -110px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 110px); opacity: 0; }
}

/* Animations des chipsets */
@keyframes chipsetGlow1 {
    0%, 20%, 80%, 100% { opacity: 0.3; box-shadow: none; }
    25%, 75% { opacity: 1; box-shadow: 0 0 12px #00D4AA; }
}

@keyframes chipsetGlow2 {
    0%, 30%, 70%, 100% { opacity: 0.3; box-shadow: none; }
    35%, 65% { opacity: 1; box-shadow: 0 0 12px #00D4AA; }
}

@keyframes chipsetGlow3 {
    0%, 35%, 65%, 100% { opacity: 0.3; box-shadow: none; }
    40%, 60% { opacity: 1; box-shadow: 0 0 12px #00D4AA; }
}

@keyframes chipsetGlow4 {
    0%, 40%, 60%, 100% { opacity: 0.3; box-shadow: none; }
    45%, 55% { opacity: 1; box-shadow: 0 0 12px #00D4AA; }
}

@keyframes chipsetGlow5 {
    0%, 45%, 55%, 100% { opacity: 0.3; box-shadow: none; }
    50% { opacity: 1; box-shadow: 0 0 12px #00D4AA; }
}

/* Animation de la grille futuriste */
@keyframes futuristicGrid {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

/* Animation de pulsation de la grille */
@keyframes gridPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes floatingParticles {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@keyframes energyWave1 {
    0% { transform: translateX(-100%) scaleX(0); opacity: 0; }
    50% { transform: translateX(0%) scaleX(1); opacity: 1; }
    100% { transform: translateX(100%) scaleX(0); opacity: 0; }
}

@keyframes energyWave2 {
    0% { transform: translateX(100%) scaleX(0); opacity: 0; }
    50% { transform: translateX(0%) scaleX(1); opacity: 1; }
    100% { transform: translateX(-100%) scaleX(0); opacity: 0; }
}

@keyframes geometricFloat1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes geometricFloat2 {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(25px) rotate(-180deg) scale(1.1); }
}

@keyframes geometricFloat3 {
    0%, 100% { transform: translateY(0px) scale(1); }
    33% { transform: translateY(-15px) scale(1.2); }
    66% { transform: translateY(15px) scale(0.9); }
}

@keyframes energyPulse1 {
    0%, 100% { opacity: 0.02; transform: rotate(45deg) scaleX(0.5); }
    50% { opacity: 0.08; transform: rotate(45deg) scaleX(1.2); }
}

@keyframes energyPulse2 {
    0%, 100% { opacity: 0.03; transform: rotate(-45deg) scaleX(0.7); }
    50% { opacity: 0.09; transform: rotate(-45deg) scaleX(1.3); }
}

@keyframes energyPulse3 {
    0%, 100% { opacity: 0.01; transform: rotate(30deg) scaleX(0.6); }
    50% { opacity: 0.07; transform: rotate(30deg) scaleX(1.1); }
}

/* ===== RESPONSIVE MOBILE ===== */

@media (max-width: 768px) {
    .hero-geometric-1 { width: 50px; height: 50px; }
    .hero-geometric-2 { width: 40px; height: 40px; }
    .hero-geometric-3 { width: 35px; height: 35px; }
    .hero-energy-line-1 { width: 120px; }
    .hero-energy-line-2 { width: 100px; }
    .hero-energy-line-3 { width: 80px; }
    
    /* Circuits responsives */
    .circuit-line {
        height: 1px;
        box-shadow: 0 0 4px #00D4AA;
    }
    
    .circuit-line-1, .circuit-line-3, .circuit-line-5 {
        width: 200px;
    }
    
    .circuit-line-2, .circuit-line-4 {
        width: 180px;
    }
    
    /* Chipsets responsives */
    .chipset {
        width: 8px;
        height: 6px;
    }
    
    .chipset.active {
        box-shadow: 0 0 6px #00D4AA;
    }
    
    /* Badges responsive */
    .hero-badges {
        gap: 10px;
    }
    
    .hero .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .hero::before {
        background-size: 40px 40px, 40px 40px, 150px 150px, 120px 120px;
    }
    .hero::after {
        background-size: 200px 200px, 180px 180px, 140px 140px, 160px 160px, 200px 200px;
    }
    
    /* Circuits mobiles */
    .circuit-line {
        opacity: 0.7;
    }
    
    .circuit-line-1, .circuit-line-3, .circuit-line-5 {
        width: 150px;
    }
    
    .circuit-line-2, .circuit-line-4 {
        width: 130px;
    }
    
    /* Chipsets mobiles */
    .chipset {
        width: 6px;
        height: 4px;
    }
    
    /* Badges mobiles */
    .hero-badges {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}
