/* Palette de couleurs */

:root {

    --primary-color: #EC6C49;

    --secondary-color: #7FBCAA;

    --highlight-color: #FCC8A6;

    --accent-color: #F09EA0;

    --background-color: #f2f2f2;

    --text-color: #333;

}



.logoheader {
    display: none;
}


.error-message {
    color: #fff;
    padding: 10px;
    font-weight: bold;
    font-style: italic;
    text-align: center;
}

/* Mise en forme globale */

body {
    overflow-x: hidden;

    font-family: Arial, Helvetica, sans-serif;

    background-color: var(--background-color);

    color: var(--text-color);

    margin: 0;

    display: flex;

    flex-direction: column;

    height: 100vh;
}



/* En-tête */
.logocontainer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logolong {
    width: 70%;
    height: auto;
}

header {
    display: none !important;

    background-color: #7FBCAA;

    color: white;

    padding: 15px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}



header .logo h1 {

    font-size: 30px;

    font-weight: 600;

    margin: 0;

}



header nav ul {

    display: flex;

    gap: 20px;

    margin: 0;

    list-style: none;

    text-align: center;

    align-items: center;

}



header nav a {

    color: white;

    text-decoration: none;

    padding: 8px 15px;

    border-radius: 5px;

    font-size: 16px;

    transition: background-color 0.3s ease;

}



header nav a:hover,

header nav a.active {

    background-color: var(--highlight-color);

}



/* Conteneur du dashboard */

.dashboard {

    display: flex;

    flex-direction: column;

    height: 100%;

}



/* Mise en page principale (dashboard) */

main {

    justify-content: center;

    display: flex;

    align-items: center;

    flex-direction: column;

    padding: 30px;

}



/* Contenu principal */

.content-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changé de center à flex-start */
    padding: 20px;
    min-height: auto;
    overflow-y: auto;
    /* Permet le scroll si nécessaire */
}


/* Conteneur du formulaire */

.login-container {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background-color: transparent;
    overflow: hidden;
    /* Gardez hidden pour le flou */
    margin: 20px 0;
    min-height: fit-content;
    /* S'adapte au contenu */
}

.login-container:focus-within { outline: 3px solid var(--highlight-color); outline-offset: 4px; }

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Prend toute la hauteur */
    background-color: #00000037;
    -webkit-backdrop-filter: blur(90px);
    backdrop-filter: blur(90px);
    /* Version standard */
    z-index: -1;
    border-radius: 10px;
    min-height: 100%;
    /* Garantit la couverture totale */
}



/* Formulaire */

.formulaire {

    display: flex;

    flex-direction: column;

}



.formulaire h2 {

    font-size: 24px;

    color: #FFF;

    margin-bottom: 20px;

}



label {

    color: #FFF;

    font-weight: bold;

    text-align: left;

    display: block;

}



input {

    width: auto;

    margin-bottom: 10px;

    padding: 10px;

    border-radius: 5px;

    border: 1px solid #ddd;

    font-size: 16px;

    outline: none;

    transition: border 0.3s ease;

}



input:focus {

    border-color: var(--primary-color);

}

form a {
    text-decoration: none;

    color: #FFF;

    font-size: 14px;

    font-style: italic;

}

form button {

    margin-top: 20px;
    margin-bottom: 10px;

    font-weight: bold;

    padding: 10px 40px;

    background-color: var(--primary-color);

    color: white;

    border-radius: 4px;

    font-size: 15px;

    font-weight: bold;

    border: none;

    cursor: pointer;

    transition: 0.2s;

}



form button:hover {

    transform: scale(1.01, 1.01);

}



/* pattern */

.container {

    width: auto;

    height: 100%;

    display: flex;

    justify-content: center;

    align-items: center;

}

.video-bg {
    pointer-events: none !important;

    position: fixed;

    right: 0;

    top: 0;

    z-index: -1;

    width: 100%;

    height: 100%;





    video {

        pointer-events: none !important;

        width: 100%;

        height: 100%;

        object-fit: cover;

    }

}

#menu {

    display: none;

}

select {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    background-color: #fff;
    /* Couleur de fond d'un input */
    box-sizing: border-box;
    /* Pour que le padding ne dépasse pas la taille de la div */
}

.mail {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
    font-weight: bold;
    background-color: #fff;
    /* Couleur de fond d'un input */
    box-sizing: border-box;
    /* Pour que le padding ne dépasse pas la taille de la div */
}

.mail input {
    padding: 0 !important;
    margin: 0px !important;
    background-color: none !important;
    border-width: 0px !important;
}

/* Password field with toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field input {
    flex: 1;
    padding-right: 44px;
}
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(255,255,255,0.85);
    color: #333;
    border-radius: 999px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.toggle-password:focus { outline: 3px solid var(--accent-color); outline-offset: 2px; }