
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Montserrat:wght@400;600;700&display=swap");

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

  /*Colors*/
 
  --first-color: hsl(28, 88%, 62%);
  --first-color-alt: hsl(28, 84%, 58%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 75%);
  --text-color-light: hsl(0, 0%, 65%);
  --black-color: hsl(0, 0%, 6%);
  --body-color: hsl(0, 0%, 6%);
  --container-color: hsl(0, 0%, 10%);


  --body-font: "Montserrat", sans-serif;
  --second-font: "Dancing Script", cursive;
  --biggest-font-size: 3rem;
  --bigger-font-size: 2rem;
  --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;
  --font-bold: 700;

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

/* Responsive */
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5rem;
    --bigger-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: .875rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

button {
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

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

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

.main {
  overflow: hidden; 
}


.header{
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

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

.nav__logo{
  color: var(--first-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  transition: color .4s;
}

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

.nav__toggle,
.nav__close{
  font-size: 1.5rem;
  color: var(--title-color);
  cursor: pointer;
}






@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 6%, .2);
    backdrop-filter: blur(16px);
    width: 80%;
    height: 100%;
    padding: 6rem 3rem 0;
    transition: right .4s;
  }
}

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

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

.nav__close{
  position: absolute;
}

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



.show-menu{
  right: 0;
}
.blur-header::after{
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 6%, .2);
  backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;

}


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

/* Accueil */
.home{
  position: relative;
  padding-top: 6.5rem;
}

.home__container{
  row-gap: 2rem;
}
.home__bg,
.home__shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.home__bg{
  object-fit: cover;
  object-position: center;
}
.home__shadow{
  background: linear-gradient(180deg,
              hsla(0, 0%, 0%, 0) 0%,
              hsl(0, 0%, 6%) 100%);
}

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

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



.home__image{
  max-width: 400px;
  justify-self: center;
}

.home__img{
  rotate: 15deg;
}

.home__footer,
.home__location,
.home__social{
  display: flex;
}

.home__footer{
  justify-content: space-between;
  align-items: center;
}
.home__location{
  align-items: center;
  column-gap: .5rem;
}

.home__location i{
  font-size: 1.5rem;
  color: var(--first-color);
}

