/* ==============================
   Realisations
   ============================== */

.realisation-section {
  width: 100%;
  min-height: 85vh;
  margin-top: -150px;
  padding: 230px 0 58px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff5ee 32%, #ffefe4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.realisation-section::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  top: -300px;
  right: -120px;
  background: radial-gradient(circle, rgba(222, 115, 67, 0.18), rgba(222, 115, 67, 0));
  pointer-events: none;
}

.realisation-title {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(222, 115, 67, 0.14);
}

.realisation-copy {
  width: min(860px, 92vw);
  position: relative;
  z-index: 1;
  text-align: center;
}

.realisation-intro {
  margin: 0 auto 10px;
  max-width: 760px;
  font-size: 1.03rem;
}

.realisation-note {
  margin: 0 auto;
  max-width: 720px;
  color: var(--color-rare);
  font-weight: 600;
}

.realisation-hero-motion {
  margin-bottom: 10px;
}

.we-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: min(1140px, 92vw);
  margin: 0 auto 48px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.we-mosaic-card {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);

  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "media badges"
    "media content";

  overflow: hidden;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.we-mosaic-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

@media (prefers-reduced-motion: reduce) {
  .we-mosaic-card,
  .we-mosaic-card:hover {
    transition: none;
    transform: none;
  }
}

.we-mosaic-card > .we-mosaic-media,
.we-mosaic-card > .we-mosaic-img {
  grid-area: media;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.we-mosaic-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  grid-template-areas:
    "badges media"
    "content media";
}

.we-mosaic-card:nth-child(even) > .we-mosaic-media,
.we-mosaic-card:nth-child(even) > .we-mosaic-img {
  border-right: none;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.we-mosaic-media {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(158deg, #fffaf7, #fff3ec);
}

.we-mosaic-media-contain {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.we-mosaic-media-cover {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.we-mosaic-card > .we-mosaic-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  aspect-ratio: auto;
}

.we-mosaic-img-contain {
  width: min(100%, 230px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
}

.we-mosaic-img-contain-wide {
  width: min(100%, 260px);
}

.we-mosaic-img-cover {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.we-mosaic-badges {
  grid-area: badges;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 2px;
}

.we-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(222, 115, 67, 0.12);
  color: var(--color-rare);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
}

.we-mosaic-content {
  grid-area: content;
  padding: 8px 20px 20px;
}

.we-mosaic-content h2 {
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.we-mosaic-content p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-text-soft);
  margin-bottom: 0;
}

.we-mosaic-content p + p {
  margin-top: 10px;
}

.realisation-cta-shell {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(222, 115, 67, 0.18), rgba(255, 255, 255, 0.92) 55%),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(222, 115, 67, 0.18);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}

.realisation-cta-shell h2 {
  margin-bottom: 10px;
}

.realisation-cta-shell p {
  max-width: 720px;
  margin: 0 auto 20px;
}

@media (max-width: 980px) {
  .realisation-section {
    margin-top: -140px;
    padding-top: 206px;
  }

  .we-mosaic-grid {
    width: min(980px, 94vw);
    gap: 16px;
  }

  .we-mosaic-card {
    min-width: 0;
    width: 100%;
  }

  .we-mosaic-card,
  .we-mosaic-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "badges"
      "content";
  }

  .we-mosaic-card > .we-mosaic-media,
  .we-mosaic-card > .we-mosaic-img,
  .we-mosaic-card:nth-child(even) > .we-mosaic-media,
  .we-mosaic-card:nth-child(even) > .we-mosaic-img {
    border-right: none;
    border-left: none;
  }

  .we-mosaic-card > .we-mosaic-img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .we-mosaic-media-contain {
    min-height: 0;
    padding: 18px;
  }

  .we-mosaic-media-cover {
    min-height: 0;
  }

  .we-mosaic-img-contain {
    width: min(100%, 220px);
  }

  .we-mosaic-img-contain-wide {
    width: min(100%, 240px);
  }

  .we-mosaic-img-cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 700px) {
  .realisation-section {
    margin-top: -80px;
    padding: 130px 0 26px;
  }

  .realisation-title {
    margin-bottom: 8px;
  }

  .realisation-intro,
  .realisation-note {
    font-size: 0.95rem;
  }

  .realisation-hero-motion {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    transform: none;
    margin-bottom: 0;
  }

  .we-mosaic-grid {
    width: 96vw;
    margin-bottom: 24px;
  }

  .we-mosaic-card {
    border-radius: 18px;
  }

  .we-mosaic-badges {
    padding: 14px 14px 2px;
    gap: 7px;
  }

  .we-badge {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  .we-mosaic-content {
    padding: 8px 14px 16px;
  }

  .we-mosaic-content h2 {
    font-size: 1.2rem;
  }

  .we-mosaic-content p {
    font-size: 0.9rem;
  }
}

html[data-theme="dark"] .realisation-section {
  background: linear-gradient(180deg, #0f0e0d 0%, #171311 32%, #1d1714 100%);
}

html[data-theme="dark"] .we-mosaic-card {
  background: rgba(22, 18, 17, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .we-mosaic-card > .we-mosaic-media,
html[data-theme="dark"] .we-mosaic-card > .we-mosaic-img,
html[data-theme="dark"] .we-mosaic-card:nth-child(even) > .we-mosaic-media,
html[data-theme="dark"] .we-mosaic-card:nth-child(even) > .we-mosaic-img {
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .we-mosaic-media {
  background: linear-gradient(158deg, #1d1816, #241d1a);
}

html[data-theme="dark"] .we-badge {
  background: rgba(222, 115, 67, 0.16);
  color: #ffd4c1;
}

html[data-theme="dark"] .realisation-note {
  color: #ffd4c1;
}

html[data-theme="dark"] .realisation-cta-shell {
  background:
    linear-gradient(135deg, rgba(222, 115, 67, 0.16), rgba(20, 17, 16, 0.92) 55%),
    rgba(20, 17, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}
