:root {
    /* Couleurs principales */
    --secondary-color: rgb(233, 79, 38);
    --primary-color: rgb(249, 176, 0);
    --trio-color: rgb(12, 75, 120);
    --quatro-color: rgb(0, 0, 0);
    --text-color: #fff;
    --dark-overlay: rgba(0, 0, 0, 0.3);
    
    /* Ombres */
    --shadow-light: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
    --shadow-card: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    
    /* Dimensions */
    --range-height: 8px;
    --thumb-size: 20px;
    --graduation-height: 10px;
    --graduation-width: 2px;
    
    /* Espacements */
    --card-padding: 8px;
    --title-padding: 4% 0;
    --range-margin: 15px;
    /* Ajout des variables pour la navigation */
    --nav-spacing: 2rem;
    --nav-text-color: #333;
}

/* Header */
#CardHeader {
    background-image: url(/static/images/nouloutou/index/header.jpg);
    background-position: center left;
    background-size: cover;
    width: 100%;
}

/* Range Input Styling */
#range-container {
    position: relative;
    width: 100%;
    margin-bottom: var(--range-margin);
}

input[type="range"].form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--range-height);
    background: transparent;
    border-radius: 5px;
    outline: none;
    position: absolute;
    z-index: 2;
}

input[type="range"].form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--thumb-size);
    height: var(--thumb-size);
    background: var(--primary-color);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

#km-graduations {
    display: flex;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: 1;
    justify-content: space-between;
}

.graduation {
    height: var(--graduation-height);
    width: var(--graduation-width);
    background-color: #000;
}

.range-value {
    display: block;
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: left;
    color: var(--primary-color);
    font-weight: bold;
}

/* Groupinput */
.groupinput {
    padding: 10px 0;
    position: relative;
}

/* Boutons */
.btn_occassion {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.btn_occassion > button {
    color: var(--text-color);
    background-color: var(--primary-color);
}

.btn_occassion > button:hover {
    color: var(--text-color);
    background-color: var(--secondary-color);
}

/* Card */
#card_search {
    background-color: var(--text-color);
    padding: var(--card-padding);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

/* Header Index */
.occasion_title {
    height: 100%;
    padding: var(--title-padding);
}


/* btn comparaison  */

.compare-checkbox {
    position: relative;
    display: inline-block;
    margin: auto;
}

.compare-label {
    display: inline-flex;
    align-items: center;
    padding: 8px 8px;
    border: 1px solid #e94f26;
    border-radius: 4px;
    color: #e94f26;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.compare-input {
    margin-right: 8px;
}
.compare-label > p {
    font-size: 15px;
    padding: 0;
    margin: 0;
}

.compare-label:hover {
    background-color: rgba(233, 79, 38, 0.1);
}

.compare-input:checked {
    font-weight: 500;
}

.compare-label:hover {
    background-color: rgba(233, 79, 38, 0.1);
}

/* Style de la checkbox non cochée */
input[type="checkbox"] {
    accent-color: #e94f26; /* Couleur principale quand cochée */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Style au survol */
input[type="checkbox"]:hover {
    filter: brightness(1.1);
}

/* Style quand la checkbox est cochée */
input[type="checkbox"]:checked {
    background-color: #e94f26;
    border-color: #e94f26;
}
input[type="checkbox"]:checked ~ .compare-label,
.compare-checkbox:has(input[type="checkbox"]:checked) .compare-label {
    border: 2px solid #e94f26;
    padding: 6px 6px;
}

/* btn voir plus  */
.show_car {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    display: block;
    margin: auto;
}


/* le prix  */

.price {
    color: var(--trio-color);
    font-weight: bold;
    font-size: 1.85em;
}
.show_month > span{
    color: var(--quatro-color);
    font-weight: bold;
    font-size: 1em;
}
.show_month{
    width: 40%;
}

/* voiture  */

.car > h5{
    color: var(--trio-color);
    font-weight: bold;
    margin-bottom: 0;
}
.card >div > img{
    /* transform: scale(1.8); */
    height: 286px !important;

    width: 364px !important;

}
/* catégorie  */
.car > ul > li > small{
    color: var(--quatro-color);
}
.car > p{
    color: var(--quatro-color);
    font-size: 0.7em;
    margin-bottom: 0; 
    font-weight: bold;
}


/* la carte globale */
.show_card > div{
    width: 364px;
}
.show_card{
    height: 422px;
    width: 364px;
    margin-top: 2%;
    border-radius: 26px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

/* liste  */

.car > ul.d-flex > li{
    font-size: 0.9em;
}
.bullet-item {
    list-style-type: disc;
    color: var(--quatro-color);
    display: list-item;
    margin-left: 20px; 
}
ul.d-flex {
    align-items: center; 
}


/* container carte de véhicule  */

.container_card{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
    flex-wrap: wrap;
}

/* le body de la carte  */
.body_card{
    max-width: 94%;
}


/* partie pourquoi nous choisir  */

.btn_show{
    background-color: var(--primary-color);
    padding: 1rem;
    border: none;
    color: var(--text-color);
    font-weight: 600;
}

.underline_title {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin-top: 10px;
    height: auto;
}

.underline_title > span {
    display: inline-block;
    height: 5px;
    background-color: var(--primary-color);
}

.underline_title > span:nth-child(1) {
    width: 30px;
    border-radius: 20px 20px 20px 20px;
}

.underline_title > span:nth-child(2) {
    width: 60px;
    border-radius: 20px 20px 20px 20px;
}

.underline_title > span:nth-child(3) {
    width: 90px;
    border-radius: 20px 20px 20px 20px;
}
.underline_title > span:nth-child(4) {
    width: 30px;
    border-radius: 20px 20px 20px 20px;
}


div > .icon-value {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto
}

.show_value{
    flex-direction: column;
    display: flex;
    gap: 3em;
    width: 273px;
}

:where(.show_value > div > p, h5){
    text-align: justify;
}

.show_value > div > p{
    font-size: 0.8em;
}
.show_value > div > h5{
    font-size: 1em;
}


/* derniére partie  */
.last-title{
    background-color:  rgba(233, 79, 38, 1);
    /* width: 35%; */
    height: auto;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.last-title > div > div{
   display: flex;
   flex-direction: column;
   justify-content: flex-start;
   align-items: center;
}
.last-title > div > div > span{
    font-size: 1.5em;
    color: var(--text-color);
    font-weight: bold;
    width: 100%;
}
.last-title > div > div > p{
    color: var(--text-color);
    width: 100%;
}
#Form-accordion{
    display: none;
}
body .container .show_value > div > p,
body .container .show_value > div > h5 {
    text-align: center !important;
}

/* partie responsive pour la recherche  */
@media screen and (max-width: 768px) {
    .tab-pane > #searchForm{
        display: none;
    }
    #Form-accordion {
        display: block;
    }
}

/* banniére de fin index  */
.responsive-title {
    font-size: 2rem; /* Taille par défaut */
    line-height: 1.2;
}

.responsive-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Pour les tablettes */
@media (max-width: 768px) {
    .responsive-title {
        font-size: 1.5rem;
    }
    .responsive-text {
        font-size: 0.9rem;
    }
}

/* Pour les mobiles */
@media (max-width: 576px) {
    .responsive-title {
        font-size: 1.25rem;
    }
    .responsive-text {
        font-size: 0.85rem;
    }
    .responsive-title span {
        display: inline;
        margin-right: 2px;
    }
}