/* Page téléchargements MP3/PDF — boutique v3 (états + aération) */
:root {
  --dl-blue: #5bd0cb;
  --dl-green: #81a825;
  --dl-accent: #4fbd21;
  --dl-bg: #f4f6f8;
  --dl-border: #dce3ea;
  --dl-text: #1a2330;
  --dl-text-muted: #5c6b7a;
  --dl-max: 880px;
  --dl-radius: 18px;
}

.dl-page,
.dl-hero,
.dl-footer {
  max-width: var(--dl-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.dl-page {
  margin-bottom: 2rem;
  font-family: system-ui, "IBM Plex Sans", "Segoe UI", sans-serif;
  width: 100%;
  color: var(--dl-text);
}
.dl-page,
.dl-page * {
  box-sizing: border-box;
}
.dl-page button {
  margin: 0;
  letter-spacing: 0;
  box-shadow: none;
}

#idl .dl-page,
#idl .dl-acc {
  max-width: 100%;
  box-sizing: border-box;
}

/* Hero */
.dl-hero {
  position: relative;
  margin: 0 auto 2.25rem;
  border-radius: var(--dl-radius);
  overflow: hidden;
  background: linear-gradient(48deg, #6a9e2d 0%, #40b23e 55%, #49c736 100%);
  box-shadow: 0 12px 40px rgba(15, 40, 38, 0.16);
}
.dl-hero-inner {
  padding: 2.25rem 1.75rem 1.85rem;
  text-align: center;
  color: #fff;
}
.dl-hero-title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.dl-hero-flag {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.dl-hero-inner h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.dl-hero-intro {
  margin: 0 auto 1.15rem;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.5;
  opacity: 0.92;
}
.dl-hero-lang label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  opacity: 0.88;
}
.dl-hero-lang select {
  min-width: 240px;
  max-width: 100%;
  height: 2.65rem;
  padding: 0 1.1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--dl-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* Catégories = titres, pas de boîte */
.dl-acc {
  margin: 0 0 1.75rem;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.dl-acc-head {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0 0.15rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  color: var(--dl-text-muted);
  cursor: pointer;
}
.dl-acc-head:hover {
  color: var(--dl-text);
}
/* Legacy : chevrons catégorie / carte retirés */
.dl-chevron,
.dl-course-toggle,
.dl-course-chevron {
  display: none !important;
}
.dl-acc-body {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
}
.dl-acc.is-open .dl-acc-body {
  display: flex;
}

/* Carte */
.dl-course-card {
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(20, 35, 50, 0.05);
}
.dl-course-card.is-open {
  box-shadow: 0 10px 28px rgba(20, 35, 50, 0.08);
  border-color: rgba(79, 189, 33, 0.28);
}
.dl-course-card-main {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.2rem 0;
}
@media (min-width: 560px) {
  .dl-course-card-main {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1.4rem 1.4rem 0;
  }
}
.dl-course-cover-wrap {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
  flex-shrink: 0;
}
@media (min-width: 560px) {
  .dl-course-cover-wrap {
    width: 7rem;
    height: 7rem;
  }
}
.dl-course-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dl-course-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0;
  justify-content: center;
}
.dl-course-top {
  display: block;
}
.dl-course-title {
  /* Annule le h3 global ecoach (padding 12px) qui décale titre / badge */
  margin: 0;
  padding: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  color: var(--dl-text);
}
.dl-course-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--dl-text-muted);
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  background: #e8f5e0;
  color: #2d6a12;
  border: 1px solid #b8e0a0;
}
.dl-badge--free {
  background: #eef1f5;
  color: #5c6b7a;
  border-color: #d5dde5;
}
.dl-course-player {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a7fd4;
  text-decoration: none;
}
.dl-course-player:hover {
  text-decoration: underline;
}

/* Preview */
.dl-preview {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.05rem 1.2rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f6f8fb;
  border: 1px solid #e8eef4;
}
@media (min-width: 560px) {
  .dl-preview {
    margin-left: 1.4rem;
    margin-right: 1.4rem;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}
.dl-preview-copy {
  flex: 0 1 auto;
  min-width: 7rem;
}
.dl-preview-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dl-text-muted);
}
.dl-preview-theme {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dl-text);
}
/* Lecteur compact : MP3 démo bilingue si présent, sinon L1→L2 (petites pistes) */
.dl-mini {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--dl-border);
}
.dl-mini-play {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: var(--dl-accent);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.dl-mini-play:hover {
  filter: brightness(1.06);
}
.dl-mini-play:active {
  transform: scale(0.94);
}
.dl-mini-icon {
  width: 0.85rem;
  height: 0.85rem;
  fill: currentColor;
}
.dl-mini-icon--pause,
.dl-mini[data-preview="playing"] .dl-mini-icon--play {
  display: none;
}
.dl-mini[data-preview="playing"] .dl-mini-icon--pause {
  display: block;
}
.dl-mini-body {
  flex: 1;
  min-width: 0;
}
.dl-mini-exp {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dl-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-mini-sub {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--dl-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-mini-count {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--dl-text-muted);
}
.dl-mini[data-preview-mode="demo-file"] .dl-mini-count {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dl-accent);
}

/* Démo */
.dl-demo-row {
  margin: 0.95rem 1.2rem 0;
}
@media (min-width: 560px) {
  .dl-demo-row {
    margin-left: 1.4rem;
    margin-right: 1.4rem;
  }
}
.dl-demo-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dl-text-muted);
}
.dl-demo-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.dl-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--dl-green);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: #2d6a12;
}
.dl-demo-btn:hover {
  background: #f5faf0;
}
.dl-demo-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--dl-green);
}
.dl-demo-btn.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

