body { 
    font-family: "Times New Roman", serif;
    font-size: 12pt;
    line-height: 1.4;
    margin: 5px 15px;
    background-color: #f9edd7;
    color: #000000;
    text-align: justify;
}     

.error { 
    color: red; 
}

form { 
    display: flex; 
    flex-direction: column; 
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

label { 
    margin-top: 10px; 
    font-weight: bold;
}

input, select, button { 
    padding: 10px; 
    margin-top: 5px; 
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    width: 100%; /* ✅ s'adapte au mobile */
}

button { 
    margin-top: 20px; 
    cursor: pointer;
    background-color: #001f3f;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

button:hover { 
    background-color: #003366; 
}

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: 24px;
}

.header-content h2 {
    margin: 0;
    font-size: 16px;
}

.header-content p {
    margin: 2px 0;
    font-size: 14px;
}

main {
    padding: 10px;
}

footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    background: #f0f0f0;
    margin-top: 20px;
}

/* ✅ 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: 20px;
    }
    .header-content h2 {
        font-size: 14px;
    }
    .header-content p {
        font-size: 12px;
    }
    form {
        padding: 15px;
    }
    button {
        padding: 12px;
        font-size: 0.9em;
    }
}
