@charset "UTF-8";
* {
    box-sizing: border-box;
}

html {
    height: 100%;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    background-color: #fff;
    color: rgb(255, 255, 255);
    font-size: 1.2rem;
    font-family: 'Lato', 'Arial', sans-serif;
}

a {
    text-decoration: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s, box-shadow 5000s ease-in-out 0s !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    -webkit-text-fill-color: #121e2e !important;
}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    font-style: italic;
    color: #121e2e !important;
    opacity: 1 !important;
}

/* Touch-friendly improvements */
.button_form,
#oubli_form a,
input[type='email'],
input[type='text'],
input[type='password'] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Ensure minimum touch target size */
@media (pointer: coarse) {
    .button_form,
    #oubli_form a {
        min-height: 44px;
        min-width: 44px;
    }

    #fields .field {
        min-height: 44px;
    }
}

.nowrap {
    white-space: nowrap;
}

/* Popup modale de récupération d'identifiants */
#modalRecupId {
    display: none;
    width: 600px;
}

#modalRecupId .modal-content {
    padding: 0;
}

#modalRecupId iframe {
    border: none;
    width: 100%;
    height: 280px;
}

html {
    font-size: 11px;
}

#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    overflow-x: hidden;
}

.small-only {
    display: block;
}

.contenu {
    width: 100%;
    flex: 1 1 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.bg {
    order: 1;
    width: 100%;
    display: none;
}

header,
footer,
main {
    width: 90%;
    margin: 0 auto;
}

div.hr {
    margin: 1.33rem 0;
}

hr {
    width: 20%;
    background: #102026;
    height: 3px;
    border: none;
    margin-top: 1rem;
    margin-bottom: 2rem;
}
#logo {
    width: 100%;
    min-width: 100px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    text-align: left;
    margin-bottom: 1rem;
}

#logo img {
    max-width: 100%;
    height: auto;
    border: 0;
}

h2 {
    margin: 0;
    color: #0b57ca;
    font-size: 3.8rem;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    box-sizing: border-box;
    font-family: 'Inter', 'Arial', sans-serif;
    text-align: left;
    line-height: 1.1;
    text-transform: uppercase;
}

h2 span {
    color: rgb(255, 14, 27);
}

h3 {
    font-family: 'Inter', 'Arial', sans-serif;
    margin: 0;
    color: #111212;
    font-size: 2.17rem;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    line-height: 1;
    text-align: left;
    margin-bottom: 2rem;
}

.instructions {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: rgb(96, 47, 129);
    font-size: 1.639rem;
    line-height: 1.2;
    font-weight: normal;
    text-align: left;
    margin-top: 2.5rem;
}
.color {
    font-weight: 600;
}

.separateur {
    height: 3px;
    /* background-color: #102026; */
    width: 17%;
    margin: 0;
    margin-top: 1.2rem;
    margin-bottom: 2.47rem;
}

#fields {
    box-sizing: border-box;
    max-width: 100%;
    border-left: black 4px solid;
    padding-top: 2.75rem;
    padding-left: 3rem;
    width: 100%;
}

#fields .field {
    position: relative;
    background-color: rgba(255, 255, 255, 0);
    margin: 0;
    height: 6rem;
    border-bottom: 2px solid rgb(223, 222, 222);
}

#fields .field:not(:last-child) {
    margin-bottom: 2rem;
}
#fields .field:not(:first-child) {
    border-bottom: none;
}
#fields .field:not(:last-child)::before {
    content: 'Identifiant';
    font-family: 'Inter', 'Arial', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    position: absolute;
    top: -20px;
    color: rgb(195, 129, 91, 0.3);
    font-size: 4.2rem;
    left: 0;
    opacity: 1;
    letter-spacing: 0.2rem;
}
#fields .field::before {
    content: 'Mot de passe';
    font-family: 'Inter', 'Arial', sans-serif !important;
    white-space: nowrap;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    position: absolute;
    top: -10px;
    color: rgb(195, 129, 91, 0.3);
    font-size: 3.9rem;
    left: 0;
    opacity: 1;
    letter-spacing: 0.2rem;
    word-spacing: 0.4rem;
}
#fields .field.changed::before {
    content: '';
}

