* {
  box-sizing: border-box;
}

body {
  background-color: #fffaf0;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
}

.formule-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.formule-card {
  display: flex;
  gap: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.formule-card.reverse {
  flex-direction: row-reverse;
}

.formule-image img {
  width: 250px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.formule-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  position: relative;
}

.formule-content h3 {
  font-size: 1.6rem;
  color: #8b4513;
  margin-bottom: 0.8rem;
  font-family: "Pacifico", cursive;
}

.formule-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.2rem;
  max-width: 600px;
}

.formule-footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: auto;
}

.formule-card.reverse .formule-footer-wrapper {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.formule-allergenes {
  display: flex;
  gap: 0.6rem;
}

.formule-allergenes img {
  width: 24px;
  height: 24px;
}

.formule-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.formule-footer button {
  background-color: #f8e2c6;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  color: #5c3b1e;
  font-family: "Open Sans", sans-serif;
}

.formule-footer button:hover {
  background-color: #8b4513;
  color: white;
}

.formule-footer .prix {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8b4513;
}
/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay-content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: "Open Sans", sans-serif;
}

.overlay-content h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #8b4513;
}

.overlay-content label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: bold;
}

.overlay-content input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.overlay-content button[type="submit"] {
  background-color: #8b4513;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  margin-top: 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.overlay-content button[type="submit"]:hover {
  background-color: #a4632d;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #444;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .formule-card,
  .formule-card.reverse {
    flex-direction: column;
    text-align: center;
  }

  .formule-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .formule-footer-wrapper,
  .formule-card.reverse .formule-footer-wrapper {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .formule-allergenes {
    justify-content: center;
  }
}
