/* ============================================================
   Résultats de recherche SCOTERS
   ============================================================ */

.sc-results-wrap {
    font-family: 'DM Sans', sans-serif;
}

/* ---- Barre de recherche hero ---- */
.sc-results-hero {
    background: #f4f9fc;
    border-bottom: 1px solid #d0dce8;
    padding: 2.5rem 0;
}
.sc-results-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.sc-results-field {
    display: flex; align-items: stretch;
    border: 2px solid #1B4F72; border-radius: 10px;
    overflow: hidden; background: #fff;
    transition: box-shadow .2s;
}
.sc-results-field:focus-within { box-shadow: 0 0 0 3px rgba(27,79,114,.15); }
.sc-results-icon {
    padding: 0 1rem; display: flex; align-items: center; flex-shrink: 0;
}
.sc-results-input {
    flex: 1; border: none; background: transparent;
    font-size: 1rem; padding: .8rem .5rem; color: #1B4F72; outline: none;
    font-family: 'DM Sans', sans-serif;
}
.sc-results-input::placeholder { color: #94afc6; }
.sc-results-btn {
    background: #1B4F72; color: #fff; border: none;
    padding: 0 1.4rem; font-size: .9rem; font-weight: 500;
    font-family: 'DM Sans', sans-serif; cursor: pointer;
    white-space: nowrap; transition: background .2s;
}
.sc-results-btn:hover { background: #00587d; }
.sc-results-count {
    margin: 1rem 0 0;
    font-size: .9rem; color: #7a95aa;
}
.sc-results-count strong { color: #1B4F72; font-weight: 600; }
.sc-results-count em { font-style: normal; color: #1B4F72; }

/* ---- Grille résultats ---- */
.sc-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 2.5rem 0;
}
.sc-result-card {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 1.1rem 1.1rem 1.1rem 1rem;
    border: 1px solid #d0dce8; border-radius: 12px;
    background: #fff; text-decoration: none !important;
    color: inherit; transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
}
.sc-result-card:hover {
    border-color: #1B4F72;
    background: #f4f9fc;
    box-shadow: 0 2px 12px rgba(27,79,114,.08);
}

/* Image */
.sc-result-img {
    width: 80px; height: 80px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: #eef4f8;
    display: flex; align-items: center; justify-content: center;
}
.sc-result-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.sc-result-img--placeholder { background: #eef4f8; }

/* Corps */
.sc-result-body { flex: 1; min-width: 0; padding-right: 8px; }
.sc-result-title {
    font-size: .95rem; font-weight: 500; color: #1B4F72;
    margin: 0 0 .4rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.sc-result-card:hover .sc-result-title { text-decoration: underline; }
.sc-result-excerpt {
    font-size: .82rem; color: #7a95aa; margin: 0; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Flèche */
.sc-result-arrow {
    flex-shrink: 0; align-self: center; opacity: 0;
    transition: opacity .15s, transform .15s;
}
.sc-result-card:hover .sc-result-arrow { opacity: 1; transform: translateX(3px); }

/* ---- Aucun résultat ---- */
.sc-no-results {
    text-align: center; padding: 5rem 1rem;
}
.sc-no-results svg { margin-bottom: 1.5rem; }
.sc-no-results h3 {
    font-size: 1.3rem; font-weight: 500; color: #1B4F72; margin: 0 0 .75rem;
}
.sc-no-results p { color: #7a95aa; font-size: .95rem; margin: 0 0 1.5rem; }
.sc-no-results-btn {
    display: inline-block; padding: .65rem 1.4rem;
    border: 1px solid #1B4F72; border-radius: 8px;
    color: #1B4F72; font-size: .9rem; text-decoration: none;
    transition: background .15s;
}
.sc-no-results-btn:hover { background: #eef4f8; text-decoration: none; }

/* ---- Pagination ---- */
.sc-pagination {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; padding: 1rem 0 3rem;
}
.sc-page a, .sc-page span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid #d0dce8; border-radius: 8px;
    font-size: .85rem; color: #1B4F72; text-decoration: none;
    transition: all .15s; background: #fff;
}
.sc-page .current {
    background: #1B4F72; color: #fff; border-color: #1B4F72;
}
.sc-page a:hover { background: #eef4f8; border-color: #1B4F72; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .sc-results-grid { grid-template-columns: 1fr; }
    .sc-results-btn { padding: 0 .9rem; font-size: .82rem; }
}

.sc-result-parent {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: .75rem; color: #7EC8A0; font-weight: 500;
    margin-bottom: .3rem; letter-spacing: .02em;
}