/* Phase F étape 3 — apprentissage (additif) */
.cdl-figure-card--mastered .cdl-figure-card__link {
    box-shadow: inset 0 0 0 2px rgba(46, 125, 50, 0.35);
}
.cdl-figure-card__badge--mastered {
    background: #edfaef;
    color: #1e7e34;
    font-weight: 600;
}
.cdl-figure-card__actions {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 2;
    display: flex;
    gap: 0.25rem;
}
.cdl-modal__learning {
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
    padding-top: 1rem;
}
.cdl-modal__learning .cdl-learning-note-label {
    display: block;
    margin-bottom: 0.75rem;
}
.cdl-learning-note-label span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: #50575e;
}
.cdl-learning-note {
    width: 100%;
    max-width: 100%;
    font-size: 0.9rem;
}
.cdl-learning-path-progress {
    font-size: 0.85rem;
    color: #50575e;
    margin: 0.35rem 0;
}
.cdl-learning-suggestions h4 {
    margin: 0.5rem 0 0.35rem;
    font-size: 0.95rem;
}
.cdl-learning-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-learning-suggest-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f1;
}
.cdl-learning-suggest-item.is-locked {
    opacity: 0.75;
}
.cdl-learning-suggest-item__reason {
    font-size: 0.75rem;
    color: #646970;
}
.cdl-premium-cta a {
    font-size: 0.85rem;
    font-weight: 600;
}
.cdl-learning-dashboard {
    max-width: 720px;
    margin: 0 auto 2rem;
}
.cdl-learning-dashboard__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.cdl-learning-stat {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    min-width: 90px;
    text-align: center;
}
.cdl-learning-stat__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
.cdl-learning-stat__label {
    font-size: 0.8rem;
    color: #646970;
}
.cdl-learning-progress-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-learning-progress-list li {
    margin-bottom: 0.85rem;
}
.cdl-learning-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-top: 0.35rem;
    overflow: hidden;
}
.cdl-learning-progress-bar span {
    display: block;
    height: 100%;
    background: #2271b1;
    border-radius: 3px;
}
.cdl-learning-move-list {
    margin: 0;
    padding-left: 1.2rem;
}
.cdl-learning-dashboard__section {
    margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
    .cdl-learning-dashboard__stats {
        flex-direction: column;
    }
}

/* Playlists (étape 3B) */
.cdl-playlists__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.cdl-playlist-create-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.cdl-playlist-create-input {
    min-width: 180px;
}
.cdl-playlist-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cdl-playlist-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f0f0f1;
}
.cdl-playlist-row__meta {
    display: block;
    font-size: 0.85rem;
    color: #646970;
    margin: 0.25rem 0;
}
.cdl-playlist-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.cdl-playlist-premium-lock {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.cdl-playlist-detail__progress {
    margin: 0.35rem 0;
}
.cdl-playlist-detail__actions {
    margin: 0.5rem 0 1rem;
    display: flex;
    gap: 0.35rem;
}
.cdl-playlist-moves {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.cdl-playlist-move {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f6f7f7;
}
.cdl-playlist-move.is-mastered .cdl-playlist-move__link {
    font-weight: 600;
}
.cdl-playlist-move__badge {
    font-size: 0.75rem;
    color: #1e7e34;
}
.cdl-playlist-remove-move {
    margin-left: auto;
    border: none;
    background: transparent;
    color: #b32d2e;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.35rem;
}
.cdl-modal-playlists {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #dcdcde;
}
.cdl-modal-playlists h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}
.cdl-modal-playlist-picker {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}
.cdl-modal-playlist-picker__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.35rem 0;
}
.cdl-modal-playlist-picker__item.is-in {
    background: #f6f7f7;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    border-radius: 4px;
}
.cdl-modal-playlist-quick-create {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.cdl-learning-dashboard__resume {
    background: #f0f6fc;
    border: 1px solid #c5d9ed;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}
.cdl-learning-dashboard__premium-notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #fff8e5;
    border: 1px solid #f0d48a;
    border-radius: 6px;
}
@media (max-width: 600px) {
    .cdl-playlist-row {
        flex-direction: column;
    }
    .cdl-playlist-row__actions {
        width: 100%;
    }
}

/* Phase F étape 4 — cohérence dashboard / playlists */
.cdl-learning-dashboard--v4 {
    max-width: 800px;
    padding: 0 0.5rem;
}
.cdl-learning-dashboard--v4 .cdl-learning-dashboard__header {
    margin-bottom: 1.25rem;
}
.cdl-learning-dashboard--v4 .cdl-learning-dashboard__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: #1a2f4a;
    margin: 0 0 0.35rem;
}
.cdl-learning-dashboard--v4 .cdl-learning-stat {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(26, 47, 74, 0.06);
    border: 1px solid rgba(26, 47, 74, 0.08);
    flex: 1 1 120px;
}
.cdl-learning-dashboard--v4 .cdl-learning-dashboard__section {
    background: #fff;
    border: 1px solid rgba(26, 47, 74, 0.08);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 2px 12px rgba(26, 47, 74, 0.04);
}
.cdl-learning-dashboard--v4 .cdl-learning-dashboard__section h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #1a2f4a;
}
.cdl-playlists__header--embedded {
    margin-bottom: 0.5rem;
}
.cdl-playlists__header--embedded .cdl-playlist-create-form {
    margin-top: 0;
}
.cdl-learning-move-list a:empty::before {
    content: "—";
}

