@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

body {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    color: #3E3E3E;
    background: #EFEFEF !important;
    height: 100vh;
    width: 100vw;
}

h1,
h2,
h3,
h4,
h5 {
    color: #111156;
    font-weight: bold;
    margin: 0;
}

h1 {
    font-size: 20px;
}

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

.portail-unique-verification-mail {
    padding: 20px 0;
}

.portail-unique-verification-mail .portail-unique-back-to-login-link {
    margin-bottom: 10vh;
}

.instruction-title {
    margin-bottom: 20px;
}

.instruction {
    margin-bottom: 10px;
}

.instruction:last-child {
    margin-bottom: 10vh;
}

.portail-unique-page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.portail-unique-page .row {
    margin-left: 0;
    margin-right: 0;
}

.kc-page-title,
#kc-page-title {
    margin: 0;
    display: none;
}

.kc-info,
#kc-info {
    display: none;
}

.hidden {
    display: none;
}

.portail-unique-button {
    border-radius: 15px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: none;
}

.portail-unique-button-primary {
    background: #111156;
    color: white;
}

.portail-unique-button-secondary {
    background: #038882;
    color: white;
}

.portail-unique-button-white {
    border: 1px solid #111156;
    color: #111156;
}

.portail-unique-validate {
    width: 177px;
    margin-top: 22px;
    margin-bottom: 22px;
}

a,
a:hover,
a:visited {
    font-weight: bold;
    color: #111156;
    font-size: 12px;
}

.portail-unique-space-between {
    display: flex;
    justify-content: space-between;
}


.portail-unique-checkbox {
    display: flex;
    align-items: center;
}

.portail-unique-checkbox .material-icons {
    font-size: 16px;
    color: #707070;
}

.portail-unique-checkbox input {
    display: none;
}

.portail-unique-checkbox-checked {
    color: #038882 !important;
}

.portail-unique-input {
    color: #3E3E3E;
    margin-bottom: 14px;
}

.portail-unique-input label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block !important;
}

.portail-unique-input-field {
    display: flex;
    align-items: center;
    border: 1px solid #707070;
    padding: 0 10px;
    flex: 1;
    height: 32px;
    border-radius: 4px;
}

input[readonly], .readonly  {
    background: #ccc;
}

.input-link{
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: underline;
    font-weight: bold;
    color: #111156;
    background: transparent;
    cursor: pointer;
}

.required{
    color:red;

}


.portail-unique-input-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #3E3E3E;
    flex: 1;
}

.portail-unique-input-password {
    color: #3E3E3E;
    margin-bottom: 14px;
}

.portail-unique-input-password label {
    font-weight: bold;
    margin-bottom: 4px;
    display: block !important;
}

.portail-unique-input-password-field {
    display: flex;
    align-items: center;
    border: 1px solid #707070;
    padding: 0 10px;
    flex: 1;
    height: 32px;
    border-radius: 4px;
}

.portail-unique-input-password-field input {
    background: transparent;
    border: none;
    outline: none;
    color: #3E3E3E;
    flex: 1;
}

.portail-unique-input-password-field .material-icons {
    font-size: 16px;
    cursor: pointer;
}

.portail-unique-validity-password {
    padding: 0 14px;
    margin-bottom: 14px;
}

