/* SECTION CONTENEUR GLOBAL AVEC EFFET DE SUPERPOSITION */
.features-cards-section {
    position: relative;
    z-index: 10;
    margin-top: -45px; /* Superposition sur le carrousel */
    padding-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Marge de 15px à gauche et à droite entre chaque carte (30px au total entre deux cartes) */
    gap: 30px; 
}

/* STYLE DE BASE DES CARTES */
.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 5px;
    color: var(--color-light);
    text-align: center;
    min-height: 380px;
    border-radius: 4px; /* Arrondi léger appliqué à chaque carte individuelle */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* Ombre portée individuelle */
}

/* VOS COULEURS DE FOND EXACTES */
.card-mustard { 
    background-color: #D29500; 
} 
.card-teal { 
    background-color: #2D626A; 
}    
.card-magenta { 
    background-color: #E2355E; 
} 

/* BLOCS DE MÉDIAS (IMAGES DANS LA CARTE) */
.card-media-block {
	/*	width:100px;
    height: 80px;*/
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.card-illustration {
	/*	width:100px;*/
    max-height: 100%;
	max-width: 100%;
    object-fit: contain;
}

/* TYPOGRAPHIES ET CONTENUS TEXTUELS */
.card-content h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.card-subtitle {
    font-size: 14px;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 15px;
}

.card-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
    margin-bottom: 20px;
}

/* BOUTON EN SAVOIR PLUS DYNAMIQUE SURVOL */
.card-action .btn-more {
    display: inline-block;
    color: var(--color-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card-action .btn-more:hover {
    border-color: var(--color-light);
    transform: translateY(-2px);
}

/* RESPONSIVE MOBILE & TABLETTE */
@media (max-width: 992px) {
    .features-cards-section {
        margin-top: 20px; /* Aligné proprement sous le carrousel sur mobile */
        padding: 0 15px;
    }
    .cards-grid {
        grid-template-columns: 1fr; /* Passage sur une seule colonne */
        gap: 20px; /* Espace vertical entre les cartes sur smartphone */
    }
    .feature-card {
        min-height: auto;
        padding: 5px 5px;
    }
}
