/* ══════════════════════════════════════════════════════════════
   Maquettes d'interface des bannières produit.
   Dessinées en HTML/CSS (Views/Shared/_HeroMaquette.cshtml) plutôt
   qu'en photo : nettes sur tout écran, sans poids d'image, et propres
   à chaque logiciel. Même charte que la vidéo d'accueil.
   ══════════════════════════════════════════════════════════════ */

.mq {
    --mq-navy: #0d2d4a;
    --mq-teal: #1a9c8c;
    --mq-teal-d: #127a6d;
    --mq-teal-l: #22c5b1;
    --mq-gray: #55736e;
    --mq-line: #eaf3f1;
    --mq-odoo: #714b67;
    position: relative;
    /* Marges haute et basse : place des encarts flottants, qui débordent
       des coins sans recouvrir la barre de titre ni le total. */
    padding: 46px 18px 46px;
    font-family: 'Nunito', sans-serif;
    color: #1c2e2c;
}

/* Halo derrière la fenêtre, comme l'ancien cadre photo */
.mq::before {
    content: "";
    position: absolute;
    inset: 10px 0 20px;
    background: linear-gradient(135deg, rgba(34,197,177,.45), rgba(21,69,112,.4));
    border-radius: 26px;
    filter: blur(28px);
    opacity: .55;
    z-index: 0;
}

/* ── Fenêtre d'application ── */
.mq-win {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.40), 0 0 0 1px rgba(34,197,177,.35);
}

