/* ===== STYLES PRINCIPAUX CALCUL-DIAG ===== */

/* Variables CSS */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-color: #667eea;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f9fafb;
}

/* Utilitaires */
.gradient-bg {
    background: var(--gradient-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animation de base */
.card-hover {
    transition: var(--transition);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== SECTIONS PRINCIPALES ===== */

/* Features Cards */
.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing-card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    text-align: center;
}

.pricing-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.pricing-features {
    text-align: left;
    space-y: 0.75rem;
    margin-bottom: 2rem;
    list-style: none;
}

.pricing-features li {
    margin-bottom: 0.75rem;
}

.buy-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.buy-button:hover {
    background: var(--primary-hover);
}

.trust-indicators {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials */
.testimonial-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* FAQ */
.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

/* ===== ANIMATIONS ===== */

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* ===== RESPONSIVE ===== */

/* Tablettes */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .feature-card {
        padding: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .author-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ===== BOUTONS GLOBAUX ===== */

button {
    cursor: pointer;
    transition: var(--transition);
}

button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Boutons primaires */
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Boutons secondaires */
.btn-secondary {
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ACCESSIBILITÉ ===== */

/* Focus visible pour la navigation au clavier */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Réduction des animations pour les utilisateurs qui les préfèrent */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .gradient-bg {
        background: white !important;
        color: black !important;
    }
    
    .shadow-lg,
    .shadow-xl {
        box-shadow: none !important;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}
