/** Variables **/
:root {
    /* Polices */
    --font-family: 'prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --font-size-small-mobile: 1.2rem;
    --font-size-base: 1.6rem;
    --font-size-base-mobile: 1.4rem;
    /* Couleurs */
    --gray-600: #667070;
    --gray-025: #EDF1F1;
    --light-gray: #F1F2F2;
    --transparent-gray: rgba(0, 0, 0, 0.08);
    --transparent-black: rgba(0, 0, 0, 0.64);
    --black: #000;
    --white: #FFF;
    --yellow: #F7D720;
    --green: #339400;
    --cyan: #4BC6B9;
    --red: #C90303;
    --orange: #E65E00;
    --neutrals-gray: #0a0e0e;
    --efx-overlay-inverted-56: rgb(255, 255, 255, 0.56);
    --efx-overlay-04: rgb(0, 0, 0, 0.04);
    /* Specific spacings */
    --spacer-pop-tiny: .8rem;
    --spacer-pop-small: 1.6rem;
    --spacer-pop-medium: 2.4rem;
    --spacer-pop-large: 3.2rem;
    --spacer-pop-ultra-large: 6.4rem;
    --margin-padding-gutter-double: 4.8rem;
    /* Border */
    --border-radius: .8rem;
    --border-radius-small: .4rem;
    --border-radius-large: 1.6rem;
    --radius-rad-xl: 2.4rem;

    /* Shadows */
    --box-shadow-medium: 0 4px 8px 0 rgba(0, 0, 0, 0.10), 0 8px 16px 0 rgba(0, 0, 0, 0.20);
}

/** Réinitialisation du html/body **/
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    font-family: var(--font-family);
    fill: currentColor;
}

html {
    font-size: .625em;
}

body,
html {
    font-family: var(--font-family);
    margin: 0;
    scroll-behavior: smooth;
}

address,
blockquote,
dl,
ol,
p,
pre,
ul {
    margin-top: 0;
    margin-bottom: var(--spacer-pop-tiny);
}

/* Ajout de valeurs réutilisables */
p {
    font-size: var(--font-size-base-mobile);
    overflow-wrap: break-word;
    word-break: break-word;
    margin-top: 0;
}

.title {
    margin: 0;
    font-size: var(--font-size-base-mobile);
}

.title-sub-text {
    font-size: var(--font-size-base-mobile);
    margin: var(--spacer-pop-tiny) 0 0 0;
}

.title-required-text {
    font-size: var(--font-size-small-mobile);
    font-style: italic;
    line-height: var(--font-size-base);
    color: var(--gray-600);
    margin: 0.8rem 0;
}

.sub-title {
    font-size: var(--font-size-base-mobile);
    font-weight: 700;
    margin: auto 0;
}

html,
body,
.login-content {
    height: 100%;
}

.box {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: absolute;
    inset: 0;
}

.app {
    align-items: center;
    display: grid;
    flex-grow: 1;
    grid-template-columns: 1fr 1fr;
}

.form-page.register {
    border-right: 0.6rem solid var(--cyan);
}

.form-page.login {
    border-right: 0.6rem solid var(--yellow);
}

.uppercase {
    text-transform: uppercase;
}

