/**
 * PAGE DE RECHERCHE - STYLES
 * Sous-page sans hero, affichage des résultats de recherche
 */

/* ============================================================
   1. HEADER DE RECHERCHE
   ============================================================ */

.search-page-header {
    background: linear-gradient(135deg, #003893 0%, #0056d2 100%);
    padding: 40px 0 30px;
    color: white;
    margin-bottom: 50px;
}

.search-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
}

.search-query-display {
    font-size: 1.2rem;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 25px;
}

.search-query-display strong {
    color: #ffd700;
}

.search-stats {
    font-size: 1rem;
    opacity: 0.85;
    text-align: center;
}

/* ============================================================
   2. FORMULAIRE DE RECHERCHE
   ============================================================ */

.search-form-container {
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto 40px;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-form-input {
    flex: 1;
    padding: 18px 30px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-form-input:focus {
    outline: none;
}

.search-form-btn {
    padding: 18px 35px;
    background: #dc143c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.search-form-btn:hover {
    background: #a01028;
}

/* ============================================================
   3. FILTRES
   ============================================================ */

.search-filters-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
    text-align: center;
}

.filter-btn:hover {
    border-color: #003893;
    color: #003893;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #003893;
    border-color: #003893;
    color: white;
}

.filter-btn i {
    margin-right: 8px;
}

/* ============================================================
   4. RÉSULTATS
   ============================================================ */

.search-results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-bottom: 50px;
}

.search-result-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: none;
}

.search-result-card.visible {
    display: block;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.search-result-type {
    padding: 8px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-type.type-page {
    background: #3b82f6;
    color: white;
}

.search-result-type.type-article {
    background: #10b981;
    color: white;
}

.search-result-type.type-project {
    background: #f59e0b;
    color: white;
}

.search-result-type.type-section {
    background: #8b5cf6;
    color: white;
}

.search-result-content {
    padding: 25px;
}

.search-result-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
}

.search-result-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: #003893;
}

.search-result-excerpt {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.search-result-meta i {
    color: #003893;
}

.search-result-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #003893;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.search-result-link:hover {
    gap: 12px;
}

/* ============================================================
   5. PAGINATION
   ============================================================ */

.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.search-pagination-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #1a202c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-pagination-btn:hover:not(:disabled) {
    border-color: #003893;
    color: #003893;
    transform: translateY(-2px);
}

.search-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-pagination-info {
    padding: 12px 25px;
    background: #f3f4f6;
    border-radius: 10px;
    font-weight: 600;
    color: #1a202c;
}

/* ============================================================
   6. MESSAGE VIDE
   ============================================================ */

.search-no-results {
    text-align: center;
    padding: 80px 20px;
}

.search-no-results-icon {
    font-size: 5rem;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.search-no-results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.search-no-results-text {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.search-suggestions {
    background: #f9fafb;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestions-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.search-suggestions-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.search-suggestions-list li {
    padding: 10px 0;
    color: #6b7280;
    line-height: 1.6;
}

.search-suggestions-list li:before {
    content: "→";
    color: #003893;
    font-weight: bold;
    margin-right: 10px;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */

@media (max-width: 992px) {
    .search-page-title {
        font-size: 2rem;
    }
    
    .search-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .search-page-header {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }
    
    .search-page-title {
        font-size: 1.75rem;
    }
    
    .search-query-display {
        font-size: 1rem;
    }
    
    .search-form-container {
        border-radius: 15px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form-input {
        width: 100%;
        padding: 15px 20px;
    }
    
    .search-form-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-radius: 0 0 15px 15px;
    }
    
    .search-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-pagination {
        flex-wrap: wrap;
    }
    
    .search-pagination-btn {
        padding: 10px 20px;
    }
}