#fields .field:first-of-type label {
    margin-left: 0;
}

#fields .field:first-of-type input[type='email'] + span.label,
#fields .field:first-of-type input[type='text'] + span.label,
#fields .field:first-of-type input[type='password'] + span.label {
    margin-left: 25px;
}

#fields .field:last-of-type label {
    margin-left: 0;
}

#fields .field:last-of-type input[type='email'] + span.label,
#fields .field:last-of-type input[type='text'] + span.label,
#fields .field:last-of-type input[type='password'] + span.label {
    margin-left: 25px;
}

#fields label {
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 100%;
    text-align: center;
    margin-left: 3px;
    display: flex;
    align-items: center;
}
#fields label:after {
    content: '';
    position: absolute;
    right: -0.7rem;
    width: 2px;
    background-color: #121e2e;
    height: 1.5rem;
    bottom: 2.1rem;
}
#fields label img {
    height: auto;
    width: auto;
    margin-left: 1.02rem;
}
#fields input::placeholder {
    font-family: 'Poppins', 'Arial', sans-serif !important;
    color: #121e2e;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
#fields input[type='email'],
#fields input[type='text'],
#fields input[type='password'] {
    font-size: 1.45rem !important;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-family: 'Poppins', 'Arial', sans-serif !important;
    color: #121e2e !important;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 5rem;
    width: calc(100% - 5rem);
    height: 100% !important;
    border-bottom: 0;
    box-sizing: border-box;
    margin-bottom: 0;
    /* border-radius: 50px; */
    padding: 0.65rem 2rem 0 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

#fields input[type='email']:focus,
#fields input[type='email'].valid,
#fields input[type='email'].invalid,
#fields input[type='text']:focus,
#fields input[type='text'].valid,
#fields input[type='text'].invalid,
#fields input[type='password']:focus,
#fields input[type='password'].valid,
#fields input[type='password'].invalid {
    color: #121e2e;
    box-shadow: none;
    outline: 0;
}
input:not([type]),
input[type='text']:not(.browser-default),
input[type='password']:not(.browser-default),
input[type='email']:not(.browser-default),
input[type='url']:not(.browser-default),
input[type='time']:not(.browser-default),
input[type='date']:not(.browser-default),
input[type='datetime']:not(.browser-default),
input[type='datetime-local']:not(.browser-default),
input[type='tel']:not(.browser-default),
input[type='number']:not(.browser-default),
input[type='search']:not(.browser-default),
textarea.materialize-textarea {
    background-color: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    height: 3rem;
    width: 100%;
    font-size: 16px;
    margin: 0 0 8px 0;
    padding: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-transition: border 0.3s, -webkit-box-shadow 0.3s;
    transition: border 0.3s, -webkit-box-shadow 0.3s;
    transition: box-shadow 0.3s, border 0.3s;
    transition: box-shadow 0.3s, border 0.3s, -webkit-box-shadow 0.3s;
}

.button_form {
    height: 4rem;
    width: 53%;
    min-width: 200px;
    max-width: 300px;
    font-family: 'Inter', 'Arial', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    font-size: 1.35rem;
    color: #fff;
    background-color: #c3815b;
    /* background-image: linear-gradient(120deg, rgb(24, 130, 204), rgb(78, 39, 126) 40%); */
    /* background-size: 200%; */
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    letter-spacing: 0.2rem;
    cursor: pointer;
    border: none;
}

.button_form:hover {
    background-color: #0b57ca;
}

#oubli_form {
    text-align: left;
    margin-left: 4%;
}

#oubli_form a {
    height: 4rem;
    width: 110%;
    min-width: 200px;
    max-width: 300px;
    font-family: 'Poppins', 'Arial', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    font-size: 1.35rem;
    color: #fff;
    background-color: #0b57ca;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 1.5rem;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

#oubli_form a:hover {
    background-color: #c3815b;
}

