* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --background-color: #ebeaed;
  --main-color: gray;
  --main-color-green-dark: #5f7951;
  --main-color-green-light: #c9e265;
  --main-color-orange: #fc964e;
  --second-color: #363636;
}

@font-face {
  font-family: "SourceSans";
  src: url(../webfonts/Source_Sans_3/SourceSans3-VariableFont_wght.ttf);
  font-display: swap;
}

::selection {
  color: white;
  background-color: #5f7951;
}

/* * -------------Settings------------------------------ */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    sans-serif;
}

a,
a:active {
  text-decoration: none;
  color: #3b63b9;
}

a:hover {
  text-decoration: underline;
}

h1 {
  font-size: clamp(30px, 4vw, 55px);
  margin-bottom: 25px;
  color: #363636;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    sans-serif;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  padding-top: 30px;
  text-align: center;
  color: var(--main-color-green-dark);
  margin: 100px 0px 50px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    sans-serif;
  font-weight: 500;
}

h3 {
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 500;
}

p,
li {
  font-size: clamp(16px, 2vw, 18px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif,
    sans-serif;
  text-wrap: pretty;
}

#btn1,
.btn1,
.btn2 {
  padding: 18px 30px;
  font-weight: 500;
  font-size: 20px;
  background-color: var(--main-color-green-dark);
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0px 4px 12px 0px rgba(73, 73, 73, 0.48);
  cursor: pointer;
  transition: 0.15s ease-out;
}

.btn1 {
  background: rgb(201, 226, 101);
  background: linear-gradient(
    90deg,
    rgba(201, 226, 101, 1) 0%,
    rgba(110, 124, 55, 1) 100%
  );
}
.btn2 {
  background: rgb(201, 226, 101);
  background: linear-gradient(
    270deg,
    rgba(201, 226, 101, 1) 0%,
    rgba(110, 124, 55, 1) 100%
  );
}

#btn1:hover {
  opacity: 0.8;
  transform: translateX(5px);
  transition: 0.15s ease-out;
}

#btn1 a {
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: clamp(14px, 2vw, 18px);
}

/* *------------NAV & Header----------------------------- */

.nav {
  background-color: white;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 10;
}

