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

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

body {
    height: 100%;
    margin: 0;
    background-color: #fff;
    color: #000;
    font-size: 1.2rem;
    font-family: 'Poppins', '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 10000s ease-in-out 0s,
        box-shadow 10000s ease-in-out 0s !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0) inset !important;
    -webkit-text-fill-color: rgb(134, 134, 134) !important;
}

::-webkit-input-placeholder,
:-moz-placeholder,
::-moz-placeholder,
:-ms-input-placeholder {
    color: rgb(134, 134, 134) !important;
    opacity: 1 !important;
}

.nowrap {
    white-space: nowrap;
}

/* Popup modale */
#modalRecupId {
    display: none;
    width: 600px;
}

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

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

/* ===== PAGE LAYOUT ===== */

#page {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    padding: 0;
    font-size: 1.2rem;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 0 2.5rem 3rem;
    overflow: hidden;
}

#logo {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    margin-top: 2rem;
}

#logo img {
    max-width: 280px;
    height: auto;
    border: 0;
}

/* ===== MAIN 2-COLUMN LAYOUT (card + visual) ===== */

.main-layout {
    display: flex;
    flex: 1;
    gap: 2rem;
    align-items: stretch;
    overflow: hidden;
}

/* ===== RED CARD ===== */

.red-card {
    background-color: #e4002b;
    border-radius: 34px;
    padding: 7rem 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    flex: 1;
}

header {
    margin-bottom: 1.5rem;
}

h2 {
    font-family: 'ZTTalk', 'Arial', sans-serif;
    margin: 0;
    color: #000;
    font-size: 8rem;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    text-align: left;
    line-height: 0.8;
}

h3 {
    font-family: 'ZTTalk', 'Arial', sans-serif;
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    line-height: 1.2;
    text-align: left;
}

.instructions {
    font-family: 'Poppins', 'Arial', sans-serif;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 300;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.instructions strong {
    font-weight: bold;
}

/* ===== FORM CONTAINER (white box) ===== */

.form-container {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

#fields {
    box-sizing: border-box;
}

#fields .field {
    position: relative;
    margin: 0;
    height: 6.5rem;
    max-width: 100%;
}

#fields .field:not(:last-child) {
    border-bottom: 1px solid rgb(220, 220, 220);
}

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

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

#fields input::placeholder {
    color: rgb(170, 170, 170);
    font-weight: 300;
}

#fields input[type='email'],
#fields input[type='text'],
#fields input[type='password'] {
    font-size: 1.4rem !important;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    font-family: 'ZTTalk', 'Arial', sans-serif !important;
    color: rgb(51, 51, 51) !important;
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 5.5rem;
    width: calc(100% - 5.5rem);
    height: 100% !important;
    border-bottom: 0;
    box-sizing: border-box;
    padding: 2.2rem 1.5rem 2.2rem 0.5rem;
}

#fields input[type='email']:focus,
#fields input[type='text']:focus,
#fields input[type='password']:focus {
    color: #333 !important;
    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;
    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;
}

#fields input[type='email'] + span.label,
#fields input[type='text'] + span.label,
#fields input[type='password'] + span.label {
    color: rgb(51, 51, 51) !important;
    font-size: 1.3rem !important;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    font-family: 'ZTTalk', 'Arial', sans-serif !important;
    position: absolute;
    text-align: left;
    left: 6rem;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    z-index: 0;
}

#fields input[type='email'] + span.label.active,
#fields input[type='text'] + span.label.active,
#fields input[type='password'] + span.label.active {
    -webkit-transform: translateY(calc(-50% - 14px)) scale(0.9);
    transform: translateY(calc(-50% - 14px)) scale(0.9);
}

/* ===== CARD ACTIONS (forgot password + button) ===== */

.card-actions {
    margin-top: 1.2rem;
}

.oubli-wrapper {
    text-align: right;
    margin-bottom: 1.2rem;
}

.oubli_form {
    font-family: 'Poppins', 'Arial', sans-serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: #000;
    transition: all 0.3s;
    display: inline;
    text-decoration: underline;
}

.oubli_form span {
    text-decoration: underline;
}

.oubli_form:hover {
    color: #fff;
}

.button_form {
    height: 4.5rem;
    width: 17rem;
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    font-family: 'ZTTalk', 'Arial', sans-serif;
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    font-size: 1.54rem;
    color: #fff;
    background-color: #000;
    border-radius: 7px;
    transition: all 0.3s ease-in-out;
    letter-spacing: 0.05rem;
}

