/* =============================================
   Programmes Cards v1.1 — Style Front-end
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.pc-wrapper {
    --pc-font: 'Inter', system-ui, sans-serif;
}

/* ── Barre de contrôles ── */
.pc-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

/* ── Recherche ── */
.pc-search-wrap {
    position: relative;
    flex: 1 1 220px;
    max-width: 340px;
}

.pc-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.pc-search {
    font-family: var(--pc-font);
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px 9px 36px !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px !important;
    background: #fff;
    color: #0a0a0a;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
}

.pc-search::placeholder { color: #a0a0b0; }
.pc-search:focus {
    border-color: #030213;
    box-shadow: 0 0 0 3px rgba(3, 2, 19, 0.08);
}
.pc-search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ── Filtres lieu ── */
.pc-loc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pc-loc-btn {
    font-family: var(--pc-font);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 100px;
    background: transparent;
    color: #717182;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.5;
    white-space: nowrap;
}
.pc-loc-btn:hover { border-color: rgba(0, 0, 0, 0.3); color: #0a0a0a; }
.pc-loc-btn.active { background: #030213; color: #fff; border-color: #030213; }

/* ── Grille ── */
.pc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) { .pc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pc-grid { grid-template-columns: 1fr; } }

/* ── Card ── */
.pc-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.22s, transform 0.22s;
}
.pc-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    transform: translateY(-2px);
}

.pc-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* ── Image ── */
.pc-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}
.pc-card-img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.35s ease;
}
.pc-card:hover .pc-card-img img { transform: scale(1.04); }

.pc-card-no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #f5f6fa; font-size: 2.5rem;
}

/* ── Corps ── */
.pc-card-body {
    padding: 18px 20px 20px;
    display: flex; flex-direction: column; gap: 6px; flex: 1;
}

.pc-card-title {
    font-family: var(--pc-font);
    font-size: 1rem; font-weight: 700; color: #0a0a0a;
    margin: 0; line-height: 1.35;
}

.pc-card-lieu {
    font-family: var(--pc-font);
    font-size: 0.8rem; color: #717182;
    display: flex; align-items: center; gap: 5px;
}
.pc-pin-icon { flex-shrink: 0; }

.pc-card-accroche {
    font-family: var(--pc-font);
    font-size: 0.83rem; color: #3b6fd4;
    margin: 2px 0 0; line-height: 1.5;
}

/* ── Footer ── */
.pc-card-footer {
    margin-top: auto; padding-top: 12px;
    display: flex; flex-wrap: wrap;
    align-items: flex-end; justify-content: space-between; gap: 8px;
}

.pc-card-prix {
    font-family: var(--pc-font);
    font-size: 0.85rem; color: #0a0a0a; white-space: nowrap;
}
.pc-card-prix strong { font-weight: 700; }

.pc-card-typos { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.pc-typo {
    font-family: var(--pc-font);
    font-size: 0.72rem; font-weight: 500;
    background: #f0f2f5; color: #444;
    border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}

/* ── Aucun résultat ── */
.pc-no-results,
.pc-no-results-js {
    font-family: var(--pc-font);
    color: #888; font-style: italic;
    text-align: center; padding: 32px 0;
    font-size: 0.9rem; width: 100%;
}
