/* --- SECTION RÉALISATIONS --- */
.realisations-section {
    background-color: var(--header-bg) !important;
    padding: 100px 10% !important;
    width: 100% !important;
}

.realisations-section h2 {
    color: var(--white) !important;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.realisations-section h2 span {
    color: var(--accent-beige) !important;
    border-bottom: 4px solid var(--accent-beige);
    padding-bottom: 5px;
}

.real-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

.real-card {
    background-color: #000;
    height: 350px;
    position: relative;
    overflow: hidden;
}

.real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.real-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--accent-beige);
    color: var(--header-bg);
    padding: 12px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

/* L'overlay qui apparaît au survol */
.real-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 31, 30, 0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; 
    z-index: 5;
    transition: var(--transition);
}

.real-card:hover .real-overlay {
    opacity: 1;
}

.real-card:hover .real-img {
    transform: scale(1.1);
}

/* --- CORRECTIFS DU BOUTON --- */

/* Conteneur pour décoller le bouton de la grille */
.view-all-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 80px; /* Plus d'espace pour ne pas coller aux images */
}

/* Bouton "VOIR TOUT" réduit et harmonisé */
.btn-gallery {
    padding: 12px 30px !important; /* Taille réduite */
    font-size: 0.85rem !important; /* Texte plus fin */
    width: auto !important; /* Ne prend que la place nécessaire */
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Bouton à l'intérieur de l'overlay (encore plus petit) */
.btn-small {
    padding: 10px 20px !important;
    font-size: 0.75rem !important;
    min-width: auto !important;
}

.no-data {
    color: var(--accent-beige);
    text-align: center;
    grid-column: 1/-1;
    padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) { 
    .real-grid { grid-template-columns: repeat(2, 1fr) !important; } 
}

@media (max-width: 768px) { 
    .real-grid { grid-template-columns: 1fr !important; }
    .realisations-section { padding: 60px 5% !important; }
    .view-all-wrapper { margin-top: 40px; }
}