body {
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Page de connexion */
body:has(.login-container) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 350px;
}

/* Page de réinitialisation */
body:has(.reset-container) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.reset-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 400px;
    max-width: 100%;
}

.logo {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background: #5568d3;
}

.forgot-password, .back-link {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a, .back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover, .back-link a:hover {
    text-decoration: underline;
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    text-align: center;
}

.error {
    background: #ffebee;
    color: #c62828;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.question-label {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

#questionsSection, #resetSection {
    display: none;
}

/* Page d'accueil */
body:has(.header) {
    background: #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logout {
    background: white;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.logout:hover {
    background: #f0f0f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.welcome {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.welcome h1 {
    margin: 0 0 10px 0;
    color: #333;
}

.section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section h2 {
    margin-top: 0;
    color: #667eea;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    text-align: left;
}

.message-item, .mission-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
}

.message-item strong, .mission-item strong {
    color: #333;
}

.message-date, .mission-date {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}