:root {
  --timing-color-jour: black;
  --timing-color-nuit: aliceblue;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

[data-time="nuit"] {
  color: var(--timing-color-nuit);
}

[data-time="jour"] {
  color: var(--timing-color-jour);
}

html,
body {
  width: 100%;
  height: 100vh;
}

body {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
}

body[data-time="jour"] {
  background-image: url("bellejournée.jpg");
  background-size: cover;
  background-position: center;
}

body[data-time="nuit"] {
  background-image: url("nuit.jpg");
  background-size: cover;
  background-position: center;
}

header {
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 80px;
  padding: 0 30px;
  border-radius: 0% 0% 100% 0% / 0% 0% 100% 0%;
}

header[data-time="nuit"] {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  color: var(--timing-color-nuit);
}

header[data-time="jour"] {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  color: var(--timing-color-nuit);
}

main {
  width: 100%;
  height: calc(100vh - 60px);
}

.container {
  position: relative;
  width: 80%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 32px;
  padding: 0;
}

.container > p {
  position: relative;
  text-align: center;
  font-size: 1em;
  line-height: 1.5em;
  padding: 10px 0;
}

.container > p > span:first-of-type {
  position: relative;
  font-weight: bold;
  font-style: italic;
  font-size: 1.2em;
  margin-left: 5px;
  white-space: pre;
}

.container > p > span:first-of-type::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 0%;
  height: 0.08em;
  background: currentColor;
  transition: width 0.3s;
  transition-delay: 0.2s;
}

.container > p:hover > span:first-of-type::before {
  width: 100%;
}

.container > p > span:first-of-type::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 0%;
  height: 0.08em;
  background: currentColor;
  transition: width 0.3s;
  transition-delay: 0.2s;
}

.container > p:hover > span:first-of-type::after {
  width: 100%;
}

.tooltip {
  position: absolute;
  right: 0;
  top: 100%;
  opacity: 0;
  color: #fff;
  background-color: rgba(34, 34, 34, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  padding: 10px;
  font-size: 15px;
  line-height: 2em;
  transform: translateY(30px);
  transition: opacity 0.3s, transform 0.5s;
}

.container > p:hover > .tooltip {
  transform: translateY(0);
  opacity: 1;
}

.container div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  padding: 10px 0;
}

.container div {
  align-items: center;
}

.container div > i {
  font-size: 4em;
  margin: 0 0 30px 0;
}

/* .container div .estimation {
    margin: 0 0 0 10px;
} */

.container div .estimation p:first-of-type {
  font-size: 1em;
}

.container div .estimation p:not(:first-of-type) {
  font-size: 0.7em;
  padding: 3px 0;
}

.container div .estimation p:not(:first-of-type) span {
  font-style: italic;
}

.container > a {
  color: azure;
  border: 1px solid rgba(44, 10, 97, 0.7);
  box-shadow: 3px 3px 8px rgba(44, 10, 97, 0.7);
  border-radius: 5px;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 0.7em;
  backdrop-filter: blur(5px);
}
.container > a[data-time="nuit"] {
  color: var(--timing-color-nuit);
  background: rgba(44, 10, 97, 0.1);
}

.container > a[data-time="jour"] {
  color: var(--timing-color-jour);
  background: rgba(44, 10, 97, 0.1);
}

@media screen and (max-width: 680px) and (orientation: portrait) {
  main {
    height: calc(100% - 80px);
  }

  header {
    padding: 20px;
    height: 80px;
    align-items: flex-start;
  }

  .container {
    width: 95%;
    font-size: 24px;
    justify-content: space-between;
    padding: 30px 0 50px 0;
  }

  .container div > i {
    margin: 0 0 30px 0;
  }
}

@media screen and (max-width: 820px) and (orientation: landscape) {
  main {
    padding: 0;
  }

  .container {
    width: 95%;
    font-size: 24px;
    justify-content: space-between;
    padding: 10px 0 30px 0;
  }

  .container div {
    width: 80%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .container div > i {
    margin: 0 10px 0 0;
  }

  .container div .estimation {
    width: auto;
    min-width: 330px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 0 10px;
  }
}
