/* Reset propre */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Police moderne */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0b3d91, #1f6feb);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Carte principale */
.container {
    width: 700px;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    animation: fadeIn 0.5s ease;
}

/* Titre principal */
h1 {
    text-align: center;
    color: #0b3d91;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Titres sections */
h2 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #1f2937;
    border-left: 4px solid #0b3d91;
    padding-left: 10px;
    font-size: 18px;
}

h3 {
    margin-bottom: 10px;
    color: #0b3d91;
}

/* Inputs modernes */
input, select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

/* Focus premium */
input:focus, select:focus {
    outline: none;
    border-color: #0b3d91;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11,61,145,0.15);
}

/* Bloc cycle */
.cursus-block {
    border: 1px solid #e5e7eb;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    background: #f9fafc;
    transition: 0.25s ease;
}

.cursus-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Boutons */
button {
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

/* Bouton ajouter */
button[type="button"] {
    background: #eef2ff;
    color: #0b3d91;
    margin-top: 10px;
}

button[type="button"]:hover {
    background: #dbeafe;
}

/* Bouton envoyer */
button[type="submit"] {
    background: #0b3d91;
    color: white;
    width: 100%;
    margin-top: 15px;
    font-size: 15px;
    letter-spacing: 0.4px;
}

button[type="submit"]:hover {
    background: #082c6c;
}

.dates-row {
    display: flex;
    gap: 15px;
}

.tel-row {
    display: flex;
    gap: 15px;
}

.year-input {
    width: 110px;
    text-align: center;
    font-size: 1.1em;
}

.year-input::-webkit-inner-spin-button,
.year-input::-webkit-outer-spin-button {
    opacity: 0.6;
}

/* Bouton supprimer cycle */
.cursus-block {
    position: relative;
}

.first-block {
    border: 2px solid #0b3d91;
    background: #f8fbff;
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fee2e2;
    border: none;
    color: #b91c1c;
    font-weight: bold;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
}

.remove-btn:hover {
    background: #fecaca;
}

/* Animation douce */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 25px;
    }
}