/* ================================================================
   3.1 - STYLES GÉNÉRAUX & HEADER
   ================================================================ */

.header-wrapper {
    box-shadow: 0 0 18px 0 #f1eaea;
}

/* ================================================================
   3.2 - HERO SLIDER
   ================================================================ */

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    /* min-height:100vh; */
    overflow: hidden;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .hero-slider__overlay {
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(0,0,0,.70), rgba(0,0,0,.35));
    z-index:1;
} */

.hero-slider__swiper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider__background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}

.hero-slider__wrapper {
    position: relative;
    z-index: 2;
    /* min-height:100vh; */
    height: 100%;
    display: flex;
    align-items: center;
}

/* ================================================================
   3.3 - SLIDER OVERLAY BOTTOM
   ================================================================ */

@media (max-width: 767px) {
    .slider-overlay__bottom {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        background: rgba(33, 33, 33, 0.75) !important;
        pointer-events: none !important;
        z-index: 5 !important;
    }
}

@media (min-width: 767px) {
    .slider-overlay__bottom {
        display: none;
    }
}

@media (max-width: 480px) {
    .slider-overlay__bottom {
        height: 55px !important;
    }
}

/* ================================================================
   3.4 - PAGE TITLE 6
   ================================================================ */

@media (max-width:1399px) {
    .page-title-6.hero .page-title-6-wrapper {
        margin-right: 0;
    }
}

@media (max-width:991px) {
    .page-title-6.hero .page-title-6--image1 {
        padding-left: 16px;
        width: 100%;
    }

    .page-title-6.hero .search-cars {
        width: 100%;
    }

    .page-title-6.hero .page-title-6-wrapper {
        flex-direction: column-reverse;
    }
}

.page-title-6.hero {
    /* padding: 85px 0 78px */
    padding: 30px 0;
}

.page-title-6.hero .page-title-6--slider,
.page-title-6.hero .swiper-btn,
.page-title-6.hero .swiper-pagination {
    display: none;
}


.page-title-6.hero .page-title-6-wrapper {
    display: flex;
    /* margin-right: -120px */
}

.page-title-6.hero .page-title-6--image1 {
    padding-left: 32px;
    width: calc(100% - 450px);
}

.page-title-6.hero .search-cars__advanced {
    left: 50%;
    margin: 40px 0 0;
    max-width: 1440px;
    padding: 0 15px;
    transform: translateX(-50%);
    width: 100%;
}

/* .page-title-6.hero .search-cars {
    background-color: #fff;
    border-radius: 20px;
    height: -moz-fit-content;
    height: fit-content;
    margin-top: 20px;
    padding: 20px 24px;
    position: static;
    width: 450px;
} */

.page-title-6.hero .search-cars__filters {
    flex-direction: column;
    /* gap: 15px; */
    padding: 0;
}

.page-title-6.hero .search-cars__filters .search-cars__select-wrapper {
    border-radius: 12px;
    box-shadow: 0 0 0 1px #e7e7e7;
    width: 100%;
}

.page-title-6.hero .search-cars__filter {
    background-color: #1c1c1c;
    width: 68px;
}

.page-title-6.hero .search-cars__filter svg {
    color: #fff !important;
    stroke: #fff !important;
}

.page-title-6.hero .search-cars__filter.active,
.page-title-6.hero .search-cars__filter:hover {
    background-color: #98bc2a;
    border-color: #98bc2a;
}

.page-title-6.hero .category-list {
    display: none;
}

.page-title-6.hero .menu-tab-style1 li span {
    color: #1c1c1c;
}

.page-title-6.hero .search-cars__title {
    color: #1c1c1c;
    margin-bottom: 22px;
}

.page-title-6.hero .search-cars .search-cars.container {
    background-color: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
}

.page-title-6.hero .search-cars>.mt-20 {
    margin-top: 0 !important;
}

.page-title-6.hero .search-cars__filters {
    backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    display: grid !important;
    /* gap: 15px !important; */
    /* grid-template-columns: 68px 1fr; */
    padding: 0 !important;
}

.page-title-6.hero .search-cars__filters .search-cars__select-wrapper {
    grid-column: 1/-1;
}

.page-title-6.hero .search-cars__filters .search-cars__filter {
    grid-column: 1;
    width: 68px;
}

.page-title-6.hero .page-title-6-wrapper img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    object-position: center;
}

/* ================================================================
   3.5 - SEARCH CARS CUSTOM
   ================================================================ */

.page-title-6.hero .search-cars {
    width: 22.1rem;
    background-color: #f0f2f1;
    padding: 1rem;
    border-radius: 9px;
}

