@charset "UTF-8";

/* ============================================
   LA PLATEFORME DE L'EMPLOI - Login Page
   Font: Inter | Theme: Purple gradient
   ============================================ */

:root {
    --purple-dark: #3D2066;
    --purple-mid: #5B3A8C;
    --purple-light: #7B5EA7;
    --purple-border: #6B5B95;
    --gradient-btn: linear-gradient(135deg, #8B6BB5 0%, #C76B98 50%, #D4789E 100%);
    --gradient-btn-hover: linear-gradient(135deg, #7B5BA5 0%, #B75B88 50%, #C4688E 100%);
    --text-dark: #2D2D3D;
    --text-body: #282828;
    --text-placeholder: #A0A0B0;
    --border-input: #E0E0E8;
    --bg-input: #F8F8FA;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /*height: 100%;*/
    font-size: clamp(11px, 1vw, 16px);
}

/*body {*/
/*    height: 100%;*/
/*    margin: 0;*/
/*    background-color: var(--white);*/
/*    color: var(--text-dark);*/
/*    font-size: 1rem;*/
/*    font-family: var(--font);*/
/*    -webkit-font-smoothing: antialiased;*/
/*    -moz-osx-font-smoothing: grayscale;*/
/*}*/

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 var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}

/* ---- Modal ---- */
#modalRecupId {
    display: none;
    width: 600px;
}

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

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

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

#page {
    align-content: center;
    background: url(../images/fond.png) no-repeat 96% 50% fixed !important;
    -webkit-background-size: cover !important;
    background-size: cover !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
}

/* ---- Left content panel ---- */
.contenu {
    width: 100%;
    /*background-color: var(--white);*/
    flex: 1 1 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---- Card container ---- */
.contenu-bg {
    /* background: #ffffff; */
    max-width: 580px;
    width: 100%;
    padding: 3rem 2.5rem;
    border-radius: 2rem;
    /*border: 2.5px solid var(--purple-border);*/
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.contenu-bg::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 4px;
    right: 4px;
    bottom: 0px;
    background: #ffffff;
    border-radius: 2rem;
    z-index: -1;
}
.contenu-bg::after {
    content: "";
    position: absolute;
    top: -18px;
    left: -2px;
    right: -2px;
    bottom: -7px;
    background: #726db2;
    border-radius: 2rem;
    z-index: -2;
}

/* ---- Right background panel ---- */
.bg {
    display: none;
    order: 1;
    width: 50%;
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
}

.bg-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ---- Floating images on right ---- */
.floating-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-img {
    position: absolute;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(59, 32, 102, 0.25);
    border: 6px solid #ffffff4d;
}

.float-img-1 {
    width: 19.4rem;
    top: 42%;
    left: 7%;
    /*animation: floatY 6s ease-in-out infinite;*/
}

.float-img-2 {
    width: 19.4rem;
    top: 68%;
    right: 22%;
    /*animation: floatY 7s ease-in-out infinite 1s;*/
}

.float-img-3 {
    width: 11.9rem;
    top: 24%;
    right: 20%;
    /*animation: floatY 5s ease-in-out infinite 0.5s;*/
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   HEADER / LOGO
   ============================================ */

header {
    width: 100%;
    /* margin-bottom: 1.5rem; */
}

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

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 0;
}

.logo-line1 {
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--purple-dark);
    text-transform: uppercase;
    letter-spacing: 6px;
}

.logo-line2 {
    font-family: var(--font);
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--purple-dark);
    margin: 2px 0;
}

.logo-line3 {
    font-family: var(--font);
    font-weight: 900;
    font-size: 3.2rem;
    color: var(--purple-dark);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.logo-o {
    display: inline-block;
    color: var(--purple-dark);
}

/* ---- Instructions text ---- */
.instructions {
    text-align: center;
    color: var(--text-body);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 5rem;
}

/* ============================================
   FORM
   ============================================ */

.inscription-lpe {
    width: 100%;
}

.inscription-lpe form {
    width: 100%;
}

.fields-row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3.75rem;
}

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-label {
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--purple-mid);
    text-transform: uppercase;
    /* letter-spacing: 1.5px; */
    padding-left: 0.9rem;
}

.field-input {
    position: relative;
}

