:root {
  --taille-select-gauche: 90%;
}

#selecteur {
  display: flex;
  flex-direction: row;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#selecteur-gauche,
#selecteur-droite {
    flex: 1;
}

#selecteur-gauche {
  flex: 0 0 max(33%, 400px);
  height: 100vh;
  overflow: scroll;
  -ms-overflow-style: none !important; scrollbar-width: none !important;
}

#selecteur-droite {
  position: relative;
  height: 100vh;
}

/* MENU */

#menu-selecteur {
  position: relative;
  width: var(--taille-select-gauche);
  margin: 4vh auto 2vh auto;
  display: table;
}

#menu-selecteur li {
  display: table-cell;
  vertical-align: middle;
  padding: 1vw;
}

#menu-selecteur li p {
  display: block;
  text-align: center;
  font-size: 0.6vw;
  line-height: 0.6vw;
  letter-spacing: 0.05vw;
  text-transform: uppercase;
  font-family: 'SansBold', sans-serif;
}

#menu-selecteur li p img.logo-principal {
  display: inline-block;
  width: 12vw;
}

#menu-selecteur li p span.separation {
  display: inline-block;
  width: 2px;
  height: 3vh;
  background-color: var(--color-gris-fonce);
}

#menu-selecteur li p img.picto {
  display: inline-block;
  width: 2vw;
  margin-bottom: 1vh;
}

/* MENU FILTRES */

#menu-filtres {
  width: var(--taille-select-gauche);
  margin: 2vh auto;
  padding: 0;
  display: flex;
  flex-direction: row;         /* <-- reste bien en ligne */
  justify-content: space-between;
  align-items: center;
}

#menu-filtres li {
  vertical-align: middle;
  padding: 0.4vw;
  text-align: center;
  flex: 0 0 auto;
}

#menu-filtres li p {
  display: inline-block;
  padding: 0.8vw 0vw;
  margin: 0.1vw 0;
  text-transform: uppercase;
  font-family: 'SansBold', sans-serif;
  color: var(--color-gris-fonce);
  font-size: 0.7vw;
  line-height: 0.9vw;
  letter-spacing: 0.1vw;
  transition-duration: 0.4s;
}

#menu-filtres li:last-of-type {
  border: 2px solid  var(--color-gris-fonce);
  transition-duration: 0.4s;
  cursor: pointer;
  background-color: white;
}

#menu-filtres li:last-of-type:hover {
  background-color: var(--color-selecteur-dispo);
}

#menu-filtres li:last-of-type p {
  padding: 0;
}

#menu-filtres li:last-of-type p img {
  display: inline-block;
  width: 1.6vw;
  vertical-align: middle;
}

#menu-filtres li.select-type {
  border: 2px solid  var(--color-gris-fonce);
  cursor: pointer;
}

#menu-filtres li.select-type p {
  display: table;
  width: 100%;
  padding: 0;
}

#menu-filtres li.select-type p span {
  display: table-cell;
  padding: 1vw;
  transition-duration: 0.4s;
}

#menu-filtres li.select-type p span.active {
  background-color: var(--color-gris-fonce);
  color: white;
}

#menu-filtres li p.filtre-compte-lot {
  font-family: 'Serif', serif;
  text-align: right;
  font-size: 1.4vw;
  line-height: 1.4vw;
}

#menu-filtres li p.filtre-compte-lot span {
  font-size: 2.0vw;
  color: var(--color-selecteur-dispo);
}

#menu-filtres li p.filtre-titre-lot {
  font-family: 'SansBold', sans-serif;
  text-align: left;
  font-size: 0.7vw;
  line-height: 0.9vw;
  text-transform: uppercase;
}

#menu-filtres li:nth-child(2) { text-align: right; }
#menu-filtres li:nth-child(3) { text-align: left; }

/* FILTRES */

#bloc-filtres {
  display: none;
  width: var(--taille-select-gauche);
  margin: 2vh auto;
} #bloc-filtres.active { display: block; }

#bloc-filtres ul {
  display: flex;
  flex-direction: row;
}

#bloc-filtres ul li {
  flex: 1;
  text-align: center;
  padding: 0px;
}

#bloc-filtres ul li:first-child {
  flex: 0 0 20%; /* Largeur fixe de 20% */
  text-align: center;
}

#bloc-filtres ul li.filtre { cursor: pointer; }

#bloc-filtres ul li:first-of-type {
  text-align: left;
}

