html, body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Trebuchet MS', sans-serif;
  background-color: #f1f2f6;
  color: #333;
}
a {
  color: #000;
  background-color: #e1e2e6;
  padding: 0.2em 0.75em;
  border-radius: 5px;
  text-decoration: none;
}
header {
  padding: 1em 2em;
  z-index: 1;
  display: block;
  background-color: #fff;
}
main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}
header h1 {
  margin: 0;
}
footer {
  text-align: right;
  padding: 0.5em 2em;
  background-color: #f1f2f6;
}
footer h2 {
  margin: 0 0 0.2em;
  cursor: pointer;
  text-align: center;
}
footer p {
  margin: 0;
}

aside {
  padding: 0.5em 1em;
  display: block;
  background-color: #f1f2f6;
  max-width: 40%;
}
section {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  overflow: hidden;
}
#map:before {
  content: "";
  position: absolute;
  background-color: transparent;
  inset: 0 -1em -1em 0;
  pointer-events: none;
  box-shadow: inset 0 0 5px #000;
}

section > div {
  flex: 1;
  display: flex;
  flex-direction: row;
}
section > div div {
  flex: 25%;
  padding: 1em;
}
section > div div span {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
}

#map {
  width: 100%;
  height: 100%;
  border: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
li {
  margin-bottom: 2em;
}
li label {
  display: block;
  margin: 0.5em 0.25em;
}
select {
  display: block;
  width: 100%;
  font-size: 1em;
  padding: 0.5em;
  border-radius: 5px;
  min-width: 8em;
  margin-top: 0.5em;
  border: 0;
  outline: none;
}
select:focus-visible {
  outline: auto;
}

[data-attr="tx"] span:after {
  content: "%";
}
input[type="range"] {
  display: block;
  width: 100%;
}
datalist {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  user-select: none;
}

datalist option {
  text-align: center;
  min-width: 0.8em;
}

#analyse {
  white-space: nowrap;
  text-align: center;
  width: 100%;
  position: relative;
  margin-bottom: 6em;
}
footer[data-analys="false"] #analyse {
  display: none;
}

#analyse > div {
  display: inline-block;
  width: 10px;
  padding: 0 2px;
  font-size: 5px;
  cursor: pointer;
  height: 180px;
  max-height: 180px;
  overflow: hidden;
}
#analyse > div:hover {
  background-color: #e1e2e6;
}

#analyse > div > div {
  background-color: #6793c8;
  vertical-align: bottom;
  display: inline-block;
  width: 10px;
}
#analyse > div > div:first-child {
  background-color: transparent;
  height: 100%;
  width: 0px;
}

#analyse > div:hover:before {
  content: attr(aria-label);
  position: absolute;
  font-size: 3em;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: #fff;
  padding: 0 .5em;
  border-radius: 5px;
  box-shadow: 1px 1px 3px #000;
  z-index: 1;
}
#analyse > div:after {
  content: attr(name);
  font-size: 2.5em;
  position: absolute;
  bottom: 0;
  transform: translate(-1em, 1em) rotate(-45deg) translateX(-100%);
  transform-origin: 0 0;
}
#analyse > div:hover:after {
  font-size: 3em;
  z-index: 1;
  background-color: #f1f2f6;
  box-shadow: 0 0 5px #f1f2f6;
  font-weight: bold;
}

footer .copy {
  display: block;
  z-index: 5;
  background-color: #f1f2f6;
  position: relative;
}

footer > button {
  background: none;
  border: 0;
  width: 1.5em;
  height: 1em;
  cursor: pointer;
  position: absolute;
  left: 1em;
}
footer[data-analys="false"] button {
  transform: rotate(-90deg);
}
footer > button:before {
  content: "";
  border: 0.75em solid transparent;
  border-top-color: #6793c8;
  border-bottom: 0;
  position: absolute;
  top: 0;
  right: 0;
}
footer[data-analys="false"] h2 {
  text-align: left;
  margin: -0.25em 0;
  line-height: 1.2em;
  overflow: visible;
  height: 1em;
  z-index: 10;
  position: relative;
  font-size: 1em;
}