/* Bandeaux génération (démo + complets) */
.dl-demo-status,
.dl-full-status {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff9ef;
  border: 1px solid #ebd7a8;
  color: var(--dl-text);
}
.dl-demo-status[hidden],
.dl-full-status[hidden] {
  display: none !important;
}
.dl-full-status {
  margin-top: 0.85rem;
}
.dl-status-msg {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.dl-status-eta {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--dl-text-muted);
}
.dl-status-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.65rem;
  min-height: 2.4rem;
  padding: 0.45rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--dl-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dl-status-cta:hover {
  background: #3da018;
}
.dl-status-cta.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

/* CTA toujours visible */
.dl-cta-strip {
  margin: 1rem 1.2rem 1.2rem;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: #f8faf8;
  border: 1px solid #e4ece0;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 560px) {
  .dl-cta-strip {
    margin: 1.1rem 1.4rem 1.4rem;
    padding: 1.1rem 1.2rem;
  }
}
.dl-gate {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.dl-gate.is-visible {
  display: flex;
}
.dl-gate-msg {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--dl-text);
}
.dl-gate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.5rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--dl-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.dl-gate-cta:hover {
  background: #3da018;
}
.dl-gate.dl-notco .dl-gate-cta {
  background: #1a2330;
}
.dl-gate.dl-notco .dl-gate-cta:hover {
  background: #2a3544;
}

