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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.container, .login-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center; /* Garantit que le logo et le texte sont centrés */
}

.login-container img {
    display: block;
    margin: 0 auto 15px auto; /* Centre l'image et ajoute une marge en bas */
}

.login-container h1 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

nav {
    background: #2c3e50;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background: #34495e;
}

h1 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card .big {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.participant-row {
    display: grid;
    /* On définit 7 colonnes proportionnelles */
    grid-template-columns: 1.2fr 1.2fr 1.5fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

/* On s'assure que TOUS les types d'input ont le même style */
input[type="text"], 
input[type="email"], 
input[type="date"],
input[type="password"],
input[type="file"]
 {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52,152,219,0.2);
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

button:hover {
    background: #2980b9;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #2c3e50;
    color: white;
}

tr:hover {
    background: #f5f5f5;
}

pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
}

ul {
    list-style: none;
    padding-left: 0;
}

li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
    .participant-row {
        grid-template-columns: 1fr;
    }
    .charts {
        grid-template-columns: 1fr;
    }
    nav {
        flex-direction: column;
    }
}