body {
    background: #181a1b;
    color: #e5e4e2;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h1 {
    color: #f8f8ff;
    text-align: center;
    margin-top: 30px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px #b5b5b5;
}

form {
    background: #232526;
    max-width: 920px; /* augmenté pour accommoder les champs en ligne */
    margin: 40px auto;
    padding: 30px 32px 24px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 16px #000a;
}

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

li {
    margin-bottom: 18px;
}

label {
    color: #e5e4e2;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
    text-shadow: 0 0 4px #b5b5b5;
}

input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #222325;
    color: #e5e4e2;
    font-size: 1em;
    box-shadow: 0 0 4px #b5b5b5 inset;
    transition: border 0.2s;
}

input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
    border: 1.5px solid #e5e4e2;
    outline: none;
}

button[type="submit"] {
    background: linear-gradient(90deg, #e5e4e2 0%, #b5b5b5 100%);
    color: #232526;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 8px #0005;
    transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
    background: linear-gradient(90deg, #f8f8ff 0%, #e5e4e2 100%);
    color: #181a1b;
}

.alert.alert-danger {
    background: #2d1e1e;
    color: #ffbaba;
    border: 1px solid #a94442;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 18px;
    box-shadow: 0 0 8px #a94442;
}

p {
    text-align: center;
    font-size: 1.1em;
    color: #e5e4e2;
    text-shadow: 0 0 4px #b5b5b5;
}

.exercice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 100%;
}

.exercice-details {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.exercise-input {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222325;
    color: #e5e4e2;
    font-size: 0.9em;
    min-width: 0; /* empêche le dépassement */
}

/* Style pour les inputs number */
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#add-exercice-btn {
    margin-top: 10px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#add-exercice-btn:hover {
    background: #27ae60;
}

#add-exercice-btn:hover {
    background: #27ae60;
}
