/* ==========================================================================
   4. SECTIONS (Page d'accueil)
   ========================================================================== */

/* ----- Section Hero (Amandine) ----- */
.amandine-section {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--color-primary);
  color: var(--color-white);
  min-height: 400px;
}

.amandine-left {
  flex: 1 1 50%;
  padding: 5rem 2rem 5rem 0;
  display: flex;
  justify-content: center;
  position: relative;
  background: url('../images/potato.png') no-repeat left bottom;
  background-size: 200px auto !important;
}

.amandine-left-text {
  margin-left: 17rem;
}

.amandine-left h1 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.amandine-description {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.amandine-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.amandine-buttons .btn-yellow {
  width: 50%;
}

.amandine-right {
  flex: 1 1 50%;
  background: url('../images/dish.jpg') no-repeat center / cover;
}

/* ----- Section Recettes ----- */
.recipes-section {
  text-align: center;
  padding: 30px 10px;
}
.section-description {
  font-size: 1rem;
  max-width: 800px;
  margin: -1rem auto 40px;
  line-height: 1.6;
}
.recipes-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}
.recipe-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #e0e0e0;
}
.recipe-card.large { grid-row: span 2; }
.recipe-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  background-size: cover;
  background-position: center;
}
.recipe-card:nth-child(1) .recipe-image { background-image: url('../images/recette1.jpg'); }
.recipe-card:nth-child(2) .recipe-image { background-image: url('../images/recette2.jpg'); }
.recipe-card:nth-child(3) .recipe-image { background-image: url('../images/recette3.jpg'); }
.recipe-title {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: var(--color-white);
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.button-wrapper {
  margin-top: 40px;
}

/* ----- Section Qui sommes-nous ----- */
.about-section {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
}
.about-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.about-block.reverse { flex-flow: wrap-reverse; }
.about-image { flex: 1 1 45%; }
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}
.about-text { flex: 1 1 50%; }
.about-text h3 {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 1rem;
  color: #222;
}

/* ----- Section Où trouver ----- */
.princesse-amandine {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 60px 20px;
}
.princesse-amandine .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.image-container {
  flex: 1 1 300px;
  min-width: 320px;
  text-align: center;
}
.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.text-container {
  flex: 1 1 450px;
  padding: 20px;
}
.text-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.text-container .intro {
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.text-container .details {
  font-size: 0.7rem;
  margin-bottom: 30px;
}
.text-container .btn {
  background-color: var(--color-accent-yellow); /* Utilisation de la variable */
  color: var(--color-text-on-yellow);
  padding: 15px 25px;
}
.text-container .btn:hover {
  background-color: var(--color-accent-yellow-dark); /* Utilisation de la variable */
}

/* ----- Section Engagements ----- */
.engagements {
  padding: 60px 20px;
}
.engagements .content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.engagements .left {
  flex: 1 1 35%;
  display: flex;
  justify-content: space-around;
}
.engagements .right { flex: 1 1 55%; }
.engagement-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}
.engagement-tab {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 15px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: #000;
  display: block;
}
.engagement-tab.active {
  color: var(--color-primary);
  text-decoration: underline;
}
.engagement-panel {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.engagement-panel[hidden] {
  display: none;
}
.engagement-image {
  width: 120px;
  min-height: 200px;
  margin-top: 10px;
  border-radius: 60px;
  overflow: hidden;
  flex-shrink: 0;
}
.engagement-image img { width: 100%; height: 100%; object-fit: cover; }
.engagement-text-content {
  margin-left: 80px;
}
.engagements .subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.engagements .text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.engagements .highlight {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1rem;
}


/* ----- Section FAQ ----- */
.faq-section {
  position: relative;
  padding: 200px 20px;
  background: url("../images/background-faq.png") no-repeat center / cover;
  color: var(--color-white);
}
.faq-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.faq-content {
  max-width: 800px;
  z-index: 2;
}
.faq-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: -1rem 0 1.5rem;
  line-height: 1.4;
}
.faq-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #f2f2f2;
}
.faq-section .btn-yellow {
  padding: 0.9rem 2rem;
  text-transform: uppercase;
}

/* ----- Section Contact ----- */
.contact-section {
  text-align: center;
  padding: 40px 20px;
}
.contact-subtitle {
  color: #000;
  font-size: 1.1rem;
  max-width: 800px;
  margin: -2rem auto 40px;
  line-height: 1.6;
  text-align: left;
}
.contact-section .btn-yellow {
  padding: 15px 30px;
  min-width: 320px;
  color: var(--color-text-on-yellow);
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.contact-section .btn-yellow:hover {
  transform: translateY(-2px);
}