/* ─────────────────────────────────────────────────────────────────────────
   MCC 2026 — Catalogue des formations (/seminaires), « variante 1 ».
   Vue : resources/views/visitors/seminaires/index-mcc2026.blade.php
   Tout est scopé sous .mcc2026.m-semlist (préfixe m-seml-*).
   ───────────────────────────────────────────────────────────────────────── */

.mcc2026.m-semlist {
    --seml-border: var(--site-border, #e5e7eb);
    --seml-hd: 72px; /* hauteur de l'en-tête fixe du site */
    background: var(--m-canvas);
    font-family: var(--m-font-body);
    color: var(--m-ink);
}
.mcc2026.m-semlist [hidden] { display: none !important; }
.mcc2026.m-semlist i[data-lucide],
.mcc2026.m-semlist svg.lucide { width: 18px; height: 18px; flex: none; stroke-width: 1.75; }

/* ── Bandeau sombre ──────────────────────────────────────────────────── */
.mcc2026 .m-seml-hero {
    position: relative;
    padding-top: var(--seml-hd);
    background: var(--m-navy);
    color: #fff;
    overflow: hidden;
}
.mcc2026 .m-seml-hero__photo {
    position: absolute;
    inset: var(--seml-hd) 0 0 auto;
    width: 62%;
}
.mcc2026 .m-seml-hero__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}
.mcc2026 .m-seml-hero__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--m-navy) 0%, color-mix(in srgb, var(--site-navy, #00071d) 85%, transparent) 25%, color-mix(in srgb, var(--site-navy, #00071d) 45%, transparent) 60%, color-mix(in srgb, var(--site-navy, #00071d) 25%, transparent) 100%);
}
.mcc2026 .m-seml-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 2.5rem 2.25rem;
}
.mcc2026 .m-seml-hero__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c7cbd6;
}
.mcc2026 .m-seml-hero__title {
    max-width: 640px;
    margin: 0 0 0.85rem;
    font-family: var(--m-font-display);
    font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.5rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: #fff;
}
.mcc2026 .m-seml-hero__sub {
    max-width: 560px;
    margin: 0 0 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}
