/* ===== HERO SECTION STYLES ===== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Changé de visible à hidden pour éviter le débordement */
    min-height: 600px; /* Hauteur minimale pour petits écrans */
    
}

/* Background Animation */
/* .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    overflow: hidden;
} */

.gradient-blob {
    position: absolute;
    /* border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 12s ease-in-out infinite;
    will-change: transform; Optimisation performance */
}

/* .blob-1 {
    width: 600px;
    height: 600px;
    top: -20%;
    left: -10%;
    background: linear-gradient(135deg, #3b82f630, #0d6efd30);
} */

/* .blob-2 {
    width: 400px;
    height: 400px;
    background: rgb(255, 255, 255);
    top: 40%;
    right: -5%;
    animation-delay: -5s;
} */

/* .blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #34d39930, #2563eb30);
    bottom: -10%;
    left: 50%;
    animation-delay: -10s;
} */

/* Hero Content Styles */
.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 50px;

}

/* .hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f610, #60a5fa10);
    border: 1px solid #60a5fa30;
    border-radius: 100px;
    font-weight: 500;
    color: #2563eb;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
} */

.hero-badge:hover {
    transform: translateY(-2px);
}

.badge-icon {
    margin-right: 0.5rem;
}

.hero-title {
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 1.5rem;
    margin-top: -10px;
    transition: font-size 0.3s ease;
    text-align: justify;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.highlight-text {
    color: #FF8C00;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    text-align: left;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;   
    /* overflow: visible; */
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 1px solid #60a5fa30;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* Dashboard Preview */
.dashboard-wrapper {
    position: relative;
    transition: transform 0.3s ease-out;
}

.dashboard-image {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.stats-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
}

.stats-card-1 {
    top: 10%;
    right: 10%;
    max-width: 200px;
}

.stats-card-2 {
    bottom: 5%;
    left: 10%;
    animation-delay: -3s;
    max-width: 300px;
}

.stats-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.success { background: #22c55e; }
.primary { background: #2563eb; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); /* Réduit légèrement l'amplitude */
    }
}

/* ===== STYLES RESPONSIFS RENFORCÉS ===== */

/* Très grands écrans (4K+) */
@media (min-width: 2560px) {
    .hero-section {
        min-height: 800px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .blob-1 {
        width: 800px;
        height: 800px;
    }
    
    .blob-2 {
        width: 600px;
        height: 600px;
    }
    
    .blob-3 {
        width: 500px;
        height: 500px;
    }
}

/* Grands écrans desktop */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero-section {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: 4.5rem;
        text-align: left;
    }
}

/* Écrans desktop standard */
@media (max-width: 1919px) and (min-width: 1400px) {
    .hero-section {
        min-height: 650px;
    }
    
    .hero-title {
        font-size: 3.8rem;
        text-align: left;
    }
}

/* Écrans laptop large */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-section {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: left;
    }
    
    .blob-1 {
        width: 500px;
        height: 500px;
    }
    
    .blob-2 {
        width: 350px;
        height: 350px;
    }
}

/* Écrans laptop standard */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-section {
        min-height: 550px;
        height: auto;
    }
    
    .hero-title {
        font-size: 3rem;
        text-align: left;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .blob-1 {
        width: 450px;
        height: 450px;
        top: -15%;
    }
    
    .blob-2 {
        width: 300px;
        height: 300px;
        top: 35%;
    }
    
    .blob-3 {
        width: 250px;
        height: 250px;
        bottom: -8%;
    }
}

/* Tablettes en mode paysage */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-section {
        padding-top: 100px;
        min-height: 500px;
        height: auto;
    }

    .hero-title {
        font-size: 2.8rem;
        text-align: left;
        line-height: 1.3;
    }

    .hero-content {
        text-align: left;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .hero-description {
        text-align: left;
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .btn-primary {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }

    .blob-1 {
        width: 400px;
        height: 400px;
        top: -10%;
        left: -15%;
    }

    .blob-2 {
        width: 250px;
        height: 250px;
        top: 30%;
        right: -10%;
    }
    
    .blob-3 {
        width: 200px;
        height: 200px;
        bottom: -5%;
        left: 40%;
    }
    
    .dashboard-wrapper {
        margin-top: 1.5rem;
    }
    
    .stats-card {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Tablettes en mode portrait */
@media (max-width: 767px) and (min-width: 576px) {
    .hero-section {
        padding-top: 8rem;
        min-height: 480px;
        height: auto;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
        text-align: left;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        text-align: left;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-buttons .btn-primary {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .blob-1 {
        width: 350px;
        height: 350px;
        top: -5%;
        left: -20%;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
        top: 25%;
        right: -15%;
    }
    
    .blob-3 {
        width: 150px;
        height: 150px;
        bottom: 0%;
        left: 30%;
    }

    .stats-card {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .dashboard-wrapper {
        margin-top: 2rem;
        padding: 0 0.5rem;
    }
/* 
    .stats-card-1,
    .stats-card-2 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 1rem auto !important;
        max-width: 280px;
    } */
}

/* Petits mobiles */
@media (max-width: 575px) {
    .hero-section {
        padding-top: 0px;
    }
    

    .hero-title, .gradient-text, .highlight-text {
        font-size: 1.9;
        line-height: 1.4;
        margin-bottom: 1rem;
        text-align:center;
    }
    

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.8rem;
        text-align: left;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-buttons .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .blob-1 {
        width: 280px;
        height: 280px;
        top: 0%;
        left: -25%;
    }

    .blob-2 {
        width: 180px;
        height: 180px;
        top: 20%;
        right: -20%;
    }
    
    .blob-3 {
        width: 120px;
        height: 120px;
        bottom: 5%;
        left: 20%;
    }

    /* .stats-card {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    } */

    .dashboard-wrapper {
        padding-top: 0%;
        margin-top: 0px;
    }

    .dashboard-image {
        border-radius: 0.8rem;
        padding-top: 0%;
        margin-top: 0px;
    }

    /* .stats-card-1,
    .stats-card-2 {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        margin: 0.8rem auto !important;
        max-width: 250px;
        text-align: center;
    } */

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .hero-mobile,.hero-dashboard {
        padding-top: 0px;
        margin-top: 0px;
    }
}

/* Très petits mobiles */
@media (max-width: 375px) {
    .hero-section {
        padding-top: 6rem;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: justify;
    }
    .b-description{
        text-align: left;
    }

    .hero-buttons .btn-primary {
        padding: 0.9rem;
        font-size: 0.85rem;
    }

    .blob-1 {
        width: 220px;
        height: 220px;
        left: -30%;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
        right: -25%;
    }
    
    .blob-3 {
        width: 100px;
        height: 100px;
        left: 15%;
    }
    
}

/* Ajout global pour éviter le débordement horizontal */
html, body {
    overflow-x: hidden;
}

/* Optimisation pour les écrans tactiles */
@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover, 
    .btn-secondary:hover,
    .hero-badge:hover {
        transform: none;
    }
    
    .btn-primary:active, 
    .btn-secondary:active {
        
        transform: scale(0.98);
    }
}
