/* STYLE MODERNE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARTES */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.dashboard-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* TYPOGRAPHIE */
h1 {
    color: #2d3748;
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    color: #718096;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

/* FORMULAIRES */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
}

/* ALERTES */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-success {
    background: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* NAVIGATION */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.user-info {
    color: #718096;
    font-weight: 500;
}

/* SECTIONS */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.welcome-section h1 {
    color: white;
    margin-bottom: 10px;
}

/* GRILLE D'INFORMATIONS */
.info-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.info-item h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 18px;
}

.info-item p {
    color: #718096;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .card, .dashboard-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}


.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* MESSAGE ERREUR CENTRÉ */
.error-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.alert-error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 100%;
}