/* SousToit — accueil acheteur, phase 1 */

.buyer-home-hero {
    position: relative;
    isolation: isolate;
    min-height: min(660px, 72vh);
    display: grid;
    align-items: center;
    margin: -24px calc(50% - 50vw) 0;
    padding: clamp(58px, 8vw, 110px) max(24px, calc((100vw - 1360px) / 2));
    background:
        linear-gradient(115deg, rgba(16, 42, 67, .80), rgba(16, 42, 67, .30)),
        url('/images/accueil-acheteur.jpg') center / cover no-repeat,
        #31536d;
    overflow: hidden;
}

.buyer-home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
}

.buyer-home-hero-content {
    width: min(1160px, 100%);
    margin: 0 auto;
    color: #fff;
}

.buyer-home-kicker {
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.buyer-home-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: .98;
    color: #fff;
}

.buyer-home-intro {
    max-width: 680px;
    margin: 18px 0 28px;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.55;
}

.buyer-home-search {
    display: grid;
    grid-template-columns: minmax(190px, 1.45fr) minmax(150px, 1fr) minmax(250px, 1.55fr) minmax(105px, .65fr) minmax(115px, .7fr) auto;
    gap: 9px;
    align-items: end;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 46px rgba(0,0,0,.22);
    color: #1e3447;
}

.buyer-home-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.buyer-home-field > span:first-child {
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    color: #607080;
}

.buyer-home-field select {
    min-width: 0;
    width: 100%;
    height: 44px;
    padding: 0 30px 0 9px;
    border: 1px solid #cad6df;
    border-radius: 8px;
    background: #fff;
    color: #1e3447;
    font: inherit;
}

.buyer-home-budget-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.buyer-home-submit {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: #17486b;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.buyer-home-submit:hover {
    background: #0e3a59;
}

.buyer-home-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(900px, 100%);
    margin: 28px auto 0;
}

.buyer-home-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #fff;
    color: #1e3447;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(29, 53, 76, .06);
}

.buyer-home-shortcut:hover {
    border-color: #9eb7ca;
    transform: translateY(-1px);
}

.buyer-home-shortcut-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eef5fa;
    color: #17486b;
    font-size: 1.25rem;
}

.buyer-home-shortcut strong {
    display: block;
    font-size: 1.55rem;
}

.buyer-home-shortcut small {
    color: #667887;
}

.buyer-home-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 22px;
    margin-top: 32px;
}

.buyer-home-content-card {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #dbe3ea;
    border-radius: 16px;
    background: #fff;
}

.buyer-home-content-card h2 {
    margin-top: 4px;
}

.buyer-home-placeholder {
    min-height: 150px;
    display: grid;
    place-items: center;
    margin-top: 22px;
    border: 1px dashed #bdcad5;
    border-radius: 12px;
    background: #f8fafc;
    color: #7a8996;
    text-align: center;
}

@media (max-width: 1120px) {
    .buyer-home-search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .buyer-home-field-commune,
    .buyer-home-budget {
        grid-column: span 2;
    }

    .buyer-home-submit {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .buyer-home-hero {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .buyer-home-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buyer-home-field-commune,
    .buyer-home-budget,
    .buyer-home-submit {
        grid-column: 1 / -1;
    }

    .buyer-home-content-grid,
    .buyer-home-shortcuts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .buyer-home-search {
        grid-template-columns: 1fr;
    }

    .buyer-home-field,
    .buyer-home-field-commune,
    .buyer-home-budget,
    .buyer-home-submit {
        grid-column: 1;
    }
}
