/*
Tem-Paysage
*/

:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --text-color: #111;
  --background-color: #fefbf1;
}
@font-face {
  font-family: "DecimaProA";
  src: url("https://tem-paysage.fr/assets/fonts/decimaproa.woff2") format("woff2");
}
html {
  margin: 0 auto;
  /* justify-content: center; */
  /* width: 100vw; */
  background: #fefbf1;
}

body {
  background-color: var(--background-color);
  font-family: "Barlow", sans-serif;
  height: 100vh;
  a,
  a:hover {
    color: var(--text-color);
    text-decoration: none;
  }
  h1, h2, h3, h4 {
    font-family: "DecimaProA", sans-serif;
    font-weight: 400;
    font-style: normal;
  }

  h2 {
    margin-block: 16px;
  }
  display: flex;
  flex-direction: column;
}
main {
  flex-grow: 1;
  flex-shrink: 0;
}

em {
    color: #6c757d;
}

.layout-wrapper {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block
  }
  gap: 64px;
  margin-bottom: 32px;;
  justify-content: space-between;
  .column {
    flex: 1 0 50%;
    flex: 0 1 100%;
    .blocks {
      p {
        margin-bottom: 24px;;
      }
    }
  }
}
ul.uk-navbar-nav {
    margin-top: 40px;
    font-weight: 600;
}
.uk-navbar-nav > li > a {
  color: var(--text-color);
  font-family: "DecimaProA", sans-serif;
  font-size: 1.5em;
}
.nav-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-stacked .uk-width-1-1 {
  width: 100%;
}

.nav-stacked .uk-navbar-nav {
  display: flex;
  justify-content: flex-start;
}
.nav-stacked .uk-visible\@m {
  margin-top: 15px;
}
.uk-navbar-dropdown {
  top: 65px;
  width: 280px;
  /*padding: 25px;
  background: #fff;
  color: var(--text-color);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);*/
}
.uk-navbar-dropdown-nav > li > a {
  color: var(--text-color);
  font-size: 1em;
}
.uk-dropdown {
  font-family: "DecimaProA", sans-serif;
  background: #fefbf1;
  color: #666;
  width: 280px;
  box-shadow: none;
}
.uk-logo {
  width: 700px;
  height: 100px;
  @media screen and (max-width: 768px) {
    width: 195px;
    height: 22px;
  }
  &:hover {
    cursor: pointer;
  }
}
.uk-navbar-container {
  a {
    color: var(--text-color);
    text-decoration: none;
  }
}
path.hitarea {
    fill-opacity: 0 !important;
}
.home-components-grid {
  display: grid;
  justify-items: center;
  grid-template-rows: repeat(6, 248px);
  grid-template-columns: repeat(6, minmax(16%, 20%));
  /* grid-template-areas: '
    neant neant neant neant neant neant
    neant litooral zone-humide zone-humide centre-urbain centre-urbain
    neant neant zone-humide zone-humide montagne neant
    rural rural neant neant montagne neant
    neant neant peri-urbain peri-urbain cour-d-eau cour-d-eau
    foret foret foret neant cour-d-eau cour-d-eau
    '; */
  /* grid-gap: 24px; */
  align-items: center;
  gap: 24px;
  list-style-type: none;
  .item-littoral {
    grid-column: 2 / 3;
    grid-row: 2;
  }
  .item-foret {
    grid-column: 2;
    grid-row: 1;
    width: 266px;
  }
  .item-littoral {
    grid-column: 1 / 3;
    grid-row: 3;
    transform: translateX(-248px);
    width: 1585px;
  }
  .item-centre-urbain {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
    width: 254px;
  }
  .item-periurbain {
    grid-column: 5 / 7;
    grid-row: 1;
    width: 1080px;
    transform: translateX(250px);
  }
  .item-zone-humide {
    grid-column: 1 / 3;
    grid-row: 5;
    width: 1080px;
  }
  .item-montagne {
    grid-column: 5 / 7;
    grid-row: 5 / 7;
    width: 815px;
  }
  .item-rural {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    width: 320px;
  }
  .item-cours-d-eau {
    grid-column: 5 / 7;
    grid-row: 3;
    width: 438px;
  }
}
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
}

@media screen and (max-width: 768px) {
  .projects-list {
    grid-template-columns: repeat(1, minmax(378px, 1fr));
  }
}

.projects-list .tem-card {
  width: 378px;
  position: relative;
  overflow: hidden;
}

.projects-list .tem-card .uk-card-media-top {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  /* z-index: 2; */
}

.projects-list .tem-card .uk-card-media-top img {
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 378px;
  height: 284px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.projects-list .tem-card:hover .uk-card-media-top img {
  filter: grayscale(0%);
}

.projects-list .tem-card .uk-card-media-top .overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 1;
  pointer-events: none;
}

