/** FONTS */

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-ExtraBold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../../../themes/fonts/poppins/Poppins-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/** GENERAL **/

:root {
    --light-grey: #f2f2f2;
    --reemploi-color: #00c58f;
    --reemploi-light-color: #cef9ed;
    --text-color: #383737;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

body {
    background-color: #fff;
    color: var(--text-color);
    font-family: poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
}

h2 {
    color: var(--text-color);
    font-size: 26px;
    padding: 25px 0;
}

hr {
    margin: 14px 0;
    z-index: 0;
}

p {
    margin: 0 !important;
}

.mask-icon {
    background-color: var(--text-color);
    height: 1.3rem;
    margin-right: 5px;
    width: 1.3rem;
}

.reemploi-color {
    color: var(--reemploi-color);
}

.z-index-1000 {
    z-index: 1000 !important;
}

/** ACCOUNT **/

#account h1 {
    font-size: 26px;
}

#account .account-form {
    margin: auto;
    margin-bottom: 3rem;
    width: 100%;
}

#account .account-form-title {
    margin-bottom: 1.5rem;
}

#account .account-form-part {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 20px;
    padding: 1.5rem;
}

#account .account-form-part label,
#editPersonalDataModal label,
#editPasswordModal label {
    font-weight: 500;
    margin-bottom: 1rem;
}

#account .btn-edit {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
}

#account .pen-mask {
    background-color: var(--reemploi-color);
    margin: 0;
}

#editPersonalDataModal .modal-header,
#editPersonalDataModal .modal-footer,
#editPasswordModal .modal-header,
#editPasswordModal .modal-footer {
    border: none;
}

/** HOME **/

#home .categories {
    display: flex;
    flex-wrap: wrap;
    margin: auto;
}

#home .categories a {
    margin: 10px auto;
}

#home .categorie {
    align-items: center;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 20px 10px;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    width: 160px;
}

#home .categorie:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

#home .logo {
    margin-bottom: 10px;
    width: 60px;
}

/** TECHNICAL SHEET **/

.btn-green {
    background-color: var(--reemploi-color);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 10px 60px;
    width: 100%;
}

.btn-green:hover {
    background-color: var(--reemploi-color);
}

.flex-grid {
    display: flex;
    flex-wrap: wrap;
}

.flex-grid .grid-item {
    padding: .5rem;
    width: 100%;
}

.flex-grid #panel-body-gallery-2 {
    display: none;
}

#panel-body-gallery-1 .img-thumbnail,
#panel-body-gallery-2 .img-thumbnail {
    border: none;
    border-radius: 25px;
}

#panel-body-gallery-1 .img-thumbnail {
    height: 100%;
    object-fit: cover;
    padding: 0;
    width: 100%;
}

#panel-body-gallery-2 .gallery-link .img-thumbnail {
    height: 260px;
    object-fit: cover;
}

#panel-body-gallery-1 { order: 1; }
#panel-body-gallery-2 { order: 2; }
#informations         { order: 3; }
#extra                { order: 4; }

.image-container,
.thumb-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.image-container img,
.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#contact {
    background-color: var(--light-grey);
    border-radius: 25px;
    padding: 20px 22px;
}

#contact button {
    background-color: var(--text-color);
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    padding: 14px 0;
    width: 100%;
}

#contact h3 {
    font-size: 21px;
    font-weight: 600
}

#contact label {
    color: var(--text-color);
    font-size: 3rem;
}

#contact .ref-parc {
    font-weight: 600
}

#contact-message {
    scroll-margin-top: 400px;
}

#technicalsheet .vehicle-primary-info {
    align-items: center;
    background-color: var(--reemploi-light-color);
    border-radius: 25px;
    display: flex;
    margin: 0 10px 15px 0;
    padding: 10px;
}

#technicalsheet img.logo {
    height: auto;
    margin-right: 5px;
    vertical-align: middle;
    width: 20px;
}

#technicalsheet .price-ttc {
    color: var(--reemploi-color);
    font-size: 20px;
    font-weight: bold;
}

#technicalsheet .price-ht {
    font-size: 20px;
}

.technical-details {
    display: grid;
    gap: 0 16px;
    grid-template-columns: repeat(1, 1fr);
}

.technical-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.technical-item.full-width {
    grid-column: span 2;
}

.technical-label {
    font-weight: bold;
    margin-bottom: 4px;
    margin-right: 50px;
}

.technical-value {
    color: #555;
    font-size: 14px;
    text-align: justify;
}

