/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --accent-color: #00d4ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --border-color: #e0e6ed;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

/* Header et Navigation */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
}

.white {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.bg-dark {
    background: var(--dark-color);
    color: white;
}

.bg-light {
    background: var(--light-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
    color: white;
    text-align: center;
    padding: 8rem 0 6rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.15)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.metric-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-10px);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

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

/* Formula */
.formula-container {
    background: var(--light-color);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid var(--border-color);
}

.formula {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.formula code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Parameters Grid */
.parameters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.parameter-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.parameter-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Calculator */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-inputs,
.calculator-output {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calculator-inputs h3,
.calculator-output h3 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.input-grid {
    display: grid;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.input-group input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.value-display {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Presets */
.presets {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.presets h4 {
    color: white;
    margin-bottom: 1rem;
}

.preset-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Results */
.result-display {
    text-align: center;
    margin-bottom: 2rem;
}

.score-circle {
    background: var(--gradient-primary);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.4);
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.score-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-results {
    display: grid;
    gap: 1rem;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.analysis-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.analysis-value {
    color: var(--accent-color);
    font-weight: 600;
}

/* Validation */
.validation-container {
    max-width: 1000px;
    margin: 0 auto;
}

.case-study {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.case-study h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.method-column h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.method-params {
    display: grid;
    gap: 0.5rem;
}

.param {
    background: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

.score {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-top: 1rem;
}

.criteria-list {
    display: grid;
    gap: 0.8rem;
}

.criteria {
    padding: 0.8rem;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #28a745;
}

.recommendation {
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    margin-top: 1rem;
}

.convergence-result {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.convergence-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.convergence-percent {
    font-size: 3rem;
    font-weight: 800;
}

.convergence-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Author */
.author-container {
    max-width: 800px;
    margin: 0 auto;
}

.author-info {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.author-info h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.author-title {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.author-quote {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

.author-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
}

.framework-evolution {
    text-align: left;
    margin-top: 3rem;
}

.framework-evolution h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: center;
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .formula code {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}