/* ==========================================================================
   ZOOMBROC — RECHERCHE
   ========================================================================== */

.zb-search-page {
    --zb-navy: #10243f;
    --zb-navy-2: #18365a;
    --zb-cyan: #12b8c9;
    --zb-cyan-dark: #078e9e;
    --zb-cyan-soft: #eaf9fb;
    --zb-text: #24364b;
    --zb-muted: #637387;
    --zb-border: #dce5ec;
    --zb-bg: #f4f8fb;
    --zb-white: #ffffff;

    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 22px 70px;

    color: var(--zb-text);
}


/* ==========================================================================
   HERO
   ========================================================================== */

.zb-search-hero {
    position: relative;
    overflow: hidden;

    padding: 48px clamp(28px, 5vw, 64px);

    border-radius: 28px;

    color: #fff;

    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(18, 184, 201, .28),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--zb-navy),
            var(--zb-navy-2)
        );

    box-shadow:
        0 20px 55px rgba(16, 36, 63, .16);
}

.zb-search-hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -120px;
    top: -150px;

    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;

    pointer-events: none;
}

.zb-search-hero-inner {
    position: relative;
    z-index: 1;

    max-width: 820px;
}

.zb-search-kicker {
    display: inline-flex;
    align-items: center;

    margin-bottom: 13px;
    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;

    background: rgba(255, 255, 255, .08);

    color: #c9f8fc;

    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.zb-search-hero h1 {
    margin: 0;

    color: #fff;

    font-size: clamp(2.1rem, 4.5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.zb-search-hero p {
    max-width: 720px;

    margin: 18px 0 0;

    color: rgba(255, 255, 255, .84);

    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}


/* ==========================================================================
   BLOC RECHERCHE
   ========================================================================== */

.zb-search-box {
    position: relative;
    z-index: 2;

    margin: -18px 24px 0;
    padding: 24px;

    border: 1px solid var(--zb-border);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 14px 38px rgba(16, 36, 63, .10);
}

.zb-search-form {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.5fr)
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(150px, .8fr)
        auto;

    gap: 15px;

    align-items: end;
}

.zb-search-field {
    display: grid;
    gap: 7px;
}

.zb-search-field label {
    color: var(--zb-navy);

    font-size: .88rem;
    font-weight: 800;
}

.zb-search-field input,
.zb-search-field select {
    width: 100%;
    min-height: 48px;

    padding: 0 13px;

    border: 1px solid #ccd8e1;
    border-radius: 11px;

    background: #fff;
    color: var(--zb-text);

    font: inherit;
    font-size: .95rem;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.zb-search-field input:focus,
.zb-search-field select:focus {
    border-color: var(--zb-cyan);

    box-shadow:
        0 0 0 4px rgba(18, 184, 201, .13);
}

.zb-search-input-wrap {
    position: relative;
}

.zb-search-input-wrap input {
    padding-left: 40px;
}

.zb-search-input-icon {
    position: absolute;

    left: 13px;
    top: 50%;

    transform: translateY(-50%);

    pointer-events: none;
}


/* ==========================================================================
   BOUTON
   ========================================================================== */

.zb-search-submit {
    display: flex;
}

.zb-search-button {
    min-height: 48px;

    padding: 0 20px;

    border: 0;
    border-radius: 11px;

    background: var(--zb-cyan);
    color: #fff;

    font: inherit;
    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;

    box-shadow:
        0 8px 20px rgba(18, 184, 201, .22);

    transition:
        transform .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.zb-search-button:hover,
.zb-search-button:focus-visible {
    background: #16c8da;

    transform: translateY(-2px);

    box-shadow:
        0 11px 25px rgba(18, 184, 201, .28);
}


/* ==========================================================================
   RÉSULTATS
   ========================================================================== */

.zb-search-results {
    margin-top: 42px;
}

.zb-search-results-header {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 20px;
}

.zb-search-results-header h2 {
    margin: 0;

    color: var(--zb-navy);

    font-size: 1.7rem;
    line-height: 1.2;
}

.zb-search-results-header p {
    margin: 7px 0 0;

    color: var(--zb-muted);

    font-size: .98rem;
}


/* ==========================================================================
   GRILLE
   ========================================================================== */

.zb-search-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* ==========================================================================
   CARTE
   ========================================================================== */

.zb-search-card {
    overflow: hidden;

    border: 1px solid var(--zb-border);
    border-radius: 18px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(16, 36, 63, .055);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.zb-search-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 34px rgba(16, 36, 63, .11);
}

.zb-search-card-image {
    display: grid;
    place-items: center;

    width: 100%;
    height: 190px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #16476a,
            #123d5c
        );

    text-decoration: none;
}

.zb-search-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.zb-search-card:hover .zb-search-card-image img {
    transform: scale(1.035);
}

.zb-search-card-placeholder {
    font-size: 3rem;
}

.zb-search-card-content {
    padding: 20px;
}

.zb-search-card-category {
    margin-bottom: 9px;

    color: var(--zb-cyan-dark);

    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .025em;
}

.zb-search-card h3 {
    margin: 0;

    font-size: 1.16rem;
    line-height: 1.35;
}

.zb-search-card h3 a {
    color: var(--zb-navy);
    text-decoration: none;
}

.zb-search-card h3 a:hover {
    color: var(--zb-cyan-dark);
}

.zb-search-card-meta {
    display: grid;
    gap: 7px;

    margin-top: 15px;

    color: #5f7082;

    font-size: .88rem;
    line-height: 1.45;
}

.zb-search-card-link {
    display: inline-block;

    margin-top: 17px;

    color: var(--zb-cyan-dark);

    font-size: .9rem;
    font-weight: 800;

    text-decoration: none;
}

.zb-search-card-link:hover {
    text-decoration: underline;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.zb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 36px;
}

.zb-pagination-number,
.zb-pagination-button {
    display: grid;
    place-items: center;

    min-width: 42px;
    height: 42px;

    padding: 0 11px;

    border: 1px solid var(--zb-border);
    border-radius: 10px;

    background: #fff;
    color: var(--zb-navy);

    font-size: .9rem;
    font-weight: 800;

    text-decoration: none;
}

.zb-pagination-number:hover,
.zb-pagination-button:hover {
    border-color: var(--zb-cyan);

    color: var(--zb-cyan-dark);
}

.zb-pagination-number.is-active {
    border-color: var(--zb-cyan);
    background: var(--zb-cyan);
    color: #fff;
}

.zb-pagination-dots {
    padding: 0 4px;

    color: var(--zb-muted);
}


/* ==========================================================================
   AUCUN RÉSULTAT
   ========================================================================== */

.zb-search-empty {
    max-width: 650px;

    margin: 30px auto 0;
    padding: 48px 30px;

    border: 1px solid var(--zb-border);
    border-radius: 22px;

    background: #fff;

    text-align: center;

    box-shadow:
        0 10px 28px rgba(16, 36, 63, .05);
}

.zb-search-empty-icon {
    margin-bottom: 14px;

    font-size: 3rem;
}

.zb-search-empty h2 {
    margin: 0;

    color: var(--zb-navy);

    font-size: 1.5rem;
}

.zb-search-empty p {
    margin: 10px 0 0;

    color: var(--zb-muted);

    font-size: 1rem;
    line-height: 1.65;
}

.zb-search-empty-button {
    display: inline-flex;

    margin-top: 23px;
    padding: 12px 18px;

    border-radius: 11px;

    background: var(--zb-cyan);
    color: #fff;

    font-weight: 800;
    text-decoration: none;
}


/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

.zb-search-page a:focus-visible,
.zb-search-page button:focus-visible,
.zb-search-page input:focus-visible,
.zb-search-page select:focus-visible {
    outline: 3px solid rgba(18, 184, 201, .30);
    outline-offset: 3px;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {

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

    .zb-search-field-wide {
        grid-column: span 2;
    }

    .zb-search-submit {
        grid-column: span 2;
    }

    .zb-search-button {
        width: 100%;
    }

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


@media (max-width: 700px) {

    .zb-search-page {
        padding: 18px 12px 45px;
    }

    .zb-search-hero {
        padding: 38px 24px;

        border-radius: 22px;
    }

    .zb-search-box {
        margin: -10px 8px 0;
        padding: 18px;

        border-radius: 17px;
    }

    .zb-search-form {
        grid-template-columns: 1fr;
    }

    .zb-search-field-wide,
    .zb-search-submit {
        grid-column: auto;
    }

    .zb-search-grid {
        grid-template-columns: 1fr;
    }

    .zb-search-card-image {
        height: 210px;
    }

    .zb-search-results {
        margin-top: 32px;
    }

    .zb-search-results-header h2 {
        font-size: 1.45rem;
    }

    .zb-search-empty {
        padding: 38px 22px;
    }
}


@media (prefers-reduced-motion: reduce) {

    .zb-search-card,
    .zb-search-card-image img,
    .zb-search-button {
        transition: none;
    }
}