/* ========================================
   PANNEAU D'OUTILS - STYLES GÉNÉRAUX
   ======================================== */

.tools-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tools-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tools-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(600px, 100%);
  height: 100vh;
  background: var(--bg-color);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tools-panel.active {
  right: 0;
}

/* Header du panneau */
.tools-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* ========================================
   NAVIGATION PAR ONGLETS
   ======================================== */

.tools-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
}

.tools-tabs::-webkit-scrollbar {
  height: 4px;
}

.tools-tabs::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.tool-tab {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.tool-tab i {
  font-size: 1.25rem;
}

.tool-tab:hover {
  border-color: var(--primary-color);
}

.tool-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ========================================
   CONTENU DES OUTILS
   ======================================== */

.tools-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
}

.tools-content::-webkit-scrollbar {
  width: 8px;
}

.tools-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.tool-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tool-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header de chaque outil */
.tool-header {
  margin-bottom: 1.5rem;
}

.tool-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-description {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========================================
   FORMULAIRES
   ======================================== */

.tool-form {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Boutons d'action en bas d'un onglet */
.tool-actions {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tool-actions .btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-actions .btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
}

.tool-actions .btn-primary:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
}

.tool-actions .btn-secondary {
  background: var(--bg-color);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.tool-actions .btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--text-secondary);
}

