/**
 * Phase F étape 4 — Design front premium (additif, scope .cdl-archive-v4)
 */

.cdl-archive-v4 {
  max-width: 100%;
  box-sizing: border-box;
}
.cdl-archive-v4 *,
.cdl-archive-v4 *::before,
.cdl-archive-v4 *::after {
  box-sizing: inherit;
}

:root {
  --cdl-navy: #1a2f4a;
  --cdl-navy-mid: #2c4a6e;
  --cdl-rose: #d94a7f;
  --cdl-rose-soft: #f8e8ef;
  --cdl-gold: #c9a227;
  --cdl-surface: #ffffff;
  --cdl-surface-muted: #f4f6f9;
  --cdl-border: rgba(26, 47, 74, 0.1);
  --cdl-text: #1f2933;
  --cdl-text-muted: #5c6b7a;
  --cdl-radius: 14px;
  --cdl-radius-sm: 10px;
  --cdl-shadow: 0 8px 28px rgba(26, 47, 74, 0.08);
  --cdl-shadow-hover: 0 14px 36px rgba(26, 47, 74, 0.14);
  --cdl-focus: #d94a7f;
}

.cdl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Boutons */
.cdl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.cdl-btn:focus-visible {
  outline: 2px solid var(--cdl-focus);
  outline-offset: 2px;
}
.cdl-btn--primary {
  background: linear-gradient(135deg, var(--cdl-rose) 0%, #c43d6f 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217, 74, 127, 0.35);
}
.cdl-btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 74, 127, 0.4);
}
.cdl-btn--secondary {
  background: var(--cdl-surface);
  color: var(--cdl-navy);
  border-color: var(--cdl-border);
}
.cdl-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cdl-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Hero V4 */
.cdl-archive-v4 .cdl-hero--v4 {
  text-align: left;
  padding: 0;
  margin-bottom: 1.25rem;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: inherit;
}
.cdl-archive-v4 .cdl-hero__inner {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: calc(var(--cdl-radius) + 4px);
  background: linear-gradient(135deg, var(--cdl-navy) 0%, var(--cdl-navy-mid) 55%, #3d5f82 100%);
  color: #fff;
  box-shadow: var(--cdl-shadow);
  min-height: clamp(11rem, 28vw, 15rem);
}

.cdl-archive-v4 .cdl-hero--library .cdl-hero__inner--library-cover {
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  aspect-ratio: 1400 / 560;
  max-height: 22rem;
}

.cdl-archive-v4 .cdl-hero--library .cdl-hero__inner--library-cover:not(.cdl-hero__inner--has-cover) {
  background-image: linear-gradient(135deg, var(--cdl-navy) 0%, var(--cdl-navy-mid) 45%, #5a3d6e 100%);
}

.cdl-archive-v4 .cdl-hero--library .cdl-hero__inner--has-cover .cdl-hero__cover-overlay {
  background: linear-gradient(
    105deg,
    rgba(26, 47, 74, 0.92) 0%,
    rgba(26, 47, 74, 0.78) 42%,
    rgba(26, 47, 74, 0.35) 72%,
    rgba(26, 47, 74, 0.15) 100%
  );
}
.cdl-archive-v4 .cdl-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.cdl-archive-v4 .cdl-hero__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  color: #fff;
  line-height: 1.15;
}
.cdl-archive-v4 .cdl-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.55;
  opacity: 0.92;
}
.cdl-archive-v4 .cdl-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-archive-v4 .cdl-hero__stat {
  flex: 1 1 100px;
  min-width: 90px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--cdl-radius-sm);
  backdrop-filter: blur(4px);
}
.cdl-archive-v4 .cdl-hero__stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}
.cdl-archive-v4 .cdl-hero__stat-label {
  font-size: 0.78rem;
  opacity: 0.88;
}
.cdl-archive-v4 .cdl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Style visual — Son Cubano (Lot A) */
.cdl-archive-v4 .cdl-hero--v4[data-cdl-style="son-cubano"] .cdl-hero__inner:not(.cdl-hero__inner--has-cover) {
  background: linear-gradient(135deg, #5c3d1e 0%, #9a6b3a 48%, #7a2e28 100%);
}
.cdl-archive-v4 .cdl-hero__inner--has-cover {
  background-size: cover;
  background-position: center;
  position: relative;
}
.cdl-archive-v4 .cdl-hero__cover-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(92, 61, 30, 0.82) 0%,
    rgba(154, 107, 58, 0.72) 45%,
    rgba(122, 46, 40, 0.78) 100%
  );
  pointer-events: none;
}
.cdl-archive-v4 .cdl-hero__inner--has-cover .cdl-hero__copy,
.cdl-archive-v4 .cdl-hero__inner--has-cover .cdl-hero__stats,
.cdl-archive-v4 .cdl-hero__inner--has-cover .cdl-hero__actions {
  position: relative;
  z-index: 1;
}
.cdl-archive-v4 .cdl-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.cdl-archive-v4 .cdl-hero__style-icon {
  display: inline-block;
  flex-shrink: 0;
  color: #fff;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.cdl-style-chip--son-cubano {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cdl-style-chip--son-cubano.cdl-style-chip--active {
  background: linear-gradient(135deg, #5c3d1e 0%, #9a6b3a 55%, #7a2e28 100%);
  border-color: #9a6b3a;
}
.cdl-style-chip__icon {
  display: none !important;
}
.cdl-archive[data-cdl-active-style="son-cubano"] .cdl-explorer-presets__link.is-active {
  border-color: #9a6b3a;
  background: rgba(154, 107, 58, 0.12);
}
.cdl-archive[data-cdl-active-style="son-cubano"] .cdl-smart-path__hub-card {
  border-left: 3px solid #c0392b;
}

/* Style visual — Tango argentin (V5) */
.cdl-archive-v4 .cdl-hero--v4[data-cdl-style="tango-argentin"] .cdl-hero__inner:not(.cdl-hero__inner--has-cover) {
  background: linear-gradient(135deg, #1a0a12 0%, #3d1528 42%, #5c2040 68%, #c9a227 100%);
}
.cdl-archive-v4 .cdl-hero--v4[data-cdl-style="tango-argentin"] .cdl-hero__inner--has-cover .cdl-hero__cover-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 10, 18, 0.9) 0%,
    rgba(61, 21, 40, 0.82) 45%,
    rgba(92, 32, 64, 0.72) 70%,
    rgba(201, 162, 39, 0.45) 100%
  );
}
.cdl-style-chip--tango-argentin.cdl-style-chip--active {
  background: linear-gradient(135deg, #1a0a12 0%, #3d1528 55%, #c9a227 100%);
  border-color: #c9a227;
}
.cdl-archive[data-cdl-active-style="tango-argentin"] .cdl-explorer-presets__link.is-active {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.12);
}

