@charset "UTF-8";

/* style par défaut du form - ne pas modifier */
form {
    height: 100%;
    width: 100%;
}

:root {
    /* Couleurs */
    --color-bg: #fff;
    --color-text: rgb(23, 23, 23);
    --color-primary: #091e33;
    --color-secondary: #ff5d00;
    --color-hr: #e2e5ea;
    --color-placeholder: #091e33;
    --color-button-bg: #ff5d00;
    --color-button-hover: #091e33;

    /* Polices */
    --font-sans: "Inter", sans-serif;
    --font-headingsans: "Cal Sans", sans-serif;
}

* {
    box-sizing: inherit;
}

html {
    height: 100%;
    font-size: 13px;
}

body {
    height: 100%;
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1.2rem;
    font-family: var(--font-sans);
}

a {
    text-decoration: none;
}

/* Autocomplete styles */
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 var(--color-bg) inset !important;
    -webkit-text-fill-color: var(--color-primary) !important;
}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    font-style: italic;
    color: var(--color-placeholder) !important;
    opacity: 1 !important;
}

.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;
}

#page {
    /* background: url(../images/bg2.jpg) no-repeat; */
    background-size: cover;
    background-position: right center;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    overflow-x: hidden;
    overflow-y: hidden;
}

#page::before {
    content: "";
    width: 95vw;
    height: 95vh;
    background-color: #eaf4f7;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1em;
    z-index: -1;
}

#page::after {
    content: "";
    width: calc(100vw + 200px);
    height: 100vh;
    background: url(../images/bg-logo.svg) no-repeat;
    position: absolute;
    bottom: -300px;
    left: -200px;
    border-radius: 1em;
    z-index: -1;
}

.small-only {
    display: block;
}

.contenu {
    width: 100%;
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: left;
}

.color {
    font-weight: 500;
}

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

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

div.hr {
    margin: 1.33rem 0;
}

hr {
    width: 62%;
    margin: auto;
    background: var(--color-hr);
    height: 3px;
    border: none;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

#logo {
    width: 100%;
    max-width: 100%;
    min-width: 100px;
    text-align: left;
    margin-bottom: 3rem;
}

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

.separation-input {
    display: flex;
    position: absolute;
    left: 5.5rem;
    top: 0.55rem;
    width: 1.7px;
    height: 2rem;
    background: var(--color-primary);
}

.separateur {
    background: linear-gradient(to right,
            #1b4d95 33.33%,
            /* Bleu */
            #fff 33.33%, #fff 66.66%,
            /* Blanc */
            #d8261b 66.66%
            /* Rouge */
        );
    border: none;
    width: 5.25rem;
    height: 4px;
    margin: 2rem 0 1.65rem;
    margin-left: 0;
}

h2 {
    margin: 0;
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: bold;
    text-transform: uppercase;
    line-height: 1.1;
    font-family: var(--font-heading);
}

h3 {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.63rem;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 1.1;
    font-family: var(--font-heading);
}

h3 span {
    color: var(--color-secondary);
}

.instructions {
    font-family: var(--font-sans);
    text-align: left;
    color: var(--color-primary);
    font-size: 1.151rem;
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.05rem;
}

.instructions span {
    font-weight: 400;
}

#fields {
    box-sizing: border-box;
    margin-bottom: 0.8rem;
    background-color: transparent;
    max-width: 100%;
    width: 100%;
}

#fields .field {
    position: relative;
    height: 3.8rem;
    box-shadow: 0 0 7px 5px rgba(0, 0, 0, 0.03);
    border-radius: 40px;
    background-color: var(--color-bg);
}

#fields .field:first-child {
    margin-bottom: 0.75rem;
}

#fields label {
    position: absolute;
    top: 0;
    left: 0;
    width: 5rem;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fields label img {
    height: 1.7rem;
    width: auto;
}

#fields label:after {
    content: "";
    border-right: 1px solid black;
    opacity: 1;
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    right: -0.25rem;
    width: 100%;
}

