/**
 * Calculus System - Custom Styles
 * Fichier CSS centralisé pour tous les styles personnalisés
 */

/* Import des composants réutilisables */
@import url('components.css');

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === UTILITIES === */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* === MEGA MENU === */
.mega-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mega-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #135bec;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f4bc4;
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1a2332;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4c669a;
}

/* === FORMS === */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #135bec;
    box-shadow: 0 0 0 3px rgba(19, 91, 236, 0.1);
}

/* === BUTTONS === */
button:focus {
    outline: none;
}

.btn-primary {
    background-color: #135bec;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f4bc4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 91, 236, 0.3);
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.dark .card {
    background: #1a2332;
}

/* === HERO SECTIONS === */
.hero-gradient {
    background: linear-gradient(135deg, #002c6d 0%, #135bec 100%);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mega-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
}

/* === PRINT STYLES === */
@media print {
    .no-print {
        display: none !important;
    }
}