/* Style visual — Afro-Cubain (V8) */
.cdl-archive-v4 .cdl-hero--v4[data-cdl-style="afro-cubain"] .cdl-hero__inner:not(.cdl-hero__inner--has-cover) {
  background: linear-gradient(135deg, #1a0a0a 0%, #6b1f1f 38%, #b85c2a 68%, #c9a227 100%);
}
.cdl-archive-v4 .cdl-hero--v4[data-cdl-style="afro-cubain"] .cdl-hero__inner--has-cover .cdl-hero__cover-overlay {
  background: linear-gradient(
    135deg,
    rgba(26, 10, 10, 0.88) 0%,
    rgba(107, 31, 31, 0.78) 42%,
    rgba(184, 92, 42, 0.68) 72%,
    rgba(201, 162, 39, 0.55) 100%
  );
}
.cdl-style-chip--afro-cubain {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cdl-style-chip--afro-cubain.cdl-style-chip--active {
  background: linear-gradient(135deg, #1a0a0a 0%, #6b1f1f 45%, #b85c2a 75%, #c9a227 100%);
  border-color: #b85c2a;
}
.cdl-style-chip--afro-cubain .cdl-style-chip__icon {
  color: #c9a227;
}
.cdl-archive[data-cdl-active-style="afro-cubain"] .cdl-explorer-presets__link.is-active {
  border-color: #b85c2a;
  background: rgba(107, 31, 31, 0.12);
}
.cdl-archive[data-cdl-active-style="afro-cubain"] .cdl-smart-path__hub-card {
  border-left: 3px solid #c9a227;
}
.cdl-afro-family-groups {
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: var(--cdl-surface);
  border: 1px solid var(--cdl-border);
  border-radius: var(--cdl-radius);
  box-shadow: 0 2px 10px rgba(26, 10, 10, 0.04);
}
@media (min-width: 720px) {
  .cdl-afro-family-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cdl-afro-family-groups__title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b1f1f;
}
.cdl-afro-family-groups__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdl-afro-family-groups__link {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 31, 31, 0.25);
  background: rgba(201, 162, 39, 0.08);
  color: inherit;
  text-decoration: none;
}
.cdl-afro-family-groups__link:hover,
.cdl-afro-family-groups__link:focus-visible {
  border-color: #b85c2a;
  background: rgba(107, 31, 31, 0.1);
}

/* Afro V9 — bloc culturel archive */
.cdl-afro-cultural-intro {
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(145deg, rgba(26, 10, 10, 0.04) 0%, rgba(201, 162, 39, 0.08) 100%);
  border: 1px solid rgba(107, 31, 31, 0.2);
  border-radius: var(--cdl-radius);
}
.cdl-afro-cultural-intro__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #6b1f1f;
}
.cdl-afro-cultural-intro__lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cdl-afro-cultural-intro__pages,
.cdl-afro-cultural-intro__topics,
.cdl-afro-cultural-intro__mesh-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdl-afro-cultural-intro__link,
.cdl-afro-cultural-intro__pill {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 31, 31, 0.22);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.65);
}
.cdl-afro-cultural-intro__link--hub {
  font-weight: 600;
  border-color: #b85c2a;
}
.cdl-afro-cultural-intro__topics-label,
.cdl-afro-cultural-intro__mesh-label {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b1f1f;
}
.cdl-afro-orisha-mini {
  margin-top: 0.85rem;
}
.cdl-afro-orisha-mini__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: #6b1f1f;
}
.cdl-afro-orisha-mini__grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.65rem;
}
@media (min-width: 640px) {
  .cdl-afro-orisha-mini__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .cdl-afro-orisha-mini__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.cdl-afro-orisha-mini__card {
  padding: 0.65rem 0.75rem;
  background: var(--cdl-surface);
  border: 1px solid var(--cdl-border);
  border-radius: calc(var(--cdl-radius) - 2px);
  font-size: 0.82rem;
}
.cdl-afro-orisha-mini__name {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.cdl-afro-orisha-mini__meta {
  margin: 0 0 0.5rem;
}
.cdl-afro-orisha-mini__meta dt {
  font-weight: 600;
  margin-top: 0.25rem;
}
.cdl-afro-orisha-mini__meta dd {
  margin: 0.1rem 0 0;
  line-height: 1.4;
}
.cdl-afro-orisha-mini__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
.cdl-afro-orisha-mini__btn {
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-decoration: none;
  background: #6b1f1f;
  color: #fff;
}
.cdl-afro-orisha-mini__btn--ghost {
  background: transparent;
  color: #6b1f1f;
  border: 1px solid rgba(107, 31, 31, 0.35);
}
.cdl-afro-orisha-mini__caution {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* Filtres V4 */
.cdl-archive-v4 .cdl-filters--v4 {
  background: var(--cdl-surface);
  border: 1px solid var(--cdl-border);
  border-radius: var(--cdl-radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(26, 47, 74, 0.04);
}
.cdl-archive-v4 .cdl-filters__form--primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.cdl-archive-v4 .cdl-filters__label--search {
  flex: 1 1 220px;
  margin: 0;
}
.cdl-archive-v4 .cdl-filters__search {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--cdl-border);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--cdl-surface-muted);
}
.cdl-archive-v4 .cdl-filters__search:focus {
  outline: none;
  border-color: var(--cdl-rose);
  box-shadow: 0 0 0 3px rgba(217, 74, 127, 0.2);
  background: #fff;
}
.cdl-archive-v4 .cdl-filters__reset {
  font-size: 0.85rem;
  color: var(--cdl-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cdl-archive-v4 .cdl-filters__video-toggle {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--cdl-border);
}
.cdl-archive-v4 .cdl-toggle-video {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--cdl-text);
  cursor: pointer;
  user-select: none;
}
.cdl-archive-v4 .cdl-toggle-video input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--cdl-rose);
}
.cdl-archive-v4 .cdl-archive__count-note {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--cdl-text-muted);
}
.cdl-archive-v4 .cdl-filters__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--cdl-border);
}
.cdl-archive-v4 .cdl-level-chip {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cdl-navy);
  background: var(--cdl-surface-muted);
  border: 1px solid var(--cdl-border);
}
.cdl-archive-v4 .cdl-level-chip:hover {
  border-color: var(--cdl-navy-mid);
  color: var(--cdl-navy);
}
.cdl-archive-v4 .cdl-level-chip--active {
  background: var(--cdl-navy);
  border-color: var(--cdl-navy);
  color: #fff;
}
.cdl-archive-v4 .cdl-filters__configurations {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--cdl-border);
}
.cdl-archive-v4 .cdl-filters__configurations-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cdl-navy-mid);
  margin-right: 0.25rem;
}
.cdl-archive-v4 .cdl-config-chip {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cdl-navy);
  background: var(--cdl-surface-muted);
  border: 1px solid var(--cdl-border);
}
.cdl-archive-v4 .cdl-config-chip:hover {
  border-color: var(--cdl-navy-mid);
  color: var(--cdl-navy);
}
.cdl-archive-v4 .cdl-config-chip--active {
  background: var(--cdl-accent, #c45c26);
  border-color: var(--cdl-accent, #c45c26);
  color: #fff;
}
.cdl-archive-v4 .cdl-filters__advanced {
  margin-top: 0.5rem;
}
.cdl-archive-v4 .cdl-filters__advanced-toggle {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cdl-navy-mid);
  list-style: none;
}
.cdl-archive-v4 .cdl-filters__advanced-toggle::-webkit-details-marker {
  display: none;
}
.cdl-archive-v4 .cdl-filters__form--advanced {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--cdl-border);
}