.home__location span{
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.home__social a{
  color: var(--title-color);
  font-size: 1.5rem;
  transition: color .4s;
}

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





.button{
  display: inline-flex;
  background-color: var(--first-color);
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  padding: 1.125rem 2rem;
  transition: background-color .4s;
}

.button:hover{
  background-color: var(--first-color-alt);
}

/*Meilleures pizzas*/

.pizza__container{
  padding-top: 1.5rem;
  row-gap: 3.5rem;
}

.pizza__content{
  row-gap: 2rem;
}

.pizza__card{
  display: flex;
  column-gap: 1rem;
  align-items: center;
}

.pizza__img{
  width: 150px;
}

.pizza__title{
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  color: var(--first-color);
  margin-bottom: .5rem;
}

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

.pizza__card:nth-child(2) img{
  order: -1;
}

.pizza__button{
  justify-self: center;
}

/* A Propos */
.about__container{
  row-gap: 4rem;
}

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

.about__description{
  margin-bottom: 3rem;
}


.about__img{
  width: 320px;
  justify-self: center;
}
/* La Carte*/
.carte__container{
  padding-top: 3.5rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 1.5rem;
}

.carte__card{
  position: relative;
  background-color: hsl(0, 0%, 10%);
  box-shadow: 0 12px 24px hsla(0, 0%, 0%, .3);
  padding: 6.5rem 1rem 1.25rem;
  border: 2px solid transparent;
  transition: border-color .4s;

}

.carte__img{
  width: 120px;
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.carte__title{
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  color: var(--first-color);
}

.carte__subtitle{
  display: block;
  margin-bottom: .75rem;
}
.carte__price{
  font-size: var(--normal-font-size);
  font-family: var(--second-font);
}

.carte__button{
  padding: .25rem;
  font-size: 1.25rem;
  position: absolute;
  bottom: 1.25rem;
  right: 1rem;
  cursor: pointer;
}

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

/*Visite*/

.visit__container{
  position: relative;
  padding-block: 3rem;
}

.visit__bg,
.visit__shadow{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.visit__bg{
  object-fit: cover;
  object-position: center;
}

.visit__shadow{
  background: linear-gradient(180deg,
              hsl(0, 0%, 6%) 0%,
              hsla(0, 0%, 4%, .1) 50%,
              hsl(0, 0%, 6%) 100%);
}

.visit__data{
  text-align: center;
}


.visit__decoration{
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: 3rem;
}



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

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

.footer__logo{
  display: inline-block;
  color: var(--first-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  margin-bottom: .5rem;
  transition: color .4s;
}
.footer__logo:hover{
  color: var(--first-color);
}

.footer__content{
  grid-template-columns: repeat(2, max-content);
  gap: 4rem 2rem;
}

.footer__title{
  font-size: var(--h3-font-size);
  margin-bottom: 1.25rem;
}

.footer__list{
  display: grid;
  row-gap: .75rem;
}

.footer__info{
  font-style: normal;
}

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

.footer__social a{
  color: var(--text-color);
  font-size: 1.5rem;
  transition: color .4s;
}

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




.footer__copy{
  display: block;
  margin-top: 6rem;
  text-align: center;
  font-size: var(--small-font-size);
}




::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(28, 12%, 15%);
}
::-webkit-scrollbar-thumb{
  background-color: hsl(28, 12%, 25%);
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl(28, 12%, 35%);
}



.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  color: var(--title-color);
  box-shadow: 0 12px 24px hsla(0, 0%, 0%, .3);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
}

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

.show-scroll{
  bottom: 3rem;
}

/*=============== Responsive ===============*/



@media screen and (max-width: 340px){
  .container{
    margin-inline: 1rem;
  }

  .home__title{
    font-size: 2.5rem;
  }

  .home__footer{
    flex-direction: column;
    row-gap: 2rem;
  }
  .pizza__content{
    grid-template-columns: 200px;
    justify-content: center;
  
  }
  
  .pizza__card{
    flex-direction: column;
    row-gap: 1rem;
    text-align: center;
  }
  
  .pizza__card:nth-child(2) img{
    order: initial;
  }

  .carte__container{
    grid-template-columns: 180px;
    justify-content: center;
  }

  .footer__content{
    grid-template-columns: max-content;
  }

}



@media screen and (min-width: 576px){

  .nav__menu{
    width: 50%;
  }

  .home__container,
  .pizza__content,
  .about__container,
  .visit__content{
    grid-template-columns: 350px;
    justify-content: center;
  }

 .carte__container{
  grid-template-columns: repeat(2, 180px);
  justify-content: center;
 }

 .footer__content{
  grid-template-columns: repeat(3, max-content);
 }
 .cart {
  width: 90%;
 }

}

@media screen and (min-width: 768px){
  .home{
    padding-top: 3rem;
  }
  .home__container{
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }

  .home__data{
    text-align: initial;
  }

  .home__footer{
    grid-column: 1 / 3;
  }

  .about__container{
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }

  .about__data{
    order: 1;
  }

  .about__data,
  .about__data .section__title{
    text-align: initial;
  }

  .carte__container{
    grid-template-columns: repeat(3, 180px);
  }
  .footer__container{
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  
  .cart {
    width: 80%;
    margin: 0 auto;
  }


}




@media screen and (min-width: 1150px){
  .container{
    margin-inline: auto;
  }

  .section{
    padding-block: 7rem 2rem;
  }

  .nav{
    height: calc(--header-height) + 2rem;
  }

  .nav__toggle,
  .nav__close{
    display: none;
  }
  .nav__menu{
    width: initial;
  }

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

  .home__container{
    grid-template-columns: 470px 550px;
    column-gap: 3rem;
  }

  .home__title{
    margin-bottom: 2rem;
  }



  .home__image{
    max-width: initial;
    width: 550px;
  }

  .home__location i{
    font-size: 2rem;
  }

  .home__location span{
    font-size: var(--normal-font-size);
  }

  .home__social{
    column-gap: 1.5rem;
  }

  .pizza__container{
    padding-top: 4rem;
  }

  .pizza__content{
    grid-template-columns: repeat(3, 270px);
    column-gap: 5.5rem;
  }

  .pizza__card{
    flex-direction: column;
    row-gap: 2rem;
    text-align: center;
  }

  .pizza__title{
    font-size: var(--h1-font-size);
  }

  .pizza__description{
    font-size: var(--normal-font-size);
    padding-inline: 1rem;
  }

  .pizza__img{
    width: 250px;
  }

  .about__container{
    grid-template-columns: 450px 430px;
    column-gap: 7rem;
  }

  .about__img{
    width: 450px;
  }

 

  .carte__container{
    padding-top: 5.5rem;
    grid-template-columns: repeat(3, 240px);
    gap: 5.5rem 2rem;
  }

  .carte__card{
    padding: 9.75rem 1.5rem 2rem;
  }

  .carte__img{
    width: 180px;
    top: -3rem;
  }


  .carte__price{
    font-size: var(--h3-font-size);
  }

  .carte__button{
    font-size: 1.5rem;
    bottom: 2rem;
    right: 1.5rem;
  }

  .visit__container{
    padding-block: 4rem;
  }
  .visit__content{
    grid-template-columns: 480px;
  }

  .footer{
    padding-block: 5rem 3rem;
  }
  .footer__logo,
  .footer__title{
    margin-bottom: 1.5rem;
  }

  .footer__content{
    column-gap: 4.5rem;
  }

  .footer__social{
    column-gap: 1.5rem;
  }

  .footer__copy{
    margin-top: 8rem;
  }

  .scrollup{
    right: 3rem;
  }
  .cart {
    top: unset;
    right: unset;
    width: auto;
    padding: 10px;
    margin-top: 1rem;
    position: relative;
    transform: none;
  }

}


.ingredient-table__table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.ingredient-table__table th,
.ingredient-table__table td {
  padding: 1rem;
  text-align: left;
}

.ingredient-table__table th {
  background-color: var(--first-color);
  color: var(--title-color);
}

.ingredient-table__table td {
  background-color: var(--container-color);
  color: var(--text-color);
}

.ingredient-table {
  margin-top: 3rem;
}

.ingredient-table__table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.ingredient-table__table th,
.ingredient-table__table td {
  padding: 1rem;
  text-align: left;
}

.ingredient-table__table th {
  background-color: var(--first-color);
  color: var(--title-color);
}

.ingredient-table__table td {
  background-color: var(--container-color);
  color: var(--text-color);
}


.cart {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 300px; 
  padding: 20px;
  background-color: var(--container-color); 
  border: 2px solid var(--first-color); 
  border-radius: 10px; 
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  
  
}

.cart__title {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.cart__items {
  margin-bottom: 1rem;
}

.cart__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--first-color); 
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.cart__item-name {
  color: var(--title-color);
}

.cart__item-price {
  color: var(--first-color);
}

.cart__total {
  font-weight: bold;
  color: var(--first-color);
  margin-top: 1rem;
}

.delete-button {
  cursor: pointer;
  background-color: var(--first-color); 
  color: var(--black-color);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.delete-button:hover {
  background-color: var(--first-color-alt); 
  color: var(--black-color); 
}

.cart__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--first-color); 
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.cart__item-name {
  color: var(--title-color);
}

.cart__item-price {
  color: var(--first-color);
  margin-right: 10px; 
}

.delete-button {
  cursor: pointer;
  background-color: var(--first-color); 
  color: var(--black-color); 
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}





@media screen and (max-width: 1150px) {
  .cart {
    top: var(--header-height); 
    right: 20px; 
    transform: translateY(-50%);
  }
}


@media screen and (max-width: 768px) {
  .cart {
    top: var(--header-height); 
    right: 10px; 
    transform: translateY(-50%);
  }
}




@media screen and (max-width: 576px) {
  .cart {
    top: calc(var(--header-height) + 900px); 
    left: 10%;
    
    transform: translateX(-50%); 
    border-radius: 10px; 
    border-top: 2px solid var(--first-color);
    background-color: var(--container-color);
    transform: none;
  }
}


    
