/* ============================================
   HERO SEARCH v2 — CSS corrigé
   Formulaire plus large, champs uniformes,
   bouton aligné, selects stylisés
   ============================================ */

.hero-search {
    position: relative;
    padding: 200px 20px 70px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 60%, #fdf4ff 100%);
    overflow: hidden;
    text-align: center;
}

.hs-bg { position: absolute; inset: 0; pointer-events: none; }
.hs-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hs-orb-1 {
    width: 500px; height: 500px;
    background: rgba(99, 102, 241, 0.12);
    top: -150px; right: -100px;
}
.hs-orb-2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.1);
    bottom: -100px; left: -80px;
}

/* ① Conteneur plus large */
.hs-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}

.hs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.hs-title {
    font-size: 52px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.hs-title-accent {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hs-subtitle {
    font-size: 17px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto 36px;
    max-width: 560px;
}

/* ============================================
   ② FORMULAIRE — largeur max + champs uniformes
   ============================================ */
.hs-form {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.10),
        0 2px 10px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
    padding: 10px;
    gap: 0;
    margin-bottom: 20px;
    max-width: 100%;
}

.hs-divider {
    width: 1px;
    margin: 10px 0;
    background: linear-gradient(
        to bottom,
        rgba(226, 232, 240, 0),
        rgba(226, 232, 240, 1),
        rgba(226, 232, 240, 0)
    );
    flex-shrink: 0;
}

/* ② Chaque champ — hauteur uniforme */
.hs-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    min-width: 0;
    min-height: 64px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid transparent;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
    box-sizing: border-box;
}

.hs-field:hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    border-color: rgba(99, 102, 241, 0.10);
}

.hs-field:focus-within {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.30);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.hs-field-icon {
    color: #6366f1;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.95;
}

.hs-field-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.hs-field-label {
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    white-space: nowrap;
}

/* ② Input texte — fond légèrement coloré */
.hs-field-input {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: transparent;
    padding: 0;
    width: 100%;
    font-family: inherit;
    line-height: 1.4;
}

.hs-field-input::placeholder {
    color: #b8c2cc;
    font-weight: 500;
}

/* ② Select — même apparence que l'input */
.hs-field-select {
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background-color: transparent;
    padding: 0;
    width: 100%;
    font-family: inherit;
    cursor: pointer;
    line-height: 1.4;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L6 6L10.5 1.5' stroke='%236366f1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 12px 8px;
    padding-right: 24px;
}
.hs-field-select:focus { outline: none; }
.hs-field-select option {
    color: #1e293b;
    background: #ffffff;
    font-weight: 500;
}

/* ③ Bouton — hauteur alignée avec les champs */
.hs-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;

    border: none;
    border-radius: 12px;

    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;

    height: auto;          /* 🔥 important */
    align-self: center;    /* 🔥 important */

    flex-shrink: 0;

    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
}
.hs-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.35);
}
.hs-submit:active { transform: scale(0.98); }

/* ============================================
   PILLS
   ============================================ */
.hs-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.hs-pills-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}
.hs-pills-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.hs-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hs-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
    transform: translateY(-1px);
}

/* ============================================
   STATS
   ============================================ */
.hs-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
}
.hs-stat { text-align: center; }
.hs-stat-num {
    font-size: 28px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}
.hs-stat-lbl {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hs-stat-sep {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-search { padding: 80px 16px 44px; }
    .hs-title { font-size: 32px; }
    .hs-subtitle { font-size: 15px; margin-bottom: 28px; }

    .hs-field-input {
        width: 100% !important;
    }

    .hs-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hs-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px;
        gap: 8px;
        align-items: stretch;
        box-shadow:
            0 10px 24px rgba(99, 102, 241, 0.10),
            0 2px 8px rgba(15, 23, 42, 0.05);
    }
    .hs-divider {
        width: auto;
        height: 1px;
        margin: 0 6px;
        background: #edf2f7;
    }
    .hs-field {
        min-height: 62px;
        height: auto;
        padding: 14px 14px;
        border-radius: 16px;
    }

    .hs-field-input,
    .hs-field-select {
        font-size: 15px;
    }

    .hs-submit {
        width: 100%;
        height: 50px;
        border-radius: 14px;
        font-size: 15px;
    }

    .hero-search {
        padding: 80px 16px 44px;
    }

    .hs-title {
        font-size: 32px;
    }

    .hs-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hs-field-input {
        width: 100% !important;
    }

    .hs-field {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hs-form {
        flex-direction: column;
        border-radius: 16px;
        padding: 8px;
        gap: 4px;
        align-items: stretch;
    }

    .hs-divider {
        width: auto;
        height: 1px;
        background: #f1f5f9;
        margin: 0 8px;
    }

    .hs-field {
        height: auto;
        padding: 13px 14px;
    }

    .hs-submit {
        width: 100% !important;
        height: 48px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        background-color: #6284e0 !important;
    }

    /* FIX PILLS MOBILE */
    .hs-pills {
        display: block;
        text-align: left;
        margin-bottom: 30px;
    }

    .hs-pill {
        flex-shrink: 0;
    }

    .hs-pills-label {
        display: block;
        margin-bottom: 10px;
        padding-left: 2px;
    }

    .hs-pills-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x proximity;
        padding: 2px 2px 8px;
        margin-right: -2px;
    }

    .hs-pills-list::-webkit-scrollbar {
        display: none;
    }

    .hs-pills-list .hs-pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .hs-stats {
        gap: 20px;
    }

    .hs-stat-num {
        font-size: 22px;
    }

    .hs-stat-sep {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hs-title { font-size: 26px; }
    .hs-badge { font-size: 12px; }
    .hs-stats { flex-wrap: wrap; gap: 16px; }
    .hs-stat-sep { display: none; }
}

@media (max-width: 768px) {
    .hs-pills {
        position: relative;
    }

    .hs-pills::after {
        content: "";
        position: absolute;
        top: 24px;
        right: 0;
        width: 28px;
        height: calc(100% - 24px);
        pointer-events: none;
        background: linear-gradient(to right, rgba(245,243,255,0), rgba(245,243,255,1));
    }
}

@media (max-width: 768px) {
    .hero-search {
        padding: 80px 18px 44px;
    }
}

@media (max-width: 768px) {
    .hs-subtitle {
        max-width: 92%;
    }
}

.hs-form:focus-within {
    box-shadow:
        0 14px 40px rgba(99, 102, 241, 0.14),
        0 0 0 1px rgba(99, 102, 241, 0.10);
}

.hs-field select {
    color: #1e293b;
}

.hs-field:has(.hs-field-select) {
    background: linear-gradient(180deg, #fcfcff 0%, #f8fafc 100%);
}