body {
  overflow: hidden; /* Hide scrollbars */
}

#map {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  overflow: hidden;
  touch-action: none;          /* empêche le scrolling sur mobile */
  background-color: #000;      /* évite le flash blanc avant le rendu */
  z-index: 0;                  /* garantit que la carte reste sous les contrôles */
}

/* Optimisation du rendu du canvas WebGL */
#map canvas {
  will-change: transform;      /* hint GPU pour les zooms/rotations */
  transform: translateZ(0);    /* force la couche GPU sans isoler le contexte */
  image-rendering: optimizeSpeed;  /* priorise la fluidité */
  image-rendering: -webkit-optimize-contrast; /* améliore la netteté sur Chrome/Safari */
  backface-visibility: visible; /* évite le bug d’invisibilité */
}

.neu0-text {
    font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
}

/** ********* slider styling********/
.ctrl-opacity-slider {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translate(-50%,+0%);
    display: flex;
    border-radius: 5px;
    min-width: 170px;
    background-image: linear-gradient(to right, rgba(202, 201, 201, 0.938), rgb(30, 31, 30));
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
  }
  
  .ctrl-opacity-slider:hover {
     background-image: linear-gradient(to right,  rgba(202, 201, 201, 0.938), rgb(30, 31, 30));
  }
  
  .ctrl-opacity-slider::-webkit-slider-thumb {
    width: 10px;
    height: 24px;
    border: 0;
  }
  
  .ctrl-opacity-slider::-moz-range-thumb {
    width: 10px;
    height: 24px;
    border: 0;
  }

/******************prod type selector ***********************/
.ctrl-container {
    display: block ;
}

.ctrl-type-selector-div{
    margin-top: 15px;
}

.ctrl-selector-button{
    border-radius: 4px ;
    border: 0;
    height: 29px ;
    width: 29px ;
    vertical-align: middle !important;
    display: inline-block ;
    position: relative;
}

.ctrl-selector-text{
    color: rgba(255, 255, 255, 1);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 0px;
    vertical-align: middle ;
    display: inline-block ;
    font-size: 16px ;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
}

/******************date  selector ***********************/

.ctrl-date-div {
    color: rgba(255, 255, 255, 1);
    font-size: 16px ;
    font-weight: bold;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    text-align: center;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translate(-50%,+0%);
    display: flex;
}

.ctrl-date-text-div {
    color: rgba(255, 255, 255, 1);
    display: block;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.0);
    min-width:150px;
    margin-top:5px;
    margin-bottom:5px;
    margin-right:5px;
    margin-left:5px;
}

.date-popup-container {
    position: absolute;
    bottom: 15%;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px ;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80vh;
    overflow-y: auto;
}

.date-popup-img {
    border-radius: 4px ;
    display: block;
    margin: auto;
    min-width: 150px;
}

.popup-item{
    color: rgba(255, 255, 255, 1);
    border-bottom: solid 2px rgba(255, 255, 255, 0.5);
    display: block;
    text-align: center;
    font-size: 16px ;
    font-weight: bold;
}



/****************Add point control****************/
/* Marker Control Button */
.maplibregl-ctrl-marker {
    background-size: 100%;
    width: 29px;
    height: 29px;
    border: none;
    cursor: pointer;
}

/* Marker Popup */
.marker-popup {
    position: relative;
    top: 5%;
    width: fit-content;
    max-width: 80%;
    margin-inline: auto;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.marker-popup input[type="number"],
.marker-popup input[type="text"],
.marker-popup input[type="color"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 5px;
    border: none;
    border-radius: 5px;
}

.marker-popup button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.marker-popup button:hover {
    background-color: #45a049;
}

/********************************/

.material-symbols--home-rounded {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .material-symbols--refresh-rounded {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .material-symbols--add-road-rounded {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .material-symbols--remove-road-rounded {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .mdi--sign-direction-plus {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .mdi--sign-direction-minus {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .material-symbols--add-location-alt-rounded {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: scale(.8);
    opacity: 0.85;
  }

  .gis--layer-contour {
    display: inline-block;
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .tabler--camera-filled {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .bxs--camera-movie {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.85;
  }

  .gis--gpx-file {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform: scale(.8);
    opacity: 0.85;
  }



.unactive-selector {
        filter: invert(90%) sepia(12%) saturate(147%) hue-rotate(175deg) brightness(87%) contrast(92%);
    }

.filter-grey {
    filter: invert(90%) sepia(12%) saturate(147%) hue-rotate(175deg) brightness(87%) contrast(92%);
}

.neu0logo {
    float: right;
    }

.precipitation-legend {
    width: 70px !important;
    height: 160px !important;
    background-color:rgba(255, 255, 255, 0.7);
    border-radius: 4px !important;
    }

.snow-cloud-legend-fr {
    width: 95px !important;
    height: 65px !important;
    background-color:rgba(255, 255, 255, 0.7);
    border-radius: 4px !important;
    }

.snow-cloud-legend-en {
    width: 90px !important;
    height: 65px !important;
    background-color:rgba(255, 255, 255, 0.7);
    border-radius: 4px !important;
    }

.neu0logo:hover {
  cursor: pointer;
}

:root {
  --fadeOutTime: 20s;
}

.fade-out-text { 
  color: rgb(10,10,10);
  pointer-events: none;
  background-color:rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  position: absolute;
  text-align: center;
  opacity: 0;
  width: 70%;
  top: 30%;
  left: 15%;
  height: auto;
  padding: 1%;
  font-family: Arial;
  font-size: 20px;
  animation: fadeOut var(--fadeOutTime);
  -webkit-animation: fadeOut var(--fadeOutTime);
  -moz-animation: fadeOut var(--fadeOutTime);
  -o-animation: fadeOut var(--fadeOutTime);
  -ms-animation: fadeOut var(--fadeOutTime);
}

@keyframes fadeOut {
  0% { opacity: 1; pointer-events:auto;}
  75% { opacity: 1; pointer-events:auto;}
  100% { opacity: 0; pointer-events:none;}
}

/* === POI popup  === */
.poi-popup {
  background: transparent;
  border-radius: 0;
  padding: 0;

  color: #fff;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  text-align: left;
}

.poi-popup .poi-popup-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.25;
}

.poi-popup .poi-popup-rating {
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.95;
}

.poi-popup .hotel-city {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 10px;
}

/* Boutons/liens */
.poi-popup .poi-popup-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Style commun aux CTA */
.poi-popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  height: 34px;
  padding: 0 12px;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1px;

  color: #fff;
  background: #20B8CE;            /* cyan – bon contraste sur fond sombre */
  border: 1px solid rgba(255,255,255,0.0);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.poi-popup a:hover {
  background: #20B8CE;            /* hover plus sombre */
}

/* Variante “secondaire” (Street View) : ghost bouton */
.poi-popup .streetview-link {
  background: transparent;
  color: #e2e8f0;                 /* gris clair */
  border-color: rgba(255,255,255,0.28);
}
.poi-popup .streetview-link:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}



/* === Neu0 popup sombre semi-transparente, sans joint visible === */
:root { --neu0-pop-bg: 11,15,26; } /* #0b0f1a en RGB */

.maplibregl-popup.neu0-popup-bubble .maplibregl-popup-content {
  background: rgba(var(--neu0-pop-bg), 0.8) !important; /* opacité 0.5 */
  color: #fff;
  border: none !important;
  border-radius: 12px;
  padding: 10px 12px;
  /* Option: léger flou derrière pour un rendu propre */
  /* backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); */
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

/* Harmoniser la flèche (triangle) + supprimer le petit trait via marges négatives */
.maplibregl-popup.neu0-popup-bubble .maplibregl-popup-tip {
  border: none; /* reset pour éviter des bords parasites */
}

/* ancre bas (flèche en haut) */
.maplibregl-popup.neu0-popup-bubble.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top: 10px solid rgba(var(--neu0-pop-bg), 0.8);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-top: -1px; /* chevauche le contenu pour supprimer le trait */
}

/* ancre haut (flèche en bas) */
.maplibregl-popup.neu0-popup-bubble.maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom: 10px solid rgba(var(--neu0-pop-bg), 0.8);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  margin-bottom: -1px;
}

/* ancre gauche (flèche à droite) */
.maplibregl-popup.neu0-popup-bubble.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right: 10px solid rgba(var(--neu0-pop-bg), 0.8);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: -1px;
}

/* ancre droite (flèche à gauche) */
.maplibregl-popup.neu0-popup-bubble.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left: 10px solid rgba(var(--neu0-pop-bg), 0.8);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-right: -1px;
}

/* Bouton close lisible sur fond sombre */
.maplibregl-popup.neu0-popup-bubble .maplibregl-popup-close-button {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
  opacity: .9;
}
.maplibregl-popup.neu0-popup-bubble .maplibregl-popup-close-button:hover { opacity: 1; }




/* =======================================================
   Neu0 Unified Popup System
   For: MarkerControl, SaveAsImage, AnimationControl
   -------------------------------------------------------
   Objectif :
   - Factoriser les styles des popups Neu0.
   - Préserver l’apparence actuelle (aucune classe supprimée).
   - Faciliter l’évolution future.
   ======================================================= */

/* === Popup container === */
.neu0-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  text-align: left;
  backdrop-filter: blur(6px);
  font-family: "Open Sans", Arial, sans-serif;
  max-width: 440px;
}

/* === Popup header === */
.neu0-popup-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* === Popup content wrapper === */
.neu0-popup-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Popup footer (buttons area) === */
.neu0-popup-footer {
  text-align: right;
  margin-top: 16px;
}

/* === Labels === */
.neu0-popup-label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
  color: #f0f0f0;
}

/* === Inputs, selects, textareas === */
.neu0-popup-input,
.neu0-popup-select,
.neu0-popup-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 14px;
  box-sizing: border-box;
}

.neu0-popup-input:focus,
.neu0-popup-select:focus,
.neu0-popup-textarea:focus {
  outline: 2px solid #4CAF50;
}

/* === Buttons === */
.neu0-popup-button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.neu0-popup-button:hover {
  background-color: #45a049;
}

.neu0-popup-button:active {
  transform: scale(0.97);
}

/* === Checkbox + label alignment === */
.neu0-popup-checkbox-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.neu0-popup-checkbox-group input[type="checkbox"] {
  transform: scale(1.2);
}

/* === Grouping sections (for forms) === */
.neu0-popup-section {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* === Variants for each control === */
.neu0-popup--marker {
  max-width: 360px;
}

.neu0-popup--saveas {
  max-width: 420px;
}

.neu0-popup--animation {
  max-width: 460px;
}

/* === Scrollable popups (for long content) === */
.neu0-popup-scrollable {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4CAF50 rgba(255,255,255,0.1);
}

.neu0-popup-scrollable::-webkit-scrollbar {
  width: 6px;
}

.neu0-popup-scrollable::-webkit-scrollbar-thumb {
  background-color: #4CAF50;
  border-radius: 3px;
}

/* === Button Variants (Unified Popup System) === */
.neu0-popup-button--confirm {
  background-color: #20B8CE !important;
}

.neu0-popup-button--confirm:hover {
  background-color: #1CA0B4 !important;
}

.neu0-popup-button--cancel {
  background-color: #999999 !important;
}

.neu0-popup-button--cancel:hover {
  background-color: #999999 !important;
}

.neu0-popup-button--neutral {
  background-color: #4CAF50 !important;
}

.neu0-popup-button--neutral:hover {
  background-color: #45A049 !important;
}

/* === Color pickers (ensure visible swatch) === */
.neu0-popup-input[type="color"] {
  min-width: 48px; /* visible even in narrow layouts */
  height: 32px;    /* consistent size across browsers */
  padding: 0;      /* remove extra padding */
  cursor: pointer;
}

/* === Checkbox active color (same as confirm button) === */
.neu0-popup-input[type="checkbox"] {
  accent-color: #20B8CE; /* supported by modern browsers */
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.neu0-popup-input[type="checkbox"]:checked {
  background-color: #20B8CE;
  border-color: #20B8CE;
}


/* === Unified focus indicator for all inputs in Neu0 popups === */
.neu0-popup-input:focus,
.neu0-popup-select:focus,
.neu0-popup-textarea:focus,
.neu0-popup-input[type="color"]:focus,
.neu0-popup-input[type="number"]:focus,
.neu0-popup-input[type="text"]:focus {
  outline: 2px solid #20B8CE;
  outline-offset: 2px;
  box-shadow: 0 0 5px rgba(32, 184, 206, 0.6);
  border-color: #20B8CE;
}




/* =======================================================
   End of Neu0 Unified Popup System
   ======================================================= */

.neu0-popup-flex {
  display: flex;
  gap: 10px;
}

.neu0-popup-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.neu0-popup-flex-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Common popup spacing === */
.neu0-popup-gap-sm {
  margin-top: 6px;
  margin-bottom: 6px;
}

.neu0-popup-gap-md {
  margin-top: 10px;
  margin-bottom: 10px;
}

/* === Inputs === */
.neu0-popup-input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #222;
  color: #fff;
  font-size: 13px;
}

.neu0-popup-input::placeholder {
  color: #aaa;
}

.neu0-popup-input[type="number"]::-webkit-inner-spin-button,
.neu0-popup-input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.neu0-popup-input[type="color"] {
  min-width: 48px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  border: none;
  border-radius: 4px;
}

/* === Focus style for all inputs === */
.neu0-popup-input:focus,
.neu0-popup-select:focus,
.neu0-popup-textarea:focus,
.neu0-popup-input[type="color"]:focus,
.neu0-popup-input[type="number"]:focus,
.neu0-popup-input[type="text"]:focus {
  outline: 2px solid #20B8CE;
  outline-offset: 2px;
  box-shadow: 0 0 5px rgba(32, 184, 206, 0.6);
  border-color: #20B8CE;
}

/* === Select dropdowns === */
.neu0-popup-select {
  flex: 1;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background-color: #222;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

/* === Range sliders === */
.neu0-popup-slider {
  flex: 1;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: #444;
  cursor: pointer;
}
.neu0-popup-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #20B8CE;
  cursor: pointer;
  transition: background-color 0.2s;
}
.neu0-popup-slider::-webkit-slider-thumb:hover {
  background: #1CA0B4;
}

/* === Checkboxes === */
.neu0-popup-input[type="checkbox"] {
  accent-color: #20B8CE;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.neu0-popup-input[type="checkbox"]:focus {
  outline: 2px solid #20B8CE;
  outline-offset: 2px;
  box-shadow: 0 0 4px rgba(32, 184, 206, 0.6);
}

/* === Buttons === */
.neu0-popup-button {
  flex: 1;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.neu0-popup-button--confirm {
  background-color: #20B8CE;
  color: white;
}
.neu0-popup-button--confirm:hover {
  background-color: #1CA0B4;
}

.neu0-popup-button--cancel {
  background-color: #AA3333;
  color: white;
}
.neu0-popup-button--cancel:hover {
  background-color: #992B2B;
}

/* === Image & legend elements === */
.neu0-popup-logo-img {
  width: 100px;
  height: 100px;
  cursor: pointer;
}
.neu0-popup-legend-img {
  max-width: 160px;
  height: auto;
}

/* === Alignment helpers === */
.neu0-popup-center {
  text-align: center;
}
.neu0-popup-right {
  text-align: right;
}
.neu0-popup-left {
  text-align: left;
}


/* ==== Mire au centre de la carte ==== */


#map-center-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
}


#map-center-crosshair .crosshair-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);  /* disque léger façon popup */
    background-color: rgba(0, 0, 0, 0.05);       /* voile très léger */
    position: relative;
    box-shadow: 0 0 8px rgba(0,0,0,0.35);
}

#map-center-crosshair .crosshair-line {
    position: absolute;
    background-color: #000;
    opacity: 0.9;
}

#map-center-crosshair .crosshair-line-h {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

#map-center-crosshair .crosshair-line-v {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

/* ==== Panneau lat/lon/alt du centre (style inspiré des popups) ==== */

/* Désactive l'ancien panneau popup */
.center-info-div {
    display: none !important;
}


.crosshair-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    margin-left: -40px; /* centre le cercle autour du point central */
    margin-top: -40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    pointer-events: none;
}


/* Altitude AU-DESSUS du cercle */
#center-alt {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 4px black;
    pointer-events: none;
}

/* Lat/Lon EN-DESSOUS du cercle */
#center-latlon {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 0 4px black;
    pointer-events: none;
}

#center-alt,
#center-latlon {
    white-space: nowrap;
}

/* Boîte translucide derrière les infos de la mire */
.center-info-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.45); /* rectangle transparent */
    border-radius: 6px;
    white-space: nowrap;             /* texte sur une seule ligne */
    font-size: 14px;                 /* cohérent avec neu0-text */
    color: white;
    text-shadow: 0 1px 3px black;    /* meilleure lisibilité */
    pointer-events: none;
}

/* altitude AU-DESSUS du cercle */
#center-alt {
    top: -28px;
}

/* lat/lon EN-DESSOUS du cercle */
#center-latlon {
    bottom: -28px;
}



