/* Couleur uniforme pour tous les titres du footer */
.fw-bold.text-uppercase.small {
    color: #8B95B9 !important;  /* Bleu clair pour tous les titres */
}

/* Pour les liens du footer */
.text-reset {
    color: #6c757d !important;
}

.text-reset:hover {
    color: #8B95B9 !important;
}

/* Container avec scroll horizontal */
.brands-scroll {
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour Internet Explorer et Edge */
    gap: 25px;
    -webkit-overflow-scrolling: touch;
}

/* Cache la barre de défilement sur Chrome */
.brands-scroll::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
}

/* Style pour les logos des entreprises */
.company-logo {
    height: 50px;  /* Hauteur fixe pour tous les logos */
    width: auto;
    object-fit: contain;  /* Garde les proportions */
    margin-bottom: 2rem;  /* Espacement constant avant le témoignage */
}

.company-logo-container {
    height: 50px;  /* Même hauteur que le logo */
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* Alignement à gauche comme dans l'image */
}

/* Style pour le "+28 constructeurs" */
.more-brands {
    flex: 0 0 auto;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: #6c757d;
}

/* Media query pour le desktop */
@media (min-width: 768px) {
    .brands-scroll {
        justify-content: space-between; /* Répartit l'espace entre les éléments */
        overflow-x: visible;
        width: 100%; /* Assure que le conteneur prend toute la largeur */
    }

    .logo-container, .more-brands {
        flex: 0 1 auto; /* Permet aux éléments de se rétrécir si nécessaire */
    }
}

/* Ajustement du padding de la section */
section.py-6.py-md-8 {
    padding-top: 2rem !important;    /* Réduit de py-6 */
    padding-bottom: 2rem !important; /* Réduit de py-6 */
}

@media (min-width: 768px) {
    section.py-6.py-md-8 {
        padding-top: 3rem !important;    /* Réduit de py-md-8 */
        padding-bottom: 3rem !important; /* Réduit de py-md-8 */
    }
}

/* Style pour l'avatar avec une spécificité plus élevée */
body .blockquote .avatar-container.small-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-block !important;
    position: relative !important;
}

body .blockquote .avatar-container.small-avatar .avatar-img {
    width: 48px !important;
    height: 48px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
}

/* Style pour le fallback */
.avatar-fallback {
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: bold;
}

/* Style pour le placeholder */
.avatar-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #6B7DB3;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50%;  /* Assure que le placeholder est rond */
}

/* Style pour la section témoignages */
.testimonials {
    background-color: #f8f9fa;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Ajustements responsive */
@media (min-width: 992px) {
    .testimonial-text {
        min-height: 240px; /* Assure une hauteur minimale uniforme */
    }
}

/* Style pour les logos */
.company-logo-container {
    height: 50px;
    margin-bottom: 2rem;
}

.company-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Style pour les logos des constructeurs */
.constructeur-logo {
    height: 50px;  /* Réduction de 35px à 25px */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.constructeur-logo:hover {
    filter: grayscale(0%);
    opacity: 1 !important;
} 
/* Styles pour le simulateur */
.input-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
}

.input-section label {
    font-size: 1rem;
    color: #506690;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    display: block;
}

.input-section input[type="range"] {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0;
}

.input-section input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.input-section strong {
    color: #335EEA;
    font-weight: 600;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Boutons */
.btn-modal {
    background-color: #335EEA;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-modal:hover {
    background-color: #2B50C7;
}

/* Résultats */
#costDetails {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
}

#costDetails h2 {
    color: #335EEA;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

#costDetails p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #506690;
}

/* Graphique */
#comparisonChart {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .input-section {
        padding: 1.5rem;
    }
}

/* Style pour le compteur de véhicules */
.vehicle-counter {
    background-color: #fff;
    border: 1px solid #E2E8F0;  /* Border plus fine */
    border-radius: 0.5rem;
    padding: 1rem;  /* Padding réduit */
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);  /* Ombre légère */
}

.vehicle-counter input[type="number"] {
    width: 100px !important;  /* Largeur réduite */
    text-align: center;
    font-size: 20px;  /* Taille de police réduite */
    font-weight: 600;  /* Un peu moins gras */
    padding: 0.375rem;  /* Padding réduit */
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin: 0 0.5rem;  /* Marge réduite */
}

.vehicle-counter .btn {
    width: 36px;  /* Taille réduite */
    height: 36px;  /* Taille réduite */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;  /* Couleur plus douce */
    border: 1px solid #dee2e6;
    color: #506690;
}

.vehicle-counter .btn:hover {
    background-color: #e9ecef;
    color: #335EEA;
}

.vehicle-counter .form-control-lg:focus {
    box-shadow: none;
    outline: none;
    border-color: #335EEA;
}

/* Style pour le container du compteur */
.vehicle-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vehicle-counter .d-flex {
    width: 100%;
    max-width: 250px;  /* Conteneur plus compact */
    justify-content: center;
    gap: 0.5rem;  /* Gap réduit */
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .vehicle-counter input[type="number"] {
        width: 80px !important;  /* Encore plus compact sur mobile */
        font-size: 18px;
    }
    
    .vehicle-counter .d-flex {
        max-width: 200px;
    }
    
    .vehicle-counter .btn {
        width: 32px;
        height: 32px;
    }
}

/* Logos clients bandeau */
.client-logo {
  max-height: 100px !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  margin-left: 16px;
  margin-right: 16px;
  padding: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Amélioration du menu burger responsive */
.navbar-toggler {
  border: none !important;
  padding: 0.5rem 0.75rem;
  font-size: 1.25rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 94, 234, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em;
  height: 1.5em;
}

/* Menu déroulant mobile */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding: 1.5rem 1rem;
    position: relative;
  }
  
  .navbar-collapse .navbar-toggler {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    padding: 0.5rem;
  }
  
  .navbar-collapse .navbar-toggler:hover {
    opacity: 0.7;
  }
  
  .navbar-nav {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 1rem 0.75rem;
    font-weight: 500;
    color: #506690;
    border-bottom: 1px solid #f8f9fa;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    color: #335EEA;
  }
  
  .navbar-nav .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  
  .navbar-collapse .d-flex {
    padding: 0 0.5rem;
  }
}
