:root {
  /* CSS HEX */
  --white: #FFFFFFff;
  --air-superiority-blue: #669BBCff;
  --fire-brick: #C1121Fff;
  --burgundy: #74121Dff;
  --onyx: #36393Bff;
  --eerie-black: #252627ff;

  /* CSS SHADOW */
  --burgundy-shadow: 0px 4px 4px 0px rgb(193, 18, 31);
  --white-shadow: 2px 4px 6px 0px rgba(255, 255, 255, 0.342);
}

.mobile-hidden {
  @media (max-width: 768px) {
    visibility: hidden;
    display: none;
  }
}

body {
  background-color: var(--eerie-black);
  font-family: 'Times New Roman', Times, serif;
  font-weight: normal;
  color: var(--white);

  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 50px;
    letter-spacing: -1.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  h3 {
    font-size: 36px;
    letter-spacing: -1.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  h4 {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 25px;
  }

  p {
    font-size: 18px;
    line-height: 25px;
  }
}

header {
  position: relative;
  margin-bottom: 25px;
  padding: 16px 16px 0;
  width: var(100% - 32px);
  overflow: hidden;
  border-bottom: 1px var(--white) solid;
  box-shadow: var(--white-shadow);

  .title__wrap {
    display: flex;
  }

  #redLigne {
    position: absolute;
    top: 16px;
    width: calc(100% - 32px);
    height: 1px;
    background-color: var(--fire-brick);
    box-shadow: var(--burgundy-shadow);
  }

  h1 {
    padding-left: 20px;
    align-self: baseline;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2.57px;
    text-transform: uppercase;
    line-height: 25px;
  }

  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 22px;

    div.img__container {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      width: 40px;
      background-color: var(--white);
      box-shadow: var(--white-shadow);
      border-radius: 100%;

      img {
        height: auto;
        width: 100%;
        object-fit: fill;
        object-position: center;
      }
    }

    div.links__container {
      ul {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 16px;

        li {
          list-style: none;

          a {
            font-size: 12px;
            color: white;
            text-decoration: none;

            img {
              width: 24px;
              height: 24px;
              object-fit: contain;
              fill: var(--white);
            }
          }
        }
      }
    }
  }
}

main {
  width: 100%;

  >.content__wrap {
    width: 50vw;
    margin: 32px auto;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    h2 {
      font-size: 56px;
    }

    ul {
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: center;

      li {
        text-align: center;
      }
    }
  }
}

.carousel {
  .carousel-inner {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border-top: 4px var(--white) solid;
    box-shadow: var(--burgundy-shadow);

    .carousel-item {
      height: 300px;

      img {
        height: 100%;
        object-fit: cover;
        object-position: center;
      }
    }
  }

  .navigation-style {
    height: fit-content;
    border-radius: 12px;
    background-color: red;
    padding: 0 8px;

    button {
      all: unset;
      background-color: var(--white);
      width: 8px;
      height: 8px;
      margin: 0;
      border-radius: 100%;
      transition: .7s ease;

      &.active {
        width: 40px;
        height: 8px;
        border-radius: 8px;
        background-color: var(--eerie-black);
      }
    }
  }
}

section {
  margin: 0 16px;
}

section#information {
  .spe__wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 16px;
    text-align: center;
    margin: 12px auto;

    h6 {
      margin-left: 30px;
      position: relative;
      flex-wrap: wrap;
      font-size: 12px;
      font-weight: bold;
      letter-spacing: 2.57px;
      line-height: 25px;

      &::after {
        content: "-";
        position: absolute;
        left: -18px;
      }

      &:first-of-type {
        margin-left: 0;

        &::after {
          content: "";
        }
      }
    }
  }
}

section#ourStory {
  margin: 64px 16px;
  text-align: center;

  h2 {
    margin-bottom: 32px;
  }

  ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  li {
    width: fit-content;
  }
}

section#ourProducts {
  margin: 0;
  padding: 64px 32px;
  background-color: var(--burgundy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;

  .content__wrap {
    display: flex;
    align-items: center;
    flex-direction: column;

    .logo__wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 180px;
      height: 180px;
      border-radius: 12px;
      background-color: var(--white);
      box-shadow: var(--white-shadow);

      img {
        height: auto;
        width: 100%;
        object-fit: contain;
      }
    }
  }

  .slider-container {
    width: 100%;
  }
}

section#contactUs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 64px 0;

  form {
    width: 100%;
    max-width: 800px;
    padding: 32px 12px;
    border: 1px var(--white) solid;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--white);

    .info-form {
      width: 100%;

      p {
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        font-style: oblique;
        margin: 0;
      }
    }

    .el-form__container {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: 0.3 ease;

      label {
        margin-top: 24px;
        align-self: flex-start;
      }

      input,
      textarea {
        height: 44px;
        width: 100%;
        padding: 16px;
        border-radius: 12px;
        border: none;
        background-color: var(--white);
        box-shadow: var(--white-shadow);
        color: var(--onyx);

        &:focus {
          outline: none;
          color: var(--fire-brick);
        }

        &[type="submit"] {
          padding: 0;
          letter-spacing: 1.5px;
          font-weight: bold;
          box-shadow: var(--burgundy-shadow);
        }
      }

      input[type="submit"] {
        margin-top: 24px;
      }

      textarea {
        resize: none;
        height: 82px;
      }
    }

    .error-message {
      align-self: flex-start;
      color: red;
      font-size: 0.875rem;
    }

    .success-message {
      align-self: flex-end;
      color: green;
      font-size: 1rem;
      margin-bottom: 1rem;
    }
  }
}