/* Chips styles — resserrer */
.cdl-archive-v4 .cdl-archive-styles--chips {
  margin-bottom: 0.75rem;
}

/* Grille cartes */
.cdl-archive-v4 .cdl-figure-list {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.cdl-archive-v4 .cdl-figure-card--v4 {
  border-radius: var(--cdl-radius);
  border-color: var(--cdl-border);
  box-shadow: var(--cdl-shadow);
}
@media (hover: hover) {
  .cdl-archive-v4 .cdl-figure-card--v4:hover {
    transform: translateY(-3px);
    box-shadow: var(--cdl-shadow-hover);
    border-color: rgba(217, 74, 127, 0.25);
  }
  .cdl-archive-v4 .cdl-figure-card--v4:hover .cdl-figure-card__thumb {
    transform: scale(1.04);
  }
}
.cdl-archive-v4 .cdl-figure-card__link {
  display: block;
  padding: 0;
  text-decoration: none;
  color: var(--cdl-text);
}
.cdl-archive-v4 .cdl-figure-card__thumb-wrap {
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: var(--cdl-radius) var(--cdl-radius) 0 0;
}
.cdl-archive-v4 .cdl-figure-card__thumb-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.cdl-archive-v4 .cdl-figure-card__thumb-badges .cdl-figure-card__badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.cdl-archive-v4 .cdl-figure-card__badge--premium {
  background: rgba(201, 162, 39, 0.95);
  color: #1a1a1a;
}
.cdl-archive-v4 .cdl-figure-card__badge--mastered {
  background: rgba(30, 126, 52, 0.92);
  color: #fff;
}
.cdl-archive-v4 .cdl-figure-card__badge--playlist {
  background: rgba(44, 74, 110, 0.9);
  color: #fff;
}
.cdl-archive-v4 .cdl-figure-card__play--v5 {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--cdl-rose);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.cdl-archive-v4 .cdl-figure-card__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent currentColor;
}
.cdl-archive-v4 .cdl-figure-card__play-label {
  display: none;
}
.cdl-archive-v4 .cdl-figure-card__lock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 47, 74, 0.35) 100%);
  pointer-events: none;
}
.cdl-archive-v4 .cdl-figure-card--premium-locked .cdl-figure-card__thumb {
  filter: saturate(0.85);
}
.cdl-archive-v4 .cdl-figure-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0.75rem 0.85rem 0.25rem;
}
.cdl-archive-v4 .cdl-figure-card__subtitle,
.cdl-archive-v4 .cdl-figure-card__summary {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
  color: var(--cdl-text-muted);
  font-size: 0.85rem;
}
.cdl-archive-v4 .cdl-figure-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0.85rem 0.65rem;
}
.cdl-archive-v4 .cdl-figure-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.cdl-archive-v4 .cdl-figure-card__tag--style {
  background: #e8eef5;
  color: var(--cdl-navy);
}
.cdl-archive-v4 .cdl-figure-card__tag--level {
  background: var(--cdl-rose-soft);
  color: #9b2d55;
}
.cdl-archive-v4 .cdl-figure-card__tag--type {
  background: #eef2f6;
  color: var(--cdl-text-muted);
}
.cdl-archive-v4 .cdl-figure-card__badges--footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.85rem;
}
.cdl-archive-v4 .cdl-figure-card__fav {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--cdl-border);
  box-shadow: var(--cdl-shadow);
}
.cdl-archive-v4 .cdl-figure-card--mastered {
  box-shadow: inset 0 0 0 2px rgba(30, 126, 52, 0.35), var(--cdl-shadow);
}

