/* Author: Nolan Sallai */
/* Date: 30 nov 2020 */
/* Desc: main css code */
/* ------------------------------------------ General --------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');

:root {
  --dark: #1e1e1e;
  --light: #f2f2f2;
  --primary-color: #22297e;
  --primary-color-dark: #181e63;
  --secondary-color: #03a9f4;
  --secondary-color-dark: #e0a800;
}

* {
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--dark);
}

body {
  background-color: var(--light);
}

.light {
  color: var(--light);
}

.dark {
  color: var(--dark);
}

.primary {
  color: var(--primary-color);
}

.scroll {
  scroll-behavior: smooth;
}

.right {
  float: right;
}

.main {
  padding: 16px;
  margin-top: 30px;
  height: 1500px;
  /* Used in this example to enable scrolling */
}

.float-right {
  float: right;
}

div {
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
  margin: 0;
  font-size: 800 !important;
}

h1 {
  font-size: 25px !important;
  padding: 20px 0;
}

h2,
.ui.styled.accordion .title {
  font-size: 16px !important;
  font-weight: normal;
}

p {
  font-size: 14px !important;
  font-family: "Montserrat", sans-serif;
}

.flex {
  display: flex;
  margin: 17px 0;
}

.flex h2 {
  flex: 25%;
}

.flex p,
.flex ul {
  flex: 75%;
}

.flex ul p {
  margin: 0;
}

.text-gradiant {
  letter-spacing: 3px;
  /* background: -webkit-linear-gradient(left,
      rgba(80, 116, 35, 1),
      rgba(82, 167, 43, 1),
      rgba(178, 226, 133, 1),
      rgba(224, 241, 219, 1)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important; */
  color: var(--primary-color);
}

.p-10 {
  padding: 0 15%;
}

.p-20 {
  padding: 50px 23% !important;
}

.p-30 {
  padding: 50px 29%;
}

a,
p {
  line-height: 1.5em !important;
  letter-spacing: 1px !important;
}

a.button {
  font-weight: 700;
  padding: 17px 25px;
  background: var(--secondary-color);
  color: var(--dark);
  border-radius: 50px;
  width: fit-content;
  margin: 20px 0;
  align-self: center;
}

a.button:hover,
a.button:focus {
  background: var(--secondary-color-dark);
}

a.button.round,
a.button.round:hover {
  border-radius: 50px;
  position: relative;
  left: -70px;
  margin-top: 13px;
  padding: 9px 13px;
}

a.button span {
  display: contents;
}

footer {
  padding: 1% 0;
  text-align: center;
  background-color: var(--primary-color);
}

footer ul li {
  padding: 10px 20px;
  display: inline-block;
}

footer p {
  padding: 10px 0;
  color: var(--light);
}

.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

::selection {
  background-color: var(--primary-color);
  color: var(--light);
}

.fade-in {
  opacity: 0;
  transform: translateY(10vh);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 1.2s ease-out;
  will-change: opacity, visibility;
  transition-delay: 250ms;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
  overflow: visible;
  width: 50px;
  margin: 3rem 0 6rem 0;
  /* border-color: var(--primary-color) !important; */
  /* box-shadow: 0 0 6px 1px var(--primary-color); */
  align-self: center;
}

.separator {
  width: 100%;
  margin-bottom: 3rem;
}

.separator-h1 {
  background: var(--dark);
  padding: 2rem 5rem;
  width: fit-content;
  margin: 0 auto;
}

/* ------------------------------------------ NAV --------------------------------------------- */

.topnav {
  overflow: hidden;
  background-color: var(--light);
  position: fixed;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  top: 0;
  width: 100%;
  z-index: 9999;
}

.topnav a {
  float: left !important;
  display: block !important;
  color: #333 !important;
  text-align: left !important;
  padding: 23px 30px !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-family: "Comfortaa", sans-serif;
}

.topnav a#home-button {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  position: relative;
  left: 2%;
}

.topnav a#home-button:hover {
  box-shadow: none;
}

.topnav a#home-button img {
  justify-content: space-evenly;
}

.topnav a:hover {
  color: var(--primary-color) !important;
  box-shadow: 0px -5px inset;
}

