/* ========================================================================
   RECETTE.CSS — Page Recette
   ========================================================================
   
   Purpose: Timeline page styling basée sur timeline-section.css
            avec ajustements pour la page recette
   
   Spécificités:
   - Header avec h1 positionné plus à gauche
   - Margin-top augmenté
   - Styling cohérent avec la timeline de l'index
   
   ========================================================================== */

.recette-section {
  padding: 5px 0 110px;
  position: relative;
  background: var(--color-dark-alt);
  color: #fff;
  overflow: hidden;
}

.recette-section .container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  position: relative;
}

.recette-section .hero {
  text-align: left;
  padding-top: 80px;
  margin-bottom: 30px;
  background: none !important;
  box-shadow: none !important;
  padding: 80px 0 0 0 !important;
  min-height: auto !important;
}

.recette-section .hero h1 {
  margin-top: 2px;
  margin-left: 0;
  margin-bottom: 8px;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.6px;
  text-align: left;
}

.recette-section .hero h1 span {
  color: var(--c-cta, var(--color-accent-gold));
}

.recette-section .hero p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
  font-size: clamp(18px, 2.5vw, 24px);
}

.timelineRail {
  position: absolute;
  top: -90px;
  bottom: -200px;
  right: 350px;
  width: 2px;
  border-radius: 0;
  background: linear-gradient(
    180deg,
    rgba(150, 150, 150, 0.6),
    rgba(120, 120, 120, 0.4)
  );
  box-shadow: none;
}

.timelineItem {
  position: relative;
  width: 100%;
  margin: 0 0 50px;
  display: flex;
  justify-content: flex-start;
}

.timelineItem.right {
  justify-content: flex-end;
}

.timelineDot {
  width: 16px;
  height: 16px;
  background: var(--color-gold-trans-95);
  border-radius: 50%;
  position: absolute;
  right: 350px;
  transform: translateX(50%);
  top: 20px;
  box-shadow: none;
}

.timelineItem.right .card {
  margin-left: auto;
  margin-right: -200px;
}

.card {
  width: min(420px, 85%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--cardShadow);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 38px -18px rgba(0, 0, 0, 0.42);
}

.cardBody {
  padding: 18px 18px 16px;
}

.cardBody h2 {
  font-size: 48px;
  margin-bottom: 8px;
}

.timeline-number {
  color: var(--color-gold-trans-1);
  margin-right: 8px;
}

.cardBody p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 20px;
}

/* little arrow pointers like classic timeline */
.timelineItem.left .card::after,
.timelineItem.right .card::after {
  content: "";
  position: absolute;
  top: 36px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timelineItem.left .card::after {
  right: -14px;
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent var(--surface);
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.15));
}

.timelineItem.right .card::after {
  left: -14px;
  border-width: 10px 14px 10px 0;
  border-color: transparent var(--surface) transparent transparent;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.15));
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.left {
  transform: translate(-56px, 16px);
}

.reveal.right {
  transform: translate(56px, 16px);
}

.reveal.show {
  opacity: 1;
  transform: translate(0, 0);
}

/* Go top button */
.toTop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(245, 245, 245, 0.92);
  color: rgba(33, 33, 33, 0.88);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toTop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toTop:hover {
  transform: translateY(-2px);
}

/* responsive */
@media (max-width: 840px) {
  .recette-section {
    padding: 5px 0 60px;
  }

  .timelineRail {
    left: 44px;
    right: auto;
    transform: none;
  }

  .timelineDot {
    left: 44px;
    transform: none;
  }

  .timelineItem {
    justify-content: flex-start !important;
  }

  .card {
    width: calc(100% - 74px);
    margin-left: 74px;
  }

  .timelineItem.left .card::after,
  .timelineItem.right .card::after {
    left: -14px;
    right: auto;
    border-width: 10px 14px 10px 0;
    border-color: transparent var(--surface) transparent transparent;
  }
}

@media (max-width: 600px) {
  .recette-section .container {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .timelineRail {
    display: none;
  }

  .timelineDot {
    display: none;
  }

  .timelineItem {
    justify-content: flex-start !important;
  }

  .card {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: auto;
  }

  .timelineItem.left .card::after,
  .timelineItem.right .card::after {
    display: none;
  }

  .timeline-number {
    font-size: 24px;
  }
}

/* ===================== RECETTE CTA SECTION ===================== */

.recette-cta {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(14, 14, 14, 0.7), rgba(14, 14, 14, 0.7)),
    url("../../../assets/webp/recette/bso2.webp") center/cover no-repeat;
  color: #fff;
  padding: 60px 20px;
  position: relative;
}

.recette-cta__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.recette-cta__content {
  max-width: 1000px;
  margin: 0 auto;
}

.recette-cta__title {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 200;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #fff;
}

.recette-cta__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.6;
  margin: 0 0 32px 0;
  color: var(--color-grey-border);
}

.recette-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 600px) {
  .recette-cta {
    min-height: auto;
    padding: 40px 20px;
  }

  .recette-cta__title {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 16px;
  }

  .recette-cta__subtitle {
    font-size: clamp(14px, 1.5vw, 16px);
    margin-bottom: 24px;
  }
}
