﻿/* Icône de classe énergétique */
.energy-class-icon {
    width: 90px; /* Taille de l'icône ajustable */
    height: auto;
    display: inline-block;
    margin-right: 10px;
}

/* Styles de base pour l'icône de réparabilité */
.repairability-icon {
    width: 110px; /* Ajustez la taille de l'icône selon vos préférences */
    height: 66px;
    background-size: cover;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    color: #fff; /* Couleur du texte */
    position: relative;
    border-radius: 5px;
    text-align: center;
}

/* Superpose le score au centre de l'icône */
.repairability-score {
    position: absolute;
    top: 30%;
    left: 74%;
    transform: translate(-50%, -50%);
    color: #000; /* Assurez-vous que le texte est lisible */
    font-size: 1.65em;
    font-weight: 800;
}

.repairability-link {
    display: flex;
    align-items: left;
    justify-content: left;
    width: 115px;
    height: 100%;
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Garde la couleur de texte */
}

/* Classes de couleur pour chaque niveau de réparabilité avec images en arrière-plan */
.repairability-red-2024 {
    background-image: url('/img/reparabilite/5.svg');
}

.repairability-orange-2024 {
    background-image: url('/img/reparabilite/4.svg');
}

.repairability-yellow-2024 {
    background-image: url('/img/reparabilite/3.svg');
}

.repairability-light-green-2024 {
    background-image: url('/img/reparabilite/2.svg');
}

.repairability-green-2024 {
    background-image: url('/img/reparabilite/1.svg');
}

.swiper-slide {
    height: auto;
}

.swiper-slide .card {
        margin: 0 auto;
    }

.swiper-button-prev {
    color: #B1D4E0;
}

.swiper-button-next {
    color: #B1D4E0;
}

.garantie-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

    .garantie-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    }

.garantie-icon {
    font-size: 1.6rem;
    color: #0d6efd;
    margin-bottom: 5px;
}

.garantie-text small {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.3;
}

.garanties-bloc .col-6 {
      padding: 5px;
    }