.portail-unique-validity-password-field {
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.portail-unique-validity-password-field .material-icons {
    font-size: 12px;
    margin-right: 4px;
}

.portail-unique-logo {
    color: #111156;
    font-size: 14px;
    font-weight: bold;
    margin: 22px 0;
    width: fit-content;
}

.portail-unique-logo img {
    vertical-align: middle;
    margin-right: 14px;
}

.portail-unique-description {
    font-size: 20px;
    color: white;
    font-weight: bold;
    max-width: 25vh;
    min-width: 320px;
}

.portail-unique-en-savoir-plus {
    font-size: 12px;
    display: block;
    color: white;
    text-decoration: underline;
    margin-top: 10px;
}

.portail-unique-footer {
    background: #3E3E3E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portail-unique-footer-container {
    flex: 1;
    max-width: 1000px;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
}

.portail-unique-footer-container img {
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 15px;
}

.portail-unique-footer-container a,
.portail-unique-footer-container a:hover,
.portail-unique-footer-container a:visited {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.portail-unique-footer-links {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
}

.portail-unique-autres-portails {
    margin-top: auto;
}

.portail-unique-autres-portails-link {
    padding: 5px 14px;
    flex: 1;
    margin: 0 40px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #111156;
    color: #111156;
    border-radius: 60px;
    cursor: pointer;
}

.error {
    color: #E94463;
}

.valid {
    color: #038882;
}

.input-error {
    color: #E94463;
    margin-top: 4px;
    margin-left: 14px;
}

.portail-unique {
    flex: 1;
    background-size: cover;
    background-position-x: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.portail-unique.portail-unique-inscription-image {
    background-image: url("../img/inscription.jpg");
}

.portail-unique.portail-unique-authentification-image {
    background-image: url("../img/authentification.jpg");
}

.portail-unique-left-side {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    padding-left: 64px;
    padding-bottom: 8vh;
    padding-top: 8vh;
    text-shadow: 0 0 6px rgba(0, 0, 0, .16);
}

.portail-unique-right-side {
    display: flex;
    flex-flow: column;
    justify-content: center;
    background: white;
    height: 100%;
}

.portail-unique-form {
    display: flex;
    flex-flow: column;
    flex: 1;
    justify-content: center;
    margin-top: 22px;
}

.portail-unique-form .panel-body {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .08);
}

.portail-unique-form-title {
    color: #111156;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.portail-unique-right-side .portail-unique-checkbox {
    margin-bottom: 14px;
}

.portail-unique-back-to-login-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.mfa-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    justify-items: center;
}

.mfa-title {
    font-size: 22px;
    font-weight: 600;
    color: #111156;
    margin-bottom: 10px;
}

.mfa-subtitle {
    font-size: 16px;
    color: #707070;
    margin-bottom: 20px;
}

.mfa-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 25px 50px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);

}

.mfa-icon {
    height: 99px;
    min-height: 99px;
}

.mfa-label {
    font-size: 18px;
    font-weight: 600;
    color: #707070;
    margin-bottom: 15px;
    text-align: start;
}

.code-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.code-input {
    width: 60px;
    height: 70px;
    border: 2px solid #bcbcbc;
    border-radius: 12px;
    font-size: 36px;
    text-align: center;
    transition: all 0.2s ease;
    outline: none;
}

.code-input:focus {
    border-color: #2d6cff;
    box-shadow: 0 0 0 3px rgba(45,108,255,0.15);
}

.mfa-expire, .mfa-remember {
    font-size: 18px;
    color: #707070;
}

.mfa-expire strong {
    font-weight: bold;
}

.mfa-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.resend-btn {
    background: transparent;
    border: none;
    color: #111156;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.resend-btn:hover {
    text-decoration: underline;
}

.validate-btn {
    background: #111156;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 10px 70px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.validate-btn:hover {
    opacity: 0.92;
}

.back-link {
    display: inline-block;
    margin-top: 25px;
    color: #111156;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    display: inline-block;
    margin-top: 25px;
    color: #111156;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
}

