/* style.css */

/* Réinitialisation simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Corps de la page */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header et navigation */
header {
    background-color: #2c3e50;
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #f39c12;
}

/* Main content */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}

main h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem 0;
    margin-top: 3rem;
}

footer h2 {
    font-size: 1.2rem;
}

/* --- Header général --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

/* --- Menu de navigation --- */
header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

header nav ul li a:hover {
    color: #007bff;
}

/* --- Partie connexion / inscription --- */
header .auth-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

header .auth-links li a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

header .auth-links li form button {
    background: none;
    border: none;
    padding: 0;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

/* --- Message utilisateur --- */
header .auth-links li span {
    font-weight: 500;
    color: #333;
}