#bloc-filtres ul li p {
  display: block;
  background-color: #c6818b;
  margin: 4px;
  padding: 18px 0;
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce), inset 0 0 0 6px white;
  font-family: 'SansBold', sans-serif;
  font-size: 0.8vw;
  line-height: 0.8vw;
  text-transform: uppercase;
  opacity: 0.5;
}

#bloc-filtres ul li p sup {
  font-size: 0.5vw;
}

#bloc-filtres ul li.active p {
  background-color: var(--color-selecteur-dispo);
  color: var(--color-gris-fonce);
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce), inset 0 0 0 6px white;
  opacity: 1;
}

#bloc-filtres ul li:first-of-type p {
  margin-left: 0px;
  box-shadow: none;
  background-color: white;
  text-transform: none;
  font-family: 'Serif', serif;
  font-size: 1.2vw;
}
#bloc-filtres ul li:last-of-type p { margin-right: 0px; }

a.validation-filtres {
  display: block;
  background-color: var(--color-gris-clair);
  text-align: center;
  padding: 0.8vw 0 0.7vw 0;
  font-family: 'SansBold', sans-serif;
  text-transform: uppercase;
  font-size: 0.8vw;
  letter-spacing: 0.2vw;
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce);
  cursor: pointer;
  margin: 0.2vh 0;
  transition-duration: 0.4s;
} a.validation-filtres:hover { background-color: var(--color-gris-light); }

a.reset-filtres {
  display: block;
  background-color: white;
  text-align: center;
  padding: 0.8vw 0 0.7vw 0;
  font-family: 'SansBold', sans-serif;
  text-transform: uppercase;
  font-size: 0.8vw;
  letter-spacing: 0.2vw;
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce);
  cursor: pointer;
  margin: 0.2vh 0;
  transition-duration: 0.4s;
} a.reset-filtres:hover { background-color: var(--color-gris-light); }

/* TABLEAU */

p.titre-tableau {
  display: block;
  font-family: 'Serif', serif;
  font-size: 1.4vw;
  color: #c6818b;
  text-align: center;
} p.titre-tableau.hide { display: none; }

#selecteur-tableau {
  position: relative;
  width: var(--taille-select-gauche);
  margin: 0 auto;
}

div.lot {
  position: relative;
  width: 100%;
  margin: 1vh 0;
  box-shadow: 0 0 0 1px var(--color-gris-fonce);
  transition-duration: 0.4s;
}

.hidePiece { display: none; }
.hideEtage { display: none; }
.hideBatiment { display: none; }
.hideType { display: none; }
.hideCategorie { display: none; }

div.lot.disponible:hover { box-shadow: 0 0 0 1px var(--color-gris-fonce), -10px 0 0 0 var(--color-selecteur-dispo); }
div.lot.reserve:hover { box-shadow: 0 0 0 1px var(--color-gris-fonce), -10px 0 0 0 var(--color-selecteur-reser); }
div.lot.vendu:hover { box-shadow: 0 0 0 1px var(--color-gris-fonce), -10px 0 0 0 var(--color-selecteur-vendu); }

div.lot ul:nth-child(2) { display: none; }
div.lot.disponible.active ul:nth-child(2) { display: table; }

div.lot ul {
  display: table;
  width: 100%;
}

div.lot ul:nth-child(1) { cursor: pointer; table-layout: fixed; }

div.lot ul li {
  display: table-cell;
  border: 1px solid var(--color-gris-fonce);
  padding: 0.4vw;
}

div.lot ul li p {
  display: inline-block;
  text-transform: uppercase;
  font-family: 'SansBold', sans-serif;
  font-size: 0.7vw;
  line-height: 1.0vw;
}

div.lot ul li p span {
  display: block;
  font-size: 0.5vw;
  line-height: 0.7vw;
  letter-spacing: 0.1vw;
  margin-bottom: 0.2vw;
}

div.lot ul li p sup {
  display: inline-block;
  font-size: 0.4vw;
  line-height: 0.8vw;
  margin-left: 0.1vw;
}

div.lot.disponible ul:nth-child(1) li:last-of-type { background-color: var(--color-selecteur-dispo); }
div.lot.reserve ul:nth-child(1) li:last-of-type { background-color: var(--color-selecteur-reser); }
div.lot.vendu ul:nth-child(1) li:last-of-type { background-color: var(--color-selecteur-vendu); }

