/* Styles généraux de l'application */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.main-content {
    min-height: 100vh;
    background: var(--bg-primary);
    padding: 20px;
    transition: margin-left 0.3s ease, background-color 0.3s;
}

.main-content-with-sidebar {
    padding: 20px;
    transition: margin-left 0.3s ease;
    margin-left: 0;
}

/* Sur desktop, marge seulement quand sidebar est ouverte */
@media (min-width: 993px) {
    .main-content-with-sidebar.sidebar-open {
        margin-left: 300px;
    }
}

/* Sur mobile, pas de marge */
@media (max-width: 992px) {
    .main-content-with-sidebar {
        margin-left: 0;
    }

    .main-content.sidebar-open {
        margin-left: 0;
    }
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Boutons */
.btn,
.action-btn,
button {
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover,
.action-btn:hover,
button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:active,
.action-btn:active,
button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .main-content-with-sidebar {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }
}