/* ==========================================================================
   Marketplace — liste des themes et fiches produit
   ==========================================================================
   Direction editoriale : grands titres serres, etiquettes en mono, filets
   fins, listes numerotees, captures reelles en vedette. Volontairement AUCUN
   verre depoli, halo flou, pastille arrondie ni grille de cartes a icone :
   c'est le gabarit « SaaS genere » que la barre de qualite du site refuse.
   Le rose de Nebula est la couleur du PRODUIT : posee en aplat, jamais en lueur.

   Feuille autonome (pas de classes Tailwind) : le CSS precompile n'a pas a
   etre regenere pour ces pages, et le deploiement reste un simple envoi.
   ========================================================================== */

.mk {
    --mk-bg: #09090B;
    --mk-ink: #FAFAFA;
    --mk-ink-2: #A1A1AA;
    --mk-ink-3: #8A8A93;
    --mk-rule: #232327;
    --mk-rule-2: #34343A;
    --mk-accent: #F0AAF0;
    --mk-accent-ink: #1B0C1B;
    --mk-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --mk-ease: cubic-bezier(.16, 1, .3, 1);
    color: var(--mk-ink);
    overflow-x: clip;
    /* La barre de navigation du site est fixe (64 px). */
    padding-top: 64px;
}
.mk *, .mk *::before, .mk *::after { box-sizing: border-box; }
.mk img { max-width: 100%; }

.mk-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .mk-wrap { padding: 0 40px; } }

/* ---------- Typographie ---------- */
.mk-label {
    font-family: var(--mk-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mk-ink-3);
}
.mk-eyebrow { display: flex; align-items: center; gap: 12px; }
.mk-eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; opacity: .7; }

.mk-h1 {
    margin: 0;
    font-size: clamp(76px, 17vw, 232px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .84;
}
.mk-h1-list { font-size: clamp(44px, 8vw, 104px); letter-spacing: -.045em; line-height: .95; }
.mk-h2 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 60px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.02;
}
.mk-lead {
    margin: 0;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
    color: var(--mk-ink-2);
    max-width: 34em;
}
.mk-text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--mk-ink-2); }

/* ---------- Liens, boutons ---------- */
.mk-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--mk-ink);
    font-size: 15px; font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--mk-rule-2);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color .2s ease, color .2s ease;
}
.mk-link:hover { text-decoration-color: currentColor; }
.mk-link svg { width: 16px; height: 16px; transition: transform .25s var(--mk-ease); }
.mk-link:hover svg.mk-go { transform: translateX(3px); }
.mk-link:hover svg.mk-down { transform: translateY(2px); }
.mk-link:focus-visible, .mk-btn:focus-visible, .mk-tab:focus-visible, .mk-choice:focus-visible, .mk-faq summary:focus-visible, .mk-cover:focus-visible {
    outline: 2px solid var(--mk-accent);
    outline-offset: 4px;
    border-radius: 6px;
}

.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 12px;
    font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.005em;
}
.mk-btn svg { width: 17px; height: 17px; }
/* « Bientot disponible » : visible et assume, mais inerte. Pas de grisage —
   un bouton terne se lit comme une erreur, pas comme une annonce. */
.mk-btn-soon { background: var(--mk-accent); color: var(--mk-accent-ink); cursor: default; }
.mk-btn-ink { background: var(--mk-accent-ink); color: var(--mk-accent); cursor: default; }

/* ---------- Fenetres (captures du launcher) ---------- */
.mk-shot {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111114;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .09),
        0 34px 80px -34px rgba(0, 0, 0, .95),
        0 14px 28px -16px rgba(0, 0, 0, .7);
}
.mk-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fil d'Ariane ---------- */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 36px; }
.mk-crumbs a { color: var(--mk-ink-3); text-decoration: none; transition: color .2s ease; }
.mk-crumbs a:hover { color: var(--mk-ink); }
.mk-crumbs span[aria-current] { color: var(--mk-ink-2); }
.mk-crumbs .mk-sep { opacity: .5; }

/* ==========================================================================
   FICHE PRODUIT
   ========================================================================== */
.mk-hero { padding-bottom: 96px; }
.mk-hero .mk-eyebrow { margin: 56px 0 18px; }
.mk-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 48px;
}
@media (min-width: 1024px) {
    .mk-hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
}

.mk-buy { border-top: 1px solid var(--mk-rule); margin-top: 32px; padding-top: 22px; }
.mk-buy-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mk-buy-price { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.mk-buy .mk-btn { width: 100%; }
.mk-buy-note { margin: 14px 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--mk-ink-3); }

