:root {
  --color-primary: #060d3a;
  --color-secondary: #192670;
  --color-tertiary: #c00000;
  --color-title: #060d3a;
  --color-active: #11269c;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body,
textarea {
  font-family: "Poppins", sans-serif;
}
body {
  background-color: white;
  color: black;
  margin: 0;
  overflow-x: hidden;
}
main {
  margin: 0 auto;
}

.container {
  max-width: 1400px;
  padding: 0 20px;
}
a {
  text-decoration: none;
  color: inherit;
}
h1 {
  font-size: 10px;
  font-weight: 600;
  margin: 0;
  color: var(--color-primary);
}
h1 img {
  height: 60px;
  width: auto;
}
h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-secondary);
}
.title {
  font-size: clamp(1.5rem, 8vw, 3rem);
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-title) 60%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.title::after {
  z-index: -1;
  content: "";
  margin-top: -60px;
  position: absolute;
  left: 0;
  height: 50px;
  width: 230px;
  display: block;
  background: linear-gradient(to right, var(--color-secondary), white 80%);
}
.contact .title::after {
  width: 0;
}

p,
li {
  font-size: 1.2rem;
}
li::marker {
  color: var(--color-primary);
}
strong {
  display: inline;
  color: var(--color-title);
  font-weight: bold;
}

.about,
.values,
.legal-content {
  margin-bottom: 100px;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background-color: white;
  font-size: 1.2rem;
  padding: 5px 0;
  z-index: 100;
}
.header .container {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 0;
}
.nav-list li {
  list-style-type: none;
  border-radius: 5px;
  transition: color 0.3s ease;
}

.nav-list li:hover {
  color: var(--color-primary);
}
.nav-list li.active {
  color: var(--color-active);
  font-weight: 600;
}
.nav-list .contact {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 5px;
}
.burger-menu {
  display: none;
}
.lang-select {
  position: fixed;
  bottom: 55px;
  right: 25px;
  padding: 8px;
  border: 2px solid #efefef;
  border-radius: 5px;
  font-size: 15px;
}

/* CAROUSEL */
.carousel {
  position: relative;
  height: 400px;
  margin-bottom: 50px;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}
.carousel-slides .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slide.active {
  opacity: 1;
}
.carousel p {
  position: fixed;
  background-attachment: fixed;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  padding: 0 40px;
  margin: 0;
  color: white;
  z-index: 1;
  transform: translateY(-100px);
  transition: transform 0.1s linear, opacity 0.1s linear;
}

.carousel .chevron-left,
.carousel .chevron-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 40px;
  opacity: 0;
  transition: all 0.3s;
  cursor: pointer;
}
.carousel:hover .chevron-left,
.carousel:hover .chevron-right {
  opacity: 1;
}
.carousel .chevron-left {
  left: 5px;
}
.carousel .chevron-right {
  right: 5px;
}
/* ABOUT */

.about-content {
  margin-top: 45px;
  text-align: justify;
}

.about .about-president h3 {
  margin: 10px 0 35px;
}
.about-president {
  margin: 25px 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-president img {
  width: 280px;
  height: fit-content;
  border-radius: 50px;
  object-fit: cover;
}
.about-president-text {
  width: 100%;
}

.about-img {
  width: 35%;
  height: 300px;
  border-radius: 30px 0 0 30px;
  background-color: var(--color-secondary);
}

.about h3 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  margin-top: 50px;
  color: var(--color-primary);
}
.about li,
.values li {
  margin-bottom: 15px;
}
.about li::marker {
  color: var(--color-primary);
}
/* VALEURS  */
.values-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adaptatif */
  gap: 25px;
  list-style-type: none;
  padding: 0;
}
.value-card {
  background: var(--color-primary);
  padding: 20px 30px;
  border-radius: 30px;
  color: white;
  box-shadow: 0 0 10px 0 rgb(205, 205, 205);
  transition: background 0.3s ease;
}
.value-card h3 {
  color: white;
}
.value-card:nth-child(1) {
  background: rgb(64, 124, 255);
}
.value-card:nth-child(3) {
  background: var(--color-secondary);
}

.value-card p {
  font-size: 1rem;
}

/* SERVICES */
.services-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Crée 2 colonnes de taille égale */
  grid-template-rows: repeat(2, 1fr); /* Crée 2 rangées de taille égale */
  gap: 25px;
  margin-bottom: 50px;
}

.service-card {
  position: relative;
  /* display: flex; */

  text-align: center;
  border-radius: 15px;
  padding: 20px;
  box-shadow: lightgrey 0 0 10px 0;
  width: 100%;
  overflow: hidden;
}

.service-card h3 {
  width: 100%;
  margin: 10px;
  font-size: 22px;
}
.service-card h3,
.service-card img {
  transition: all 0.5s;
}
.service-card:hover h3,
.service-card:hover img {
  transform: translateY(100%);
}

.service-card ul {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Ajoute l'alignement horizontal */
  padding: 50px;
  background: var(--color-secondary);
  color: white;
  border-radius: 15px;
  transform: translateY(100%);
  visibility: hidden;

  margin: 0;
  transition: transform 0.5s;
}
.service-card:hover ul {
  visibility: visible;
  transform: translateY(0);
}

