/* ─────────────────────────────────────────────────────────────────────────
   MCC 2026 — pages rattachées à un D.U. : détail d'un module, galerie,
   brochure, inscription.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Détail d'un module ───────────────────────────────────────────────── */
.mcc2026 .m-mdp { background: var(--m-canvas, #fbfaf6); }
.mcc2026 .m-mdp__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(13rem, 15rem);
    gap: 1.5rem;
    align-items: start;
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
.mcc2026 .m-mdp__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mcc2026 .m-mdp__tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; border-radius: 0.35rem; font-size: 0.75rem; font-weight: 700; }
.mcc2026 .m-mdp__tag.is-red { background: #fde2e5; color: var(--m-red); }
.mcc2026 .m-mdp__tag.is-violet { background: #ede9fe; color: #6d28d9; }
.mcc2026 .m-mdp__tag.is-amber { background: #fef3c7; color: #b45309; }
.mcc2026 .m-mdp__tag.is-status span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.mcc2026 .m-mdp__tag.is-green { background: #e8f7ee; color: #15803d; }
.mcc2026 .m-mdp__tag.is-blue { background: #eff6ff; color: #1d4ed8; }
.mcc2026 .m-mdp__tag.is-gray { background: var(--site-canvas, #f1f5f9); color: var(--site-muted, #475569); }
.mcc2026 .m-mdp__title { margin: 0.8rem 0 0; font-family: var(--m-font-display); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); font-weight: 700; line-height: 1.08; color: var(--m-navy, #00071d); }
.mcc2026 .m-mdp__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; margin: 1.2rem 0 0; padding: 0; font-size: 0.86rem; color: var(--site-ink, #334155); }
.mcc2026 .m-mdp__facts li { display: inline-flex; align-items: flex-start; gap: 0.4rem; }
.mcc2026 .m-mdp__facts svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--m-red); }
.mcc2026 .m-mdp__facts small { display: block; font-size: 0.75rem; color: var(--m-muted); }

.mcc2026 .m-mdp__carousel,
.mcc2026 .m-mdp__video { position: relative; }
.mcc2026 .m-mdp__carousel > img,
.mcc2026 .m-mdp__video > img,
.mcc2026 .m-mdp__video > video,
.mcc2026 .m-mdp__video > iframe { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 0; border-radius: 0.9rem; background: var(--m-navy, #00071d); }
.mcc2026 .m-mdp__carousel .m-clin__prev,
.mcc2026 .m-mdp__carousel .m-clin__next { top: 40%; }
.mcc2026 .m-mdp__thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin-top: 0.45rem; }
.mcc2026 .m-mdp__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 0.4rem; overflow: hidden; background: none; cursor: pointer; }
.mcc2026 .m-mdp__thumbs button.is-active { border-color: var(--m-red); }
.mcc2026 .m-mdp__thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mcc2026 .m-mdp__more { display: flex !important; align-items: center; justify-content: center; background: var(--m-navy, #00071d) !important; color: #fff; font-weight: 700; }
.mcc2026 .m-mdp__caption { position: absolute; left: 1.1rem; bottom: 1rem; margin: 0; font-size: 1.05rem; font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

.mcc2026 .m-mdp__actions { display: grid; gap: 0.6rem; }
.mcc2026 .m-mdp__actions .m-mod__register { margin-top: 0; }
.mcc2026 .m-mdp__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 25%, transparent);
    border-radius: 0.6rem;
    background: var(--site-surface, #fff);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--m-navy, #00071d);
    text-decoration: none;
    cursor: pointer;
}
.mcc2026 .m-mdp__ghost svg { width: 1rem; height: 1rem; }

.mcc2026 .m-mdp__body { display: grid; gap: clamp(2rem, 4vw, 3rem); padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(3rem, 6vw, 4.5rem); }
.mcc2026 .m-mdp__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; }
.mcc2026 .m-mdp__speakers { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.9rem; margin: 0; padding: 0; }
.mcc2026 .m-mdp__speakers li { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; border-radius: 0.8rem; background: var(--site-surface, #fff); box-shadow: 0 12px 30px -24px rgba(15, 23, 42, 0.4); }
.mcc2026 .m-mdp__avatar { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; flex: none; overflow: hidden; border-radius: 50%; background: #334155; color: #fff; font-weight: 700; }
.mcc2026 .m-mdp__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mcc2026 .m-mdp__speakers strong { display: block; font-size: 0.9rem; color: var(--m-navy, #00071d); }
.mcc2026 .m-mdp__speakers small { display: block; font-size: 0.78rem; color: var(--m-muted); }
.mcc2026 .m-mdp__gal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.mcc2026 .m-mdp__gal-head .m-dud__h2 { margin: 0; }
.mcc2026 .m-mdp__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.1rem; }
.mcc2026 .m-mdp__grid button,
.mcc2026 .m-gal__grid button { position: relative; padding: 0; border: 0; border-radius: 0.6rem; overflow: hidden; background: #e2e8f0; cursor: pointer; }
.mcc2026 .m-mdp__grid img,
.mcc2026 .m-gal__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mcc2026 .is-video::after { content: '▶'; position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--site-surface, #fff); color: var(--m-red); font-size: 0.8rem; transform: translate(-50%, -50%); }
.mcc2026 .m-mdp__practical { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.9rem; margin: 0; }
.mcc2026 .m-mdp__practical div { padding: 1rem; border-radius: 0.8rem; background: var(--site-surface, #fff); }
.mcc2026 .m-mdp__practical dt { font-size: 0.78rem; color: var(--m-muted); }
.mcc2026 .m-mdp__practical dd { margin: 0.2rem 0 0; font-size: 0.9rem; font-weight: 700; color: var(--m-navy, #00071d); }

/* ── Fenêtres : galerie et brochure ───────────────────────────────────── */
.m-gal,
.m-brochure { max-width: min(94vw, 64rem); padding: 1.4rem; border: 0; border-radius: 1rem; background: var(--site-surface, #fff); color: var(--site-navy, #00071d); }
/* Centrage : la remise à zéro globale `* { margin: 0 }` annule le
   `margin: auto` du navigateur, qui centre une fenêtre ouverte. */
.m-gal,
.m-brochure { margin: auto; }
.m-gal::backdrop,
.m-brochure::backdrop { background: color-mix(in srgb, var(--site-navy, #00071d) 75%, transparent); }
.m-gal__head { display: flex; justify-content: space-between; gap: 1rem; }
.m-gal__head h2 { margin: 0; font-size: 1.2rem; }
.m-gal__head p { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--site-muted, #64748b); }
.m-gal__filters { display: flex; gap: 0.5rem; margin: 1rem 0; }
.m-gal__filters button { padding: 0.45rem 0.9rem; border: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 15%, transparent); border-radius: 0.5rem; background: var(--site-surface, #fff); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.m-gal__filters button.is-active { border-color: var(--site-red, #cc0000); background: var(--site-red, #cc0000); color: #fff; }
.m-gal__view > img,
.m-gal__view > video,
.m-gal__view > iframe { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 0; border-radius: 0.6rem; background: #000; }
.m-gal__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.8rem; }
.m-gal__grid [hidden] { display: none; }
.m-brochure__close { position: absolute; top: 0.6rem; right: 0.8rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.m-brochure[open] { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem; width: min(94vw, 44rem); }
.m-brochure__cover { position: relative; overflow: hidden; min-height: 14rem; padding: 1.1rem; border-radius: 0.8rem; background: var(--site-navy, #00071d); color: #fff; }
.m-brochure__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.m-brochure__cover p { position: relative; margin: 0; }
.m-brochure__cover-title { font-family: var(--m-font-display, Georgia, serif); font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.m-brochure__cover-sub { margin-top: 0.4rem !important; font-size: 0.85rem; color: #fca5a5; }
.m-brochure__form { display: grid; gap: 0.8rem; align-content: start; }
.m-brochure__form h2 { margin: 0; font-size: 1.2rem; }
.m-brochure__form p { margin: 0; font-size: 0.85rem; color: var(--site-muted, #64748b); }
.m-brochure__form label,
.mcc2026 .m-reg__form label { display: grid; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; }
.m-brochure__form input,
.mcc2026 .m-reg__form input,
.mcc2026 .m-reg__form textarea { padding: 0.65rem 0.8rem; border: 1px solid color-mix(in srgb, var(--site-ink, #0f172a) 20%, transparent); border-radius: 0.55rem; font: inherit; font-weight: 400; }
.m-brochure__form small { font-size: 0.72rem; color: var(--site-muted, #64748b); }
/* Deux champs par ligne (Nom / Prénom, E-mail / Téléphone) ; une colonne sur mobile. */
.m-brochure__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
/* Pays / wilaya : l'astérisque reste sur la ligne du libellé (le libellé
   de x-identity.location n'enveloppe pas son champ). */
.m-brochure__form label.m-du-idloc-label { display: block; }
.m-brochure__errors { margin: 0; padding: 0.6rem 0.9rem 0.6rem 1.6rem; border-radius: 0.5rem; background: #fef2f2; color: #b91c1c; font-size: 0.8rem; }

/* ── Inscription ──────────────────────────────────────────────────────── */
.mcc2026 .m-reg { padding-top: calc(var(--nav-h, 72px) + 2rem); }
.mcc2026 .m-reg__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.mcc2026 .m-reg__title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin: 0; font-family: var(--m-font-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; color: var(--m-navy, #00071d); }
.mcc2026 .m-reg__badge { padding: 0.3rem 0.7rem; border-radius: 999px; background: #e8f7ee; color: #15803d; font-family: inherit; font-size: 0.75rem; font-weight: 700; }
.mcc2026 .m-reg__badge.is-muted { background: var(--site-canvas, #f1f5f9); color: var(--site-muted, #475569); }
.mcc2026 .m-reg__du { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.4rem; }
.mcc2026 .m-reg__du img { height: 2.6rem; width: auto; }
.mcc2026 .m-reg__du strong { display: block; color: var(--m-navy, #00071d); }
.mcc2026 .m-reg__du small { display: block; font-size: 0.82rem; color: var(--m-muted); }
.mcc2026 .m-reg__text { margin: 1.1rem 0 0; font-size: 0.92rem; line-height: 1.6; color: var(--site-ink, #334155); }
.mcc2026 .m-reg__points { margin-top: 1.2rem; font-size: 0.9rem; }
.mcc2026 .m-reg__panel { padding: clamp(1.25rem, 2.5vw, 1.8rem); border-radius: 1rem; background: var(--site-surface, #fff); box-shadow: 0 18px 44px -28px rgba(15, 23, 42, 0.4); }
.mcc2026 .m-reg__steps { display: flex; justify-content: space-between; margin: 0 0 1.4rem; padding: 0; list-style: none; font-size: 0.78rem; color: var(--m-muted); }
.mcc2026 .m-reg__steps li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; flex: 1; }
.mcc2026 .m-reg__steps span { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--site-canvas, #eef1f5); font-weight: 700; }
.mcc2026 .m-reg__steps .is-current,
.mcc2026 .m-reg__steps .is-done { color: var(--m-navy, #00071d); font-weight: 600; }
.mcc2026 .m-reg__steps .is-current span { background: var(--m-navy, #00071d); color: #fff; }
.mcc2026 .m-reg__steps .is-done span { background: #16a34a; color: #fff; }
.mcc2026 .m-reg__form { display: grid; gap: 0.9rem; }
.mcc2026 .m-reg__form .m-btn { justify-content: center; }
.mcc2026 .m-reg__note { font-size: 0.75rem; color: var(--m-muted); }
.mcc2026 .m-reg__ok { text-align: center; padding: 1rem 0; }
.mcc2026 .m-reg__ok svg { width: 2.6rem; height: 2.6rem; color: #16a34a; }
.mcc2026 .m-reg__ok h2 { margin: 0.6rem 0 0; font-size: 1.2rem; color: var(--m-navy, #00071d); }
.mcc2026 .m-reg__ok p { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--site-ink, #334155); }
.mcc2026 .m-duh__notice { position: relative; margin: 0 0 1rem; padding: 0.7rem 1rem; border-radius: 0.6rem; background: #e8f7ee; color: #166534; font-size: 0.88rem; }

@media (max-width: 1000px) {
    .mcc2026 .m-mdp__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mcc2026 .m-mdp__actions { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .mcc2026 .m-mdp__top,
    .mcc2026 .m-mdp__row,
    .mcc2026 .m-reg__grid { grid-template-columns: minmax(0, 1fr); }
    .mcc2026 .m-mdp__actions { grid-template-columns: minmax(0, 1fr); }
    .mcc2026 .m-mdp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .m-brochure[open] { grid-template-columns: minmax(0, 1fr); }
    .m-brochure__row { grid-template-columns: minmax(0, 1fr); }
    .m-brochure__cover { min-height: 8rem; }
}
