/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Cherry+Bomb+One&family=Poppins:wght@400;500;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(140, 40%, 48%);
  --first-color-alt: hsl(140, 40%, 44%);
  --title-color: hsl(140, 4%, 12%);
  --text-color: hsl(140, 4%, 40%);
  --text-color-light: hsl(140, 4%, 64%);
  --white-color: hsl(0, 0%, 100%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(0, 0%, 95%);
  --shadow-img: drop-shadow(0 8px 12px hsla(0, 0%, 0%, 0.2));
  --filter-img: invert(1);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --second-font: 'Cherry Bomb One', cursive;
  --biggest-font-size: 3rem;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.4s;
}

input,
button {
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
  line-height: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/

/*========== Variables Dark Theme ==========*/

/*========== 
	Color changes in some parts of 
	the website, in dark theme
==========*/

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  font-size: var(--big-font-size);
  font-family: var(--second-font);
  text-align: center;
  margin-bottom: 1rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s background-color 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle,
.nav__close {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--title-color);
}

.nav__logo {
  font-family: var(--second-font);
  font-size: var(--h3-font-size);
  column-gap: 0.25rem;
}

.nav__logo img {
  /* ou encore plus petit au choix */
  width: 2rem;
}

.nav__toggle,
.nav__close {
  font-size: 1.25rem;
  cursor: pointer;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    /* le top est pardéfaut à -100% avant toute logique js */
    top: -100%;
    left: 0;
    background-color: var(--body-color);
    width: 100%;
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
    padding-block: 4.5rem;
    transition: top 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.nav__img-1,
.nav__img-2 {
  filter: var(--filter-img);
  position: absolute;
}

.nav__img-1 {
  width: 150px;
  top: -2.5rem;
  left: -3.5rem;
  rotate: 180deg;
}

.nav__img-2 {
  width: 50px;
  right: 2.5rem;
  bottom: 2.5rem;
}
/* Show menu */
.show-menu {
  top: 0;
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home {
  position: relative;
}

.home__container {
  padding-top: 2.5rem;
  row-gap: 2rem;
}

.home__data {
  position: relative;
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 2rem;
}

.home__fruit,
.home__branch {
  filter: var(--filter-img);
  position: absolute;
}

.home__fruit {
  width: 40px;
  top: 6.75rem;
  left: 1rem;
}

.home__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-img);
}

.home__branch {
  width: 120px;
  right: -3rem;
  bottom: 15rem;
}
/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  padding: 1rem 2rem;
  border-radius: 4rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: box-shadow 0.4s;
}

.button:hover {
  box-shadow: 0 8px 24px hsla(140, 40%, 48%, 0.3);
}

/*=============== ENJOY ===============*/
.enjoy__container {
  padding-top: 2rem;
  grid-template-columns: 240px;
  justify-content: center;
  row-gap: 2.5rem;
}

.enjoy__card {
  position: relative;
  padding-block: 1.5rem 2.5rem;
  text-align: center;
  /* dark mode  */
  /* background-color: gray; */
}

.enjoy__img {
  width: 120px;
  margin: 0 auto 0.75rem;
  filter: var(--shadow-img);
  transition: transform 0.4s;
}

.enjoy__bg {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  border-radius: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transform: skewY(6deg);
  transition: background-color 0.4s;
}

.enjoy__title {
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  margin-bottom: 0.25rem;
}

.enjoy__subtitle {
  font-size: var(--small-font-size);
}

.enjoy__card:hover .enjoy__img {
  transform: translateY(-0.3rem);
}
/*=============== ABOUT ===============*/
.about {
  position: relative;
}

.about__container {
  row-gap: 2rem;
}
.about__data {
  position: relative;
  text-align: center;
}
.about__description {
  margin-bottom: 2rem;
}

.about__fruit,
.about__branch {
  filter: var(--filter-img);
  position: absolute;
}

