/* ============================================
   SEARCH
   ============================================ */

/* Hero */
.search-hero {
    background: var(--forest);
    color: var(--cream);
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 94, 63, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.search-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.1;
    color: var(--cream);
    margin: 0 0 24px;
    position: relative;
}

/* Form hero */
.search-hero-form {
    position: relative;
    max-width: 640px;
}

.search-hero-input-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 8px 8px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.search-hero-input-group i {
    color: var(--stone);
    flex-shrink: 0;
}

.search-hero-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 14px 0;
    font-size: 16px;
    color: var(--charcoal);
    font-family: inherit;
    min-width: 0;
}

.search-hero-input-group input::placeholder {
    color: #9ca3af;
}

.search-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: var(--emerald);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 200ms ease;
    white-space: nowrap;
}

.search-hero-btn:hover {
    background: var(--forest);
}

/* Résultats head */
.search-results-head {
    margin-bottom: 24px;
}

.search-results-info {
    font-size: 15px;
    color: var(--stone);
    margin: 0;
}

.search-results-info strong {
    color: var(--forest);
    font-weight: 600;
}

/* Filtres */
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.search-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    transition: all 200ms ease;
}

.search-filter:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

.search-filter.is-active {
    background: var(--emerald);
    color: #fff;
    border-color: var(--emerald);
}

.search-filter.is-active i {
    color: #fff;
}

.search-filter-count {
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--emerald);
    font-weight: 600;
}

.search-filter.is-active .search-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Sections */
.search-section {
    margin-bottom: 56px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.search-section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--forest);
    margin: 0;
    flex: 1;
}

.search-section-count {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--emerald);
}

/* Grille cards */
.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .search-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .search-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Card */
.search-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: all 200ms ease;
    box-shadow: var(--shadow-sm);
}

.search-card:hover {
    transform: translateY(-3px);
    border-color: var(--sage);
    box-shadow: var(--shadow-md);
}

.search-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mint);
}

.search-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.search-card:hover .search-card-media img {
    transform: scale(1.05);
}

.search-card-media-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage);
}

.search-card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-card-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--emerald);
    margin: 0 0 8px;
}

.search-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    color: var(--forest);
    margin: 0 0 8px;
    transition: color 200ms ease;
}

.search-card:hover .search-card-title {
    color: var(--emerald);
}

.search-card-desc {
    font-size: 13px;
    line-height: 1.55;
    color: var(--stone);
    margin: 0 0 12px;
    flex: 1;
}

.search-card-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--stone);
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* FAQ list */
.search-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-faq-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: all 200ms ease;
}

.search-faq-item:hover {
    border-color: var(--sage);
    transform: translateX(4px);
}

.search-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--mint);
    color: var(--emerald);
    flex-shrink: 0;
}

.search-faq-content {
    flex: 1;
    min-width: 0;
}

.search-faq-question {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--forest);
    margin: 0 0 4px;
    line-height: 1.4;
}

.search-faq-answer {
    font-size: 12.5px;
    color: var(--stone);
    margin: 0;
    line-height: 1.5;
}

.search-faq-arrow {
    color: var(--stone);
    flex-shrink: 0;
    transition: transform 200ms ease, color 200ms ease;
}

.search-faq-item:hover .search-faq-arrow {
    color: var(--emerald);
    transform: translateX(4px);
}

/* Empty state */
.search-empty {
    text-align: center;
    padding: 72px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.search-empty i {
    color: var(--sage);
    margin: 0 auto 16px;
}

.search-empty h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: var(--forest);
    margin: 0 0 8px;
}

.search-empty p {
    font-size: 14px;
    color: var(--stone);
    margin: 0 0 24px;
}

/* Suggestions */
.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--mint);
    color: var(--forest);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 200ms ease;
}

.search-suggestion:hover {
    background: var(--sage);
    color: #fff;
}

/* Mobile */
@media (max-width: 640px) {
    .search-hero { padding: 48px 0 40px; }
    .search-hero-title { font-size: 1.5rem; }
    .search-hero-input-group {
        flex-direction: column;
        padding: 12px;
        gap: 8px;
    }
    .search-hero-input-group i { display: none; }
    .search-hero-input-group input {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    .search-hero-btn { width: 100%; padding: 12px; }
    .search-faq-item { padding: 14px 16px; }
    .search-faq-icon { width: 36px; height: 36px; }
}