.dl-actions {
  display: none;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  width: 100%;
  min-width: 0;
}
.dl-actions.is-visible {
  display: grid;
}
.dl-course[data-dl-state="guest"] .dl-actions,
.dl-course[data-dl-state="freemium"] .dl-actions {
  display: none !important;
}
.dl-course[data-dl-state="premium"] .dl-actions.is-visible .dl-action-card,
.dl-course[data-dl-state="locked"] .dl-actions.is-visible .dl-action-card {
  cursor: pointer;
}
.dl-action-card.is-pending {
  opacity: 0.85;
}
@media (min-width: 560px) {
  .dl-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dl-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 5.4rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.dl-action-card:hover:not(:disabled):not(.is-loading) {
  border-color: var(--dl-accent);
  box-shadow: none;
}
.dl-action-card:disabled,
.dl-action-card.is-loading {
  opacity: 0.7;
  cursor: wait;
}
.dl-action-label {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--dl-text);
}
.dl-btn-scope {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dl-text-muted);
}
.dl-action-card.is-locked .dl-btn-scope {
  color: #8a97a6;
}
.dl-action-meta {
  font-size: 0.78rem;
  color: var(--dl-text-muted);
}
.dl-action-card svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: var(--dl-green);
}
/* Package complet non couvert : la carte devient un appel Premium cliquable. */
.dl-action-card.is-locked {
  position: relative;
  padding-right: 2.4rem;
  border-style: dashed;
  border-color: #cfd8e2;
  background: #f7f9fb;
}
.dl-action-card.is-locked:hover {
  border-color: var(--dl-accent);
  background: #f2f8ee;
}
.dl-action-card.is-locked .dl-action-label {
  color: var(--dl-text-muted);
}
.dl-action-card.is-locked > svg:not(.dl-action-lock) {
  opacity: 0.45;
}
.dl-action-card .dl-action-lock {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  fill: #9aa7b4;
}
/* Modale player (#dl) — spécificité renforcée vs ecoach / menu-modal */
#dl .dl-page.dl-modal,
.dl-page.dl-modal {
  max-width: 100%;
  margin: 0;
  padding: 0.25rem 0.15rem 0.75rem;
  background: var(--dl-bg);
  border-radius: 12px;
}
#dl .loecsen-menu-modal__body .dl-page.dl-modal {
  background: transparent;
  padding: 0;
}
#dl .dl-course-card {
  box-shadow: none;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  background: #fff;
  overflow: hidden;
}
#dl .dl-course-card-main {
  display: grid !important;
  /* Doit matcher .dl-course-cover-wrap (5.5rem / 7rem ≥560px).
     Avant : colonne figée 5.5rem + vignette 7rem → titre/badge chevauchaient l’illu (~10px). */
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 1.1rem 1.1rem 0;
}
@media (min-width: 560px) {
  #dl .dl-course-card-main {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
  }
}
#dl h3.dl-course-title,
#dl .dl-course-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--dl-text) !important;
}
#dl .dl-course-body {
  gap: 0.35rem;
  padding-top: 0;
  justify-content: center;
}
#dl .dl-course-meta {
  gap: 0.35rem 0.55rem;
}
#dl .dl-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}
#dl .dl-demo-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
#dl .dl-demo-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  width: 100%;
}
#dl .dl-gate {
  display: none !important;
}
#dl .dl-gate.is-visible {
  display: flex !important;
}
#dl .dl-actions {
  display: none !important;
}
#dl .dl-actions.is-visible {
  display: grid !important;
}
#dl .dl-course[data-dl-state="guest"] .dl-actions,
#dl .dl-course[data-dl-state="freemium"] .dl-actions {
  display: none !important;
}
#dl .dl-cta-strip {
  margin: 1rem 0 0;
}

.dl-page-status[hidden],
.dl-page-status {
  display: none;
}

.dl-course-head {
  display: none;
}

/* Footer */
.dl-footer {
  margin: 2.75rem auto 1rem;
  padding: 0 0.15rem 2rem;
}
.dl-breadcrumb {
  margin: 0 auto 1.5rem;
  padding: 0.75rem 0.15rem 0;
  max-width: var(--dl-max);
}
.dl-breadcrumb .breadcrumb {
  margin: 0;
  height: auto;
  text-align: left;
}
.dl-breadcrumb .breadcrumb li,
.dl-breadcrumb .breadcrumb li a {
  color: var(--dl-text-muted, #5c6b7a);
  font-size: 0.88rem;
}
.dl-breadcrumb .breadcrumb li a:hover {
  color: var(--dl-text, #1a2330);
}
.dl-footer-heading {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
}
.dl-footer-explore {
  margin-bottom: 2rem;
}
.dl-footer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 520px) {
  .dl-footer-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.dl-footer-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--dl-border);
  background: #fff;
  text-decoration: none;
  color: var(--dl-text);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(20, 35, 50, 0.04);
}
.dl-footer-card:hover {
  border-color: var(--dl-accent);
  text-decoration: none;
  color: var(--dl-text);
}
.dl-footer-card img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 6px;
  object-fit: cover;
}