.total-photos-badge {
    background-color: white;
    border-radius: 5px;
    bottom: 15px;
    color: var(--text-color);
    font-size: 14px;
    padding: 5px 10px;
    pointer-events: none;
    position: absolute;
    right: 15px;
    z-index: 2;
}

#sentinel {
    height: 1px;
    width: 100%;
}

/** 404 **/

#not-found .btn-home {
    background-color: var(--reemploi-color);
    border: 1px solid var(--reemploi-color);
    border-radius: 20px;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
}

#not-found .btn-home:hover {
    background-color: transparent;
}

/* FOOTER */

.footer {
    padding: 1rem 0;
}

.footer a:hover {
    text-decoration: underline;
}





input:focus-visible {
    outline: none;
    box-shadow: none;
}

#home h2,
#carousselD h2,
#carousselM {
    text-align: center;
}

/* HEADER START*/
#address-link {
    cursor: pointer;
}
.separator {
    width: 1px;
    background-color: var(--text-color);
    height: 20px;
    margin: 0 10px;
}

/* NAVBAR */

.navbar button {
    color: black;
    border: none;
    padding: 6px 8px;
    height: 40px;
}

.navbar button:focus {
    box-shadow: none;
}

.navbar .navbar-text {
    color: #212a51;
}

.navbar .navbar-nav > li {
    margin: 10px 0 !important;
}

.navbar .navbar-nav > li {
    margin: 20px 10px 20px 0!important;
}

.navbar .navbar-nav > li > a {
    border-radius: 20px !important;
    padding: 5px 10px !important;
    margin: 0;
    text-decoration: none;
    font-size: 14px;
}

.navbar .navbar-nav > li > a:hover {
    background-color: var(--reemploi-color);
}

.navbar .navbar-nav > .active > a {
    background-color: var(--reemploi-color);
    padding: 5px 10px !important;
}

.navbar .navbar-nav > li :hover {
    background-color: transparent;
}

#top img.logo {
    width: 200px;
    height: auto;
}

.navbar-toggler .fa-xmark {
    display: block;
}

.navbar-toggler .fa-bars {
    display: none;
}

.navbar-toggler.collapsed .fa-xmark {
    display: none;
}

.navbar-toggler.collapsed .fa-bars {
    display: block;
}

.contact img {
    width: 12px;
}

.navbar .logo.mobile {
    display: block;
}

.breadcrumb {
    color: var(--reemploi-color);
    margin: 0;
}

.panel-body {
    padding: 10px 20px;
    border: 1px solid var(--light-grey);
    border-radius: 20px;
}

.form-group select {
    color: var(--text-color);
    font-weight: 600;
    border: none;
    padding: 12px 20px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23212529' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    background-size: 20px;
    outline: none;
}

.form-group select:focus {
    box-shadow: none;
}

.form-group.element {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.dropdown-menu.show {
    position: absolute;
    top: 135%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 10px;
    width: 85%;
}

/*CAROUSEL START */
.carousel {
    background-color: var(--light-grey);
}

#myCarousel {
    --f-carousel-spacing: 15px;
    --f-carousel-slide-width: 300px;
}

@media (max-width: 315px) {
    #myCarousel {
        --f-carousel-slide-width: 80%;
    }
}

@media (min-width: 615px) and (max-width: 680px) {
    #myCarousel {
        --f-carousel-slide-width: 43%;
    }
}

.f-carousel__slide.card {
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
}

.f-carousel__slide.card > img {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    height: 170px;
}

.f-carousel__nav {
    display: none;
}

.f-carousel__dots {
    display: none !important;
}

.f-carousel__slide .card-body {
    padding: 10px;
}

.card-body .card-link.price {
    color: var(--reemploi-color);
    font-size: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.card-body .price-legend {
    font-size: 10px;
}

.f-carousel__slide .card-body h5 {
    font-size: 15px;
}

.f-carousel__slide .card-body a {
    text-decoration: none;
    color: var(--text-color);
}

.f-carousel__slide .card-body span {
    color: var(--text-color);
}

.last-arrival {
    display: none;
}

.last-arrival .card-body a {
    text-decoration: none;
    color: var(--text-color);
}

.card-info .card-info-picto {
    margin: 0.5rem;
}

.see-detail {
    align-items: baseline;
    display: flex;
    font-size: 14px;
}

.see-detail .arrow-up-right-mask {
    height: 10px;
    margin: 0 0 0 5px;
    width: 10px;
}

.show-all-vehicle {
    text-align: center;
}

.show-all-vehicle.btn {
    background-color: var(--reemploi-color);
    border-radius: 10px;
    padding: 10px 60px;
}

.show-more-info h3 {
    font-size: 14px;
    font-weight: bold;
    padding: 5px 0;
}

.show-more-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--light-grey);
}

