/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* Image de fond */
body {
    background: url('fond.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
}

/* Barre du haut */
.topbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 15px 20px;

    display: flex;
    justify-content: flex-end;
    gap: 20px;

    background: rgba(0, 0, 0, 0.4); /* léger voile pour lisibilité */
}

.topbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Zone principale centrée */
main {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bloc formulaire opaque */
.box {
    background: white; /* OPAQUE comme demandé */
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Formulaire */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    font-size: 14px;
}

input, button {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button {
    background: #222;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #444;
}

/* Mobile */
@media (max-width: 600px) {
    .topbar {
        justify-content: center;
    }

    .box {
        padding: 20px;
    }
}