:root {
  --dsa-pink: #fde6f1;
  --dsa-pink-soft: #fff4f9;
  --dsa-purple: #bd62b8;
  --dsa-purple-dark: #93458d;
  --dsa-orange: #ff9300;
  --dsa-blue: #9dd8f7;
  --dsa-text: #171018;
  --dsa-muted: #5f5561;
  --dsa-white: #ffffff;
  --dsa-shadow: 0 18px 45px rgba(33, 18, 33, 0.12);
}

.dsa-ressources,
.dsa-ressources * {
  box-sizing: border-box;
}

.dsa-ressources {
  width: 100%;
  color: var(--dsa-text);
  font-family: inherit;
  overflow: hidden;
}

.dsa-section {
  position: relative;
  padding: 70px 20px;
}

.dsa-section::before,
.dsa-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.dsa-section-audio {
  background: var(--dsa-pink);
}

.dsa-section-audio::before {
  width: 280px;
  height: 280px;
  left: -110px;
  top: -90px;
  border-radius: 50%;
  opacity: 0.55;
  background:
    repeating-radial-gradient(circle at 62% 50%, transparent 0 13px, rgba(255, 255, 255, 0.95) 14px 17px, transparent 18px 26px);
}

.dsa-section-audio::after {
  width: 250px;
  height: 250px;
  right: -90px;
  bottom: -80px;
  border-radius: 50%;
  opacity: 0.55;
  background:
    repeating-radial-gradient(circle at 45% 45%, transparent 0 13px, rgba(255, 255, 255, 0.95) 14px 17px, transparent 18px 26px);
}

.dsa-section-pdf {
  background: #fff;
}

.dsa-section-pdf::before {
  width: 300px;
  height: 300px;
  left: -150px;
  bottom: 40px;
  border-radius: 50%;
  background: var(--dsa-orange);
  opacity: 0.92;
}

.dsa-section-pdf::after {
  width: 380px;
  height: 220px;
  left: -150px;
  bottom: 60px;
  opacity: 0.65;
  background: repeating-linear-gradient(14deg, transparent 0 14px, rgba(157, 216, 247, 0.95) 15px 18px, transparent 19px 28px);
  transform: rotate(-6deg);
}

.dsa-section__heading,
.dsa-slider-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.dsa-section__heading {
  text-align: center;
  margin-bottom: 34px;
}

.dsa-eyebrow {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  color: var(--dsa-text);
}

.dsa-section__heading h2 {
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  color: var(--dsa-text);
}

.dsa-section__heading > p:last-child {
  max-width: 780px;
  margin: 0 auto;
  color: var(--dsa-muted);
  font-size: 17px;
  line-height: 1.7;
}

.dsa-slider-wrap {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
}

.dsa-slider {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--dsa-purple) rgba(189, 98, 184, 0.18);
}

.dsa-slider::-webkit-scrollbar {
  height: 8px;
}

.dsa-slider::-webkit-scrollbar-track {
  background: rgba(189, 98, 184, 0.18);
  border-radius: 20px;
}

.dsa-slider::-webkit-scrollbar-thumb {
  background: var(--dsa-purple);
  border-radius: 20px;
}

.dsa-slider-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--dsa-purple);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(189, 98, 184, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.dsa-slider-btn:hover,
.dsa-slider-btn:focus-visible {
  background: var(--dsa-purple-dark);
  transform: translateY(-2px);
  outline: none;
}

.dsa-card {
  position: relative;
  flex: 0 0 min(360px, 85vw);
  min-height: 330px;
  padding: 30px 28px;
  border-radius: 0;
  scroll-snap-align: start;
  background: var(--dsa-pink);
  box-shadow: var(--dsa-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dsa-section-audio .dsa-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.dsa-card__decor {
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--dsa-blue);
  opacity: 0.48;
}

.dsa-card__decor::after {
  content: "";
  position: absolute;
  left: -38px;
  bottom: -30px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.76);
  background: repeating-radial-gradient(circle at 35% 35%, transparent 0 8px, rgba(255, 255, 255, 0.72) 9px 11px, transparent 12px 18px);
}

.dsa-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.dsa-pill,
.dsa-duration {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.dsa-pill {
  background: var(--dsa-orange);
  color: #fff;
}

.dsa-pill-pdf {
  background: var(--dsa-purple);
}

.dsa-duration {
  background: rgba(189, 98, 184, 0.12);
  color: var(--dsa-purple-dark);
}

.dsa-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: 27px;
  line-height: 1.12;
  color: var(--dsa-text);
}

.dsa-card__text {
  position: relative;
  z-index: 1;
  color: var(--dsa-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 22px;
}

.dsa-card__text p {
  margin: 0 0 10px;
}

.dsa-audio-player {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  accent-color: var(--dsa-purple);
}

.dsa-open-pdf {
  position: relative;
  z-index: 1;
  margin-top: auto;
  align-self: flex-start;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--dsa-purple);
  color: #fff;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.dsa-open-pdf:hover,
.dsa-open-pdf:focus-visible {
  background: var(--dsa-purple-dark);
  transform: translateY(-1px);
  outline: none;
}

.dsa-missing,
.dsa-empty-admin {
  color: var(--dsa-muted);
  font-style: italic;
}

.dsa-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 24px;
}

.dsa-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dsa-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 18, 0.72);
  backdrop-filter: blur(3px);
}

.dsa-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  height: min(88vh, 820px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 90px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dsa-modal__header {
  padding: 22px 64px 18px 28px;
  background: var(--dsa-pink);
}

.dsa-modal__header h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.dsa-modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--dsa-purple);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.dsa-pdf-frame {
  width: 100%;
  flex: 1 1 auto;
  border: 0;
  background: #f7f7f7;
}

.dsa-pdf-link {
  margin: 0;
  padding: 10px 22px 14px;
  text-align: right;
  font-size: 14px;
}

.dsa-pdf-link a {
  color: var(--dsa-purple-dark);
  font-weight: 700;
}

.dsa-modal__text {
  padding: 28px;
  overflow: auto;
  line-height: 1.7;
}

body.dsa-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .dsa-section {
    padding: 54px 16px;
  }

  .dsa-slider-wrap {
    grid-template-columns: 1fr;
  }

  .dsa-slider-btn {
    display: none;
  }

  .dsa-card {
    flex-basis: min(320px, 82vw);
    min-height: 310px;
  }
}

@media (max-width: 600px) {
  .dsa-section__heading {
    text-align: left;
  }

  .dsa-section__heading > p:last-child {
    margin-left: 0;
  }

  .dsa-card {
    padding: 24px 22px;
  }

  .dsa-modal {
    padding: 12px;
  }

  .dsa-modal__dialog {
    height: 92vh;
    border-radius: 14px;
  }

  .dsa-modal__header {
    padding: 18px 58px 16px 20px;
  }
}
