/* Reset léger */
body,
h1,
h2,
h3,
p,
ul {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header,
.footer {
    border-color: rgba(0, 0, 0, 0.2);
    /* border-color: rgba(255, 255, 255, 0.2); */
}

/* Header */
.header {
    background: #005580;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 180px;
    height: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
}

.logo:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
}

.nav a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    /* color: #555; */
    /* background: #003f5c; */
    background: #005580;
    /* plus sombre que le header */
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Sections */
section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

section:nth-child(even) {
    background: #f0f4f8;
}


ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

a {
    color: #005580;
}

a:hover {
    text-decoration: underline;
}

/* LOGIN PAGE */

.login-container {
    max-width: 480px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 4rem auto;
    padding: 1rem;
}

.login-card {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-error {
    background: #ffdddd;
    color: #a00;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form label {
    font-weight: bold;
}

.login-form input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.btn-login {
    background: #005580;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-login:hover {
    background: #003f5c;
}

.login-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}