/* =========================================================
   Page: Accueil / Index
   Loaded after style.css
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(295px, 44%) minmax(0, 56%);
  align-items: center;
  min-height: 329px;
  padding-top: 3px;
  padding-right: 0;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.96) 0%, rgba(255, 251, 243, 0.84) 46%, rgba(255, 252, 247, 0) 67%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 380px;
  padding: 7px 0 17px;
  text-align: center;
}

.hero h1 {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: clamp(3.35rem, 4.8vw, 4.85rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.hero-baseline {
  margin-top: 11px;
  color: var(--green);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.hero-intro {
  max-width: 340px;
  margin: 17px auto 0;
  color: #1d2725;
  font-size: 0.94rem;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 21px;
  margin-top: 23px;
}

.hero-actions .btn {
  width: 156px;
  min-height: 37px;
  padding: 0 17px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.hero-visual {
  align-self: end;
  width: 100%;
  height: 100%;
  min-height: 329px;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 0 38px 10px;
  background: #fffaf4;
}

.hero-badges span:not(.badge-icon) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 14px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid rgba(189, 142, 101, 0.55);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.92);
}

.badge-icon {
  color: var(--terracotta);
  font-size: 0.92rem;
}

.values {
  position: relative;
  padding: 34px 51px 29px;
  border-top: 1px solid rgba(224, 216, 199, 0.75);
  border-bottom: 1px solid rgba(224, 216, 199, 0.75);
}

.values h2,
.about h2,
.activities h2,
.meeting-card h2,
.life-card h2,
.contact-strip h2 {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: clamp(2.6rem, 3.5vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.values h2 {
  text-align: center;
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

.values h2::after,
.activities h2::after {
  display: block;
  width: 78px;
  height: 9px;
  margin: 6px auto 0;
  content: "";
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
  mask: radial-gradient(circle at 10px 50%, transparent 0 7px, #000 8px) repeat-x;
  mask-size: 20px 100%;
  opacity: 0.55;
}

.values h2::after {
  width: 66px;
  height: 8px;
  margin-top: 5px;
  mask-size: 17px 100%;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 78px;
  max-width: 816px;
  margin: 26px auto 0;
}

.value-card {
  text-align: center;
}

.value-card img {
  width: 66px;
  height: 66px;
  margin: 0 auto 9px;
  object-fit: contain;
}

.value-card h3,
.activity-card h3,
.meeting-card h2,
.life-card h2 {
  color: var(--green);
  font-family: var(--script);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 0.95;
}

.value-card h3 {
  font-size: 1.9rem;
}

.value-card p {
  max-width: 196px;
  margin: 9px auto 0;
  font-size: 0.78rem;
  line-height: 1.43;
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, 470px) minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  background: rgba(255, 253, 248, 0.96);
}

.about-photo img {
  width: 100%;
  min-height: 438px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.about-text {
  padding-right: 28px;
}

.about-text h2 {
  margin-bottom: 18px;
}

.about-text p {
  margin-top: 12px;
  color: #1e2b29;
  font-size: 0.96rem;
  line-height: 1.48;
}

.expert-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 22px;
  color: var(--green-dark);
  background: linear-gradient(90deg, #fff2dc, #fff8ed);
  border-radius: 14px;
}

.expert-box p {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.25;
}

.expert-box strong {
  font-size: 1.2rem;
}

.expert-heart {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: 3.2rem;
  line-height: 1;
}

.activities {
  padding-top: 30px;
  text-align: center;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.activity-card {
  position: relative;
  min-height: 360px;
  padding: 48px 14px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid rgba(188, 133, 95, 0.58);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(70, 47, 30, 0.04);
}

.activity-icon {
  position: absolute;
  top: -31px;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  object-fit: contain;
}

.activity-card h3 {
  min-height: 38px;
  text-align: center;
  font-size: 1.86rem;
}

.activity-subtitle {
  margin-top: 3px;
  color: var(--green);
  font-size: 0.77rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.activity-photo {
  width: 100%;
  height: 87px;
  margin: 12px 0;
  object-fit: cover;
  border-radius: 6px;
}

.activity-card p:not(.activity-subtitle) {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.43;
}

.activities-note {
  position: relative;
  margin: 22px auto 0;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.meeting-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  padding-top: 20px;
  background: #fffdf8;
}

.meeting-card,
.life-card {
  border-radius: 12px;
}

.meeting-card {
  position: relative;
  padding: 30px 42px 28px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6e8, #fbf8ee);
}

.meeting-card h2,
.life-card h2 {
  text-align: center;
}

.meeting-card dl {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-left: 34px;
}

.meeting-card dl div {
  position: relative;
}

.meeting-card dt {
  font-weight: 900;
}

.meeting-card dd {
  margin-top: 1px;
  font-size: 0.83rem;
}

.meeting-card .btn {
  margin: 22px auto 0;
}

.meeting-card p {
  max-width: 235px;
  margin: 26px auto 0;
  font-size: 0.82rem;
  text-align: center;
}

.meeting-decor {
  position: absolute;
  right: 14px;
  bottom: 38px;
  width: 52px;
}

.life-card {
  padding: 28px 34px 30px;
  text-align: center;
  background: linear-gradient(90deg, #fffaf2, #f8f1e8);
}

.life-card > p {
  max-width: 430px;
  margin: 14px auto 24px;
  font-size: 0.94rem;
}

.life-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.life-photos img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: 0 8px 20px rgba(63, 47, 31, 0.08);
}

/* INDEX — Nos valeurs side leaves */
.decor.decor-left {
  position: absolute;
  left: 10px;
  top: 60px;
  width: 155px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.decor.decor-right {
  position: absolute;
  right: 10px;
  top: 130px;
  width: 130px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.expert-coffee-img {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 78px;
  position: relative;
  top: -5px;
}

.index-activities-note {
  position: relative;
}

.index-activities-note p {
  position: relative;
  z-index: 2;
}

.index-activities-leaf {
  position: absolute;
  z-index: 1;
  width: 95px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.index-activities-leaf-left {
  left: 170px;
  top: 50%;
  transform: translateY(-50%);
}

.index-activities-leaf-right {
  right: 170px;
  top: 50%;
  transform: translateY(-50%);
}

.meeting-decor {
  transform: translateX(-8px) scaleX(2.2) scaleY(2.2);
  transform-origin: bottom center;
}

/* Move only the bottom text in the "Prochaine rencontre" card */
.meeting-card > a.btn-small + p {
  position: relative;
  left: -30px;
  text-align: left !important;
}

.meeting-card dl > div {
  position: relative;
  padding-left: 44px;
}

.meeting-card .next-meetup-icon {
  position: absolute;
  left: 0;
  top: -2px;

  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;

  pointer-events: none;
}

/* Move only the 3 icon/text rows left */
.meeting-card > dl {
  transform: translateX(-30px);
}

/* INDEX — bottom contact banner corrected */

.contact-strip {
  display: grid !important;
  grid-template-columns: 300px 370px 1fr !important;
  column-gap: 42px !important;
  align-items: center !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 22px 36px !important;
  box-sizing: border-box;

  background: linear-gradient(
    90deg,
    rgba(255, 246, 230, 0.72),
    rgba(255, 252, 244, 0.58)
  ) !important;

  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

/* Force each block into the right column */
.contact-strip .contact-intro {
  grid-column: 1;
  position: relative;
  padding-right: 34px;
  padding-left: 52px;
}

/* Left text */
.contact-strip .contact-intro h2 {
  margin: 0 0 18px;
  color: var(--terracotta, #c95b3d);
  font-family: var(--script, "Caveat", cursive);
  font-size: 2.55rem;
  line-height: 1;
}

.contact-strip .contact-intro p {
  margin: 0;
  color: #1f302d;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.38;
}

/* Middle contact details */
.contact-strip .contact-details {
  grid-column: 2;
  position: relative;
  display: grid !important;
  gap: 14px !important;
  margin: 0 !important;
  padding-left: 38px;

  color: var(--green);
  font-style: normal;
  font-weight: 800;

  border-left: 1px solid rgba(179, 147, 114, 0.35);
  transform: translateX(70px);
}

.contact-strip .contact-details a,
.contact-strip .contact-details > span {
  display: grid !important;
  grid-template-columns: 32px max-content;
  column-gap: 14px !important;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.contact-strip .contact-detail-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Right image */
.contact-strip .contact-visual {
  position: relative;
  height: 150px;
  overflow: hidden;
}

/* INDEX — contact banner image: keep proportions */
.contact-strip .contact-visual > img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: center center;
}

/* Button over image */
.contact-strip .contact-visual .btn {
  position: absolute;
  right: 34px;
  bottom: 24px;
  min-width: 185px;
  min-height: 52px;
  padding: 12px 22px;
  font-size: 1.05rem;
}

@media (max-width: 1180px) {
  .hero {
      grid-template-columns: 1fr;
      padding: 18px 34px 0;
    }

  .hero-copy {
      margin: 0 auto;
    }

  .hero-visual {
      min-height: auto;
      margin: 12px -34px 0;
    }

  .hero-visual img {
      height: auto;
    }

  .activities-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      row-gap: 52px;
    }

  .contact-visual {
      grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero h1 {
      font-size: 4.1rem;
    }

  .hero-baseline {
      font-size: 1.08rem;
    }

  .hero-badges {
      padding-inline: 20px;
    }

  .values {
    padding-inline: 20px;
  }

  .values-grid,
  .about,
  .meeting-gallery,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .values-grid {
      gap: 32px;
    }

  .decor-left,
    .decor-right {
      opacity: 0.45;
    }

  .about-text {
      padding-right: 0;
    }

  .activities-grid {
      grid-template-columns: 1fr;
      gap: 54px;
    }

  .activity-card {
      min-height: auto;
    }

  .activity-photo {
      height: 160px;
    }

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

  .life-photos img {
      height: 180px;
    }

  .contact-intro {
      padding-left: 0;
      text-align: center;
    }

  .contact-details {
      padding-left: 0;
      border-left: 0;
    }

  .contact-visual .btn {
      position: static;
      width: 100%;
      margin-top: 14px;
    }
}

@media (max-width: 520px) {
  .hero {
      padding-inline: 20px;
    }

  .hero h1 {
      font-size: 3.35rem;
    }

  .hero-intro {
      font-size: 1rem;
    }

  .expert-box {
      grid-template-columns: 1fr;
      text-align: center;
    }

  .expert-heart {
      display: none;
    }
}