/* LOT 22 — Progression V2 */
.cdl-user-progress {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    background: #fafbfd;
    border: 1px solid #e4e8ee;
    border-radius: 8px;
}
.cdl-user-progress__title {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 600;
}
.cdl-user-progress__guest {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}
.cdl-progress-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.cdl-progress-controls__option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    font-size: 0.88rem;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.cdl-progress-controls__option.is-active {
    border-color: #6b4c9a;
    background: #f3eef9;
    font-weight: 600;
}
.cdl-progress-controls__option input {
    margin: 0;
    accent-color: #6b4c9a;
}
.cdl-continue-learning {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(26, 47, 74, 0.04);
}
.cdl-continue-learning__title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}
.cdl-continue-learning__subtitle {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.cdl-continue-learning__list {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
}
.cdl-continue-learning__next {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}
.cdl-continue-learning__path {
    margin-top: 0.65rem;
}
.cdl-continue-learning__path-label,
.cdl-continue-learning__path-pct {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
}
.cdl-continue-learning__path-link {
    font-size: 0.85rem;
    font-weight: 600;
}
.cdl-user-progress-shortcode {
    padding: 0.75rem 0;
}
@media (max-width: 600px) {
    .cdl-progress-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .cdl-progress-controls__option {
        justify-content: flex-start;
    }
}

/* V2.8B — Actions progression fiche figure */
.cdl-user-progress--v28b {
    margin: 1rem 0 1.25rem;
}
.cdl-progress-actions__current {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #50575e;
}
.cdl-progress-actions__current-value {
    color: #1d2327;
}
.cdl-progress-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.cdl-progress-actions__btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
.cdl-progress-actions__btn--primary {
    width: 100%;
    border: 1px solid #5b3d8a;
    background: #6b4c9a;
    color: #fff;
    box-shadow: 0 1px 2px rgba(26, 47, 74, 0.08);
}
.cdl-progress-actions__btn--primary:hover,
.cdl-progress-actions__btn--primary:focus {
    background: #5b3d8a;
    border-color: #4a3270;
    color: #fff;
}
.cdl-progress-actions__btn--primary.is-active {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.cdl-progress-actions__secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}
.cdl-progress-actions__btn--secondary {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #d8dee8;
    background: #fff;
    color: #1d2327;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.45rem 0.65rem;
}
.cdl-progress-actions__btn--secondary:hover,
.cdl-progress-actions__btn--secondary:focus {
    border-color: #6b4c9a;
    color: #4a3270;
}
.cdl-progress-actions__btn--secondary.is-active {
    border-color: #6b4c9a;
    background: #f3eef9;
    font-weight: 600;
}
.cdl-progress-actions__feedback {
    margin-top: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-left: 3px solid #6b4c9a;
    background: #f8f6fc;
    border-radius: 0 6px 6px 0;
}
.cdl-progress-actions__feedback-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: #1d2327;
}
.cdl-progress-actions__feedback--mastered {
    border-left-color: #2d6a4f;
    background: #edf7f1;
}
.cdl-progress-actions__feedback--mastered .cdl-progress-actions__feedback-title {
    color: #1b4332;
}
.cdl-progress-actions__profile-link {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}
.cdl-progress-actions__profile-link:hover,
.cdl-progress-actions__profile-link:focus {
    text-decoration: underline;
}
.cdl-user-progress--modal .cdl-progress-actions__btn--primary {
    width: auto;
    min-width: 100%;
}
@media (max-width: 600px) {
    .cdl-progress-actions__secondary {
        flex-direction: column;
    }
    .cdl-progress-actions__btn--secondary {
        width: 100%;
    }
}
.cdl-playlists--v4 .cdl-playlist-row,
.cdl-playlist-detail--v4 {
    background: #fff;
    border: 1px solid rgba(26, 47, 74, 0.08);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.65rem;
    box-shadow: 0 2px 10px rgba(26, 47, 74, 0.04);
}
.cdl-playlists--v4 .cdl-playlist-list__empty,
.cdl-playlist-detail--v4 > p {
    color: #5c6b7a;
    font-size: 0.92rem;
}
.cdl-playlist-detail--v4 .cdl-playlist-moves {
    border-top: 1px solid #eef1f5;
    padding-top: 0.5rem;
}
