/* --- HERO SECTION --- */
.hero {
    padding: 5rem 0 4rem;
    background: transparent;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.1;
    margin-bottom: 1.5rem; color: var(--text);
    animation: heroFadeInUp 0.7s ease both;
}

.hero h1 span { color: var(--primary); }

.hero p {
    font-size: 1.25rem; color: var(--text-light);
    max-width: 600px; margin: 0 auto 2rem;
    animation: heroFadeInUp 0.7s 0.12s ease both;
}

/* Hero Search (Test d'éligibilité) */
.hero-search-wrapper {
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 2;
    animation: heroFadeInUp 0.7s 0.24s ease both;
}

.hero-search-group {
    position: relative;
    margin-bottom: 1rem;
}

.hero-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    z-index: 1;
}

.hero-search-placeholder {
    position: absolute;
    left: 3.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.0625rem;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
    overflow: hidden;
}

.hero-search-placeholder.slide-out {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
}

.hero-search-placeholder.slide-in {
    animation: slideInFromLeft 0.5s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-search-group input {
    width: 100%;
    padding: 1.125rem 1.25rem 1.125rem 3.25rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 1.0625rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s;
    box-shadow:
        0 0 0 10px white,
        0 0 0 11px var(--border),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-search-group input:focus ~ .hero-search-placeholder,
.hero-search-group input:not(:placeholder-shown) ~ .hero-search-placeholder {
    opacity: 0;
}

.hero-search-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow:
        0 0 0 10px white,
        0 0 0 11px var(--border),
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
    z-index: 100;
}

.hero-search-dropdown.open {
    display: block;
}

/* Message de validation hero */
.hero-validation {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: 12px;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9375rem;
    animation: slideDown 0.35s ease;
}

.hero-validation svg {
    flex-shrink: 0;
    stroke-width: 2.5;
}

/* Lien WhatsApp hero */
.hero-whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: underline;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-top: 0.75rem;
}

.hero-whatsapp-link:hover {
    color: var(--text);
}

/* Boutons Hero */
.cta-group {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem; justify-content: center; margin-bottom: 2rem;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
    animation: heroFadeInUp 0.7s 0.38s ease both, bounce 2s 1.08s infinite;
}
.scroll-down:hover { color: var(--text); }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.btn-large {
    padding: 1rem 2rem; font-size: 1.125rem; font-weight: 600;
    border-radius: 12px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    transition: all 0.2s;
}

.btn-primary-hero {
    background: var(--primary); color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}
.btn-primary-hero:hover {
    background: #1d4ed8; color: white; border-color: #1d4ed8;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.btn-secondary-hero {
    background: rgba(5, 150, 105, 0.10); color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.35);
    box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.06);
    backdrop-filter: blur(8px);
}
.btn-secondary-hero:hover {
    background: rgba(5, 150, 105, 0.18); color: #047857; border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 6px rgba(5, 150, 105, 0.08);
    transform: translateY(-2px);
}

.btn-wa-icon {
    padding: 1rem;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    flex-shrink: 0;
    justify-content: center;
}

