/* ==========================================================
   Mes Projets — Widgets CSS  v1.1
   ========================================================== */

/* ── Grille Projets ────────────────────────────────────────── */

.sd-projets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* ── Carte projet ──────────────────────────────────────────── */

.sd-projet-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    transition: box-shadow 280ms ease, transform 280ms ease;
    text-decoration: none;
    color: inherit;
}

.sd-projet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

a.sd-projet-card,
a.sd-projet-card:visited {
    color: inherit;
    text-decoration: none;
}

/* ── Image carrée ──────────────────────────────────────────── */

.sd-projet-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background-color: #f3f4f6;
}

.sd-projet-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.sd-projet-card:hover .sd-projet-card-img img {
    transform: scale(1.05);
}

.sd-projet-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

/* ── Badge catégorie ───────────────────────────────────────── */

.sd-projet-card-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    margin: 12px 16px 0;
    border-radius: 99px;
    background-color: #eff6ff;
    color: #2563eb;
    line-height: 1.5;
    align-self: flex-start;
}

/* ── Titre ─────────────────────────────────────────────────── */

.sd-projet-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding: 14px 16px;
    margin: 0;
    text-align: center;
    transition: color 200ms ease;
}

/* ── Pagination ───────────────────────────────────────────── */

.sd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 32px;
}

.sd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
    cursor: pointer;
}

.sd-pagination a.page-numbers:hover {
    color: #2791F5;
    background-color: #f0f8ff;
    border-color: #2791F5;
}

.sd-pagination .page-numbers.current {
    color: #ffffff;
    background-color: #2791F5;
    border-color: #2791F5;
    pointer-events: none;
}

.sd-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .sd-projets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .sd-projets-grid {
        grid-template-columns: 1fr;
    }
}