.nav img {
  height: 70%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons i {
  font-size: 20px;
  cursor: pointer;
  transition: 0.15s ease-out;
}

.social-icons i:hover {
  opacity: 0.6;
  transform: translateY(-3px);
  transition: 0.15s ease-out;
}

header {
  background: url(./img/BioR/bg-header.png) center/cover;
  min-height: 70vh;
  padding: 50px 100px;
  display: grid;
  grid-template-columns: 60% 40%;
  justify-items: center;
  align-items: center;
}

.header-left {
  min-height: 60%;
  max-width: 750px;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: rgba(255, 255, 255, 0.596);
  padding: 50px;
  border-radius: 15px;
}

.header-left p {
  text-align: justify;
  font-size: 20px;
  color: #363636;
}

.header-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right img {
  width: 90%;
}

@media screen and (max-width: 750px) {
  header {
    /* grid-template-rows: 50% 50%; */
    grid-template-columns: 1fr;
    padding: 50px 0;
  }

  h1 {
    text-align: center;
  }

  .header-left p {
    margin: 0 auto;
  }

  .header-right {
    height: 100%;
  }
  .header-right img {
    max-height: 100%;
  }
}

/* *------------Partners -------------------------------------------------- */

.partners-container {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.parteners-card {
  max-width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.parteners-card img {
  /* aspect-ratio: 16/9; */
  width: 13vw;
}

/* ************ Slider CSS partenaire ********************** */

.slider-1 {
  max-width: 180px;
  margin: 30px auto;
  overflow: hidden;
  min-height: auto;
}

.slider-1 .slider {
  display: flex;
  animation: slider-2 38s infinite ease-in-out;
}

.slider-1 img {
  height: auto;
  width: 180px;
  padding: 5px;
}

@keyframes slider-2 {
  0%,
  5% {
    transform: translateX(0);
  }
  6.6%,
  11.6% {
    transform: translateX(-100%);
  }
  13.2%,
  18.2% {
    transform: translateX(-200%);
  }
  19.8%,
  24.8% {
    transform: translateX(-300%);
  }
  26.4%,
  31.4% {
    transform: translateX(-400%);
  }
  33%,
  38% {
    transform: translateX(-500%);
  }
  39.6%,
  44.6% {
    transform: translateX(-600%);
  }
  46.2%,
  51.2% {
    transform: translateX(-700%);
  }
  52.8%,
  57.8% {
    transform: translateX(-800%);
  }
  59.4%,
  64.4% {
    transform: translateX(-900%);
  }
  66%,
  71% {
    transform: translateX(-1000%);
  }
  72.6%,
  77.6% {
    transform: translateX(-1100%);
  }
  79.2%,
  84.2% {
    transform: translateX(-1200%);
  }
  85.8%,
  90.8% {
    transform: translateX(-1300%);
  }
  92.4%,
  97.4% {
    transform: translateX(-1400%);
  }
  99%,
  100% {
    transform: translateX(-1500%);
  }
}

@media screen and (min-width: 771px) {
  #parteners-card-mobile {
    display: none;
  }
}

@media screen and (max-width: 750px) {
  .parteners-card {
    display: none;
  }

  .partners-container {
    gap: 0px;
  }
}

/* *--------------------STEP ------------------------------------- */

.pillars-container {
  margin-top: 80px;
}

.pillars-container .is-8 {
  background-color: #f4f6f7;
  width: 100%;
}

.pillars-container .is-4 {
  padding: 0;
}

.pillars-container .columns {
  flex-direction: column;
}

.pillars-container .content {
  margin: 0;
}

.pillars {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transform: translateX(7%);
}

.pillars li {
  border: 1px solid #5f795175;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin-left: -32px;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  color: white;
  padding: 10px 50px;
  cursor: pointer;
  background-color: var(--main-color-green-light);
  border-radius: 20px;
  user-select: none;
  list-style: none;
}

.pillars li.is-active {
  background-color: var(--main-color-orange);
  color: white;
  user-select: none;
  z-index: 10;
  transform: scale(1.05);
}

.tab-content {
  display: none;
  margin-top: 40px;
  /* display: flex; */
  flex-direction: column;
  background-color: #c9e2654a;
  border: 2px solid #5f795175;
  padding: 20px;
  color: #666666;
  border-radius: 20px;
}
.tab-content.is-active {
  display: flex;
  flex-direction: column;
  background-color: #c9e2654a;
  border: 2px solid #5f795175;
  padding: 20px;
  color: #666666;
  border-radius: 20px;
}
.tab-content img {
  margin: 0 40px 40px 40px;
}

.tab-content span {
  text-align: justify;
  margin-right: 30px;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 10px;
}

@media screen and (max-width: 750px) {
  .tab-content.is-active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pillars {
    flex-wrap: wrap;
    justify-content: center;
    transform: translateX(0);
  }
  .pillars li {
    font-size: 16px;
    line-height: 25px;
    padding: 10px;
    margin: 4px;
    border-radius: 16px;
  }
}

/* *-------------- ABOUT US --------------------------------------- */

.about-us {
  max-width: 1250px;
  margin: auto;
}

.process {
  margin: 100px 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 50px;
  color: var(--main-color-green-dark);
}

.process h3 {
  margin-bottom: 30px;
}

.process img {
  width: 100%;
}

.about-us-section {
  margin: 0 auto;
  width: 80%;
}

.about-us-container {
  display: grid;
  /* grid-template-columns: 45% 55%; */
  margin-top: 100px;
  gap: 60px;
}

.about-us-container-left {
  min-height: 700px;
  padding-top: 80px;
  display: grid;
  align-items: center;
  grid-template-rows: 20% 20% 25% 1fr;
}

.about-us-container-right {
  min-height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.card-about-us:nth-child(even) {
  transform: translateY(20%);
}

.card-about-us:nth-child(2),
.card-about-us:nth-child(4) {
  background-color: #c9e2654a;
}

.card-about-us:nth-child(4) {
  gap: 5px;
  justify-content: space-around;
}
.card-about-us:nth-child(4) img {
  border-radius: 5px;
}
.card-about-us:nth-child(4) span.info {
  font-size: 10px;
}

.card-about-us {
  padding: 15px;
  width: 20%;
  min-width: 220px;
  /* min-height: 20vh;
  height: 40vh; */
  border: 1px solid rgb(182, 182, 182);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 25px;
}

.card-about-us img {
  width: 50%;
  border-radius: 15px;
}

.card-about-us h3 {
  font-size: 20px;
}
.card-about-us p {
  font-size: 14px;
}

@media screen and (max-width: 1190px) {
  .about-us-container {
    display: flex;
    flex-direction: column;
  }

  .about-us-container-left {
    padding-top: 0px;
    min-height: 400px;
    grid-template-rows: 15% 25% 40% 20%;
    justify-items: center;
  }

  .card-about-us:nth-child(even) {
    transform: translateY(0%);
  }
}

/* *----------------- VIDEO ------------------------------------------ */

.card-video {
  min-height: 180px;
}

.video-container {
  display: grid;
  justify-items: center;
  justify-content: space-around;
  grid-template-columns: 45% 45%;
  max-width: 1250px;
  margin: auto;
  margin-top: 50px;
  padding: 0px 40px;
}

.card-video img {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 4px 4px 0 0;
}

@media screen and (max-width: 550px) {
  .video-container {
    grid-template-columns: 1fr;
    grid-template-rows: 45% 45%;
    gap: 50px;
  }
}

/* *-----------------RESOURCES --------------------------------------- */

.resources {
  min-height: 400px;
  padding: 0px 7%;
}

.resources h2 {
  text-align: center;
  padding-bottom: 30px;
}

.resources h3 {
  font-size: clamp(20px, 3vw, 45px);
  padding-bottom: 30px;
}

.resources p {
  letter-spacing: 1px;
  width: 80%;
}

.resources-card-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  justify-items: center;
}

@media screen and (max-width: 1100px) {
  .resources-card-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .resources h2,
  .resources h3,
  .resources p {
    text-align: center;
    margin: 0 auto;
  }
}

/* *-------------------CARD SLIDER--------------------------------- */

.resources-card-container-left {
  margin-bottom: 40px;
  padding: 20px;
}

.slider-scroll {
  height: 300px;
  width: 800px;
  position: relative;
}

.slider-nav-button {
  background: transparent;
  border: none;
  position: absolute;
  top: -25%;
  cursor: pointer;
  transition: 0.2s ease-out;
}

.slider-nav-button:hover {
  opacity: 0.7;
}

.slider-nav-button svg {
  width: 40px;
  height: 40px;
  background-color: var(--main-color-green-dark);
  color: white;
  padding: 6px;
  border-radius: 50px;
}

.slider-nav-button-previous {
  left: 30%;
}

.slider-nav-button-next {
  right: calc(35%);
}

.slider-content {
  height: 100%;
  width: 100%;
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.slider-content-item {
  height: 100%;
  min-width: 25%;
}

.card-scroll {
  background: url(./img/BioR/radiant-gradient.svg) center/cover;
  height: 100%;
  width: 90%;
  color: var(--main-color-green-dark);
  background-color: rgb(218, 218, 218);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  padding: 45px 20px 20px;
  font-size: 14px;
  position: relative;
}

.card-scroll .format {
  position: absolute;
  top: 7px;
  right: 10px;
  background-color: var(--main-color-orange);
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 15px;
}

.card-scroll:hover {
  opacity: 0.8;
}

@media screen and (max-width: 900px) {
  .slider-scroll {
    width: 100%;
  }
}
@media screen and (max-width: 650px) {
  .slider-content-item {
    min-width: 50%;
  }
}

/* *-------------STATS --------------------------------------------------- */

.stats {
  height: 220px;
  margin-block: 100px;
}

.stats h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 30px;
  margin-top: 0px;
  padding: 0;
  color: white;
}

.stats-figure span:nth-child(2) {
  text-align: center;
  font-size: 18px;
}

.stats-container {
  min-height: 200px;
  background-color: var(--main-color-green-dark);
  border-radius: 15px;
  padding: 2vw;
  width: 90%;
  margin: 0 auto;
  color: white;
}

.stats-figures-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  width: 70%;
  margin: 0 auto;
}

.stats-figures-container span {
  font-size: clamp(40px, 5vw, 50px);
}

.stats-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

@media screen and (max-width: 750px) {
  .stats-figures-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* *----------COntact Us card --------------------------------------- */

.contact-us {
  min-height: 70vh;
}

.contact-container {
  background-color: rgb(255, 235, 188);
  border-radius: 20px;
  height: 340px;
  width: 90%;
  margin: 0 auto;
  margin-top: 30px;
  display: flex;
  overflow: hidden;
}

.contact-container-left {
  /* background-color: lightblue; */
  position: relative;
  width: 50%;
  height: 100%;
  display: grid;
  grid-template-rows: 20% 10% 1fr;
  justify-content: center;
  align-items: center;
}

.contact-container-left img {
  position: absolute;
  top: 55%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 15vw;
}

.contact-container-right {
  /* background-color: lightsalmon; */
  height: 100%;
  width: 50%;
}

.contact-container-right form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: auto;
  max-width: 600px;
  height: 100%;
}

.contact-container-right-submit {
  display: flex;
  width: 70%;
  gap: 5%;
}

input {
  width: 70%;
  border: none;
  border-radius: 8px;
  height: 50px;
  padding-left: 10px;
  font-size: 14px;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  padding-left: 10px;
  font-size: 14px;
  height: 50px;
}

input[type="submit"] {
  height: 50px;
  width: 70%;
}

@media screen and (max-width: 1000px) {
  .contact-container {
    flex-direction: column;
    min-height: 400px;
  }

  .contact-container-left {
    width: 100%;
    height: 50%;
    grid-template-rows: 30% 20% 1fr;
    justify-items: center;
  }

  .contact-container-left img {
    display: none;
  }

  .contact-container-right {
    width: 100%;
    height: 50%;
  }

  .contact-container-right form {
    align-items: center;
    width: 100%;
    margin: 0 auto;
    gap: 0;
    padding-bottom: 30px;
  }
}

/* *---------FOOTER ----------------------------------------------------- */

footer {
  min-height: 50px;
  background: #c9e2654a;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-top: 20px;
}

footer p {
  font-size: clamp(12px, 2vw, 15px);
  text-align: center;
}

@media screen and (max-width: 750px) {
  footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* *-------------INTERSECTION OBSEVER------------------------------ */

/* Selecteur sur les atttribut */
[class*="reveal-"] {
  opacity: 0;
  transform: translateY(-30px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0px);
  transition: 1s cubic-bezier(0.5, 0, 0, 1);
}

/* Les elements 2 et plus seront révélé avec un délai, ce qui n'est pas le cas de reveal-1 */
.reveal-2 {
  transition-delay: 0.1s;
}
.reveal-3 {
  transition-delay: 0.2s;
}
.reveal-4 {
  transition-delay: 0.3s;
}
.reveal-5 {
  transition-delay: 0.4s;
}
.reveal-6 {
  transition-delay: 0.5s;
}

/* *------------------------ */
/* *------SCROLLER LOGO----------- */
/* *------------------------ */

/* -------------------------- */
/* scroller div */
/* -------------------------- */

.scroller {
  width: 95%;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  height: 170px;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(
    90deg,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s)
    var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 80s;
}

.scroller img {
  height: 100%;
  width: 100%;
  max-height: 170px;
  max-width: 340px;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - 0.5rem));
  }
}

@media screen and (max-width: 750px) {
  .scroller__inner {
    gap: 2rem;
    height: 130px;
  }

  .scroller[data-speed="slow"] {
    --_animation-duration: 60s;
  }
}

/* --------------------------- */
/* ---------GET IN TOUCH-------------- */
/* --------------------------- */

.get-in-touch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-block: 150px;
}
.get-in-touch img {
  object-fit: contain;
}

.get-in-touch h3 {
  color: var(--main-color-green-dark);
  font-size: clamp(28px, 4vw, 48px);
}

.git-btn {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 750px) {
  .get-in-touch {
    flex-direction: column;
  }
}
