/* =========================================================
   Ressources éditoriales publiques — Lune d’Intuition
   ========================================================= */

.resource-public-page {
  background: #fbf7ff;
}

.resource-page {
  min-height: 100vh;
  padding: clamp(24px, 5vw, 64px) 18px 72px;
  background:
    radial-gradient(circle at top left, rgba(177, 139, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 218, 248, 0.42), transparent 28%),
    linear-gradient(180deg, #fbf7ff 0%, #ffffff 42%, #f8fafc 100%);
}

.resource-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(39, 24, 64, 0.12);
  overflow: hidden;
}

.resource-hero {
  position: relative;
  min-height: clamp(220px, 26vw, 280px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  isolation: isolate;
  background: transparent;
  color: #fff;
}

.resource-hero__content {
  flex: 0 1 720px;
  max-width: 80%;
  margin-left: auto;

  padding-top: 22px;
  padding-bottom: 22px;
  padding-left: clamp(27px, 4vw, 60px);
  padding-right: 0;

  text-align: left;
}

.resource-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.resource-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.resource-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    180deg,
    rgba(20, 10, 34, 0) 0%,
    rgba(20, 10, 34, 0.15) 45%,
    rgba(20, 10, 34, 0.65) 100%
  );
}

.resource-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(47, 47, 58, 0.82);
}

.resource-hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.resource-lead {
  margin: 22px 0 0;
  max-width: 760px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
}

.resource-body {
  padding: clamp(28px, 5vw, 48px);
}

.resource-section {
  padding: 0 0 32px;
  margin: 0 0 32px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.resource-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.resource-section h2 {
  margin: 0 0 14px;
  color: #26143f;
  font-size: clamp(1.35rem, 2.4vw, 1.72rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.resource-section p {
  margin: 0;
  color: #334155;
  font-size: clamp(1rem, 1.4vw, 1.06rem);
  line-height: 1.9;
}

.resource-section--intro {
  padding: 26px 28px;
  border: 1px solid rgba(181, 139, 232, 0.24);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245, 239, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.resource-section--intro p {
  color: #1e293b;
  font-size: clamp(1.04rem, 1.6vw, 1.12rem);
}

.resource-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 clamp(24px, 5vw, 48px) clamp(28px, 5vw, 48px);
  padding: clamp(24px, 4vw, 34px);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(181, 139, 232, 0.28), transparent 36%),
    linear-gradient(135deg, #f5efff 0%, #fff 100%);
  border: 1px solid #eadcff;
}

.resource-cta__eyebrow {
  margin: 0 0 8px;
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.resource-cta h2 {
  margin: 0 0 10px;
  color: #26143f;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.resource-cta p {
  margin: 0;
  max-width: 620px;
  color: #475569;
  line-height: 1.75;
}

.resource-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: #3b235f;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(59, 35, 95, 0.24);
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.resource-btn:hover,
.resource-btn:focus-visible {
  background: #281740;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(59, 35, 95, 0.3);
}

.resource-btn:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.32);
  outline-offset: 3px;
}

/* Tablette */
@media (max-width: 900px) {
  .resource-shell {
    border-radius: 26px;
  }

  .resource-hero {
    min-height: clamp(300px, 42vw, 360px);
    align-items: center;
    justify-content: flex-end;
  }

  .resource-hero__media img {
    object-position: 18% center;
  }

  .resource-hero__content {
    width: min(58%, 520px);
    padding: 34px 30px;
  }

  .resource-hero h1 {
    font-size: clamp(1.8rem, 4.6vw, 2.65rem);
  }

  .resource-lead {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .resource-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .resource-page {
    padding: 18px 12px 48px;
  }

  .resource-shell {
    border-radius: 22px;
  }

  .resource-hero {
    min-height: 360px;
    align-items: flex-end;
    justify-content: flex-start;
  }

  .resource-hero__media img {
    object-position: 16% center;
  }

  .resource-hero::after {
    background:
      linear-gradient(
        180deg,
        rgba(20, 10, 34, 0.05) 0%,
        rgba(20, 10, 34, 0.28) 38%,
        rgba(20, 10, 34, 0.86) 100%
      );
  }

  .resource-hero__content {
    width: 100%;
    margin-left: 0;
    padding: 30px 22px 32px;
  }

  .resource-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.13em;
  }

  .resource-hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 9vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .resource-lead {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .resource-body {
    padding: 28px 22px;
  }

  .resource-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
  }

  .resource-section--intro {
    padding: 22px 20px;
    border-radius: 18px;
  }

  .resource-cta {
    margin: 0 18px 28px;
    padding: 24px 20px;
    border-radius: 22px;
  }

  .resource-btn {
    width: 100%;
  }
}