.mq-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    background: #f4f9f8;
    border-bottom: 1px solid #e2efec;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--mq-navy);
}
.mq-bar .d { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mq-bar .d1 { background: #ff5f57; } .mq-bar .d2 { background: #febc2e; } .mq-bar .d3 { background: #28c840; }
.mq-bar .t { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mq-bar .tag {
    margin-left: auto; flex-shrink: 0;
    font-size: .72rem; letter-spacing: .05em; color: #fff;
    background: var(--mq-teal); padding: 2px 10px; border-radius: 30px;
}

/* Barre façon Odoo (NEURO PAYE, NEURO COMPTA, INTÉRIM) */
.mq-bar.odoo { background: var(--mq-odoo); color: #fff; border-bottom: 0; }
.mq-bar.odoo .tag { background: rgba(255,255,255,.2); }
.mq-crumb {
    display: flex; gap: 6px; align-items: center;
    padding: 9px 16px; font-size: .78rem; font-weight: 700; color: var(--mq-gray);
    border-bottom: 1px solid var(--mq-line);
}
.mq-crumb b { color: var(--mq-navy); }
.mq-crumb .btn-o {
    margin-left: auto; background: var(--mq-odoo); color: #fff;
    border-radius: 6px; padding: 3px 10px; font-size: .72rem;
}

/* ── Lignes chiffrées (bulletin, TVA, ticket) ── */
.mq-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 18px; font-size: .86rem; border-bottom: 1px solid var(--mq-line);
}
.mq-row small { color: var(--mq-gray); font-size: .72rem; margin-left: 4px; font-weight: 600; }
.mq-row .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mq-row.sub { background: #f7fbfa; font-weight: 800; color: var(--mq-navy); }
.mq-row.neg .v { color: #c0392b; }
.mq-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--mq-navy), var(--mq-teal));
    color: #fff; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.mq-total .v { font-size: 1.4rem; font-variant-numeric: tabular-nums; }

/* ── Tableau (lots de paie, stock) ── */
.mq-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.mq-table th {
    text-align: left; padding: 8px 14px; color: var(--mq-gray); font-weight: 800;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 1px solid var(--mq-line);
}
.mq-table td { padding: 8px 14px; border-bottom: 1px solid var(--mq-line); font-weight: 700; }
.mq-table td.n, .mq-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.mq-badge {
    display: inline-block; font-size: .68rem; font-weight: 800;
    padding: 2px 9px; border-radius: 20px; white-space: nowrap;
}
.mq-badge.ok { background: #dff5f1; color: var(--mq-teal-d); }
.mq-badge.wip { background: #fff1d9; color: #9a5a05; }

/* ── Indicateurs ── */
.mq-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 16px; }
.mq-kpi { background: #f4f9f8; border-radius: 12px; padding: 10px 12px; }
.mq-kpi .l { font-size: .66rem; font-weight: 800; color: var(--mq-gray); text-transform: uppercase; letter-spacing: .04em; }
.mq-kpi .v { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--mq-navy); line-height: 1.15; }
.mq-kpi .v.teal { color: var(--mq-teal-d); }

/* ── Encarts flottants ── */
.mq-float {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 16px 36px rgba(0,0,0,.30);
    font-size: .8rem; font-weight: 700; color: var(--mq-navy); max-width: 62%;
}
.mq-float .ic {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem;
    background: linear-gradient(135deg, var(--mq-teal-d), var(--mq-teal-l));
}
.mq-float small { display: block; font-size: .7rem; color: var(--mq-gray); font-weight: 700; }
.mq-float.tr { top: -6px; right: -6px; }
.mq-float.bl { bottom: -6px; left: -6px; }
.mq-float.br { bottom: -6px; right: -6px; }

/* ── SIRH : espace salarié ── */
.mq-profil { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--mq-line); }
.mq-avatar {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--mq-navy), var(--mq-teal));
}
.mq-profil .nm { font-weight: 800; color: var(--mq-navy); }
.mq-profil .fn { font-size: .75rem; color: var(--mq-gray); font-weight: 700; }
.mq-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.mq-tile { border: 1px solid var(--mq-line); border-radius: 12px; padding: 10px 12px; }
.mq-tile i { color: var(--mq-teal); }
.mq-tile .l { font-size: .7rem; font-weight: 800; color: var(--mq-gray); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.mq-tile .v { font-weight: 800; color: var(--mq-navy); font-size: .9rem; }

/* ── Caisse : articles et paiement ── */
.mq-pos { display: grid; grid-template-columns: 1.15fr 1fr; }
.mq-pos .tk { border-right: 1px solid var(--mq-line); }
.mq-pos .tk .mq-row { padding: 7px 14px; font-size: .8rem; }
.mq-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; align-content: start; }
.mq-key {
    border-radius: 10px; padding: 12px 6px; text-align: center;
    font-size: .76rem; font-weight: 800; color: var(--mq-navy); background: #f4f9f8;
}
.mq-key i { display: block; font-size: 1.05rem; color: var(--mq-teal); margin-bottom: 4px; }
.mq-key.go { grid-column: span 2; background: var(--mq-teal); color: #fff; font-size: .9rem; }
.mq-key.go i { color: #fff; display: inline; margin: 0 6px 0 0; }

/* ── Caravane : chaîne de documents ── */
.mq-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 16px; }
.mq-step { text-align: center; position: relative; }
.mq-step .ic {
    width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, var(--mq-navy), #2a6aa3);
}
.mq-step.done .ic { background: linear-gradient(135deg, var(--mq-teal-d), var(--mq-teal-l)); }
.mq-step .l { font-size: .74rem; font-weight: 800; color: var(--mq-navy); }
.mq-step .r { font-size: .64rem; font-weight: 700; color: var(--mq-gray); }
.mq-step:not(:last-child)::after {
    content: ""; position: absolute; top: 21px; right: -12px; width: 16px; height: 2px; background: var(--mq-teal-l);
}

/* ── Intérim : pointage ── */
.mq-pt { display: grid; grid-template-columns: 74px repeat(5, 1fr); gap: 5px; padding: 14px 16px; align-items: center; }
.mq-pt .h { text-align: center; font-size: .68rem; font-weight: 800; color: var(--mq-gray); }
.mq-pt .n { font-size: .74rem; font-weight: 800; color: var(--mq-navy); }
.mq-pt .c {
    height: 26px; border-radius: 7px; background: #dff5f1; color: var(--mq-teal-d);
    display: flex; align-items: center; justify-content: center; font-size: .74rem; font-weight: 800;
}
.mq-pt .c.sup { background: #fff1d9; color: #9a5a05; }

/* ── Apparition échelonnée ── */
.mq [data-mq] {
    opacity: 0;
    transform: translateY(14px);
    animation: mq-in .55s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: calc(var(--d, 0) * 1ms + 250ms);
}
.mq .mq-float[data-mq] { animation-name: mq-pop; }

@keyframes mq-in { to { opacity: 1; transform: none; } }
@keyframes mq-pop {
    0% { opacity: 0; transform: translateY(16px) scale(.92); }
    100% { opacity: 1; transform: none; }
}

/* Légère flottaison des encarts une fois en place */
.mq .mq-float.flt { animation: mq-pop .55s cubic-bezier(.22,1,.36,1) forwards, mq-flt 5s ease-in-out 1.4s infinite alternate; }
@keyframes mq-flt { from { translate: 0 0; } to { translate: 0 -6px; } }

@media (max-width: 575.98px) {
    .mq { padding: 44px 6px 46px; font-size: 92%; }
    .mq-row { padding: 7px 12px; font-size: .78rem; }
    .mq-row small { display: none; }
    .mq-float { max-width: 78%; font-size: .74rem; padding: 8px 11px; }
    .mq-float.tr { right: 0; } .mq-float.bl { left: 0; } .mq-float.br { right: 0; }
    .mq-kpis { gap: 6px; padding: 10px; }
    .mq-kpi .v { font-size: 1.05rem; }
    .mq-chain { padding: 12px 8px; }
    .mq-step .r { display: none; }
    .mq-pt { grid-template-columns: 62px repeat(5, 1fr); padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .mq [data-mq], .mq .mq-float.flt { animation: none; opacity: 1; transform: none; }
}