section.maps__container {
  margin: 0;
  padding: 60px 16px;
  height: fit-content;
  width: 100%;
  background: var(--burgundy);
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;

  div.maps {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;

    h3 {
      margin: 0 0 16px;
    }
  }

  iframe {
    border-radius: 16px;
    width: 100%;
    height: 40vh;
    box-shadow: var(--white-shadow);
  }
}

footer {
  position: relative;
  height: fit-content;
  width: 100%;
  padding: 24px;

  .footer-background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: url("../img/Background/BG_(6).jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(50%);
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    margin: 0 64px;
    height: 100%;
    gap: 32px;

    .footer-description {
      display: flex;
      flex-direction: column;
      align-items: center;

      .logo__wrap {
        width: fit-content;
        height: fit-content;
        padding: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--white);
        box-shadow: var(--white-shadow);
        border-radius: 24px;

        img {
          height: 74px;
          width: 74px;
          object-fit: contain;
          object-position: center;
        }
      }

      >a {
        margin-top: 8px;
        text-decoration: none;
        color: var(--white);
        font-weight: bold;
      }
    }

    ul {
      padding: 0;

      li {
        text-align: center;
        list-style: none;

        strong {
          display: block;
          text-decoration: underline;
          width: 100%;
        }

        a {
          color: var(--white);
        }
      }
    }

    .footer-links {
      display: flex;
      flex-direction: column;
      text-align: center;

      a {
        font-size: 14px;
        color: var(--white);
        text-decoration: none;
      }
    }
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;

    hr {
      height: 1px;
      width: 80%;
    }

    p {
      font-size: 12px;
    }
  }
}

.error-page__container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;

  .error-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 0 16px;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    h1,
    h2 {
      margin-bottom: 20px;
      text-decoration: none;
    }

    p {
      font-size: 16px;
      margin-bottom: 15px;
    }

    btn {
      font-size: 1rem;
      padding: 10px 20px;
      border-width: 2px;
    }
  }

}

.g-recaptcha {
  margin-top: 24px;
}

/* Responsive */

@media (min-width: 768px) {
  .links__container ul li a {
    font-size: 16px !important;

    img {
      display: none;
      visibility: hidden;
    }
  }

  section {
    margin: 0 85px;
  }

  section#ourStory {
    margin: 64px 85px;
  }

  section#ourProducts {
    padding: 64px 85px;

    .content__wrap {
      width: 100%;
      max-width: 1200px;
      flex-direction: row;

      .text__wrap {
        margin-left: min(calc(12vw), 300px);
      }
    }
  }

  .slider-container {
    display: flex;
    visibility: visible;
    height: 300px;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    border-top: 4px var(--white) solid;
    box-shadow: var(--burgundy-shadow);
    position: relative;
    transition: 0.3s ease;

    /* Pour les navigateurs non-webkit */
    -moz-box-shadow: var(--burgundy-shadow);
    -moz-transition: 0.3s ease;

    .slider {
      top: 0;
      position: absolute;
      left: -300px;
      display: flex;
      gap: 0;
      height: 300px;

      img {
        width: 300px;
        height: 100%;
        object-fit: cover;

        /* Support additionnel pour les anciens navigateurs */
        -moz-object-fit: cover;
      }
    }

    .navigation-style {
      height: fit-content;
      border-radius: 12px;
      background-color: red;
      padding: 8px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
      position: absolute;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);

      button {
        all: unset;
        background-color: var(--white);
        width: 8px;
        height: 8px;
        margin: 0;
        border-radius: 100%;
        transition: 0.7s ease;

        /* Pour la compatibilité Firefox */
        -moz-transition: 0.7s ease;

        &.active {
          width: 40px;
          height: 8px;
          border-radius: 8px;
          background-color: var(--eerie-black);
        }
      }
    }
  }


  section.maps__container {
    padding: 60px 85px;

    iframe {
      width: 40vw;
    }
  }

  form {
    padding: 32px 64px !important;
  }

  footer .footer-container {
    flex-direction: row;

    ul li strong {
      display: inline;
      width: fit-content;
      text-decoration: none;
    }
  }
}

@media (min-width: 992px) {
  section#ourProducts .content__wrap .text__wrap {
    margin-left: 300px;
  }
}

/* Spécial width for Carousel */
@media (min-width: 1377px) {
  .slider-container {
    max-width: 1200px;
  }
}