/* Pour aligner le texte à gauche dans la liste tout en gardant la liste centrée */
.service-card ul li {
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.service-card ul li::marker {
  color: white;
}
.service-card img {
  width: 300px;
  height: 300px;

  border-radius: 20px;
}

.service-card ul,
.service-card div {
  flex: 1;
  margin: 0;
}

.service-card strong {
  color: white;
  font-weight: bold;
}

/* CONTACT */

.contact {
  width: 55%;
  margin: 100px auto 50px;
  text-align: center;
  background: var(--color-secondary);
  border-radius: 30px;
  padding: 20px 60px 40px;
  font-size: 1.5rem;
  color: white;
}
.contact-catch {
  font-style: italic;
}

.contact .title {
  margin: 30px auto;
  background: white;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
}
.contact img {
  height: 25px;
}
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  background-color: var(--color-tertiary);
  resize: none;
  font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-secondary);
}

.contact-form .btn {
  position: relative;
  padding: 10px;
  border-radius: 5px;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  overflow: hidden;
  z-index: 1;
}

.contact-form .btn::before,
.contact-form .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.contact-form .btn::before {
  background: linear-gradient(
    to left,
    var(--color-primary),
    var(--color-tertiary)
  );
  opacity: 1;
}

.contact-form .btn::after {
  background: linear-gradient(
    to left,
    var(--color-tertiary),
    var(--color-primary)
  );
  opacity: 0;
}

.contact-form .btn:hover::before {
  opacity: 0;
}

.contact-form .btn:hover::after {
  opacity: 1;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  color: gray;
  padding: 20px 40px;
  border-radius: 30px 30px 0 0;
  border: 2px solid #efefef;
}

footer a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

footer div {
  display: flex;
  align-items: center;
  gap: 20px;
}
footer img {
  height: 40px;
  margin-top: -5px;
}

/* A PROPOS */
.about-whyus {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-whyus strong {
  display: block;
}
/* RESPONSIVE */
@media (max-width: 1500px) {
  .hero-illustration {
    height: 200px;
    transform: translateY(-80px);
  }
  @media (max-width: 1200px) {
    .header .container {
      flex-direction: column;
    }
  }
  /* Tablet */
  @media (max-width: 1024px) {
    .header .container {
      flex-direction: column;
    }
    h1 {
      margin-top: 10px;
    }
    .nav-list {
      margin-top: 0;
    }
    .carousel {
      margin-bottom: 50px;
    }

    .about-content {
      flex-direction: column;
      text-align: left;
    }
    .about-content p {
      width: 100%;
    }
    .about-president {
      display: block;
      /* align-items: flex-start; */
    }
    .about-president img {
      float: left;
      margin: 0 30px 30px 0;
      max-width: 300px;
      shape-outside: margin-box;
    }
    /* SERVICES */
    .service-card {
      gap: 0;
      flex-direction: column;
      align-items: center;
    }
    .service-card h3 {
      text-align: center;
      margin: 0 0 20px 0;
    }

    .service-card:nth-child(even) {
      flex-direction: column;
    }

    .contact {
      width: 90%;
    }
  }
  @media (max-width: 880px) {
    body {
      width: 100%;
    }
    .nav-list li {
      padding: 2px 10px;
    }
    .services-content {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
    footer {
      flex-direction: column;
      align-items: center;
    }
    .lang-select {
      bottom: 15px;
      right: 15px;
    }
  }

  /* Mobile */
  @media (max-width: 480px) {
    body {
      width: 100%;
      padding: 0;
    }

    .title::after {
      width: 0;
    }

    main {
      width: 100%;
      padding: 0 10px;
    }
    .carousel {
      height: 150px;
    }
    .carousel p {
      transform: translateY(-120px);
    }

    .header.hidden {
      transform: translateY(0);
    }

    .header .container {
      flex-direction: row;

      padding: 0;
      margin: 0 5px;
    }

    .nav {
      overflow: hidden;
    }
    .nav-list {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      color: white;
      gap: 20px;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: var(--color-primary);
      z-index: 100;
      transform: translateX(150%);
      transition: transform 0.3s ease;
      overflow: hidden;
      position: fixed;
    }

    .nav-list.active {
      transform: translateX(0);
    }
    .nav-list li.active {
      color: white;
    }

    .burger-menu {
      display: block;
      width: 40px;
      margin-top: 5px;
      height: 30px;
      cursor: pointer;
      position: fixed;
      right: 20px;
      top: 25px;
      z-index: 102;
    }
    .burger-menu-item {
      position: absolute;
      width: 40px;
      height: 4px;
      background-color: var(--color-primary);
      border-radius: 10px;
      z-index: 101;
    }

    .burger-menu-item::before,
    .burger-menu-item::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--color-primary);
      border-radius: 10px;
      transition: transform 0.3s ease;
    }
    .burger-menu-item::before {
      top: 10px;
    }
    .burger-menu-item::after {
      top: 20px;
    }
    .burger-menu-item.active {
      background-color: transparent;
    }
    .burger-menu-item.active::before {
      transform: rotate(45deg) translate(4px, 4px);
      background-color: white;
    }
    .burger-menu-item.active::after {
      transform: rotate(-45deg) translate(4px, -4px);
      background-color: white;
    }

    .about-president {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .values-content {
      padding: 0;
    }
    .service-card img {
      width: 200px;
      height: 200px;
    }
    .service-card ul {
      padding: 10px 20px;
    }
    .service-card ul li {
      font-size: 12px;
      padding: 0;
    }

    .contact {
      width: 100%;
      margin-top: 50px;
      padding: 20px 40px 40px;
    }
    .contact p {
      font-size: 1rem;
    }
    .contact img {
      height: 20px;
    }
    footer {
      padding: 20px 0;
      border-radius: 0;
      text-align: center;
    }

    body.menu-open {
      overflow: hidden;
      position: fixed;
      width: 100%;
      height: 100%;
    }

    .lang-select {
      bottom: 10px;
      right: 10px;
      padding: 4px;
    }
  }
}
