/* FormaV - Styles spécifiques pour l'annuaire local des établissements (/etablissements/[ville]) */

/* Grille des cartes d'établissements */
.city-etabs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin: 25px 0 35px 0;
}

.city-etab-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.city-etab-card:hover {
  border-color: var(--primary-color, #4361ee);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.city-etab-top {
  margin-bottom: 15px;
}

.city-etab-type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-public {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-prive {
  background: #ede9fe;
  color: #6d28d9;
}

.badge-cfa {
  background: #fef3c7;
  color: #b45309;
}

.badge-autre {
  background: #f1f5f9;
  color: #475569;
}

.city-etab-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.city-etab-address {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.city-etab-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
}

.city-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.city-btn-map {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.city-btn-map:hover {
  background: #e2e8f0;
}

.city-btn-dir {
  background: var(--primary-color, #4361ee);
  color: #ffffff !important;
  border: 1px solid transparent;
}

.city-btn-dir:hover {
  opacity: 0.9;
}

/* Chips matières annales */
.city-annales-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px 0;
}

.city-subject-chip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

/* Grille de rémunération apprentissage */
.city-salary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
}

.city-salary-table th,
.city-salary-table td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.city-salary-table th {
  background: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

.city-salary-table tbody tr:hover {
  background: #f8fafc;
}

/* InfoWindow Google Maps */
.etablissement-info-window {
  font-family: inherit;
  padding: 6px 4px;
  max-width: 250px;
}

.etablissement-info-window strong {
  font-size: 14px;
  color: #0f172a;
  display: block;
  margin-bottom: 4px;
}

.etablissement-info-window p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .city-etabs-list {
    grid-template-columns: 1fr;
  }
}