.mk-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 36px 0 0; }
.mk-facts div { padding: 16px 0; border-top: 1px solid var(--mk-rule); }
.mk-facts div:nth-child(odd) { padding-right: 16px; }
.mk-facts dt { margin-bottom: 6px; }
.mk-facts dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--mk-ink); }

/* Deux fenetres superposees : sombre derriere, claire devant. */
.mk-stack { position: relative; aspect-ratio: 16 / 11.2; }
.mk-stack .mk-shot { position: absolute; width: 84%; }
.mk-stack .mk-shot:first-child { left: 0; top: 0; }
.mk-stack .mk-shot:last-child { right: 0; bottom: 0; }

/* ---------- Sections ---------- */
.mk-section { padding: 112px 0; border-top: 1px solid var(--mk-rule); }
.mk-sec-head { display: grid; gap: 20px; margin-bottom: 64px; }
@media (min-width: 1024px) {
    .mk-sec-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
}
.mk-sec-head .mk-eyebrow { margin-bottom: 18px; }

/* ---------- Visite des ecrans ---------- */
.mk-tour { display: grid; gap: 40px; }
@media (min-width: 1024px) {
    .mk-tour { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
    .mk-tour-stage { position: sticky; top: 104px; }
}
.mk-tour-list { display: flex; flex-direction: column; border-bottom: 1px solid var(--mk-rule); }
.mk-tab {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    border-top: 1px solid var(--mk-rule);
    background: none;
    color: var(--mk-ink-3);
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: color .2s ease;
}
.mk-tab:hover { color: var(--mk-ink-2); }
.mk-tab-num { font-family: var(--mk-mono); font-size: 12px; letter-spacing: .06em; padding-top: 5px; transition: color .2s ease; }
.mk-tab-name { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.mk-tab-text {
    grid-column: 2;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .35s var(--mk-ease), opacity .25s ease, margin .35s var(--mk-ease);
}
.mk-tab-text > span { overflow: hidden; font-size: 14.5px; line-height: 1.6; color: var(--mk-ink-2); }
.mk-tab[aria-selected="true"] { color: var(--mk-ink); cursor: default; }
.mk-tab[aria-selected="true"] .mk-tab-num { color: var(--mk-accent); }
.mk-tab[aria-selected="true"] .mk-tab-text { grid-template-rows: 1fr; opacity: 1; margin-top: 8px; }

.mk-tour-stage { order: -1; }
@media (min-width: 1024px) { .mk-tour-stage { order: 0; } }
.mk-panels { position: relative; aspect-ratio: 16 / 9; }
.mk-panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.mk-panel.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.mk-panel .mk-shot { width: 100%; height: 100%; }
.mk-stage-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }

/* ---------- Votre marque : la bande entiere suit la base choisie ---------- */
.mk-brand {
    --b-bg: #111114; --b-ink: #FAFAFA; --b-ink-2: #A1A1AA; --b-ink-3: #8A8A93; --b-rule: #26262B; --b-ctrl: #17171B;
    background: var(--b-bg);
    color: var(--b-ink);
    padding: 112px 0;
    transition: background-color .45s ease, color .45s ease;
}
.mk-brand[data-base="light"] { --b-bg: #F2F1F4; --b-ink: #0B0B0D; --b-ink-2: #4B4B55; --b-ink-3: #5F5F69; --b-rule: #DCDBE1; --b-ctrl: #FFFFFF; }
.mk-brand .mk-label, .mk-brand .mk-eyebrow { color: var(--b-ink-3); }
.mk-brand .mk-lead, .mk-brand .mk-text { color: var(--b-ink-2); }
.mk-brand-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .mk-brand-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; } }
.mk-brand .mk-eyebrow { margin-bottom: 18px; }
.mk-brand .mk-lead { margin-top: 22px; }

.mk-ctrl { margin-top: 32px; }
.mk-ctrl .mk-label { display: block; margin-bottom: 12px; }
.mk-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-choice {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--b-rule);
    border-radius: 10px;
    background: var(--b-ctrl);
    color: var(--b-ink-2);
    font: inherit; font-size: 13.5px; font-weight: 500;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .45s ease;
}
.mk-choice:hover { color: var(--b-ink); }
.mk-choice[aria-checked="true"] { border-color: var(--b-ink); color: var(--b-ink); }
.mk-swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.mk-brand-meta { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.mk-brand-meta .mk-swatch { width: 22px; height: 22px; border-radius: 6px; }
.mk-brand .mk-note { margin: 18px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--b-ink-3); max-width: 30em; }
.mk-brand .mk-shot { box-shadow: 0 0 0 1px rgba(127, 127, 140, .22), 0 34px 80px -34px rgba(0, 0, 0, .6), 0 14px 28px -16px rgba(0, 0, 0, .35); }

