:root {
    --home-carousel-height: 25rem;
    --home-carousel-caption-bottom: 2rem;

    /* ckeditor css */
    --ck-z-default: 100;
    --ck-z-panel: calc(var(--ck-z-default) + 999);
}

.navbar {
    background-color: var(--evlg-header-bg);
}

.navbar .nav-link {
    font-size: 1.2rem;
}

.navbar-logo {
    max-height: 100px;
    max-width: 150px;
    height: auto;
    padding: 5px;
}

.navbar #navbar-responsive-menu {
    padding: 5px;
    background-color: var(--evlg-header-bg);
    z-index: 9999;
}

.navbar .navbar-toggler {
    background-color: var(--evlg-tertiary);
}

.carousel .carousel-control-prev, .carousel .carousel-control-next {
    opacity: 1;
}

#home-carousel.carousel .carousel-item {
    height: var(--home-carousel-height);
}

#home-carousel .carousel-caption {
    bottom: var(--home-carousel-caption-bottom);
}

.main-banner.carousel .carousel-item {
    height: var(--home-carousel-height);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-banner .carousel-caption {
    bottom: var(--home-carousel-caption-bottom);
}

.home #simpleSearchForm {
    margin-top: -2rem;
}

.home #simpleSearchForm .card {
    border: none;
    border-radius: 10px;
}

.home #simpleSearchForm .card .card-body {
    border: 1px solid var(--evlg-primary);
    border-radius: 10px;
}

footer {
    background-color: var(--evlg-footer-bg);
}

.footer-content-img {
    max-height: 400px;
}

#footer-links a {
    color: var(--evlg-tertiary);
    text-decoration: none;
    text-transform: uppercase !important;
}

footer hr {
    border-top: 1px solid;
    opacity: 1;
}

.cursor-pointer {
    cursor: pointer;
}

.link-unstyled {
    color: inherit;
    text-decoration: none;
}

#vehicles-advanced-search-form .card-body {
    background-color: #e7e6e6;
}

/* Styles for accordion filters */
#vehicles-advanced-search-form .filter-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

#vehicles-advanced-search-form .accordion-button:not(.collapsed) {
    background-color: var(--evlg-primary);
    color: white;
}

#vehicles-advanced-search-form .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.125);
}

#vehicles-advanced-search-form .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
}

/* Custom scrollbar for filter sections */
#vehicles-advanced-search-form .filter-scroll::-webkit-scrollbar {
    width: 6px;
}

#vehicles-advanced-search-form .filter-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#vehicles-advanced-search-form .filter-scroll::-webkit-scrollbar-thumb {
    background: var(--evlg-primary);
    border-radius: 10px;
}

#vehicles-advanced-search-form .filter-scroll::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

@media (max-width: 767px) {
    .multiple-items-carousel .carousel-inner .carousel-item > div {
        display: none;
    }

    .multiple-items-carousel .carousel-inner .carousel-item > div:first-child {
        display: block;
    }

    .vehicle-card-mini .vehicle-characteristics {
        height: fit-content !important;
    }

    /* La navigation des carousel en flex */
    .owl-nav {
        display: flex !important;
        justify-content: center !important;
    }

    .owl-nav .owl-prev, .owl-nav .owl-next {
        position: relative !important;
        display: block !important;
    }

    .owl-nav .owl-prev {
        left: unset !important;
    }

    .navbar-logo {
        max-height: 75px !important;
    }

    .vehicle-vertical-card .vehicle-characteristics {
        height: fit-content !important;
    }

    .img-contact-wrapper img {
        height: 200px;
    }

    /* Text pédagogique financo */
    .financing-info-text {
        font-size: 1rem;
    }
}

.multiple-items-carousel .carousel-inner .carousel-item.active,
.multiple-items-carousel .carousel-inner .carousel-item-next,
.multiple-items-carousel .carousel-inner .carousel-item-prev {
    display: flex;
}

/* medium and up screens */
@media (min-width: 768px) {
    .multiple-items-carousel .carousel-inner .carousel-item-end.active,
    .multiple-items-carousel .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }

    .multiple-items-carousel .carousel-inner .carousel-item-start.active,
    .multiple-items-carousel .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }

    .owl-prev {
        left: -35px !important;
    }

    .owl-next {
        right: -35px !important;
    }

    #our-vehicles .owl-next {
        right: -35px !important;
    }

    .img-contact-wrapper {
        margin-top: -10px;
        margin-bottom: -10px;
        height: calc(100% + 20px); /* Pour s'étendre au-delà de la row */
        overflow: hidden;
    }

    .img-contact-wrapper img {
        height: 100%;
        object-fit: cover; /* Pour que l'image remplisse sans déborder */
        width: 100%;
        max-height: 500px;
    }

    /* Text pédagogique financo */
    .financing-info-text {
        font-size: 1.2rem;
    }

    .custom-navbar-header {
        z-index: 9999;
    }
}

.multiple-items-carousel .carousel-inner .carousel-item-end,
.multiple-items-carousel .carousel-inner .carousel-item-start {
    transform: translateX(0);
}

.vehicle-simple-card {
    height: 100%;
}

.vehicle-simple-card .vehicle-picture {
    height: 30%;
}

.vehicle-simple-card .vehicle-picture img {
    max-height: 100%;
}

.vehicle-simple-card .vehicle-info-container {
    height: 70%;
}

.vehicle-simple-card .vehicle-version-info {
    height: 30%;
}

.vehicle-simple-card .vehicle-characteristics {
    height: 40%;
    text-align: start;
}

/*.vehicle-vertical-card {*/
/*    height: 500px;*/
/*}*/

