/* ==========================================================================
   Page Realisations : hero clair (photo) + filtres + grille de projets
   Fichier charge en simple <link> statique (pas de build), voir base.html.twig
   Reutilise les variables et boutons definis pour l'accueil (voir accueil.css)
   ========================================================================== */

/* ---------- Hero Realisations ---------- */

.hero-realisations-page {
    position: relative;
    overflow: hidden;
    background: #eef4fb;
}

@media (min-width: 992px) {
    .hero-realisations-page {
        min-height: 420px;
        padding-top: 12rem;
        padding-bottom: 5rem;
    }

    .hero-realisations-page-bg {
        position: absolute;
        inset: 0;
        background-image: url('/images/hero-realisations.jpg');
        background-size: cover;
        background-position: right center;
        z-index: 0;
    }

    .hero-realisations-page-scrim {
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(100deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .85) 32%, rgba(255, 255, 255, .35) 58%, transparent 74%);
        pointer-events: none;
    }

    .hero-realisations-page-container {
        position: relative;
        z-index: 2;
    }

    .hero-realisations-page-copy {
        max-width: 620px;
    }
}

.hero-realisations-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--primary);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .14em;
}

.hero-realisations-page-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--primary);
}

.hero-realisations-page-title {
    margin: 1.1rem 0 1.4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    font-size: clamp(2.1rem, 3.3vw, 3.1rem);
    color: var(--dark);
}

.hero-realisations-page-title span {
    display: block;
    background-image: linear-gradient(100deg, #1a63e8 10%, #16c4ea 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-realisations-page-lead {
    max-width: 480px;
    color: #4b5768;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .hero-realisations-page {
        display: flex;
        flex-direction: column;
        padding: 6.5rem 0 2.5rem;
    }

    .hero-realisations-page-bg {
        order: 2;
        margin-top: 2rem;
        height: 220px;
        background-image: url('/images/hero-realisations.jpg');
        background-size: cover;
        background-position: center;
        border-radius: 14px;
    }

    .hero-realisations-page-scrim {
        display: none;
    }

    .hero-realisations-page-container {
        order: 1;
    }

    .hero-realisations-page-copy {
        text-align: center;
        margin: 0 auto;
    }

    .hero-realisations-page-eyebrow {
        justify-content: center;
    }

    .hero-realisations-page-lead {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- Section grille de realisations ---------- */

.realisations-grid-section {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4.5rem;
    background: #f8fafd;
}

.realisations-grid-shape {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, .1), rgba(37, 99, 235, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.realisations-grid-shape--left {
    left: -180px;
    top: -120px;
}

.realisations-grid-shape--right {
    right: -180px;
    bottom: -140px;
}

.realisations-filters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 2.25rem;
}

.realisations-filter-pill {
    padding: .55rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 23, 42, .1);
    background: #fff;
    color: var(--dark);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.realisations-filter-pill:hover {
    border-color: rgba(37, 99, 235, .35);
}

.realisations-filter-pill.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.realisations-grid-row {
    position: relative;
    z-index: 1;
}

.realisation-card {
    display: block;
    height: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow-soft, 0 10px 30px rgba(15, 23, 42, .08));
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s ease;
}

.realisation-card:hover {
    box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
    color: inherit;
}

.realisation-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf1fd;
}

.realisation-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.realisation-card-body {
    position: relative;
    padding: 1.5rem 1.5rem 1.75rem;
}

.realisation-card-category {
    display: block;
    margin-bottom: .4rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .98rem;
}

.realisation-card-body p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.55;
    margin: 0;
    padding-right: 2.5rem;
}

.realisation-card-arrow {
    position: absolute;
    right: 1.5rem;
    bottom: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    transition: transform .2s ease;
}

.realisation-card-arrow svg {
    width: 16px;
    height: 16px;
}

.realisation-card:hover .realisation-card-arrow {
    transform: translateX(3px);
}

/* ---------- Etat vide ---------- */

.realisations-empty-section {
    padding: 4.5rem 0 5.5rem;
    background: #f8fafd;
    text-align: center;
}

.realisations-empty-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}
