/* ─────────────────────────────────────────────────────────────────────────
   MCC 2026 — fiche D.U., variante « tableau des modules »
   (titres numérotés, en-tête enrichi, mcc_du_modules)
   ───────────────────────────────────────────────────────────────────────── */

/* Titres numérotés « 01 Présentation du programme » */
.mcc2026 .m-dud__h2.has-num::before { content: none; }
.mcc2026 .m-dud__num {
    position: relative;
    min-width: 2.6rem;
    padding-bottom: 0.45rem;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--m-red);
}
.mcc2026 .m-dud__num::after { content: ''; position: absolute; left: 0; bottom: 0; width: 1.6rem; height: 2px; background: var(--m-red); }

/* En-tête : session, bouton principal à 2 lignes, brochure blanche, carte vidéo */
.mcc2026 .m-duh__session { margin: 0.4rem 0 0; font-size: 1.15rem; color: #fff; }
.mcc2026 .m-duh__primary { padding-block: 0.7rem; }
.mcc2026 .m-duh__primary > span { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.4rem; }
.mcc2026 .m-duh__primary svg { width: 1rem; height: 1rem; }
.mcc2026 .m-duh__primary small,
.mcc2026 .m-mod__register small { flex-basis: 100%; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.mcc2026 .m-duh__brochure { gap: 0.5rem; background: var(--site-surface, #fff); color: var(--m-navy, #00071d); }
.mcc2026 .m-duh__brochure svg { width: 1.1rem; height: 1.1rem; }
.mcc2026 .m-duh__vcard-wrap { position: absolute; right: var(--m-gutter, 1.5rem); bottom: clamp(1.25rem, 3vw, 2rem); z-index: 2; text-align: right; }
.mcc2026 .m-duh__vcard {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(17rem, 80vw);
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.8rem;
    background: color-mix(in srgb, var(--site-navy, #00071d) 55%, transparent);
    backdrop-filter: blur(6px);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
}
.mcc2026 .m-duh__vtime { display: inline-block; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 600; color: #fff; }

/* Présentation : photo encadrée avec logo par-dessus */
.mcc2026 .m-ovw__photo { position: relative; width: 17rem; max-width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.8rem; box-shadow: 0 16px 36px -24px rgba(15, 23, 42, 0.5); }
.mcc2026 .m-ovw__photo > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.mcc2026 .m-ovw__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(255, 255, 255, 0) 80%); }
.mcc2026 .m-ovw__photo-logo { position: absolute; top: 50%; left: 1rem; z-index: 1; height: 2.4rem; width: auto; transform: translateY(-50%); }
.mcc2026 .m-ovw__cards-head { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Parcours académique : cercles reliés par une ligne */
.mcc2026 .m-steps.is-timeline .m-steps__item { background: none; border: 0; }
.mcc2026 .m-steps.is-timeline .m-steps__list { position: relative; }
.mcc2026 .m-steps.is-timeline .m-steps__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: #fde2e5;
    box-shadow: 0 0 0 6px var(--m-canvas, #fbfaf6);
}
.mcc2026 .m-steps.is-timeline .m-steps__icon svg { width: 1.5rem; height: 1.5rem; }
.mcc2026 .m-steps.is-timeline .m-steps__item::before {
    content: '';
    position: absolute;
    top: 2.8rem;
    left: 0;
    right: 0;
    height: 1px;
    background: color-mix(in srgb, var(--site-ink, #0f172a) 15%, transparent);
}
.mcc2026 .m-steps.is-timeline .m-steps__item:not(:last-child)::after { top: 2.05rem; inset-inline-end: -0.35rem; font-size: 1rem; color: var(--m-navy, #00071d); }

/* ── Programme détaillé : tableau + panneau ──────────────────────────── */
.mcc2026 .m-mod__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 1.25rem; align-items: start; }
.mcc2026 .m-mod__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.mcc2026 .m-mod__head .m-dud__h2 { margin: 0; }
.mcc2026 .m-mod__legend { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; font-size: 0.78rem; color: var(--m-muted); }
.mcc2026 .m-mod__legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.mcc2026 .m-mod__legend span { width: 0.55rem; height: 0.55rem; border-radius: 50%; }
.mcc2026 .m-mod__legend .is-green { background: #16a34a; }
.mcc2026 .m-mod__legend .is-blue { background: #2563eb; }
.mcc2026 .m-mod__legend .is-gray { background: #94a3b8; }
.mcc2026 .m-mod__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0.9rem; }
.mcc2026 .m-mod__filters button { padding: 0.5rem 1rem; border: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 12%, transparent); border-radius: 0.5rem; background: var(--site-surface, #fff); font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--m-navy, #00071d); cursor: pointer; }
.mcc2026 .m-mod__filters button.is-active { border-color: var(--m-red); background: var(--m-red); color: #fff; }

.mcc2026 .m-mod__rows { list-style: none; margin: 0; padding: 0; border-radius: 0.9rem; background: var(--site-surface, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px -28px rgba(15, 23, 42, 0.35); overflow: hidden; }
.mcc2026 .m-mod__rows li + li { border-top: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 6%, transparent); }
.mcc2026 .m-mod__row {
    display: grid;
    grid-template-columns: 2.4rem 4.8rem minmax(0, 1fr) 6.2rem 6.5rem 5.5rem 1rem;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    padding: 0.55rem 1rem;
    border: 0;
    background: none;
    font: inherit;
    text-align: start;
    color: var(--m-navy, #00071d);
    cursor: pointer;
}
.mcc2026 .m-mod__row:hover,
.mcc2026 .m-mod__row.is-active { background: var(--site-canvas, #f4f7fb); }
.mcc2026 .m-mod__num { font-weight: 700; color: var(--m-red); }
.mcc2026 .m-mod__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.35rem; background: #e2e8f0; }
.mcc2026 .m-mod__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mcc2026 .m-mod__name strong { display: block; font-size: 0.86rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcc2026 .m-mod__name small { display: block; margin-top: 0.15rem; font-size: 0.75rem; color: var(--m-muted); }
.mcc2026 .m-mod__pill { justify-self: start; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; color: #fff; white-space: nowrap; }
.mcc2026 .m-mod__pill.is-green { background: #16a34a; }
.mcc2026 .m-mod__pill.is-blue { background: #2563eb; }
.mcc2026 .m-mod__pill.is-gray { background: #94a3b8; }
.mcc2026 .m-mod__pill.is-violet { background: #ddd6fe; color: #5b21b6; }
.mcc2026 .m-mod__pill.is-amber { background: #fde68a; color: #92400e; }
.mcc2026 .m-mod__pill.is-soft { background: #eff6ff; color: #1d4ed8; }
.mcc2026 .m-mod__pill.is-soft.is-green { background: #e8f7ee; color: #15803d; }
.mcc2026 .m-mod__pill.is-soft.is-gray { background: var(--site-canvas, #f1f5f9); color: var(--site-muted, #475569); }
.mcc2026 .m-mod__meta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--site-muted, #475569); white-space: nowrap; }
.mcc2026 .m-mod__meta svg,
.mcc2026 .m-mod__chev { width: 0.95rem; height: 0.95rem; }

.mcc2026 .m-mod__side { position: sticky; top: calc(var(--nav-h, 72px) + 4rem); }
.mcc2026 .m-mod__panel { padding: 1.1rem 1.2rem 1.3rem; border-radius: 1rem; background: var(--site-surface, #fff); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -26px rgba(15, 23, 42, 0.4); }
.mcc2026 .m-mod__nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.8rem; border-bottom: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 8%, transparent); font-size: 0.82rem; font-weight: 600; }
.mcc2026 .m-mod__step { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 15%, transparent); border-radius: 50%; background: var(--site-surface, #fff); color: var(--m-navy, #00071d); cursor: pointer; }
.mcc2026 .m-mod__step svg { width: 0.9rem; height: 0.9rem; }
.mcc2026 .m-mod__tags { display: flex; justify-content: space-between; align-items: center; margin-top: 0.9rem; }
.mcc2026 .m-mod__kind { padding: 0.2rem 0.5rem; border-radius: 0.3rem; background: #fde2e5; color: var(--m-red); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.mcc2026 .m-mod__title { margin: 0.7rem 0 0; font-family: var(--m-font-display); font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem); font-weight: 700; line-height: 1.15; color: var(--m-navy, #00071d); }
.mcc2026 .m-mod__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.9rem 0 0; padding: 0; font-size: 0.78rem; color: var(--site-ink, #334155); }
.mcc2026 .m-mod__facts li { display: inline-flex; align-items: flex-start; gap: 0.35rem; }
.mcc2026 .m-mod__facts svg { width: 1rem; height: 1rem; flex: none; color: var(--m-red); }
.mcc2026 .m-mod__facts small { display: block; font-size: 0.72rem; color: var(--m-muted); }
.mcc2026 .m-mod__media { position: relative; margin-top: 1rem; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0.7rem; background: var(--m-navy, #00071d); }
.mcc2026 .m-mod__media > img,
.mcc2026 .m-mod__media > video,
.mcc2026 .m-mod__media > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.mcc2026 .m-mod__play { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: var(--site-surface, #fff); color: var(--m-navy, #00071d); cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.6); }
.mcc2026 .m-mod__play svg { width: 1.1rem; height: 1.1rem; fill: currentColor; margin-inline-start: 0.15rem; }
.mcc2026 .m-mod__time { position: absolute; right: 0.6rem; bottom: 0.5rem; padding: 0.15rem 0.4rem; border-radius: 0.3rem; background: color-mix(in srgb, var(--site-navy, #00071d) 75%, transparent); color: #fff; font-size: 0.7rem; font-weight: 600; }
.mcc2026 .m-mod__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.45rem; }
.mcc2026 .m-mod__thumbs button { position: relative; padding: 0; border: 0; border-radius: 0.4rem; overflow: hidden; background: none; cursor: pointer; }
.mcc2026 .m-mod__thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mcc2026 .m-mod__thumbs span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--site-navy, #00071d) 60%, transparent); color: #fff; font-weight: 700; }
.mcc2026 .m-mod__register { width: 100%; justify-content: center; margin-top: 1rem; text-align: center; }
.mcc2026 .m-mod__register > span { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.4rem; }
.mcc2026 .m-mod__detail { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.6rem; padding: 0.7rem; border: 1px solid var(--m-navy, #00071d); border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--m-navy, #00071d); text-decoration: none; }
.mcc2026 .m-mod__detail svg { width: 1rem; height: 1rem; }

@media (max-width: 1100px) {
    .mcc2026 .m-mod__grid { grid-template-columns: minmax(0, 1fr); }
    .mcc2026 .m-mod__side { position: static; }
    .mcc2026 .m-mod__row { grid-template-columns: 2rem 4rem minmax(0, 1fr) auto 1rem; }
    .mcc2026 .m-mod__meta { display: none; }
}
@media (max-width: 900px) {
    .mcc2026 .m-duh__vcard-wrap { position: static; margin: 0 var(--m-gutter, 1.5rem) 1.5rem; text-align: left; }
}
@media (max-width: 560px) {
    .mcc2026 .m-mod__row { grid-template-columns: 2rem minmax(0, 1fr) auto; }
    .mcc2026 .m-mod__thumb,
    .mcc2026 .m-mod__chev { display: none; }
}

/* Tableau seul : chaque ligne mène à la page du module. */
.mcc2026 .m-mod__grid.is-list { grid-template-columns: minmax(0, 1fr); }
.mcc2026 .m-mod__grid.is-list .m-mod__row { grid-template-columns: 2.4rem 4.8rem minmax(0, 1fr) 6.2rem 6.5rem 5.5rem 8rem; text-decoration: none; }
.mcc2026 .m-mod__more { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--m-navy, #00071d); }
.mcc2026 .m-mod__more svg { width: 0.9rem; height: 0.9rem; }
.mcc2026 a.m-mod__row:hover .m-mod__more { color: var(--m-red); }
@media (max-width: 1100px) {
    .mcc2026 .m-mod__grid.is-list .m-mod__row { grid-template-columns: 2rem 4rem minmax(0, 1fr) auto auto; }
}
@media (max-width: 560px) {
    .mcc2026 .m-mod__grid.is-list .m-mod__row { grid-template-columns: 2rem minmax(0, 1fr) auto; }
    .mcc2026 .m-mod__grid.is-list .m-mod__more { display: none; }
}