/* Sections de filtres dans les onglets */
.tool-form .filter-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tool-form .filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.tool-form .filter-section h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Grille de checkboxes */
.filter-section .checkbox-item {
    display: block;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.filter-section .checkbox-item label i {
  color: var(--text-secondary);
  font-size: 1.4rem;
}

/* Liste de checkboxes */
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-item-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-item-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-item-list label {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Sélecteur de notes */
.rating-checkbox {
  cursor: pointer;
}

.rating-checkbox input[type="checkbox"] {
  display: none;
}

.rating-btn-multi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rating-checkbox input[type="checkbox"]:checked + .rating-btn-multi {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.rating-range {
  font-weight: 600;
  font-size: 0.875rem;
}

.rating-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Budget summary */
.budget-summary {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.budget-calculation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.budget-calculation .budget-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.budget-calculation i.fa-calculator {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.budget-calculation .budget-info-icon {
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: help;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.budget-calculation .budget-info-icon:hover {
  opacity: 1;
}

.calculation-details {
  display: flex;
  flex-direction: column;
}

.calc-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.calc-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
}

.calculation-breakdown {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: right;
}

/* Zone sélectionnée */
.selected-zone {
  margin-top: 1rem;
}

.zone-badge {
display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 11px;
  font-size: 0.875rem;
  font-weight: 500;
  width: 100%;
}

.zone-badge .remove-zone {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.zone-badge .remove-zone:hover {
  opacity: 1;
}

/* Zone suggestions */
.zone-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

/* Input de recherche de zone (sans Awesomplete) */
.zone-search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zone-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.zone-search-input::placeholder {
  color: var(--text-secondary);
}

/* Container pour position relative des suggestions */
.form-group {
  position: relative;
}

/* Items de suggestion de zone */
.zone-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease;
}

.zone-suggestion-item:hover {
  background: var(--bg-hover, rgba(0, 0, 0, 0.05));
}

.zone-suggestion-item i {
  color: var(--primary-color);
}

.form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.form-section h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section h4::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

.filter-section h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section h4::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

#toolsPanel .form-group label {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-value {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Sliders/Range inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  outline: none;
  margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Radio buttons */
.radio-group label:first-child {
  margin-bottom: 0.75rem;
}

.radio-options {
  display: flex;
  gap: 0.75rem;
}

.radio-option {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-option:hover {
  border-color: var(--primary-color);
  background: var(--bg-hover);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.radio-option span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Select */
select {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

select:hover,
select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ========================================
   RÉSULTATS
   ======================================== */

.tool-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.result-card.result-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border: none;
  color: white;
}

.result-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.result-card.result-primary .result-label {
  opacity: 0.95;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.result-subtitle {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0.85;
}

.result-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

/* Détails des résultats */
.result-details {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
}

.result-details h4 {
  margin: 1.5rem 0 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-details h4:first-child {
  margin-top: 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item span {
  color: var(--text-secondary);
}

.detail-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.detail-item.total {
  font-weight: 600;
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

.detail-item.highlight {
  background: var(--success-bg);
  margin: 0 -1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: none;
}

.detail-item.highlight span {
  color: var(--success-color);
  font-weight: 600;
}

.detail-item.highlight strong {
  color: var(--success-color);
  font-size: 1.125rem;
}

/* Info box */
.info-box {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-box i {
  color: var(--info-color);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-box strong {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.info-box p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Graphiques */
.chart-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 250px;
}

.chart-container canvas {
  max-height: 250px;
}

/* Bouton export */
.btn-export {
  width: 100%;
  padding: 0.875rem;
  background: var(--bg-primary);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-export:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: var(--bg-hover);
}

/* ========================================
   COMPARATEUR DE VILLES
   ======================================== */

.city-search-container {
  display: flex;
  gap: 0.5rem;
}

.city-search-container input {
  flex: 1;
  padding: 0.75rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.city-search-container input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn-add-city {
  padding: 0.75rem 1rem;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-city:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.selected-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  min-height: 40px;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.city-chip button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 0.75rem;
}

.city-chip button:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tableau de comparaison */
.comparison-table-container {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table thead th {
  background: var(--bg-color);
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  top: 0;
  z-index: 1;
}

.comparison-table thead th:first-child {
  width: 150px;
  min-width: 150px;
}

.comparison-table tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .criterion-name {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-color);
}

.comparison-table .score-cell {
  text-align: center;
}

/* ========================================
   PANNEAU D'OUTILS - LARGEUR ÉLARGIE
   ======================================== */

.tools-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(900px, 100%); /* ⭐ Élargi de 600px à 900px */
  height: 100vh;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.tools-panel.active {
  right: 0;
}

/* ========================================
   TABLEAU DE COMPARAISON - SCROLL HORIZONTAL
   ======================================== */

/* ========================================
   TABLEAU DE COMPARAISON - SCROLL HORIZONTAL
   ======================================== */

.comparison-table-container {
  overflow-x: auto;
  overflow-y: visible;
  margin-bottom: 1.5rem;
  position: relative;
  
  /* ⭐ Scrollbar personnalisée */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.comparison-table-container::-webkit-scrollbar {
  height: 8px;
}

.comparison-table-container::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.comparison-table {
  width: 100%;
  min-width: 700px; /* ⭐ Largeur minimale pour forcer le scroll */
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

/* Colonne critère fixe lors du scroll horizontal */
.comparison-table .criterion-header,
.comparison-table .criterion-name,
.comparison-table .category-title {
  left: 0;
  z-index: 2;
  background: var(--bg-secondary);
}

.comparison-table .criterion-header {
  width: 200px;
  min-width: 200px;
  font-weight: 600;
  text-align: left;
}

.comparison-table .city-score-bar-container:hover{
    transform:none;
}

.comparison-table .criterion-name {
  font-weight: 500;
  color: var(--text-primary);
  padding: 1rem;
  white-space: nowrap;
  border-right: 1px solid var(--border-color);
}

.comparison-table thead th {
  background: var(--bg-secondary);
  padding: 1rem;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  text-align: center;
  z-index: 3;
}

.comparison-table thead th.criterion-header {
  z-index: 4;
}

.comparison-table tbody td {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  min-width: 150px;
  text-align:center;
}

/* ⭐ Les cellules avec service-count sont centrées */
.service-count {
  background: var(--primary-color);
  color: white;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  display: inline-block;
  min-width: 60px;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .city-score-bar-container{
    height:25px;
    border-radius: 6px;
}

.comparison-table .city-score-label{
    font-size:14px;
}

.comparison-table .score-max-label{
    font-size:12px;
}

.comparison-table .city-score-bar-container{
    cursor:unset;
}

.comparison-table .score-cell {
  text-align: center;
}

.btn-city-details {
  padding: 0.375rem 0.75rem;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.btn-city-details:hover {
  background: transparent;
  color: var(--text-primary);
}

.btn-city-details i {
  font-size: 0.875rem;
  color: var(--primary-color);
}


.btn-city-details:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-city-details i {
  font-size: 0.875rem;
}

/* Ajustement du header pour le bouton */
.comparison-table thead th.city-column {
  padding: 0.75rem;
}

.comparison-table thead th.city-column > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.comparison-table thead th.city-column > div > span {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Responsive pour le bouton */
@media (max-width: 768px) {
  .btn-city-details {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }
  
  .btn-city-details i {
    font-size: 0.75rem;
  }
}

.score-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Headers de catégories */
.comparison-table .category-header {
  background: var(--bg-secondary);
}

.comparison-table .category-title {
  padding: 0.75rem 1rem !important;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.comparison-table .category-title i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* Container des villes sélectionnées */
.selected-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  min-height: 50px;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.selected-cities:empty::after {
  content: 'Les villes sélectionnées apparaîtront ici';
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

/* Chips de villes améliorés */
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  color: white;
  border-radius: 15px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.city-chip button {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.city-chip button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Message de scroll pour mobile */
.scroll-hint {
  display: none;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-style: italic;
}

/* ========================================
   RESPONSIVE - TABLETTE ET MOBILE
   ======================================== */

@media (max-width: 1024px) {
  .tools-panel {
    width: min(750px, 100%);
  }
}

@media (max-width: 768px) {
  .tools-panel {
    width: 100%;
    padding-bottom:70px;
  }
  
  .comparison-table {
    min-width: 600px;
  }
  
  .comparison-table .criterion-header {
    width: 150px;
    min-width: 150px;
  }
  
  .comparison-table tbody td {
    min-width: 120px;
    padding: 0.75rem 0.5rem;
  }
  
  .comparison-table thead th,
  .comparison-table .criterion-name {
    padding: 0.75rem 0.5rem;
  }
  
  .scroll-hint {
    display: block;
  }
}

@media (max-width: 480px) {
  .comparison-table {
    min-width: 500px;
    font-size: 0.8125rem;
  }
  
  .comparison-table .criterion-header {
    width: 120px;
    min-width: 120px;
    font-size: 0.8125rem;
  }
  
  .comparison-table tbody td {
    min-width: 100px;
    padding: 0.625rem 0.5rem;
  }
}

/* ========================================
   INDICATEUR DE SCROLL
   ======================================== */

/* Ajouter un gradient pour indiquer qu'on peut scroller */
.comparison-table-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.comparison-table-container:not(:hover)::after {
  opacity: 1;
}

/* Message de scroll pour mobile */
.scroll-hint {
  display: none;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .scroll-hint {
    display: block;
  }
}

/* Styles supplémentaires pour le comparateur */

/* Colonne critère plus visible */
.comparison-table .criterion-header {
  width: 180px;
  min-width: 180px;
  font-weight: 600;
  text-align: left;
}

.comparison-table .criterion-name {
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  padding: 1rem;
  white-space: nowrap;
}

/* Champ de recherche amélioré */
#city-search-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

#city-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#city-search-input::placeholder {
  color: var(--text-tertiary);
}


/* Container des villes sélectionnées */
.selected-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  min-height: 50px;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-color);
  border-radius: 8px;
}

.selected-cities:empty::after {
  content: 'Les villes sélectionnées apparaîtront ici';
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

.score-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* État vide */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-tertiary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .tools-panel {
    width: 100%;
  }

  .tools-tabs {
    padding: 0.75rem;
  }

  .tool-tab {
    min-width: fit-content;
    padding: 0.625rem 0.75rem;
    font-size: 0.8125rem;
    flex: 0 0 auto;
  }

  .tool-tab i {
    font-size: 1.125rem;
  }

  .tools-content {
    padding: 1rem;
  }

  .tool-form {
    padding: 1rem;
  }

  .result-value {
    font-size: 1.5rem;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

  .chart-container {
    padding: 1rem;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .rating-selector-multi {
  grid-template-columns: repeat(3, 1fr);
}
  .tools-panel-header h2 {
    font-size: 1.125rem;
  }

  .tool-tab span {
    font-size: 0.75rem;
  }

  .form-group label {
    gap: 0.25rem;
  }

  .radio-options {
    flex-direction: column;
  }

  .city-search-container {
    flex-direction: column;
  }

  .btn-add-city {
    width: 100%;
  }
}

/* ========================================
   VARIABLES DE COULEUR (À ADAPTER)
   ======================================== */

:root {
  --success-bg: #d4edda;
  --success-color: #155724;
  --success-border: #c3e6cb;
  
  --info-bg: #d1ecf1;
  --info-color: #0c5460;
  --info-border: #bee5eb;
  
  --primary-dark: #0056b3;
}

[data-theme="dark"] {
  --success-bg: rgba(40, 167, 69, 0.15);
  --success-color: #6dd490;

  --info-bg: rgba(23, 162, 184, 0.15);
  --info-color: #7dccdc;
}

/* ========================================
   5. ANALYSE D'ADRESSE
   ======================================== */

/* Label de l'adresse - texte à gauche */
.address-label {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-label::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Style quand une adresse est sélectionnée */
.address-input-full.has-selection {
  background-color: var(--success-bg, #d4edda);
  border-color: var(--success-color, #28a745);
  color: var(--success-text, #155724);
}

[data-theme="dark"] .address-input-full.has-selection {
  background-color: rgba(40, 167, 69, 0.2);
  border-color: #28a745;
  color: #75d89a;
}

/* Suggestions d'adresses */
.address-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 250px;
  overflow-y: auto;
  margin-top: 4px;
}

.address-suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

.address-suggestion-item:hover {
  background: var(--bg-secondary);
}

.address-suggestion-item i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.address-suggestion-item span {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Position relative pour le form-group contenant l'input */
#address-analysis .form-group {
  position: relative;
}


/* Résumé total - layout horizontal */
.analysis-summary-total {
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.analysis-summary-total .summary-text {
  text-align: left;
}

.analysis-summary-total strong {
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

/* Bouton voir sur la carte */
.btn-view-on-map {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-view-on-map:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-view-on-map i {
  font-size: 0.875rem;
}

/* Cartes de catégories */
.analysis-categories {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.analysis-category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.analysis-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.analysis-category-header:hover {
  background: var(--bg-secondary);
}

.analysis-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.analysis-category-info {
  flex: 1;
}

.analysis-category-info h4 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.analysis-category-count {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.analysis-toggle-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.2s ease;
}

/* Items de la catégorie */
.analysis-category-items {
  padding: 0 1rem 1rem 1rem;
  max-height: 300px;
  overflow-y: auto;
  position: relative;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-color);
}

.analysis-item:last-child {
  border-bottom: none;
}

/* Navigation des sous-catégories - une seule ligne scrollable */
.subcategory-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0.75rem 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 5;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  -webkit-overflow-scrolling: touch;
}

.subcategory-nav::-webkit-scrollbar {
  height: 4px;
}

.subcategory-nav::-webkit-scrollbar-track {
  background: transparent;
}

.subcategory-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.subcategory-nav-btn {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg-color);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.subcategory-nav-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.subcategory-nav-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.subcategory-count {
  background: var(--bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  background: #8080801a;
  font-weight: 600;
}

.subcategory-nav-btn.active .subcategory-count {
  background: var(--primary-color);
  color: white;
}

/* Section de sous-catégorie */
.subcategory-section {
  margin-bottom: 1rem;
}

.subcategory-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--overlay-bg);
  border-bottom: 1px dashed var(--border-color);
}

.subcategory-header i {
  color: var(--primary-color);
  font-size: 0.90rem;
}

.subcategory-header-count {
  margin-left: auto;
  font-size: 0.6875rem;
  background: var(--bg-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  color: var(--text-tertiary);
}

/* Items mis à jour */
.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
  min-width: 0;
}

.analysis-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.analysis-item-name {
  font-size: 0.875rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-item-distance {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.analysis-category-items .no-items {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* Loading et erreurs */
.analysis-loading,
.analysis-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--text-tertiary);
}

.analysis-loading i,
.analysis-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.analysis-error i {
  color: #ef4444;
}

/* Options d'export */
.export-options {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.export-options h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.export-options h4 i {
  color: #ef4444;
}

.export-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.checkbox-label span {
  user-select: none;
  vertical-align: text-bottom;
}

/* Responsive */
@media (max-width: 768px) {
  .export-checkboxes {
    grid-template-columns: 1fr;
  }

  .analysis-category-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Lock Overlay pour freemium */
.address-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

.lock-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.lock-content i.fa-lock {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.lock-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.lock-content p {
  margin: 0 0 1.5rem 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.btn-unlock {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-unlock:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

#address-analysis {
  position: relative;
}

/* Input verrouillé - Style pour les restrictions freemium */
.input-locked {
  background: #f9f9f9 !important;
  color: #999 !important;
  cursor: pointer !important;
  border-color: #e0e0e0 !important;
  transition: all 0.2s ease;
}

.locked-input-wrapper:hover .input-locked {
  background: #fef3c7 !important;
  border-color: #fbbf24 !important;
}

[data-theme="dark"] .input-locked {
  background: #2b2b2b !important;
  color: #666 !important;
  border-color: #444 !important;
}

[data-theme="dark"] .locked-input-wrapper:hover .input-locked {
  background: #3a3a2a !important;
  border-color: #fbbf24 !important;
}

.input-locked::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}

[data-theme="dark"] .input-locked::placeholder {
  color: #666 !important;
}

.input-click-overlay {
  border-radius: 8px;
}

/* Wrapper cliquable pour input verrouillé */
.locked-input-click-wrapper {
  background: transparent;
}

/* Bouton clear toujours au-dessus de l'overlay */
.locked-input-wrapper .btn-clear-input {
  position: absolute;
  z-index: 2 !important;
  pointer-events: auto !important;
}

/* Fix pour les suggestions qui doivent avoir un fond */
.address-suggestions {
  background: var(--bg-color) !important;
}

/* Marqueurs temporaires sur la carte */
.address-marker-icon,
.service-marker-icon {
  background: transparent !important;
  border: none !important;
}

.address-marker-icon i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.service-marker-icon i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Responsive pour le résumé */
@media (max-width: 480px) {
  .analysis-summary-total {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .analysis-summary-total .summary-text {
    text-align: center;
  }

  .analysis-summary-total strong {
    font-size: 1.25rem;
  }

  .btn-view-on-map {
    width: 100%;
    justify-content: center;
  }

  .btn-clear-address {
    right: 63px;
  }

  .subcategory-nav {
    gap: 0.375rem;
  }

  .subcategory-nav-btn {
    font-size: 0.6875rem;
    padding: 0.1875rem 0.5rem;
  }

  .analysis-item {
    padding-left: 0.75rem;
  }
}

.tool-disclaimer {
    background: #f8f9fa;
    border-left: 4px solid #228be6;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tool-disclaimer i {
    color: #228be6;
    margin-right: 8px;
}

.tool-disclaimer strong {
    color: #333;
}

/* Version dark mode */
[data-theme="dark"] .tool-disclaimer {
    background: #2a2a2a;
    border-left-color: #4da3ff;
}

[data-theme="dark"] .tool-disclaimer i {
    color: #4da3ff;
}

[data-theme="dark"] .tool-disclaimer strong {
    color: #e0e0e0;
}
/* ========================================
   TOP CITIES PANEL
   ======================================== */

.top-cities-panel {
  position: fixed;
  bottom: 90px;
  left: 20px;
  width: 380px;
  max-height: calc(100vh - 100px);
  background: var(--bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  z-index: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.top-cities-panel.hidden {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

.top-cities-header {
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), #00d2a0);
  color: white;
}

.top-cities-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-cities-subtitle {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.top-cities-list {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 10px;
}

.top-city-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.top-city-card:hover {
  border-color: var(--primary-color);
}

/* Mobile : cacher complètement */
@media (max-width: 768px) {
  .top-cities-panel {
    display: none;
  }
}

/* Dark mode */
[data-theme="dark"] .top-city-card {
  background: #1e1e1e;
}

[data-theme="dark"] .top-city-card:hover {
  background: #2a2a2a;
}