.show-more-info .content {
    color: var(--text-color);
}

.show-more-info h2 {
    text-align: left;
}

.show-more-info button {
    text-decoration: none;
    border: none;
    color: white;
    background-color: var(--text-color);
    margin: 25px auto;
    border-radius: 25px;
    padding: 8px 24px;
}

.hidden-content-wrapper {
    max-height: 80px;
    overflow: hidden;
    opacity: 0.5;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    position: relative;
}


.hidden-content-wrapper.active {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}


.hidden-content-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to top, var(--light-grey), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.hidden-content-wrapper.active::after {
    display: none;
}

.form_control {
    position: relative;
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    color: #635a5a;
}

.vehicles {
    margin: 0 auto;
}

.vehicles h2 {
    padding-top: 0;
}

.filters {
    display: flex;
    flex-wrap: wrap;
}

.delfacet {
    font-size: 10px;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--reemploi-color);
    border-radius: 10px;
    padding: 5px;
    margin: 5px 5px 5px 0;
}

.facet-title,
.facet h3,
.facet1 h3 {
    font-weight: bold;
    font-size: 16px;
}

.badge {
    color: var(--text-color);
}

.facet-element {
    margin-bottom: 5px;
}

.btn-search {
    align-items: center;
    background-color: var(--reemploi-color);
    border-radius: 4px;
    color: white;
    display: flex;
    height: 100%;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    width: 100%;
}

.btn-search .search-mask {
    margin: 0;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: white;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-search:hover .search-mask {
    background-color: var(--text-color);
}

.btn-clear {
    width: 100%;
    color: red;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
}

.btn-clear:focus {
    border: none;
}

.slider {
    align-items: stretch;
    display: flex;
}

.price-range {
    padding: 6px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f8f8f8;
}

.form-group input[type=number] {
    width: 48%;
}

#filter-button {
    font-weight: 600;
    background-color: white;
    border: 1px solid black;
}

#filter-button img {
    width: 18px;
}

.inputs-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination_rounded,
.pagination_square {
    display: inline-block;
}

.pagination_rounded ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.pagination_rounded li:first-child {
    margin-left: 0;
}

.pagination_rounded ul li {
    float: left;
    margin-left: 10px;
}

.pagination_rounded ul li .active{
    background-color: var(--reemploi-color);
    color: white;
}
a:link {
    text-decoration: none
}

.pagination_rounded .prev,
.pagination_rounded .next {
    border-radius: 35px;
    line-height: 30px;
    border: 1px solid rgba(128, 128, 128, 0.43);
    width: 40px;
    background-color: var(--light-grey);
}

.pagination_rounded ul li a {
    float: left;
    color: var(--text-color);
    font-weight: bold;
    border-radius: 50%;
    line-height: 30px;
    height: 30px;
    width: 30px;
    text-align: center;
    margin-bottom: 40px;

}

#dropdownSort {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    color: var(--text-color);
    font-size: 14px;
    padding: 5px 15px;
}

#dropdownSort:hover {
    background-color: var(--reemploi-color);
    border: 1px solid white;
}

#dropdownSort:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

#dropdownSort .dropdown-menu {
    width: 100px;
}

.dropdown-sort .dropdown-menu {
    width: auto;
    position: absolute;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dropdown-sort .dropdown-item {
    font-size: 14px;
    padding: 8px 15px;
}

.dropdown-sort .dropdown-item:hover {
    background-color: var(--reemploi-color);
    border-radius: 10px;
}

.dropdown-sort .dropdown-item.active {
    background-color: white;
    color: var(--text-color);
}

.dropdown-sort .dropdown-divider {
    border-top: 1px solid #ccc;
}

/* SLIDER */
/* (PART A) STACK RANGE SLIDERS */
.drange {
    position: relative;
}

.drange input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.drange input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
}

.drange input[type=range]::-moz-range-thumb {
    pointer-events: all;
}

/* (PART B) WRAPPER : CENTER SLIDERS & DIMENSIONS */
.drange {
    display: flex;
    align-items: center;
    max-width: 400px;
    height: 35px;
    margin: 1rem 0;
}

.drange.mobile {
    margin: 10px auto 20px auto;
}

/* (PART C) HIDE DEFAULT SLIDER STYLES */
.drange input[type=range] {
    appearance: none;
    background: none;
}

.drange input[type=range]::-webkit-slider-thumb {
    appearance: none;
}

