﻿.hero {
    padding: 120px 20px 80px;
    background: #FFFFFF;
    position: relative;
    min-height: max-content;
}

.hero-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    min-height: max-content;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #242251;
}

.info-badges {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
    padding-left: 10px;
}

.info-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
}

.info-badge .icon {
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Optionnel : couleurs par type */
.icon.check {
    color: #16a34a; /* vert */
}

.icon.shield {
    color: #2563eb; /* bleu */
}

.icon.bulb {
    color: #f59e0b; /* jaune */
}


.gradient-text {
    background: linear-gradient(90deg, #155DFC 0%, #51A2FF 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: #475569;
    margin-bottom: 40px;
}

.search-box {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: 900px;
    margin: auto;
    position: relative;
    box-shadow: 0 10px 15px -3px #0000001A;
    z-index: 2;

}

.project-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 16px;
}

.city-input {
    width: 180px;
    border: none;
    outline: none;
    font-size: 16px;
}

.divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
}

.cta-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    color: #475569;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #1e40af;
}

.btn-secondary {
    background: white;
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.stats {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.stats-title {
    max-width: 800px;
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 40px;
    background: radial-gradient(101.74% 232.43% at -1.74% 50%, #01436D 37.79%, #027E74 44.15%, #039872 49.76%, #91BF07 60.71%, #FC9903 69.75%, #F36100 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

}

.stats-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat strong {
    display: block;
    font-size: 32px;
    color: #0754da;
}

.stat span {
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 20px 20px 80px;
        background: rgba(37, 99, 235, 0);
    }
    
    .hero-title {
        font-size: 38px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .divider {
        display: none;
    }

    .city-input {
        width: 100%;
    }
    
    .or, .arrow-right{
        display: none;
    }

    .info-badges {
        gap: 5px;
    }

    .info-badge {
        font-size: 10px;
    }

    .info-badge .icon {
        font-size: 10px;
        transform: translateY(-2px);
    }

    .stats-title {
        max-width: 800px;
        font-size: 1.8rem;
        line-height: 1;
    }

    .stats-items {
        gap: 30px;
    }
    
}

.hero-blur{
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: #155DFC;
    opacity: 0.5;
    filter: blur(355px);

    position: absolute;
    top: 10%;
    right: 33%;
}


/* ===== HALOS ===== */
.rns-h-halos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.rns-h-halo {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.rns-h-halo-1 {
    top: -100px;
    left: 20%;
    width: 600px;
    height: 600px;
    background: rgba(37, 99, 235, 0.12);
}

.rns-h-halo-2 {
    top: 25%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.08);
}

.rns-h-halo-3 {
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: rgba(29, 78, 216, 0.06);
}

.rns-h-halo-4 {
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.14);
}

@media (max-width: 1024px) {
    /* Remplacez .rn-btn-rainbow par la classe réelle générée par votre RnButton */
    [class*="Rainbow"], .rns-button-rainbow {
        animation: none !important;
        background-size: 100% !important; /* Fige le dégradé */
        transition: none !important;
        border: none !important;
    }
}

.rns-button-rainbow {
    /* Dit au navigateur de préparer le GPU pour ce changement */
    will-change: background-position;

    /* Hack pour forcer le GPU sur iOS */
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
}
