/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Titan+One&display=swap");
/*EPHESIS Nom de société AATMA*/
@import url('https://fonts.googleapis.com/css2?family=Ephesis&display=swap');

/*Paragraphe et explication
Red hat display*/
@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #EDC9AF;
  --second-color: #79443B;
  --white-color: hsl(0, 0%, 100%);
  --shadow-img: drop-shadow(0 12px 24px hsla(0, 0%, 0%, .4));

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Red Hat Display", sans-serif;
  --title-font: "Ephesis", cursive;
  --biggest-font-size: 3.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --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;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--second-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== 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: var(--font-regular) var(--h1-font-size) var(--second-font);
  text-align: center;
  margin-bottom: 1.5rem;
  text-shadow: var(--shadow-text);
}

.main {
  overflow: hidden;
}

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

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

.nav__logo{
  color: var(--second-color);
  font-family: var(--title-font);
  text-transform: uppercase;
  font-size: 2.5rem;
}

.nav__close,
.nav__toggle{
  display: flex;
  font-size: 1.5rem;
  cursor: pointer;
}
/* Navigation for mobile devices */
@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--first-color);
    width: 100%;
    height: 100%;
    padding: 7rem 1.5rem 2.5rem 4rem;
    display: flex;
    justify-content: space-between;
    transition: left .4s;
    flex-direction: column;
  }

  /*===== prestation ======*/
  .card__container{
    flex-direction: column;
  }
  .serv__item{
    text-align: center;
  }
}

.nav__list,
.nav__social{
  display: flex;
}

.nav__list{
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link{
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
}
.nav__link:hover{
  color: var(--second-color);
}

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

/* Show menu */
.show-menu{
  left: 0;
}

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

/*=============== HOME ===============*/
.home__container{
  justify-content: center;
  row-gap: 4rem;
}

#home{
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url("../img/bouddha.jpg");
  width: 100%;
  height: 100vh;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
}