.button_form:hover {
    background-color: #fff;
    color: #000;
}

.button_form .valid {
    padding-top: 0.2rem;
}

.button_form .arrow {
    font-size: 4rem;
    line-height: 1;
    font-weight: 500;
}

/* ===== CENTER VISUAL ===== */

.center-visual {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 2rem;
}

.center-visual img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
}

/* ===== PHOTOS COLUMN ===== */

.photos-column {
    flex: 0 0 24%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.photos-column img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    border-radius: 0 0 0 14px;
}

.photos-column img:last-child {
    border-radius: 0;
}

/* ===== RESPONSIVE ===== */

/* Modal responsive - all small screens */
@media screen and (max-width: 959px) {
    #modalRecupId {
        width: 90% !important;
        max-width: 500px;
        border-radius: 16px;
        overflow: hidden;
    }

    #modalRecupId iframe {
        height: 260px;
    }
}

/* Mobile - 0 to 599px */
@media screen and (max-width: 599px) {
    html {
        font-size: 10px;
    }

    #page {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow: hidden;
    }

    .left-content {
        flex: 1;
        min-height: 0;
        padding: 1.5rem 1.5rem 0;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    #logo {
        flex-shrink: 0;
        padding-left: 0;
        margin-top: 3.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    #logo img {
        max-width: 225px;
    }

    .main-layout {
        flex-direction: column;
        flex: 1;
        gap: 0;
        overflow: visible;
        justify-content: flex-start;
    }

    .red-card {
        padding: 5rem 2rem 2rem;
        border-radius: 22px;
        flex: none;
        width: 100%;
        height: 519px;
    }

    header {
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 6rem;
        line-height: 0.9;
    }

    h3 {
        font-size: 1.9rem;
        margin-top: 0.4rem;
    }

    .instructions {
        margin-top: 4rem;
        margin-bottom: 2.5rem;
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .instructions br {
        display: none;
    }

    .form-container {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    #fields .field {
        height: 5.5rem;
    }

    #fields label {
        width: 4.5rem;
    }

    #fields label img {
        height: 1.7rem;
    }

    #fields input[type='email'],
    #fields input[type='text'],
    #fields input[type='password'] {
        left: 4.5rem;
        width: calc(100% - 4.5rem);
        font-size: 1.2rem !important;
        padding: 1.8rem 1rem 0 0.5rem;
    }

    #fields input[type='email'] + span.label,
    #fields input[type='text'] + span.label,
    #fields input[type='password'] + span.label {
        left: 5rem;
        font-size: 1.15rem !important;
    }

    .card-actions {
        margin-top: 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .oubli-wrapper {
        text-align: center;
        margin-bottom: 0;
        order: 2;
    }

    .oubli_form {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .oubli_form span {
        text-decoration: underline;
    }

    .oubli_form:hover {
        color: #fff;
    }

    .button_form {
        height: 5rem;
        width: 100%;
        justify-content: center;
        font-size: 1.45rem;
        border-radius: 12px;
        gap: 1rem;
        order: 1;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .button_form .arrow {
        font-size: 3rem;
    }

    .center-visual {
        display: none;
    }

    .photos-column {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 0.6rem;
        padding: 1rem 1.5rem;
        height: 13vh;
        min-height: 75px;
    }

    .photos-column img {
        height: 100%;
        width: 33.33%;
        flex: 1;
        object-fit: cover;
        border-radius: 12px;
    }

    .photos-column img:last-child {
        border-radius: 12px;
    }

    #modalRecupId {
        width: 92% !important;
        max-width: none;
    }
}

/* Small mobile - very narrow screens */
@media screen and (max-width: 374px) {
    html {
        font-size: 8.5px;
    }

    #logo {
        margin-top: 2rem;
    }

    #logo img {
        max-width: 180px;
    }

    h2 {
        font-size: 5rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .red-card {
        padding: 3.5rem 1.8rem 1.8rem;
        height: auto;
    }

    .instructions {
        margin-top: 2.5rem;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }

    .button_form {
        height: 4.8rem;
        font-size: 1.35rem;
    }
}

