/* Modale de recherche */
.search-modal {
    background: linear-gradient(135deg, #f8f2e8 0%, #fffaf0 100%);
}

.search-modal__form {
    max-width: 700px;
    margin: 2rem auto 0;
}

.search-modal__input-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-modal__input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(110, 119, 88, 0.2);
    border-radius: 50px;
    background: white;
    color: #353229;
    font: inherit;
    font-size: 1.125rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-modal__input:focus {
    outline: none;
    border-color: #5f6c4a;
    box-shadow: 0 0 0 0.3rem rgba(110, 119, 88, 0.14);
}

.search-modal__button {
    padding: 1.25rem 1.5rem;
    background: #5f6c4a;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    flex-shrink: 0;
}

.search-modal__button:hover {
    background: #3e4b37;
    transform: scale(1.05);
}

.search-modal__help {
    text-align: center;
    color: #514d44;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Page de résultats de recherche */
.search-container {
    max-width: 900px;
    margin: 0 auto;
}

.search-form {
    margin-bottom: 3rem;
}

.search-form__input-group {
    display: flex;
    gap: 1rem;
}

.search-form__input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(110, 119, 88, 0.2);
    border-radius: 8px;
    background: #f8f2e8;
    color: #353229;
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form__input:focus {
    outline: none;
    border-color: #5f6c4a;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(110, 119, 88, 0.14);
}

.search-form__button {
    padding: 1rem 1.5rem;
    background: #5f6c4a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.search-form__button:hover {
    background: #3e4b37;
}

.search-form__help {
    margin: 0.55rem 0 0;
    color: #5f5a51;
    font-size: 0.9rem;
}

.search-results__info {
    margin-bottom: 2.5rem;
    color: #514d44;
    font-size: 1.1rem;
    padding: 1.25rem;
    background: rgba(110, 119, 88, 0.05);
    border-left: 4px solid #6e7758;
    border-radius: 4px;
}

.search-results__section {
    margin-bottom: 3rem;
}

.search-results__section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-title);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #3e4b37;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(110, 119, 88, 0.15);
}

.search-results__section-title i {
    color: #5f6c4a;
    font-size: 1.75rem;
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result {
    padding: 1.5rem;
    background: white;
    border: 1px solid rgba(110, 119, 88, 0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-result:hover {
    border-color: #5f6c4a;
    box-shadow: 0 4px 12px rgba(110, 119, 88, 0.12);
}

.search-result__title {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-title);
    font-size: 1.25rem;
}

.search-result__title a {
    color: #3e4b37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-result__title a:hover {
    color: #5f6c4a;
}

.search-result__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #5f5a51;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    flex-wrap: wrap;
}

.search-result__meta i {
    color: #5f6c4a;
}

.search-result__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(110, 119, 88, 0.1);
    color: #5f6c4a;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.search-result__excerpt {
    color: #514d44;
    line-height: 1.6;
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
}

.badge-secondary {
    background: rgba(158, 158, 158, 0.15);
    color: #616161;
}

@media (max-width: 768px) {
    .search-form__input-group {
        flex-direction: column;
    }

    .search-modal__input-wrapper {
        flex-direction: column;
    }

    .search-modal__button {
        width: 100%;
    }

    .search-result {
        padding: 1.25rem;
    }

    .search-results__section-title {
        font-size: 1.25rem;
    }
}