.topnav a.active {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.topnav a.active-round {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-bottom-left-radius: 50px;
  box-shadow: none;
}

.topnav a.active-round:hover {
  background-color: var(--primary-color-dark) !important;
  color: white !important;
}

.topnav .icon {
  display: none !important;
}

.dropdown {
  float: left;
  overflow: hidden;
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 1px;
}

.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: var(--dark);
  padding: 20px 30px;
  background-color: inherit;
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 1px;
  margin: 0;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
  color: var(--primary-color) !important;
  box-shadow: 0px -5px inset;
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 10000;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown:hover .dropdown-content {
  display: grid;
}

/* ------------------------------------------ HEADER --------------------------------------------- */
header.article {
  height: 0;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.header {
  height: auto;
  margin-top: 0;
  position: relative;
}

.header#index,
.header#articles {
  height: 66vh;
  margin-top: 59px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header#articles {
  height: 40vh;
}

.header.middlePage {
  height: 33vh;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header#index div.wrapper div.content,
.header#index div.wrapper div.overview,
.header.middlePage div.wrapper div.content,
.header.middlePage div.wrapper div.overview {
  padding: 0;
}

.header-backgroundImage-wrapper {
  position: absolute;
  width: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 66%;
}

.header-backgroundImage-wrapper#index-wrapper,
.header-backgroundImage-wrapper.middlePage-wrapper {
  height: 100%;
}

.header-backgroundImage-wrapper#article {
  border-bottom: 10px solid transparent;
  border-image: var(--frame-gradiant);
  border-image-slice: 1;
}

.header-backgroundImage-wrapper img {
  object-fit: cover;
}

.header-backgroundImage-wrapper::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
}

.header-backgroundImage {
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  margin: -20px;
  filter: blur(10px);
}

.content {
  max-width: 1180px;
  margin: 0 auto;
}

.article-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.media iframe {
  height: 550px;
}

.article-header-img,
iframe {
  width: 100%;
}

.wrapper {
  position: relative;
  padding: 0 20px;
}

.overview {
  position: relative;
  padding-top: 10px;
}

.media {
  position: relative;
  margin: 0 50px;
}

.details {
  padding: 4%;
  text-align: center;
}

.content.articles .details h1 {
  font-size: 70px !important;
  color: var(--light);
}

.content {
  max-width: 1080px;
  margin: 0 auto;
}

.content.articles {
  max-width: 1280px;
  margin: 0 auto;
}

/* ------------------------------------------ SECTIONS --------------------------------------------- */
/* ------------------------------------------ description --------------------------------------------- */

.description,
.download {
  height: auto;
  background: #181e63;
  display: flex;
  justify-content: center;
  color: var(--light);
  box-shadow: inset 0 0 100px #000;
  flex-direction: column;
  padding: 5% 15% !important;
}

.description.middlePage-desc {
  height: 25vh;
}

.description p {
  color: var(--light);
  flex: 33%;
}

.grid-5 {
  display: inline-grid;
  grid-template-columns: auto auto auto auto auto;
  grid-gap: 30px;
  justify-items: center;
}
.desc-title {
  display: inline-grid;
  grid-template-columns: 100%;
  grid-gap: 30px;
  /* text-align: center; */
}

/* ------------------------------------------ presentation --------------------------------------------- */

section.presentation {
  padding: 7% 20%;
}

.iframe-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
}

.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------ coordonnate --------------------------------------------- */

section.coordonnate{
  display: inline-grid;
  grid-template-columns: auto auto auto;
  width: 100%;
  background-color: #2b359a;
  height: auto;
  padding: 7% 10%;

}
section.coordonnate p{
  color: var(--light);
}
section.coordonnate h3{
  color:#fff;
  margin: 0 0 14px;
  text-transform: uppercase;

}
section.coordonnate h3.m-50{
margin-top: 50px;
}
section.coordonnate div{
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------ summary --------------------------------------------- */
ol.summary {
  display: block !important;
}

ol.summary li {
  padding: 10px 0 !important;
  list-style-type: none;
  counter-increment: step-counter;
  letter-spacing: 1px;
}

ol.summary li:before {
  content: counter(step-counter) " - ";
  color: var(--primary-color);
  font-weight: 900;
}

/* ------------------------------------------ information --------------------------------------------- */

section.information,
  section.map {
    display: inline-grid;
    grid-template-columns: 50% 50%;
    width: 100%;
  }
  
  section.information .col-text,
  section.information .col-img {
    height: 100vh;
    width: 100%;
  }
  
  section.information .col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
  }
  
  section.information .col-text,
  section.map .col-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 25%;
  }
  
  div.info-container {
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
  }
/* ------------------------------------------ map --------------------------------------------- */
section.map {
  display: inline-grid;
  grid-template-columns: 50% 50%;
  width: 100%;
}
section.map .col-map,
section.map .col-text {
  height: auto;
  width: 100%;
}
section.map .col-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 25%;
}
section.map .col-text {
  margin: 10% 0;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 50px;
  box-sizing: border-box;
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 1px;
}
textarea,textarea:focus {
  height: 200px;
  border-radius: 25px !important;
  max-width: 100%;
  min-width: 100%;
  min-height: 200px;

}

