/* Variables globales */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Reset et styles de base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background: var(--light);
}

.glitch {
    position: relative;
    color: white;
    text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

.glitch span:first-child {
    animation: glitch 500ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-0.04em, -0.03em);
    opacity: 0.75;
}

.glitch span:last-child {
    animation: glitch 375ms infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(0.04em, 0.03em);
    opacity: 0.75;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
    }
    14% {
        text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
    }
    15% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.05em 0.025em 0 #fc00ff;
    }
    49% {
        text-shadow: -0.05em -0.025em 0 #00fffc, 0.05em 0.025em 0 #fc00ff;
    }
    50% {
        text-shadow: 0.05em 0.025em 0 #00fffc, -0.05em 0 0 #fc00ff;
    }
    99% {
        text-shadow: 0.05em 0.025em 0 #00fffc, -0.05em 0 0 #fc00ff;
    }
    100% {
        text-shadow: 0.05em 0 0 #00fffc, -0.05em -0.025em 0 #fc00ff;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections générales */
section {
    padding: 5rem 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    background: var(--gradient);
    color: white;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    border: none;
}

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

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

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

.btn-secondary:hover {
    background: var(--gray);
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.feature-description {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-list li i {
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background: var(--gradient);
    color: white;
    padding: 4rem 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-block {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Use Cases Section */
.use-cases-section {
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.case-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.case-card h3 i {
    color: var(--primary);
}

.case-card ul {
    list-style: none;
}

.case-card ul li {
    padding: 0.75rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: var(--secondary);
}

.case-card ul li::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
                      linear-gradient(-45deg, rgba(0,0,0,0.1) 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.1) 75%),
                      linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.1) 75%);
    background-size: 20px 20px;
    opacity: 0.1;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

    .features-grid {
        gap: 2rem;
    }

    .feature-image {
        order: -1;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}
/* Styles spécifiques pour le tableau de leaderboard */

.ranking-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.card-header {
    background: var(--dark);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.header-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.header-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.update-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.btn-export {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-export:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ranking-list {
    padding: 1rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid transparent;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.rank-position {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    border-radius: 0.5rem;
}

.rank-position i {
    font-size: 1.5rem;
}

.rank-1 { color: #fbbf24; } /* Or */
.rank-2 { color: #94a3b8; } /* Argent */
.rank-3 { color: #b45309; } /* Bronze */

.rank-details {
    flex: 1;
    margin: 0 1.5rem;
}

.rank-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    transition: width 1s ease-out;
}

.rank-value {
    text-align: right;
    min-width: 120px;
}

.value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.value-label {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
}

/* Top 3 Styling */
.top-rank {
    background: white;
    border: 1px solid var(--gray);
}

.top-rank.rank-1 {
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.1), transparent);
    border-color: #fbbf24;
}

.top-rank.rank-2 {
    background: linear-gradient(45deg, rgba(148, 163, 184, 0.1), transparent);
    border-color: #94a3b8;
}

.top-rank.rank-3 {
    background: linear-gradient(45deg, rgba(180, 83, 9, 0.1), transparent);
    border-color: #b45309;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rank-details {
        margin: 0;
        width: 100%;
    }

    .rank-value {
        text-align: center;
    }
}
