/**
 * Styles pour le bloc Features avec onglets - Version violet GRIM + Font Awesome
 * Utilise la couleur violette du thème et les icônes Font Awesome
 * 
 * @package GrimTheme
 */


/* Force l'état actif sur le premier onglet - VIOLET GRIM */
.features-tabs-block [role="tab"].active,
.features-tabs-block [role="tab"][aria-selected="true"] {
    background-color: white !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    border-color: transparent !important;
}

/* Titre de l'onglet actif en violet GRIM */
.features-tabs-block [role="tab"].active .text-lg,
.features-tabs-block [role="tab"][aria-selected="true"] .text-lg {
    color: #6646ff !important; /* 🎨 Violet GRIM principal */
}

/* Icônes Font Awesome actives en violet GRIM */
.features-tabs-block [role="tab"].active i,
.features-tabs-block [role="tab"][aria-selected="true"] i {
    color: #6646ff !important; /* 🎨 Violet GRIM principal */
}

/* Couleurs par défaut pour les onglets inactifs */
.features-tabs-block [role="tab"]:not(.active):not([aria-selected="true"]) {
    background-color: transparent;
    color: #374151; /* text-gray-700 */
}

.features-tabs-block [role="tab"]:not(.active):not([aria-selected="true"]):hover {
    background-color: #f3f4f6 !important; /* hover:bg-gray-200 */
}

/* 🎨 BONUS : Effet hover subtil avec violet GRIM */
.features-tabs-block [role="tab"]:not(.active):hover .text-lg {
    color: #9f75ff; /* 🎨 Violet GRIM plus clair (grim-violet-400) */
    transition: color 0.2s ease-in-out;
}

.features-tabs-block [role="tab"]:not(.active):hover i {
    color: #9f75ff; /* 🎨 Violet GRIM plus clair pour les icônes au hover */
    transition: color 0.2s ease-in-out;
}

/* Style des icônes Font Awesome */
.features-tabs-block i {
    line-height: 1;
    display: inline-block;
    transition: color 0.2s ease-in-out;
}

/* Transitions pour un effet fluide */
.features-tabs-block [role="tab"] {
    transition: all 0.2s ease-in-out;
}

/* 🎨 Styles du bouton CTA violet GRIM */
.features-tabs-block .bg-grim {
    background-color: #6646ff;
}

.features-tabs-block .hover\:bg-grim-violet-600:hover {
    background-color: #5b2cf6;
}

.features-tabs-block .focus\:ring-grim:focus {
    --tw-ring-color: #6646ff;
}

/* Animation douce pour le bouton */
.features-tabs-block a[class*="bg-grim"] {
    background: linear-gradient(135deg, #6646ff 0%, #5b2cf6 100%);
    transition: all 0.2s ease-in-out;
}

.features-tabs-block a[class*="bg-grim"]:hover {
    background: linear-gradient(135deg, #5b2cf6 0%, #4c1d95 100%);
    transform: translateY(-2px);
}

/* Style de l'icône flèche dans le bouton */
.features-tabs-block a[class*="bg-grim"] svg {
    transition: transform 0.2s ease-in-out;
}

.features-tabs-block a[class*="bg-grim"]:hover svg {
    transform: translateX(2px);
}

/* Mode sombre avec violet GRIM */
@media (prefers-color-scheme: dark) {
    .features-tabs-block [role="tab"].active,
    .features-tabs-block [role="tab"][aria-selected="true"] {
        background-color: #404040 !important;
    }
    
    .features-tabs-block [role="tab"].active .text-lg,
    .features-tabs-block [role="tab"][aria-selected="true"] .text-lg {
        color: #bea6ff !important; /* 🎨 Violet GRIM plus clair pour le mode sombre */
    }
    
    .features-tabs-block [role="tab"].active i,
    .features-tabs-block [role="tab"][aria-selected="true"] i {
        color: #bea6ff !important; /* 🎨 Violet GRIM plus clair pour le mode sombre */
    }
    
    /* Bouton en mode sombre */
    .features-tabs-block a[class*="bg-grim"] {
        background: linear-gradient(135deg, #bea6ff 0%, #9f75ff 100%);
        color: #000 !important;
    }
    
    .features-tabs-block a[class*="bg-grim"]:hover {
        background: linear-gradient(135deg, #9f75ff 0%, #6646ff 100%);
        color: #fff !important;
    }
}