:root {
    --primary-color: #4a6bff;
    --secondary-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
}

body {
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Classes communes pour les cartes et boutons */
.card-custom,
.tool-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: white;
}

.card-custom:hover,
.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tool-card-body,
.card-body {
    padding: 1.25rem;
    text-align: center;
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-custom {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 500;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-custom:hover {
    background-color: #3a5bef;
    color: white;
}

/* Styles spécifiques aux images des articles */
.card-img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 10px;
}

.card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.back-btn {
    margin-top: 20px;
}