/* =========================================================
   Page : Rencontres & Actualités
   ========================================================= */

.meetups-page {
  padding-bottom: 18px;
  background:
    radial-gradient(circle at 7% 18%, rgba(248, 222, 196, 0.22), transparent 18%),
    radial-gradient(circle at 96% 7%, rgba(224, 232, 206, 0.32), transparent 20%),
    #fffdf8;
}

.meetups-page h1,
.meetups-page h2,
.meetups-page h3 {
  font-family: var(--script, "Caveat", cursive);
  font-weight: 700;
  line-height: 1;
}

/* HERO */

.meetups-hero {
  position: relative;
  overflow: hidden;
}

.meetups-hero img {
  display: block;
  width: 100%;
  height: auto;
}

/* NEXT MEETING */

.next-meeting-card {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(220px, 1.15fr) minmax(280px, 1fr) 210px;
  gap: 24px;
  align-items: center;
  width: calc(100% - 96px);
  max-width: 1320px;
  min-height: 178px;
  margin: 18px auto 12px;
  padding: 24px 52px 24px 28px;
  background: linear-gradient(135deg, #fff5ed, #fff9f3);
  border: 1px solid rgba(201, 91, 61, 0.24);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(63, 47, 31, 0.04);
  overflow: hidden;
}

.next-meeting-icon img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.next-meeting-main h1 {
  margin-bottom: 14px;
  color: var(--terracotta, #c95b3d);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.next-meeting-info {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.next-meeting-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #3b241f;
  font-size: 1.18rem;
  font-weight: 900;
}

.next-meeting-visual {
  position: relative;
  min-height: 100px;
}

.next-meeting-visual img {
  position: relative;
  top: -18px;
  display: block;
  width: 190px;
  max-width: 190px;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.next-meeting-btn {
  position: absolute;
  right: 54px;
  bottom: 18px;
  min-width: 190px;
  min-height: 42px;
  padding: 9px 20px;
  font-size: 1.05rem;
  z-index: 3;
}

/* NEWS TITLE */

.news-section {
  width: calc(100% - 96px);
  max-width: 1320px;
  margin: 0 auto;
}

.news-section-title {
  position: relative;
  width: max-content;
  margin: 24px auto -25px;
  text-align: center;
}

.news-section-title h2 {
  color: var(--green, #2b625b);
  font-size: clamp(2rem, 3vw, 2.55rem);
}

/* NEWS CARDS */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 472px;
  padding: 16px 16px 12px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(189, 142, 101, 0.28);
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(63, 47, 31, 0.04);
}

.news-card-header {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 68px;
  margin-bottom: 10px;
}

.news-card-header img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.news-card h3 {
  color: var(--green, #2b625b);
  font-size: 1.65rem;
  line-height: 1.08;
}

.news-card:nth-child(2) h3,
.news-card:nth-child(4) h3 {
  color: var(--terracotta, #c95b3d);
}

.news-card p {
  margin-bottom: 10px;
  color: #1f302d;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.36;
}

.news-card strong {
  font-weight: 900;
}

.news-photo {
  display: block;
  width: 100%;
  height: 122px;
  margin-top: auto;
  object-fit: cover;
  border-radius: 7px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px auto 0;
  color: var(--green, #2b625b);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.news-link-red {
  color: var(--terracotta, #c95b3d);
}

/* BOTTOM GRID */

.meetups-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  width: calc(100% - 96px);
  max-width: 1320px;
  margin: 16px auto 14px;
}

.memories-card,
.future-projects-card {
  position: relative;
  min-height: 240px;
  padding: 20px 18px 16px;
  overflow: hidden;
  border: 1px solid rgba(189, 142, 101, 0.24);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(63, 47, 31, 0.04);
}

.memories-card {
  background: linear-gradient(135deg, #f4f8f3, #fffdf8);
}

.future-projects-card {
  background: linear-gradient(135deg, #fff0e6, #fff8ef);
  padding-left: 64px;
}

.memories-card h2,
.future-projects-card h2 {
  margin-bottom: 12px;
  text-align: center;
  font-size: 2rem;
}

.memories-card h2 {
  color: var(--green, #2b625b);
}

.future-projects-card h2 {
  color: var(--terracotta, #c95b3d);
}

.meetups-page .memories-card h2::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -35px;

  width: 200px;
  height: 100px;

  margin-left: 0;
  vertical-align: 0;

  background-image: url("../images/rencontres/memories-heart.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;

  pointer-events: none;
}

.meetups-page .memories-card h2 {
  margin-top: 0;
}

.memories-card p {
  position: relative;
  top: 12px;
  margin-bottom: 14px;
  color: #1f302d;
  font-size: 0.9rem;
  font-weight: 700;
}

.memory-photos {
  position: relative;
  top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 14px;
}

.memory-photos img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
}

.memories-btn {
  position: relative;
  top: 28px;
  display: flex;
  width: max-content;
  min-width: 140px;
  min-height: 36px;
  margin: 0 auto;
  padding: 7px 18px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green, #2b625b);
  background: #fffdf8;
  border: 1px solid rgba(43, 98, 91, 0.55);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.future-projects-card ul {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding: 0;
  margin: -40px 0 0;
  list-style: none;
}

.future-projects-card li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(189, 142, 101, 0.32);
  color: #1f302d;
  font-size: 0.9rem;
  font-weight: 900;
}

.future-projects-card li:last-child {
  border-bottom: none;
}

.future-projects-card li img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.future-leaf {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 90px;
  opacity: 0.72;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* FINAL CTA */

.meetups-final-cta {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  gap: 28px;
  align-items: center;
  width: calc(100% - 96px);
  max-width: 1320px;
  height: 100px;
  min-height: 100px;
  margin: 0 auto;
  padding: 12px 42px 12px 24px;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f3e8, #fff8ef);
  border-radius: 10px;
}

.meetups-final-cta > img:first-child {
  width: 220px;
  height: 64px;
  object-fit: contain;
  object-position: center center;
}

.meetups-final-cta > div {
  text-align: center;
}

.meetups-final-cta p {
  color: var(--green, #2b625b);
  font-family: var(--script, "Caveat", cursive);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}


.meetups-final-cta-text {
  position: relative;
  text-align: center;
}

.meetups-final-cta-heart {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  width: 280px;
  height: 90px;
  margin: 0;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
}


.meetups-final-cta .btn {
  position: relative;
  z-index: 3;
  min-width: 205px;
  min-height: 54px;
  font-size: 1.25rem;
}

.final-small-flowers {
  position: absolute;
  right: 290px;
  bottom: 4px;
  width: 64px;
  opacity: 0.55;
  pointer-events: none;
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .next-meeting-card,
  .news-section,
  .meetups-bottom-grid,
  .meetups-final-cta {
    margin-inline: 24px;
  }

  .next-meeting-card {
    grid-template-columns: 72px 1fr;
  }

  .next-meeting-comfort,
  .next-meeting-visual,
  .next-meeting-btn {
    grid-column: 2;
    position: static;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .meetups-bottom-grid,
  .meetups-final-cta {
    grid-template-columns: 1fr;
  }

  .future-projects-card {
    padding-left: 24px;
  }
}

.meetups-page .next-mini-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

/* Coffee block: cup left, title + paragraph aligned */
.meetups-page .next-comfort-title {
  position: relative !important;
  display: block !important;
  padding-left: 65px;
  margin: 0 0 8px;
  top: -1px;

  color: #3b241f;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.28;
}

/* Move coffee/text block into the red-square area */
.meetups-page .next-meeting-comfort {
  position: relative;
  left: -110px;
  top: 36px;
  margin-left: 0;
}

.meetups-page .next-comfort-title span {
  display: block;
  margin: 0 !important;

  color: #3b241f;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.28;
}

.meetups-page .next-meeting-comfort p {
  margin: 0 0 0 65px;

  color: #3b241f;
  font-family: var(--body, "Nunito", sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.meetups-page .next-coffee-icon {
  position: absolute;
  left: 0;
  top: 50%;
  width: 62px !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  transform: translateY(-50%);
  object-fit: contain;
}

/* FINAL COLORS — next meeting block */

/* 1st line only: Salle Statère d'Or – Pionsat = dark blue */
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(1),
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(1) *:not(img) {
  color: #263f45 !important;
  -webkit-text-fill-color: #263f45 !important;
}

/* 2nd + 3rd lines: date + time = brown/terracotta */
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(2),
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(2) *:not(img),
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(3),
.meetups-page .next-meeting-card .next-meeting-info p:nth-of-type(3) *:not(img) {
  color: #6f3a2f !important;
  -webkit-text-fill-color: #6f3a2f !important;
}

/* Coffee header = brown/terracotta */
.meetups-page .next-meeting-card .next-comfort-title,
.meetups-page .next-meeting-card .next-comfort-title span {
  color: #6f3a2f !important;
  -webkit-text-fill-color: #6f3a2f !important;
}

/* Text under coffee header = black */
.meetups-page .next-meeting-card .next-meeting-comfort p {
  color: #1f1a17 !important;
  -webkit-text-fill-color: #1f1a17 !important;
}

.meetups-page .news-title-heart {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  margin: -40px auto 0;
  object-fit: contain;
}

.meetups-page .news-card:nth-child(2) .news-photo,
.meetups-page .news-card:nth-child(3) .news-photo {
  height: 120px;
  object-fit: fill;
  object-position: center center;
}

.meetups-page .future-title-decor {
  display: block;
  width: 400px;
  height: auto;
  margin: -55px auto 0;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .next-meeting-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .next-meeting-icon img {
    margin: 0 auto;
  }

  .next-meeting-info p {
    justify-content: center;
  }

  .memory-photos {
    grid-template-columns: 1fr;
  }

  .memory-photos img {
    height: auto;
  }
}