.home__data{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.home__title{
  font: var(--font-regular) var(--second-font);
  font-size: 2.5rem;
  line-height: 100%;
  text-shadow: var(--shadow-text);
  text-align: center;

}

/* Swiper class */
.swiper{
  margin-inline: initial;
  overflow: visible;
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .favorites__img{
  scale: 1;
  filter: var(--shadow-img);
}

:is(.swiper-slide-active, .swiper-slide-duplicate-active) .favorites__leaf-1,
:is(.swiper-slide-active, .swiper-slide-duplicate-active) .favorites__leaf-2{
  scale: 1;
}

/*=============== Présentation ===============*/
.care{
  background-color: var(--first-color-dark);
}

.care__container{
  row-gap: 3rem;
  padding-block: 1rem 2rem;
}

.care__list{
  display: grid;
  row-gap: 1.25rem;
}

.care__item{
  display: flex;
  column-gap: .75rem;
  align-items: center;
}
.care__item i{
  font-size: 1.5rem;
  color: var(--second-color);
}

.care__item p{
  text-align: justify;
}

.care__img{
  width: 520px;
  filter: var(--shadow-img);
  justify-self: left;
}

.section__title {
  font-size: 2rem;
  font-weight: 600;
}


/*=============== Accordéon 2 Questions ===============*/
.accordion {
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}
.accordion-item {
  background-color: var(--first-color);
  color: var(--second-color);
  margin: 1rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.25);
}
.accordion-item-header {
  padding: 0.5rem 3rem 0.5rem 1rem;
  min-height: 3.5rem;
  line-height: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.accordion-item-header::after {
  content: "\002B";
  font-size: 2rem;
  position: absolute;
  right: 1rem;
}
.accordion-item-header.active::after {
  content: "\2212";
}
.accordion-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
.accordion-item-body-content {
  padding: 1rem;
  line-height: 1.5rem;
  border-top: 1px solid var(--second-color);
  text-align: justify;
}

.accordion-item-body-content span{
  font-weight: 700;
}

.callme{
  color: #79443B;
  font-weight: 700;
}
.callme:hover{
  color: white;
  transition: .3s ease-out;
}

@media(max-width:767px) {
  html {
    font-size: 14px;
  }
}

/*=============== Prestation ===============*/

.item{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.item1{
  width: 400px;
  height: 600px;
  background-color: orange;
  background-image: url('/assets/img/cartes.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  margin: 3%;
}

.item3{
  width: 400px;
  height: 600px;
  background-color: orange;
  background-image: url('/assets/img/massages.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  margin: 3%;
}

.item5{
  width: 400px;
  height: 600px;
  background-color: orange;
  background-image: url('/assets/img/pierres.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  margin: 3%;
}


.item2, .item4, .item6{
  width: 500px;
  height: 500px;
  /* background-color: pink; */
  display: block;
  text-align: center;
  align-content: center;
  margin: 0px 3%;
}

.item2 h3, .item2 p, .item4 h3, .item4 p, .item6 h3, .item6 p{
  line-height: 4rem;
  font-size: 1.4rem;
}

.card__container{
  display: flex;
  gap: 10px;
}

.card-one{
  width: 320px;
  filter: var(--shadow-img);
  padding: 3%;
}
.serv__list{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.serv__item{
  display: flex;
  column-gap: .75rem;
  align-items: left;
  flex-direction: column;
}

.serv__item h3{
  font-size: 1.5rem;
}

.serv__item p,
.serv__item h3{
  line-height: 2rem;
}

/*==================== Avis ====================*/
.mySwiper {
  width: 100%;
  height: 40vh;
  display: flex;
  margin-top: 50px;
  align-content: center;
  justify-content: center;
  text-align: center;
  background-color: #EDC9AF;
  margin: 2% 0px;
  padding: 2%;
}

swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #79443B;
  flex-direction: column;
  flex-wrap: wrap;
  line-height: 3vh;
  cursor: grab;
}

swiper-slide p{
  font-size: 16px;
  text-align: center;
}

swiper-slide span{
  color: #79443B;
  font-weight: 600;
}

.stars{
  display: flex;
}



/*=============== CONTACT ===============*/
.formulaires{
  width: 100%;
  height: 100vh;
  background-color: var(--first-color);
  padding: 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.contact-form{
  padding: 0px 5%;
  text-align: center;
}

.contact-form h2{
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-form p{
  margin-bottom: 3.8rem;
}

.contact-form form{
  position: relative;
}
.contact-form form input, form textarea{
  width: 100%;
  padding: 17px;
  border: none;
  outline: none;
  background: var(--white-color);
  color: #79443B;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  border-radius: 10px;
}
.contact-form textarea{
  resize: none;
  height: 200px;
}
.contact-form form .btnn{
  cursor: pointer;
  background: #79443B;
  color: var(--white-color);
  text-transform: uppercase;
  font-weight: 600;
  padding: 15px 30px;
  font-size: 16px;
  width: 350px;
  border: none;
  border-radius: 10px;
  outline: none;
}
.contact-form form .btnn:hover{
  background: #55312a;
  cursor: pointer;
  transition: .2s ease;
}


/*==== RSX ====*/
.contact-form i{
  font-size: 2rem;
}
.contact-form a{
  color: var(--second-color);
  transition: 2s ease-in-out linear;
}
.contact-form a:hover{
  color: var(--white-color);
}


/*=============== FOOTER ===============*/

.footer{
  width: 100%;
  height: 5vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 2%;
}


/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.6rem;
  background-color: hsl(170, 50%, 30%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(170, 50%, 20%);
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(170, 50%, 15%);
}


/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--second-color);
  color: var(--white-color);
  box-shadow: inset var(--shadow-button);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  border-radius: .25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

.scrollup:hover{
  transform: translateY(-0.5rem);
}

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 412px){
  .container{
    margin-inline: 1rem;
  }

  .section__title{
    font-size: var(--h2-font-size);
  }

  .home__title{
    font-size: 3rem;
  }

  .home__buttons{
    flex-direction: column;
    row-gap: 1rem;
  }

  .home__circle{
    width: 250px;
    height: 250px;
  }
  .home__subcircle{
    width: 200px;
    height: 200px;
  }
  .home__images .home__img{
    width: 200px;
  }

  /* presentation */

  .section__title{
    font-size: 1.6rem;
  }

  .care__list p{
    font-size: 1.2rem;
  }

  .products__content{
    grid-template-columns: 160px;
    justify-content: center;
  }

  /* prestation */
  .item{
    flex-direction: column;
    padding: 10px;
  }

  .item1{
    width: 400px;
    height: 600px;
    margin: 1% 0px;
  }

  .item2, .item4, .item6{
    padding: 1%;
    line-height: 1rem;
  }

  .item2 h3, .item4 h3, .item6 h3{
    font-size: 20px;
  }
  .item2 p, .item4 p, .item6 p{
    font-size: 1.3rem;
  }

  /*-- avis --*/
  swiper-slide p{
    font-size: 13px;
    text-align: center;
  }

}

/* For medium devices */
@media screen and (min-width: 540px){
  .home__container,
  .care__container{
    grid-template-columns: 370px;
    justify-content: center;
  }
  .favorites__swiper{
    max-width: 600px;
    overflow-x: clip;
    justify-self: center;
  }
  .products__content{
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }
  .contact{
    display: grid;
    grid-template-columns: 450px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px){
  .products__content{
    grid-template-columns: repeat(3, 160px);
  }

  .footer__content{
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    align-items: center;
  }
  .footer__link:nth-child(2){
    order: 1;
  }
}


/* For large devices */
@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }
  .section{
    padding-block: 7rem 2rem;
  }
  .section__title{
    margin-bottom: 2rem;
  }
  .nav{
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__link{
    font-size: var(--normal-font-size);
  }
  .nav__menu{
    display: flex;
    column-gap: 3rem;
    align-items: center;
  }
  .nav__list{
    flex-direction: row;
    column-gap: 4rem;
  }
  .home__container{
    grid-template-columns: 420px 585px;
    align-items: center;
    column-gap: 6rem;
    padding-top: 5rem;
  }
  .home__data{
    text-align: initial;
  }
  .home__title{
    margin-bottom: 1.5rem;
  }
  .home__description{
    margin-bottom: 4rem;
  }
  .home__buttons{
    justify-content: initial;
    column-gap: 1.5rem;
  }
  .care__container{
    /* grid-template-columns: 500px 410px; */
    display: flex;
    /* column-gap: 5rem; */
    align-items: center;
    padding-block: 2rem;
  }
}