.no-shrink {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

/* Espacements */
.mla {
    margin-left: auto;
}

.mlt {
    margin-left: var(--spacer-pop-tiny);
}

.mlxs {
    margin-left: var(--font-size-small-mobile);
}

.mls {
    margin-left: var(--spacer-pop-small);
}

.mlm {
    margin-left: var(--spacer-pop-medium);
}

.mrt {
    margin-right: var(--spacer-pop-tiny);
}

.mrxs {
    margin-right: var(--font-size-small-mobile);
}

.mrs {
    margin-right: var(--spacer-pop-small);
}

.mrm {
    margin-right: var(--spacer-pop-medium);
}

.mbt {
    margin-bottom: var(--spacer-pop-tiny);
}

.mbs {
    margin-bottom: var(--spacer-pop-small);
}

.mbm {
    margin-bottom: var(--spacer-pop-medium);
}

.mbn {
    margin-bottom: 0;
}

.mtt {
    margin-top: var(--spacer-pop-tiny);
}

.mts {
    margin-top: var(--spacer-pop-small);
}

.mtm {
    margin-top: var(--spacer-pop-medium);
}

.ptxl {
    padding-top: 4.8rem;
}

.pbm {
    padding-bottom: var(--spacer-pop-medium);
}

/* Typographies */
.h4-like {
    font-size: 3.2rem;
}

.lhs {
    line-height: 1.2;
}

.lhm {
    line-height: 1.4;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.text-center {
    text-align: center;
}

.text-medium {
    font-size: 1.2rem;
}

.text-medium-validate {

    p {
        margin: 0;
        color: var(--transparent-black);
    }

    div {
        display: block;
        margin-bottom: var(--spacer-pop-tiny);
    }

}

button {
    background-color: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

/**
 * Suppression de l'outline (sigh...)
 */
input,
textarea,
select {
    outline: none;
}


.flex-vcenter {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
    column-gap: 0.8rem;
}

/* Permettre la lecture du texte pour les lecteurs d'écran */
.visually-hidden {
    position: absolute !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.icon-svg.black {
    filter: brightness(0) saturate(100%);
}

/* Container du formulaire */
.form-page {
    height: 100%;
    display: flex;
    align-self: stretch;
    background: linear-gradient(270deg, var(--light-gray) 64%, var(--white) 100%);
    overflow-y: auto;
    flex-direction: column;
    justify-content: space-evenly;
}

.form-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    flex: 1 0 0;
    align-self: stretch;
}

.form-image.bg-poplab {
    background: center top/cover url('../img/wallpaper-PopLabII.png');
}

.form-image.bg-lock {
    background: left top/cover url('../img/background-lock.png');
}

.bg-blur {
    width: 100%;
    height: 100%;
    backdrop-filter: blur(40px);
}

.overlay-image {
    background: center/cover url(../img/background.svg);
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: none;
    position: relative;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(40px);
    z-index: 2;

    .icon-lock-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacer-pop-tiny);

        .icon-lock {
            width: 32rem;
            height: 17.9rem;
            aspect-ratio: 261/146;
        }

        p,
        span {
            font-size: 1.8rem;
            line-height: var(--spacer-pop-medium);
            text-align: center;
        }

        p {
            font-weight: 800;
        }

        span {
            font-weight: 300;
        }

        .text {
            font-weight: 700;
            font-size: 12 var(--font-size-small-mobile);
            line-height: var(--font-size-base);
            letter-spacing: .05rem;
        }
    }
}

.has-redirect-error .overlay-image {
    display: block;
}

.has-redirect-error .form-image {
    display: none;
}

.form-container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;

}

@media (max-height: 992px) {
    .form-container {
        padding: 2.4rem 0;
    }
}

.form-container.form-info:before {
    background: linear-gradient(270deg, var(--light-gray) 64%, var(--white) 100%);
}

.form-container.form-forgotpassword:before {
    background-color: var(--orange);
}

.form-container:after,
.form-container:before {
    content: "";
    position: absolute;
}

.form-container:before {
    top: var(--spacer-pop-small);
    bottom: var(--spacer-pop-small);
    left: var(--spacer-pop-small);
    right: var(--spacer-pop-small);
    border-radius: var(--border-radius);
    -webkit-transition: background-color .5s;
    transition: background-color .5s;
}

/* Contenu du formulaire */
.form-content {
    position: relative;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 59.2rem;
    min-width: 100%;
    display: flex;
    gap: var(--spacer-pop-large);
    flex-direction: column;
}

.form-content:after,
.form-content > * {
    width: 100%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.form-title {
    max-width: 36rem;
}

.form-main-title {
    margin-bottom: var(--spacer-pop-large);
}

.poplab-logo {
    max-width: 36rem;
    margin-bottom: var(--spacer-pop-ultra-large);
}

img.form-img {
    display: block;
    max-width: 32rem;
    max-height: 7.5rem;
    margin-right: auto;
    padding: 0.543px 0px 0.883px 0px;
    min-width: 25rem;
    width: 100%;
}

/* Formulaire */

.form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Étapes */
button[disabled] {
    cursor: not-allowed;
    opacity: .5;
}

button.disabled {
    opacity: .5;
    cursor: default;
}

.step2,
.step3,
#msgValidated {
    display: none;
}

/* Étape avec icône validée */
.form-page .button-step.valid {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green);
    color: white;
    line-height: 1;
    padding: 0;
}

.form-page .button-step.valid:hover {
    border: 1px solid white;
}

/* Page "changement de mdp" */
.password-change {
    background-color: var(--orange);
    height: 100vh;
}

.password-change .layout-section {
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacer-pop-medium);
    padding-right: var(--spacer-pop-medium);
}

.form-forgotpassword-title {
    font-size: 3rem;
    line-height: 3rem;
    text-align: center;
}

/* Recaptcha termes */
.recaptcha-terms {
    position: absolute;
    font-size: 0.8rem;
    line-height: 0.85rem;
    color: var(--black);
    text-align: center;
    bottom: calc(-1 * (var(--spacer-pop-ultra-large) - 10px));
}

.recaptcha-terms .link {
    color: var(--black);
    text-decoration: none;
}

.recaptcha-terms .link:focus,
.recaptcha-terms .link:hover {
    color: var(--gray-600);
}

.recaptcha-terms .name {
    line-height: 1.05rem;
    font-size: 1rem;
}

.no-gap {
    gap: 0 !important;
}

