.bouton_debut {
  background-color: #f39200 !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 8px 20px !important;
  font-weight: bold;
  font-family: Calibri;
  font-size: 20;
}


.ol-popup{
  color: black;
}

.ol-popup.default .anchor {
  color: #f39200
}

.ol-popup.default > div {
  background-color: #fff;
  border: 2px solid #f39200;
  border-radius: 5px;
}

.ol-popup .closeBox {
  background-color:#f39200;
  color: #fff;
}


.ol-legend > canvas {
  float: left;
}
.ol-legend > div.ol-legend {
  position: relative;
}


/* Le body prend toute la page sans marges */
body {
  margin: 0;
  padding: 0;
  display: flex;
  height: 100%;
  font-family: Calibri, sans-serif;
}

/* Conteneur global */
.container {
  display: flex;
  height: 100vh; /* pleine hauteur de la fenêtre */
  width: 100%;
}


/* Panneau latéral gauche */
.sidebar {
  width: 260px;
  background: #f4f4f4;
  padding: 10px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Style des menus déroulants */
.sidebar select {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  width: 100%;
}


#info {
padding: 10px;
padding-top: 0px;
line-height: 1.4em;
min-height: 40px;
}

#info_presentation{
  padding-top: 10px;
  line-height: 1.4em;
}

p {
  margin-top: 0;     /* supprime la marge au-dessus */
}

.zonages-list {
  list-style: none; /* supprime les puces */
  padding-left: 0;
}


/* La carte occupe tout le reste */
#map {
  flex-grow: 1; /* prend tout l’espace restant */
  height: 100%;
  width: 100%;
}


.ol-legend img {
  width: 10px !important;
  height: auto !important;
}


.ol-control button {
  color: white;
  font-weight: 700;
  line-height: .4em;
  background-color:   rgba(129, 129, 129, 0.3);
}

.layer-switcher {
  position: absolute;
  top: .5em;
  right: .5em;
}

.layer-switcher button {
  float: right;
  z-index: 1;
  width: 38px;
  height: 38px;
  background-image: url('https://raw.githubusercontent.com/mondarverne/web_map_plui_arr1/main/IMAGES/layer_icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  color: rgb(0, 0, 0);
  border: none;
}


.layer-switcher .panel {
  margin: 0;
  border: 4px solid rgba(129, 129, 129, 0.3);
  border-radius: 4px;
  background-color: white;
  display: none;
  max-height: inherit;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  font-size: 14;
}

.layer-switcher input[type="checkbox"] {
  accent-color: rgba(129, 129, 129, 0.3); /* couleur principale */
  cursor: pointer;
}

.ol-scale-line {
  font-weight: bold;
  top: auto;
  right: auto;
  bottom: 10px;
  left: 10px;
  background-color: rgba(129, 129, 129, 0.3);
}

.ol-scale-line-inner {
  color: white;
  border-color: white;
}


.custom-legend {
  bottom: 40px !important;
  left: 10px !important;
  right: auto !important;
  top: auto !important;
}
