
:root {
    --primary-color: #ec6a2b;
    --accent-color: #e9ecef;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Avertissement */
.warning-box {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Outil Calculateur */
.calculator-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 30px 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.2s;
}
button:hover { background-color: #ec6a2b; }

/* Résultats */
#result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 6px;
    display: none;
    animation: fadeIn 0.5s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.safe { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.unsafe { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.metric-box {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.metric { font-size: 0.9em; }

/* Tableaux et FAQ */
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid #ddd; padding: 10px; text-align: left; }
th { background-color: var(--primary-color); color: white; }
details { margin-bottom: 10px; padding: 10px; background: var(--accent-color); border-radius: 4px; cursor: pointer; }
summary { font-weight: bold; outline: none; }