div.lot ul li.vue,
div.lot ul li.dl {
  transition-duration: 0.4s;
  background-color: var(--color-gris-clair);
  cursor: pointer;
}

div.lot ul li.vue:hover,
div.lot ul li.dl:hover {
  background-color: var(--color-gris-light);
}

/* TAILLE LIGNE */

div.lot ul:nth-child(1) li:nth-child(1) { width: 25%; }
div.lot ul:nth-child(1) li:nth-child(2) { width: 9%; }
div.lot ul:nth-child(1) li:nth-child(3) { width: 16%; }
div.lot ul:nth-child(1) li:nth-child(4) { width: 13%; }
div.lot ul:nth-child(1) li:nth-child(5) { width: 15%; }
div.lot ul:nth-child(1) li:nth-child(6) { width: 22%; }

/* SELECTION ETAGES */

ul#selection-ecran {
  position: absolute;
  width: auto;
  margin: 0 auto;
  height: auto;
  background-color: white;
  display: flex;
  flex-direction: row;
  left: 50%;
  bottom: 2vh;
  transform: translate(-50%, 0);
}

ul#selection-ecran li {
  flex: 1;
  padding: 2vh 1.5vw;
  margin: 0.5vw;
  cursor: pointer;
  transition-duration: 0.4s;
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce), inset 0 0 0 6px white;
}

ul#selection-ecran li:hover { background-color: var(--color-gris-clair); }

ul#selection-ecran li.active {
  background-color: var(--color-gris-fonce);
  color: white;
  box-shadow: inset 0 0 0 2px var(--color-gris-fonce), inset 0 0 0 6px white;
}

ul#selection-ecran li p {
  font-family: 'SansBold', sans-serif;
  font-size: 1.5vh;
  line-height: 1.5vh;
  text-align: center;
  color: inherit;
  text-transform: uppercase;
}

/* ILLUSTRATION */

ul#illustration-selecteur {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-position: center;
  background-size: cover;
}

ul#illustration-selecteur li {
  display: none;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: bottom center;
}

ul#illustration-selecteur li.active {
  display: block;
}

ul#illustration-selecteur li svg, ul#illustration-selecteur li img {
  position: absolute;
  bottom: 0%;
  left: 0%;
  object-fit: contain;
  height: 100%;
  width: 100%;
}

/* SVG */

.cls-1 { fill: none; }
.cls-2 { fill: #ddab2c; stroke-width: 1px; stroke: white; }

polygon { opacity: 0.3; cursor: pointer; transition-duration: 0.2s; }
polygon:hover { opacity: 0.8; }
polygon.polyClic { opacity: 1; }

polygon.polyDisponible.cls-2 { fill : var(--color-selecteur-dispo); }
polygon.polyReserve.cls-2 { fill : var(--color-selecteur-reser); }
polygon.polyVendu.cls-2 { fill : var(--color-selecteur-vendu); }

/* BOX UP */

#box-up {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 100;
  background-color: white;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
}

#box-up.active {
  display: block;
}

#box-up:before {
  content:"";
  position: absolute;
  top: 120%;
  left: 50%;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
  background-color: white;
  transform: translate(-50%, -0%);
  border: 3px solid var(--color-gris-fonce);
  background-image: url('../svg/fleche-box-up.svg');
  background-position: center;
  background-size: 50%;
  background-repeat: no-repeat;
}

#box-up tr td {
  border: 3px solid var(--color-gris-fonce);
  text-align: center;
  padding: 0.8vh 1.5vw;
}

#box-up tr td p {
  font-family: 'SansBold', sans-serif;
  text-transform: uppercase;
  font-size: 2vh;
  line-height: 2.4vh;
}

#box-up tr td p i {
  font-family: 'SansLight', sans-serif;
  font-size: 1.4vh;
  line-height: 1.4vh;
}

#box-up.disponible tr:nth-child(2) td { background-color: var(--color-selecteur-dispo); }
#box-up.réservé tr:nth-child(2) td { background-color: var(--color-selecteur-reser); }
#box-up.vendu tr:nth-child(2) td { background-color: var(--color-selecteur-vendu); }
#box-up.loué tr:nth-child(2) td { background-color: var(--color-selecteur-vendu); }

/* LEGENDE */

.legende-filtres {
  text-transform: uppercase;
  font-size: 0.65vw;
  line-height: 0.8vw;
  margin: 0.8vh 0;
  font-family: 'SansBold', sans-serif;
  text-align: center;
}
