/**
 * Calendanse Dance Library — V2.1A UX (archive above-the-fold, accordéons).
 */

.cdl-hero--compact .cdl-hero__inner--compact {
    padding-block: clamp(1rem, 2.5vw, 1.75rem);
    gap: 1rem;
}

.cdl-hero--compact .cdl-hero__copy {
    max-width: none;
}

.cdl-hero--compact .cdl-hero__title {
    margin-bottom: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
}

.cdl-hero--compact .cdl-hero__lead,
.cdl-hero--compact .cdl-hero__actions {
    display: none;
}

.cdl-hero--compact .cdl-hero__stats {
    margin-top: 0;
}

.cdl-archive-accordion {
    margin: 1.5rem 0 0;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.cdl-archive-accordion + .cdl-archive-accordion {
    margin-top: 0.75rem;
}

.cdl-archive-accordion__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #0f172a;
}

.cdl-archive-accordion__summary::-webkit-details-marker {
    display: none;
}

.cdl-archive-accordion__summary:focus-visible {
    outline: 2px solid #046bd2;
    outline-offset: -2px;
}

.cdl-archive-accordion__icon::before {
    content: "+";
    display: inline-block;
    width: 1.25rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1;
    color: #64748b;
}

.cdl-archive-accordion[open] .cdl-archive-accordion__icon::before {
    content: "−";
}

.cdl-archive-accordion__panel {
    padding: 0 1.1rem 1.1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-archive-accordion__panel > .cdl-smart-path--hub {
    margin-top: 0.75rem;
}

.cdl-archive-accordion__panel > .cdl-smart-path--hub > .cdl-smart-path__title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cdl-archive-seo--footer {
    margin: 2rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-archive-seo__intro {
    margin: 0;
    max-width: 72ch;
    color: #475569;
    line-height: 1.6;
}

.cdl-single__pedagogy-nav:empty {
    display: none;
}

/* V2.4A — navigation pédagogique hybride (Zouk + WCS) */
.cdl-pedagogy-nav {
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-pedagogy-nav__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.cdl-pedagogy-nav__zones {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .cdl-pedagogy-nav__zones {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.cdl-pedagogy-nav__zone {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: #f8fafc;
}

.cdl-pedagogy-nav__zone-title {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.cdl-pedagogy-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-pedagogy-nav__item {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.35;
}

.cdl-pedagogy-nav__item:last-child {
    margin-bottom: 0;
}

.cdl-pedagogy-nav__link {
    color: #1e3a5f;
    font-weight: 600;
    text-decoration: none;
}

.cdl-pedagogy-nav__link:hover {
    color: #046bd2;
    text-decoration: underline;
}

.cdl-pedagogy-nav__path-seq {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
}

.cdl-pedagogy-nav__path-prev,
.cdl-pedagogy-nav__path-next {
    color: #2c5282;
}

.cdl-pedagogy-nav__path-prev:hover,
.cdl-pedagogy-nav__path-next:hover {
    color: #1e3a5f;
}

.cdl-pedagogy-nav__step {
    display: inline-block;
    margin-left: 0.15rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
}

/* V2.7B — recommandations pédagogiques MVP */
.cdl-recommendations {
    margin: 1.25rem 0 0;
    padding: 1rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-recommendations__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.cdl-recommendations__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-recommendations__item {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: #f8fafc;
}

.cdl-recommendations__item:last-child {
    margin-bottom: 0;
}

.cdl-recommendations__link {
    font-weight: 600;
    color: #046bd2;
    text-decoration: none;
}

.cdl-recommendations__link:hover {
    text-decoration: underline;
}

.cdl-recommendations__style {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.82rem;
    color: #64748b;
}

/* Score conservé en API ; masqué en UI publique V2.7B-QA */
.cdl-recommendations__score {
    display: none;
}

.cdl-recommendations__reason {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: #334155;
}

.cdl-recommendations__check {
    color: #15803d;
    font-weight: 700;
}

/* V2.4D — concepts transversaux pilotes (chips) */
.cdl-single__concepts-pilot {
    margin: 0.65rem 0 0;
}

.cdl-single__concepts-pilot-label {
    margin: 0 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.cdl-concept-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-concept-chips__item {
    margin: 0;
}

.cdl-concept-chip {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #f1f5f9;
    color: #334155;
}

.cdl-concept-chip--movement {
    background: #eff6ff;
    border-color: rgba(4, 107, 210, 0.2);
    color: #1e3a5f;
}

.cdl-concept-chip--rotation {
    background: #f5f3ff;
    border-color: rgba(109, 40, 217, 0.2);
    color: #5b21b6;
}

.cdl-concept-chip--position {
    background: #ecfdf5;
    border-color: rgba(5, 150, 105, 0.2);
    color: #065f46;
}

.cdl-concept-chip--connection {
    background: #fff7ed;
    border-color: rgba(234, 88, 12, 0.2);
    color: #9a3412;
}

.cdl-concept-chip--musicality {
    background: #fefce8;
    border-color: rgba(202, 138, 4, 0.25);
    color: #854d0e;
}

.cdl-concept-chip--styling {
    background: #fdf2f8;
    border-color: rgba(219, 39, 119, 0.2);
    color: #9d174d;
}

/* V2.4E — ponts inter-styles */
.cdl-single__cross-style-bridges {
    margin: 0.85rem 0 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-single__cross-style-bridges-title {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.cdl-cross-style-bridges__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cdl-cross-style-bridges__item {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cdl-cross-style-bridges__item:last-child {
    margin-bottom: 0;
}

.cdl-cross-style-bridges__link {
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
}

.cdl-cross-style-bridges__link:hover {
    color: #046bd2;
    text-decoration: underline;
}

.cdl-cross-style-bridges__style {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.cdl-cross-style-bridges__concept {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.72rem;
    color: #64748b;
}

.cdl-cross-style-bridges__concept::before {
    content: "· ";
}

.cdl-editorial-paths {
    margin: 0.5rem 0 0;
}

.cdl-editorial-paths__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.cdl-editorial-path-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cdl-editorial-path-card:hover {
    border-color: rgba(4, 107, 210, 0.35);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.cdl-editorial-path-card__level {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #046bd2;
}

.cdl-editorial-path-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.cdl-editorial-path-card__desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
}

.cdl-editorial-path-card__meta {
    font-size: 0.82rem;
    color: #64748b;
}

.cdl-editorial-path-card__cta {
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #046bd2;
}

.cdl-path-single {
    max-width: 48rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.cdl-path-single__header {
    margin-bottom: 1.25rem;
}

.cdl-path-single__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.cdl-path-single__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cdl-path-single__level {
    margin: 0;
    color: #046bd2;
    font-weight: 600;
}

.cdl-path-single__intro {
    margin-bottom: 1.5rem;
    color: #334155;
    line-height: 1.6;
}

.cdl-path-single__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cdl-path-single__step {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cdl-path-single__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a5f;
    font-size: 0.82rem;
    font-weight: 700;
}

.cdl-path-single__step-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.cdl-path-single__step-link:hover {
    color: #046bd2;
    text-decoration: underline;
}

.cdl-path-single__back {
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .cdl-editorial-paths__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cdl-hero--compact .cdl-hero__inner--compact {
        flex-direction: column;
        align-items: flex-start;
    }

    .cdl-archive-accordion__summary {
        padding: 0.85rem 0.9rem;
    }
}