.vehicle-vertical-card a .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.vehicle-vertical-card .card-body {
    height: 100%;
}

.vehicle-vertical-card .v-first-pic {
    height: 210px;
}

.vehicle-vertical-card .v-first-pic img.vehicle-image {
    max-width: 100%;
    height: 100%;
}

.vehicle-vertical-card .vehicle-image-container img {
    max-height: 100%;
    display: flex;
    /*top: 50%;*/
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    max-width: 100%;
    border-radius: 0;
}

.vehicle-blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px); /* Application du flou */
    z-index: -1; /* Assure que l'image floue reste en arrière-plan */
}

.vehicle-vertical-card .vehicle-info-container {
    height: 70%;
}

.vehicle-vertical-card .vehicle-version-info {
    height: 20%;
}

.vehicle-vertical-card .vehicle-characteristics {
    height: fit-content;
    text-align: start;
}

.vehicle-characteristics i, .vehicle-characteristics .svg-inline--fa {
    color: var(--evlg-primary);
    margin-right: 5px;
}

.vehicle-card-mini {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#our-vehicles .owl-item {
    height: 100%;
}

@media (min-width: 1024px) {
    .truncate-md-20 {
        width: 20%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .item-price {
        font-size: 4rem;
    }

    .vehicle-characteristics .nav-link {
        height: 80px;
        font-size: 1.5rem;
    }

    .w-lg-75 {
        width: 75%;
    }

    .w-lg-100 {
        width: 100%;
    }

    .w-lg-auto {
        width: auto !important;
    }
}

.vehicle-card-mini .vehicle-brand-info {
    height: 80px;
}

.vehicle-card-mini .v-first-pic {
    height: 210px;
}

.vehicle-card-mini .v-first-pic img.vehicle-image {
    max-width: 100%;
    height: 100%;
}

.vehicle-blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.2);
    z-index: 1;
}

.vehicle-card-mini .vehicle-characteristics {
    height: 110px;
}

.vehicle-card-mini .brand-logo {
    width: unset !important;
}

.vehicle-simple-card .vehicle-price {
    height: 20%;
}

.vehicle-presentation .vehicle-info .info-item i, .vehicle-presentation .vehicle-info .info-item .svg-inline--fa {
    font-size: 2.5rem;
    color: var(--evlg-primary);
    margin-bottom: 8px;
}

.vehicle-presentation .owl-carousel .owl-nav i {
    font-size: 2rem !important;
}

.vehicle-presentation .financing-info-text {
    font-size: 1rem;
    display: block;
    margin-top: 5px;
}

.price-vat-indicator {
    font-size: 0.8rem;
    vertical-align: super;
}

.vehicle-advanced-card {
    cursor: pointer;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1);
}

.vehicle-advanced-card-2 {
    cursor: pointer;
}

.vehicle-advanced-card-2 .vehicle-link a {
    font-size: 0.8rem;
}

.vehicle-advanced-card-2 .vtype-badge {
    top: 5px;
    left: 5px;
    padding: 5px;
    font-weight: bold;
}

.hoverable:hover {
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.btn-close-modal {
    background: transparent;
    border: 0;
    box-shadow: none;
}

textarea {
    resize: none;
}

/* Tiny slider customization */
.tns-nav {
    text-align: center;
    margin: 10px 0;
}

.tns-nav > [aria-controls] {
    width: 9px;
    height: 9px;
    padding: 0;
    margin: 0 5px;
    border-radius: 50%;
    background: #ddd;
    border: 0;
}

.tns-nav > .tns-nav-active {
    background: #999;
}


.tns-controls {
    text-align: center;
    margin-bottom: 10px;
}

.tns-controls [aria-controls] {
    font-size: 15px;
    margin: 0 5px;
    padding: 0 1em;
    height: 2.5em;
    color: #000;
    background: var(--evlg-primary);
    border-radius: 3px;
    border: 0;
}

.sale-search-vehicle-nav {
    width: fit-content;
    border: 1px solid grey;
    border-radius: 5px;
}

.sale-search-vehicle-nav .nav-item .nav-link:hover {
    font-weight: bolder;
}

.sale-search-vehicle-nav .nav-item .nav-link {
    color: var(--evlg-primary);
    padding: 10px 25px;
}

.sale-search-vehicle-nav .nav-item .nav-link.active {
    background-color: var(--evlg-primary);
    color: white;
    font-weight: bolder;
}

.sale-search-vehicle-nav .nav-item:first-child {
    border-right: 1px solid grey;
}

.box-shadow-smooth {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), /* Ombre principale douce */ 0 1px 3px rgba(0, 0, 0, 0.08); /* Petite ombre de profondeur */
    transition: box-shadow 0.3s ease; /* Pour un effet de transition fluide */
}

.box-shadow-smooth:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2),
    0 3px 6px rgba(0, 0, 0, 0.15); /* Augmente l'ombre au survol */
}

.share-links a {
    text-decoration: none;
}

.share-links a .fa-brands, .share-links a .fas {
    color: var(--evlg-primary);
    padding: 10px;
    border: 1px solid var(--evlg-primary);
    border-radius: 50%;
    font-size: 2rem;
}

.pack-item {
    font-size: 0.9rem;
}

#our-vehicles a.our-vehicles-btn {
    padding: 1rem;
}

.service-card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.service-card .service-text {
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* nombre de lignes à afficher */
    -webkit-box-orient: vertical;
}

.services-carousel .owl-carousel {
    z-index: unset !important;
}

.services-carousel .owl-item {
    height: 350px;
}

.financing-info-text {
    color: #6c757d;
}

.home-additional-content {
    overflow-x: hidden;
}
