/* =========================================================
   ISC LUBUMBASHI — PAGE RECHERCHE
========================================================= */

.search-page {
    background: #ffffff;
    color: #0f172a;
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.search-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .18), transparent 32%),
        radial-gradient(circle at 86% 24%, rgba(220, 38, 38, .12), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #172554 52%, #1d4ed8 100%);
}

.search-hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.search-decoration-one {
    width: 360px;
    height: 360px;
    top: -180px;
    right: 8%;
    background: rgba(255, 255, 255, .06);
}

.search-decoration-two {
    width: 260px;
    height: 260px;
    left: -100px;
    bottom: -130px;
    background: rgba(220, 38, 38, .12);
}

.search-hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0;
}

.search-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
}

.search-breadcrumb a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.search-breadcrumb a:hover {
    color: #ffffff;
}

.search-breadcrumb strong {
    color: #ffffff;
}

.search-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .11);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.search-kicker i {
    color: #93c5fd;
    font-size: 18px;
}

.search-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -2px;
    font-weight: 900;
}

.search-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================================
   FORMULAIRE PRINCIPAL
========================================================= */

.search-main-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    max-width: 900px;
    margin-top: 34px;
}

.search-main-form > div {
    position: relative;
}

.search-main-form > div > i {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 2;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 23px;
}

.search-main-form input {
    width: 100%;
    height: 62px;
    padding: 0 20px 0 56px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    outline: none;
    background: rgba(255, 255, 255, .97);
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 24px 65px rgba(2, 6, 23, .18);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.search-main-form input::placeholder {
    color: #94a3b8;
}

.search-main-form input:focus {
    border-color: #60a5fa;
    box-shadow:
        0 24px 65px rgba(2, 6, 23, .18),
        0 0 0 5px rgba(96, 165, 250, .18);
}

.search-main-form button {
    min-width: 165px;
    height: 62px;
    padding: 0 24px;
    border: 0;
    border-radius: 20px;
    background: #dc2626;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 20px 48px rgba(220, 38, 38, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}

.search-main-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 60px rgba(220, 38, 38, .36);
}

.search-main-form button i {
    font-size: 19px;
}

.search-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
}

.search-quick-links > span {
    color: rgba(255, 255, 255, .68);
    font-size: 13px;
    font-weight: 800;
}

.search-quick-links a {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .88);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.search-quick-links a:hover {
    background: #ffffff;
    color: #1d4ed8;
}

/* =========================================================
   ZONE DE CONTENU
========================================================= */

.search-content {
    padding: 80px 0 95px;
    background: #ffffff;
}

/* =========================================================
   RÉSUMÉ DES RÉSULTATS
========================================================= */

.search-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.search-summary span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 13px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 900;
}

.search-summary h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -1px;
    font-weight: 900;
}

.search-summary > a {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
    transition: .25s ease;
}

.search-summary > a:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    color: #ffffff;
}

/* =========================================================
   ÉTAT INITIAL
========================================================= */

.search-intro-state {
    max-width: 920px;
    margin: 0 auto;
    padding: 60px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .08), transparent 35%),
        #f8fafc;
    text-align: center;
}

.search-intro-state > div:first-child {
    width: 82px;
    height: 82px;
    margin: 0 auto 22px;
    border-radius: 28px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 40px;
}

.search-intro-state h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -1px;
    font-weight: 900;
}

.search-intro-state > p {
    max-width: 620px;
    margin: 16px auto 30px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.search-suggestions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.search-suggestions > a {
    min-height: 130px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-decoration: none;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.search-suggestions > a:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(15, 23, 42, .1);
}

.search-suggestions > a > i {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.search-suggestions strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
    font-size: 17px;
}

.search-suggestions span {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   AUCUN RÉSULTAT
========================================================= */

.search-empty {
    max-width: 820px;
    margin: 0 auto;
    padding: 58px 30px;
    border: 1px dashed #cbd5e1;
    border-radius: 34px;
    background: #f8fafc;
    text-align: center;
}

.search-empty > div:first-child {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 28px;
    background: #fef2f2;
    color: #dc2626;
    display: grid;
    place-items: center;
    font-size: 40px;
}

.search-empty h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1px;
    font-weight: 900;
}

.search-empty > p {
    max-width: 580px;
    margin: 16px auto 26px;
    color: #64748b;
    line-height: 1.8;
}

.search-empty form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto;
}

.search-empty input {
    width: 100%;
    height: 54px;
    padding: 0 17px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    outline: none;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
}

.search-empty input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .08);
}

.search-empty button {
    height: 54px;
    padding: 0 21px;
    border: 0;
    border-radius: 17px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.search-empty-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
}

