@import url("./_font.css");
@import url("./_variables.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  color: var(--white);
}

h2,
h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.container {
  max-width: 87.5rem;
  margin: auto;
}

.header {
  position: fixed;
  width: 100%;
  background-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.navbar__logo {
  height: 40px;
}

.navbar__logo-img {
  height: 100%;
}

/* Menu navigation */
.navbar__menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--primary);
  padding: 2rem 1rem;
  transition: left 0.3s ease;
  z-index: 1000;
}

.navbar__menu--active {
  left: 0;
}

.navbar__list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
  height: 50%;
}

.navbar__item {
  margin-bottom: 1.5rem;
}

.navbar__link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar__link.active {
  color: var(--accent);
}

.navbar__link:hover,
.navbar__link:focus {
  color: var(--accent);
}

/* CTA bouton */
.navbar__cta {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid black;
  font-weight: bold;
  transition: background-color 0.3s ease-in-out;
}

/* CTA mobile */
.navbar__menu .navbar__cta {
  display: inline-block;
  width: 100%;
  margin-top: 2rem;
  text-align: center;
}

.navbar > .navbar__cta {
  display: none;
}

.navbar__cta:hover,
.navbar__cta:focus {
  background-color: var(--accent);
  color: var(--white);
  border: 1px solid transparent;
}

/* Boutons menu */
.navbar__menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__icon {
  width: 100%;
  height: 100%;
}

.navbar__close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

/* Icônes menu et fermeture */
.navbar__icon--menu {
  display: block;
}

.navbar__icon--close {
  display: block;
  fill: white;
  cursor: pointer;
}

.navbar__icon--close:hover {
  fill: gray;
}
.navbar__overlay--active {
  display: block;
}

/* Overlay quand le menu est ouvert */
.navbar__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 800;
}

/* Media queries header */
@media screen and (min-width: 768px) {
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .navbar__logo {
    grid-column: 1;
    justify-self: start;
  }

  .navbar__menu {
    grid-column: 2;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    box-shadow: none;
    left: 0;
    justify-self: center;
  }

  .navbar__list {
    display: flex;
    flex-direction: row;
    margin-top: 0;
  }

  .navbar__item {
    margin: 0 1rem;
  }

  .navbar > .navbar__cta {
    grid-column: 3;
    display: block;
    justify-self: end;
  }

  .navbar__menu .navbar__cta {
    display: none;
  }

  .navbar__menu-toggle {
    display: none;
  }

  .navbar__close-button {
    display: none;
  }
}

/************ Hero *****************/

.hero {
  background: url("../images/landing/Hero-bg-min.webp") center/cover no-repeat;
  height: 100vh;
  width: 100%;
  display: flex;
}

.hero__container {
  width: 100%;
  margin: 0 auto;
  display: flex;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10px;
  margin: auto;
  width: 100%;
  height: 100%;
  text-align: center;
  gap: 1rem;
}

.hero__title {
  font-size: 3rem;
  color: var(--white);
  font-weight: var(--fw-700);
}

.hero__subtitle {
  display: block;
  font-size: 3rem;
}

.hero__description {
  font-size: 2rem;
  color: var(--white);
  font-weight: var(--fw-300);
}

.hero__cta {
  max-width: 300px;
  width: 100%;
  background-color: var(--accent);
  margin: 0 auto;
  padding: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  color: var(--white);
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: var(--fw-700);
  letter-spacing: 1px;
  margin-top: 2.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.hero__cta:focus,
.hero__cta:hover {
  background-color: var(--white);
  color: var(--text);
}

/* Media Queries Hero */
@media screen and (min-width: 768px) {
  .hero__content {
    max-width: 40.625rem;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 4rem;
  }

  .hero__description {
    font-size: 2rem;
  }
}

/************** ABOUT SECTION *****************/

.about {
  padding: var(--spacing-md);
}

.about__container {
  max-width: 87.5rem;
  margin: 0 auto;
}

.about__media {
  display: none;
}

.about__content {
  padding: 0.75rem 1.5rem;
}

.about__title {
  margin: 0.5rem 0;
}

.about__subtitle {
  font-size: 1.25rem;
  color: var(--text);
  margin-top: 0;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  color: var(--text);
}

.about__paragraph {
  line-height: 1.6;
  margin: 0;
}

/* Media Queries About */
@media screen and (min-width: 768px) {
  .about__media {
    display: block;
    padding: 0.75rem 1.5rem;
    width: 100%;
    margin: auto;
  }

  .about__image {
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
}

@media screen and (min-width: 1024px) {
  .about {
    padding: 4rem 1.5rem;
  }

  .about__container {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
  }

  .about__media {
    width: 50%;
    margin: 0;
    padding: 0;
  }

  .about__image {
    object-fit: cover;
    height: 100%;
  }

  .about__content {
    width: 50%;
    padding: 0;
  }
}

/*************** FEATURES SECTION *******************/

.features {
  background-color: var(--primary);
  padding: 64px 36px;
}

.features__container {
  max-width: 87.5rem;
  margin: 0 auto;
}

.features__title {
  color: var(--white);
  margin-bottom: 24px;
}

.features__description {
  color: var(--white);
  margin-bottom: 48px;
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features__item {
  width: 100%;
}

/* feature-card */
.feature-card {
  padding: 24px;
  border-radius: 8px;
  background-color: var(--secondary);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card__image {
  display: block;
  margin: 0 auto 24px;
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.feature-card__title {
  color: var(--text);
  margin: 0 0 8px 0;
}

.feature-card__text {
  color: var(--text);
  margin: 0;
}

/* Media queries Features */
@media (min-width: 768px) {
  .features__list {
    flex-direction: row;
  }

  .features__item {
    flex-basis: calc(33% - 1rem);
  }
}

/*********** FOOTER  **************/

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.footer {
  background-color: var(--secondary);
  padding-top: 2rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 64px 36px;
}

.footer__company {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.footer__logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer__socials-list {
  display: flex;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.footer__socials-item {
  margin: 0;
}

.footer__socials-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.footer__socials-icon:hover {
  fill: var(--accent);
}

.footer__nav {
  width: 100%;
}

.footer__nav-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__nav-link {
  color: #333;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer__nav-link:hover {
  color: var(--accent);
}

.footer__bottom {
  background-color: var(--primary);
  padding: 2rem;
}

.footer__copyright {
  text-align: center;
  font-size: 0.938rem;
  color: var(--white);
  margin: 0;
}

/* Media Queries Footer */
@media (min-width: 768px) {
  .footer__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__company {
    align-items: flex-start;
    margin-bottom: 0;
    width: 50%;
  }

  .footer__nav {
    width: 50%;
  }

  .footer__nav-title {
    text-align: left;
  }

  .footer__nav-list {
    align-items: flex-start;
  }
}
