/* xs */
/* @media (min-width: 475px) {} */

/* sm */
/* @media (min-width: 640px) {} */

/* md */
/* @media (min-width: 768px) {} */

/* lg */
/* @media (min-width: 1024px) {} */

/* xl */
/* @media (min-width: 1280px) {} */

/* 2xl */
/* @media (min-width: 1536px) {} */



/* Boutons */
.btn1,
.btn2,
.arrow__btn {
  border-radius: 28px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: 0.3s;
  color: var(--clr-light-cream);
  padding: 0.5rem 1.75rem;
  font-size: 0.875rem;
}

.arrow__btn {
  color: var(--clr-white);
  border-radius: 50%;
  background-color: var(--clr-black);
  padding: 1.5rem;
}

.btn1 {
  background-color: var(--clr-black);
}

.btn2 {
  background-color: var(--clr-light-red);
}

.btn1:hover,
.arrow__btn:hover {
  background-color: var(--clr-galactic-blue);
}

.btn2:hover {
  background-color: var(--clr-summer-yellow);
}

.btn1:hover,
.btn2:hover,
.arrow__btn:hover {
  transform: scale(1.1);
}

.hero__card {
  border-radius: 8px;
  color: var(--clr-white);
  font-weight: 700;
  font-size: var(--fs-hero-cards);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.75rem;
}

.container {
  width: 90%;
  margin-inline: auto;
  padding: 0;
}

/* Tablet */
@media (min-width: 48rem) {
  *,
  *::before,
  *::after {
    font-size: var(--fs-body);
  }

  .container {
    max-width: 48rem;
  }

  .header__navbar,
  .footer__content {
    padding-top: 2.4rem;
  }

  .header__logo,
  .footer__logo {
    height: 4rem;
    width: 4rem;
  }

  .btn1,
  .btn2 {
    font-size: 1rem;
  }

  .btn1{
    padding: 0.937rem 2.83rem;
  }

  .hero__title {
    font-size: var(--fs-tablet-heading-l);
  }

  .hero__description {
    max-width: 45ch;
    margin-top: 1.8335rem;
  }

  .hero__cards-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    margin-top: 4rem;
  }

  .hero__card {
    gap: 1.5rem;
  }

  .hero__card:nth-child(1) {
    grid-area: 1 / 1 / 3 / 3;
  }

  .hero__card:nth-child(2) {
    grid-area: 1 / 3 / 2 / 4;
  }

  .hero__card:nth-child(3) {
    grid-area: 1 / 4 / 2 / 5;
  }

  .hero__card:nth-child(4) {
    grid-area: 2 / 3 / 3 / 5;
  }

  .hero__card:nth-child(5) {
    grid-area: 3 / 1 / 4 / 3;
  }

  .hero__card:nth-child(6) {
    grid-area: 3 / 3 / 4 / 5;
  }

  .about__content {
    display: flex;
    justify-content: flex-end;
    position: relative;
  }

  .about__image {
    position: absolute;
    top: 0;
    left: -4.5rem;
    height: 22.75rem;
    width: 22.75rem;
  }

  .btn2 {
    margin-inline: 0;
    padding: 0.833rem 2.516rem;
  }

  .about__text-container {
    max-width: 25ch;
    text-align: left;
    align-items: flex-start;
    margin-top: 0;
  }

  .about__title {
    line-height: 2.5rem;
  }

  .about__title, .projects__title, .contact__title {
    font-size: var(--fs-tablet-heading-s);
  }

  .slide__image {
    max-width: 33.75rem;
  }

  .contact__content {
    gap: 1.625rem;
  }

  .contact__description, .contact__content a {
    margin-inline: auto;
    margin-top: 1.625rem;
  }

  .contact__description {
    max-width: 42ch;
  }
}

/* Desktop */
@media (min-width: 90rem) {
  .container {
    max-width: 69.375rem;
  }

  .hero, .contact__description {
    margin-top: 3rem;
  }

  .hero__title {
    font-size: var(--fs-desktop-heading-l);
  }

  .hero__description {
    max-width: 53ch;
  }

  .hero__cards-container {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .hero__card:nth-child(1) {
    grid-area: 1 / 1 / 3 / 3;
  }

  .hero__card:nth-child(2) {
    grid-area: 1 / 3 / 2 / 4;
  }

  .hero__card:nth-child(3) {
    grid-area: 1 / 4 / 2 / 5;
  }

  .hero__card:nth-child(4) {
    grid-area: 2 / 3 / 3 / 5;
  }

  .hero__card:nth-child(5) {
    grid-area: 1 / 5 / 2 / 7;
  }

  .hero__card:nth-child(6) {
    grid-area: 2 / 5 / 3 / 7;
  }

  .about__image {
    height: 27.8125rem;
    width: 27.8125rem;
    position: static;
    margin: 0;
  }

  .about__content {
    position: static;
    justify-content: space-between;
  }

  .about__text-container {
    max-width: 42ch;
    justify-content: center;
  }

  .about__title {
    line-height: var(--lh-heading-m);
  }

  .about__title, .projects__title, .contact__title {
    font-size: var(--fs-heading-m);
  }

  .contact__content {
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    padding: 4.5rem 3.312rem;
  }

  .contact__content a{
    margin: 0;
  }
}

/* 2xl */
@media (min-width: 96rem) {
  .container {
    max-width: 96rem;
  }
}
