/* ============================================================================
   SYSTÈME DE NOTATION INTELLIGENT - LANDING PAGE CSS
   Version: 2.1 - Décembre 2025
   Design Professionnel, Responsive & Attractif
   ============================================================================ */

/* ============================================================================
   VARIABLES CSS - PALETTE DE COULEURS MODERNE
   ============================================================================ */
:root {
    /* Couleurs Primaires */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    
    /* Couleurs Secondaires */
    --success: #10b981;
    --success-dark: #059669;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    
    /* Nuances de Gris */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Ombres */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Bordures */
    --radius-sm: 6px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    overflow-x: hidden;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-icon i {
    font-size: 64px;
    color: white;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   BOUTONS
   ============================================================================ */
.btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn i {
    font-size: 20px;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.btn-cta {
    background: white;
    color: var(--primary-dark);
    padding: 20px 48px;
    font-size: 20px;
    font-weight: 700;
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   SECTIONS
   ============================================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 20px;
}

section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--gray-900);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--gray-500);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   FEATURES SECTION
   ============================================================================ */
.features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--gray-50);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: var(--primary);
    background: white;
}

.feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.feature-card > p {
    color: var(--gray-500);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: var(--gray-600);
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.feature-list li i {
    color: var(--success);
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================================================
   ONLINE EXAMS SECTION
   ============================================================================ */
.online-exams {
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0e7ff 100%);
}

.exams-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.exams-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.exam-feature-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.exam-feature-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.exam-feature-item h3 {
    font-size: 18px;
    color: var(--gray-900);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.exam-feature-item h3 i {
    color: var(--primary);
    font-size: 20px;
}

.exam-feature-item p {
    color: var(--gray-500);
    font-size: 15px;
    margin: 0;
}

.exams-visual {
    background: white;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.mock-browser {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.browser-header {
    background: var(--gray-100);
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 2px solid var(--gray-200);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: var(--danger); }
.dot-yellow { background: var(--warning); }
.dot-green { background: var(--success); }

.browser-content {
    padding: 24px;
    background: white;
}

.mock-exam-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.mock-exam-header h5 {
    font-size: 18px;
    margin-bottom: 8px;
}

.mock-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.mock-question {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    margin-bottom: 12px;
}

.mock-question h6 {
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 14px;
}

.mock-textarea {
    width: 100%;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 13px;
    color: var(--gray-500);
    font-family: monospace;
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */
.stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    padding: 24px;
}

.stat-value {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.stat-value i {
    font-size: 48px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 500;
}

/* ============================================================================
   SECURITY SECTION
   ============================================================================ */
.security {
    background: white;
    color: var(--gray-900);
}

.security h2 {
    color: var(--gray-900);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.security-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.security-card:hover {
    transform: translateY(-6px);
    background: white;
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.security-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.security-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--gray-900);
    font-weight: 600;
}

.security-card p {
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h3 i {
    color: var(--primary);
}

.footer-section p,
.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    line-height: 2.2;
    display: block;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.social-link i {
    font-size: 20px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1024px) {
    .exams-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    section h2 {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .exams-showcase {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-value {
        font-size: 40px;
    }
    
    .stat-value i {
        font-size: 36px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .feature-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    section h2 {
        font-size: 28px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        width: 64px;
        height: 64px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    .security-card {
        padding: 24px;
    }
    
    .security-card i {
        font-size: 36px;
    }
}

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

.feature-card,
.exam-feature-item,
.security-card,
.stat-item {
    animation: fadeIn 0.6s ease-out backwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }