/*====================================================
GRIFFON GRID SYSTEM — 2x2 MODULATION
====================================================*/

.service-twentyfour-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* La Grille Maîtresse 2x2 */
.griffon-2x2-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px; /* Espace équilibré entre les 4 blocs */
    width: 100%;
}

.serv-gate4-grid {
    width: 100%;
    display: flex;
}

/* Bloc individuel d'un service */
.service-blocks-grid {
    position: relative;
    width: 100%;
    background-color: #fcfcfc; /* Fallback au cas où */
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-blocks-grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.inner-box-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/*====================================================
IMAGE (Moitié supérieure de la carte)
====================================================*/
.image-box-grid {
    position: relative;
    width: 100%;
    height: 280px; /* Hauteur fixe pour égaliser les lignes */
    overflow: hidden;
}

.image-box-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.service-blocks-grid:hover .image-box-grid img {
    transform: scale(1.03);
}

/* Petit numéro d'index sur l'image */
.image-small-number-grid {
    position: absolute;
    left: 25px;
    bottom: 25px;
    z-index: 3;
}

.image-small-number-grid .line-grid {
    position: absolute;
    width: 40px;
    height: 1px;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
}

.image-small-number-grid .number-grid {
    position: absolute;
    bottom: 12px;
    left: 0;
    font-family: ui-monospace, SF Mono, Menlo, monospace;
    font-size: 11px;
    letter-spacing: .2em;
    color: #fff;
}

/*====================================================
CONTENU (Moitié inférieure de la carte)
====================================================*/
.contentstrike4-grid {
    position: relative;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pousse le bouton vers le bas pour l'alignement */
    justify-content: space-between;
    
    /* Animation au scroll IntersectionObserver */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
}

.service-blocks-grid.is-visible .contentstrike4-grid {
    opacity: 1;
    transform: translateY(0);
}

/* Chiffre Romain en arrière-plan discret */
.image-overlay-number4-grid {
    position: absolute;
    top: 20px;
    right: 25px;
    pointer-events: none;
}

.image-overlay-number4-grid .roman-grid {
    font-size: 90px;
    font-weight: 700;
    font-family: "Cormorant Garamond", serif;
    opacity: .05;
    line-height: 1;
}

/* Titre */
.title-grid {
    margin: 0 0 15px 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 600;
    font-family: "Cormorant Garamond", serif;
}

/* Texte descriptif */
.text-grid {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.85;
}

/* Lien d'action minimaliste style Griffon */
.gm-link-grid {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: ui-monospace, SF Mono, Menlo, monospace;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    padding-bottom: 4px;
    transition: gap .3s ease, border-color .3s ease;
}

.gm-link-grid:hover {
    gap: 20px;
}

.gm-arrow-grid {
    font-size: 14px;
}

/*====================================================
RESPONSIVE TABLETTE & MOBILE
====================================================*/
@media (max-width: 991px) {
    .griffon-2x2-wrapper {
        grid-template-columns: 1fr; /* Bascule sur 1 seule colonne propre */
        gap: 25px;
    }
    
    .image-box-grid {
        height: 240px;
    }
    
    .title-grid {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .contentstrike4-grid {
        padding: 30px 20px;
    }
    
    .image-box-grid {
        height: 200px;
    }
}