:root {
    /* Light Theme (Default) - surbrillance avec bon contraste */
    --primary: #FFC93C;
    --secondary: #FFB300;
    --tertiary: #FFE082;
    --primary-text: #1a1a1a;
    --secondary-text: #4a5568;
    --background: #f8f9fa;
    --surface: #ffffff;
    --surface-light: #f0f0f0;
    --white: #FFFFFF;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    --gray-light: #f0f0f0;
    --gray-medium: #e0e0e0;
    --gray-dark: #999999;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
    --nav-link-hover: #9a6b0a;
    --cta-hover-bg: #d4a012;
    --focus-ring: #9a6b0a;
}

/* Force light theme on initial load - surbrillance avec bon contraste */
body[data-theme="light"] {
    --primary-text: #1a1a1a !important;
    --secondary-text: #4a5568 !important;
    --background: #f8f9fa !important;
    --surface: #ffffff !important;
    --surface-light: #f0f0f0 !important;
    --border: rgba(0, 0, 0, 0.1) !important;
    --shadow: rgba(0, 0, 0, 0.1) !important;
    --nav-link-hover: #9a6b0a;
    --cta-hover-bg: #d4a012;
    --focus-ring: #9a6b0a;
}

body[data-theme="dark"] {
    --primary-text: #ffffff !important;
    --secondary-text: #a0a0a0 !important;
    --background: #0a0a0a !important;
    --surface: #1a1a1a !important;
    --surface-light: #2a2a2a !important;
    --border: rgba(255, 255, 255, 0.1) !important;
    --shadow: rgba(0, 0, 0, 0.3) !important;
    --nav-link-hover: #ffd54f;
    --cta-hover-bg: #e6b020;
    --focus-ring: #ffd54f;
    --cta-button-color: #ffffff;
}

[data-theme="dark"] {
    /* Dark Theme - surbrillance lisible */
    --primary: #FFC93C;
    --secondary: #FFB300;
    --tertiary: #FFE082;
    --primary-text: #ffffff;
    --secondary-text: #a0a0a0;
    --background: #0a0a0a;
    --surface: #1a1a1a;
    --surface-light: #2a2a2a;
    --nav-link-hover: #ffd54f;
    --cta-hover-bg: #e6b020;
    --focus-ring: #ffd54f;
    --cta-button-color: #ffffff;
    --white: #FFFFFF;
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    --info: #2196F3;
    --gray-light: #1a1a1a;
    --gray-medium: #333333;
    --gray-dark: #666666;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-text: #ffffff;
        --secondary-text: #a0a0a0;
        --background: #0a0a0a;
        --surface: #1a1a1a;
        --surface-light: #2a2a2a;
        --gray-light: #1a1a1a;
        --gray-medium: #333333;
        --gray-dark: #666666;
        --border: rgba(255, 255, 255, 0.1);
        --shadow: rgba(0, 0, 0, 0.3);
        --nav-link-hover: #ffd54f;
        --cta-hover-bg: #e6b020;
        --focus-ring: #ffd54f;
        --cta-button-color: #ffffff;
    }
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-text);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip link - accessibilité clavier */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: black;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Focus visible - contraste adapté au thème */
:focus-visible {
    outline: 2px solid var(--focus-ring, var(--primary));
    outline-offset: 2px;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--focus-ring, var(--primary));
    outline-offset: 2px;
}

/* Animation classes - état initial avant apparition */
.pre-fade {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 1 !important;
}

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

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

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

/* Custom selection */
::selection {
    background-color: var(--primary);
    color: black;
}

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

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-medium);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
}

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

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Comment ça marche - cercles animés (transition douce) */
.step-circle {
    background-color: var(--surface-light);
    border: 2px solid rgba(255, 201, 60, 0.35);
    transition: background-color 1s ease-in-out, border-color 1s ease-in-out, box-shadow 1s ease-in-out;
}
.step-circle .step-circle-num {
    color: var(--primary-text);
    transition: color 1s ease-in-out;
}
.step-circle.step-circle-active {
    background-color: #FFC93C;
    border-color: transparent;
    box-shadow: 0 10px 25px -5px rgba(255, 201, 60, 0.3);
}
.step-circle.step-circle-active .step-circle-num {
    color: #000000;
}

/* FAQ Animation */
.faq-content {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.faq-content.active {
    max-height: 500px;
}

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

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

/* Border glow on hover */
.border-glow {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.border-glow:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 201, 60, 0.2);
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-text {
        font-size: 3rem;
    }
}

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

/* Réduire les animations si l'utilisateur le préfère */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.05);
}

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

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Toast animation */
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}
.animate-toast-in {
    animation: toast-in 0.3s ease-out forwards;
}