.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px;
}

.product {
  text-align: center;
}

.img-container {
  position: relative;
}

.img-container img {
  width: 100%;
}

.img2 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.img-container:hover .img2 {
  opacity: 1;
}


/* INTRO*/
.intro {
  padding: 40px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

/*CUSTOM STYLE*/
.custom-text {
  margin-top: 30px;
  text-align: center;
}

/* HERO PRODUITS */

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  top: 0;
  left: 0;
}

.hero-text h1 {
  font-size: 35px;
}

.hero-text p {
  font-size: 25px;
}

.product p {
  font-size: 20px;
  color: #333;
}

.signature-text {
    font-size: 2em;
    font-style: italic;
    font-family: "Allura", cursive;
    line-height: 1.8;
}

/* BANDEAU BEIGE */
.info-bar {
  background: #f5e6d3;
  padding: 10px;
  text-align: center;
}

.info-bar p {
font-size: 20px;
  font-family: "Libre Baskerville", serif;
  line-height: 1.6;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: white;
  border-bottom: 1px solid #eee;
}

header nav a {
  margin: 0 15px;
  font-size: 22px;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

footer nav a {
  margin: 0 15px;
  font-size: 16px;
  text-decoration: none;
  color: black;
  font-weight: 500;
}

nav a:hover {
  color: #c69c6d;
}

/* CAROUSEL */
.carousel {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.active {
  display: block;
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: white;
  background: rgba(0,0,0,0.5);
  padding: 20px;
}

.caption a {
  display: inline-block;
  margin-top: 10px;
  background: #c69c6d;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
}

/* 4 COLONNES */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
}

.box {
  background: #f5f5f5;
  padding: 20px;
  text-align: center;
}

/* HERO PRODUITS */
.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  max-width: 800px;
  z-index: 2;
}

/* BANDEAU BEIGE */
.info-bar {
  background: #f5e6d3;
  padding: 10px;
  text-align: center;
}

.logo img {
  height: 90px;
}

.event {
  display: flex;
  align-items: center;
  padding: 40px;
  gap: 40px;
}

.event img {
  width: 40%;
}

.event div {
  width: 60%;
}

.event a {
  display: inline-block;
  margin-top: 10px;
  background: #c69c6d;
  color: white;
  padding: 10px;
  text-decoration: none;
}

.beige {
  background: #f5e6d3;
}

.white {
  background: white;
}

.reverse {
  flex-direction: row-reverse;
}

/*A PROPOS*/
.apropos {
  background: url("../images/fond_a_propos.jpeg");
  background-size: cover;
}


.about {
  display: flex;
  padding: 40px;
  gap: 40px;
  align-items: flex-start;
}



@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }

  .about img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }

  .about-text {
    max-width: 100%;
  }
}


.about-text {
  background: #f5e6d3;
  font-size: 30 px;
  font-style: normal;
  font-family: "Libre Baskerville", serif;
  padding: 20px;
  width: 70%;
}

.about img {
  flex: 0 0 40%;          /* ← image bien plus grande */
  max-width: 480px;       /* ← limite élégante */
  aspect-ratio: 3 / 4;    /* ← ratio verrouillé */
  object-fit: cover;
}


/*STYLE DESCRIPTION PRODUIT*/
.description {
  font-family: "Libre Baskerville", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.7;
  margin: 20px 0;
  color: #555;
}

/* FOOTER*/
footer {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: #eee;
}

footer img {
  height: 80px;
}

/* FEATURES */
.features {
  background: #d8c3a8;
  padding: 40px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 30px;
}


.feature .icon {
  height: 80px;
}

.feature {
  text-align: center;
}

.feature h3 {
  font-size: 24px;
  font-family: "Libre Baskerville", serif;
}

.feature p {
  font-size: 18px;
  font-family: "Libre Baskerville", serif;
}

.features h2 {
  font-size: 28px;
  font-family: "Playfair Display", serif;
}

/* HOME PRODUCTS */
.home-products {
  padding: 40px;
}

.cta {
  text-align: center;
  margin-top: 20px;
}

.cta a {
  background: #d8bb94;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
}

/* STYLE PRODUIT*/
.events-preview {
  background: #f5e6d3;
  padding: 40px;
  text-align: center;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.events-grid img {
  width: 100%;
}

.events-grid a {
  display: inline-block;
  margin-top: 10px;
  background: #c69c6d;
  color: white;
  padding: 8px;
  text-decoration: none;
}
.product h3 a {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: #ac8252;
  text-decoration: none;
}


/* CONTACT */
.contact-header {
  background: #f5e6d3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px;
}

.contact-header img {
  height: 80px;
}

.contact-form {
  padding: 40px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}

input, textarea, select {
  padding: 10px;
}

button {
  background: #c69c6d;
  color: white;
  padding: 10px;
  border: none;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px;
}

.contact-info img {
  height: 550px;
}

/* DETAIL PRODUIT*/
.product-page {
  display: flex;
  gap: 40px;
  padding: 40px;
  width: 100%;
  align-items: flex-start;
}


.product-gallery {
  position: relative;
  flex: 1.4;
  max-width: 55%;
}

.product-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;
}

.product-gallery .prev {
  left: 10px;
}

.product-gallery .next {
  right: 10px;
}

.product-gallery button:hover {
  background: rgba(0,0,0,0.8);
}

.product-info {
  flex: 1;
  max-width: 45%;
}

@media (max-width: 768px) {
  .product-page {
    flex-direction: column;
  }

  .product-gallery,
  .product-info {
    max-width: 100%;
  }
}

.product-title {
  font-size: 45px;
  color: #c69c6d;
  font-family: "Playfair Display", serif;
  margin-bottom: 10px;
}


.small-logo {
  height: 120px;
}

.price {
  font-size: 28px;
  font-weight: normal;
  color: #333;
  margin: 15px 0;
}

.sizes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}


.sizes button {
  background: #f5e6d3;
  color: #b98a58;
  border: none;
  padding: 12px;
  font-size: 18px;
  transition: 0.2s;
  font-family: "Libre Baskerville", serif;
}

/* bouton actif */
.sizes button.active {
  background: #b98a58;
  color: white;
}

/* hover uniquement sur boutons non actifs */
.sizes button:not(.active):hover {
  background: #e2c6a3;
}

/* sécurité : actif reste actif même au hover */
.sizes button.active:hover {
  background: #b98a58;
  color: white;
}


/* bouton devis */
.btn-devis {
  display: block;
  text-align: center;
  font-size: 18px;
  padding: 10px;
  background: #e2c6a3;
  color: #b98a58;
  text-decoration: none;
  margin-top: 10px;
  font-family: "Libre Baskerville", serif;
}

.pickup {
  margin-top: 20px;
  background: #f9f6f1;
  padding: 15px;
  font-family: "Libre Baskerville", serif;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.ingredients {
  margin-top: 20px;
  padding: 15px;
  background: #f9f6f1;
  color:#444;
  font-size: 18px;
  font-style: italic;
  font-family: "Libre Baskerville", serif;
}

* {
  box-sizing: border-box;
}