body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(120deg, #f5f7fa 0%, #e9f0fb 100%);
    margin: 0;
    padding: 0;
    color: #222;
    min-height: 100vh;
    box-sizing: border-box;
    width: 100%;
}

header,
.navbar {
    background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
    color: #fff;
    padding: 28px 0 20px 0;
    text-align: center;
    font-size: 2.1em;
    letter-spacing: 1px;
    margin-bottom: 36px;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.13);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

header .logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10);
}

header .logo i {
    color: #2563eb;
    font-size: 2em;
}

nav.menu {
    margin: 0 0 24px 0;
    text-align: center;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
    padding: 10px 0 6px 0;
    font-size: 1.08em;
    display: flex;
    justify-content: center;
    gap: 12px;
}

nav.menu a {
    display: inline-block;
    margin: 0 6px;
    color: #2563eb;
    background: #e0e7ff;
    padding: 8px 18px;
    border-radius: 7px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.06);
    text-decoration: none;
}

nav.menu a:hover,
nav.menu a.active {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.13);
}

.container {
    max-width: 1000px;
    margin: 36px auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 6px 32px rgba(37, 99, 235, 0.09);
    padding: 44px 54px;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 36px;
    /* Ajout d'un effet de survol pour rendre la carte plus "légère" */
}

.container:hover {
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.13);
    transform: translateY(-2px) scale(1.01);
}

.section {
    background: #f8fafc;
    border-radius: 14px;
    padding: 28px 22px 20px 22px;
    margin-bottom: 0;
    box-shadow: 0 1px 8px rgba(37, 99, 235, 0.04);
    transition: box-shadow 0.2s, transform 0.2s;
    border-left: 6px solid #60a5fa;
    box-shadow: 0 2px 12px rgba(96, 165, 250, 0.07);
}

.section:hover {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px) scale(1.01);
}

h2,
h3 {
    color: #2563eb;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

form {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px 20px;
    align-items: end;
    background: #f1f5fa;
    border-radius: 12px;
    padding: 22px 16px 12px 16px;
}

form input,
form select,
form button,
form a {
    font-size: 1em;
    padding: 12px 16px;
    border-radius: 9px;
    border: 1px solid #d0d7de;
    margin: 0;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    min-width: 0;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.04);
    background: #fff;
}

form input:focus,
form select:focus {
    border: 1.5px solid #2563eb;
    box-shadow: 0 0 0 2px #e0e7ff;
    background: #f0f6ff;
}

form button,
.btn-main {
    background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.10);
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    grid-column: span 2;
    border-radius: 9px;
    font-size: 1.08em;
    padding: 12px 24px;
}

form button:hover,
.btn-main:hover {
    background: linear-gradient(90deg, #1743a3 60%, #2563eb 100%);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px) scale(1.03);
}

form a,
.btn-secondary {
    background: #f5f7fa;
    color: #2563eb;
    text-decoration: none;
    border: 1px solid #2563eb;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    grid-column: span 1;
    text-align: center;
    padding: 12px 0;
    border-radius: 9px;
}

form a:hover,
.btn-secondary:hover {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.13);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 10px rgba(37, 99, 235, 0.05);
    transition: box-shadow 0.2s;
}

table:hover {
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.10);
}

table th,
table td {
    padding: 16px 12px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    transition: background 0.2s;
}

table th {
    background: linear-gradient(90deg, #e0e7ff 60%, #f1f5fa 100%);
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.3px;
}

table tr:hover td {
    background: #f1f5fa;
    transition: background 0.2s;
}

table tr:last-child td {
    border-bottom: none;
}

a {
    color: #2563eb;
    text-decoration: none;
    margin-right: 10px;
    transition: color 0.2s;
    font-weight: 600;
}

a:hover {
    color: #1743a3;
    text-decoration: underline;
}

.error {
    color: #d00;
    background: #ffeaea;
    border: 1px solid #f5c2c7;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 22px;
    text-align: center;
    font-weight: 600;
}

::-webkit-scrollbar {
    width: 8px;
    background: #e0e7ff;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #60a5fa 0%, #2563eb 100%);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

@media (max-width: 1100px) {
    .container {
        padding: 18px 8px;
    }

    table,
    form {
        font-size: 0.98em;
    }

    form {
        grid-template-columns: 1fr;
        /* Force une seule colonne */
        gap: 12px;
        /* Réduit l'espacement vertical */
        padding: 14px 12px;
    }

    form button,
    form a {
        grid-column: 1;
        /* Force les boutons sur une ligne */
    }

    form input,
    form select {
        width: 100%;
        /* Assure que les inputs prennent toute la largeur */
    }

    .section {
        padding: 14px 12px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 6px 2px;
    }

    header,
    .navbar {
        font-size: 1.1em;
        padding: 12px 0 8px 0;
    }

    table th,
    table td {
        padding: 8px 4px;
    }
}