/* ── Neutraliser le fond décoratif global (base_main) ────── */
/* Sur la page login, on gère le fond nous-mêmes */
body:before {
    display: none !important;
}
body:after {
    display: none !important;
}

/* ============================================================
   LOGIN — v4.0.0
   Remplace login_v3.23.0.css + loginAdditional_v3.29.15.css
   Responsive-first — suppression du grid Bootstrap 2 legacy
   ============================================================ */

/* ── Reset de base ────────────────────────────────────────── */
*, *:before, *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: #000000;
    background-color: #3C4BFF;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: farm-new, sans-serif;
}
h1 {
    font-size: 2em;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 1rem;
    margin-top: 1.5em;
}
h2 {
    font-size: 2.3em;
    text-transform: uppercase;
    color: #3C4BFF;
    margin-top: 1em;
}
a {
    color: #3c4bff;
    text-decoration: underline;
}
ul li { list-style: none; }
p { margin-bottom: .8em; }

/* ── Fond décoratif (body:before défini dans base_main) ───── */
/* Override mobile : limiter au viewport, pas 59em */
@media (max-width: 768px) {
    body:before {
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
    }
}

/* ── Bloc banner principal ────────────────────────────────── */
.main-content.banner {
    background-color: #3C4BFF;
    background-image: radial-gradient(#ffffff 5%, #3c4bff 5%);
    background-size: 35px 35px;
    min-height: 0;
    padding-bottom: 48px;
    position: relative;
    overflow: hidden;
    display: block;
}

.login-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (max-height: 810px) {
    .main-content.banner {
        max-height: unset;
        padding-bottom: 20px;
    }
}
@media (max-width: 991px) {
    .main-content.banner {
        display: block;
    }
    .main-content.banner .logo {
        position: relative;
        top: 0;
        margin: 16px 0;
    }
}
/* Mobile : supprimer la hauteur forcée */
@media (max-width: 768px) {
    .main-content.banner {
        min-height: auto !important;
        max-height: none !important;
        padding-bottom: 32px;
        align-items: flex-start;
    }
}

.main-content.banner .logo {
    width: 200px;
    display: block;
    margin: 20px auto 16px 0;
    position: relative;
    top: auto;
    left: auto;
}
.main-content.banner .msg-flash {
    max-width: 730px;
}

/* ── Logo ─────────────────────────────────────────────────── */
.login-logo-link {
    display: block;
    padding: 20px 0 8px;
    max-width: 760px;
    margin: 0 auto;
}
.login-logo {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ── Formulaire login ─────────────────────────────────────── */
.login-form-block,
.login-form-block * {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    text-align: left;
}
.login-form-block h1,
.login-form-block h2,
.login-form-block h3,
.login-form-block h4 {
    font-family: farm-new, sans-serif;
}
.login-form-block h4 {
    font-size: 1.33em;
    text-transform: uppercase;
    font-weight: 800;
    text-align: center;
}
.login-form-block p.txt-blue {
    color: #3c4bff;
    text-align: center;
}
.login-form-block {
    max-width: 730px;
    margin: 0 auto;
    padding: 0;
    box-shadow: 0 10px 40px rgba(1, 9, 100, .25);
    transition: all .3s;
    border-radius: 30px;
    overflow: hidden;
}
.login-form-block:hover {
    box-shadow: 0 10px 60px rgba(1, 9, 100, .25);
}
.login-form-block form {
    padding: 10px;
    position: relative;
}
.login-form-block .login-form-block-side {
    padding: 42px 15px;
}
.login-form-block .login-form-block-side:first-of-type {
    background-color: #ffffff;
}
.login-form-block .login-form-block-side:last-of-type {
    background-color: #f8f8f8;
}
/* Mobile : les deux colonnes en pleine largeur */
@media (max-width: 576px) {
    .login-form-block {
        border-radius: 16px;
        margin: 0 12px;
    }
    .login-form-block .login-form-block-side {
        padding: 28px 16px;
    }
}

.login-form-block .title-icon {
    width: 59px;
    height: 55px;
    margin: auto;
}
.login-form-block button {
    display: inline-block;
    font-family: farm-new, sans-serif;
    font-weight: 700;
    background-color: #3c4bff;
    border: 1px solid #ffffff;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 20px 0;
    transition: all .2s;
    cursor: pointer;
}
.login-form-block button:hover,
.login-form-block button:active {
    background-color: #e2e4ff;
    border: 1px solid #4f7cc3;
    color: #3c4bff;
}
.login-form-block input {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    background: #ffffff;
    border: 1px solid #000000;
    border-radius: 50px;
    color: #000000;
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    height: 45px;
}
.login-form-block .btn-rose {
    color: #3b4bff;
    background: #f99bff;
    font-weight: 800;
    padding: 15px 30px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    margin: 5px 0;
    border-radius: 50px;
    display: inline-block;
    transition: all .2s;
}
.login-form-block .btn-content {
    margin-top: 30px;
}
.login-form-block .list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 24px;
    font-size: 13px;
}
.login-form-block .list li:before {
    content: '';
    display: block;
    position: absolute;
    top: 0px;
    left: 9px;
    width: 9px;
    height: 18px;
    border: solid #42ff8f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.login-form-block .forgot-pwd {
    color: #3c4bff;
    text-decoration: underline;
}
.login-form-block .forgot-pwd:hover {
    text-decoration: none;
}
.login-form-block .link-btn {
    padding: 20px 10px;
    display: block;
    position: relative;
}
.login-form-block .link-btn:first-of-type {
    border-bottom: 1px solid #000000;
    margin-top: 50px;
}
.login-form-block .link-btn:after {
    content: "";
    display: block;
    clear: both;
}
.login-form-block .link-btn .btn-icon {
    width: 45px;
    display: block;
    position: absolute;
    top: calc(50% - 15px);
    right: 20px;
    transform: translate(0);
    transition: transform .3s;
}
.login-form-block .link-btn span {
    font-weight: 600;
    float: left;
    width: 70%;
    color: #000000;
    transition: color .3s;
}
.login-form-block .link-btn:hover .btn-icon {
    transform: translate(10px);
}
.login-form-block .link-btn:hover span {
    color: #3c4bff;
}
.signup-block.row h4,
.signup-block.row h5 {
    font-weight: 600;
    color: #3c4bff;
}
.signup-block.row h5 {
    text-align: center;
    text-transform: uppercase;
}
.signup-block.row .title-icon.m-size {
    width: 30px;
    height: 40px;
}
.signup-block.row .login-form-block-side .text-black {
    color: #000000;
}

/* ── Layout utilitaires ───────────────────────────────────── */
.container {
    padding: 0;
    width: 100%;
    max-width: 100% !important;
}
.wrap {
    width: 100%;
    max-width: 1140px;
    margin: auto;
}
.group {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-top: 20px;
}
.group > .group {
    margin-top: 0;
}
.col {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}
.col-3  { flex: 0 0 25%;      max-width: 25%;      padding: 0 15px; }
.col-4  { flex: 0 0 33.333%;  max-width: 33.333%;  padding: 0 15px; }
.col-5  { flex: 0 0 41.666%;  max-width: 41.666%;  padding: 0 15px; }
.col-6  { flex: 0 0 50%;      max-width: 50%;       padding: 0 15px; }
.col-7  { flex: 0 0 58.333%;  max-width: 58.333%;  padding: 0 15px; }
.col-8  { flex: 0 0 66.666%;  max-width: 66.666%;  padding: 0 15px; }
.col-9  { flex: 0 0 75%;      max-width: 75%;       padding: 0 15px; }
.col-6 > .group:first-child { margin-top: 0; }

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* ── Page compte (section marketing) ─────────────────────── */
.page-compte {
    position: relative;
    padding: 0;
    max-width: 100vw !important;
}
.page-compte:after {
    content: "";
    display: block;
    position: absolute;
    top: 48em;
    left: -5%;
    width: 340px;
    height: 339px;
    background: url('/img/landingpage/bg-lines-1.svg') no-repeat;
    background-size: cover;
    z-index: -8;
}
.page-compte:before {
    content: "";
    display: block;
    position: absolute;
    top: 6em;
    right: 0;
    width: 389px;
    height: 471px;
    background: url('/img/landingpage/bg-cercle-rose.svg') no-repeat;
    background-size: cover;
    z-index: -7;
}
.page-compte > .wrap {
    position: relative;
    padding-bottom: 3em;
    padding-top: 2em;
}

section {
    position: relative;
    padding-top: 20px;
}
.s-2 {
    position: relative;
    background-color: #ffffff;
    padding-top: 2em;
    padding-bottom: 14em;
    overflow: hidden;
}
.s-2:before, .s-2:after {
    content: "";
    display: block;
    position: absolute;
}
.s-2:before {
    width: 450px;
    height: 450px;
    background: url('/img/landingpage/circle-2.svg') no-repeat;
    background-size: cover;
    top: 20%;
    right: -22%;
}
.s-2:after {
    width: 945px;
    height: 288px;
    background: url('/img/landingpage/arrow-2.svg') no-repeat;
    background-size: cover;
    bottom: 22%;
    left: -15%;
}
.s-2 > .wrap > div {
    width: 90%;
    margin: auto;
    position: relative;
    z-index: 2;
}
.s-2 h2 { margin-bottom: .8em; }
.s-2 h3 {
    font-size: 1.6em;
    color: #454AF9;
    margin-bottom: .8em;
}
.s-2 p { color: #000000; }
.s-2 .col { position: relative; }

/* ── Bloc contact ─────────────────────────────────────────── */
.s-2 .bloc-contact {
    background-color: #3CFF8C;
    width: calc(50% + 570px);
    margin-top: 8em;
    margin-left: calc(50% - 570px);
    border-radius: 30px 0 0 30px;
    padding: 2em 0 3em;
    position: relative;
    z-index: 2;
}
.s-2 .bloc-contact h2 { margin-top: 0; }
.s-2 .bloc-contact:before {
    content: "";
    display: block;
    position: absolute;
    width: 541px;
    height: 331px;
    background: url('/img/landingpage/bg-dashed-2.png') no-repeat;
    background-size: cover;
    top: -320px;
    left: calc(50% + 460px);
}
.s-2 .bloc-contact:after {
    content: "";
    display: block;
    position: absolute;
    width: 300px;
    height: 305px;
    background: url('/img/landingpage/bg-lines-2.svg') no-repeat;
    background-size: cover;
    bottom: -108px;
    right: -20px;
}
.s-2 .bloc-contact .col-6:last-of-type {
    padding-left: 3em;
}
.el-1 {
    position: absolute;
    width: 541px;
    height: 331px;
    background: url('/img/landingpage/bg-dashed-2.png') no-repeat;
    background-size: cover;
    bottom: -10px;
    left: -5%;
    z-index: 2;
}
.bulle p { color: #3C4BFF; }
.bulle p span {
    display: inline-block;
    margin-top: 13px;
    margin-bottom: 13px;
}

/* ── Responsive tablette (≤996px) ────────────────────────── */
@media (max-width: 996px) {
    .s-2:before { width: 300px; height: 300px; top: 18%; }
    .s-2:after  { width: 765px; height: 231px; bottom: 25%; left: -25%; }
    .s-2 .bloc-contact { margin-left: 30px; width: 100%; }
    .s-2 .bloc-contact:before { display: none; }
    .s-2 .bloc-contact:after  { width: 252px; height: 249px; }
    .el-1 { width: 428px; height: 255px; }
}

/* ── Responsive mobile (≤768px) ──────────────────────────── */
@media (max-width: 768px) {
    h1, h2 { margin-top: 0; font-size: 1.8em; }

    /* Grille : toutes les colonnes en pleine largeur */
    .group {
        margin-left: 0;
        margin-right: 0;
        margin-top: 0;
    }
    .col, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 20px;
    }
    .group > .group .col-4 { margin-top: 0; }

    /* Texte */
    .text-right { text-align: center; }

    /* Page compte */
    .page-compte, .page-compte > .wrap { overflow-x: hidden; }
    .page-compte:before { width: 150px; height: 183px; top: 10em; right: -41px; }
    .page-compte:after  { display: none; }

    /* Section marketing */
    .s-2 { padding-bottom: 6em; }
    .s-2:before { display: none; }
    .s-2:after  { width: 584px; height: 175px; bottom: 25%; right: 29%; left: inherit; }
    .s-2 > .wrap > div { width: 100%; padding: 0 16px; }

    /* Images marketing */
    .s-2 img { max-width: 70% !important; height: auto !important; display: block; margin: 0 auto; }

    /* Bloc contact */
    .s-2 .bloc-contact { margin-left: 16px; width: calc(100% - 16px); }
    .s-2 .bloc-contact:before { display: none; }
    .s-2 .bloc-contact:after  { width: 183px; height: 185px; bottom: -136px; right: 0; }
    .s-2 .bloc-contact .col-6:last-of-type { padding-left: 15px; }

    .el-1 { z-index: 0; }
}
