/* Container de la grille */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

.realisations-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-column-gap: 20px;
	grid-row-gap: 20px;
	
	grid-template-rows: none;
	grid-auto-rows: auto;
}

.realisation-card-1{
	grid-row: 1;
    grid-column: 1;
}
.realisation-card-2 {
    grid-row: 1;
    grid-column: 2 / span 2;
}
.realisation-card-3{
	grid-row: 2;
    grid-column: 1;
}
.realisation-card-4{
	grid-row: 2;
    grid-column: 2;
}
.realisation-card-5 {
    grid-row: 2;
    grid-column: 3;
}

.realisation-card-6 {
    grid-row: 3;
    grid-column: 1 / span 2;
}

.realisation-card-7 {
    grid-row: 3;
    grid-column: 3;
}

@media (min-width: 768px) {
    .realisations-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette: 2 cols */
    }
}

@media (min-width: 992px) {
    .realisations-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 cols */
    }
    
    /* Optionnel : Pour faire l'effet Bento (2 en haut, 3 au milieu) 
       Il faut du CSS plus complexe ou une structure HTML différente.
       Pour l'instant, une grille propre de 3 colonnes est plus maintenable.
       Si vous voulez forcer les 2 premiers items à être plus grands : */
    /* .realisations-grid > article:nth-child(-n+2) { grid-column: span 1.5; } non standard */
}

/* Design de la Carte */
.realisation-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-image-wrapper {
    position: relative;
    border-radius: 20px; /* Arrondi fort comme l'image */
    overflow: hidden;
    background: #f0f0f0;
}

.card-image-wrapper img {
    width: 100%;
    height: 300px; /* Hauteur fixe ou aspect-ratio */
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.realisation-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Le bouton flottant */
.btn-decouvrir {
	width: 144px;
	height: 58px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 20px;
	line-height: 76%;
	display: flex;
	align-items: center;
	text-align: center;
	background: #FFFFFF;
	color: #000000;
	position: absolute;
	bottom: 0px;
    left: 0px;
	border-radius: 0px 10px;
    text-decoration: none;
    transition: all 0.2s ease;
	justify-content: center;
    gap: 5px;
}

.btn-decouvrir:hover {
    background: #000;
    color: #fff;
}

/* Meta Infos (Sous l'image) */
.card-content .meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item svg {
    flex-shrink: 0;
}

/* Bouton Load More (Centré noir) */
#load-more-btn {
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
#load-more-btn:hover {
    background: #333;
}

/* Ligne soulignée "Afficher X résultats" */

.pagination-wrapper .results-count{
	position: relative;
	display: inline-block;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 21px;
	text-align: center;
	color: #000000 !important;
	margin-bottom: 20px;
	border-bottom: 1px solid #ccc;
}

.realisations-grid h3,
.meta-item{
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 500;
	font-size: 20px;
	line-height: 130%;
	color: #000000;
}

.pagination-wrapper{
	    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sab-realisations-block h2{
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 48px;
	line-height: 110%;
	text-align: center;
	color: #000000;
}
/* Espacement autour des filtres */
.filters-wrapper {
    margin-bottom: 40px;
}

/* Flexbox pour aligner les boutons */
.filter-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Style général des boutons (Forme 'pillule') */
.btn-filter {
    border: none;
    outline: none;
    padding: 10px 25px;       /* Ajustement hauteur/largeur */
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;  
    /* État par défaut (Inactif) : Gris clair */
    background-color: #0084FF; 
    color: #FFFFFF;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 500;
	font-size: 28px;
	line-height: 263%;
	text-align: center;
	letter-spacing: 0.02em;
	border-radius: 20px;
	height: 80px;
	display: flex;
    justify-content: center;
    align-items: center;
}
/* Styles Pagination */
.custom-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.custom-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%; /* Rond */
    text-decoration: none;
    background: #FFFFFF;
	border: 1px solid #000000;
    transition: all 0.3s ease;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 18px;
	line-height: 21px;
	text-align: center;
	color: #000000;
}

.custom-pagination .page-numbers.current {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}

.custom-pagination .page-numbers:hover:not(.current) {
    background-color: #000000;
	color: #FFFFFF;
    border-color: #000000;
}

.custom-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}
@media (max-width: 1499px) and (min-width: 1025px) {
    /* 1. Shrink Grid Spacing */
    .realisations-grid {
        gap: 15px;
    }

    /* 2. Scale Down Image Height */
    .card-image-wrapper img {
        height: 250px; /* Reduced from 300px */
    }

    /* 3. Scale Down UI Elements */
    .btn-filter {
        font-size: 22px; /* Reduced from 28px */
        height: 65px;
        padding: 10px 20px;
    }

    .btn-decouvrir {
        width: 120px;
        height: 50px;
        font-size: 16px;
    }

    /* 4. Scale Titles */
    .sab-realisations-block h2 {
        font-size: 38px;
    }

    .realisations-grid h3 {
        font-size: 18px;
    }
}
/* Responsive Mobile */
@media (max-width: 768px) {
	.btn-filter {
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.2;
    height: 48px;
    border-radius: 14px;
    letter-spacing: 0.01em;
  }
	.sab-realisations-block h2 {
    font-size: 26px;
line-height: 110%;
}
.realisations-grid {
           display: flex;
        flex-direction: column;

}
}