.projects-list .tem-card:hover .uk-card-media-top .overlay {
  opacity: 0;
}

.projects-list .tem-card .card-body {
  padding-block: 16px;
  position: relative;
}

.projects-list .tem-card .card-title {
  font-family: "DecimaProA", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-top: -8px;
}

.projects-list .tem-card .card-link {
  color: #838381;
  inset: 0;
  z-index: 2;
  display: block;
  font-family: "DecimaProA", sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-top: 12px;
  &:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* Less than the inner interactive elements */
    pointer-events: auto;
  }
}
nav {
  display: flex;
  justify-content: space-between;
}

.partners {
  gap: 30px;
}
.partner-card {
  img {
    height: 250px;
  }
}
.partner-name {
  font-family: "DecimaProA", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
}
.partner {
  .name {
    font-family: "DecimaProA", sans-serif;
    font-size: 2.5rem;
    color: black;
    font-weight: 500;
    margin-bottom: 0 !important;
  }
  .job {
    padding-top: 0;
    font-family: "DecimaProA", sans-serif;
    font-size: 1.5rem;
    color: black;
  }
  .role, .formation {
    padding: 0;
    color: black;
    p {
      margin-bottom: 5px !important;
    }
  }
  .bio {
    padding-top: 30px;
  }
  .citation {
    font-family: "DecimaProA", sans-serif;
    font-size: 1.5rem;
    width: 80%;
    p {
      margin-top: 3rem;
    }
  }
}
.project-informations {
  color: var(--text-color);
  .landscape-title {
    font-family: "DecimaProA", sans-serif;
    font-size: 2.625rem;
    font-weight: ;
    line-height: 2.5rem;
    margin-top: -6px;
    margin-bottom: 16px;
  }
  .subtitle {
    font-size: 1.5rem;
    padding-top: 0.5rem;
  }
  .project-datasheet {
    list-style-type: none;
    padding-left: 0;
    width: 80%;
    > li {
      border-top: 1px solid #000;
      padding-top: 8px;
      margin-bottom: 8px;
      @media  screen and (max-width: 768px) {
        display: flex;
        flex-direction: column;
        row-gap: 8px;
        &:not(:first-of-type) {
          padding-top: 16px;;
        }
      }
    }
    .legend {
      display: inline-block;
      width: 180px;
      font-weight: 600;
      margin-right: 32px;
    }
    .team-list {
      display: flex;
      ul {
        display: inline-block;
        list-style-type: none;
        padding-left: 0;
        li {
          margin-bottom: 8px;
        }
      }
    }
  }
}

.project-gallery {
  .uk-slidenav {
    color: #fff;
    svg {
      stroke-width: 4;
    }
  }
  .uk-dotnav {
   justify-content: center;
  }
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    opacity: 0.2;
  }
}

.filters {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
  gap: 32px;
  li {
    font-family: "DecimaProA", sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.3;
    .active {
      border-bottom: 2px solid currentColor;
      opacity: 1;
    }
  }
}

img.landscape {
    float: right;
    margin-right: 10%;
}

.dotted {
  /*position: relative;*/
  &:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: "/assets/images/dots.png";
    background-color: var(--text-color);
  }
}

.partner-card {
    width: 20%;
    img {
      margin-bottom: 1em;
    }
}

.project-description {
  width: 80%;
  color: var(--text-color);
  @media  screen and (max-width: 768px) {
    width: 100%;
  }
  border-top: 1px solid #000;
  padding-top: 30px;
  margin-bottom: 8px;
}

.bottom-sticked {
    /* position: absolute; */
    bottom: 0;
    width: 100%;
}
footer {
    background-color: none;
    padding: 16px;
    border-radius: 8px;
    row-gap: 24px;
    display: flex;
    flex-direction: column;
    @media screen and (min-width: 768px) {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
    .contact {
      text-transform: uppercase;
    }
    .footer-links {
      column-gap: 32px;
      row-gap: 16px;
      display: flex;
      flex-direction: column;
      @media screen and (min-width: 768px) {
        display: flex;
        flex-direction: row;
      }
    }
    .social-icons {
      gap: 16px;
    }
}

/* Form */
/* .contact-section-wrapper {
  display: flex;
  gap: 4rem;
  align-content: space-between;
} */
.error-text {
  color: red;
}
.uk-form-label {
  font-size: 1rem;
}
input,
textarea {
  display: block;
}

.uniform__potty {
  position: absolute;
  left: -9999px;
}

.error {
  border: 1px solid red;
}

.uniform-errors,
.form-success {
  margin: 24px 0;
  background-color: red;
  padding: 8px 16px;
  color: white;
}

.form-success {
  background-color: green;
}