/* Modal V4 */
.cdl-modal--v4 .cdl-modal__box {
  max-width: min(720px, 96vw);
  border-radius: calc(var(--cdl-radius) + 2px);
}
.cdl-modal--v4 .cdl-modal__close {
  background: var(--cdl-surface-muted);
  font-size: 1.35rem;
}
.cdl-modal--v4 .cdl-modal__close:focus-visible {
  outline: 2px solid var(--cdl-focus);
  outline-offset: 2px;
}
.cdl-modal__content--v4 .cdl-modal__title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  color: var(--cdl-navy);
}
.cdl-modal__premium-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff8e8 0%, var(--cdl-rose-soft) 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--cdl-radius-sm);
}
.cdl-modal__premium-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cdl-text);
}
.cdl-modal__meta {
  gap: 0.4rem;
}
.cdl-modal__meta-item {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--cdl-surface-muted);
  color: var(--cdl-navy);
}
.cdl-modal__video--v5 .cdl-modal__video-embed {
  border-radius: var(--cdl-radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
}
.cdl-modal__video--v5 .cdl-modal__video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.cdl-modal__video-meta {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--cdl-text-muted);
}
.cdl-modal__section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cdl-border);
}
.cdl-modal__section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cdl-navy);
  margin: 0 0 0.5rem;
}
.cdl-modal__prose {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--cdl-text);
}
.cdl-modal__section--locked {
  opacity: 0.85;
  background: var(--cdl-surface-muted);
  padding: 0.75rem;
  border-radius: var(--cdl-radius-sm);
  border-top: none;
}
.cdl-modal__locked-teaser {
  margin: 0;
  font-size: 0.88rem;
  color: var(--cdl-text-muted);
}
.cdl-modal__learning {
  background: var(--cdl-surface-muted);
  border-radius: var(--cdl-radius-sm);
  padding: 1rem;
  border-top: none;
}