/* ---------- Le detail + Questions ---------- */
.mk-split { display: grid; gap: 28px; }
@media (min-width: 1024px) { .mk-split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; } }
.mk-split .mk-text { margin-top: 16px; max-width: 24em; }
.mk-spec { margin: 0; border-bottom: 1px solid var(--mk-rule); }
.mk-spec div { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--mk-rule); }
@media (min-width: 640px) { .mk-spec div { grid-template-columns: 180px 1fr; gap: 24px; } }
.mk-spec dt { padding-top: 3px; }
.mk-spec dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--mk-ink); }

.mk-faq { border-bottom: 1px solid var(--mk-rule); }
.mk-faq details { border-top: 1px solid var(--mk-rule); }
.mk-faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0;
    font-size: 17px; font-weight: 600; letter-spacing: -.01em;
    cursor: pointer;
    list-style: none;
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--mk-ink-3); transition: transform .3s var(--mk-ease); }
.mk-faq details[open] summary svg { transform: rotate(45deg); }
.mk-faq p { margin: 0 0 22px; max-width: 42em; font-size: 15.5px; line-height: 1.65; color: var(--mk-ink-2); }

/* ---------- Bandeau final : aplat de la couleur du produit ---------- */
.mk-final { background: var(--mk-accent); color: var(--mk-accent-ink); padding: 104px 0 96px; }
.mk-final .mk-h2 { font-size: clamp(40px, 7vw, 96px); letter-spacing: -.045em; line-height: .95; max-width: 11em; }
.mk-final p { margin: 22px 0 0; max-width: 30em; font-size: 18px; line-height: 1.55; color: rgba(27, 12, 27, .78); }
.mk-final-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.mk-final .mk-link { color: var(--mk-accent-ink); text-decoration-color: rgba(27, 12, 27, .35); }
.mk-final .mk-link:hover { text-decoration-color: currentColor; }
.mk-final .mk-link:focus-visible, .mk-final .mk-btn:focus-visible { outline-color: var(--mk-accent-ink); }

/* ==========================================================================
   LISTE (MARKETPLACE)
   ========================================================================== */
.mk-head { padding-bottom: 72px; }
.mk-head .mk-eyebrow { margin: 56px 0 22px; }
.mk-head .mk-lead { margin-top: 28px; }

.mk-shelf-bar { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--mk-rule); border-bottom: 1px solid var(--mk-rule); }

.mk-cover {
    display: grid;
    gap: 36px;
    padding: 56px 0 64px;
    color: inherit;
    text-decoration: none;
}
@media (min-width: 1024px) { .mk-cover { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; align-items: center; } }
.mk-cover .mk-stack .mk-shot { transition: transform .5s var(--mk-ease); }
.mk-cover:hover .mk-stack .mk-shot:last-child { transform: translate(-6px, -6px); }
.mk-cover-title { margin: 14px 0 0; font-size: clamp(52px, 7vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.mk-cover .mk-lead { margin-top: 18px; }
.mk-cover-meta { margin-top: 18px; }
.mk-status { display: flex; align-items: center; gap: 10px; margin: 28px 0 22px; padding-top: 18px; border-top: 1px solid var(--mk-rule); font-size: 15px; font-weight: 600; }
.mk-status::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--mk-accent); }
.mk-new { color: var(--mk-accent); }
.mk-cover .mk-link { pointer-events: none; }

.mk-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    column-gap: 10px;
    row-gap: 6px;
    align-items: baseline;
    padding: 22px 0;
    border-top: 1px solid var(--mk-rule);
    border-bottom: 1px solid var(--mk-rule);
}
.mk-row-name { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.mk-row .mk-text { grid-column: 2 / -1; }
@media (min-width: 768px) {
    .mk-row { grid-template-columns: 34px 220px 1fr auto; }
    .mk-row .mk-text { grid-column: auto; }
}

.mk-steps { display: grid; gap: 0; margin-top: 48px; }
@media (min-width: 768px) { .mk-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.mk-step { padding: 22px 0 8px; border-top: 1px solid var(--mk-rule-2); }
.mk-step-num { font-family: var(--mk-mono); font-size: 13px; color: var(--mk-accent); }
.mk-step h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Mouvement reduit ---------- */
@media (prefers-reduced-motion: reduce) {
    .mk *, .mk *::before, .mk *::after { transition-duration: .01ms !important; }
    .mk-cover:hover .mk-stack .mk-shot:last-child { transform: none; }
}
