.hero-realisations {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-image: url('../images/fond-service.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--blanc);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-realisations::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-realisations-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeIn 1s ease-out forwards;
}

.hero-realisations-title {
    font-family: 'Urbanist', sans-serif;
    font-size: 3rem;
    font-weight: 700;
}

.page-realisations-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title-realisations {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #333;
}
.section-title-realisations::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--pantone-rouge);
    border-radius: 3px;
}

.expertises-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
}

.expertise-card {
    background: var(--blanc);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    border-top: 5px solid var(--pantone-rouge);
    display: flex;
    flex-direction: column;
}

.expertise-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.expertise-header i { font-size: 1.8rem; color: var(--pantone-rouge); }
.expertise-header h3 { font-size: 1.5rem; color: #333; margin: 0; }
.expertise-card p { font-size: 1rem; line-height: 1.7; color: #555; flex-grow: 1; }

.expertise-images {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.expertise-images img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid var(--fond-clair);
}

.gallery-section {
    padding-top: 60px;
    border-top: 1px solid #ddd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--blanc);
    display: flex;
    flex-direction: column;
}

.gallery-item a {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
}

.gallery-image-wrapper {
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item-content {
    padding: 20px;
    background-color: var(--blanc);
    display: flex;
    align-items: center;
    min-height: 90px;
}

.gallery-item-content h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.slide-up { transform: translateY(40px); }
.animate-on-scroll.slide-in-left { transform: translateX(-50px); }
.animate-on-scroll.slide-in-right { transform: translateX(50px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translate(0, 0); }

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    font-family: 'Urbanist', sans-serif;
}

.pagination-results {
    font-size: 0.9rem;
    color: var(--gris-neutre);
    font-weight: 500;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
}

.page-item .page-link {
    color: #333;
    padding: 12px 18px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-item:first-child .page-link, .page-item:last-child .page-link {
    font-weight: bold;
}

.page-item .page-link:hover {
    background-color: var(--fond-clair);
    color: var(--pantone-rouge);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.page-item.active .page-link {
    background-color: var(--pantone-rouge);
    color: var(--blanc);
    border-color: var(--pantone-rouge);
    z-index: 2;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(244, 0, 52, 0.4);
}

.page-item.disabled .page-link {
    color: #b0b0b0;
    pointer-events: none;
    background-color: #f5f5f5;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
}

.page-item .page-link i {
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .expertises-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-realisations-title {
        font-size: 2.5rem;
    }
    .section-title-realisations {
        font-size: 2.2rem;
    }

    .pagination-container {
        margin-top: 40px;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .page-item .page-link {
        padding: 8px 14px;
        margin: 0 2px;
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .pagination-results {
        font-size: 0.85rem;
    }
}