/* LOT 5 — badges pédagogiques rueda */
.cdl-pedagogy-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  margin: 0.5rem 0 0.25rem;
}
.cdl-pedagogy-pills--card {
  margin: 0.35rem 0 0;
}
.cdl-pedagogy-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  background: var(--cdl-surface-muted, #f0f3f8);
  color: var(--cdl-navy, #1a2b4a);
}
.cdl-pedagogy-pill--config.cdl-pedagogy-pill--rueda {
  background: #e8f4f0;
  color: #0d5c45;
}
.cdl-pedagogy-pill--family {
  background: #eef0ff;
}
.cdl-rueda-sign {
  margin: 0.85rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #0d5c45;
  background: #f4faf7;
  border-radius: 0 var(--cdl-radius-sm, 6px) var(--cdl-radius-sm, 6px) 0;
}
.cdl-rueda-sign__title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0d5c45;
}
.cdl-rueda-sign__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--cdl-text, #333);
}
.cdl-light-relations {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--cdl-surface-muted, #f7f8fb);
  border-radius: var(--cdl-radius-sm, 6px);
}
.cdl-light-relations__title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.cdl-light-relations__list {
  margin: 0;
  font-size: 0.88rem;
}
.cdl-light-relations__list dt {
  font-weight: 600;
  margin-top: 0.45rem;
}
.cdl-light-relations__list dt:first-child {
  margin-top: 0;
}
.cdl-light-relations__list dd {
  margin: 0.15rem 0 0;
}
.cdl-light-relations__links {
  margin: 0;
  padding-left: 1.1rem;
}

