/*
 * patches.css — classes absentes de immord7/bootstrap v4.0.0,
 * extraites depuis cockpit/assets (style.css + bootstrap v4.1)
 * suite à la suppression des doublons cockpit sur les layouts publics.
 */

/* ── Police Circular Std (utilisée dans style.css pour la navbar) ── */
@font-face {
    font-family: 'Circular Std Black';
    font-style: normal;
    font-weight: normal;
    src: local('Circular Std Black'), url('/_cockpit/assets/vendor/fonts/circular-std/CircularStd-Black.woff') format('woff');
}

@font-face {
    font-family: 'Circular Std Book';
    font-style: normal;
    font-weight: normal;
    src: local('Circular Std Book'), url('/_cockpit/assets/vendor/fonts/circular-std/CircularStd-Book.woff') format('woff');
}

@font-face {
    font-family: 'Circular Std Medium';
    font-style: normal;
    font-weight: normal;
    src: local('Circular Std Medium'), url('/_cockpit/assets/vendor/fonts/circular-std/CircularStd-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Circular Std Bold';
    font-style: normal;
    font-weight: bold;
    src: local('Circular Std Bold'), url('/_cockpit/assets/vendor/fonts/circular-std/CircularStd-Bold.woff') format('woff');
}

/* ── Btn global (cockpit style.css redéfinissait .btn globalement) ── */
.btn {
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 2px;
}

/* ── Navbar brand (cockpit style.css ajoutait padding + font) ── */
.navbar-brand {
    padding: 11px 20px;
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 700;
}

/* ── Dropdown menu global (cockpit style.css) ── */
.dropdown-menu {
    background: #fff;
    font-size: 14px;
    color: #3d405c;
    border: 1px solid #e6e6f2;
}

/* ── Border utilities (ajoutées en Bootstrap 4.1) ── */
.border-bottom {
    border-bottom: 1px solid #e6e6f2 !important;
}

.border-right {
    border-right: 1px solid #e6e6f2 !important;
}

/* ── Typography ── */
.font-bold {
    font-weight: 800;
}

/* ── Custom controls (checkboxes / radios) ── */
.custom-control-label {
    margin-bottom: 0;
}

.custom-control-label::before {
    position: absolute;
    top: 7px;
    left: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #ffffff;
    border: 2px solid #d2d2e4;
}

.custom-control-label::after {
    position: absolute;
    top: 7px;
    left: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    background-color: #5969ff;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #5969ff;
    border-color: #5969ff;
}

.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #5969ff;
    border-color: #5969ff;
}

.custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #efeff6;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: none;
}

/* ── Modal centered (Bootstrap 4.1) ── */
.modal-dialog-centered {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

/* ══════════════════════════════════════════════
   PAGE LOGIN / REGISTER
   (classes cockpit style.css absentes des CSS immord7)
   ══════════════════════════════════════════════ */

/* fond avec image */
.login-immo {
    position: relative;
    background: url('/immord7/images/arti.jpg') no-repeat;
    background-size: cover;
}

/* conteneur centré */
.login-immo .login-main-contentainer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: auto;
    overflow: hidden;
}

/* panneau gauche bleu */
.login-immo .login-main-contentainer .left {
    overflow: hidden;
    position: relative;
    background-color: #01508F;
}

.login-immo .login-main-contentainer .left .container-l {
    background-color: rgba(0, 0, 0, .3);
}

/* texte centré verticalement dans le panneau gauche */
.login-immo .login-main-contentainer .left .container-l .s-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -170px);
    color: #fff;
}

.login-immo .login-main-contentainer .left .container-l .s-text .title {
    color: #fff;
    font-size: 30px;
    margin-bottom: 50px;
}

/* liens footer */
.login-immo .login-main-contentainer .footer-log .nav-link {
    color: #fff;
}

/* formulaire splash */
.splash-container {
    width: 100%;
    max-width: 375px;
    margin: auto;
}

.splash-container-cockpit {
    max-width: 800px;
}

.splash-container .card-footer-item {
    padding: 12px 18px;
}

/* carte footer items */
.card-footer-item {
    padding: 12px 35px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: center;
    display: inline-block;
}

.card-footer-item-bordered:not(:last-child) {
    border-right: 1px solid rgb(230, 230, 242);
}

/* bouton login */
.btn.login {
    padding: 10px 16px !important;
}

/* boutons réseaux sociaux */
.btn-social {
    padding: 9px;
    margin-bottom: 4px;
}

.btn-social:hover {
    opacity: .9 !important;
    color: white;
}

.btn-facebook {
    color: #fff;
    background-color: #3c73df;
    border-color: #3c73df;
}

.btn-twitter {
    color: #fff;
    background-color: #2caeff;
    border-color: #2caeff;
}

/* ── Carousel fade transition (Bootstrap 4.1) ── */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: .6s;
    transition-property: opacity;
}

.carousel-fade .carousel-item-next.carousel-item-left,
.carousel-fade .carousel-item-prev.carousel-item-right,
.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev,
.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