.drange input[type=range]:focus {
    outline: none;
}

/* (PART D) CUSTOM THUMB */
.drange input[type=range]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--reemploi-color);
    cursor: pointer;
}

.drange input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--reemploi-color);
    cursor: pointer;
}

/* (PART E) CUSTOM TRACK : FIRST SLIDER ONLY */
/* Calcul pour la couleur entre les deux slider */
.drange input[type=range]:first-child::-webkit-slider-runnable-track {
    background: linear-gradient(
            to right,
            #ddd var(--range-min, 0%),
            var(--reemploi-color, #00f) var(--range-min, 0%),
            var(--reemploi-color, #00f) var(--range-max, 100%),
            #ddd var(--range-max, 100%)
    );
}

.drange input[type=range]:first-child::-moz-range-track {
    background: linear-gradient(
            to right,
            #ddd var(--range-min, 0%),
            var(--reemploi-color, #00f) var(--range-min, 0%),
            var(--reemploi-color, #00f) var(--range-max, 100%),
            #ddd var(--range-max, 100%)
    );
}

/* Ajustement du second slider (non affiché) */
.drange input[type=range]:last-child {
    z-index: 1;
}

/* (PART F) TO "RESIZE" TRACK */
/* (20px - 6px) / 2 = 7 px */
.drange input[type=range]::-webkit-slider-runnable-track {
    height: 3px;
}

.drange input[type=range]::-moz-range-track {
    height: 3px;
}

.drange input[type=range]::-webkit-slider-thumb {
    margin-top: -7px;
}

/* (PART G) MIN/MAX VALUE */
.drange .dmin, .drange .dmax {
    position: absolute;
    bottom: -5px;
    font-size: 14px;
    font-weight: 700;
    background-color: var(--reemploi-light-color);
    width: auto;
    border-radius: 5px;
    padding: 2px;
    text-align: center;
}

.drange .dmin {
    left: 0;
}

.drange .dmax {
    right: 0;
}

/* (PART X) COSMETICS - NOT REALLY IMPORTANT */
* {
    box-sizing: border-box;
}

.f-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-label {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;

}

.dropdown-picto {
    width: 10px;
}

.dropdown-menu li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.dropdown-menu li:last-child {
    padding: 10px;
    cursor: pointer;
    border-bottom: none;
}

.dropdown-menu li:hover {
    background-color: var(--reemploi-light-color);
}

/* Premier élément avec border-radius uniquement en haut */
.dropdown-menu li:first-child:hover {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Dernier élément avec border-radius uniquement en bas */
.dropdown-menu li:last-child:hover {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Cible la barre de défilement */
::-webkit-scrollbar {
    width: 12px; /* Largeur de la barre de défilement */
}

/* Cible le fond de la barre de défilement */
::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Couleur de fond de la barre */
    border-radius: 10px; /* Coins arrondis */
}

/* Cible le curseur de la barre de défilement */
::-webkit-scrollbar-thumb {
    background-color: var(--reemploi-color); /* Couleur du curseur */
    border-radius: 10px; /* Coins arrondis */
    border: 3px solid #f1f1f1; /* Bordure autour du curseur */
}

/* Lorsque le curseur de la barre de défilement est survolé */
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Couleur du curseur au survol */
}

.fade-out {
    opacity: 1;
    max-height: 100px; /* Ajustez cette valeur selon la hauteur maximale de votre élément */
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.fade-out.hidden {
    opacity: 0;
    max-height: 0;
}

.alert.invalid {
    background-color: #ff000021;
    border-radius: 10px;
}

textarea {
    height: 137px;
    resize: none;
}

#breadcrum .arrowright-mask.header-icon.header-mask-icon {
    width: 0.6rem;
    height: 0.6rem;
    margin: 0 5px;
}

.arrowright-mask{display:inline-block;background-color:var(--text-color);mask-size:100% 100%;mask-repeat:no-repeat;width:1rem;height:1rem;mask-image:url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 100 100'%3E%3C!-- Generator: Adobe Illustrator 28.7.1, SVG Export Plug-In . SVG Version: 1.2.0 Build 142) --%3E%3Cg%3E%3Cg id='Calque_1'%3E%3Cpath d='M76.7,44.1c3.3,3.3,3.3,8.5,0,11.8l-41.6,41.6c-3.3,3.3-8.5,3.3-11.8,0s-3.3-8.5,0-11.8l35.8-35.8L23.3,14.2c-3.3-3.3-3.3-8.5,0-11.8s8.5-3.3,11.8,0l41.6,41.6h0Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");}