.features-section {
    padding: var(--section-padding) 0;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

/* Décorations de fond abstraites - Version plus visible */
.features-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: linear-gradient(120deg,
        rgba(var(--color-primary-rgb), 0.08) 0%,
        rgba(var(--color-accent-rgb), 0.12) 50%,
        transparent 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 0;
    animation: drift 25s ease-in-out infinite;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: conic-gradient(from 45deg at 30% 70%,
        rgba(var(--color-accent-rgb), 0.06) 0deg,
        rgba(var(--color-primary-rgb), 0.1) 120deg,
        transparent 240deg,
        rgba(var(--color-accent-rgb), 0.08) 360deg);
    border-radius: 50%;
    z-index: 0;
    animation: slowSpin 40s linear infinite;
}

/* Ajout d'un motif géométrique moderne au centre */
.features-grid-hart::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg,
        rgba(var(--color-accent-rgb), 0.08) 0%,
        transparent 50%,
        rgba(var(--color-primary-rgb), 0.06) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    z-index: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
    50% {
        transform: translateX(30px) translateY(-20px) rotate(90deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }
}

@keyframes slowSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.features-section .section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg); /* Réduction de l'espacement */
    position: relative;
    z-index: 1;
}

/* Grille principale avec z-index pour être au-dessus des décorations */
.features-grid-hart {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: var(--spacing-lg, 48px); /* Espacement augmenté pour plus d'air */
    row-gap: var(--spacing-md, 32px); /* Espacement vertical encore plus réduit */
    max-width: 1200px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

/* Style des cartes - Design sobre et élégant avec texte en avant-plan
-------------------------------------------------- */
.feature-item {
    position: relative;
    padding: var(--spacing-md, 32px) var(--spacing-sm, 24px);
    background: #ffffff;
    border-radius: 12px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Effet de survol dynamique et raffiné */
.feature-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.2);
    background: linear-gradient(135deg, #ffffff 0%, rgba(var(--color-primary-rgb), 0.02) 100%);
}

/* Suppression de l'indicateur de qualité pour plus de sobriété */

/* Suppression des séparateurs pour un look plus épuré */


/* Icônes agrandies en arrière-plan pour occuper plus de la moitié de l'espace
-------------------------------------------------- */
.feature-bg-icon {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
    font-size: 12rem; /* Encore plus agrandi de 8rem à 12rem pour un impact visuel maximum */
    color: var(--color-primary);
    opacity: 0.10; /* Légèrement réduit pour compenser la taille augmentée */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

/* Effet dynamique au survol de l'icône avec rotation et échelle */
.feature-item:hover .feature-bg-icon {
    opacity: 0.15;
    transform: translate(50%, -50%) scale(1.1) rotate(5deg);
    color: var(--color-accent);
}

/* Typographie mise en avant pour les cartes
-------------------------------------------------- */
.feature-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-secondary, 'Times New Roman', serif);
    font-size: 1.4rem;
    color: var(--color-primary);
    margin: 0 0 var(--spacing-xs, 16px) 0;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    transition: color 0.3s ease;
    max-width: 280px;
}

.feature-description {
    position: relative;
    z-index: 2;
    font-family: var(--font-primary, 'Arial', sans-serif);
    font-size: 0.95rem;
    color: var(--color-text, #555);
    margin: 0;
    line-height: 1.6;
    text-align: left;
    transition: color 0.3s ease;
}

/* Effet sobre sur le contenu textuel */
.feature-item:hover .feature-title {
    color: var(--color-accent);
}

.feature-item:hover .feature-description {
    color: var(--color-primary);
}


/* Style du CTA (inchangé)
-------------------------------------------------- */
.feature-cta { display: flex; flex-direction: column; justify-content: center; }
.feature-cta .cta-link { text-decoration: none; }
.feature-cta .cta-title { display: block; font-family: var(--font-secondary, 'Times New Roman', serif); font-size: 1.5rem; color: var(--color-primary); margin-bottom: var(--spacing-xs, 8px); transition: color 0.3s ease; }
.feature-cta .cta-subtitle { display: block; font-family: var(--font-primary, 'Arial', sans-serif); font-size: 1rem; color: var(--color-accent, #cda26b); transition: color 0.3s ease; }
.feature-cta .cta-link:hover .cta-title { color: var(--color-accent); }
.feature-cta .cta-link:hover .cta-subtitle { color: var(--color-primary); }


/* Responsive - Adapté pour la nouvelle structure avec texte en avant
-------------------------------------------------- */
@media (max-width: 992px) {
    .features-grid-hart {
        grid-template-columns: repeat(2, 1fr);
        column-gap: var(--spacing-md, 32px);
        row-gap: var(--spacing-sm, 24px);
    }

    .feature-item {
        min-height: 160px;
        padding: var(--spacing-sm, 24px) var(--spacing-xs, 20px);
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .feature-bg-icon {
        font-size: 10rem; /* Taille augmentée mais adaptée pour tablette */
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .feature-item:hover .feature-bg-icon {
        transform: translate(50%, -50%) scale(1.08) rotate(3deg);
    }
}

@media (max-width: 768px) {
    .features-grid-hart {
        grid-template-columns: 1fr;
        row-gap: var(--spacing-sm, 20px);
        column-gap: 0;
    }

    .feature-item {
        padding: var(--spacing-sm, 24px);
        text-align: left;
        min-height: 140px;
    }

    .feature-title {
        font-size: 1.2rem;
        text-align: left;
    }

    .feature-description {
        font-size: 0.9rem;
        text-align: left;
    }

    .feature-bg-icon {
        font-size: 8rem; /* Taille adaptée pour mobile avec impact visuel */
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    .feature-item:hover .feature-bg-icon {
        transform: translate(50%, -50%) scale(1.06) rotate(2deg);
    }
}

@media (max-width: 576px) {
    .features-grid-hart {
        row-gap: var(--spacing-xs, 16px);
    }

    .feature-item {
        padding: var(--spacing-xs, 20px);
        min-height: 120px;
    }

    .feature-title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-xs, 12px);
    }

    .feature-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .feature-bg-icon {
        font-size: 6rem; /* Taille adaptée pour très petit écran */
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 0.05; /* Encore plus subtile sur petit écran */
    }

    .feature-item:hover .feature-bg-icon {
        opacity: 0.12;
        transform: translate(50%, -50%) scale(1.05) rotate(1deg);
    }
}