.mcc2026 .m-seml-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 760px;
    padding: 6px 6px 6px 1.25rem;
    background: var(--site-surface, #fff);
    border-radius: 12px;
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
}
.mcc2026 .m-seml-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    background: transparent;
    font-family: var(--m-font-body);
    font-size: 0.95rem;
    color: var(--m-ink);
}
.mcc2026 .m-seml-search input::placeholder { color: var(--site-muted, #6b7280); }
.mcc2026 .m-seml-search input:focus { outline: none; }
.mcc2026 .m-seml-search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-red, #cc0000) 35%, transparent), 0 16px 40px -18px rgba(0, 0, 0, 0.55); }
.mcc2026 .m-seml-search__btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    flex: none;
    border: 0;
    border-radius: var(--site-radius-btn, 9px);
    background: var(--m-red);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
}
.mcc2026 .m-seml-search__btn:hover { background: var(--m-red-dark); }
.mcc2026 .m-seml-search__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Onglets ─────────────────────────────────────────────────────────── */
.mcc2026 .m-seml-main { padding: 1.75rem 0 4.5rem; }
.mcc2026 .m-seml-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: var(--site-surface, #fff);
    border: 1px solid var(--seml-border);
    border-radius: 12px;
}
.mcc2026 .m-seml-tab {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0 1rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-family: var(--m-font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--m-navy);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.mcc2026 .m-seml-tab:hover { background: var(--site-canvas, #f3f4f6); }
.mcc2026 .m-seml-tab.is-active { background: var(--m-navy); color: #fff; }
.mcc2026 .m-seml-tab:focus-visible { outline: 2px solid var(--m-red); outline-offset: 2px; }

/* ── Menus déroulants compacts ───────────────────────────────────────── */
.mcc2026 .m-seml-menus {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.mcc2026 .m-seml-menu { position: relative; }
.mcc2026 .m-seml-menu select {
    appearance: none;
    -webkit-appearance: none;
    height: 38px;
    max-width: 220px;
    padding: 0 2rem 0 0.8rem;
    border: 1px solid var(--seml-border);
    border-radius: 8px;
    background: var(--site-surface, #fff);
    font-family: var(--m-font-body);
    font-size: 0.85rem;
    color: var(--m-ink);
    text-overflow: ellipsis;
    cursor: pointer;
}
.mcc2026 .m-seml-menu select:focus-visible {
    outline: none;
    border-color: var(--m-red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-red, #cc0000) 15%, transparent);
}
.mcc2026.m-semlist .m-seml-menu__chev {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--m-muted);
    pointer-events: none;
}

/* ── Puces de domaines ───────────────────────────────────────────────── */
.mcc2026 .m-seml-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.mcc2026 .m-seml-chip {
    min-height: 36px;
    padding: 0 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--site-canvas, #eef0f3);
    font-family: var(--m-font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--site-ink, #374151);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.mcc2026 .m-seml-chip:hover { background: #e2e5ea; }
.mcc2026 .m-seml-chip.is-active { background: var(--m-red); color: #fff; font-weight: 600; }
.mcc2026 .m-seml-chip:focus-visible { outline: 2px solid var(--m-red); outline-offset: 2px; }

/* ── Barre compteur / tri / affichage ────────────────────────────────── */
.mcc2026 .m-seml-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0 1.25rem;
}
.mcc2026 .m-seml-count { margin: 0; font-size: 0.95rem; color: var(--m-muted); }
.mcc2026 .m-seml-count strong { color: var(--m-navy); font-weight: 700; }
.mcc2026 .m-seml-bar__right { display: flex; align-items: center; gap: 0.6rem; }
.mcc2026 .m-seml-sort__label { margin: 0; font-size: 0.85rem; color: var(--m-muted); white-space: nowrap; }
.mcc2026 .m-seml-menu--sort select { font-weight: 600; color: var(--m-navy); }
.mcc2026 .m-seml-views { display: inline-flex; gap: 4px; }
.mcc2026 .m-seml-view {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid var(--seml-border);
    border-radius: 8px;
    background: var(--site-surface, #fff);
    color: var(--m-muted);
    cursor: pointer;
}
.mcc2026 .m-seml-view.is-active { background: var(--m-navy); border-color: var(--m-navy); color: #fff; }
.mcc2026 .m-seml-view:focus-visible { outline: 2px solid var(--m-red); outline-offset: 2px; }

/* ── Grille & cartes ─────────────────────────────────────────────────── */
.mcc2026 .m-seml-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.mcc2026 .m-seml-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--site-surface, #fff);
    border: 1px solid var(--seml-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s var(--m-ease), box-shadow 0.25s;
}
.mcc2026 .m-seml-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0, 7, 29, 0.22); }
.mcc2026 .m-seml-card:focus-within { outline: 2px solid var(--m-red); outline-offset: 2px; }
.mcc2026 .m-seml-card__media {
    position: relative;
    /* Carré : les visuels des formations sont au format 1080×1080. */
    aspect-ratio: 1 / 1;
    background: var(--site-canvas, #f3f4f6);
    overflow: hidden;
}
.mcc2026 .m-seml-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Vidéo d'en-tête de la formation, posée sur la photo (carrée : une vidéo
   16:9 intégrée est élargie à 177,78 % pour couvrir sans bandes). */
.mcc2026 .m-seml-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; pointer-events: none; }
.mcc2026 .m-seml-card__video--embed { left: 50%; width: 177.78%; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) { .mcc2026 .m-seml-card__video { display: none; } }
.mcc2026 .m-seml-card__noimg {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}
.mcc2026 .m-seml-card__noimg img { height: 48px; width: auto; opacity: 0.55; }
.mcc2026 .m-seml-card__attest {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    background: var(--site-surface, #fff);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0, 7, 29, 0.15);
}
.mcc2026 .m-seml-card__attest--univ { color: var(--m-red); }
.mcc2026 .m-seml-card__attest--none { color: var(--site-ink, #374151); }
.mcc2026 .m-seml-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 16px 18px;
}
.mcc2026 .m-seml-card__title {
    margin: 0 0 0.6rem;
    font-family: var(--m-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--m-navy);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mcc2026 .m-seml-card__link { color: inherit; text-decoration: none; }
.mcc2026 .m-seml-card__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.mcc2026 .m-seml-card__link:focus-visible { outline: none; }
.mcc2026 .m-seml-card__org {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    min-width: 0;
}
.mcc2026 .m-seml-card__type {
    display: inline-flex; align-items: center; gap: 0.3rem;
    flex: none;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: var(--site-canvas, #eef0f3);
    font-size: 12px;
    font-weight: 600;
    color: var(--site-ink, #374151);
}
.mcc2026 .m-seml-card__type.is-du { background: var(--site-red-soft, #fdecec); color: var(--site-red-dark, #b80000); }
.mcc2026.m-semlist .m-seml-card__type svg.lucide,
.mcc2026.m-semlist .m-seml-card__type i[data-lucide] { width: 14px; height: 14px; }
.mcc2026 .m-seml-card__organizer {
    font-size: 13px;
    font-weight: 600;
    color: var(--m-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mcc2026 .m-seml-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0 44px 0 0;
    list-style: none;
    font-size: 13px;
    color: var(--site-muted, #4b5563);
}
.mcc2026 .m-seml-card__info li { display: flex; align-items: flex-start; gap: 0.5rem; min-width: 0; }
.mcc2026.m-semlist .m-seml-card__info svg.lucide,
.mcc2026.m-semlist .m-seml-card__info i[data-lucide] { width: 15px; height: 15px; margin-top: 1px; color: var(--site-muted, #6b7280); stroke-width: 1.5; }
.mcc2026 .m-seml-card__trad { color: var(--m-muted); }
.mcc2026 .m-seml-card__go {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border: 1.5px solid var(--m-red);
    border-radius: 8px;
    color: var(--m-red);
    transition: background-color 0.2s, color 0.2s;
}
.mcc2026.m-semlist .m-seml-card__go svg.lucide { width: 16px; height: 16px; }
.mcc2026 .m-seml-card:hover .m-seml-card__go { background: var(--m-red); color: #fff; }
.mcc2026 .m-seml-card.is-past .m-seml-card__media > img { filter: grayscale(0.35); }


/* ── États vides ─────────────────────────────────────────────────────── */
.mcc2026 .m-seml-empty { padding: 4rem 1rem; text-align: center; color: var(--m-muted); }
.mcc2026 .m-seml-empty--card { background: var(--site-surface, #fff); border: 1px solid var(--seml-border); border-radius: 12px; }
.mcc2026.m-semlist .m-seml-empty > svg.lucide,
.mcc2026.m-semlist .m-seml-empty > i[data-lucide] { width: 44px; height: 44px; color: #9aa3b2; margin-bottom: 0.75rem; }
.mcc2026 .m-seml-empty h2 { margin: 0 0 0.35rem; font-family: var(--m-font-display); font-size: 1.35rem; color: var(--m-navy); }
.mcc2026 .m-seml-empty p { margin: 0 0 1.25rem; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mcc2026 .m-seml-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .mcc2026 .m-seml-hero__photo { width: 100%; }
    .mcc2026 .m-seml-hero__photo::after { background: linear-gradient(90deg, color-mix(in srgb, var(--site-navy, #00071d) 92%, transparent), color-mix(in srgb, var(--site-navy, #00071d) 70%, transparent)); }
    .mcc2026 .m-seml-tabs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .mcc2026 .m-seml-grid { grid-template-columns: minmax(0, 1fr); }
    .mcc2026 .m-seml-menus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcc2026 .m-seml-menu select { width: 100%; max-width: none; height: 44px; }
    .mcc2026 .m-seml-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(var(--m-gutter) * -1);
        padding: 0.2rem var(--m-gutter);
        scrollbar-width: none;
    }
    .mcc2026 .m-seml-chips::-webkit-scrollbar { display: none; }
    .mcc2026 .m-seml-chip { min-height: 44px; }
    .mcc2026 .m-seml-bar { flex-wrap: wrap; }
    .mcc2026 .m-seml-bar__right { flex-wrap: wrap; }
    .mcc2026 .m-seml-view { width: 44px; height: 44px; }
    .mcc2026 .m-seml-menu--sort select { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .mcc2026 .m-seml-card, .mcc2026 .m-seml-card:hover { transition: none; transform: none; }
}

/* Onglets de statut de /workshops (Tous, À venir, En cours, Passés) : quatre
   onglets sur une ligne ; sous 900px, une seule ligne qui défile plutôt que
   des libellés coupés en deux. */
.mcc2026 .m-seml-tabs--status { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
    .mcc2026 .m-seml-tabs--status { display: flex; overflow-x: auto; scrollbar-width: none; }
    .mcc2026 .m-seml-tabs--status::-webkit-scrollbar { display: none; }
    .mcc2026 .m-seml-tabs--status .m-seml-tab { flex: 1 0 auto; white-space: nowrap; }
}
