/* ==========================================================================
   STRUCTURE RESPONSIVE DE LA GRILLE
   ========================================================================== */

.index-marques-grid {
  display: grid;
  /* Calcule automatiquement le nombre de colonnes selon l'écran */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px; /* Espace entre les vignettes */
  max-width: 760px; /* S'aligne parfaitement sur ta colonne principale */
  width: 100%;
  margin: 25px 0;
  padding: 0;
  box-sizing: border-box !important;
}

/* La vignette (Carte cliquable) */
.marque-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 4px; /* Un très léger arrondi pour adoucir les angles */
  padding: 15px 10px;
  text-decoration: none !important;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box !important;
  height: 140px; /* Hauteur fixe pour que toutes les cartes soient alignées au cordeau */
}

/* Zone du logo (Garantit que les logos restent proportionnels) */
.logo-wrapper {
  height: 65px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.logo-wrapper img {
  max-width: 85%; /* Évite que le logo ne colle aux bords de sa vignette */
  max-height: 100%;
  object-fit: contain; /* Empêche toute déformation du logo */
  transition: transform 0.2s ease;
}

/* Texte sous le logo */
.marque-name {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ==========================================================================
   COMPORTEMENT AU SURVOL (HOVER)
   ========================================================================== */

.marque-card:hover {
  border-color: #CC0000 !important; /* Ton rouge identitaire */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.marque-card:hover .logo-wrapper img {
  transform: scale(1.05); /* Léger zoom discret sur le logo au survol */
}

.marque-card:hover .marque-name {
  color: #CC0000 !important;
}