/* Tablet portrait - 600px to 959px */
@media screen and (min-width: 600px) and (max-width: 959px) {
    html {
        font-size: 12px;
    }

    #page {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        overflow: hidden;
    }

    .left-content {
        flex: 1;
        min-height: 0;
        padding: 2rem 3rem 0;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    #logo {
        flex-shrink: 0;
        padding-left: 0;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }

    #logo img {
        max-width: 260px;
    }

    .main-layout {
        flex-direction: column;
        flex: 1;
        gap: 0;
        overflow: visible;
        justify-content: flex-start;
        width: 100%;
    }

    .red-card {
        padding: 6rem 3rem 3rem;
        border-radius: 26px;
        flex: 1;
        width: 100%;
    }

    header {
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 9rem;
    }

    h3 {
        font-size: 2.8rem;
    }

    .instructions {
        margin-top: 5rem;
        margin-bottom: 4rem;
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .form-container {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    #fields .field {
        height: 7rem;
    }

    #fields label {
        width: 5.5rem;
    }

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

    #fields input[type='email'] + span.label,
    #fields input[type='text'] + span.label,
    #fields input[type='password'] + span.label {
        font-size: 1.4rem !important;
    }

    .card-actions {
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .oubli-wrapper {
        text-align: center;
        margin-bottom: 0;
        order: 2;
    }

    .oubli_form {
        font-size: 1.35rem;
        color: rgba(255, 255, 255, 0.85);
    }

    .oubli_form:hover {
        color: #fff;
    }

    .button_form {
        height: 6rem;
        width: 100%;
        justify-content: center;
        font-size: 1.7rem;
        border-radius: 12px;
        gap: 1rem;
        order: 1;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .button_form .arrow {
        font-size: 3.5rem;
    }

    .center-visual {
        display: none;
    }

    .photos-column {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem 3rem;
        height: 15vh;
        min-height: 100px;
    }

    .photos-column img {
        height: 100%;
        width: 33.33%;
        flex: 1;
        object-fit: cover;
        border-radius: 14px;
    }

    .photos-column img:last-child {
        border-radius: 14px;
    }
}

/* Tablet landscape / small desktop - 960px to 1199px */
@media screen and (min-width: 960px) {
    html {
        font-size: 10px;
    }

    #logo img {
        max-width: 250px;
    }
}

@media screen and (min-width: 960px) and (max-width: 1199px) {
    .left-content {
        padding: 2.5rem 0 2.5rem 3rem;
        overflow: hidden;
    }

    #logo {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding-left: 1.5rem;
    }

    .main-layout {
        gap: 2rem;
    }

    .red-card {
        padding: 5rem 2.5rem 2rem;
        border-radius: 28px;
        flex: 0 0 40%;
    }

    h2 {
        font-size: 6rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    .instructions {
        margin-top: 2rem;
        margin-bottom: 2.5rem;
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .form-container {
        border-radius: 10px;
    }

    #fields .field {
        height: 5.5rem;
    }

    .button_form {
        height: 4rem;
        width: 15rem;
        font-size: 1.3rem;
        gap: 1.5rem;
        padding: 0 1.5rem;
        border-radius: 8px;
    }

    .button_form .arrow {
        font-size: 3rem;
    }

    .photos-column {
        flex: 0 0 22%;
        gap: 1.5rem;
    }

    .photos-column img {
        border-radius: 14px 0 0 14px;
    }

    .photos-column img:last-child {
        border-radius: 14px 0 0 14px;
    }

    .center-visual {
        padding-left: 1rem;
        flex: 1;
    }

    .center-visual img {
        max-height: 60%;
    }

    .oubli_form {
        font-size: 1.1rem;
    }
}

/* Desktop - 1200px to 1599px */
@media screen and (min-width: 1200px) and (max-width: 1599px) {
    html {
        font-size: 10px;
    }

    #logo img {
        max-width: 280px;
    }

    .left-content {
        padding: 1.5rem 0 1.5rem 2.5rem;
    }

    #logo {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
    }

    .red-card {
        flex: 0 0 36%;
        padding: 10rem 2.5rem 2rem;
    }

    .photos-column {
        flex: 0 0 22%;
    }

    .center-visual img {
        max-height: 60%;
    }

    .photos-column img {
        border-radius: 14px 0 0 14px;
    }

    .photos-column img:last-child {
        border-radius: 14px 0 0 14px;
    }
}

/* Large desktop - 1600px+ */
@media screen and (min-width: 1600px) {
    html {
        font-size: 11.5px;
    }

    .red-card {
        flex: 0 0 38%;
    }

    #logo img {
        max-width: 100%;
    }
}

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

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

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