.page-title-6.hero .search-cars__filters .search-cars__select-wrapper:first-child div {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.page-title-6.hero .search-cars__filters {
    gap: 0 !important;
    border: 1px solid #98bc2a !important;
    border-radius: 8px !important;
}

.page-title-6.hero .search-cars__filters .search-cars__search {
    grid-column: 1;
}

.page-title-6.hero .search-cars__filters .search-cars__select-wrapper {
    border-radius: 0 !important;
    border-bottom: 1px solid #98bc2a !important;
    box-shadow: none !important;
}

.page-title-6.hero .search-cars__filters .search-cars__filter {
    display: none;
}

.page-title-6.hero .search-cars__filters {
    grid-template-columns: unset;
}

.page-title-6.hero .search-cars__search {
    width: 100%;
}

.page-title-6.hero .search-cars__title {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.03rem;
}

.search-cars__search {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    border-bottom-left-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    height: 3.5rem;
}

/* ================================================================
   3.6 - SELECTS PROFESSIONNELS
   ================================================================ */

.search-cars__select-wrapper {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 100%;
}

.search-cars__select {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: 0px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease;
}

.search-cars__select:hover {
    border-color: #cbd5e1;
}

.search-cars__select label {
    font-size: .75rem;
    color: #52605e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0;
    line-height: 1.2;
}

.select-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.search-cars__select-native {
    width: 100%;
    height: 100%;
    padding: unset;
    padding-top: 17px;
    padding-left: 17px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    font-size: 1rem;
    color: #1a1a2e;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    transition: color 0.2s ease;
}

.search-cars__select-native:focus,
.search-cars__select-native:active,
.search-cars__select-native:hover,
.search-cars__select-native:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.select-wrapper:hover .select-arrow {
    opacity: 1;
}

.search-cars__select-native option {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 400;
    color: #1a1a2e;
    background: #ffffff;
    border: none !important;
}

.search-cars__select-native option:hover,
.search-cars__select-native option:checked {
    background: #f3f4f6;
}

/* Dark mode */
.is_dark .search-cars__select {
    background: #1f2937;
    border-color: #374151;
}

.is_dark .search-cars__select:hover {
    border-color: #4b5563;
}

.is_dark .search-cars__select-native {
    color: #f3f4f6;
}

.is_dark .search-cars__select-native option {
    background: #1f2937;
    color: #f3f4f6;
}

.is_dark .search-cars__select label {
    color: #9ca3af;
}

.is_dark .select-arrow svg path {
    stroke: #9ca3af;
}

/* Animation & focus */
.search-cars__select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-cars__select:focus-within {
    border-color: #82b440;
    box-shadow: 0 0 0 3px rgba(130, 180, 64, 0.15);
}

.filter-select-dropdown {
    border: none !important;
}

.search-cars_label {
    position: absolute;
    top: 7px;
    left: 1rem;
    cursor: text;
    pointer-events: none;
    transition: font-size 0.3s ease, transform 0.3s ease, left 0.3s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* ================================================================
   3.7 - SEARCH BAR & CARROUSEL
   ================================================================ */

.search-bar1 {
    display: flex;
    align-items: center;
    width: 100%;
    background: #ffffff;
    /* border-radius: 12px; */
    border-radius: 60px;
    border: 1px solid #e5e7eb;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 56px;
    overflow: hidden;
    direction: ltr;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.search-bar1:focus-within {
    border-color: #82b440;
    /* box-shadow: 0 0 0 3px rgba(130, 180, 64, 0.15); */
}

.input-wrapper-search1 {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    cursor: text;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    direction: ltr;
    background: transparent;
}

input.search-input1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem;
    color: #1a1a2e;
    padding: 8px 12px 8px 16px;
    z-index: 3;
    font-family: inherit;
    caret-color: transparent !important;
    letter-spacing: 0.3px;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: normal !important;
    opacity: 1 !important;
    text-align: left !important;
    direction: ltr !important;
}

input.search-input1:focus {
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    caret-color: transparent !important;
    text-align: left !important;
}

.animated-placeholder1 {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 4px;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
    padding: 0 12px 0 16px;
    background: transparent;
    min-height: 56px;
    opacity: 1 !important;
    direction: ltr;
    justify-content: flex-start;
}

.animated-placeholder1.focused .carousel-wrapper-search {
    display: none !important;
}

.animated-placeholder1.focused .placeholder-cursor {
    display: inline-block !important;
}

.animated-placeholder1.focused .search-placeholder-text {
    display: inline-block !important;
}

.search-placeholder-text {
    display: none;
    font-size: 1rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    position: relative;
    z-index: 4;
}

.carousel-wrapper-search {
    overflow: hidden;
    height: 32px;
    line-height: 32px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 4;
    display: flex;
}

#carouselWrapper {
    display: flex !important;
}

.carousel-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-item {
    height: 32px;
    line-height: 32px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
    font-size: 0.95rem;
    color: #6b7280;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    text-align: left;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item .item-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: #6b7280;
    text-align: left;
}

.placeholder-cursor {
    display: none;
    width: 2px;
    height: 24px;
    background: #82b440;
    animation: blink 1s step-end infinite;
    flex-shrink: 0;
    margin-right: 4px;
    position: relative;
    z-index: 4;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.search-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    /* border-radius: 10px; */
    border-radius: 22px;
    background: #f3f4f6;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: auto 4px;
    position: relative;
    z-index: 4;
}

.search-btn.active {
    background: #82b440;
    color: white;
}

.search-btn .magic-icon svg path {
    color: white
}

.search-btn.active:hover {
    background: #6fa33a;
    transform: scale(1.05);
}

.search-btn .magic-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn .magic-icon svg {
    width: 100%;
    height: 100%;
}

.page-title-6.hero {
    background-color: #f0f2f1;
}

/* ================================================================
   3.8 - BOUTON DE RECHERCHE PRINCIPAL
   ================================================================ */

#js-search-box button.search-cars__search {
    background: #82b440 !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 0 8px 8px !important
}