/* ==== Fin panneau lat/lon/alt du centre ==== */
#neu0-mire-mini {
    pointer-events: auto;
    cursor: pointer;
}

.mire-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.55);

    box-shadow:
        0 0 4px rgba(255,255,255,0.25);

    pointer-events: none;
    z-index: 1000;
    display: none;
}

.mire-mini-line {
    position: absolute;
    background: rgba(255,255,255,0.75);
}

.mire-mini-line-h {
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );
}

.mire-mini-line-v {
    left: 50%;
    top: 4px;
    bottom: 4px;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );
}


.mire-line-h, .mire-line-v {
    position: absolute;
    background: black;
    opacity: 0.8;
}

.mire-line-h {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 2px;
    transform: translateY(-50%);

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );
}


.mire-line-v {
    position: absolute;
    left: 50%;
    top: 10%;
    height: 80%;
    width: 2px;
    transform: translateX(-50%);

    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255,255,255,0.7),
        transparent
    );
}


#center-alt    { top: -30px; }
#center-latlon { bottom: -30px; }





/* Rayon autour de la mire */
:root {
    --mire-radius: 65px;
}


/* --- MIRE CENTRALE --- */

#neu0-mire {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none; 
    z-index: 1000;
}



.mire-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0);
    pointer-events: none;
}


/* --- Informations (alt + lat/lon) --- */

.mire-info-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 6px;
    background: rgba(0,0,0,0.45);
    border-radius: 4px;
    white-space: nowrap;
    color: white;
    font-size: 14px;
}

#center-alt {
    top: -28px;
}

#center-latlon {
    bottom: -28px;
}



/* Boutons de la mire */

.mire-btn {
    position: static; 
    
    width: 32px;
    height: 32px;

    border-radius: 8px;
    border: 0px solid rgba(255,255,255,0.35);

    background-color: rgba(0,0,0,0.35);
    background-size: 70% 70%;
    background-repeat: no-repeat;
    background-position: center;

    box-shadow:
        0 2px 6px rgba(0,0,0,0.35),
        inset 0 0 2px rgba(255,255,255,0.25);

    /*backdrop-filter: blur(2px);*/
    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}

.mire-btn:hover {
    background-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}


.mire-actions {
    position: absolute;
    top: 42px;               /* sous le cercle (rayon ~40px) */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

/* Conteneur des boutons de la mire */
/*
.mire-actions {
    position: absolute;
    top: 50%;
    left: 40px; 
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: auto;
}
*/
.mire-actions {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 8px;
    pointer-events: auto;
}

/* Style des boutons de la mire */
.mire-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background-color: rgba(0, 0, 0, 0.35);
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1002;
}

/* Bandeaux à droite des boutons, collés et coins gauches non arrondis */
/*
.mire-btn::after {
    content: attr(data-bandeau);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 0 6px 6px 0; 
    font-size: 12px;
    white-space: nowrap;
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
    z-index: 1001;
}
    */

.mire-btn::after {
    content: attr(data-bandeau);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.6s ease;
}

.mire-btn.bandeau-hidden::after {
    opacity: 0;
}


/* Effet de survol pour les bandeaux (optionnel) */
.mire-btn:hover::after {
    background-color: rgba(0, 0, 0, 0.9);
}


.hotels-popup-btn {
    background-color: #1b63c6; /* bleu Hotels */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.hotels-popup-btn:hover {
    background-color: #144fa0;
}

/* Popup météo AIFS : plus large que les popups "marker" standards */
.neu0-popup.weather-popup {
  width: min(980px, 96vw);
  max-width: 96vw;
}

/* Ligne correspondant au run datetime (manifest.run_datetime_utc) */
.neu0-run-row td {
  border-top: 3px solid #2ecc71 !important;
}


.neu0-meteogram-canvas {
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.15);
}

/* =========================
   Meteogram popup sizing
   ========================= */
.neu0-popup.meteogram-popup {
  width: 90vw;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 16px;
  overflow: hidden; 
}

/* grands écrans */
@media (min-width: 1200px) {
  .neu0-popup.meteogram-popup {
    width: 60vw;
    max-width: 60vw;
  }
}

/* Le body contient le chart et scroll verticalement si besoin */
.neu0-popup.meteogram-popup .neu0-popup-body {
  flex: 1 1 auto;
  overflow-y: hidden;
  overflow-x: hidden;
  min-height: 0;        /* essentiel pour que flex+overflow fonctionne */
}

/* container echarts */
.neu0-meteogram-echarts {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.12);
}

@media (max-height: 700px) {
  .neu0-meteogram-echarts {
    height: 60vh;
    min-height: 240px;
  }
}

.neu0-popup.meteogram-popup .neu0-popup-header {
  flex: 0 0 auto;
  position: sticky;
  top: -12px;           /* remonte de la valeur du padding du popup */
  z-index: 1;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  padding: 12px 16px 8px;
  margin: -12px -16px 4px; /* compense le padding du popup pour aller bord à bord */
  border-radius: 12px 12px 0 0;  /* reprend le border-radius du .neu0-popup */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}