input[type="text"]:focus,
textarea:focus {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 50px;
  box-sizing: border-box;
  font-family: "Comfortaa", sans-serif;
  letter-spacing: 1px;
  outline-offset: 0px !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--primary-color);

}
input[type="submit"] {
  width: fit-content;
  background-color: var(--primary-color);
  color: var(--light);
  padding: 17px 25px;
  margin: 8px 0;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
}

input[type="submit"]:hover {
  background-color: var(--primary-color-dark);
}

.submit {
  display: flex;
  flex-direction: column;
}

.submit .button {
  align-self: flex-start !important;
  margin: 8px 0;
}

/* ------------------------------------------ download the app --------------------------------------------- */

.download {
  height: 40vh;
  background: #141414;
  background-image: url("../img/soil.jpg");
  color: var(--light);
  box-shadow: inset 0 0 100px #000;
  text-align: center;
}

.download .prevnext-grid {
  margin: 0 25%;
}

.cta-download,
.cta-prevnext {
  display: inline-grid;
  justify-content: space-evenly;
}

.cta-download a,
.cta-prevnext a {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cta-download span img,
.cta-prevnext span img {
  width: 2.5em;
  padding: 0 5px;
}

/* ------------------------------------------ articles --------------------------------------------- */

section.article-header-description {
  height: auto;
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

section.article-header-description h1 {
  align-self: flex-start;
}

div.desc {
  padding: 0 0 5%;
}

div.desc:last-child {
  padding: 0;
}

/* ------------------------------------------ discover --------------------------------------------- */

section.discover {
  height: auto;
  color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0% 10% 5% 10%;
}

/* ------------------------------------------ gallery --------------------------------------------- */

.details ul {
  display: flex;
  color: #fff;
  list-style: none;
}

.details ul li {
  margin: 0 auto;
  padding: 40px 0;
  display: flex !important;
  align-items: center;
}

.details ul li:first-child {
  display: block !important;
}

.details ul li p {
  color: #999;
  text-align: left;
}

span img {
  width: 3.5em;
  padding: 10px 0;
}

/* ------------------------------------------ prevnext --------------------------------------------- */

.prevnext-grid {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  max-width: 1180px;
  height: auto;
  margin: 0 auto 20px auto;
}

/* ------------------------------------------ MEDIA QUERY --------------------------------------------- */
@media (max-width: 575.98px) {
  .separator {
    width: 100%;
    margin-bottom: 1rem;
  }

  .separator-h1 {
    background: var(--dark);
    padding: 2rem 2rem;
    width: fit-content;
    margin: 0 auto;
  }

  /* ----------------- nav ----------------------- */
  .topnav a{
    display: none !important;
  }

  .topnav a.icon {
    float: right !important;
    display: block !important;
    text-align: left;
  }

  .topnav.responsive {
    position: fixed;
  }

  .topnav.responsive .icon {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
  }

  .topnav.responsive a{
    float: none !important;
    display: block !important;
    text-align: left !important;
  }


  div.right {
    float: none;
  }

  .topnav a.active-round {
    border-radius: 0px !important;
  }

  /* ----------------- header ----------------------- */
  .header-title {
    font-size: 2em !important;
    font-family: "Cinzel", serif !important;
    color: #fff;
    text-shadow: 0 1px 0 #cccccc, 0 1.5px 0 #c9c9c9, 0 2px 0 #bbb,
      0 2.5px 0 #b9b9b9, 0 3px 0 #aaa, 0 3.5px 1px rgba(0, 0, 0, 0.1),
      0 4px 1px rgba(0, 0, 0, 0.05), 4.5px 1px rgba(0, 0, 0, 0.05),
      0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3),
      0 3px 5px rgba(0, 0, 0, 0.2), 0 3.5px 10px rgba(0, 0, 0, 0.25),
      0 5px 10px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15),
      0 15px 25px rgba(0, 0, 0, 0.05);
  }

  h1 {
    font-size: 17px !important;
    text-transform: uppercase;
  }

  header {
    height: 50vh;
  }

  header.article {
    height: 0;
  }

  .header#index {
    height: 50vh;
    margin-top: 59px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .header-blur {
    text-align: center;
  }

  .details h3 {
    font-size: 1rem;
  }

  /* ----------------- section ----------------------- */
  /* --------- general ------------- */
  .ln-img-col {
    padding-right: 0%;
  }

  section.information .ln-text-col {
    order: 1;
    padding: 20px 0;
  }

  a.button.round {
    display: none;
  }

  .cta-back-wrapper {
    display: flex;
    justify-content: center;
  }

  .cta-back {
    padding: 40px 6% 50px;
    display: block;
  }

  /* --------- summary ------------- */
  ul.summary {
    display: block !important;
  }

  ul.summary li {
    padding: 10px 0 !important;
  }

  section.project {
    height: auto;
    padding: 7% 20px 15%;
    display: flex;
    flex-direction: column;
  }

  /* --------- information ------------- */
  
  section.coordonnate {
    height: auto;
    display: grid !important;
    grid-template-columns: 100% !important;
  }

  /* --------- information ------------- */

  

  section.information p {
    margin: 0 !important;
    width: 100%;
  }

  .col-text {
    padding: 0 !important;
  }

  section.information .col-text {
    height: auto !important;
    width: 100%;
  }

  section.information .col-img {
    height: 30vh !important;
    width: 100%;
  }

  .invert-textimg.col-text {
    grid-area: 2 !important;
    margin-bottom: 7%;
  }

  /* --------- desc ------------- */

  section.description {
    padding: 15% 20px;
    height: auto;
  }

  .grid-3 {
    display: block !important;
  }

  /* --------- article desc ------------- */

  section.article-header-description {
    padding: 250px 10% 0;
  }

  .details ul {
    display: flex;
    flex-direction: column;
    color: #fff;
    list-style: none;
    padding: 0 5%;
  }

  .details ul li {
    margin: 0;
    align-self: flex-start;
    padding: 10px 0;
  }

  .content.articles .details h1 {
    font-size: 30px !important;
    color: var(--light);
  }

  .prevnext-grid {
    grid-template-columns: none;
    padding: 0 7%;
  }

  .cta-prevnext a {
    margin: 0;
  }

  .cta-prevnext:first-child {
    margin-top: 20px;
  }

  /* --------- proj ------------- */

  .video-wrapper {
    position: relative;
    height: 160px;
  }

  /* --------- footer ------------- */

  footer {
    padding: 1% 10%;
  }
}

