* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --background-color: #ffffff;
  --main-color: gray;
  --second-color: black;
  --strong-color: #63bfa5;
  --color-title: #603913;
  --color-button: #1c75bc;
  --color-border: #f29321;
}

/* @font-face {
  font-family: "LibreBaskerville-regular";
  src: url(../fonts/LibreBaskerville-Regular.ttf);
  font-display: swap;
} */

/* * -------------Settings------------------------------ */

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

a,
a:active {
  text-decoration: none;
  color: black;
}

h1 {
  font-size: clamp(30px, 4vw, 55px);
  margin-bottom: 25px;
}

h2 {
  font-size: clamp(28px, 4vw, 3.3rem);
  padding-top: 30px;
  text-align: center;
  font-family: "Trebuchet MS", sans-serif;
}

h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
}

p,
li {
  font-size: clamp(16px, 2vw, 18px);
}

#btn1,
input[type="submit"] {
  height: 52px;
  width: fit-content;
  font-weight: 500;
  background-color: var(--color-button);
  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;
  padding: 0px 10px;
}

#btn1:hover,
input[type="submit"]:hover {
  opacity: 0.8;
  transform: translateX(5px);
  transition: 0.15s ease-out;
}

#btn1 a {
  color: white;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 16px;
}

.orange {
  color: var(--color-border);
}

.brown {
  color: var(--color-title);
}

.green {
  color: var(--strong-color);
}

.blue {
  background-color: var(--color-button);
}

/* *------------NAV & Header----------------------------- */

.nav {
  background-color: var(--background-color);
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
}

.nav img {
  height: 90%;
}

.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/Platinum-ION4RAW-small.png) center/cover;
  min-height: 80vh;
  padding: 50px 100px;
  display: grid;
  grid-template-columns: 45% 55%;
  justify-items: center;
  align-items: center;
}

.header-left {
  /* min-height: 60%; */
  padding: 40px 0;
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.726);
  align-items: center;
}

.header-left img {
  width: 70%;
}

.header-left p {
  width: 85%;
  letter-spacing: 1px;

  /* text-align: justify; */
}

.header-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right img {
  width: 90%;
}

@media screen and (max-width: 750px) {
  header {
    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: 50px;
}

.parteners-card img {
  /* aspect-ratio: 16/9; */
  width: 13vw;
  max-width: 150px;
}

/* -------------------------- */
/* 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: 110px;
  }

  .scroller[data-speed="slow"] {
    --_animation-duration: 60s;
  }
}

/* *-------------- ABOUT US --------------------------------------- */

.about-us {
  min-height: 700px;
  max-width: 1440px;
  margin: 100px auto;
  position: relative;
  /* padding-top: 50px; */
}

.about-us::before {
  content: "";
  height: 1px;
  width: 60%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  background-color: var(--color-border);
}

.about-us-section {
  margin: 0 auto;
  width: 80%;
}

.about-us-section h2 {
  margin-bottom: 60px;
}

.about-us-container {
  display: grid;
  grid-template-columns: 45% 55%;
  margin-top: 30px;
  gap: 60px;
}

.about-us-container-left {
  min-height: 700px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.about-us-container-left strong {
  color: var(--color-border);
}

.about-us-container-left ul a {
  text-decoration: underline;
  font-size: 16px;
  color: var(--color-button);
  padding-left: 40px;
}

.about-us-container-right {
  height: 70%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* TODO Gestion compteur automatique */
/* .card-about-us {
  counter-increment: about;
}
.about-us-container-right h3::before {
  content: "#" counter(about);
} */

.card-about-us:nth-child(even) {
  transform: translateY(25%);
}

.card-about-us:nth-child(2),
.card-about-us:nth-child(3) {
  background-color: #f0f0f0;
}

.card-about-us {
  padding: 25px;
  width: 33%;
  min-width: 250px;
  /* min-height: 20vh;
  height: 40vh; */
  border: 1px solid var(--color-title);
  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: 22px;
  font-weight: semi-bold;
}
.card-about-us p {
  font-size: 18px;
}

@media screen and (max-width: 1190px) {
  .about-us-container {
    display: flex;
    flex-direction: column;
  }

  .about-us-container-left {
    min-height: 400px;
    grid-template-rows: 15% 25% 40% 20%;
    justify-items: center;
  }

  .card-about-us:nth-child(even) {
    transform: translateY(0%);
  }
}

/* *----------------- IMPACT ------------------------------------------ */

.impact {
  height: 200px;
}

/* *-----------------RESOURCES --------------------------------------- */

.resources {
  min-height: 400px;
  padding: 7%;
  max-width: 1440px;
  margin: 0 auto;
}

.resources h2 {
  text-align: start;
  padding-bottom: 30px;
}

.resources h3 {
  font-size: clamp(20px, 2.5vw, 2.5rem);
  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: 120px;
  }

  .resources h2,
  .resources h3,
  .resources p {
    text-align: center;
    margin: 0 auto;
  }
}

/* *-------------------CARD SLIDER--------------------------------- */

.slider-scroll {
  height: 300px;
  width: 800px;
  position: relative;
}

.slider-nav-button {
  background: transparent;
  border: none;
  position: absolute;
  top: -26%;
  cursor: pointer;
  transition: 0.2s ease-out;
}

.slider-nav-button:hover {
  opacity: 0.5;
}

.slider-nav-button svg {
  width: 40px;
  height: 40px;
  background-color: var(--strong-color);
  color: white;
  padding: 6px;
  border-radius: 50px;
}

.slider-nav-button-previous {
  left: 35%;
}

.slider-nav-button-next {
  right: calc(35% + 20px);
}

.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/1.webp) bottom/cover;
  height: 100%;
  width: 90%;
  background-color: rgb(255, 255, 255);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
  font-size: 14px;
  position: relative;
}