/* Formations — liens SEO bas de page (catalogue multi-formations) */
.dl-footer-formations {
  margin-bottom: 2rem;
}
.dl-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .dl-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 800px) {
  .dl-form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.dl-form-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--dl-border);
  background: #fff;
  text-decoration: none;
  color: var(--dl-text);
  box-shadow: 0 2px 8px rgba(20, 35, 50, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dl-form-card:hover {
  border-color: var(--dl-accent);
  box-shadow: 0 6px 16px rgba(20, 35, 50, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--dl-text);
}
.dl-form-card-flag {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  flex-shrink: 0;
}
.dl-form-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
  text-align: start;
}
.dl-form-card-title {
  font-size: 0.92rem;
  font-weight: 700;
}
.dl-form-card-sub {
  font-size: 0.78rem;
  color: var(--dl-text-muted);
}
.dl-footer-langs {
  margin-bottom: 2rem;
}
.dl-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.6rem;
}
.dl-lang-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--dl-border);
  background: #fff;
  text-decoration: none;
  color: var(--dl-text);
  font-size: 0.88rem;
}
.dl-lang-chip:hover {
  background: #f0faf0;
  text-decoration: none;
  color: var(--dl-text);
}
.dl-lang-chip img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}
.dl-footer-help {
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--dl-border);
}
.dl-footer-help-text {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--dl-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dl-footer-help-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a7fd4;
  text-decoration: none;
}
.dl-footer-help-link:hover {
  text-decoration: underline;
}

/* Fiche CMS (lc_card type MP3) — entre hero et catalogue, repliée par défaut */
.dl-fiche {
  position: relative;
  max-width: var(--dl-max);
  margin: 0 auto 1.6rem;
  padding: 0.35rem 1.15rem;
  box-sizing: border-box;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  background: #fff;
  font-family: system-ui, "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--dl-text);
  text-align: left;
}
#idl .dl-fiche {
  max-width: 100%;
}

/* En-tête cliquable — margin h2 du body ne doit PAS s’appliquer ici
   (même spécificité .dl-fiche h2 écrasait margin:0 → texte décalé vers le haut). */
.dl-fiche-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0;
  min-height: 2.75rem;
  box-sizing: border-box;
  cursor: pointer;
  list-style: none;
}
.dl-fiche-head::-webkit-details-marker {
  display: none;
}
.dl-fiche-head::after {
  content: "";
  flex-shrink: 0;
  margin-left: auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--dl-text-muted);
  border-bottom: 2px solid var(--dl-text-muted);
  transform: translateY(-0.12em) rotate(45deg);
  transition: transform 0.18s ease;
}
.dl-fiche[open] .dl-fiche-head::after {
  transform: translateY(0.08em) rotate(-135deg);
}
.dl-fiche-head:hover::after {
  border-color: var(--dl-text);
}
.dl-fiche .dl-fiche-head h2 {
  margin: 0;
  padding: 0;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dl-text);
  text-align: left;
  text-transform: none;
}
.dl-fiche-body {
  padding-bottom: 0.6rem;
}

.dl-fiche-body h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.22rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--dl-text);
  text-align: left;
  text-transform: none;
}
.dl-fiche-body > :first-child {
  margin-top: 0;
}
.dl-fiche.is-pending {
  min-height: 5.2rem;
}
.dl-fiche-pending-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #fff;
  border-radius: inherit;
}
.dl-fiche-pending-loader .dl-page-loader-spinner {
  width: 1.65rem;
  height: 1.65rem;
  border: 3px solid #e3e8ee;
  border-top-color: #11b981;
  border-radius: 50%;
  animation: dlFicheSpin 0.9s linear infinite;
}
@keyframes dlFicheSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
.dl-fiche-pending-loader .dl-page-loader-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dl-text-muted);
}
.dl-fiche.is-error .dl-fiche-pending-loader {
  display: none;
}
.dl-fiche h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.04rem;
  font-weight: 600;
  text-align: left;
}
.dl-fiche p {
  margin: 0 0 0.75rem;
  text-align: left;
}
.dl-fiche ul {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}
.dl-fiche li {
  margin-bottom: 0.3rem;
}
.dl-fiche a {
  color: #1a7fd4;
  text-decoration: none;
}
.dl-fiche a:hover {
  text-decoration: underline;
}
.dl-fiche .note,
.dl-fiche .rule,
.dl-fiche .tip {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border-left: 4px solid var(--dl-border);
  background: #fff;
  font-size: 0.95rem;
}
.dl-fiche .note {
  border-left-color: #e0574a;
  background: #fdf6f5;
}
.dl-fiche .rule {
  border-left-color: #1a7fd4;
  background: #f4f8fd;
}
.dl-fiche .tip {
  border-left-color: #e2a53a;
  background: #fdf9f1;
}

