* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;

    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    appearance: none;

    margin: 0px;
    padding: 0px;
    outline: none;
    list-style: none;
    text-decoration: none;
}

html {
    height: 100%;
    font-size: 62.5%;
}

body {
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    text-align: center;
}

/*LANDING*/
main {
    min-height: 100vh;
}

header {
    width: 40%;
    margin: 20px auto;
}

.logo {
    width: 10rem;
}

/*BLOC INFO + CTA*/

.boxInfo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    display: grid;
    grid-gap: 10px;
}

h1 {
    font-size: 14px;
    text-align: center;
    padding: 0 20px 25px;
}

#forgottenMailBlock h1, #forgottenPassBlock h1, #changePassBlock h1, #changePassBlock h1 {
    font-size: 16px;
    text-align: center;
    padding: 0 20px 25px;
    font-weight: 800;
    text-transform: uppercase;
}

h2 {
    font-size: 12px;
    font-weight: 300;
    width: 80%;
    margin: 0 auto;
}

.box {
    display: grid;
    width: 80%;
    margin: 0 auto;
}

label {
    font-weight: 800;
    font-size: 14px;
}

#changePassBlock label {
    font-size: 12px;
    font-weight: 400;
}

#forgottenMailBlock label, #forgottenPassBlock label {
    font-size: 12px;
    margin-top: 10px;
    font-weight: 400;
}

input {
    border: 1px solid;
    padding: 5px;
    border-radius: 3px;
    margin-top: 5px;
    background-color: #ffffffdb;
}

/*BOUTON SE CONNECTER*/

#connexion {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}

#registerSubmit {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}

#register {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

/*MOT DE PASSE PERDU*/

#mail-perdu {
    font-size: 12px;
    font-weight: 300;
    text-decoration: underline;
}

/*MOT DE PASSE OUBLIÉ*/

#valider {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}

/*BOUTON SE CONNECTER*/

#seconnecter {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}

/*BOUTON SE CONNECTER*/

#resetPass {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}

#updatePass {
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe;
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
}
/* Styles pour les messages d'erreur */
.error {
    color: #ff4444; /* Rouge pour les erreurs */
    font-size: 12px;
    font-weight: 400;
    margin: 10px 0;
    width: 80%;
    margin: 10px auto;
    text-align: center;
    min-height: 20px; /* Pour éviter les sauts de mise en page */
}

/* Style pour les champs en erreur */
.error-input {
    border: 2px solid #ff4444 !important;
    background-color: #ffe6e6 !important;
}

/* Style pour le bouton d'action après un message d'erreur */
.error-action-btn {
    display: block;
    width: 80%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 10px;
    background: #333333;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.error-action-btn:hover {
    background-color: #666666;
}

.success-full-page.show {
    display: block;
}

/*FOOTER*/

footer {
    position: relative;
}

footer > p {
    padding: 0px 30px;
}

.menuFooter {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}

.menuFooter a {
    font-size: 12px;
    padding: 20px 0;
    font-weight: bold;
    width: 100%;
    text-transform: uppercase;
    text-decoration: underline;
}

.menuFooter p {
    font-size: 10px;
    padding: 1vh 0;
}

#mandatory_fr_lp_text{
    font-size: 12px;
    padding: 10px;
    display: block;
}
#mandatory_fr_lp_text a{
    text-decoration: underline;
}

/* Styles pour l'affichage pleine page des messages de succès - Respectant le design existant */
.success-full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    font-family: 'Inter', sans-serif; /* Même police */
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
}

/* Styles pour les messages d'erreur */
.error {
    color: #ff4444; /* Rouge pour les erreurs */
    font-size: 12px;
    font-weight: 400;
    margin: 10px 0;
    width: 80%;
    margin: 10px auto;
    text-align: center;
    min-height: 20px; /* Pour éviter les sauts de mise en page */
}

/* Style pour les champs en erreur */
.error-input {
    border: 2px solid #ff4444 !important;
    background-color: #ffe6e6 !important;
}

.success-full-page.show {
    display: block;
}

.success-header {
    width: 40%;
    margin: 20px auto;
}

.success-logo {
    width: 10rem;
}

.success-content {
    /* Utilisation de la même structure que .boxInfo */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 100%;
    display: grid;
    grid-gap: 10px;
}

.success-content h1 {
    /* Même style que les h1 existants */
    font-size: 16px;
    text-align: center;
    padding: 0 20px 25px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.success-content h2 {
    /* Même style que les h2 existants */
    font-size: 12px;
    font-weight: 300;
    width: 80%;
    margin: 0 auto 20px;
}

.success-content p {
    /* Style similaire aux descriptions */
    font-size: 12px;
    font-weight: 300;
    width: 80%;
    margin: 0 auto 30px;
    line-height: 1.4;
}

.success-content .btn-return {
    /* Même style que les boutons existants */
    margin: auto;
    padding: 15px;
    border-radius: 10px;
    border: solid rgb(255 255 255 / 25%) 1px;
    background: #0a65fe; /* Même couleur bleue */
    color: white;
    font-size: 20px;
    font-weight: 600;
    justify-items: center;
    width: 80%;
    cursor: pointer;
    transition: background 0.3s;
}

.success-content .btn-return:hover {
    background: #0956d9;
}

/* Responsive comme dans le CSS existant */
@media screen and (min-width: 1024px) {
    .success-content {
        width: 30%;
    }
    .success-content .btn-return {
        width: 80%;
    }
}

/*RESPONSIVE DESKTOP*/

@media only screen and (min-width: 780px) and (max-width: 1023px) {}

@media screen and (min-width: 1024px) {
    #seconnecter {
        width: 40%;
    }
    #connexionBlock, #forgottenMailBlock, #forgottenPassBlock, #changePassBlock, #registerBlock {
        width: 30%;
    }
}
