/* === BASE === */
body {
  background: #f5f6f6;
  font-family: 'Lato', sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
}

h2, h3 {
  font-weight: bold;
  margin-top: 2rem;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* === SPONSOR BLOCKS === */
.sponsor-title {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 1.5rem;
}
.sponsor-diamond { color: #4050A0; }
.sponsor-platinum { color: #888; }
.sponsor-silver { color: #6c757d; }
.sponsor-bronze { color: #aa7744; }

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.sponsor-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 160px; /* optionnel pour uniformiser les hauteurs */
}

.sponsor-card:hover {
  transform: scale(1.03);
}

.sponsor-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
}
.sponsor-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
/* === EXHIBITORS === */
#exhibitors {
  border-top: 2px solid #ccc;
  margin-top: 3rem;
  padding-top: 2rem;
}

.exhibitor-letter {
  font-weight: bold;
  background: #eaeaea;
  color: #444;
  padding: 6px 12px;
  border-left: 4px solid #283583;
  margin-top: 20px;
  font-size: 18px;
}

.exhibitor-name {
  display: block;
  padding: 4px 12px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.exhibitor-name:hover {
  background: #f3f3f3;
  color: #283583;
}

.sponsor-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;               /* Plus de hauteur fixe */
  min-height: 80px;           /* Hauteur minimale pour garder une base visuelle */
  padding: 10px;
  overflow: visible;          /* Autorise le logo à dépasser légèrement si besoin */
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 80px;           /* Contrôle la hauteur du logo */
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}


/* === MODAL === */
.modal-ams .modal-content {
  border-radius: 10px;
  background: #fff;
  padding: 20px;
}

.modal-ams .modal-title {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
}

.modal-ams .modal-title img {
  display: block;
  max-height: 70px;
  max-width: 90%;
  height: auto;
}

.modal-ams .modal-header {
  border-bottom: 1px solid #ddd;
}

.modal-ams .modal-body {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
}

.modal-ams .booth {
  font-weight: bold;
  color: #283583;
  font-size: 18px;
  margin-top: 1rem;
}

.modal-ams .modal-footer {
  border-top: none;
  text-align: center;
}

.modal-ams .btn-group .btn {
  margin: 0 5px;
}

.modal-ams .btn i {
  font-size: 20px;
  color: #283583;
}

.tags {
  font-weight: 600;
  color: #5C6975;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sponsor-grid {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-card {
    width: 90%;
  }

  .modal-ams .modal-dialog {
    margin: 1rem auto;
  }
}

@media (max-width: 576px) {
  .sponsor-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .sponsor-card {
    width: 95%;
    padding: 15px;
  }

  .sponsor-logo {
    height: 70px;
  }

  .sponsor-booth {
    font-size: 15px;
    margin-top: 8px;
  }
}
