.header-container {
    width: 100%;
    display: flex;
    justify-content: center !important;  /* Force le centrage */
}

header h1 {
    text-align: center;
    width: 100%;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

#contenu {
    position: relative;
    min-height: 100vh;
    margin-top: -100px;
    padding-top: 100px;
    overflow: hidden;
}

#contenu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('/S3_B1_WebWizards/public/images/FondConnexion.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.8;
    z-index: -2;
}

#contenu::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

.element {
    background-color: #edfafa;
    padding: 30px;
    border-radius: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

#message {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #08318a;
    border-radius: 0 60px 60px 0;
    width: 20%;
}

#message h1 {
    margin-top: 0;
    font-size: 2em;
}

#formConnexion {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 7px solid #08318a;
    width: 23%;
    max-width: 80%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form img {
    max-width: 60%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

label {
    color: #08318a;
    font-weight: bold;
}

input {
    padding: 5px;
    border: 2px solid #dce4eb;
    border-radius: 5px;
    font-size: 1em;
}

input:focus {
    outline: none;
    border-color: #10B1BA;
}

#connexion {
    background-color: #08318a;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#connexion:hover {
    background-color: #fd9e1c;
}

#erreur {
    background-color: white;
    color: black;
    max-width: 20em;
    margin: 1em;
    text-align: center;
}
