:root {
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}

* {
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: Inter;
  font-weight: 600;
  font-size: 11pt;
  color: black;
  margin: 10px;
}

/* header */

header {
  max-width: 1800px;
}

.intro {
  display: grid;
  grid-template-columns: 25% 56.25% 18.75%;
  margin-bottom: 20px;
}

#titre {
  font-weight: 800;
}

.text-intro {
  padding-right: 33%;
  color:rgb(0, 189, 0);
}

.liens {
  display: block;
  text-align: right;
} 

a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

a:hover {
  color: rgb(0, 189, 0);
}

i {
  font-family: Inter, sans-serif;
}

/* main */

main {
  display: grid;
  grid-template-columns: 25% 75%;
  max-width: 1800px;
  min-width: 0;
}

.aper {
  display: block;
  position: sticky;
  top: 10px;
  align-self: start;
  height: fit-content;}

.aper img {
  padding-right: 10px;
  width: 100%;
  max-height: calc(100vh - 40px);
  object-fit: contain;
  object-position: top;
}

.contenu {
  min-width: 0;
  max-width: 100%;
}

#sommaire {
  color: rgb(0, 189, 0);
}

.projet {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  text-align: center;
  align-items: center;
  transition: all 0.3s ease;
}

.projet:hover {
  color: rgb(0, 189, 0);
  cursor: pointer;
}

.masque {
  display: block;
}

.description {
  display: block;
  text-align: start;
  padding-bottom: 20px;
}

.text-descri {
  padding-right: 50%;
}
.text-descri p {
  margin-top: 10px;
  margin-bottom: 0px;
}
.text-descri li {
  margin-bottom: 10px;
}
.image-seule {
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  margin-top: 15px;
  background-color: rgb(206, 245, 206);;
}

/* carousel */
.carousel-container {
  display: block;
  margin-top: 10px;
}

.carousel {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  min-width: 0;
  margin-top: 15px;

  cursor: grab;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  
}
.carousel:active {
  cursor: grabbing;
}

.carousel img,
.carousel video {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


.carousel::-webkit-scrollbar {
  display: none;
}
.group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  padding-right: 5px;
  width: max-content;
  min-width: 100%;
}
.cart {
  display: block;
  flex: 0 0 auto;
  height: 80vh;
  width: auto;
  max-width: none;
  object-fit: contain;
  background-color: rgb(206, 245, 206);;
}
.cartvid {
  display: block;
  flex: 0 0 auto;
  height: 80vh;
  width: auto;
  max-width: none;
  object-fit: contain;
}
.carbu-prev {
  background: none;
  border: none;
  font-family: Inter;
  font-size: 15pt;
  font-weight: 600;
  color: black;
  cursor: pointer;
  z-index: 2;
  margin-top: 10px;

}
.carbu-next {
  background: none;
  border: none;
  font-family: Inter;
  font-size: 15pt;
  font-weight: 600;
  color: black;
  cursor: pointer;
  z-index: 2;
  margin-top: 10px;
}


.about {
  margin-top: 20px;
  color: rgb(0, 189, 0);
  text-align: left;
  cursor: pointer;
  margin-bottom: 20px;
}

#fleche {
  display: block;
  text-align: right;
}

/* Media queries */

@media (max-width: 800px) {
  .intro {
    display: grid;
    grid-template-columns: repeat(1,1fr);
  }
  .text-intro {
    padding-right: 25%;
    padding-top: 20px;
  }
  .liens {
    display: block;
    text-align: right;
    padding-bottom: 10px;
    padding-top: 10px;
  } 
  .aper {
    display: none;
  }
  main {
    display: grid;
    grid-template-columns: repeat(1,1fr);
  }
  .masque {
    display: none;
  }  
  .projet {
    grid-template-columns: repeat(3,1fr);
    padding-top: 0px;
    padding-bottom: 10px;
    text-align: center;
  }
  .text-descri {
    padding-right: 25%;
  } 
  .about {
    margin-top: 10px;
  }
}


@media (max-width: 400px) {
  .projet {
    grid-template-columns: repeat(3,1fr);
    padding-top: 0px;
    padding-bottom: 20px;
    text-align: center;
  }
}