.slider-content-item:nth-child(2) .card-scroll {
  background: url(./img/2.webp) bottom/cover;
}
.slider-content-item:nth-child(3) .card-scroll {
  background: url(./img/3.webp) bottom/cover;
}
.slider-content-item:nth-child(4) .card-scroll {
  background: url(./img/4.webp) bottom/cover;
}
.slider-content-item:last-child .card-scroll {
  background: url(./img/5.webp) bottom/cover;
}

.card-scroll-title {
  font-size: 20px;
  color: white;
  margin-bottom: 20px;
}

.card-scroll-text {
  color: white;
  font-size: clamp(15px, 2vw, 16px);
}

.card-scroll .format {
  position: absolute;
  bottom: 7px;
  right: 10px;
  background-color: red;
  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%;
  }
  .slider-nav-button-next {
    left: 60%;
  }
  .slider-nav-button-previous {
    left: 20%;
  }
}

/* *-------------STATS --------------------------------------------------- */

.stats {
  height: 220px;
  max-width: 1440px;
  margin: 0 auto;
}

.stats h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 30px;
  padding-top: 0;
}

.stats-container {
  min-height: 200px;
  background-color: var(--color-button);
  border-radius: 15px;
  padding: 2vw;
  width: 90%;
  margin: 0 auto;
  color: white;
}

.stats-figures-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  width: 70%;
  margin: 0 auto;
}

.stats-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.stats-figure span:nth-child(2) {
  text-align: center;
  font-size: 18px;
}

.stats-figures-container span {
  font-size: clamp(40px, 5vw, 50px);
}

@media screen and (max-width: 750px) {
  .stats-figures-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* *----------EU flag----------------------------------------------- */

.eu-card {
  width: 50%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.eu-card p {
  font-size: 14px;
}

@media screen and (max-width: 750px) {
  .eu-card {
    width: 70%;
    margin-top: 100px;
    flex-direction: column;
  }
}

/* *----------COntact Us card --------------------------------------- */

.contact-us {
  min-height: 50vh;
  max-width: 1440px;
  margin: 0 auto;
}

.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 {
  margin-top: 100px;
  min-height: 50px;
  background: linear-gradient(
    90deg,
    rgba(222, 222, 222, 0.52) 0%,
    rgba(245, 255, 254, 0.52) 26.81%,
    rgba(237, 237, 237, 0.52) 54.58%,
    rgba(201, 201, 201, 0.52) 99.86%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

footer p {
  font-size: clamp(12px, 2vw, 15px);
}

@media screen and (max-width: 750px) {
  footer {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }
}

/* *-------------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;
}

/* --------------------------- */
/* ---------GET IN TOUCH-------------- */
/* --------------------------- */

.get-in-touch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-block: 100px;
}
.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;
}

.btn1 {
  width: fit-content;
  font-weight: 500;
  background-color: var(--color-button);
  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;
  padding: 12px 24px;
  font-size: 1.2rem;
}

@media screen and (max-width: 750px) {
  .get-in-touch {
    flex-direction: column;
  }
}
