
/* Style du widget de connexion  */

@media (min-width: 979px) {
    .connection-widget-area {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

.connection-widget {
    display: flex;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    column-gap: 12px;
}

.connection-widget .connection-widget-button {
    display: flex;
    align-items: center;
    padding: 0 13px;
    column-gap: 10px;
    height: 40px;
}

.connection-widget .connection-widget-button span {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.connection-widget .login-button {
    color: #2B2B2B;
}

.connection-widget .logout-button{
    background-color: #F9F8F8;
    color: #2B2B2B;
}

.connection-widget .login-button span,
.connection-widget .logout-button span{
    color: #2B2B2B;
}

.connection-widget .my-account-button{
    background-color: #99C453;
    color: white;
}

.connection-widget .subscribe-button {
    background-color: #2fabe0;
    color: white;
}

.connection-widget .subscribe-button span,
.connection-widget .my-account-button span{
    color: white;
}

/* Style de la fenêtre modale */
.modal {
    display: none; /* Caché par défaut */
    position: fixed; /* Reste en place */
    z-index: 500; /* Se trouve au-dessus de tout */
    left: 0;
    top: 0;
    width: 100%; /* Largeur totale */
    height: 100%; /* Hauteur totale */
    overflow: auto; /* Activer le défilement si nécessaire */
    background-color: rgba(0,0,0,0.75); /* Couleur d'arrière-plan avec opacité */
}

/* Style du contenu de la fenêtre modale */
.modal-content {
    background-color: #E9E9E9;
    margin: 15% auto; /* 15% depuis le haut et centré */
    padding: 20px;
    width: 100%;
    max-width: 560px;
    border-radius: 8px;
    box-sizing: border-box;
}

.modal-content .modal-title{
    text-align: center;
    color: #99c453;
    font-size: 28px;
    margin-bottom: 30px;
}

.modal-content #loginform{
    display: block;
    margin: auto;
    padding: 30px 60px;
    background-color: white;
    border-radius: 8px;
    max-width: 338px;
    margin-bottom: 35px;
}

.modal-content #loginform .login-username,
.modal-content #loginform .login-password{
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-content #loginform .login-username label,
.modal-content #loginform .login-password label{
    font-size: 12px;
}

.modal-content #loginform .login-username input,
.modal-content #loginform .login-password input{
    height: 31px;
    width: 100%;
    background-color: #FCFCFC;
    border: 1px solid #E9E9E9;
    box-sizing: border-box;
}

.modal-content #loginform .login-password{
    margin-bottom: 0;
}

.modal-content #loginform .forgot_pass{
    font-size: 10px;
    color: black;
}

.modal-content #loginform .login-submit{
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.modal-content #loginform .login-submit input{
    text-align: center;
    min-width: 190px;
    height: 42px;
    font-family: 'Open Sans', sans-serif;
    background-color: #99c453;
    color: white;
    border: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 42px;
    letter-spacing: 0.010em;
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    cursor: pointer;
}

.modal-content #loginform .login-submit input:hover{
    text-decoration: underline;
}

/* Style de l'icône d'œil */
.modal-content #loginform .login-password .toggle-password {
    color: #2FABE0;
    position: absolute;
    bottom: 4px;
    right: 11px;
    cursor: pointer;
}

.modal-content #login-error {
    color: #2FABE0;
    text-align: center;
    margin: 5px 0 0 0;
    display: none;
    font-size: 12px;
}

.modal-content #login-error span {
    text-align: center;
    margin: 5px 0 0 0;
    color: black;
}

/* Style du bouton de fermeture */
.close {
    color: #99c453;
    float: right;
    font-size: 28px;
    font-weight: 100;
    line-height: 1rem;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 979px) {
    .connection-widget{
        justify-content: flex-end;
    }
}  

@media (max-width: 767px) {
    .connection-widget .connection-widget-button{
        flex-direction: column;
        justify-content: center;
        row-gap: 10px;
        padding: 0 19px;
        height: 70px;
    }

    .connection-widget span{
        text-align: center;
    }
}