:root {
    --primary-color: #009e60; /* Green */
    --secondary-color: #fcd116; /* Yellow */
    --accent-color: #3a75c4; /* Blue */
    --border-color: #dadce0;
    --text-color: #202124;
    --background-light: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --error-color: #ea4335;
    --border-radius: 8px;
}

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




body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 15px;
}

header h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

header p {
    color: var(--accent-color);
    font-weight: 500;
}

.flag-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.gabon-flag {
    width: 100px;
    height: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flag-green, .flag-yellow, .flag-blue {
    height: 33.33%;
    width: 100%;
}

.flag-green {
    background-color: #009e60; /* Green */
}

.flag-yellow {
    background-color: #fcd116; /* Yellow */
}

.flag-blue {
    background-color: #3a75c4; /* Blue */
}

.calculator {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-left: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.radio-option label {
    margin-bottom: 0;
    cursor: pointer;
}

.btn-calculate {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-weight: 500;
}

.btn-calculate:hover {
    background-color: #00814d;
}

.results {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 2px 10px var(--shadow-color);
    margin-bottom: 30px;
    border-left: 4px solid var(--accent-color);
}

.results h2 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.results-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.results-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    color: #5f6368;
    font-style: italic;
}

.highlight {
    background-color: #f0f8ff;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border-left: 4px solid var(--secondary-color);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

footer {
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    background-color: #f5f5f5;
    border-radius: var(--border-radius);
    padding: 15px;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .calculator, .results {
        padding: 15px;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .btn-calculate {
        padding: 10px 20px;
    }
}

/* Amélioration de la lisibilité des titres et paragraphes */
h1, h2, h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.4;
}

p {
    margin-bottom: 16px;
    line-height: 1.7;
}

section {
    margin-bottom: 50px;
}
