body { 
    font-family: "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.4;
    margin: 10px 15px;
    background-color: #f9edd7;
    color: #000000;
    text-align: justify;
}     

.error { 
    color: red; 
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
}

header {
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* ✅ permet de passer en colonne sur mobile */
}

.logo img {
    height: 80px;
    max-width: 100%;
}

.header-content {
    text-align: center;
    color: #000000;
}

.header-content h1 {
    margin: 5px 0;
    font-size: 28px;
}

.header-content h2 {
    margin: 0;
    font-size: 18px;
}

.header-content p {
    margin: 2px 0;
    font-size: 14px;
}

/* ✅ Formulaire */
form {
    max-width: 400px;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

form label {
    margin-top: 10px;
    font-weight: bold;
}

form input {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%; /* ✅ adaptatif */
    font-size: 1em;
}

form button {
    margin-top: 20px;
    padding: 10px;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #00264d;
}

/* ✅ Responsive pour tablettes */
@media (max-width: 768px) {
    body {
        font-size: 11pt;
        margin: 5px;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    form {
        width: 90%;
    }
}

/* ✅ Responsive pour smartphones */
@media (max-width: 480px) {
    body {
        font-size: 10pt;
    }
    .header-content h1 {
        font-size: 22px;
    }
    .header-content h2 {
        font-size: 14px;
    }
    .header-content p {
        font-size: 12px;
    }
    form {
        padding: 15px;
    }
    form button {
        padding: 12px;
        font-size: 0.9em;
    }
}