@media (max-width: 800px) {
  section.description {
    padding: 15% 7%;
    height: auto;
  }

  section.article-header-description {
    padding: 0 10%;
  }

  section.article-header-description ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  section.article-header-description ul li {
    width: auto;
    padding: 20px 5em;
  }

  .media img {
    height: 100%;
    width: 100%;
  }

  section.presentation {
    padding: 0;
  }

  /* --------- header ------------- */

  .header-backgroundImage-wrapper#article {
    display: none;
  }

  .header-backgroundImage {
    background-position: center;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    object-fit: cover;
  }

  .header-backgroundImage::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
  }

  .wrapper {
    position: relative;
    padding: 0 10px;
  }

  .content {
    padding-top: 0;
  }

  .overview {
    padding-top: 0;
  }

  /* --------- article desc ------------- */

  section.article-header-description {
    padding: 10% 10% !important;
  }

  /* ---------information ------------- */

  section.information p {
    width: 100%;
  }

  section.information {
    flex-direction: column;
    padding: 7% !important;
  }
}

@media (max-width: 991.98px) {
  /* --------- project  ------------- */
  .project-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .proj-img {
    width: 100%;
    max-width: 1200px;
  }

  .ui.styled.accordion {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 1199.98px) {
  a.button.round,
  a.button.round:hover {
    border-radius: 50px;
    position: inherit;
    left: -70px;
    margin-top: 13px;
    padding: 9px 13px;
  }

  /* --------- header  ------------- */
  .header#index, .header#articles {
    height: 55vh !important;
  }

  .header-backgroundImage-wrapper {
    position: absolute;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    height: 40%;
  }

  .media {
    position: relative;
    margin: 0 -10px;
  }

  .header#index,
  .header#articles {
    height: 40vh;
  }

  /* --------- information  ------------- */
  section.information {
    flex-direction: column;
    padding: 7% 10% !important;
}
  section.information {
    flex-direction: column;
    padding: 0 20%;
  }

  .ln-img-col,
  .ln-text-col {
    flex: 100% !important;
  }

  section.information {
    flex-direction: column;
    display: inline-grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    padding: 0;
  }

  section.information .col-text,
  section.information .col-img {
    height: 50vh;
    width: 100%;
  }

  /* --------- article desc  ------------- */
  section.article-header-description {
    padding: 0 20%;
  }

  /* --------- download ------------- */

  section.download {
    height: 70vh;
    padding: 0 7%;
  }

  section.download .prevnext-grid {
    margin: 0 0%;
  }

  section.map {
    display: inline-grid;
    grid-template-columns: 100%;
    width: 100%;
  }

  section.map .col-text {
    margin: 10% 0 !important;
    padding: 0 7% !important;
  }

  section.map .col-map {
    height: 70vh;
    width: 100%;
  }
}