.search-cars__search:hover {
    background: #6fa33a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 180, 64, 0.3);
}

/* ================================================================
   3.9 - RESPONSIVE - TABLETTE (max-width: 768px)
   ================================================================ */

@media (max-width: 768px) {
    .search-cars__select-wrapper {
        min-width: 100%;
        flex: 1 1 100%;
    }

    .search-cars__select {
        min-height: 48px;
    }

    .search-cars__select-native {
        font-size: 13px;
        padding: 20px 28px 3px 16px;
    }

    .search-cars__select label {
        font-size: 10px;
    }

    .select-arrow {
        right: 10px;
    }

    .search-bar1 {
        min-height: 48px;
        /* border-radius: 10px; */
        border-radius: 60px;
        padding: 3px 3px 3px 0;
    }

    .input-wrapper-search1 {
        min-height: 42px;
    }

    input.search-input1 {
        font-size: 0.95rem;
        padding: 6px 10px 6px 14px;
    }

    .animated-placeholder1 {
        min-height: 42px;
        padding: 0 8px 0 14px;
        gap: 6px;
    }

    .carousel-wrapper-search {
        height: 28px;
        line-height: 28px;
        max-width: 100%;
    }

    .carousel-item {
        /* height: 28px; */
        line-height: 28px;
        font-size: 0.85rem;
        padding-right: 5px;
    }

    .carousel-item .item-text {
        font-size: 0.85rem;
    }

    .search-placeholder-text {
        font-size: 0.95rem;
    }

    .search-btn {
        /* width: 42px;
        height: 42px; */
        border-radius: 60px;
    }

    .search-btn .magic-icon {
        width: 24px;
        height: 24px;
    }

    .placeholder-cursor {
        height: 20px;
    }

    .search-cars__search {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }

    .search-cars__search {
        border-top-left-radius: 0px !important;
        border-top-right-radius: 0px !important;
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
        height: 3.5rem;
    }
}

/* ================================================================
   3.10 - RESPONSIVE - MOBILE (max-width: 767px)
   ================================================================ */

