/* LAYOUT 2 COLONNES */
#rwf-container {
    display: flex;
    gap: 40px;
}

.rwf-filters {
    flex: 1;
    max-width: 320px;
}

#rwf-results {
    flex: 2;
}

/* Responsive : en dessous de 700px, filtres au-dessus, résultats en dessous */
@media(max-width: 700px) {
    #rwf-container {
        flex-direction: column;
    }
}

/* Checkboxes rapprochées */
.rwf-check {
    display: block;
    margin: 4px 0;
    font-size: 0.95rem;
}

/* ================================
   SLIDERS (AUTONOMIE + PRIX)
================================ */

/* conteneur */
#slider-autonomie,
#slider-prix {
  margin: 12px 0 8px;
}

/* barre de fond */
#slider-autonomie.ui-slider,
#slider-prix.ui-slider {
  background: #ddd;
  border-radius: 6px;
  height: 8px;
  border: none;
}

/* partie sélectionnée */
#slider-autonomie .ui-slider-range,
#slider-prix .ui-slider-range {
  background: #12003b; /* couleur bouton Filtrer */
  border-radius: 6px;
}

/* poignées */
#slider-autonomie .ui-slider-handle,
#slider-prix .ui-slider-handle {
  background: #fff;
  border: 2px solid #12003b;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  top: 50%;
  margin-top: -9px;
  cursor: pointer;
}

/* hover */
#slider-autonomie .ui-slider-handle:hover,
#slider-prix .ui-slider-handle:hover {
  background: #f5f5f5;
}

/* actif */
#slider-autonomie .ui-slider-handle.ui-state-active,
#slider-prix .ui-slider-handle.ui-state-active {
  box-shadow: 0 0 0 4px rgba(18, 0, 59, 0.2);
  outline: none;
}

/* valeurs affichées */
.slider-values {
  font-size: 0.9em;
  margin-bottom: 1em;
}

/* Bouton */
.rwf-submit {
    margin-top: 25px;
    padding: 10px 20px;
    background: #12003b;
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.rwf-submit:hover {
    opacity: .8;
}

#rwf-form {
    max-width: 300px;
}

#rwf-form h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

#rwf-form label {
    display: block;
    margin-bottom: 6px;
}

/* ————————
   CONTAINER GLOBAL
   ———————— */
.mc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* Titre "D’AUTRES MODÈLES DE LA MARQUE :" */
.mc-grid__title {
    text-align: center;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    font-weight: 700;
}

/* ————————
   CARTE PRODUIT
   ———————— */
.mc-grid__item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.mc-grid__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Lien qui englobe la carte */
.mc-item__link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* ————————
   IMAGE
   ———————— */
.mc-item__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ————————
   TITRE DU MODÈLE
   ———————— */
.mc-item__model {
    font-size: 1.2rem;
    padding: 15px;
    font-weight: 600;
    text-align: center;
}

/* Force layout 2 colonnes pour le container du filtre */
#rwf-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 40px;
}

.rwf-filters {
    width: 30%;
    max-width: 320px;
}

#rwf-results {
    width: 70%;
}
    
/* Responsive : en dessous de 700px, on repasse en colonne */
@media(max-width: 700px) {
    #rwf-container {
        flex-direction: column !important;
    }
    
    .rwf-filters,
    #rwf-results {
        width: 100%;
    }
}

/* Double slider autonomie */
.rwf-range {
    position: relative;
    height: 40px;
}

.rwf-range input[type=range] {
    position: absolute;
    top: 14px;
    left: 0;
    width: 100%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.rwf-range input[type=range]::-webkit-slider-thumb {
    pointer-events: all;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    -webkit-appearance: none;
}

.rwf-range-track {
    position: absolute;
    top: 22px;
    left: 0;
    height: 4px;
    width: 100%;
    background: #ccc;
    border-radius: 3px;
    z-index: 0;
}

.rwf-range-values {
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

