/* Variables - Palette de banque privée (sobre, marine, gris, accents) */
:root {
    --primary-color: #1a3a5c;
    --secondary-color: #636e72;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --accent-green: #27ae60;
    --accent-orange: #e67e22;
    --accent-red: #c0392b;
    --border-color: #dcdde1;
    --sys-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

body {
    font-family: var(--sys-font);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    color: #a4b0be;
    font-size: 14px;
}

/* Cards & Layout */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.3s ease-in-out; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid;
}
.alert-privacy {
    background-color: #e8f4f8;
    border-color: #3498db;
    color: #2980b9;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--sys-font);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover:not(:disabled) { background-color: #122840; }
.btn-secondary { background-color: #ecf0f1; color: var(--text-main); }
.btn-secondary:hover:not(:disabled) { background-color: #bdc3c7; }
.btn-danger { background-color: white; color: var(--accent-red); border: 1px solid var(--accent-red); }
.btn-danger:hover { background-color: #fadbd8; }

.actions.center { text-align: center; }
.actions.split { display: flex; justify-content: space-between; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.hidden { display: none !important; }

/* Progress Bar */
.progress-container { margin-bottom: 20px; }
.progress-bar {
    height: 8px;
    background-color: var(--primary-color);
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.progress-text {
    text-align: right;
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 5px;
    font-weight: bold;
}

/* Form Elements */
.module-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}
.regulatory-context {
    font-size: 13px;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.levels-container { margin-bottom: 25px; }
.level-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.level-option:hover { border-color: #a4b0be; background-color: #fcfcfc; }
.level-option.selected {
    border-color: var(--primary-color);
    background-color: #f0f4f8;
}
.level-num {
    background-color: var(--border-color);
    color: var(--text-main);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}
.level-option.selected .level-num {
    background-color: var(--primary-color);
    color: white;
}
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px;}
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--sys-font);
    resize: vertical;
}

/* Results */
.score-overview {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}
.score-circle span { font-size: 32px; font-weight: bold; line-height: 1; }
.score-circle small { font-size: 14px; opacity: 0.8; }
.chart-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px auto;
}
.roadmap-item {
    border-left: 4px solid var(--accent-red);
    background-color: #fcfcfc;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.roadmap-item h4 { margin-bottom: 5px; color: var(--text-main); }
.roadmap-meta { font-size: 12px; color: var(--secondary-color); margin-bottom: 8px;}
.roadmap-meta span { 
    background: #eee; padding: 2px 6px; border-radius: 4px; margin-right: 8px;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 40px;
}