/** Media queries **/

/* Grand écran */
@media (min-width: 1025px) {
    .app {
        min-width: 100%;
    }

    .form-container {
        max-width: 59.2rem;
        border-radius: var(--border-radius);
        margin-left: var(--spacer-pop-ultra-large);
        margin-right: var(--spacer-pop-ultra-large);
    }

    .form-content {
        height: auto;
        overflow: initial;
    }

    .layout-section {
        width: calc(100% - 20rem);
        max-width: 2260px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Lien vers page de connexion / inscription */
.auth-switch h2 {
    margin-bottom: 0.5rem;
}

/* Extra large écran */
@media (min-width: 1920px) {
    .form-container {
        max-width: 82.4rem;
    }

    .form-container {
        padding: var(--margin-padding-gutter-double);
    }
}

/* Mobile et tablette */
@media (max-width: 1024px) {
    .form-content > * {
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }

    .form-input-nom-prenom {
        display: block;
    }

    .form-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;

        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;

        -webkit-box-pack: center;
        -ms-flex-pack: center;

        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: var(--spacer-pop-large);

    }

    .grecaptcha-badge {
        z-index: 99999;
    }

    .recaptcha-terms {
        bottom: 1rem;
    }
}

@media (min-width: 576px) {

    p,
    .title {
        font-size: var(--font-size-base);
    }

    .input-medium {
        font-size: var(--font-size-base-mobile);
    }

    .text-medium {
        font-size: 1.4rem;
    }

    .h4-like {
        font-size: 4rem;
    }
}

.auth-switch h2 {
    display: block;
    margin: 0 1rem 0;
    font-weight: normal;
    font-size: 14px;
    font-weight: 700;
}

.auth-switch {
    border-radius: 8px;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    z-index: 1;
}

.steps {
    justify-content: space-between;
    width: 100%;
}

.steps ol {
    display: flex;
    min-width: 8rem;
    gap: .2rem;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    align-items: flex-start;
}

.steps ol li {
    display: inline-block;
    list-style-type: none;
    width: 2.4rem;
    height: 2.4rem;
}

.steps ol li button {
    font-weight: bold;
}

@media (max-width: 576px) {

    .app {
        display: flex;
    }

    .form-image {
        display: none;
    }

    .footer .button-simple--gray {
        margin: 0;
    }

    .footer .button--secondary {
        margin: 0;
    }

    .footer #help-link {
        min-width: auto;
        height: auto;
        padding: 1rem;
        border-radius: 50%;
    }

    .footer #help-link .icon {
        width: 2rem;
        height: 2rem;
        margin: 0;
    }

    .footer #help-link .text {
        display: none;
    }

    .footer [class*=button--] {
        padding: 0;
    }

    .form-page {
        width: 100%;
    }

    .poplab-logo {
        margin-bottom: var(--spacer-pop-large);
    }

    .recaptcha-terms {
        bottom: 0;
    }

    .has-redirect-error .bg-overlay #login-button {
        display: block;
    }

    .has-redirect-error .form-page,
    .has-redirect-error .footer {
        display: none;
    }
}

.comment {
    max-width: 29.6rem;
    padding: var(--spacer-pop-medium);
    background: white;
    border-radius: 0.8rem;
    margin: var(--spacer-pop-ultra-large);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    /* Shadows/32 */
    box-shadow: 0px 16px 32px 0px var(--transparent-gray), 0px 24px 48px 0px var(--transparent-gray);
}

@media (max-width: 725px) {
    .comment {
        margin: var(spacer-pop-small);
    }
}

.comment-header {
    display: flex;
    gap: var(--spacer-pop-tiny);
    align-items: center;
}

.comment-body {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.comment-stars {
    border-radius: 1024px;
    border: 1px solid var(--surface-bg-uno-low, #F2E189);
    display: flex;
    align-items: flex-start;
    width: fit-content;

    * {
        fill: #EE9515 !important;
    }
}

.comment-points {
    font-size: 14px;
    font-weight: 500;
}

.comment-footer {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;

    .name {
        color: var(--gray-600);
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 5.6rem;
    background-color: var(--white);
    width: 100%;
    padding: 0.8rem 1.6rem;
    flex-shrink: 0;
}

.footer > div {
    display: flex;
    align-items: center;
    position: relative;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer .footer-ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .footer-ul li {
    margin-right: var(--spacer-pop-tiny);
}

.user-email {
    font-size: var(--font-size-base-mobile);
    font-weight: 700;
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.account-disabled {
    .title {
        color: var(--black);
        font-weight: 800;
        font-size: 20px;
        margin-bottom: 1rem;
    }

    .instruction {
        color: var(--transparent-black);
        font-weight: 300;
        font-size: 18px;
    }

    .back-button {
        margin-top: 2rem;
    }
}