@media (max-width: 640px) {
  .dl-fiche {
    font-size: 0.96rem;
  }
  .dl-fiche .dl-fiche-head h2,
  .dl-fiche-body h2 {
    font-size: 1.12rem;
  }
}

/* Loader de la modale Telechargement : un seul anneau, sans halo ni degrade.
   Les autres modales du menu gardent l'animation a cinq cercles. Les
   !important repondent a ceux de menu-modal.css sur border-*. */
#dl.loecsen-menu-modal .loadContainer--modal {
  --loaderSize: 42px;
  --border-thickness: 3px;
}
#dl.loecsen-menu-modal .loadContainer--modal .loadInner {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: none;
}
#dl.loecsen-menu-modal .loadContainer--modal .loadCircle:not(:first-of-type) {
  display: none;
}
#dl.loecsen-menu-modal .loadContainer--modal .loadCircle:first-of-type {
  transform: none;
}
#dl.loecsen-menu-modal .loadContainer--modal .loadCircle > .loadCircleInner {
  border: 3px solid #e3e8ee !important;
  border-top-color: #11b981 !important;
  box-shadow: none;
  background-image: none;
  animation: dlModalSpin 1s linear infinite;
}
@keyframes dlModalSpin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Popup Version audio — MP3 par thème */
body.dl-audio-popup-open {
  overflow: hidden;
}
.dl-audio-popup {
  position: fixed;
  inset: 0;
  /* Au-dessus de .loecsen-menu-modal (100050/100051) */
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.dl-audio-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 48, 0.45);
}
.dl-audio-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius);
  box-shadow: 0 18px 48px rgba(26, 35, 48, 0.18);
  padding: 1.15rem 1.2rem 1.25rem;
}
.dl-audio-popup__head {
  position: relative;
  padding-right: 2.2rem;
  margin-bottom: 1rem;
}
.dl-audio-popup__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dl-text);
}
.dl-audio-popup__sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--dl-text-muted);
}
.dl-audio-popup__close {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dl-text-muted);
  cursor: pointer;
}
.dl-audio-popup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 560px) {
  .dl-audio-popup__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dl-audio-theme {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 4.2rem;
  padding: 0.75rem 0.85rem 0.75rem 2.35rem;
  border: 1px solid var(--dl-border);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--dl-text);
}
.dl-audio-theme:hover {
  border-color: #b7c6d4;
  background: #fafbfc;
}
.dl-audio-theme__dl {
  position: absolute;
  left: 0.7rem;
  top: 0.85rem;
  width: 1.15rem;
  height: 1.15rem;
  display: block;
  flex-shrink: 0;
  color: #c5ced8;
  pointer-events: none;
}
.dl-audio-theme.is-ready .dl-audio-theme__dl {
  color: var(--dl-accent);
}
.dl-audio-theme.is-building .dl-audio-theme__dl {
  color: #c5ced8;
}
.dl-audio-theme__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.dl-audio-theme__status {
  font-size: 0.78rem;
  color: var(--dl-text-muted);
  min-height: 1em;
}
.dl-audio-theme__progress {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e6ecf1;
  overflow: hidden;
}
.dl-audio-theme__progress[hidden] {
  display: none !important;
}
.dl-audio-theme__bar {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: var(--dl-accent);
  animation: dlAudioIndeterminate 1.2s ease-in-out infinite;
}
@keyframes dlAudioIndeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.dl-audio-theme.is-building {
  cursor: wait;
  opacity: 0.92;
}
