html {
    position: relative;
    min-height: 100%;
}
body {
    background-size: cover;
    padding: 15px;
    min-height: 100%;
    background-color: #ddd;
    font-family: system-ui, sans-serif;
    font-family: 'Montserrat', 'Open sans', sans-serif; 
    font-size: 11pt;
    /* position: relative; */
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    margin-bottom: 60px; /* Pour le footer */
}
#banner {
    font-family: 'Montserrat Bold'; 
}
#mainLogo {
    width: auto;
    max-height: 150px;
    display: inline-block;
}
#mainLogo:before {
    clear: both;
}
#mainLogo:after {
    content: '';
    display: table;
    float: none;
    clear: both;
}
img {
    max-width: 100% !important;
}
/* h1#banner {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
} */
    #languageSwitcher img {
        width: 45px;
        display: inline-block;
    }

    #mainContainer .pc-container {
        margin-top: 25px;
    }
/* // SECTION GRANDS ÉCRANS */
@media (min-width: 2400px) {
    #languageSwitcher img {
        width: 80px;
    }
}
/* Pour les écrans moyens (ex : laptop), définir une taille de bloc XL intermédiaire */
@media (min-width: 1200px) and (max-width: 1800px) {
    body.scaling-100 .col-xl-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
.pull-right {
    float: right;
}

.portail-content > .row > div {
    margin-bottom: 10px;
}

.blockContenu .contenuImageContainer {
    text-align: center;
}
.blockContenu img {
    display: inline-block;
    margin: 5px auto;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-left: -15px;
    margin-right: -15px;
    min-height: 60px;
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.15);
}
    .footer #navbarCollapse {
        justify-content: center;
    }
        .footer a {
            color: #FFF;
            text-shadow: 1px rgba(0,0,0,0.5);
            text-decoration: none;
            display: inline-block;
            padding: 5px 10px;
            margin-bottom: 2px;
        }

.mr-1 {
    margin-right: 1px;
}
.ml-1 {
    margin-left: 1px;
}
.mr-2 {
    margin-right: 2px;
}
.ml-2 {
    margin-left: 2px;
}
.mr-5 {
    margin-right: 5px;
}
.ml-5 {
    margin-left: 5px;
}
/*********************************************
    ÉLÉMENTS DIVERS - UTILES  :
*********************************************/ 

/**
    FORMULAIRES  :
**/ 
.container-surnomVa {
    display: none;
}
form label + span.obl,
table label + span.obl {
    color: #6c757d;
    font-weight: 100;
}
form label + span.non-obl,
table label + span.non-obl {
    color: #96989b;
    font-weight: 100;
    font-style: italic;
    font-size: 0.9em;
    /* Version horizontal-form : */
    /* display: block; */
    /* margin-top: -1em; */
    display: inline-block;
    margin-left: 6px;
}
form label.form-control-label + span.non-obl {
    margin-top: -2px;
}
input[readonly="readonly"] {
    background-color: #f4f4f4;
}
.disabledByDefault.isDisabled {
    opacity: 0.7;
}
.form-group {
    margin-bottom: 8px;
}
.form-check label,
.form-check input {
    cursor: pointer;
}
/* CUSTOM SELECT2 */
.select2.select2-container {
    width: 100% !important;
}
    /* // Note : .form-select est la classe propre à mantis */
    .form-select + .select2-container .select2-selection {
        height: 40px;
    }
    .form-select + .select2-container .select2-selection .select2-selection__rendered {
        line-height: 2.573rem;
    }

    select.form-control, select.custom-select, select.dataTable-selector, select.dataTable-input {
        padding-right: 30px;
    }

.form-control + .select2-container--default .select2-selection--single {
    /* border-radius: 200px !important; */
    /* border-color: #e4eaec; */
    border-color: #dee2e6;
    height: 2.573rem;
    font-weight: 300;
    border-radius: 2px;
}
    .form-control + .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 2.573rem;
    }
    .form-control.round + .select2-container--default .select2-selection--single .select2-selection__rendered {
        padding-left: 20px;
    }
    .form-control + .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 2.573rem;
    }
    .form-control.round + .select2-container--default .select2-selection--single .select2-selection__arrow {
        padding-right: 20px;
    }

