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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #F8F8F8;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00B894;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #333;
}

/* Main */
.main {
    padding-bottom: 2rem;
}

/* Grid du simulateur */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Section paramètres */
.parameters-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.parameters-section h2 {
    color: #00B894;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.parameter-group {
    margin-bottom: 2rem;
}

.parameter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Sliders */
.slider-container {
    position: relative;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00B894;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #00A085;
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00B894;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.3);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #00B894;
}

.apport-percentage {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Section résultats */
.results-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-section h2 {
    color: #00B894;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.result-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #e5e7eb;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-card.primary {
    background: linear-gradient(135deg, #00B894, #00A085);
    color: white;
    border-left-color: #00A085;
}

.result-card.warning {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.result-card.success {
    background: #d1fae5;
    border-left-color: #10b981;
}

.result-card.error {
    background: #fee2e2;
    border-left-color: #ef4444;
}

.result-icon {
    font-size: 2rem;
    margin-right: 1rem;
}

.result-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.result-card.primary .result-content h3 {
    color: rgba(255, 255, 255, 0.9);
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.result-status {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Section éducative */
.education-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.education-section h2 {
    color: #00B894;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Accordéon */
.accordion-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-header.active {
    background: #00B894;
    color: white;
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
    padding: 1.5rem;
}

.accordion-content h4 {
    color: #00B894;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.1rem;
}

.accordion-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

.formula {
    background: #E8F8F5;
    border: 1px solid #00B894;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

/* Footer */
.footer {
    background: #FFFFFF;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    text-align: center;
    color: #333;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .parameters-section,
    .results-section,
    .education-section {
        padding: 1.5rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-icon {
        font-size: 1.5rem;
    }
    
    .result-value {
        font-size: 1.2rem;
    }
    
    .accordion-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-content.active {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .parameters-section,
    .results-section,
    .education-section {
        padding: 1rem;
    }
}

