/* ====== RESET ====== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



/* ====== BODY ====== */

body {

    font-family: 'PT Sans', sans-serif;

    background: linear-gradient(135deg, #a8e6cf, #0b3954);

    min-height: 100vh;

    margin: 0;

    padding-top: 100px;



}





main {

    display: flex;

    justify-content: center;

    align-items: center;

    min-height: calc(100vh - 80px); 

    padding-top: 80px;

}





/* ====== FORMULAIRE ====== */

form {

    background: #ffffff;

    padding: 40px 50px;

    border-radius: 15px;

    box-shadow: 0 4px 20px rgba(0,0,0,0.15);

    width: 100%;

    max-width: 400px;

    text-align: center;

}



h2 {

    color: #0b3954;

    margin-bottom: 25px;

    font-size: 1.8em;

    letter-spacing: 1px;

}



/* ====== INPUTS ====== */

input {

    width: 100%;

    padding: 12px;

    margin: 10px 0;

    border: 2px solid #a8e6cf;

    border-radius: 8px;

    outline: none;

    font-size: 1em;

    transition: border-color 0.3s ease, box-shadow 0.3s ease;

}



input:focus {

    border-color: #0b3954;

    box-shadow: 0 0 5px rgba(11,57,84,0.3);

}



/* ====== BOUTON ====== */

button {

    width: 100%;

    background: #0b3954;

    color: white;

    border: none;

    padding: 12px;

    border-radius: 8px;

    font-size: 1.1em;

    cursor: pointer;

    transition: background 0.3s ease, transform 0.2s ease;

}



button:hover {

    background: #082f49;

    transform: translateY(-2px);

}



/* ====== MESSAGE ERREUR ====== */

p.error {

    color: #d9534f;

    background: #f9d6d5;

    padding: 10px;

    border-radius: 5px;

    margin-bottom: 15px;

}



/* ====== LIEN INSCRIPTION ====== */

p {

    margin-top: 15px;

    color: #0b3954;

    font-size: 0.95em;

}



p a {

    color: #0b3954;

    text-decoration: none;

    font-weight: bold;

    transition: color 0.3s;

}



p a:hover {

    color: #65c3ba;

}



/* ========== NAVIGATION ========== */

nav {

    position: fixed;

    top: 0;

    width: 100%;

    background: #0b3954; /* bleu marine doux */

    color: white;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 40px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.15);

    z-index: 1000;

}



nav .logo {

    font-family: 'Anton', sans-serif;

    font-size: 1.8em;

    letter-spacing: 1px;

    color: #cde8e5; /* vert-bleu clair pour contraste */

}



nav ul {

    list-style: none;

    display: flex;

    gap: 25px;

}



nav ul li a {

    color: #f8f9fa;

    text-decoration: none;

    font-weight: 700;

    transition: 0.3s;

}



nav ul li a:hover {

    color: #a8e6cf; /* vert clair doux */

}
.message-erreur {
    background: #ffb3b3;
    color: #900;
    padding: 10px 15px;
    border: 1px solid #d00;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}