.hasSmallSelect2 .select2-container--default .select2-selection--single {
    height: 32px;
}
    .hasSmallSelect2 .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 32px
    }
    .hasSmallSelect2 .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 32px;
    }

/* Donner un effet visuel de readonly / disabled sur le select2 d'un select en readonly */
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}
    select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
        background: #eee;
        box-shadow: none;
    }
    
    select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow,
    .select2-selection__clear {
        display: none;
    }
/* .end CUSTOM SELECT2 */

.mb-15 {
    margin-bottom: 15px;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.disabled {
    color: #8c8c8c;
}
.btn-outline-white {
    background-color: #FFF !important;
    border: 1px solid #333;
}
.btn-outline-white:hover,
.btn-outline-white:focus {
    background-color: #E8E8E8 !important;
    border: 1px solid #333;
}
.btn-light-secondary {
    background-color: #E8E8E8 !important;
}
.btn-light-secondary:hover {
    background-color: #b5b1b1 !important;
}


/* Récupéré de bootstrap : lié aux modals */
.modal-header .modal-title {
    -ms-flex-order: 1;
    order: 1;
    margin-top: 0;
}
.modal-header .close {
    -ms-flex-order: 2;
    order: 2;
    padding: 0;
    margin-top: 1px;
}
.close {
    float: right;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: none;
    opacity: .5;
}
.modal-header .close {
    padding: 4px 8px;
    /* margin: -15px -15px -15px auto; */
    margin: -5px -5px -5px auto;
}
.modal-content button.close {
    border: 1px solid rgba(0,0,0,0.30);
    background-color: rgba(0,0,0,0.05);
}


/*========================================*/
/*======Animation checkmark success=======*/
/*========================================*/
.success-animation { 
    margin: 10px auto;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb71b;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb71b;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    position:relative;
    top: 5px;
    right: 5px;
    margin: 0 auto;
}
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb71b;
    fill: #fff;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #4bb71b;
    }
}
/*========================================*/
/*====FIN Animation checkmark success=====*/
/*========================================*/

/*========================================*/
/*=====Redirection Mobile/Desktop=========*/
/*========================================*/
/* Par défaut (mobile - écrans < 768px) : masquer le countdown, montrer le bouton manuel */
.redirect-desktop {
    display: none;
}
.redirect-mobile {
    display: block;
}

/* Desktop (écrans >= 768px) : inverse */
@media (min-width: 768px) {
    .redirect-desktop {
        display: block;
    }
    .redirect-mobile {
        display: none;
    }
}

/* Amélioration du bouton mobile */
.redirect-mobile .btn-block {
    display: block;
    width: 100%;
}
/*========================================*/
/*===FIN Redirection Mobile/Desktop=======*/
/*========================================*/

/*========================================*/
/*=====Toggle Password Visibility=========*/
/*========================================*/
.password-wrapper {
    position: relative;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 45px;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #6c757d;
    font-size: 16px;
    line-height: 1;
}
.password-toggle:hover {
    color: #495057;
}
.password-toggle:focus {
    outline: none;
}
/*========================================*/
/*===FIN Toggle Password Visibility=======*/
/*========================================*/

/*========================================*/
/*=====Windows/Browser Scaling Fixes======*/
/*========================================*/
/*
 * Ajustement des colonnes Bootstrap pour les écrans avec scaling Windows
 * Les classes scaling-* sont ajoutées via JavaScript sur le body
 * IMPORTANT: Ces règles ne doivent s'appliquer que sur desktop (>= 1200px)
 * car sur mobile devicePixelRatio est élevé (2-3) pour les écrans Retina
 */

/* Appliquer les corrections de scaling uniquement sur grands écrans */
@media (min-width: 1200px) {
    /* Scaling 125% : élargir les colonnes */
    body.scaling-125 .col-xl-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    body.scaling-125 .col-xl-6 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    /* Scaling 150% et plus : encore plus large */
    body.scaling-150 .col-xl-3,
    body.scaling-175 .col-xl-3,
    body.scaling-200 .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    body.scaling-150 .col-xl-6,
    body.scaling-175 .col-xl-6,
    body.scaling-200 .col-xl-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    body.scaling-150 .col-lg-4,
    body.scaling-175 .col-lg-4,
    body.scaling-200 .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/*========================================*/
/*===FIN Windows/Browser Scaling Fixes====*/
/*========================================*/