/* ═══════════════════════════════════════════════
   ZOHE - Résultats de recherche
   ═══════════════════════════════════════════════ */

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

.zohe-search-wrapper {
    font-family: 'Century Gothic', Arial, sans-serif;
}

/* ── Header ── */
.zohe-search-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.zohe-search-title {
    font-size: 22px;
    font-weight: 400;
    color: #555;
    margin: 0;
    line-height: 1.4;
}

.zohe-search-count {
    font-weight: 800;
    color: #333;
    font-size: 26px;
}

.zohe-search-term {
    font-weight: 700;
    color: #333;
    font-style: italic;
}

/* ── Grille de résultats ── */
.zohe-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* ── Carte résultat ── */
.zohe-search-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoheSearchFadeIn 0.5s ease forwards;
    opacity: 0;
    border-left: 4px solid var(--card-accent, #E8E8E8);
}

.zohe-search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.zohe-search-card:hover .zohe-search-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ── Card Header ── */
.zohe-search-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.zohe-search-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    white-space: nowrap;
}

.zohe-search-taxonomy {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Card Body ── */
.zohe-search-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zohe-search-card-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card Footer ── */
.zohe-search-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.zohe-search-date {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

.zohe-search-arrow {
    font-size: 18px;
    color: #ccc;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

/* ── Etat vide ── */
.zohe-search-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 30px;
    gap: 40px;
}

.zohe-search-empty-left {
    flex: 1;
    min-width: 0;
}

.zohe-search-empty-right {
    flex: 0 0 auto;
    width: 240px;
}

.zohe-search-illustration {
    width: 100%;
    height: auto;
    display: block;
}

.zohe-search-empty-text {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.zohe-search-empty-hint {
    font-size: 14px;
    color: #aaa;
    margin: 0;
    line-height: 1.5;
}

.zohe-search-login {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 40px 20px;
}

/* ── Animation ── */
@keyframes zoheSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .zohe-search-page-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .zohe-search-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .zohe-search-title {
        font-size: 18px;
    }

    .zohe-search-count {
        font-size: 22px;
    }

    .zohe-search-card {
        padding: 18px;
    }

    .zohe-search-empty {
        flex-direction: column-reverse;
        text-align: center;
        padding: 30px 15px;
        gap: 20px;
    }

    .zohe-search-empty-right {
        width: 180px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .zohe-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
