.carto-section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.carto-section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #6b7280;
  margin-bottom: 30px;
}

/* Carte France */
.carto-map-wrapper {
  background: white;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.carto-map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Petites cartes */
.carto-small-wrapper {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
  min-height: 250px;
}

.carto-small-wrapper svg {
  width: 100%;
  height: 220px;
  display: block;
}

.carto-small-wrapper[data-territory="re"] {
  display: flex;
  flex-direction: column;
}

.carto-small-wrapper[data-territory="re"] svg {
  width: 62%;
  height: auto;
  margin: auto;
}

.carto-small-title {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

/* Style des paths SVG */
.carto-map-wrapper svg path,
.carto-small-wrapper svg path {
  fill: var(--color-beige);
  stroke: rgba(0, 0, 0, 0.15);
  stroke-width: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carto-map-wrapper svg path.active,
.carto-small-wrapper svg path.active {
  cursor: pointer;
}

.carto-map-wrapper svg path.inactive,
.carto-small-wrapper svg path.inactive {
  fill: var(--color-beige);
  cursor: default;
}

.carto-map-wrapper svg path.active:hover,
.carto-small-wrapper svg path.active:hover {
  stroke: rgba(0, 0, 0, 0.3) !important;
  filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.15));
}

/* Favicon sur les départements */
.carto-map-wrapper svg .dept-favicon-group,
.carto-small-wrapper svg .dept-favicon-group {
  pointer-events: none; /* Ne pas bloquer les événements de la carte */
  z-index: 10; /* S'assurer que les favicons sont au-dessus */
}

.carto-map-wrapper svg .dept-favicon-bg,
.carto-small-wrapper svg .dept-favicon-bg {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.carto-map-wrapper svg .dept-favicon,
.carto-small-wrapper svg .dept-favicon {
  pointer-events: none;
}

/* S'assurer que les favicons restent visibles au survol */
.carto-map-wrapper svg path.active:hover ~ .dept-favicon-group,
.carto-map-wrapper svg path.active:hover + .dept-favicon-group,
.carto-small-wrapper svg path.active:hover ~ .dept-favicon-group,
.carto-small-wrapper svg path.active:hover + .dept-favicon-group,
.dept-favicon-group {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Cercles décoratifs des SVG. Pas le fond blanc des pastilles, ni le clip du logo. */
.carto-map-wrapper svg circle:not(.dept-favicon-bg),
.carto-small-wrapper svg circle:not(.dept-favicon-bg) {
  display: none;
}

.carto-map-wrapper svg defs circle,
.carto-small-wrapper svg defs circle {
  display: inline !important;
}

.carto-map-wrapper svg .dept-favicon-bg,
.carto-small-wrapper svg .dept-favicon-bg {
  display: block;
  fill: #fff;
}

/* Tooltip */
.carto-tooltip {
  position: fixed;
  background: #fff;
  color: #111;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-width: 250px;
}

.carto-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.tooltip-dept-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
  color: #111;
}

.tooltip-edition-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  color: #111;
}

@media (max-width: 768px) {
  .carto-section-title {
	font-size: 28px;
  }
  
  .carto-small-wrapper {
	margin-bottom: 15px;
  }
}

/* Égaliser les hauteurs des colonnes */
.carto-section .row {
  display: flex;
  flex-wrap: wrap;
}

.carto-section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