.cdl-rel-block__text--raw {
  color: var(--cdl-text-muted, #555);
  font-style: italic;
}

/* LOT 9 — navigation relationnelle */
.cdl-family-cloud__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-family-cloud__link {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--cdl-surface-muted, #f3f4f6);
  color: inherit;
}
.cdl-family-cloud__link:hover,
.cdl-family-cloud__link:focus-visible {
  background: var(--cdl-accent-soft, #e8eef7);
}
.cdl-family-cloud__count {
  opacity: 0.75;
  font-size: 0.8em;
}

/* LOT 11 — Explorer Salsa / Rueda */
.cdl-explorer-presets {
  margin: 0 0 1rem;
}
.cdl-explorer-presets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-explorer-presets__link {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--cdl-surface-muted, #f3f4f6);
  color: inherit;
  border: 1px solid transparent;
}
.cdl-explorer-presets__link.is-active,
.cdl-explorer-presets__link:hover,
.cdl-explorer-presets__link:focus-visible {
  border-color: var(--cdl-accent, #3858e9);
  background: var(--cdl-accent-soft, #e8eef7);
}
.cdl-explorer-facets {
  margin: 0.5rem 0 1rem;
}
.cdl-explorer-facets__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.cdl-explorer-facets__label {
  opacity: 0.8;
  margin-right: 0.25rem;
}
.cdl-archive--rueda .cdl-config-chip--active,
.cdl-archive--rueda .cdl-explorer-presets__link.is-active {
  background: #1a4d3a;
  color: #fff;
  border-color: #1a4d3a;
}
.cdl-figure-card--explorer .cdl-pedagogy-pills--card {
  margin-top: 0.35rem;
}
.cdl-figure-card__rueda-sign {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
}
.cdl-figure-card__rueda-sign-label {
  font-weight: 600;
  margin-right: 0.25rem;
}
.cdl-figure-card__badge--rueda-call {
  background: #1a4d3a;
  color: #fff;
}
.cdl-figure-card__badge--video-status--validated {
  background: #e6f4ea;
  color: #1e6b3a;
}
.cdl-figure-card__badge--video-status--to_review {
  background: #fff4e5;
  color: #9a5b00;
}
.cdl-figure-card__badge--video-status--broken {
  background: #fdecea;
  color: #b42318;
}
.cdl-figure-card__badge--video-status--missing {
  background: #f3f4f6;
  color: #555;
}
.cdl-figure-card__nearby {
  margin: 0.35rem 0 0;
  padding: 0 0.75rem 0.75rem;
}
.cdl-figure-card__nearby-link {
  font-size: 0.8rem;
}
.cdl-archive--rueda .cdl-figure-card--rueda {
  border-left: 3px solid #1a4d3a;
}

.cdl-move-relations {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--cdl-border, #e2e6ef);
}
.cdl-move-relations--modal {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}
.cdl-rel-block {
  margin-bottom: 1.1rem;
}
.cdl-rel-block__title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cdl-navy, #1a2b4a);
}
.cdl-rel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cdl-move-relations--modal .cdl-rel-cards {
  grid-template-columns: 1fr;
}
.cdl-rel-card {
  margin: 0;
}
.cdl-rel-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--cdl-border, #e2e6ef);
  border-radius: var(--cdl-radius-sm, 6px);
  background: var(--cdl-surface-muted, #f7f8fb);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cdl-rel-card__link:hover,
.cdl-rel-card__link:focus-visible {
  border-color: #0d5c45;
  background: #f4faf7;
}
.cdl-rel-card__title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cdl-navy, #1a2b4a);
}
.cdl-rel-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.cdl-rel-card__badge {
  font-size: 0.65rem;
  padding: 0.12rem 0.4rem;
}

.cdl-move-relations__intro {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--cdl-muted, #5a6478);
  margin: 0 0 1rem;
}

.cdl-explorer-intro {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--cdl-surface, #f6f8fb);
  border-radius: 10px;
  border: 1px solid var(--cdl-border, #e2e8f0);
}
.cdl-explorer-intro__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cdl-navy, #1a2b4a);
}
.cdl-explorer-intro__lead {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.cdl-explorer-intro__highlights a {
  font-weight: 600;
}

.cdl-style-crosslinks {
  margin: 0 0 1.35rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid var(--cdl-border, #dbe3ee);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.cdl-style-crosslinks__title {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--cdl-navy, #1a2b4a);
}
.cdl-style-crosslinks__text {
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--cdl-muted, #5a6478);
  max-width: 72ch;
}
.cdl-style-crosslinks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-style-crosslinks__link {
  display: inline-block;
  padding: 0.38rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--cdl-border, #d8dee8);
  background: #fff;
  color: var(--cdl-navy, #1a2b4a);
  text-decoration: none;
}
.cdl-style-crosslinks__link--primary {
  border-color: #c7d7ef;
  background: #eef4fc;
}
.cdl-style-crosslinks__link:hover,
.cdl-style-crosslinks__link:focus-visible {
  border-color: var(--cdl-accent, #2f6fed);
  color: var(--cdl-accent, #2f6fed);
}
.cdl-style-crosslinks--musicality {
  margin: 0 0 1.25rem;
}

.cdl-explorer-shortcuts {
  margin: 0 0 1.25rem;
}
.cdl-explorer-shortcuts__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cdl-muted, #5a6478);
}
.cdl-explorer-shortcuts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-explorer-shortcuts__link {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--cdl-border, #d8dee8);
  background: #fff;
  color: var(--cdl-navy, #1a2b4a);
  text-decoration: none;
}
.cdl-explorer-shortcuts__link.is-active,
.cdl-explorer-shortcuts__link:hover,
.cdl-explorer-shortcuts__link:focus-visible {
  border-color: var(--cdl-accent, #c45c26);
  background: rgba(196, 92, 38, 0.08);
}

.cdl-pedagogy-entry {
  margin: 0 0 1.5rem;
  padding: 1.15rem;
  border: 1px solid var(--cdl-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.cdl-pedagogy-entry__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
}
.cdl-pedagogy-entry__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--cdl-muted, #5a6478);
}
.cdl-pedagogy-entry__group {
  margin-top: 1rem;
}
.cdl-pedagogy-entry__group-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
}
.cdl-pedagogy-entry__group-desc {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--cdl-muted, #5a6478);
}
.cdl-entry-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cdl-entry-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cdl-border, #e2e8f0);
  border-radius: 8px;
  background: var(--cdl-surface, #f9fafb);
  text-decoration: none;
  color: inherit;
}
.cdl-entry-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}
.cdl-entry-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.cdl-entry-card__badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(26, 43, 74, 0.08);
}
.cdl-entry-card__badge--video {
  background: rgba(34, 120, 60, 0.12);
  color: #1a6b32;
}
.cdl-entry-card__sign {
  font-size: 0.75rem;
  color: var(--cdl-muted, #5a6478);
}
.cdl-rueda-entry__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
}
.cdl-rueda-entry__family-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.cdl-rueda-entry__family-link {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
  border-radius: 6px;
  background: rgba(196, 92, 38, 0.1);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 640px) {
  .cdl-rel-cards {
    grid-template-columns: 1fr;
  }
  .cdl-entry-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cdl-archive-v4 .cdl-hero__inner {
    padding: 1.15rem;
  }
  .cdl-archive-v4 .cdl-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cdl-archive-v4 .cdl-hero__actions .cdl-btn {
    width: 100%;
    justify-content: center;
  }
  .cdl-archive-v4 .cdl-filters__form--primary .cdl-filters__submit,
  .cdl-archive-v4 .cdl-filters__form--primary .cdl-filters__reset {
    width: 100%;
    text-align: center;
  }
  .cdl-archive-v4 .cdl-figure-list {
    grid-template-columns: 1fr;
  }
}