.field-input input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border-input);
    border-radius: 10px;
    background: var(--bg-input);
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.field-input input::placeholder {
    color: var(--text-placeholder);
    font-style: normal;
    font-weight: 400;
}

.field-input input:focus {
    border-color: var(--purple-light) !important;
    box-shadow: 0 0 0 3px rgba(91, 58, 140, 0.1);
    background: var(--white);
}

.field-input input.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Override Materialize styles */
input:not([type]),
input[type="text"]:not(.browser-default),
input[type="password"]:not(.browser-default),
input[type="email"]:not(.browser-default),
input[type="tel"]:not(.browser-default),
input[type="url"]:not(.browser-default),
input[type="time"]:not(.browser-default),
input[type="date"]:not(.browser-default),
input[type="number"]:not(.browser-default),
input[type="search"]:not(.browser-default),
textarea.materialize-textarea {
    background: none !important;
    /* border-bottom: none !important; */
    /* box-shadow: none !important; */
    margin: 0 !important;
    height: 3.7rem!important;
    border: 1px solid #cacaca;
    border-radius: 1rem;
    padding: 0.55rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 300;
}

input[type="text"]:not(.browser-default):focus:not([readonly]),
input[type="email"]:not(.browser-default):focus:not([readonly]),
input[type="tel"]:not(.browser-default):focus:not([readonly]),
input[type="password"]:not(.browser-default):focus:not([readonly]) {
    /*border-bottom: none !important;*/
    box-shadow: none !important;
}

/* ---- Submit button ---- */
.submit-row {
    /* margin-top: 1.5rem; */
}

.button-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 4.6rem;
    background: var(--gradient-btn);
    color: var(--white);
    font-family: var(--font);
    font-weight: 700;
    font-size: 1.4rem;
    /* letter-spacing: 1.5px; */
    text-transform: uppercase;
    border: none;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(139, 107, 181, 0.35);
}

.button-submit:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 6px 28px rgba(139, 107, 181, 0.5);
    transform: translateY(-1px);
    color: var(--white);
}

.button-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(139, 107, 181, 0.3);
}

.button-submit span {
    pointer-events: none;
}

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

/* Mobile small */
@media screen and (max-width: 480px) {
    html {
        font-size: 12px;
    }

    .instructions br {
        display: none;
    }

    .contenu {
        padding: 1rem;
    }

    .contenu-bg {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .logo-line1 {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .logo-line3 {
        font-size: 2.4rem;
    }

    .button-submit {
        height: 50px;
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* Tablet */
@media screen and (min-width: 481px) and (max-width: 959px) {
    /*html {*/
    /*    font-size: 14px;*/
    /*}*/

    .contenu-bg {
        max-width: 560px;
        padding: 2.5rem;
    }

    .fields-row {
        flex-direction: row;
        gap: 1rem;
    }
}

/* Desktop */
@media screen and (min-width: 960px) {
    /*html {*/
    /*    font-size: 14px;*/
    /*}*/

    #page {
        background: url(../images/fond-perso.png) no-repeat 96% 50% fixed !important;
        -webkit-background-size: cover !important;
        background-size: cover !important;
        flex-direction: row;
        min-height: 100vh;
    }

    .contenu {
        width: 55%;
        flex: 0 0 55%;
        padding: 3rem 1.5rem;
        min-width: 0;
    }

    .contenu-bg {
        max-width: 580px;
        padding: 3rem 3rem;
    }

    .bg {
        display: block;
        width: 45%;
        flex: 0 0 45%;
    }

    .fields-row {
        flex-direction: row;
        gap: 2.3rem;
    }
}

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

    .contenu {
        align-items: flex-end;
    }

    /*.bg {*/
    /*    width: 55%;*/
    /*    flex: 0 0 55%;*/
    /*}*/

    .contenu-bg {
        max-width: 822px;
        padding: 3.8rem 3.5rem;
        /* margin-top: -0.7rem; */
    }
}

/* Extra large */
@media screen and (min-width: 1600px) {
    /*html {*/
    /*font-size: 16px;*/
    /*}*/

    .contenu {
        width: 50.8%;
        flex: 0 0 50.8%;
    }

    .bg {
        width: 49.2%;
        flex: 0 0 49.2%;
    }
}

/* IE fallbacks */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    #page {
        display: flex;
    }

    .contenu,
    .bg {
        min-height: 100vh;
    }
}