/* ================================================================
   RÉALISATIONS — CPT styles + pagination
   À ajouter dans css/realisations.css (enqueued depuis functions.php)
   ================================================================ */

/* ── real-grid : identique our-project.php ──────────────────────── */
.real-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 20px;
}

/* ── real-card : identique our-project.php ──────────────────────── */
.real-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #eef0f7;
    transition: .3s;
    cursor: pointer;
}
.real-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(20,34,90,.10);
    border-color: transparent;
}
.real-card .ph {
    aspect-ratio: 4/3;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.real-card .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
    display: block;
}
.real-card:hover .ph img {
    transform: scale(1.08);
}
.real-card .ph .badge-cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--navy);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 12px;
    border-radius: 50px;
    z-index: 2;
}
.real-card .ph .year {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13,23,64,.85);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    z-index: 2;
}
.real-card .body {
    padding: 24px 22px 26px;
}
.real-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    line-height: 1.3;
}
.real-card .loc {
    color: var(--gold);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.real-card p {
    color: var(--muted);
    font-size: .9rem;
    margin: 0 0 14px;
}
.real-card .stats {
    display: flex;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid #eef0f7;
}
.real-card .stat strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
}
.real-card .stat small {
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.real-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.real-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.real-pagination .page-numbers li a,
.real-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #e3e6f0;
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: .2s;
}
.real-pagination .page-numbers li a:hover {
    border-color: var(--gold);
    background: rgba(244,178,35,.08);
}
.real-pagination .page-numbers li .current {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}
.real-pagination .page-numbers li .dots {
    border: none;
    background: transparent;
    color: var(--muted);
    width: auto;
}

/* ── impact-band : identique our-project.php ────────────────────── */
.impact-band {
    background: linear-gradient(110deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    padding: 80px 0;
}
.impact-band h2 {
    color: #fff;
    text-align: center;
    margin: 0 0 50px;
}
.impact-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.impact-stat {
    text-align: center;
}
.impact-stat .n {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--gold);
    font-size: 3rem;
    line-height: 1;
}
.impact-stat .lbl {
    color: rgba(255,255,255,.8);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 10px;
}

/* ── Filtres ────────────────────────────────────────────────────── */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.filters button {
    background: #fff;
    border: 1.5px solid #e3e6f0;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}
.filters button:hover,
.filters button.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* ── related-card ────────────────────────────────────────────────── */
.related-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(20,34,90,.10);
}
.related-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.related-card .body {
    padding: 20px;
}
.related-card .date {
    font-size: .78rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.related-card h4 {
    font-size: 1rem;
    margin: 10px 0 0;
}

/* ── Single : layout 2 colonnes ─────────────────────────────────── */
@media (max-width: 900px) {
    .single-realisation-layout {
        grid-template-columns: 1fr !important;
    }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .real-grid         { grid-template-columns: 1fr 1fr; }
    .impact-stats      { grid-template-columns: repeat(2, 1fr); }
    .related-grid      { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .real-grid         { grid-template-columns: 1fr; }
    .impact-stat .n    { font-size: 2.2rem; }
}