/* Custom CSS for Gama Studio Landing Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Réduction à 89% pour meilleure lisibilité */
    font-size: 89%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    /* Réduction globale à 89% */
    zoom: 0.89;
    -moz-transform: scale(0.89);
    -moz-transform-origin: 0 0;
}

/* Smooth Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hero Section */
.hero-section {
    position: relative;
}

/* Form Animations */
.form-group input:focus,
.form-group select:focus {
    transform: translateY(-2px);
}

/* Age Validation Error State */
input.border-red-500 {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

input.border-red-500:focus {
    ring-color: #ef4444 !important;
    border-color: #ef4444 !important;
}

/* Button Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

button[type="submit"]:hover {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.text-transparent {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #db2777);
}

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

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 2rem;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid #9333ea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .hero-section {
        background: white !important;
    }

    footer {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gradient-to-r {
        background: #9333ea !important;
    }
}

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