/* 
 * Comptant Illimité - Production CSS 2026
 * Mobile-First Tailwind CSS Build
 * Generated: January 2026
 */

/* Tailwind Base */
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* Brand Colors */
:root {
    --brand-grey: #333333;
    --brand-red: #d90429;
    --brand-dark: #1b1b1b;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* Remove text decoration from all links */
a {
    text-decoration: none;
}

/* Sticky Header */
.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Mobile-First Responsive Classes */
/* Everything below is mobile-first (no prefix = mobile) */

/* Utility Classes */
.no-underline {
    text-decoration: none !important;
}

.notranslate {
    -webkit-transform: none;
    transform: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d90429;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b00323;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid #d90429;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Animation Utilities */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* Line Clamp Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transition Utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Brand Color Classes */
.bg-brand-grey {
    background-color: #333333;
}

.bg-brand-red {
    background-color: #d90429;
}

.bg-brand-dark {
    background-color: #1b1b1b;
}

.text-brand-grey {
    color: #333333;
}

.text-brand-red {
    color: #d90429;
}

.text-brand-dark {
    color: #1b1b1b;
}

.border-brand-red {
    border-color: #d90429;
}

.border-brand-grey {
    border-color: #333333;
}

.hover\:bg-brand-red:hover {
    background-color: #d90429;
}

.hover\:text-brand-red:hover {
    color: #d90429;
}

.hover\:text-brand-dark:hover {
    color: #1b1b1b;
}

.hover\:border-brand-red:hover {
    border-color: #d90429;
}

.focus\:ring-brand-red:focus {
    --tw-ring-color: #d90429;
}

/* Responsive Breakpoints */
/* sm: 640px */
/* md: 768px */
/* lg: 1024px */
/* xl: 1280px */
/* 2xl: 1536px */

@media (min-width: 1024px) {
    .lg\:block {
        display: block;
    }
    
    .lg\:hidden {
        display: none;
    }
    
    .lg\:flex {
        display: flex;
    }
}

/* Mobile Menu Drawer Animations */
.translate-x-full {
    transform: translateX(100%);
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* Shadow Utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Optimized for Performance */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Search Results Specific Styles */
#desktop-search-results,
#mobile-search-results {
    scrollbar-width: thin;
    scrollbar-color: #d90429 #f1f1f1;
}

/* Mobile Drawer Overlay */
#mobile-menu-overlay {
    transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-drawer {
    transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
}

/* Hover State for Search Results */
.search-result-item:hover {
    background-color: #fef2f2;
    border-left: 4px solid #d90429;
    padding-left: calc(0.75rem - 4px);
}

/* Keyboard Navigation */
.keyboard-selected {
    background-color: #fef2f2;
    border-left: 4px solid #d90429;
    padding-left: calc(0.75rem - 4px);
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
