/* Custom animations and styles */

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #722F37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8a3a43;
}

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

/* Project card hover effects */
.project-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Navigation link active states */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #722F37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Form enhancements */
input:focus,
textarea:focus {
    outline: none;
    border-color: #722F37 !important;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1) !important;
}

/* Button hover effects */
button,
.btn {
    transition: all 0.3s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Social icon animations */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    filter: brightness(1.2);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero section enhancements */
#accueil {
    background: linear-gradient(135deg, #722F37 0%, rgba(114, 47, 55, 0.9) 100%),
                url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .text-xl {
        font-size: 1.1rem !important;
    }
    
    .text-2xl {
        font-size: 1.3rem !important;
    }
}

/* Container max-width adjustments */
.container {
    max-width: 1200px;
}

/* Custom gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #722F37 0%, #8a3a43 100%);
}

/* Form field enhancements */
.form-field {
    transition: all 0.3s ease;
}

.form-field:focus-within {
    transform: translateY(-2px);
}

/* Typography improvements */
.prose {
    line-height: 1.8;
}

.prose p {
    margin-bottom: 1.5rem;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu:not(.hidden) {
    max-height: 200px;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
*:focus {
    outline: 2px solid #722F37;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-gray-50 {
        background-color: #ffffff !important;
    }
    
    .text-gray-600 {
        color: #000000 !important;
    }
}

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

/* Print styles */
@media print {
    .fixed,
    header,
    footer,
    button,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        color: #000 !important;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

body, html {
    background: #fff !important;
    color: #14213d !important;
}

.bg-black, .bg-gray-900, .bg-wine, .bg-gradient-to-br, .bg-black\/95, .bg-black\/80 {
    background: #fff !important;
    color: #14213d !important;
}

.text-white, .text-gray-300, .text-gray-400, .text-gray-200, .text-wine, .text-wine\/80, .text-black {
    color: #14213d !important;
}

input, textarea, select {
    background: #fff !important;
    color: #14213d !important;
    border-color: #ccc !important;
}

button, .btn {
    background: #14213d !important;
    color: #fff !important;
    border: none;
}

button:hover, .btn:hover {
    background: #1a2950 !important;
    color: #fff !important;
}

a {
    color: #14213d !important;
}

a:hover {
    color: #1a2950 !important;
}

header, footer {
    background: #fff !important;
    color: #14213d !important;
}