.about__fruit {
  width: 40px;
  bottom: 2rem;
  right: 1rem;
}
.about__img {
  width: 320px;
  justify-self: center;
  filter: var(--shadow-img);
}

.about__branch {
  width: 120px;
  rotate: 60deg;
  left: -3.5rem;
  bottom: 15rem;
}
/*=============== POPULAR ===============*/
.popular__container {
  padding-top: 6rem;
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 6rem;
}

.popular__card {
  position: relative;
  padding-block: 6.25rem 3rem;
  text-align: center;
}

.popular__bg {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  border-radius: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transform: skewY(6deg);
  transition: background-color 0.4s;
}

.popular__img {
  width: 150px;
  position: absolute;
  top: -4rem;
  left: 0;
  right: 0;
  margin: 0 auto 0.75rem;
  filter: var(--shadow-img);
  transition: transform 0.4s;
}

.popular__card:hover .popular__img {
  transform: translateY(-0.3rem);
}

.popular__title {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  margin-bottom: 0.25rem;
}

.popular__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: 0.75rem;
}

.popular__price {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
}
.popular__button {
  width: 36px;
  height: 36px;
  padding: 8px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: initial;
  position: absolute;
  right: 1px;
  bottom: 1rem;
  cursor: pointer;
}

/*=============== JOIN ===============*/
/* + stylisation complète de l'élément form ^_^ input de type email */
.join__container {
  position: relative;
  padding-bottom: 4rem;
}

.join__content {
  position: relative;
  padding: 2.5rem 1.5rem;
  row-gap: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: grey;
}

.join__content::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: hsla(0, 0%, 0%, 0.2);
  top: 0;
  left: 0;
  backdrop-filter: blur(8px);
}

.join__bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.join__data,
.join__form {
  z-index: 5;
}

.join__data .section__title,
.join__description {
  color: var(--white-color);
  text-align: center;
}

.join__form {
  display: grid;
  row-gap: 0.75rem;
}

.join__input {
  width: 100%;
  padding: 1rem;
  border-radius: 4rem;
  background-color: var(--body-color);
  color: var(--title-color);
  transition: background-color 0.4s;
}

.join__input::placeholder {
  color: var(--text-color);
}

.join__button {
  cursor: pointer;
}

.join__leaf-1,
.join__leaf-2 {
  position: absolute;
  width: 90px;
}

/* .join__leaf-1 {
  top: -2.5rem;
  left: 0.75rem;
  rotate: 135deg;
} */

.join__leaf-2 {
  right: 1.5rem;
  bottom: 1rem;
  rotate: 15deg;
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 3rem 2rem;
  overflow: hidden;
}

.footer__container {
  position: relative;
  row-gap: 3rem;
}

.footer__logo img {
  width: 1.75rem;
}

.footer__data {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.footer__links {
  display: grid;
  row-gap: 0.75rem;
}

.footer__link {
  color: var(--text-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__social {
  display: flex;
  column-gap: 1rem;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--first-color);
  transition: transform 0.4s;
}

.footer__social-link:hover {
  transform: translateY(-0.25rem);
}

.footer__fruit,
.footer__branch-1,
.footer__branch-2 {
  filter: var(--filter-img);
  position: absolute;
}

.footer__fruit {
  width: 40px;
  bottom: -2rem;
  right: 2rem;
}

.footer__branch-1 {
  width: 120px;
  right: -3rem;
  top: 0;
  rotate: -90deg;
}

.footer__branch-2 {
  width: 120px;
  left: -5rem;
  bottom: -10rem;
  rotate: 75deg;
}

.footer__copy {
  display: block;
  margin-top: 7rem;
  text-align: center;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 85%);
}
::-webkit-scrollbar-thumb {
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 65%);
}
::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 55%);
}
/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.1);
  display: inline-flex;
  padding: 8px;
  border-radius: 0.25rem;
  font-size: 1.25rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, background-color 0.4s;
}
.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */

/* For medium devices */

/* For large devices */
