/* Custom Styles for Monsieur Génie */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #1A4FFF;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background-color: #1A4FFF;
    color: white;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #1A4FFF;
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable transitions for animations */
.no-transition {
    transition: none !important;
}

/* Custom link styles */
a {
    color: #1A4FFF;
    text-decoration: none;
}

a:hover {
    color: #0F3ACC;
}

/* Custom input focus */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #1A4FFF;
    box-shadow: 0 0 0 3px rgba(26, 79, 255, 0.1);
}

/* Placeholder styles */
::placeholder {
    color: #C9CED8;
    opacity: 1;
}

/* Loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Slide up animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Bounce animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #1A4FFF, #4F7FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow utilities */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .sm\:hidden {
        display: none;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .md\:hidden {
        display: none;
    }
}

@media (min-width: 1025px) {
    .lg\:hidden {
        display: none;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    .no-print {
        display: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-navy: #0A0A23;
        --color-royal-blue: #4F7FFF;
        --color-white: #1a1a2e;
        --color-gray: #6b7280;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