.hidden-otp {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alert-error {
    background: #ffe7e7;
    border: 1px solid #ffb5b5;
    color: #b10000;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 18px;
}


@media screen and (max-width: 991px) {

    .portail-unique-left-side {
        padding: 2rem;
        height: 200px;
    }

    .portail-unique-form-title {
        color: #111156;
        font-size: 20px;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .portail-unique-form {
        padding: 0;
    }

    .portail-unique-right-side {
        height: max-content;
    }

    .portail-unique-autres-portails {
        margin-bottom: 22px;
    }

    .portail-unique-autres-portails-link {
        margin: 14px 15px;
    }

    .portail-unique-footer {
        padding: 15px;
    }

    .portail-unique-footer-links div {
        margin-bottom: 4px;
    }
    .mfa-card {
        padding: 40px 20px;
    }

    .mfa-title {
        font-size: 20px;
    }

    .mfa-subtitle {
        font-size: 14px;
    }

    .code-container {
        gap: 8px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 24px;
    }

    .mfa-footer {
        flex-direction: column;
        gap: 30px;
    }

    .validate-btn {
        width: 100%;
    }
}

.alert {
    padding: 10px 14px;
    border: 1px solid;
    margin-bottom: 14px;
    border-radius: 5px;
}

.alert-error {
    border-color: #E94463;
    background: rgba(233, 68, 99, .16);
    color: #E94463;
}

.alert-success {
    border-color: #5dc664;
    background: rgba(92, 198, 99, .16);
    color: #5dc664;
}

.espace-web {
    margin-top: 14px;
}

input:invalid+#invalid-pattern:after {
    content: 'Le format n\'est pas valide.';
}

.portail-unique-assistance{
    background: #4EB3C5;
    border-radius: 20px;
    height: 48px;
    width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none !important;
}

.portail-unique-assistance-logo{
    font-size: 38px;
    margin-right: 4px;
}

.portail-unique-assistance-info{
    font-size: 10px;
}

.besoin-aide{
    padding: 22px 14px 0;
}

.besoin-aide-titre{
    margin-bottom:10px;
}

// MODAL
   .modal-backdrop.fade{
       opacity: 0.5 !important;
   }

.modal-backdrop.show{
    opacity: 0.5 !important;
}

.modal.show {
    opacity: 1 !important;
}

.modal-content{
    max-width: 570px !important;
}

.modal-title {
    font-size: 1.5em;
    color: #111156;
    font-weight: bold;
    margin: 0;
    line-height: 1.428571429;
}

.modal.fade .modal-dialog {
    -webkit-transform: translate(0,50%);
    -ms-transform: translate(0,50%);
    transform: translate(0,50%);
    -webkit-transition: -webkit-transform .3s ease-out;
    -moz-transition: -moz-transform .3s ease-out;
    -o-transition: -o-transform .3s ease-out;
    transition: transform .3s ease-out;
}


.clearfix:before, .clearfix:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical>.btn-group:before, .btn-group-vertical>.btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-footer:before, .modal-footer:after {
    content: none;
    display: table;
}


.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    float: none;
}

.msgInformation{
    font-size: 1.1em !important;
    color: #4EB3C5;
    font-style: italic;
    font-weight: bold;
}

a.msgInformation{
    font-size: 1.1em !important;
    color: #111156;
    font-style: italic;
    font-weight: bold;
}

a.msgInformation:hover{
    cursor: pointer;
}

.icon-info{
    color: #4EB3C5;
    position: absolute;
    padding-left: 5px;
}

.tooltip-toggle::before {
    position: absolute;
    background-color: #4EB3C5;
    border-radius: 5px;
    color: #fff;
    content: attr(data-tooltip);
    padding: 1rem;
    text-transform: none;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    width: 300px;
    left: 50%;
    transform: translate(-50%, calc(-100% - 10px));
}

.tooltip-toggle::after {
    position: absolute;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #4EB3C5;
    content: " ";
    font-size: 0;
    line-height: 0;
    transform: translate(-50%, calc(-100% - 5px));
    left: 50%;
}

.tooltip-toggle::before,
.tooltip-toggle::after {
    color: #efefef;
    font-family: monospace;
    font-size: 1em;
    opacity: 0;
    pointer-events: none;
    text-align: center;
}

.tooltip-toggle:hover::before,
.tooltip-toggle:hover::after {
    opacity: 1;
    -webkit-transition: all 0.75s ease;
    transition: all 0.75s ease;
}

.modal-body{
    font-size: 14px !important;
    line-height: 2;
    text-align: justify;
}

.modal-body a{
    font-size: 14px !important;
    color: #428bca;
}

.error-message {
    color: #E94463;
    background-color: #fdecea;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}