.oubli_btn {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.dbl_btn {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    padding-left: 0;
    gap: 1rem;
}

@media screen and (max-width: 499px) {
    #page {
        padding: 0;
    }

    .contenu {
        padding: 1rem;
    }

    h2 {
        font-size: 2.8rem;
        text-align: left;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .instructions {
        font-size: 1.4rem;
        text-align: center;
        margin-top: 1.5rem;
    }

    #logo {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    #fields {
        padding-left: 1.5rem;
        border-left-width: 2px;
    }

    #fields .field {
        height: 4.5rem;
        margin-bottom: 1.5rem;
    }

    #fields .field:not(:last-child)::before {
        font-size: 3rem;
        top: -15px;
    }

    #fields .field::before {
        font-size: 2.7rem;
        top: -8px;
    }

    #fields label:after {
        bottom: 1.25rem;
    }

    .separateur {
        width: 30%;
        margin: 1rem auto;
    }

    .dbl_btn {
        flex-direction: column;
        margin: 2rem 0;
        gap: 1.5rem;
        padding-left: 0;
    }

    #oubli_form {
        margin-left: auto;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #oubli_form a {
        width: 20rem;
    }

    .button_form {
        margin: 0 auto;
        width: 20rem;
    }
}

@media screen and (max-width: 392px) {
    .contenu {
        padding: 0.5rem;
    }

    h2 {
        font-size: 3rem;
        line-height: 1.2;
        text-align: left;
    }

    h3 {
        font-size: 1.49rem;
    }

    .instructions {
        font-size: 1.2rem;
    }

    #fields {
        padding-left: 1rem;
    }

    #fields .field {
        height: 4rem;
    }

    #fields .field:not(:last-child)::before {
        font-size: 2.6rem;
        top: -12px;
    }

    #fields .field::before {
        font-size: 2.2rem;
        top: -6px;
    }

    #fields input[type='email'],
    #fields input[type='text'],
    #fields input[type='password'] {
        font-size: 1.3rem !important;
    }

    .button_form,
    #oubli_form a {
        width: 100%;
        font-size: 1.2rem;
        padding: 1rem;
    }

    .dbl_btn {
        gap: 1rem;
    }
}

@media screen and (max-width: 599px) {
    .contenu {
        background-color: #fff;
        padding: 0 2rem;
    }
}

/* Tablet styles (600px - 959px) */
@media screen and (min-width: 600px) and (max-width: 959px) {
    #page {
        padding: 1.5rem 0;
        background-color: #fff;
        overflow-x: hidden;
        position: relative;
    }

    .small-only {
        display: none;
    }

    .contenu {
        justify-content: center;
        flex: 0 0;
        margin: auto;
        width: 90%;
        background-color: #091b2000;
        position: relative;
        z-index: 1;
        max-width: 45rem;
        padding: 2rem;
    }

    .bg {
        display: none;
    }

    header,
    main,
    footer {
        width: 100%;
    }

    h2 {
        font-size: 4.2rem;
        text-align: left;
    }

    h3 {
        font-size: 2.4rem;
        text-align: left;
        margin-bottom: 2.5rem;
    }

    .instructions {
        font-size: 1.8rem;
        text-align: center;
        margin-top: 2rem;
    }

    #logo {
        text-align: center;
        margin-bottom: 2rem;
    }

    #fields {
        padding-left: 2rem;
        max-width: 35rem;
        margin: 0 auto;
    }

    .separateur {
        width: 25%;
        margin: 1.5rem auto;
    }

    .dbl_btn {
        flex-direction: row;
        justify-content: space-between;
        margin: 3rem 0;
    }

    .button_form {
        width: 45%;
        font-size: 1.4rem;
    }

    #oubli_form {
        margin-left: 0;
        width: 45%;
    }

    #oubli_form a {
        width: 100%;
        font-size: 1.4rem;
        padding: 1rem;
    }
}