.search-empty-links a {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}
/* =========================================================
   LAYOUT DES RÉSULTATS
========================================================= */

.search-results-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    align-items: start;
}

/* =========================================================
   SIDEBAR DES FILTRES
========================================================= */

.search-results-nav {
    position: sticky;
    top: 92px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(15, 23, 42, .06);
}

.search-results-nav h3 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.search-filter {
    width: 100%;
    min-height: 52px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #f8fafc;
    color: #334155;
    display: grid;
    grid-template-columns: 30px 1fr 34px;
    gap: 10px;
    align-items: center;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
    transition: .25s ease;
}

.search-filter:last-child {
    margin-bottom: 0;
}

.search-filter > i {
    color: #1d4ed8;
    font-size: 20px;
}

.search-filter > span {
    min-width: 0;
}

.search-filter > strong {
    min-width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #ffffff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 12px;
}

.search-filter:hover,
.search-filter.active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
    transform: translateX(3px);
}

.search-filter:hover > i,
.search-filter.active > i {
    color: #ffffff;
}

/* =========================================================
   CONTENEUR PRINCIPAL
========================================================= */

.search-results-main {
    display: grid;
    gap: 34px;
    min-width: 0;
}

.search-result-group {
    min-width: 0;
}

.search-result-group.is-hidden {
    display: none;
}

/* =========================================================
   EN-TÊTE DE GROUPE
========================================================= */

.search-group-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.search-group-heading > div:first-child {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 18px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.search-group-heading span {
    display: block;
    margin-bottom: 4px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.search-group-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -.8px;
    font-weight: 900;
}

/* =========================================================
   LISTE DES RÉSULTATS
========================================================= */

.search-result-list {
    display: grid;
    gap: 16px;
}

.search-result-card {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 55px rgba(15, 23, 42, .05);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.search-result-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .24);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .1);
}

.search-result-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    font-size: 29px;
}

.search-result-icon.red {
    background: #fef2f2;
    color: #dc2626;
}

.search-result-icon.green {
    background: #ecfdf5;
    color: #059669;
}

.search-result-body {
    min-width: 0;
}

.search-result-type {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.search-result-body h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.4px;
    font-weight: 900;
}

.search-result-body h3 mark,
.search-result-body p mark {
    padding: 1px 4px;
    border-radius: 5px;
    background: #fef08a;
    color: inherit;
}

.search-result-body p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.search-result-meta i {
    color: #1d4ed8;
    font-size: 15px;
}

/* =========================================================
   BOUTON D’OUVERTURE
========================================================= */

.search-result-card > a {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 15px;
    background: #eff6ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    transition: .25s ease;
}

.search-result-card > a:hover {
    background: #1d4ed8;
    color: #ffffff;
    transform: translateX(3px);
}

.search-result-card > a i {
    transition: transform .25s ease;
}

.search-result-card > a:hover i {
    transform: translateX(3px);
}
/* =========================================================
   ANIMATIONS
========================================================= */

.search-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .65s ease,
        transform .65s ease;
}

.search-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .search-results-layout {
        grid-template-columns: 1fr;
    }

    .search-results-nav {
        position: relative;
        top: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .search-results-nav h3 {
        grid-column: 1 / -1;
        margin-bottom: 6px;
    }

    .search-filter {
        margin-bottom: 0;
    }
}

@media (max-width: 820px) {
    .search-main-form,
    .search-empty form {
        grid-template-columns: 1fr;
    }

    .search-main-form button,
    .search-empty button {
        width: 100%;
    }

    .search-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-suggestions {
        grid-template-columns: 1fr;
    }

    .search-result-card {
        grid-template-columns: 58px 1fr;
        align-items: start;
    }

    .search-result-card > a {
        grid-column: 1 / -1;
        width: fit-content;
        margin-left: 76px;
    }
}

@media (max-width: 600px) {
    .search-hero {
        min-height: auto;
    }

    .search-hero-content {
        padding: 65px 0;
    }

    .search-hero h1 {
        font-size: 40px;
        letter-spacing: -1.2px;
    }

    .search-hero p {
        font-size: 16px;
    }

    .search-content {
        padding: 60px 0 75px;
    }

    .search-results-nav {
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 22px;
    }

    .search-intro-state,
    .search-empty {
        padding: 38px 20px;
        border-radius: 24px;
    }

    .search-result-card {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 22px;
    }

    .search-result-icon {
        width: 54px;
        height: 54px;
        border-radius: 17px;
    }

    .search-result-card > a {
        grid-column: auto;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .search-group-heading {
        align-items: flex-start;
    }

    .search-group-heading > div:first-child {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 16px;
    }
}