#fields input[type="email"],
#fields input[type="text"],
#fields input[type="password"] {
    font-size: 1.2rem !important;
    font-weight: 500;
    font-family: var(--font-sans) !important;
    color: var(--color-primary) !important;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 5rem;
    width: calc(100% - 5rem);
    border-bottom: 0;
    height: 100% !important;
    box-sizing: border-box;
    margin-bottom: 0;
    caret-color: var(--color-primary);
    padding: 0 2rem;
}

#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: var(--color-primary);
    box-shadow: none;
    outline: 0;
}

#fields input[type="email"]:focus:not([readonly]),
#fields input[type="text"]:focus:not([readonly]),
#fields input[type="password"]:focus:not([readonly]) {
    /*border-bottom-color: #16192a;*/
}

input::placeholder {
    color: var(--color-placeholder);
}

.button_form {
    height: 3.4rem;
    width: 100%;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #fff;
    background-color: var(--color-button-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0 0;
    text-align: center;
    transition: all 0.3s ease-in-out;
    position: relative;
    text-transform: uppercase;
    border-radius: 40px;
}

.button_form:hover,
.button_form:focus {
    background-color: var(--color-button-hover);
}

#oubli_form {
    text-align: right;
    margin-bottom: 2rem;
}

#oubli_form a {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.25rem;
    transition: all 0.3s ease-in-out;
    position: relative;
    color: var(--color-secondary);
    text-decoration: none;
}

#oubli_form a:hover {
    color: var(--color-primary);
}

.forme{
    background-color: white;
    padding: 50px;
    border-radius: 10px;
}

/* Media Queries */
@media screen and (max-width: 499px) {
    .disp {
        display: none;
    }
}

@media screen and (max-width: 374px) {
    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.6rem;
        margin-top: -1.35rem;
    }

    .instructions {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 599px) {
    .contenu {
        text-align: left;
        padding: 0 2rem;
    }

    #fields,
    #oubli_form {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (min-width: 600px) {
    #page {
        padding: 2rem 0;
        position: relative;
    }

    .small-only {
        display: none;
    }

    div.hr {
        margin: 30px 0;
    }

    .contenu {
        justify-content: center;
        flex: 0 0;
        margin: auto;
        width: 70%;
        background-image: none;
        background-color: transparent;
        position: relative;
        z-index: 1;
        max-width: 30rem;
    }

    .contenu .forme {
        position: relative;
        z-index: 1;
    }

    .bg {
        display: none;
    }

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

@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; */
        background-size: cover;
        background-position: right;
        padding: 0;
    }

    .contenu {
        width: 50%;
        max-width: unset;
        flex: 1 1 50%;
        margin: unset;
        /* background: transparent; */
        box-shadow: none;
        margin-right: 7%;
    }

    .contenu header,
    .contenu main {
        max-width: 30rem;
    }

    .bg {
        display: block;
        width: 50%;
        flex: 1 1 50%;
        background: url(../images/bg-person.png) no-repeat center center;
    }
}

@media screen and (min-width: 960px) and (max-height: 679px) {
    .contenu {
        /* background-color: var(--color-bg); */
    }
}

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

@media screen and (min-width: 1200px) {
    #page {
        /* background: url(../images/bg.jpg) no-repeat center center; */
        background-size: cover;
    }

    .forme {
        max-width: 35rem;
    }

    .contenu {
        width: 35%;
        flex: 1 1 35%;
        position: relative;
        z-index: 1;
        height: 75%;
        margin: auto;
        /* background: transparent; */
    }

    .bg {
        display: block;
        width: 65%;
        flex: 1 1 65%;
    }

    .contenu header,
    .contenu main {
        max-width: 35rem;
    }

    .sous-div {
        margin-left: 2.5rem;
    }
}

@media screen and (min-width: 1600px) and (min-height: 780px) {
    html {
        font-size: 15px;
    }

    .contenu header,
    .contenu main {
        max-width: 30rem;
    }
}

@media screen and (max-width: 1450px) and (max-height: 850px) {
    html {
        font-size: 12px;
    }
}

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

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

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

@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;
    }
}