/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    background-color: #ffffff;
}

img {
  /* image-rendering: auto; */
  image-rendering: crisp-edges;
  /* image-rendering: pixelated; */

  /* Safari seems to support, but seems deprecated and does the same thing as the others. */
  /* image-rendering: -webkit-optimize-contrast; */
}

/* Conteneur Leaflet */
#viewport-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: #ffffff;
}

/* Styles personnalisés pour la carte Leaflet */
.leaflet-container {
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

/* Curseur de déplacement */
.leaflet-grab {
    cursor: grab;
}

.leaflet-dragging .leaflet-grab {
    cursor: grabbing;
}

/* Image rendering pour les tiles canvas - AUTO pour le lissage sur Retina */
.leaflet-tile {
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
}

/* Désactiver le lissage des images DANS le canvas (pas le canvas lui-même) */
.leaflet-tile.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Panneau de debug */
#debug-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Poppins', monospace;
    font-size: 12px;
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#debug-panel h3 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #4CAF50;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.debug-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    line-height: 1.6;
}

.debug-item span:first-child {
    color: #aaa;
    margin-right: 10px;
}

.debug-item span:last-child {
    color: #4CAF50;
    font-weight: bold;
}

/* Classe utilitaire pour cacher le debug panel */
#debug-panel.hidden {
    display: none;
}
