/* ============================================
STI PREVENTION CARDS - PUBLIC STYLES
============================================ */

.sti-tools-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sti-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.sti-tool-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(29, 43, 104, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.sti-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ea1b75 0%, #ff5001 100%);
}

.sti-tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(29, 43, 104, 0.18);
}

.sti-tool-icon-wrapper {
    padding: 30px 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(29, 43, 104, 0.03) 0%, rgba(234, 27, 117, 0.03) 100%);
}

.sti-tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1d2b68 0%, #2a3f8f 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.sti-tool-card:hover .sti-tool-icon {
    background: linear-gradient(135deg, #ea1b75 0%, #ff5001 100%);
    transform: scale(1.1) rotate(5deg);
}

.sti-tool-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.sti-tool-category {
    display: inline-block;
    background: linear-gradient(135deg, #ea1b75 0%, #ff5001 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sti-tool-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sti-tool-title {
    color: #1d2b68;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sti-tool-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.sti-tool-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.sti-tool-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none !important;
    color: #1d2b68 !important;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.sti-tool-link:hover {
    background: linear-gradient(135deg, #1d2b68 0%, #2a3f8f 100%);
    color: white !important;
    border-color: #1d2b68;
    transform: translateX(5px);
}

.sti-tool-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.sti-tool-link-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

/* Couleurs de catégories alternatives */

/* Thème Chimique (Orange) */
.sti-tool-card[data-category="chimique"]::before,
.sti-tool-card[data-category="chimique"] .sti-tool-category {
    background: linear-gradient(135deg, #ff5001 0%, #ff8c00 100%);
}
.sti-tool-card[data-category="chimique"]:hover .sti-tool-icon {
    background: linear-gradient(135deg, #ff5001 0%, #ff8c00 100%);
}

/* Thème Psycho (Bleu foncé) */
.sti-tool-card[data-category="psycho"]::before,
.sti-tool-card[data-category="psycho"] .sti-tool-category {
    background: linear-gradient(135deg, #1d2b68 0%, #4a5fa5 100%);
}
.sti-tool-card[data-category="psycho"]:hover .sti-tool-icon {
    background: linear-gradient(135deg, #1d2b68 0%, #4a5fa5 100%);
}

/* Thème Physique (Vert) */
.sti-tool-card[data-category="physique"]::before,
.sti-tool-card[data-category="physique"] .sti-tool-category {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%);
}
.sti-tool-card[data-category="physique"]:hover .sti-tool-icon {
    background: linear-gradient(135deg, #28a745 0%, #5cb85c 100%);
}

/* Thème EPI (Jaune) */
.sti-tool-card[data-category="epi"]::before,
.sti-tool-card[data-category="epi"] .sti-tool-category {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}
.sti-tool-card[data-category="epi"]:hover .sti-tool-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

@media (max-width: 768px) {
    .sti-tools-grid {
        grid-template-columns: 1fr;
    }
    .sti-tool-content {
        padding: 20px;
    }
}
