/* Conteneur général du slider */
.exchange-slider {
  width: 100%;
}

/* Card d'une devise */
.currency-card {
  background-color: #ffffff;
  /*border: 1px solid #e0e0e0;*/
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px; /* Hauteur minimale pour éviter les déformations */
}

.currency-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.flag-container {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.flag-image {
  width: 200% !important;
  height: 100% !important;
  object-fit: cover;
}

.exchange-info {
  width: 100%;
  padding: 0 5px;
}

.exchange-info h5 {
  margin-bottom: 5px;
  font-size: 1.1em;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-info p {
  margin: 2px 0;
  font-size: 0.9em;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrows / pagination de Glide.js */
.glide__arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333333;
  transition: color 0.3s ease;
}
.glide__arrow:hover {
  color: #007bff;
}
.glide__bullets {
  text-align: center;
  margin-top: 20px;
}
.glide__bullet {
  width: 12px;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.glide__bullet--active {
  background-color: #007bff;
}

/* Forcer le slider à autoriser du débordement */
.glide__slides {
  overflow: visible !important;
}

.exchange-slider .row {
  justify-content: center; /* Centrer les colonnes dans la rangée */
  margin: 0;
  padding: 0;
}

.exchange-slider .row > [class*="col-"] {
  flex: 0 0 50%; /* Chaque carte occupe 50% de la largeur */
  max-width: 50%; /* Limite la largeur maximale à 50% */
  padding: 5px; /* Ajustez si nécessaire */
}

.exchange-slider .glide__slides {
  display: flex;
  justify-content: center; /* Centrer les slides */
  align-items: center; /* Aligner verticalement */
}

.exchange-slider .glide__slide {
  max-width: 100%; /* S'assure que les slides ne débordent pas */
  margin: 0 auto; /* Centre chaque slide */
}

@media (max-width: 768px) {
  .exchange-slider .row > [class*="col-"] {
    flex: 0 0 100%; /* Chaque carte occupe 100% de la largeur sur mobile */
    max-width: 100%;
  }
  
  .currency-card {
    min-height: 180px; /* Hauteur minimale réduite sur mobile */
  }
  
  .exchange-info p {
    font-size: 0.85em; /* Taille de police légèrement réduite sur mobile */
  }
}