@media (max-width: 767px) {
    .page-title-6.hero .search-cars {
        width: 100%;
        padding-top: 1rem;
    }

    .page-title-6.hero {
        padding: unset !important;
    }

    .page-title-6.hero .page-title-6--image1 {
        padding-left: unset;
        width: 100%;
        height: 250px;
    }

    .page-title-6.hero .page-title-6-wrapper img {
        position: relative;
    }

    h1.search-cars__title.text-primary.letter-normal {
        display: none;
    }

    .hero-slider {
        position: relative !important;
        height: 250px !important;
        /* La voiture est à droite de l'image : un cadrage centré la coupait sur mobile */
        background-position: 75% center;
    }

    .search-cars__title_mobil {
        position: absolute !important;
        top: 0px !important;
        left: 0px;
        color: white;
        font-size: 1.625rem !important;
        max-width: 80%;
        margin-left: 1rem;
        padding-top: .5rem;
        font-size: 2rem;
    }

    .mobile-title {
        display: none;
    }

    .page-title-6.hero .mobile-title {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        color: white;
    }

    .page-title-6.hero .mobile-title h1 {
        margin-left: 0.5rem;
    }

    .page-title-6.hero .mobile-title h1 span {
        background: rgba(33, 33, 33, .75);
        color: white;
        font-size: 1.625rem;
        line-height: 1.45;
        font-weight: 700;
        max-width: 70%;
        box-shadow: 10px 0 0 rgba(33, 33, 33, .75), -10px 0 0 rgba(33, 33, 33, .75);
    }

    .ck-content .image1 {
        margin: 0 auto !important;
        height: 100%;
    }

    .hero .ck-content .image1 {
        margin: 0 !important;
    }

    /* #js-search-box {
        box-shadow: unset;
        padding: 20px 0px 30px !important;
    } */

    #js-search-box .search-cars__filters {
        padding: 0 !important;
    }

    /* #js-search-box button.search-cars__search {
        border-top-left-radius: unset !important;
        border-top-right-radius: unset !important;
    } */

    #js-search-box .menu-tab li span {
        padding: 8px 10px !important;
    }

    #js-search-box .menu-tab li.active span {
        background-color: unset !important;
        color: #6fa33a !important;
    }

    #js-search-box .menu-tab li.active {
        color: #6fa33a !important;
        border-bottom: 2px solid #6fa33a;
    }

    #js-search-box .menu-tab li {
        padding: 6px 1px !important;
    }

    .border-bottom {
        border-bottom: 0.0625rem solid #e0e4e3;
    }
}

/* ================================================================
   3.11 - RESPONSIVE - PETIT MOBILE (max-width: 480px)
   ================================================================ */

@media (max-width: 480px) {
    .search-cars__select {
        min-height: 44px;
    }

    .search-cars__select-native {
        font-size: 1rem;
    }

    .search-bar1 {
        min-height: 44px;
        /* border-radius: 8px; */
        border-radius: 60px;
        padding: 2px 2px 2px 0;
    }

    .input-wrapper-search1 {
        min-height: 40px;
    }

    input.search-input1 {
        font-size: 0.9rem;
        padding: 4px 8px 4px 12px;
    }

    .animated-placeholder1 {
        min-height: 40px;
        padding: 0 6px 0 12px;
        gap: 4px;
    }

    .carousel-wrapper-search {
        height: 24px;
        line-height: 24px;
    }

    .carousel-item {
        /* height: 24px; */
        line-height: 24px;
        font-size: 0.75rem;
        padding-right: 4px;
    }

    .carousel-item .item-text {
        font-size: 0.75rem;
    }

    .search-placeholder-text {
        font-size: 0.9rem;
    }

    .search-btn {
        /* width: 38px;
        height: 38px; */
        border-radius: 22px;
    }

    .search-btn .magic-icon {
        width: 24px;
        height: 24px;
    }

    .placeholder-cursor {
        height: 18px;
        margin-right: 3px;
    }

    .search-cars__filters {
        padding: 0 8px !important;
    }


    .menu-tab.menu-tab-style1 {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 767px) {
    .page-title-6.hero .search-cars {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

}


@media (min-width: 767px) {
    .search-cars__title_mobil {
        display: none;
    }

}

/* ================================================================
   3.12 - RÉINITIALISATION TOTALE DE L'INPUT
   ================================================================ */

input[type="text"].search-input1 {
    all: unset !important;
    position: absolute !important;
    /* top: 0 !important; */
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1a1a2e !important;
    padding: 8px 12px 8px 16px !important;
    z-index: 3 !important;
    font-family: inherit !important;
    caret-color: transparent !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: normal !important;
    transition: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    text-align: left !important;
    direction: ltr !important;
}

input[type="text"].search-input1:focus {
    all: unset !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    color: #1a1a2e !important;
    padding-left: 16px !important;
    z-index: 3 !important;
    font-family: inherit !important;
    caret-color: transparent !important;
    letter-spacing: 0.3px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    line-height: normal !important;
    transition: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: transparent !important;
    text-align: left !important;
    direction: ltr !important;
}

.divider-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e3a6f;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-cars__title_mobil.text-primary.letter-normal span {
    font-size: 23px;
    color: white;
    font-weight: 600;
    box-shadow: 10px 0 0 rgba(33, 33, 33, .75), -10px 0 0 rgba(33, 33, 33, .75);
    background-color: rgba(33, 33, 33, .75);
    line-height: 1.6;
    -webkit-box-decoration-break: clone;
}
/* Le curseur natif est masqué tant que le champ est vide (un faux curseur clignotant
   est affiché dans le placeholder animé). Dès que l'utilisateur écrit, on le réaffiche. */
.search-bar1 input[type="text"].search-input1:not(:placeholder-shown),
.search-bar1 input[type="text"].search-input1:not(:placeholder-shown):focus {
    caret-color: #1a1a2e !important;
}
