@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700");

html {
  margin: 0;
  padding: 0;
  color: white;
  overflow: hidden;
  font-family: Poppins, sans-serif;
  font-size: 0.9vw;
  background-color: #1b3061;
}

a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  font-size: 1.3rem;
}

header,
footer {
  position: absolute;
}

header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  top: 3rem;
}

header > a {
  margin-left: 10%;
}

header img {
  width: 200px;
}

header div {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  margin-right: 10%;
}

header div ul {
  display: flex;
  list-style-type: none;
}

header div ul li a {
  padding: 1rem;
  display: block;
}

header div ul li:hover {
  border-bottom: solid 3px white;
  transition: border-bottom 0.1s ease;
}

header .btn {
  margin-left: 3rem;
}

footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  bottom: 2rem;
  width: 100%;
}

footer img {
  height: 2.2rem;
  margin: 0 0.5rem;
}

footer p span {
  font-weight: bold;
  color: #fbb911;
}

footer p a:hover {
  color: #fbb911;
}

.btn {
  background-color: #1b3061;
  color: white;
  font-weight: 400;
  font-family: Poppins, sans-serif;
  padding: 0.3rem 0.8rem;
  border: solid 3px white;
  border-radius: 10px;
  font-size: 1.3rem;
}

.btn:hover {
  border-color: #fbb911;
  transition: border-color 0.3s ease;
}

.pg-wrapper.pg-horizontal {
  overflow-x: hidden !important;
}

.pg-horizontal .pg-pips {
  bottom: 7rem;
}

.txt {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  top: 25vh;
}

.txt h2 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 0;
}

.txt h2 span {
  color: #fbb911;
}

.txt p {
  font-size: 1.6rem;
  margin-bottom: 2.2rem;
}

#container {
  width: 100vw;
  height: 100vh;
}

#container > div:first-child,
#container > div:nth-child(2),
#container > div:nth-child(3),
#container > div:nth-child(4),
#container > div:nth-child(5),
#container > div:last-child {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#container > div:first-child {
  background-image: url("img/accueil/accueil.jpg");
}

#container > div:nth-child(2) {
  background-image: url("img/accueil/tdb.jpg");
}

#container > div:nth-child(3) {
  background-image: url("img/accueil/visualisation.jpg");
}

#container > div:nth-child(4) {
  background-image: url("img/accueil/extraction.jpg");
}

#container > div:nth-child(5) {
  background-image: url("img/accueil/methanisation.jpg");
}

#container > div:nth-child(6) {
  background-image: url("img/accueil/sig.jpg");
}

#container > div:last-child {
  background-image: url("img/accueil/documentation.jpg");
}

/* Nav */

nav .nav {
  position: fixed;
  top: 50%;
  -webkit-transform: translate3d(0, -50%, 0);
  transform: translate3d(0, -50%, 0);
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: opacity 250ms ease;
  padding: 20px;
}

nav .nav.active {
  opacity: 1;
}

nav .nav.nav-prev {
  left: 0;
}

nav .nav.nav-prev button::after {
  content: "\FB0E";
}

nav .nav.nav-next {
  right: 0;
}

nav .nav.nav-next button::after {
  content: "\FB10";
}

nav .nav button {
  position: relative;
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

nav .nav button::after {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  font-size: 49px;
  color: #fff;
  font-family: "Material Design Icons";
}

li.nav.nav-next.pg-nav::marker {
  content: "";
}

/* Pop-in */

.modal {
  font-family: Poppins, sans-serif;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__container {
  padding: 30px;
  max-width: 700px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
  border-radius: 20px;
  border: solid 3px white;
  background-color: #1b3061;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  box-sizing: border-box;
  text-align: center;
}

.modal__close {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.modal__header .modal__close:before {
  font-family: "Material Design Icons";
  content: "\F15A";
  font-size: 30px;
  color: white;
}

.modal__content {
  line-height: 1.5;
}

.modal__content p,
.modal__content a {
  font-size: 15px;
}

.modal__content a {
  color: #fbb911;
  outline: none;
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
  position: absolute;
  z-index: 9999;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/* Responsive */

@media screen and (min-width: 1800px) {
  header div a,
  footer p a {
    font-size: 22px;
  }

  footer img {
    height: 35px;
  }

  .txt h2 {
    font-size: 77px;
  }

  .txt p,
  .txt a {
    font-size: 22px;
  }
}

@media screen and (max-width: 1200px) {
  html {
    font-size: 1vw;
  }

  header {
    flex-direction: column;
  }

  header > a {
    text-align: center;
    margin-left: 0;
  }

  header div {
    justify-content: center;
  }

  header div ul {
    padding-left: 0;
  }

  header div a,
  header .btn {
    font-size: 18px;
  }

  footer {
    flex-direction: column;
  }

  footer img {
    height: 33px;
  }

  footer p,
  footer a {
    font-size: 18px;
  }

  .pg-horizontal .pg-pips {
    bottom: 130px;
  }

  .txt {
    text-align: center;
    top: 33vh;
  }

  .txt h2 {
    font-size: 50px;
  }

  .txt p,
  .txt a {
    font-size: 18px;
  }
}

@media screen and (max-width: 850px) {
  header a {
    font-size: 18px;
    padding: 5px !important;
  }

  header div ul li:hover {
    border-bottom: none;
  }

  header div,
  header div ul {
    flex-direction: column;
    align-items: center;
  }

  header div {
    position: relative;
    top: -33px;
  }

  header .btn {
    margin-left: 0;
    margin-top: 10px;
  }

  nav,
  .txt {
    display: none;
  }

  footer div {
    text-align: center;
  }

  footer p,
  footer a {
    font-size: 12px;
  }
}

@media screen and (max-width: 850px) and (max-height: 510px) {
  footer {
    display: none;
  }
}

@media screen and (max-height: 800px) {
  .txt h2 {
    font-size: 5.4vh;
  }

  .txt p,
  .txt a {
    font-size: 2.2vh;
  }
}

@media screen and (max-height: 600px) {
  .txt,
  .pg-pips {
    display: none;
  }
}

@media screen and (max-height: 350px) {
  footer {
    display: none;
  }
}

.info-bug {
  text-align: center;
  font-size: 12px;
}

/* Dropdown nav header */

header div ul li.has-dropdown {
  position: relative;
}

header div ul li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  min-width: 180px;
  flex-direction: column;
  list-style: none;
  z-index: 100;
}

header div ul li.has-dropdown:hover .dropdown {
  display: flex;
}

header div ul li.has-dropdown .dropdown li a {
  padding: 0.4rem 1rem;
  display: block;
  font-size: 1rem;
  white-space: nowrap;
}

header div ul li.has-dropdown .dropdown li:hover {
  border-bottom: none;
}

header div ul li.has-dropdown .dropdown li a:hover {
  color: #fbb911;
}

header div ul li.has-dropdown .dropdown li.disabled a {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Menu liste de boutons dans les slides */

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu-list li {
  display: block;
}

.btn-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
