/* formation.css -- shared look for the animated user-login training pages.
   Two layers:
     1. the training page itself (header, scene chips, caption, big buttons) -- light, friendly, phone-first
     2. the simulated site inside the "device" (.m-* classes) -- a faithful, simplified copy of the real UI
   Nothing here talks to the real site: every screen is a picture built from plain HTML. */

:root {
    --page-bg: #eef2f7;
    --card: #ffffff;
    --ink: #1e293b;
    --ink-soft: #475569;
    --line: #d5dde8;
    --brand: #b91c1c;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --green: #16a34a;
    --amber: #d97706;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--page-bg); color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 18px; line-height: 1.5;
}

/* ---------- page chrome ---------- */
.f-top { background: #000; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.f-top img { height: 34px; width: auto; display: block; }
.f-top .f-tag { color: #cbd5e1; font-weight: 700; font-size: 0.95rem; letter-spacing: .04em; margin-left: auto; text-align: right; }

.f-wrap { max-width: 1120px; margin: 0 auto; padding: 16px 14px 40px; }
.f-title { font-size: 1.7rem; font-weight: 800; margin: 6px 0 2px; line-height: 1.2; }
.f-sub { color: var(--ink-soft); margin: 0 0 14px; font-size: 1.02rem; }

.f-scenes { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.f-chip {
    flex: 0 0 auto; border: 2px solid var(--line); background: var(--card); color: var(--ink);
    border-radius: 999px; padding: 8px 14px; font-size: 0.92rem; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
}
.f-chip .n { background: #e2e8f0; color: #334155; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.f-chip.done .n { background: #bbf7d0; color: #166534; }
.f-chip.on { border-color: var(--blue); background: #eff6ff; color: var(--blue-dark); }
.f-chip.on .n { background: var(--blue); color: #fff; }

.f-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.f-seg { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.f-seg button { border: 0; background: transparent; padding: 8px 14px; font-weight: 700; font-size: 0.92rem; cursor: pointer; color: var(--ink-soft); font-family: inherit; }
.f-seg button.on { background: var(--blue); color: #fff; }
.f-tools .lbl { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.f-grid { display: block; }
.f-stagecol { min-width: 0; }

/* ---------- device (browser or phone) ---------- */
.f-stagewrap { display: flex; justify-content: center; }
.device {
    width: 100%; background: #1f2937; border-radius: 16px; padding: 0; overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15,23,42,.5);
}
.device.mobile { max-width: 380px; border-radius: 34px; padding: 12px 10px 14px; background: #0f172a; }
.device .bar { background: #334155; padding: 8px 12px; display: flex; align-items: center; gap: 8px; }
.device .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.device .bar i:nth-child(1) { background: #f87171; }
.device .bar i:nth-child(2) { background: #fbbf24; }
.device .bar i:nth-child(3) { background: #4ade80; }
.device .bar .url { flex: 1; background: #1e293b; color: #cbd5e1; border-radius: 8px; padding: 4px 12px; font-size: 0.8rem; margin-left: 10px; font-family: Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device.mobile .bar { display: none; }
.device .notch { display: none; }
.device.mobile .notch { display: block; width: 90px; height: 5px; border-radius: 3px; background: #334155; margin: 0 auto 10px; }
.viewport { position: relative; overflow: hidden; background: #0b1220; }
.device.mobile .viewport { border-radius: 22px; }
.screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #0b1220; }

/* the pointer: arrow on a computer, finger dot on a phone */
.m-cursor { position: absolute; z-index: 9000; pointer-events: none; left: 0; top: 0; width: 0; height: 0; transition: transform .7s cubic-bezier(.3,.7,.3,1); }
.m-cursor svg { position: absolute; left: -3px; top: -2px; width: 30px; height: 30px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.55)); }
.m-cursor .finger { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; background: rgba(250, 204, 21, .55); border: 3px solid #facc15; box-shadow: 0 0 0 4px rgba(250,204,21,.25); display: none; }
.dev-mobile .m-cursor svg { display: none; }
.dev-mobile .m-cursor .finger { display: block; }
.m-ripple { position: absolute; z-index: 8999; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 4px solid #facc15; pointer-events: none; animation: m-rip .6s ease-out forwards; }
@keyframes m-rip { from { transform: scale(.4); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.m-ring { position: absolute; z-index: 8990; border: 4px solid #facc15; border-radius: 12px; box-shadow: 0 0 0 6px rgba(250,204,21,.25), 0 0 26px rgba(250,204,21,.6); pointer-events: none; animation: m-pulse 1.1s ease-in-out infinite; }
@keyframes m-pulse { 50% { box-shadow: 0 0 0 12px rgba(250,204,21,.12), 0 0 34px rgba(250,204,21,.85); } }

/* ---------- caption + controls ---------- */
.f-caption { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 14px; min-height: 118px; }
.f-caption .k { font-size: 0.82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.f-caption .say { font-size: 1.16rem; font-weight: 600; line-height: 1.5; }
.f-caption .say b { color: var(--brand); }
.f-caption .say .kbd { background: #e2e8f0; border-radius: 6px; padding: 1px 8px; font-weight: 700; white-space: nowrap; }
.f-caption .say .warn { display: block; margin-top: 8px; background: #fff7ed; border-left: 5px solid var(--amber); padding: 8px 12px; border-radius: 6px; font-size: 1rem; font-weight: 600; }
.f-caption .say .tip { display: block; margin-top: 8px; background: #ecfdf5; border-left: 5px solid var(--green); padding: 8px 12px; border-radius: 6px; font-size: 1rem; font-weight: 600; }

.f-ctl { display: flex; gap: 10px; margin-top: 12px; }
.f-btn {
    flex: 1; border: 0; border-radius: 14px; padding: 15px 10px; font-size: 1.05rem; font-weight: 800; cursor: pointer;
    background: #e2e8f0; color: #1e293b; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.f-btn.main { background: var(--blue); color: #fff; flex: 1.5; }
.f-btn:disabled { opacity: .4; cursor: default; }
.f-btn:active:not(:disabled) { transform: translateY(1px); }
.f-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.f-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; display: inline-block; }
.f-dots i.on { background: var(--blue); transform: scale(1.3); }
.f-dots i.done { background: #86efac; }

.f-end { display: none; margin-top: 16px; background: #ecfdf5; border: 2px solid #86efac; border-radius: 16px; padding: 16px; }
.f-end.on { display: block; }
.f-end h3 { margin: 0 0 6px; }
.f-foot { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 26px; }

@media (min-width: 900px) {
    .f-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
    .f-caption { margin-top: 0; }
    .f-side { position: sticky; top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .m-cursor { transition: none; }
    .m-ring { animation: none; }
}

/* =====================================================================
   THE SIMULATED SITE  (.m-*)   -- dark theme like the real one
   ===================================================================== */
.screen { font-family: "Segoe UI", system-ui, Arial, sans-serif; color: #e5e7eb; }
.screen * { box-sizing: border-box; }
.m-page { position: absolute; inset: 0; overflow: hidden; }

/* ----- header (desktop) ----- */
.m-hdr { height: 54px; background: #000; display: flex; align-items: center; padding: 0 14px; gap: 14px; border-bottom: 1px solid #1f2937; position: relative; z-index: 20; }
.m-hdr img { height: 30px; display: block; }
.m-nav { display: flex; gap: 8px; }
.m-navbtn { background: #1f2937; border: 1px solid #374151; color: #f3f4f6; font-size: 11px; font-weight: 800; padding: 8px 10px; border-radius: 6px; white-space: nowrap; letter-spacing: .02em; }
.m-navbtn.open { background: #374151; }
.m-login { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 18px; border-radius: 17px; background: linear-gradient(#3b82f6, #1d4ed8); color: #fff; font-weight: 800; font-size: 12px; border: 1px solid #1e40af; box-shadow: 0 3px 0 #1e3a8a; white-space: nowrap; }
.m-user { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: #f8fafc; white-space: nowrap; }
.m-user .nm { background: #1f2937; border: 1px solid #374151; padding: 7px 12px; border-radius: 17px; }
.m-user .lo { color: #93c5fd; text-decoration: underline; font-size: 12px; }

/* dropdown panel */
.m-dd { position: absolute; z-index: 30; background: #111827; border: 1px solid #374151; border-radius: 8px; padding: 6px; width: 290px; box-shadow: 0 16px 30px rgba(0,0,0,.6); display: none; }
.m-dd.on { display: block; }
.m-dd .it { padding: 7px 10px; font-size: 12px; font-weight: 600; color: #f3f4f6; border-radius: 5px; position: relative; }
.m-dd .it.hub { border-left: 4px solid #3b82f6; color: #93c5fd; }
.m-dd .hr { height: 1px; background: #1f2937; margin: 3px 0; }
.m-lock { opacity: .4; filter: grayscale(1); position: relative; }
.m-dd .it.m-lock::after { content: "\1F512"; position: absolute; right: 8px; top: 6px; filter: none; font-size: 11px; }
.m-tip { position: absolute; z-index: 9500; background: #0f172a; color: #fff; border: 1px solid #64748b; padding: 7px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.6); white-space: nowrap; }

/* ----- header (mobile) + drawer ----- */
.m-mhdr { height: 52px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; position: relative; z-index: 20; border-bottom: 1px solid #1f2937; }
.m-mhdr img { height: 28px; }
.m-burger { border: 2px solid #e5e7eb; border-radius: 6px; padding: 6px 8px; width: 38px; }
.m-burger i { display: block; height: 3px; background: #e5e7eb; margin: 3px 0; border-radius: 2px; }
.m-drawer { position: absolute; z-index: 40; top: 52px; right: 0; bottom: 0; width: 82%; background: #111827; border-left: 1px solid #374151; transform: translateX(105%); transition: transform .35s ease; overflow: hidden; }
.m-drawer.on { transform: translateX(0); }
.m-drawer .dl { padding: 13px 16px; font-size: 13px; font-weight: 700; color: #f3f4f6; border-bottom: 1px solid #1f2937; }
.m-drawer .dl.sub { padding-left: 30px; font-weight: 600; font-size: 12.5px; background: #0b1220; }
.m-drawer .dl.who { background: #0f172a; }
.m-drawer .dl.who .nm { font-size: 14px; }
.m-drawer .dl.who a { color: #93c5fd; font-size: 12px; margin-right: 14px; }
.m-drawer .dl.m-lock::after { content: "\1F512"; float: right; filter: none; }
.m-drawer .m-login { margin: 4px 0; }
.m-shade { position: absolute; inset: 52px 0 0 0; background: rgba(0,0,0,.55); z-index: 35; display: none; }
.m-shade.on { display: block; }

/* ----- home ----- */
.m-home { padding: 14px 18px; height: calc(100% - 54px); overflow: hidden; background: radial-gradient(circle at 50% -10%, #1b2a4a, #0b1220 60%); position: relative; }
.dev-mobile .m-home { height: calc(100% - 52px); padding: 10px 10px; }
.m-h1 { text-align: center; font-size: 30px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: #f8fafc; margin: 4px 0 2px; text-shadow: 0 3px 0 #334155; }
.dev-mobile .m-h1 { font-size: 20px; }
.m-h1s { text-align: center; color: #94a3b8; font-size: 11px; letter-spacing: .3em; font-weight: 800; margin-bottom: 10px; }
.m-lang { position: absolute; right: 18px; top: 10px; display: inline-flex; border: 1px solid #334155; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 800; background: #0f172a; }
.m-lang span { padding: 4px 10px; color: #94a3b8; }
.m-lang span.on { background: #1e3a8a; color: #dbeafe; }
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.dev-mobile .m-tiles { grid-template-columns: repeat(2, 1fr); gap: 7px; }
.m-tile { background: linear-gradient(#182236, #111a2b); border: 1px solid #263349; border-left: 4px solid #22c55e; border-radius: 10px; padding: 9px 10px; min-height: 58px; display: flex; align-items: center; gap: 9px; position: relative; }
.m-tile .ic { font-size: 22px; }
.m-tile .tt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: #f1f5f9; line-height: 1.15; }
.m-tile.y { border-left-color: #eab308; } .m-tile.p { border-left-color: #a855f7; } .m-tile.r { border-left-color: #ef4444; } .m-tile.b { border-left-color: #3b82f6; }
.m-tile.wide { grid-column: 1 / -1; background: linear-gradient(145deg, #1e3a8a, #172554); justify-content: center; }
.m-tile.m-lock::after { content: "\1F512"; position: absolute; right: 8px; top: 6px; filter: none; font-size: 13px; }
.dev-mobile .m-tile { padding: 7px 8px; min-height: 50px; } .dev-mobile .m-tile .tt { font-size: 10px; } .dev-mobile .m-tile .ic { font-size: 18px; }

/* ----- modals & gates ----- */
.m-overlay { position: absolute; inset: 0; z-index: 60; background: rgba(2, 6, 23, .82); display: flex; align-items: center; justify-content: center; padding: 14px; }
.m-overlay.solid { background: #0f172a; }
.m-card { background: #fff; color: #111827; width: 100%; max-width: 330px; border-radius: 10px; padding: 20px 22px; box-shadow: 0 25px 50px rgba(0,0,0,.5); position: relative; }
.dev-mobile .m-card { max-width: 320px; padding: 16px 16px; }
.m-card h2 { margin: 6px 0 4px; text-align: center; text-transform: uppercase; letter-spacing: .07em; font-size: 20px; font-weight: 800; color: #1f2937; }
.m-card .sub { text-align: center; color: #6b7280; font-size: 12px; margin-bottom: 14px; }
.m-card .pill { display: flex; justify-content: center; gap: 6px; margin-bottom: 6px; }
.m-card .pill span { font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #f3f4f6; border: 1px solid #d1d5db; color: #6b7280; }
.m-card .pill span.on { background: #2563eb; border-color: #2563eb; color: #fff; }
.m-card .x { position: absolute; right: 12px; top: 8px; color: #9ca3af; font-size: 18px; }
.m-input { display: block; width: 100%; border: 2px solid #d1d5db; border-radius: 5px; padding: 9px 10px; margin-bottom: 10px; font-size: 14px; background: #fff; color: #111827; min-height: 40px; position: relative; }
.m-input .ph { color: #9ca3af; }
.m-input.foc { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.m-input.foc .val::after { content: "|"; color: #2563eb; animation: m-blink 1s steps(1) infinite; }
@keyframes m-blink { 50% { opacity: 0; } }
.m-input.lockd { background: #f3f4f6; color: #4b5563; }
.m-btn { display: block; width: 100%; border-radius: 6px; padding: 10px; text-align: center; font-weight: 800; font-size: 13px; color: #fff; background: #2563eb; box-shadow: 0 2px 4px rgba(0,0,0,.25); text-transform: uppercase; letter-spacing: .04em; }
.m-btn.green { background: #16a34a; } .m-btn.gray { background: #e5e7eb; color: #374151; } .m-btn.red { background: #dc2626; }
.m-btn.press { transform: translateY(2px); filter: brightness(.9); }
.m-link { text-align: center; font-size: 12px; font-weight: 800; color: #2563eb; margin-top: 10px; }
.m-link.gr { color: #6b7280; }
.m-err { color: #ef4444; font-weight: 800; font-size: 12.5px; margin: -2px 0 10px; }
.m-ok { color: #16a34a; font-weight: 800; font-size: 13px; margin: 0 0 10px; }
.m-hidden { display: none !important; }
.m-lbl { display: block; font-size: 10.5px; font-weight: 800; color: #6b7280; text-transform: uppercase; margin-bottom: 4px; letter-spacing: .03em; }
.m-chk { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #374151; margin-bottom: 7px; }
.m-chk .box { width: 18px; height: 18px; border: 2px solid #9ca3af; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1; color: #fff; background: #fff; flex: 0 0 auto; }
.m-chk .box.on { background: #2563eb; border-color: #2563eb; }
.m-hr { border: 0; border-top: 1px solid #e5e7eb; margin: 12px 0; }
.m-row { display: flex; gap: 8px; }
.m-row > * { flex: 1; }

/* ----- generic mock page ----- */
.m-body { padding: 14px 16px; height: calc(100% - 54px); overflow: hidden; background: #0f172a; position: relative; }
.dev-mobile .m-body { height: calc(100% - 52px); padding: 10px 10px; }
.m-ptitle { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: #f8fafc; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dev-mobile .m-ptitle { font-size: 14px; }
.m-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.m-tog { display: inline-flex; border: 2px solid #374151; border-radius: 8px; overflow: hidden; }
.m-tog span { padding: 6px 12px; font-size: 10.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; background: #1f2937; color: #9ca3af; }
.m-tog span.on { background: #2563eb; color: #fff; }
.m-pill { display: inline-block; padding: 7px 12px; border-radius: 8px; background: #1e40af; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.m-pill.amber { background: #b45309; } .m-pill.gray { background: #374151; } .m-pill.green { background: #15803d; } .m-pill.purple { background: #7e22ce; }
.m-field { margin-bottom: 9px; }
.m-field .m-lbl { color: #9ca3af; }
.m-field .m-input { margin: 0; background: #1f2937; border-color: #374151; color: #f9fafb; }
.m-field .m-input.lockd { background: #172033; color: #93c5fd; }
.m-field .m-input.lockd::after { content: "\1F512"; position: absolute; right: 10px; top: 8px; font-size: 13px; }
.m-list { display: flex; flex-direction: column; gap: 7px; }
.m-order { background: #1e293b; border: 1px solid #334155; border-left: 5px solid #3b82f6; border-radius: 8px; padding: 9px 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.m-order .id { font-weight: 900; color: #93c5fd; min-width: 74px; }
.m-order .who { margin-left: auto; font-size: 11px; color: #cbd5e1; font-weight: 700; white-space: nowrap; }
.m-order .what { color: #e2e8f0; font-weight: 600; }
.m-order.mine { border-left-color: #22c55e; }
.m-tag { font-size: 9.5px; font-weight: 900; padding: 2px 7px; border-radius: 5px; background: #14532d; color: #bbf7d0; text-transform: uppercase; letter-spacing: .05em; }
.m-empty { color: #64748b; text-align: center; padding: 26px; font-weight: 700; }
.m-modalbig { background: #fff; color: #111827; border-radius: 12px; width: 100%; max-width: 640px; padding: 16px 18px; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.dev-mobile .m-modalbig { padding: 12px; }
.m-modalbig h2 { margin: 0 0 8px; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.m-modalbig .m-order { background: #f8fafc; border-color: #e2e8f0; color: #1f2937; } .m-modalbig .m-order .id { color: #1d4ed8; } .m-modalbig .m-order .what { color: #334155; } .m-modalbig .m-order .who { color: #475569; }
.m-modalbig .m-tog span { background: #f3f4f6; color: #6b7280; } .m-modalbig .m-tog span.on { background: #2563eb; color: #fff; }
.m-modalbig .m-tog { border-color: #d1d5db; }

/* ----- role pages ----- */
.m-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dev-mobile .m-cards3 { grid-template-columns: repeat(3, 1fr); gap: 5px; }
.m-stat { border-radius: 10px; padding: 10px; text-align: center; color: #fff; }
.m-stat b { display: block; font-size: 24px; font-weight: 900; } .m-stat span { font-size: 9.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.m-stat.b { background: #2563eb; } .m-stat.y { background: #ca8a04; } .m-stat.g { background: #16a34a; }
.m-hub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dev-mobile .m-hub { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.m-hubc { background: #f1f5f9; color: #1f2937; border-radius: 9px; padding: 9px 10px; font-size: 12px; font-weight: 800; border: 1px solid #cbd5e1; }
.m-hubc small { display: block; font-weight: 600; color: #64748b; font-size: 10px; }
.m-hubc.dk { background: #374151; color: #f9fafb; } .m-hubc.dk small { color: #9ca3af; }
.m-sect { color: #94a3b8; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; margin: 10px 0 6px; border-bottom: 2px solid #334155; padding-bottom: 3px; }

.m-white { background: #f3f4f6; color: #111827; }
.m-mag { background: #f3f4f6; position: absolute; inset: 0; color: #111827; }
.m-magbar { background: #1f2937; color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; font-size: 14px; }
.m-magbar .r { margin-left: auto; color: #f87171; font-size: 12px; }
.m-mcard { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin: 10px 12px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.m-mcard .hd { background: #f3e8ff; padding: 10px 12px; border-bottom: 1px solid #e9d5ff; }
.m-mcard .hd b { color: #581c87; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; display: block; }
.m-mcard .hd span { color: #7e22ce; font-size: 11.5px; font-weight: 700; }
.m-mcard .ln { padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #f1f5f9; font-size: 13px; font-weight: 700; color: #374151; }
.m-mcard .ln .q { background: #f3f4f6; border: 1px solid #e5e7eb; padding: 2px 9px; border-radius: 5px; font-weight: 900; }
.m-mcard .ln .go { margin-left: auto; border: 2px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 11px; font-weight: 900; color: #9ca3af; background: #f3f4f6; letter-spacing: .04em; }
.m-mcard .ln .go.rdy { background: #22c55e; border-color: #16a34a; color: #fff; }
.m-mcard.okc { background: #dcfce7; border: 2px solid #22c55e; }
.m-mcard.okc .hd { background: #dcfce7; border: 0; } .m-mcard.okc .hd b { color: #14532d; } .m-mcard.okc .hd span { color: #166534; }

.m-dash { background: #111827; }
.m-dcard { background: #1f2937; border-radius: 10px; border-left: 8px solid #dc2626; padding: 10px 12px; margin-bottom: 8px; font-size: 12px; }
.m-dcard.y { border-left-color: #eab308; } .m-dcard.g { border-left-color: #16a34a; }
.m-dcard b { font-size: 13px; color: #f8fafc; }
.m-dcard .bt { display: flex; gap: 8px; margin-top: 8px; }
.m-dcard .bt span { flex: 1; text-align: center; font-weight: 900; font-size: 11px; padding: 9px 4px; border-radius: 8px; letter-spacing: .05em; }
.m-dcard .bt .a { background: #dc2626; color: #fff; } .m-dcard .bt .b { background: #ca8a04; color: #fff; } .m-dcard .bt .c { background: #374151; color: #9ca3af; } .m-dcard .bt .d { background: #16a34a; color: #fff; }
.m-legend { display: flex; gap: 12px; font-size: 10.5px; font-weight: 800; color: #cbd5e1; margin: 6px 0 10px; flex-wrap: wrap; }
.m-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.m-floatbadge { position: absolute; z-index: 25; right: 10px; top: 8px; background: #1f2937; color: #fff; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 14px rgba(0,0,0,.5); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.m-floatbadge a { color: #93c5fd; text-decoration: underline; }
.m-select { display: inline-block; background: #1f2937; border: 2px solid #374151; color: #fff; font-weight: 900; font-size: 11px; padding: 6px 10px; border-radius: 8px; letter-spacing: .08em; }

.m-inv { background: #f3f4f6; position: absolute; inset: 0; color: #111827; }
.m-invbar { background: #1f2937; color: #fff; padding: 10px 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.m-invbody { padding: 12px; }
.m-loc { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; font-weight: 800; color: #1f2937; font-size: 14px; }
.m-lockbtn { display: inline-block; background: #111827; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; padding: 8px 16px; border-radius: 7px; text-transform: uppercase; }
.m-urlnote { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; background: rgba(15,23,42,.9); color: #cbd5e1; font-size: 12px; padding: 6px 12px; text-align: center; }

/* ----- extras used by the scenes ----- */
.device.mobile .bar { display: flex; padding: 6px 8px; background: #1e293b; margin: 0 4px 8px; border-radius: 12px; }
.device.mobile .bar i { display: none; }
.device.mobile .bar .url { margin-left: 0; font-size: 0.72rem; text-align: center; }
.mineonly .oth { display: none; }
.m-subs .dl.sub { background: #0b1220; }
.m-alert { background: #f3f4f6; color: #111827; border-radius: 10px; width: 100%; max-width: 330px; box-shadow: 0 20px 40px rgba(0,0,0,.6); border: 1px solid #9ca3af; overflow: hidden; }
.m-alert .h { padding: 10px 14px 0; font-size: 12px; color: #4b5563; font-weight: 700; }
.m-alert .b { padding: 6px 14px 14px; font-size: 13.5px; line-height: 1.4; }
.m-alert .ok { margin: 0 14px 14px auto; width: 80px; text-align: center; background: #2563eb; color: #fff; font-weight: 700; padding: 7px; border-radius: 6px; font-size: 13px; }
.m-alert .ok.press { filter: brightness(.85); }
.m-hubc.press, .m-tile.press, .m-order.press, .m-pill.press, .m-tog span.press, .m-lockbtn.press, .m-mcard .go.press { filter: brightness(1.3); }

/* header fit (desktop mock is 980px wide) */
.m-hdr { gap: 10px; padding: 0 10px; }
.m-hdr img { height: 26px; flex: 0 0 auto; }
.m-nav { gap: 5px; margin-left: auto; }
.m-navbtn { padding: 8px 8px; font-size: 10.5px; }
.m-login { padding: 0 14px; }
/* desktop mock: show only the logo mark + name (the phone number in the picture is cropped) so the
   header still fits once a long "Prénom Nom" badge replaces the login button */
.m-hdr img { width: 92px; height: 26px; object-fit: cover; object-position: left center; }

/* small phones */
@media (max-width: 600px) {
    .f-top .f-tag { display: none; }
    .f-title { font-size: 1.45rem; }
    .f-caption .say { font-size: 1.1rem; }
}
.dev-mobile .m-lang { position: static; display: flex; width: max-content; margin: 0 0 6px auto; }

/* phones and small tablets: keep the caption + buttons pinned to the bottom so the person can
   watch the animation and read the words without scrolling back and forth */
@media (max-width: 899px) {
    .f-side { position: sticky; bottom: 0; z-index: 50; background: linear-gradient(to top, var(--page-bg) 86%, rgba(238,242,247,0)); padding: 12px 0 8px; margin-top: 4px; }
    .f-caption { min-height: 0; margin-top: 0; padding: 10px 14px; box-shadow: 0 -6px 16px rgba(15,23,42,.14); }
    .f-caption .k { font-size: .72rem; }
    .f-caption .say { font-size: 1.02rem; line-height: 1.4; }
    .f-caption .say .warn, .f-caption .say .tip { font-size: .95rem; padding: 6px 10px; margin-top: 6px; }
    .f-ctl { margin-top: 8px; }
    .f-btn { padding: 11px 6px; font-size: .98rem; }
    .f-ctl2, .f-dots { display: none; }
    .dev-mobile .m-tile { min-height: 44px; }
    .dev-mobile .m-tiles { gap: 6px; }
}
.f-btn { white-space: nowrap; }
@media (max-width: 480px) { .f-btn { font-size: .9rem; padding-left: 4px; padding-right: 4px; } }
.m-tile.m-lock .tt { padding-right: 16px; }

/* wide screens: give the picture more room */
.f-wrap { max-width: 1280px; }
@media (min-width: 900px) { .f-grid { grid-template-columns: minmax(0, 1fr) 340px; } }

/* ---------- spotlight, pointer trail, start button ---------- */
.m-ring.dim {
    animation: m-dimin .35s ease-out both;
    box-shadow: 0 0 0 4px rgba(250,204,21,.35), 0 0 22px rgba(250,204,21,.75), 0 0 0 4000px rgba(2,6,23,.55);
}
@keyframes m-dimin { from { opacity: 0; } to { opacity: 1; } }
.m-trail { position: absolute; z-index: 8995; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: rgba(250,204,21,.7); pointer-events: none; animation: m-trailfade .8s ease-out forwards; }
@keyframes m-trailfade { from { transform: scale(1); opacity: .8; } to { transform: scale(.2); opacity: 0; } }
.m-cursor svg { width: 40px; height: 40px; }

.f-start {
    position: absolute; inset: 0; z-index: 9500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: rgba(2, 6, 23, .72); padding: 20px; text-align: center;
}
.f-startbtn {
    border: 0; border-radius: 999px; padding: 18px 30px; font-size: 1.25rem; font-weight: 800; cursor: pointer; font-family: inherit;
    background: #facc15; color: #1e293b; box-shadow: 0 6px 0 #a16207, 0 12px 24px rgba(0,0,0,.4);
}
.f-startbtn:active { transform: translateY(3px); box-shadow: 0 3px 0 #a16207; }
.f-startsub { color: #e2e8f0; font-weight: 600; font-size: 1rem; max-width: 26em; }
/* formation-realpages.css -- the "real page" look (light panel on the dark site, black title banner, white cards),
   modelled on photos of PlaceRequestV2 / its pending-requests window / OrderViewer / EntrepotV2.
   Loaded after formation.css. */

/* header: full logo (with the phone number) + name and Logout stacked like the real site */
.m-hdr img { width: auto; height: 26px; object-fit: fill; }
.m-user { flex-direction: column; align-items: flex-start; gap: 1px; }
.m-user .nm { background: none; border: 0; padding: 0; font-size: 11px; font-weight: 800; }
.m-user .lo { font-size: 10px; }

.m-lp { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; background: #0b1220; padding: 12px 30px 0; overflow: hidden; }
.dev-mobile .m-lp { top: 52px; padding: 8px 6px 0; }
.m-lpin { background: #f3f4f6; height: 100%; border-radius: 6px 6px 0 0; padding: 14px 18px; overflow: hidden; color: #111827; }
.dev-mobile .m-lpin { padding: 8px; }
.m-banner { background: #0d1117; border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 14px; color: #fff; }
.dev-mobile .m-banner { flex-wrap: wrap; }
.m-bbtn { font-size: 10px; font-weight: 800; padding: 8px 12px; border-radius: 6px; color: #fff; background: #2563eb; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; box-shadow: 0 2px 0 #1e40af; }
.m-bbtn.red { background: #dc2626; box-shadow: 0 2px 0 #991b1b; }
.m-bbtn.press, .m-tog span.press { filter: brightness(1.25); }
.m-bt { flex: 1; text-align: center; }
.m-bt b { display: block; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.dev-mobile .m-bt b { font-size: 15px; }
.m-bt small { display: block; font-size: 10px; color: #cbd5e1; margin-top: 2px; }
.m-lang2 { display: inline-flex; border-radius: 6px; overflow: hidden; font-size: 10px; font-weight: 800; background: #fff; }
.m-lang2 i { font-style: normal; padding: 6px 10px; color: #4b5563; }
.m-lang2 i.on { background: #dbeafe; color: #1e40af; }
.m-wbtn { background: #e5e7eb; color: #1f2937; font-size: 10.5px; font-weight: 700; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.m-tabs { display: flex; margin: 14px 0 10px; border-bottom: 1px solid #e5e7eb; }
.m-tabs span { flex: 1; text-align: center; padding: 10px; font-size: 13px; font-weight: 800; color: #374151; }
.m-tabs span.on { color: #2563eb; border-bottom: 3px solid #2563eb; }
.m-card2 { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.m-card2 h4 { margin: 0 0 10px; font-size: 15px; color: #1f2937; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; }
.m-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 30px; }
.dev-mobile .m-cols { grid-template-columns: 1fr; }
.m-f { margin-bottom: 8px; }
.m-f label { display: block; font-size: 8.5px; font-weight: 800; color: #6b7280; text-transform: uppercase; margin-bottom: 3px; }
.m-f .v { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 5px; padding: 8px 10px; font-size: 12px; color: #9ca3af; min-height: 32px; text-transform: uppercase; }
.m-f .v.set { color: #111827; text-transform: none; }
.m-f .v.lock { background: #d1d5db; color: #111827; text-transform: none; }

/* pending-requests window */
.m-pm { background: #fff; color: #111827; border-radius: 10px; width: 100%; max-width: 900px; padding: 14px 18px; box-shadow: 0 25px 50px rgba(0,0,0,.55); }
.m-pm .hd { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; margin-bottom: 10px; position: relative; }
.m-pm .hd b { font-size: 17px; letter-spacing: .02em; }
.m-pm .hd small { color: #6b7280; font-size: 11px; }
.m-pm .hd .x { position: absolute; right: 0; top: 0; color: #dc2626; font-size: 18px; }
.m-pm .tg { margin-bottom: 10px; }
.m-pm .m-tog { border-color: #d1d5db; }
.m-pm .m-tog span { background: #f3f4f6; color: #374151; }
.m-pm .m-tog span.on { background: #2563eb; color: #fff; }
.m-pm table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.m-pm th { background: #f1f5f9; text-align: left; padding: 8px 10px; font-size: 10px; color: #475569; letter-spacing: .04em; }
.m-pm td { padding: 9px 10px; border-bottom: 1px solid #e5e7eb; color: #374151; }
.m-pm td.id { color: #1d4ed8; font-weight: 800; }
.m-pm .ab { display: inline-block; font-size: 9px; font-weight: 800; padding: 5px 8px; border-radius: 5px; }
.m-pm .ab.a1 { background: #fde9c3; color: #92400e; }
.m-pm .ab.a2 { background: #dbeafe; color: #1d4ed8; }
.m-pm .ft { text-align: right; margin-top: 10px; }
.m-btn.dk { background: #4b5563; text-transform: none; font-size: 12px; }

/* order viewer */
.m-obanner { background: #0d1117; border-radius: 10px; padding: 12px 16px; color: #fff; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.m-obanner .t { width: 215px; }
.m-obanner .t b { display: block; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; }
.m-obanner .t small { font-size: 8.5px; color: #9ca3af; text-transform: uppercase; }
.m-leg { display: flex; gap: 9px; font-size: 9.5px; font-weight: 700; }
.m-leg i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.m-filter { border: 1px solid #6b7280; border-radius: 6px; padding: 6px 9px; font-size: 9.5px; color: #e5e7eb; white-space: nowrap; }
.m-filter small { color: #9ca3af; font-size: 8px; margin-right: 3px; }
.m-ohead { display: flex; align-items: center; gap: 8px; margin: 12px 0 8px; color: #b91c1c; font-weight: 900; font-size: 15px; text-transform: uppercase; border-bottom: 2px solid #dc2626; padding-bottom: 6px; }
.m-ohead .dot { width: 15px; height: 15px; border-radius: 50%; background: #dc2626; }
.m-ohead .n { font-size: 10px; background: #e5e7eb; color: #374151; border-radius: 999px; padding: 1px 7px; }
.m-ogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.dev-mobile .m-ogrid { grid-template-columns: 1fr; }
.m-oc { background: #fff; border-top: 5px solid #dc2626; box-shadow: 0 1px 4px rgba(0,0,0,.18); border-radius: 4px; font-size: 9.5px; color: #374151; overflow: hidden; }
.m-oc .hd { background: #faf4ee; padding: 8px 10px; display: flex; justify-content: space-between; gap: 6px; }
.m-oc .hd b { font-size: 11px; color: #111827; }
.m-oc .dm { background: #dbeafe; color: #1d4ed8; font-weight: 800; padding: 1px 6px; border-radius: 4px; font-size: 8.5px; }
.m-oc .pj { color: #1d4ed8; font-weight: 700; margin-top: 3px; }
.m-oc .tags { text-align: right; font-size: 8px; font-weight: 800; }
.m-oc .tg1 { color: #b91c1c; background: #fee2e2; padding: 2px 6px; border-radius: 4px; display: inline-block; }
.m-oc .tg2 { color: #9ca3af; display: block; margin-top: 4px; }
.m-oc .bd { padding: 8px 10px; }
.m-oc small { color: #6b7280; font-size: 8px; font-weight: 800; }
.m-oc .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 4px; }
.m-oc .g1 { margin-bottom: 4px; }
.m-oc .bl { color: #1d4ed8; font-weight: 700; }
.m-oc .gr { color: #166534; }
.m-oc table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 8.5px; }
.m-oc th { background: #e5e7eb; text-align: left; padding: 3px 4px; font-size: 7.5px; }
.m-oc td { padding: 4px; border-bottom: 1px solid #f1f5f9; }
.m-oc td.z { color: #9ca3af; }
.m-oc .pr { text-align: center; margin-top: 8px; padding: 6px; border-radius: 5px; background: #f3f4f6; color: #1e3a8a; font-weight: 800; font-size: 10px; box-shadow: 0 2px 0 #d1d5db; }

/* Entrepôt Jean-Brillion */
.m-eb .m-bt b { font-size: 16px; letter-spacing: .08em; }
.m-esec { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; margin-top: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.m-esec h4 { margin: 0; font-size: 12.5px; letter-spacing: .04em; color: #1f2937; display: flex; justify-content: space-between; }
.m-esec h4 .sh { color: #2563eb; font-size: 10px; }
.m-search { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 5px; padding: 9px 10px; font-size: 12px; color: #9ca3af; width: 290px; max-width: 100%; margin-top: 8px; }
.m-esec .sel { margin-top: 8px; font-size: 10px; color: #4b5563; }
.m-sel { display: inline-block; border: 1px solid #d1d5db; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 700; color: #111827; margin-left: 6px; }
.m-rack { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 8px; }
.dev-mobile .m-rack { grid-template-columns: repeat(4, 1fr); }
.m-rc { background: #fde68a; border-radius: 5px; padding: 5px 6px; font-size: 8px; font-weight: 800; color: #78350f; min-height: 42px; }
.m-rc b { display: inline-block; background: #fff; border-radius: 3px; padding: 0 4px; font-size: 7.5px; margin-bottom: 2px; color: #1e3a8a; }

.m-overlay.top { align-items: flex-start; padding-top: 46px; }

/* ================= phone versions (dark cards) ================= */
.mm-page { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; background: #0b1424; padding: 8px 10px; overflow: hidden; color: #f1f5f9; }
.mm-lang { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.mm-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-title b { display: block; font-size: 19px; letter-spacing: .04em; }
.mm-title small { display: block; font-size: 10.5px; color: #cbd5e1; margin-top: 2px; }
.mm-pend { text-align: right; margin: 8px 0 4px; border-top: 1px solid #334155; padding-top: 8px; }
.mm-pend .m-bbtn { font-size: 11px; padding: 9px 14px; border-radius: 8px; }
.mm-tabs { display: flex; margin: 10px 0; border-bottom: 2px solid #334155; }
.mm-tabs span { flex: 1; text-align: center; padding: 12px 6px; font-weight: 800; font-size: 12.5px; color: #94a3b8; }
.mm-tabs span.on { color: #60a5fa; background: #1e293b; border-bottom: 3px solid #3b82f6; margin-bottom: -2px; }
.mm-card { border: 1.5px solid #cbd5e1; border-radius: 12px; background: #17233a; padding: 12px; margin-bottom: 9px; }
.mm-f label { display: block; font-size: 9px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.mm-f .v { border: 1.5px solid #cbd5e1; border-radius: 8px; background: #0d1526; color: #94a3b8; padding: 10px 12px; font-size: 12.5px; text-transform: uppercase; margin: 4px 0 10px; }
.mm-f .v.set { color: #fff; text-transform: none; }

/* pending-requests window (phone) */
.mm-pm { background: #111827; border: 1.5px solid #e5e7eb; border-radius: 12px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,.6); overflow: hidden; }
.mm-pm .hd { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 14px; }
.mm-pm .hd b { display: block; font-size: 15px; color: #fff; }
.mm-pm .hd small { display: block; font-size: 10px; color: #94a3b8; margin-top: 4px; }
.mm-pm .hd .x { color: #f87171; font-size: 20px; }
.mm-pm .tg { padding: 10px 12px; background: #1e293b; border-top: 1px solid #334155; }
.mm-pm .m-tog { display: flex; border-color: #cbd5e1; border-radius: 10px; width: 100%; }
.mm-pm .m-tog span { flex: 1; text-align: center; padding: 8px 4px; }
.mm-pm .lst { padding: 4px 10px 8px; background: #1e293b; max-height: 330px; overflow: hidden; }
.mm-pc { background: #3a4457; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 9px 11px; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mm-pc .id { color: #60a5fa; font-weight: 800; font-size: 14px; }
.mm-pc .dt { border: 1px solid #94a3b8; border-radius: 6px; padding: 1px 6px; font-size: 10px; color: #cbd5e1; }
.mm-pc .pj { font-weight: 800; font-size: 12px; margin-top: 4px; color: #fff; }
.mm-pc .ad { font-size: 11px; color: #cbd5e1; }
.mm-pc .mo { background: #d97706; color: #fff; font-weight: 800; font-size: 10.5px; padding: 9px 10px; border-radius: 8px; }
.mm-pm .ft { padding: 10px 12px; border-top: 1px solid #334155; background: #111827; }
.mm-pm .ft .fm { display: block; text-align: center; background: #4b5563; color: #fff; font-weight: 800; padding: 10px; border-radius: 8px; font-size: 13px; }

/* order viewer (phone) */
.mm-scroll { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; overflow: hidden; background: #f3f4f6; }
.mm-ob { background: #111a2e; padding: 12px 12px 10px; color: #fff; }
.mm-ob .row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mm-ob .t b { display: block; font-size: 15px; letter-spacing: .07em; line-height: 1.25; }
.mm-ob .t small { display: block; font-size: 9px; color: #94a3b8; margin-top: 4px; }
.mm-filter { border: 1.5px solid #64748b; border-radius: 9px; padding: 10px 12px; margin: 10px 0 8px; font-size: 12px; font-weight: 700; background: #1a2338; }
.mm-filter small { color: #94a3b8; letter-spacing: .1em; margin-right: 4px; }
.mm-ob .m-tog { display: flex; width: 100%; border-color: #64748b; border-radius: 9px; }
.mm-ob .m-tog span { flex: 1; text-align: center; padding: 11px 4px; }
.mm-ob .row2 { display: flex; gap: 8px; margin-top: 8px; }
.mm-ob .row2 .ic { border: 1.5px solid #64748b; border-radius: 9px; padding: 9px 14px; font-size: 14px; background: #1a2338; }
.mm-ob .row2 .act { flex: 1; border: 1.5px solid #64748b; border-radius: 9px; padding: 10px; text-align: center; font-weight: 800; font-size: 12px; background: #1a2338; }
.mm-light { padding: 8px 10px; }
.mm-light .m-oc { margin-top: 10px; font-size: 10.5px; }
.mm-light .m-oc .hd b { font-size: 13px; }
.mm-light .m-oc small { font-size: 9px; }

/* Entrepôt Jean-Brillion (phone) */
.mm-card .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mm-card .ti { display: block; font-size: 19px; letter-spacing: .08em; }
.mm-card small { display: block; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.mm-card .row2 { display: flex; gap: 12px; margin-top: 14px; }
.mm-bt { flex: 1; text-align: center; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 11px 8px; border-radius: 9px; color: #fff; }
.mm-bt.blue { background: #2563eb; }
.mm-bt.dark { background: #2b3448; border: 1px solid #475569; }
.mm-bt.outline { flex: 0 0 auto; padding: 9px 14px; border: 1.5px solid #3b82f6; background: #172547; color: #60a5fa; font-size: 12px; }
.mm-lang3 { display: inline-flex; border: 1.5px solid #cbd5e1; border-radius: 8px; overflow: hidden; font-size: 11px; font-weight: 800; }
.mm-lang3 i { font-style: normal; padding: 8px 14px; color: #94a3b8; }
.mm-lang3 i.on { background: #2563eb; color: #fff; }
.mm-card h5 { margin: 0 0 10px; font-size: 13px; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid #334155; color: #e2e8f0; }
.mm-inl { display: flex; justify-content: space-between; align-items: center; }
.mm-inl h5 { margin: 0; border: 0; padding: 0; }
.mm-in { border: 1.5px solid #cbd5e1; border-radius: 9px; background: #0d1526; padding: 12px; font-size: 13px; font-weight: 700; color: #cbd5e1; display: flex; justify-content: space-between; }
.mm-in .x { color: #94a3b8; }
.mm-card .m-rack { grid-template-columns: repeat(2, 1fr); }
.mm-ob .t { flex: 1; min-width: 0; }
.mm-ob .m-lang2 { flex: 0 0 auto; }
.mm-ob .t b { font-size: 13px; letter-spacing: .05em; }

/* ================= Préparation Magasin (from photos) ================= */
.mg-page { background: #f3f4f6; color: #111827; }
.mg-bar { background: #0f1622; color: #fff; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mg-bar .l { display: flex; align-items: center; gap: 10px; }
.mg-bar .r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.mg-back, .mg-btn { background: #374151; color: #fff; font-weight: 700; font-size: 11.5px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.mg-t { font-size: 15px; letter-spacing: .1em; }
.mg-q { color: #f87171; font-weight: 700; font-size: 12px; }
.mg-badge { background: transparent !important; padding: 0 !important; box-shadow: none !important; font-size: 10.5px !important; }
.mg-body { padding: 14px 16px; max-width: 640px; margin: 0 auto; }
.mg-sec { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .1em; font-size: 12px; color: #4b5563; margin-bottom: 10px; }
.mg-sec i { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; display: inline-block; }
.mg-ok { background: #dcfce7; border: 2px solid #4ade80; border-radius: 12px; padding: 12px 14px; }
.mg-ok .tp { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mg-ok .ti { font-weight: 900; letter-spacing: .08em; font-size: 15px; color: #14532d; }
.mg-ok .s1 { font-size: 11px; font-weight: 700; color: #166534; margin: 3px 0 5px; }
.mg-ok .s2 { font-size: 11px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.mg-ok .s3 { font-size: 10px; font-weight: 700; color: #15803d; margin-bottom: 3px; }
.mg-ok .wb { background: #fff; color: #111827; padding: 1px 8px; border-radius: 5px; font-size: 13px; }
.dt { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; font-weight: 800; padding: 1px 7px; border-radius: 5px; font-size: 10px; }
.mg-given { background: #16a34a; color: #fff; font-weight: 900; letter-spacing: .07em; font-size: 12px; padding: 12px 16px; border-radius: 8px; border-bottom: 4px solid #166534; white-space: nowrap; }
.mg-given.press { filter: brightness(1.2); }
.mg-ok .pp { border-top: 1px solid #86efac; margin-top: 10px; padding-top: 8px; }
.mg-ok .pp small { font-size: 8.5px; font-weight: 900; letter-spacing: .1em; color: #16a34a; }
.mg-ok .pl { font-size: 12px; font-weight: 700; color: #14532d; margin-top: 6px; }
.mg-ok .pl b { display: inline-block; background: #fff; border: 1px solid #d1d5db; border-radius: 5px; padding: 1px 8px; margin-right: 8px; color: #111827; }
.mg-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.mg-card .hd { background: #f3e8ff; padding: 10px 12px; border-bottom: 1px solid #e9d5ff; }
.mg-card .top { display: flex; justify-content: space-between; gap: 10px; }
.mg-card .top b { display: block; color: #581c87; letter-spacing: .06em; font-size: 15px; }
.mg-card .top span { color: #7e22ce; font-size: 11.5px; font-weight: 700; display: block; }
.mg-card .top em { color: #9333ea; font-size: 10.5px; font-style: normal; font-weight: 700; }
.mg-card .pq { text-align: right; } .mg-card .pq small { display: block; font-size: 8px; font-weight: 900; letter-spacing: .1em; color: #a855f7; margin-bottom: 2px; }
.mg-card .who { display: flex; gap: 8px; background: rgba(255,255,255,.7); border-radius: 6px; padding: 6px 8px; margin-top: 8px; font-size: 11px; font-weight: 800; color: #6b21a8; }
.mg-card .who > div { flex: 1; } .mg-card .who small { display: block; font-size: 8px; letter-spacing: .1em; color: #a78bfa; }
.mg-card .ln { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid #f1f5f9; }
.mg-card .ln .q { background: #f3f4f6; border: 1px solid #e5e7eb; padding: 2px 9px; border-radius: 5px; font-weight: 900; font-size: 13px; }
.mg-card .ln .nm { font-weight: 700; font-size: 12.5px; color: #374151; }
.mg-card .ln .go { margin-left: auto; border: 2px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 10.5px; font-weight: 900; color: #9ca3af; background: #f3f4f6; letter-spacing: .04em; white-space: nowrap; }
.mg-card .ln .go.rdy { background: #22c55e; border-color: #16a34a; color: #fff; }
.mg-card .ln .go.press { filter: brightness(1.15); }
.mg-panel { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.1); margin-bottom: 10px; }
.mg-panel h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: .07em; color: #1f2937; }
.mg-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mg-search .in { flex: 1 1 150px; border: 2px solid #d1d5db; border-radius: 7px; padding: 9px 10px; font-size: 11px; color: #9ca3af; font-weight: 700; background: #fff; }
.mg-search .in.d { flex: 0 0 105px; background: #f3f4f6; color: #374151; }
.mg-search .sb { background: #7c3aed; color: #fff; font-weight: 900; letter-spacing: .07em; font-size: 11px; padding: 11px 16px; border-radius: 8px; }
.mg-h { background: #fff; border-radius: 10px; margin-bottom: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.1); overflow: hidden; }
.mg-h .hh { padding: 10px 12px; background: #f8fafc; } .mg-h .hh b { font-size: 14px; letter-spacing: .06em; }
.mg-h .s1 { font-size: 11px; font-weight: 700; color: #374151; margin-top: 2px; } .mg-h .s2 { font-size: 10px; color: #6b7280; margin-top: 3px; }
.mg-h .hl { padding: 8px 12px; font-size: 12px; font-weight: 700; color: #1f2937; border-top: 1px solid #f1f5f9; display: flex; gap: 6px; align-items: baseline; }
.mg-h .hl .rm { margin-left: auto; font-size: 8.5px; color: #6b7280; font-weight: 600; white-space: nowrap; }
.mg-mob .mg-bar { padding: 12px; } .mg-mob .mg-bar .l { width: 100%; align-items: center; }
.mg-mob .mg-t { font-size: 13px; }
.mg-mob .mg-badge { background: #1b2436 !important; padding: 7px 12px !important; border-radius: 999px; font-size: 11px !important; }
.mg-mob .mg-body { padding: 10px; }
.mg-mob .mg-ok .tp { flex-direction: column; } .mg-mob .mg-given { width: 100%; text-align: center; margin-top: 8px; }
.mg-mob .mg-card .ln { flex-wrap: wrap; }
.mg-page { overflow: hidden; }
.m-drawer .dl.who .wl { background: #1a1a1a; padding: 13px 16px; margin: 2px -16px 0; }
.m-drawer .dl.who .wl a { margin: 0; font-size: 13px; font-weight: 700; }
.mg-search .in.d { flex: 0 0 128px; white-space: nowrap; }
.m-drawer .dl.who { padding: 13px 0 0; }
.m-drawer .dl.who .nm { padding: 0 16px 10px; }
.m-drawer .dl.who .wl { margin: 0; border-top: 1px solid #111; }

/* phones: the caption scrolls with the page (below the picture); only the three control buttons stay pinned
   at the bottom of the screen. display:contents lets the buttons stick for the whole picture + caption area. */
@media (max-width: 899px) {
    .f-side { display: contents; position: static; background: none; padding: 0; margin: 0; }
    .f-caption { margin-top: 12px; box-shadow: none; padding: 12px 14px; }
    .f-caption .say { font-size: 1.12rem; line-height: 1.45; }
    .f-caption .k { font-size: .78rem; }
    #fCtl { position: sticky; bottom: 0; z-index: 50; margin-top: 0; padding: 10px 0 8px; background: linear-gradient(to top, var(--page-bg) 80%, rgba(238,242,247,0)); }
    .f-end { margin-bottom: 8px; }
}

/* ======================================================================================================
   Messages lessons (formation-msg.js): the chat window, conversation list, floating bubble, notification
   banner, account push box, install / iPhone steps, phone home screen. Look-alikes of the real site.
   ====================================================================================================== */
.mc-ov { position: absolute; inset: 0; z-index: 60; background: rgba(2,6,23,.82); display: flex; align-items: center; justify-content: center; padding: 10px; }
.mc-win { background: #fff; color: #1f2937; width: 100%; height: 100%; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.mc-h { background: #2563eb; color: #fff; padding: 9px 11px; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-shrink: 0; }
.mc-h .t { font-weight: 900; font-size: 13px; line-height: 1.25; min-width: 0; }
.mc-h .t small { display: block; font-weight: 600; font-size: 11px; opacity: .88; }
.mc-h .x { background: #1e40af; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.mc-ban { background: #ffedd5; color: #9a3412; font-weight: 700; font-size: 11px; padding: 5px 11px; flex-shrink: 0; }
.mc-list { flex: 1 1 auto; background: #f3f4f6; padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; overflow: hidden; justify-content: flex-start; }
.mc-w { display: flex; flex-direction: column; align-items: flex-start; }
.mc-w.mine { align-items: flex-end; }
.mc-meta { font-size: 9.5px; color: #6b7280; margin: 0 3px 2px; }
.mc-meta b.rq { color: #0f766e; } .mc-meta b.yd { color: #7c3aed; } .mc-meta b.dp { color: #ea580c; }
.mc-b { max-width: 86%; padding: 7px 9px; border-radius: 11px; font-size: 12.5px; line-height: 1.3; }
.mc-w.mine .mc-b { background: #2563eb; color: #fff; }
.mc-w.oth .mc-b { background: #fff; color: #111827; border: 1px solid #e5e7eb; }
.mc-orig { margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(128,128,128,.4); font-size: 10.5px; opacity: .85; font-style: italic; }
.mc-etag { margin-top: 3px; font-size: 10px; font-weight: 800; color: #c2410c; }
.mc-w.mine .mc-etag { color: #fed7aa; }
.mc-q { padding: 5px 8px; display: flex; flex-wrap: wrap; gap: 5px; background: #fff; border-top: 1px solid #e5e7eb; flex-shrink: 0; }
.mc-chip { border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; border-radius: 999px; padding: 3px 9px; font-size: 10.5px; font-weight: 700; }
.mc-chip.press, .mc-send.press, .mc-escb.press, .mc-cbtn.press, .mc-lb.press, .mc-lrow.press, .mc-bub.press, .mc-pbtn.press, .mc-toast.press, .mc-opt.press, .mc-lstart .go.press { filter: brightness(.85); transform: translateY(1px); }
.mc-f { padding: 6px 8px 8px; background: #fff; border-top: 1px solid #e5e7eb; flex-shrink: 0; }
.mc-f .m-input { min-height: 44px; margin-bottom: 6px; font-size: 12.5px; padding: 7px 8px; }
.mc-btns { display: flex; justify-content: space-between; gap: 6px; }
.mc-send { margin-left: auto; background: #2563eb; color: #fff; font-weight: 800; font-size: 12.5px; padding: 7px 16px; border-radius: 9px; }
.mc-escb { background: #ea580c; color: #fff; font-weight: 800; font-size: 11.5px; padding: 7px 10px; border-radius: 9px; }

/* the buttons the real site adds on order cards and in the top bar */
.mc-cbtn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #9ca3af; background: #fff; color: #1f2937; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 800; }
.mc-cbtn i, .mc-lb i { font-style: normal; background: #dc2626; color: #fff; border-radius: 999px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.mc-cbtn.un { border-color: #dc2626; background: #fef2f2; color: #991b1b; }
.mc-crow { margin-top: 7px; }
.m-oc .tags .mc-cbtn { margin-top: 5px; font-size: 10px; }
.mc-lb { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #9ca3af; background: #fff; color: #1f2937; border-radius: 10px; padding: 5px 9px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mc-lb.un { border-color: #dc2626; background: #fef2f2; color: #991b1b; }

/* floating round bubble */
.mc-bub { position: absolute; right: 12px; bottom: 74px; width: 44px; height: 44px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.85); z-index: 40; }
.mc-bub.red { background: #dc2626; }
.mc-bub i { position: absolute; top: -7px; right: -7px; background: #111827; color: #fff; border: 2px solid #fff; border-radius: 999px; min-width: 21px; height: 21px; font: 800 11px/17px "Segoe UI", system-ui, sans-serif; text-align: center; font-style: normal; }

/* conversation list ("Messages") */
.mc-lwin { background: #fff; color: #1f2937; width: 100%; height: 100%; border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.mc-lstart { display: flex; gap: 6px; padding: 7px 9px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.mc-lstart .m-input { margin: 0; min-height: 36px; padding: 6px 8px; font-size: 12.5px; flex: 1; }
.mc-lstart .go { background: #2563eb; color: #fff; font-weight: 800; font-size: 12px; padding: 0 14px; border-radius: 9px; display: flex; align-items: center; }
.mc-lrows { flex: 1; overflow: hidden; background: #fff; }
.mc-lrow { padding: 8px 11px; border-bottom: 1px solid #e5e7eb; }
.mc-lrow.un { background: #eff6ff; }
.mc-lrow .a { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; }
.mc-lrow.un .a { font-weight: 900; }
.mc-lrow .a em { font-style: normal; font-size: 10px; color: #6b7280; font-weight: 600; white-space: nowrap; }
.mc-lrow .a .rb { background: #dc2626; color: #fff; border-radius: 999px; min-width: 17px; height: 17px; padding: 0 5px; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; font-style: normal; font-weight: 800; }
.mc-lrow .a .eb { background: #ea580c; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 10px; margin-left: 4px; font-style: normal; }
.mc-lrow .rq { font-size: 10.5px; color: #0f766e; font-weight: 700; }
.mc-lrow .lt { font-size: 11px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-lnote { padding: 5px 11px; font-size: 9.5px; color: #6b7280; background: #f3f4f6; border-top: 1px solid #e5e7eb; }

/* "My Day" card on the home page, dispatch inbox box */
.mc-md { padding: 4px 2px 0; }
.mc-md .hd { display: flex; gap: 8px; align-items: baseline; margin: 2px 2px 8px; color: #fff; }
.mc-md .hd b { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.mc-md .hd span { font-size: 11px; color: #9ca3af; }
.mc-mdc { background: linear-gradient(145deg,#1f2937,#111827); border: 1px solid #374151; border-left: 4px solid #22c55e; border-radius: 12px; padding: 10px 11px; margin-bottom: 8px; color: #e5e7eb; }
.mc-mdc.red { border-left-color: #ef4444; }
.mc-mdc h3 { margin: 0 0 5px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: flex; justify-content: space-between; color: #fff; }
.mc-mdc h3 a { color: #60a5fa; text-decoration: none; }
.mc-mdc .note { color: #f87171; font-size: 11px; margin: 0 0 4px; }
.mc-mdc .row { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-top: 1px solid #1f2937; font-size: 11px; }
.mc-mdc .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mc-mdc .row .n { background: #2563eb; color: #fff; border-radius: 999px; padding: 0 7px; font-weight: 800; font-size: 10px; }
.mc-mdc .row.press { filter: brightness(1.3); }
.mc-mdc .stats { display: flex; gap: 6px; }
.mc-mdc .stats div { flex: 1; background: #0f172a; border-radius: 8px; padding: 6px 4px; text-align: center; }
.mc-mdc .stats b { display: block; font-size: 17px; color: #fff; } .mc-mdc .stats small { font-size: 8.5px; color: #94a3b8; }
.mc-inbox { background: #fff; color: #1f2937; border: 2px solid #ea580c; border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.mc-inbox .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-weight: 900; font-size: 11.5px; }
.mc-inbox .h .all { border: 1px solid #2563eb; color: #2563eb; border-radius: 8px; padding: 2px 8px; font-size: 10.5px; font-weight: 800; }
.mc-inbox .it { border-top: 1px solid #e5e7eb; padding: 5px 1px; font-size: 11px; }
.mc-inbox .it b { font-size: 11.5px; } .mc-inbox .it .tg { background: #ea580c; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 10px; margin-left: 5px; }
.mc-inbox .it small { display: block; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* phone notification banner (system) */
.mc-toast { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 95; background: rgba(250,250,252,.98); color: #111827; border-radius: 16px; padding: 9px 11px; box-shadow: 0 12px 30px rgba(0,0,0,.55); display: flex; gap: 9px; align-items: flex-start; animation: mc-drop .5s ease-out; }
.mc-toast .ic { width: 30px; height: 30px; border-radius: 8px; background: #000 url(../logo.png) center / cover no-repeat; flex-shrink: 0; }
.mc-toast .tx { font-size: 11.5px; line-height: 1.3; min-width: 0; } .mc-toast .tx b { display: block; font-size: 12px; }
.mc-toast .tx small { color: #6b7280; font-size: 9.5px; }
@keyframes mc-drop { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }

/* account window: push box */
.mc-push { border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 10px; margin: 8px 0 10px; background: #f9fafb; }
.mc-push .ti { font-weight: 800; font-size: 12.5px; margin-bottom: 2px; }
.mc-push .st { font-size: 11.5px; color: #4b5563; margin-bottom: 7px; }
.mc-push .bt { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-pbtn { flex: 1 1 100%; text-align: center; font-weight: 700; font-size: 12px; padding: 8px; border-radius: 5px; background: #2563eb; color: #fff; }
.mc-pbtn.gray { background: #e5e7eb; color: #374151; } .mc-pbtn.green { background: #16a34a; } .mc-pbtn.half { flex: 1 1 40%; }

/* phone permission / install dialogs */
.mc-dlg { background: #f3f4f6; color: #111827; border-radius: 16px; width: 100%; max-width: 310px; padding: 16px 16px 10px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.mc-dlg .ic { width: 34px; height: 34px; border-radius: 9px; background: #000 url(../logo.png) center / cover no-repeat; margin-bottom: 8px; }
.mc-dlg .q { font-size: 13.5px; line-height: 1.4; margin-bottom: 12px; font-weight: 600; }
.mc-opt { text-align: center; font-weight: 700; font-size: 13px; padding: 10px; border-top: 1px solid #d1d5db; color: #1d4ed8; }
.mc-opt.no { color: #4b5563; font-weight: 600; }

/* iPhone: site banner, Share sheet, Add to Home Screen */
.mc-ban2 { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #111827; color: #f9fafb; border: 1px solid #374151; border-radius: 12px; padding: 12px 12px 10px; font-size: 11.5px; line-height: 1.35; box-shadow: 0 12px 30px rgba(0,0,0,.6); z-index: 50; }
.mc-ban2 h4 { margin: 0 0 3px; font-size: 13px; color: #fff; } .mc-ban2 p { margin: 0 0 8px; color: #d1d5db; }
.mc-ban2 ol { list-style: none; margin: 0 0 6px; padding: 0; } .mc-ban2 li { display: flex; gap: 8px; margin: 0 0 6px; }
.mc-ban2 .n { flex: none; width: 19px; height: 19px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 700; font-size: 10.5px; display: flex; align-items: center; justify-content: center; }
.mc-share { position: absolute; left: 0; right: 0; bottom: 0; z-index: 70; background: #f2f2f7; color: #111827; border-radius: 14px 14px 0 0; padding: 10px 12px 14px; box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.mc-share .hd { font-size: 11px; color: #6b7280; text-align: center; margin-bottom: 8px; }
.mc-share .rw { background: #fff; border-radius: 10px; margin-bottom: 6px; overflow: hidden; }
.mc-share .rw div { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 12.5px; border-bottom: 1px solid #e5e7eb; }
.mc-share .rw div:last-child { border-bottom: 0; } .mc-share .rw .hl { font-weight: 800; color: #111827; background: #eef2ff; }
.mc-add { position: absolute; left: 14px; right: 14px; top: 40px; z-index: 75; background: #f2f2f7; color: #111827; border-radius: 14px; padding: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.6); }
.mc-add .top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 8px; } .mc-add .top .ok { font-weight: 800; color: #2563eb; } .mc-add .top .cn { color: #2563eb; }
.mc-add .nm { display: flex; gap: 9px; align-items: center; background: #fff; border-radius: 10px; padding: 8px; }
.mc-add .nm .ic { width: 38px; height: 38px; border-radius: 9px; background: #000 url(../logo.png) center / cover no-repeat; }
.mc-add .nm b { font-size: 13px; }
.mc-hs { position: absolute; inset: 0; z-index: 3; background: linear-gradient(160deg,#0f2a52,#1d4ed8 55%,#0b1220); padding: 52px 18px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 6px; align-content: start; }
.mc-hs .ap { text-align: center; color: #fff; font-size: 9.5px; }
.mc-hs .ap i { display: block; width: 50px; height: 50px; margin: 0 auto 4px; border-radius: 12px; background: rgba(255,255,255,.25); }
.mc-hs .ap i.me { background: #000 url(../logo.png) center / cover no-repeat; }
.mc-hs .ap.press { filter: brightness(1.3); }

/* ---- "Nouveautés pour les demandeurs" (formation-new.js) ---- */
.nv-panel { background: #fff; border-radius: 10px; padding: 10px 12px; color: #111827; font-size: 11px; }
.nv-banner { background: #111827; color: #fff; border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.nv-banner b { font-size: 12px; letter-spacing: .06em; }
.nv-pbtn { background: #2563eb; color: #fff; font-weight: 800; font-size: 9px; padding: 6px 8px; border-radius: 6px; white-space: nowrap; }
.nv-row { display: flex; gap: 6px; align-items: flex-end; margin-bottom: 8px; }
.nv-fld { flex: 1; min-width: 0; }
.nv-fld label, .nv-modal label { display: block; font-size: 8.5px; font-weight: 800; color: #6b7280; text-transform: uppercase; margin: 6px 0 2px; }
.nv-fld label { margin-top: 0; }
.nv-sel { border: 1px solid #d1d5db; border-radius: 5px; padding: 7px 8px; font-size: 11.5px; background: #fff; color: #111827; min-height: 30px; display: flex; justify-content: space-between; gap: 4px; align-items: center; }
.nv-sel span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-star { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #fcd34d; background: #fefce8; color: #eab308; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; }
.nv-star.on { background: #facc15; color: #fff; }
.nv-add { background: #2563eb; color: #fff; font-weight: 800; font-size: 11px; border-radius: 6px; padding: 9px 12px; white-space: nowrap; text-align: center; }
.nv-in { background: #fff !important; border: 1px solid #d1d5db !important; color: #111827 !important; border-radius: 5px; padding: 6px 8px; min-height: 28px; text-align: center; }
.nv-in .ph { color: #9ca3af; } .nv-in .val { color: #111827; font-weight: 700; }
.nv-tbl { width: 100%; border-collapse: collapse; font-size: 10px; margin-top: 4px; }
.nv-tbl th { background: #f3f4f6; text-align: left; padding: 4px 6px; font-size: 8.5px; text-transform: uppercase; color: #6b7280; }
.nv-tbl td { padding: 5px 6px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.nv-tbl tr.hl td { background: #dcfce7; }
.nv-submit { background: #16a34a; color: #fff; text-align: center; font-weight: 900; border-radius: 8px; padding: 10px; margin-top: 8px; font-size: 12px; }
.nv-edit { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; border-radius: 8px; padding: 6px 8px; font-size: 10px; font-weight: 700; margin-bottom: 8px; }
.nv-ok { background: #dcfce7; border: 1px solid #16a34a; color: #166534; border-radius: 8px; padding: 6px 8px; font-size: 11px; font-weight: 800; margin-bottom: 8px; }
.nv-modal { background: #fff; color: #111827; border-radius: 10px; width: 100%; max-width: 330px; box-shadow: 0 25px 50px rgba(0,0,0,.5); overflow: hidden; }
.nv-modal .hd { background: #111827; color: #fff; padding: 8px 12px; font-weight: 800; font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.nv-modal .bd { padding: 8px 12px 10px; font-size: 11px; }
.nv-modal .ft { background: #f3f4f6; padding: 8px 12px; display: flex; justify-content: flex-end; gap: 6px; }
.nv-btn { padding: 7px 14px; border-radius: 6px; font-weight: 800; font-size: 11px; background: #d1d5db; color: #374151; }
.nv-btn.g { background: #16a34a; color: #fff; }
.nv-2 { display: flex; gap: 6px; } .nv-2 > div { flex: 1; min-width: 0; }
.nv-3 { display: flex; gap: 5px; margin-bottom: 4px; } .nv-3 .nv-in { flex: 1; min-width: 0; }
.nv-rds { display: flex; gap: 12px; margin: 2px 0 4px; font-weight: 700; }
.nv-rd { display: inline-flex; align-items: center; gap: 4px; } .nv-rd i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #9ca3af; display: inline-block; }
.nv-rd.on i { border-color: #2563eb; background: radial-gradient(#2563eb 45%, #fff 50%); }
.nv-dims { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 8px 6px; margin: 6px 0; }
.nv-cover { margin: 6px 0; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.nv-ck { width: 14px; height: 14px; border: 2px solid #9ca3af; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; }
.nv-ck.on { background: #2563eb; border-color: #2563eb; }
.mc-mdc .stats { display: flex; gap: 8px; } .mc-mdc .stats > div { flex: 1; text-align: center; } .mc-mdc .stats b { display: block; font-size: 18px; } .mc-mdc .stats small { font-size: 9px; color: #9ca3af; }
.nv-st { font-size: 9.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; background: #374151; color: #e5e7eb; }
.nv-st.b { background: #92400e; color: #fde68a; } .nv-st.g { background: #166534; color: #bbf7d0; }
.mc-quiet { background: #1e293b; color: #cbd5e1; font-weight: 600; font-size: 10.5px; padding: 5px 11px; flex-shrink: 0; border-bottom: 1px solid #334155; }

/* ---- Entrepôt + chartes lessons (formation-new2.js) ---- */
.nv-pbtn.dk { background: #374151; }
.nv-sec { margin-bottom: 8px; } .nv-sec h5 { margin: 0 0 4px; font-size: 10px; letter-spacing: .06em; color: #374151; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; padding-bottom: 3px; }
.nv-lnk { color: #2563eb; font-size: 9.5px; font-weight: 800; }
.nv-resbox { position: absolute; left: 0; right: 0; top: 34px; z-index: 5; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; padding: 6px; box-shadow: 0 10px 25px rgba(0,0,0,.25); }
.nv-rrow { display: flex; gap: 8px; align-items: center; padding: 5px 4px; font-size: 11px; color: #374151; font-weight: 600; }
.nv-rrow b { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 4px; min-width: 56px; text-align: center; padding: 2px 4px; font-size: 10.5px; }
.nv-rrow mark, .nv-tbl mark { background: #fef08a; border-radius: 2px; padding: 0 1px; }
.nv-flr .h, .nv-flr .r { display: grid; grid-template-columns: 1fr 34px 48px; gap: 4px; font-size: 10px; padding: 4px 3px; border-bottom: 1px solid #f3f4f6; }
.nv-flr .h { font-weight: 800; color: #6b7280; text-transform: uppercase; font-size: 8.5px; } .nv-flr .r b { color: #2563eb; text-align: center; }
.nv-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.nv-cell { border: 1px solid #d1d5db; border-radius: 5px; padding: 4px 5px; font-size: 9.5px; color: #374151; background: #f9fafb; }
.nv-cell b { color: #1e40af; }
.nv-cell.blink, .nv-flr .r.blink { background: #fef08a; border-color: #eab308; box-shadow: 0 0 0 2px #facc15; }
.nv-plan { position: relative; width: 92%; max-width: 330px; background: #e5e7eb; border-radius: 8px; padding: 8px; }
.nv-plan .x { position: absolute; top: -10px; right: -6px; background: #dc2626; color: #fff; width: 24px; height: 24px; border-radius: 50%; text-align: center; line-height: 24px; font-size: 12px; font-weight: 800; }
.nv-pm { position: relative; height: 170px; background: #f9fafb; border: 2px solid #9ca3af; border-radius: 4px; }
.nv-pm i { position: absolute; border: 2px solid #6b7280; background: #dbeafe; border-radius: 3px; } .nv-pm em { position: absolute; bottom: 4px; right: 8px; font-size: 10px; color: #6b7280; }
.nv-chart { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; text-align: center; }
.nv-chart h4 { margin: 0 0 6px; font-size: 11px; color: #1f2937; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; }
.nv-chart .img { position: relative; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; padding: 6px; } .nv-chart svg { width: 100%; height: auto; max-height: 150px; }
.nv-chart .z { position: absolute; right: 5px; bottom: 4px; background: rgba(0,0,0,.55); color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 4px; }

/* ---- chat extras: photo buttons, private row, seen-by, system line, delivered toggle ---- */
.mc-ph { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 9px; padding: 5px 9px; font-size: 14px; line-height: 1.2; }
.mc-btns { align-items: center; }
.mc-privrow { display: flex; gap: 7px; align-items: center; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 5px 8px; margin-bottom: 6px; font-size: 11px; color: #92400e; }
.mc-privrow small { font-size: 10px; opacity: .9; }
.mc-f.priv { background: #fffbeb; border-top-color: #f59e0b; } .mc-f.priv .m-input { border-color: #f59e0b !important; }
.mc-w.priv .mc-b { background: #fef3c7 !important; border: 1px solid #f59e0b; color: #78350f !important; }
.mc-seenby { font-size: 10px; color: #6b7280; text-align: right; margin-top: 2px; }
.mc-sys { align-self: center; background: #fee2e2; color: #991b1b; border-radius: 999px; padding: 4px 11px; font-size: 10.5px; font-weight: 700; text-align: center; max-width: 92%; }
.mc-img { width: 120px; height: 70px; background: #cbd5e1; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 4px; }
.mc-ldel { padding: 5px 11px; font-size: 10.5px; color: #374151; background: #f9fafb; border-top: 1px solid #e5e7eb; display: flex; gap: 6px; align-items: center; font-weight: 700; }

/* "back to all trainings" link (top bar + end panel) */
.f-top a { display: block; line-height: 0; }
.f-top a.f-all { background: #2563eb; color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.2; padding: 9px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.f-top a.f-all:hover, .f-top a.f-all:focus { background: #1d4ed8; }
a.f-all2 { display: inline-block; margin-top: 12px; background: #2563eb; color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
@media (max-width: 560px) { .f-top .f-tag { display: none; } .f-top { gap: 8px; flex-wrap: wrap; } .f-top a.f-all { flex: 1 1 100%; text-align: center; font-size: .95rem; padding: 9px 12px; } }