@media screen and (min-width: 600px) {
    #page {
        padding: 2rem 0;
        background-color: rgb(247, 247, 247);
        overflow-x: hidden;
        position: relative;
    }
    .small-only {
        display: none;
    }
    div.hr {
        margin: 30px 0;
    }
    .contenu {
        justify-content: center;
        flex: 0 0;
        margin: auto;
        width: 100%;
        background-image: none;
        background-color: #091b2000;
        position: relative;
        z-index: 1;
        /* border-radius: 1.6rem; */
        /* box-shadow: 2px 23px 51px 0px rgba(1, 1, 1, 0.1); */
        max-width: 31rem;
    }
    .bg {
        display: none;
    }
    header,
    main,
    footer {
        width: 100%;
    }
}

/* Tablet landscape and small desktop (768px - 1199px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    #page {
        background-color: #fff;
    }

    .contenu {
        max-width: 50rem;
        padding: 3rem;
    }

    h2 {
        font-size: 4.5rem;
    }

    h3 {
        font-size: 2.6rem;
    }

    .instructions {
        font-size: 1.9rem;
    }

    #fields {
        max-width: 40rem;
        padding-left: 2.5rem;
    }

    .dbl_btn {
        margin: 3.5rem 0;
    }

    .button_form {
        width: 48%;
        font-size: 1.5rem;
    }

    #oubli_form {
        width: 48%;
    }

    #oubli_form a {
        width: 100%;
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 959px) and (max-height: 840px) {
    .bg {
        display: none;
    }
}

@media screen and (min-width: 960px) {
    #page {
        min-height: 100%;
        display: flex;
        flex-direction: row-reverse;
        background: url(../images/bg.jpg) no-repeat right center;
        background-size: cover;
        padding: 0;
        overflow-x: hidden;
    }
    .contenu {
        width: 80%;
        flex: 1 1 80%;
        max-width: unset;
        margin: unset;
        background: #091b2000;
        box-shadow: none;
        padding: 2rem 4rem;
    }
    .contenu header,
    .contenu main {
        max-width: 31rem;
    }
    .bg {
        display: block;
        width: 50%;
        flex: 1 1 50%;
        height: initial;
    }
    .contenu .forme {
        position: relative;
        z-index: 1;
        /* -webkit-box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.14);
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.14); */
        padding: 2rem 0 1rem;
        max-width: 44rem;
        margin: 0 auto;
    }
}

@media screen and (max-height: 767px) and (min-width: 960px) {
    #logo {
        margin-top: 0;
    }
}

@media screen and (min-width: 1200px) {
    html {
        font-size: 13px;
    }
    #page {
        background: url(../images/bg.jpg) no-repeat left center;
        background-size: 100% 104%;
    }
    .contenu {
        width: 48%;
        flex: 1 1 48%;
        position: relative;
        z-index: 1;
        height: 75%;
        margin: auto;
    }
    .bg {
        width: 52%;
        flex: 1 1 52%;
    }
    .contenu header,
    .contenu main {
        max-width: 31rem;
    }
    .sous-div {
        margin-left: 2.5rem;
    }
    .contenu .forme {
        max-width: 48rem;
    }

    .dbl_btn {
        padding-left: 34rem;
    }
}

@media screen and (min-width: 1600px) and (min-height: 780px) {
    html {
        font-size: 14px;
    }
    .contenu header,
    .contenu main {
        max-width: 31rem;
    }
    .contenu {
        width: 46%;
        flex: 1 1 46%;
    }
    .bg {
        width: 58%;
        flex: 1 1 58%;
    }
    .contenu .forme {
        max-width: 44rem;
    }
}

@media screen and (min-width: 1900px) {
    html {
        font-size: 14px;
    }
}

@media all and (-ms-high-contrast: none) and (max-width: 961px),
    (-ms-high-contrast: active) and (max-width: 961px) {
    #page {
        background: #fff;
        display: block;
    }
    .contenu {
        box-shadow: none;
    }
}

@media all and (-ms-high-contrast: none) and (min-width: 960px),
    (-ms-high-contrast: active) and (min-width: 960px) {
    #page {
        min-height: 100vh;
    }
}

@media screen and (max-width: 1600px) {
    html {
        font-size: 13px;
    }
}

@media screen and (max-width: 1550px) {
    html {
        font-size: 13px;
    }
}

@media screen and (max-width: 1470px) {
    html {
        font-size: 13px;
    }
}
