/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

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

  /* Colors */
  /* HSL Color Mode */
  --hue: 30; /* Warm/Orange/Brown hue */
  --first-color: hsl(var(--hue), 40%, 45%); /* Warm Brown */
  --first-color-alt: hsl(var(--hue), 40%, 35%);
  --first-color-light: hsl(var(--hue), 40%, 75%);
  --first-color-lighten: hsl(var(--hue), 40%, 90%);
  
  --title-color: hsl(var(--hue), 15%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --text-color-light: hsl(var(--hue), 4%, 55%);
  
  --body-color: hsl(var(--hue), 30%, 96%); /* Cream/Off-white background */
  --container-color: #FFF;

  /* Font and Typography */
  --body-font: 'Outfit', sans-serif;
  --title-font: 'Playfair Display', serif;
  
  --big-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* Font Weight */
  --font-medium: 500;
  --font-semi-bold: 600;

  /* Margins */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* Z Index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* 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(--body-color);
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* REUSABLE CSS CLASSES */
.section {
  padding: 4rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-2);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--mb-1);
  font-weight: var(--font-semi-bold);
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

/* HEADER */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: .3s;
}

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

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--title-font);
  font-size: 1.2rem;
}

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

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

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: .3s;
  }
}

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

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  text-transform: uppercase;
  font-size: var(--small-font-size);
  letter-spacing: 1px;
  transition: .3s;
}

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

/* Show Menu */
.show-menu {
  top: var(--header-height);
}

/* HOME */
.home {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('www/assets/fondsite.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.home__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  z-index: 1;
}

.home__container {
  position: relative;
  z-index: 2;
}

.home__title {
  font-size: var(--big-font-size);
  color: #FFF;
  margin-bottom: var(--mb-1);
  line-height: 1.2;
}

.home__description {
  color: #FFF;
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2-5);
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem 2rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
  border: 1px solid transparent;
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-color);
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: #FFF;
}

.button--small {
  padding: .75rem 1.5rem;
  font-size: var(--small-font-size);
}

/* SHOP */
.shop__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.product__card {
  background-color: var(--container-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: .3s;
}

.product__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.product__content {
  padding: 1.5rem;
  text-align: center;
}

.product__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-5);
}

.product__price {
  display: block;
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

/* ABOUT */
.about__container {
  row-gap: 2rem;
}

.about__img {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-1-5);
}

/* FOOTER */
.footer {
  background-color: var(--first-color-lighten);
  padding-bottom: 2rem;
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__logo {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-5);
  display: block;
}

.footer__social-link {
  font-size: 1.25rem;
  color: var(--text-color);
  transition: .3s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

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

.footer__copy {
  display: block;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
  margin-top: 3rem;
}

/* MEDIA QUERIES */
@media screen and (min-width: 576px) {
  .shop__container {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

@media screen and (min-width: 767px) {
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__toggle {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  
  .home__description {
    font-size: var(--h2-font-size);
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .about__description {
    text-align: left;
  }
  
  .shop__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}
.product__img-box {
  background-color: var(--first-color-lighten);
  padding: 0;               /* on enlève le padding pour que l'image remplisse tout */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 306px;
  overflow: hidden;        /* cache ce qui dépasse */
  border-radius: 1rem;     /* garder le style arrondi */
}

.product__img {
  width: 100%;             /* prend toute la largeur du conteneur */
  height: 100%;            /* prend toute la hauteur */
  object-fit: cover;       /* remplit le conteneur en recadrant l'image */
  object-position: center; /* centre l'image */
  transition: .3s;
  mix-blend-mode: normal;  /* optionnel : désactive le "multiply" si gênant */
}
