
/* Design unique pour le site ToolLogic - Palette de couleurs moderne */

/* Variables CSS pour une cohérence des couleurs */
:root {
    /* Couleurs principales - Teal/Cyan moderne */
    --primary-color: #00897B;
    --primary-light: #4DB6AC;
    --primary-dark: #00695C;

    /* Couleurs secondaires - Violet/Indigo */
    --secondary-color: #5C6BC0;
    --secondary-light: #9FA8DA;
    --secondary-dark: #3949AB;

    /* Couleurs d'accent - Rose/Coral */
    --accent-color: #FF6B6B;
    --accent-light: #FF8E8E;
    --accent-dark: #D94545;

    /* Couleurs neutres */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Couleurs de succès, avertissement, erreur */
    --success-color: #4CAF50;
    --warning-color: #FF9800;
    --error-color: #F44336;

    /* Couleurs de fond */
    --bg-light: #FFFFFF;
    --bg-dark: #1E1E1E;

    /* Bordures */
    --border-radius: 8px;
    --border-color: #E0E0E0;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Styles globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

/* En-tête de page */
.index-header {
    font-weight: 700;
    color: var(--primary-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.index-subheader {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Boutons personnalisés */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border: none;
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Cartes d'outils */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Catégories d'outils - Design moderne */
[data-tool-section] {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

[data-tool-section] .card-body {
    padding: 1.5rem;
    font-weight: 600;
}

/* Cartes d'outils individuelles */
[data-tool-id] {
    transition: all 0.3s ease;
}

[data-tool-id]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

[data-tool-id] .card {
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
}

/* Icônes d'outils */
[data-tool-id] .bg-primary-100 {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)) !important;
    border-radius: var(--border-radius);
    padding: 1rem !important;
}

[data-tool-id] .text-primary-600 {
    color: white !important;
}

/* Navigation */
.app-navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-md);
}

.app-sidebar {
    background: linear-gradient(180deg, var(--gray-50), white);
    border-right: 1px solid var(--border-color);
}

.app-sidebar-links > li > a:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border-radius: var(--border-radius);
}

.app-sidebar-links > li.active > a {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.app-footer {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
    color: white;
    padding: 2rem 0;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Formulaires */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 137, 123, 0.25);
}

/* Badges */
.badge {
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.altum-animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Mode sombre */
[data-theme-style="dark"] body {
    background-color: var(--bg-dark);
    color: var(--gray-100);
}

[data-theme-style="dark"] .card {
    background-color: var(--gray-800);
    color: var(--gray-100);
}

[data-theme-style="dark"] .app-sidebar {
    background: linear-gradient(180deg, var(--gray-800), var(--gray-900));
    border-right: 1px solid var(--gray-700);
}

[data-theme-style="dark"] .form-control {
    background-color: var(--gray-700);
    border-color: var(--gray-600);
    color: var(--gray-100);
}

/* Couleurs des catégories d'outils */
[data-tool-section]:nth-child(3n+1) .card-body {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

[data-tool-section]:nth-child(3n+2) .card-body {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
}

[data-tool-section]:nth-child(3n+3) .card-body {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
}

/* Responsive */
@media (max-width: 768px) {
    .index-header {
        font-size: 2rem;
    }

    .index-subheader {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }
}

/* Amélioration de l'accessibilité */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* Effet de survol sur les liens */
a:hover {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Amélioration des alertes */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
}

.alert-warning {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.alert-danger {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
}

.alert-info {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

/* Pagination */
.page-link {
    border-radius: var(--border-radius);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin: 0 0.25rem;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Grille de catégories en haut de page */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-card {
    border-radius: var(--border-radius);
    padding: 2rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
    opacity: 1;
}

.category-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.category-description {
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    line-height: 1.5;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.category-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    text-decoration: none;
    color: white;
}

/* Section de catégorie */
.category-section {
    scroll-margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        font-size: 2.5rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .category-description {
        font-size: 0.875rem;
    }
}
