/* CSS Professionnel - Plateforme de Validation VX GAME */

/* Import des fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS - Palette Professionnelle Vert/Bleu/Rouge */
:root {
    /* Couleurs principales - tons professionnels */
    --primary-blue: #2563EB;
    --primary-blue-dark: #1D4ED8;
    --primary-blue-light: #3B82F6;
    --primary-blue-50: #EFF6FF;
    --primary-blue-100: #DBEAFE;
    --primary-blue-200: #BFDBFE;
    
    --secondary-green: #059669;
    --secondary-green-dark: #047857;
    --secondary-green-light: #10B981;
    --secondary-green-50: #ECFDF5;
    --secondary-green-100: #D1FAE5;
    --secondary-green-200: #A7F3D0;
    
    --accent-red: #DC2626;
    --accent-red-dark: #B91C1C;
    --accent-red-light: #EF4444;
    --accent-red-50: #FEF2F2;
    --accent-red-100: #FEE2E2;
    --accent-red-200: #FECACA;
    
    /* Couleurs neutres */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Couleurs sémantiques */
    --success: var(--secondary-green);
    --warning: #F59E0B;
    --error: var(--accent-red);
    --info: var(--primary-blue);
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* Reset et configuration de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Image de fond pour la section félicitations */
.hero-with-bg {
    background-image: 
        linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%),
        url('euro.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Effet glass pour la carte d'informations */
.glass-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Container responsive */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Header professionnel */
header {
    background: white;
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

header h1 {
    color: var(--gray-800);
    font-weight: 700;
}

header p {
    color: var(--gray-500);
}

header nav a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

header nav a:hover {
    color: var(--primary-blue);
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width var(--transition-normal);
}

header nav a:hover::after {
    width: 100%;
}

/* Indicateurs d'étapes */
.step-indicator {
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

#step-indicator-1.bg-blue-600,
#step-indicator-2.bg-blue-600,
#step-indicator-3.bg-blue-600,
#step-indicator-4.bg-blue-600,
#step-indicator-5.bg-blue-600 {
    background-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px var(--primary-blue-100);
    transform: scale(1.2);
}

#step-indicator-1.bg-green-500,
#step-indicator-2.bg-green-500,
#step-indicator-3.bg-green-500,
#step-indicator-4.bg-green-500,
#step-indicator-5.bg-green-500 {
    background-color: var(--secondary-green) !important;
    box-shadow: 0 0 0 3px var(--secondary-green-100);
}

#step-text {
    color: var(--gray-600);
    font-weight: 600;
}

/* Gestion des étapes */
.step-container {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.step-container.active {
    display: block;
    opacity: 1;
}

/* Formulaires professionnels */
input, textarea, select {
    transition: all var(--transition-fast);
    font-size: 16px; /* Prevent zoom on mobile */
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-100);
    background-color: white;
}

input.border-red-500 {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 0 3px var(--accent-red-100) !important;
}

/* Messages d'erreur */
.error-message {
    color: var(--accent-red);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Boutons professionnels */
button {
    position: relative;
    transition: all var(--transition-fast);
    font-weight: 600;
    border: none;
    cursor: pointer;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Bouton principal bleu */
.bg-blue-600 {
    background-color: var(--primary-blue);
}

.bg-blue-600:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.bg-blue-600:active {
    transform: translateY(0);
}

/* Bouton vert */
.bg-green-600 {
    background-color: var(--secondary-green);
}

.bg-green-600:hover {
    background-color: var(--secondary-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.bg-green-600:active {
    transform: translateY(0);
}

/* Cartes de gains professionnelles */
.gain-card {
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gain-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gain-card.selected {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1), 0 10px 10px -5px rgba(37, 99, 235, 0.04);
    border-color: var(--primary-blue) !important;
}

.gain-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: var(--secondary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

/* Couleurs de texte sémantiques */
.text-green-600 {
    color: var(--secondary-green) !important;
}

.text-blue-600 {
    color: var(--primary-blue) !important;
}

.text-red-500, .text-red-600 {
    color: var(--accent-red) !important;
}

/* Backgrounds colorés */
.bg-green-50 {
    background-color: var(--secondary-green-50) !important;
}

.bg-green-100 {
    background-color: var(--secondary-green-100) !important;
}

.bg-blue-50 {
    background-color: var(--primary-blue-50) !important;
}

.bg-blue-100 {
    background-color: var(--primary-blue-100) !important;
}

.bg-red-50 {
    background-color: var(--accent-red-50) !important;
}

.bg-red-100 {
    background-color: var(--accent-red-100) !important;
}

/* Bordures colorées */
.border-blue-200 {
    border-color: var(--primary-blue-200) !important;
}

.border-green-200 {
    border-color: var(--secondary-green-200) !important;
}

.border-red-200 {
    border-color: var(--accent-red-200) !important;
}

/* Couleurs de texte pour les messages */
.text-blue-700, .text-blue-800 {
    color: var(--primary-blue-dark) !important;
}

.text-green-700, .text-green-800 {
    color: var(--secondary-green-dark) !important;
}

/* Animations subtiles et professionnelles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    header nav {
        display: none;
    }
    
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .text-4xl.md\\:text-5xl {
        font-size: 2.25rem;
    }
    
    .text-xl.md\\:text-2xl {
        font-size: 1.125rem;
    }
}

@media (min-width: 768px) {
    .grid-cols-1.md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .grid-cols-1.md\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* États de focus pour l'accessibilité */
*:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Loading states */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Hover effects pour les cartes */
.hover\\:shadow-xl:hover {
    box-shadow: var(--shadow-xl);
}

/* Utility classes supplémentaires */
.transition-colors {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.transition-all {
    transition: all var(--transition-fast);
}

/* Footer professionnel */
footer {
    background-color: var(--gray-900);
    color: white;
}

footer h3, footer h4 {
    color: white;
}

footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: white;
}

/* Scrollbars personnalisées */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1F2937;
        --gray-100: #374151;
        --gray-800: #F3F4F6;
        --gray-900: #F9FAFB;
    }
}

/* Print styles */
@media print {
    header, footer {
        display: none !important;
    }
    
    .step-container {
        display: block !important;
        opacity: 1 !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* Animations réduites pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .step-container {
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    button {
        border: 2px solid currentColor !important;
    }
    
    .gain-card {
        border: 2px solid currentColor !important;
    }
}

/* Classes utilitaires pour les espacements */
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

/* Classes pour les gaps de grille */
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Classes pour les border radius */
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

/* Classes pour les ombres */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Performance optimizations */
.gain-card,
button,
input {
    will-change: transform;
    backface-visibility: hidden;
}

/* Classes pour masquer/afficher */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}