/* ==========================================================================
   TrustEvent — maquettes produit décoratives du site vitrine
   Éléments : templates/element/marketing/mockup/*.php
   Tout est préfixé .te-mk ; s'appuie sur les tokens --te-* (te-uikit.css)
   avec valeurs de repli. Aucune image ni police externe.
   ========================================================================== */

/* ---------- Racine, thème clair (défaut) ---------- */
.te-mk {
  --mk-brand: var(--te-brand-500, #1DC653);
  --mk-brand-400: var(--te-brand-400, #4DD87A);
  --mk-brand-700: var(--te-brand-700, #127A33);
  --mk-btn: var(--te-btn-primary-bg, #15803D);
  --mk-night: var(--te-bg-overlay, #1C2B1E);
  --mk-night-2: #0B130E;

  --mk-bg: var(--te-bg-base, #FFFFFF);
  --mk-bg-2: var(--te-bg-subtle, #F7F8FA);
  --mk-bg-3: var(--te-bg-muted, #F0F2F5);
  --mk-line: var(--te-border-subtle, #E5E9EE);
  --mk-line-2: var(--te-border-default, #D1D9E0);
  --mk-text: var(--te-text-primary, #111827);
  --mk-text-2: var(--te-text-secondary, #4B5563);
  --mk-text-3: var(--te-text-tertiary, #6B7280);
  --mk-brand-text: var(--te-brand-700, #127A33);
  --mk-brand-soft: var(--te-brand-100, #E8FAF0);
  --mk-brand-softer: var(--te-brand-50, #F2FDF5);
  --mk-warn-soft: var(--te-warning-100, #FEF3C7);
  --mk-warn-text: var(--te-warning-text, #92400E);
  --mk-warn: var(--te-warning-500, #F59E0B);
  --mk-info-soft: var(--te-info-100, #EFF6FF);
  --mk-info-text: var(--te-info-text, #1E40AF);
  --mk-info: var(--te-info-500, #3B82F6);
  --mk-error: var(--te-error-500, #EF4444);
  --mk-shadow:
    0 1px 2px rgba(16, 24, 40, .05),
    0 12px 32px -10px rgba(16, 24, 40, .14),
    0 40px 80px -32px rgba(16, 24, 40, .22);
  --mk-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --mk-r: 14px;

  display: block;
  width: 100%;
  container-type: inline-size;
  font-family: var(--te-font, "Silka", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--mk-text);
  line-height: 1.35;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  pointer-events: none;
}

/* ---------- Thème sombre ---------- */
.te-mk--dark {
  --mk-bg: #111C15;
  --mk-bg-2: #0B130E;
  --mk-bg-3: #1A2A1F;
  --mk-line: rgba(255, 255, 255, .09);
  --mk-line-2: rgba(255, 255, 255, .16);
  --mk-text: #F2F6F3;
  --mk-text-2: rgba(242, 246, 243, .76);
  --mk-text-3: rgba(242, 246, 243, .56);
  --mk-brand-text: #4DD87A;
  --mk-brand-soft: rgba(29, 198, 83, .16);
  --mk-brand-softer: rgba(29, 198, 83, .08);
  --mk-warn-soft: rgba(245, 158, 11, .16);
  --mk-warn-text: #FCD34D;
  --mk-info-soft: rgba(59, 130, 246, .16);
  --mk-info-text: #93C5FD;
  --mk-shadow:
    0 0 0 1px rgba(255, 255, 255, .05),
    0 24px 60px -16px rgba(0, 0, 0, .65),
    0 0 90px -30px rgba(29, 198, 83, .35);
  --mk-shadow-sm: none;
  color-scheme: dark;
}

.te-mk *,
.te-mk *::before,
.te-mk *::after { box-sizing: border-box; }

.te-mk svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.te-mk ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Cadre commun ---------- */
.te-mk__frame {
  position: relative;
  font-size: clamp(10px, 1.6cqi + 3px, 13.5px);
  background: var(--mk-bg);
  color: var(--mk-text);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r);
  box-shadow: var(--mk-shadow);
  overflow: hidden;
}

/* ---------- Primitives ---------- */
.te-mk__strong { font-weight: 600; color: var(--mk-text); }
.te-mk__muted { color: var(--mk-text-3); font-size: .88em; }
.te-mk__num { font-variant-numeric: tabular-nums; }
.te-mk__label {
  display: block;
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mk-text-3);
}
.te-mk__eyebrow {
  font-size: .72em;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--mk-brand-text);
}

.te-mk__badge {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .22em .62em;
  border-radius: 999px;
  font-size: .76em;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  background: var(--mk-bg-3);
  color: var(--mk-text-2);
}
.te-mk__badge svg { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.te-mk__badge--ok { background: var(--mk-brand-soft); color: var(--mk-brand-text); }
.te-mk__badge--wait { background: var(--mk-warn-soft); color: var(--mk-warn-text); }
.te-mk__badge--info { background: var(--mk-info-soft); color: var(--mk-info-text); }
.te-mk__badge--draft { background: transparent; color: var(--mk-text-3); box-shadow: inset 0 0 0 1px var(--mk-line-2); }
.te-mk__badge--muted { background: var(--mk-bg-3); color: var(--mk-text-3); }

.te-mk__chip {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .32em .75em;
  border-radius: 999px;
  border: 1px solid var(--mk-line);
  background: var(--mk-bg);
  font-size: .8em;
  font-weight: 600;
  color: var(--mk-text-2);
  white-space: nowrap;
}
.te-mk__chip svg { width: 1.2em; height: 1.2em; }
.te-mk__chip--brand { color: var(--mk-brand-text); background: var(--mk-brand-softer); border-color: color-mix(in srgb, var(--mk-brand) 35%, transparent); }

.te-mk__live {
  width: .55em; height: .55em; border-radius: 50%;
  background: var(--mk-brand);
  box-shadow: 0 0 0 0 rgba(29, 198, 83, .5);
  animation: te-mk-ping 2s ease-out infinite;
}

.te-mk__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .72em 1.15em;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95em;
  line-height: 1.1;
  white-space: nowrap;
}
.te-mk__btn svg { width: 1.25em; height: 1.25em; }
.te-mk__btn--primary {
  background: var(--mk-btn);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -6px rgba(21, 128, 61, .7);
}
.te-mk__btn--ghost { background: var(--mk-bg); color: var(--mk-text); border: 1px solid var(--mk-line-2); }
.te-mk__btn--block { display: flex; width: 100%; }
.te-mk__btn--sm { padding: .45em .8em; font-size: .82em; border-radius: 8px; }

.te-mk__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3em; height: 2.3em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-text);
  font-size: .82em;
  font-weight: 700;
  letter-spacing: .02em;
}
.te-mk__avatar--ghost { background: var(--mk-bg-3); color: var(--mk-text-3); }

.te-mk__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75em; height: 1.75em;
  flex-shrink: 0;
  border-radius: 7px;
  background: linear-gradient(140deg, #4DD87A, #18A845 60%, #127A33);
  color: #fff;
  font-weight: 800;
  font-size: .9em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.te-mk__net {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .28em .7em;
  border-radius: 999px;
  font-size: .74em;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.te-mk__net::before {
  content: "";
  width: .6em; height: .6em;
  border-radius: 50%;
  background: currentColor;
}
.te-mk__net--pending { background: var(--mk-warn-soft); color: var(--mk-warn-text); border-color: color-mix(in srgb, var(--mk-warn) 45%, transparent); }
.te-mk__net--pending::before { background: var(--mk-warn); animation: te-mk-blink 1.6s ease-in-out infinite; }
.te-mk__net--synced { background: var(--mk-brand-soft); color: var(--mk-brand-text); border-color: color-mix(in srgb, var(--mk-brand) 40%, transparent); }
.te-mk__net--synced::before { background: var(--mk-brand); }

.te-mk__progress {
  display: block;
  height: .45em;
  border-radius: 999px;
  background: var(--mk-bg-3);
  overflow: hidden;
}
.te-mk__progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mk-brand-400), var(--mk-brand));
}

.te-mk__switch {
  position: relative;
  display: inline-block;
  width: 2.2em; height: 1.25em;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--mk-line-2);
}
.te-mk__switch::after {
  content: "";
  position: absolute;
  top: .15em; left: .15em;
  width: .95em; height: .95em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.te-mk__switch.is-on { background: var(--mk-brand); }
.te-mk__switch.is-on::after { left: auto; right: .15em; }

.te-mk__card {
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  box-shadow: var(--mk-shadow-sm);
}

/* Teintes produits */
.te-mk__tone--green { background: linear-gradient(140deg, #4DD87A, #18A845); }
.te-mk__tone--blue { background: linear-gradient(140deg, #93C5FD, #2563EB); }
.te-mk__tone--amber { background: linear-gradient(140deg, #FDE68A, #F59E0B); }
.te-mk__tone--red { background: linear-gradient(140deg, #FCA5A5, #E11D48); }
.te-mk__tone--brown { background: linear-gradient(140deg, #D6A57C, #7C4A2D); }
.te-mk__tone--gold { background: linear-gradient(140deg, #FDE7B0, #D97706); }
.te-mk__tone--yellow { background: linear-gradient(140deg, #FEF08A, #EAB308); }

/* ---------- Fenêtre navigateur ---------- */
.te-mk__chrome {
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .6em .9em;
  background: var(--mk-bg-2);
  border-bottom: 1px solid var(--mk-line);
}
.te-mk__dots { display: inline-flex; gap: .4em; flex: 1 1 0; }
.te-mk__dots i { width: .72em; height: .72em; border-radius: 50%; background: #FF5F57; }
.te-mk__dots i:nth-child(2) { background: #FEBC2E; }
.te-mk__dots i:nth-child(3) { background: #28C840; }
.te-mk--dark .te-mk__dots i { opacity: .75; }
.te-mk__chrome-end { flex: 1 1 0; }
.te-mk__url {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-width: 0;
  max-width: 60%;
  padding: .3em 1em;
  border-radius: 7px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  font-size: .78em;
  color: var(--mk-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-mk__url svg { width: 1.05em; height: 1.05em; stroke-width: 2; color: var(--mk-brand-text); }

/* ---------- Appareils ---------- */
.te-mk__phone {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 9px;
  font-size: clamp(10px, 4cqi, 12px);
  border-radius: 42px;
  background: linear-gradient(160deg, #2A3A2E, #0B130E 40%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 30px 60px -20px rgba(11, 19, 14, .55),
    0 12px 24px -12px rgba(11, 19, 14, .35);
}
.te-mk--dark .te-mk__phone,
.te-mk--dark .te-mk__tablet {
  background: linear-gradient(160deg, #3A4C3F, #18241C 45%, #111A14);
  border-color: rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 30px 70px -20px rgba(0, 0, 0, .7),
    0 0 90px -30px rgba(29, 198, 83, .35);
}
.te-mk--dark .te-mk__phone-screen,
.te-mk--dark .te-mk__tablet-screen { box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); }
.te-mk__phone-screen {
  overflow: hidden;
  border-radius: 33px;
  background: var(--mk-bg-2);
  color: var(--mk-text);
}
.te-mk__statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75em 1.6em .4em;
  font-size: .82em;
  font-weight: 600;
}
.te-mk__notch {
  width: 6.5em; height: 1.65em;
  border-radius: 999px;
  background: #050906;
}
.te-mk__sysicons { display: inline-flex; align-items: flex-end; gap: 2px; height: .85em; }
.te-mk__sysicons i { width: 3px; border-radius: 1px; background: currentColor; }
.te-mk__sysicons i:nth-child(1) { height: 40%; }
.te-mk__sysicons i:nth-child(2) { height: 70%; }
.te-mk__sysicons i:nth-child(3) { height: 100%; width: 1.4em; margin-left: 4px; border-radius: 3px; opacity: .9; }

.te-mk__tablet {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(7px, 1.4cqi, 13px);
  border-radius: clamp(18px, 3cqi, 28px);
  background: linear-gradient(160deg, #2A3A2E, #0B130E 40%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 30px 70px -24px rgba(11, 19, 14, .55),
    0 12px 24px -12px rgba(11, 19, 14, .3);
}
.te-mk__tablet-screen {
  overflow: hidden;
  border-radius: clamp(10px, 2cqi, 16px);
  background: var(--mk-bg-2);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.te-mk-dash {
  display: grid;
  grid-template-columns: 13.5em minmax(0, 1fr);
}
.te-mk-dash__side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .15em;
  padding: 1em .7em;
  background: var(--mk-night);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
}
.te-mk-dash__side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 0% 0%, rgba(29, 198, 83, .18), transparent 70%);
  pointer-events: none;
}
.te-mk--dark .te-mk-dash__side { background: #0E1A12; border-right: 1px solid var(--mk-line); }
.te-mk-dash__brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .1em .45em .9em;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
}
.te-mk-dash__event {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .8em;
  padding: .5em .6em;
  border-radius: 9px;
  border: 1px solid rgba(29, 198, 83, .45);
  background: rgba(29, 198, 83, .1);
  font-size: .82em;
  color: #fff;
  font-weight: 600;
}
.te-mk-dash__eventdot { width: .55em; height: .55em; flex-shrink: 0; border-radius: 50%; background: var(--mk-brand); box-shadow: 0 0 0 3px rgba(29, 198, 83, .25); }
.te-mk-dash__eventname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-dash__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .52em .6em;
  border-radius: 8px;
  font-size: .88em;
  white-space: nowrap;
}
.te-mk-dash__item svg { width: 1.2em; height: 1.2em; opacity: .85; }
.te-mk-dash__item.is-active { background: rgba(255, 255, 255, .09); color: #fff; font-weight: 600; }
.te-mk-dash__item.is-active svg { color: var(--mk-brand-400); opacity: 1; }
.te-mk-dash__item.is-active::before {
  content: "";
  position: absolute;
  left: -.7em; top: 22%; bottom: 22%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--mk-brand);
}

.te-mk-dash__main {
  display: flex;
  flex-direction: column;
  gap: .9em;
  min-width: 0;
  padding: 1.3em 1.4em 1.4em;
  background: var(--mk-bg-2);
}
.te-mk-dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.te-mk-dash__title { font-size: 1.4em; font-weight: 700; letter-spacing: -.02em; margin-top: .15em; }

.te-mk-dash__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.te-mk-dash__kpi { display: flex; flex-direction: column; gap: .3em; padding: .9em 1em; }
.te-mk-dash__value { font-size: 1.55em; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.te-mk-dash__delta { font-size: .78em; color: var(--mk-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-dash__delta b { color: var(--mk-brand-text); font-weight: 600; }
.te-mk-dash__delta b.is-neutral { color: var(--mk-text); }

.te-mk-dash__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .8em; }
.te-mk-dash__cardhead { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; margin-bottom: .7em; }
.te-mk-dash__cardhead .te-mk__muted { font-size: .78em; white-space: nowrap; }

.te-mk-dash__chart { padding: .9em 1em 1em; display: flex; flex-direction: column; }
.te-mk-dash__plot { position: relative; flex: 1; min-height: 11em; }
.te-mk-dash__gridlines {
  position: absolute;
  inset: 0 0 1.7em 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.te-mk-dash__gridlines i { display: block; border-top: 1px dashed var(--mk-line); }
.te-mk-dash__gridlines i:last-child { border-top-style: solid; border-color: var(--mk-line-2); }
.te-mk-dash__bars { position: absolute; inset: 0; display: flex; gap: .4em; }
.te-mk-dash__bar { position: relative; flex: 1; height: 100%; }
.te-mk-dash__fill {
  position: absolute;
  left: 0; right: 0;
  bottom: 1.7em;
  height: calc((100% - 1.7em) * var(--v, 50) / 100);
  border-radius: 4px 4px 1px 1px;
  background: color-mix(in srgb, var(--mk-brand) 32%, transparent);
  transform-origin: bottom;
  animation: te-mk-grow .9s cubic-bezier(.2, .8, .2, 1) both;
}
.te-mk-dash__bar.is-peak .te-mk-dash__fill {
  background: linear-gradient(180deg, var(--mk-brand-400), var(--mk-brand));
  box-shadow: 0 6px 16px -6px rgba(29, 198, 83, .7);
}
.te-mk-dash__day {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  text-align: center;
  font-size: .7em;
  color: var(--mk-text-3);
}
.te-mk-dash__tip {
  position: absolute;
  right: -.4em;
  bottom: calc(1.7em + (100% - 1.7em) * var(--v, 50) / 100 + .5em);
  z-index: 1;
  padding: .3em .55em;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: .72em;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .35);
}
.te-mk--dark .te-mk-dash__tip { background: #F2F6F3; color: #0B130E; }

.te-mk-dash__orders { padding: .9em 1em .4em; min-width: 0; }
.te-mk-dash__order {
  display: flex;
  align-items: center;
  gap: .65em;
  padding: .55em 0;
  border-top: 1px solid var(--mk-line);
}
.te-mk-dash__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.te-mk-dash__who > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-dash__who .te-mk__strong { font-size: .92em; }
.te-mk-dash__who .te-mk__muted { font-size: .78em; }
.te-mk-dash__amount { display: flex; flex-direction: column; align-items: flex-end; gap: .2em; font-size: .92em; }
.te-mk-dash__amount .te-mk__badge { font-size: .7em; }

@container (max-width: 780px) {
  .te-mk-dash { grid-template-columns: 3.6em minmax(0, 1fr); }
  .te-mk-dash__side { padding-inline: .5em; align-items: center; }
  .te-mk-dash__brand { padding-inline: 0; }
  .te-mk-dash__brandname,
  .te-mk-dash__eventname,
  .te-mk-dash__item span { display: none; }
  .te-mk-dash__event { padding: .55em; }
  .te-mk-dash__item { padding: .55em; }
  .te-mk-dash__item.is-active::before { left: -.5em; }
}
@container (max-width: 600px) {
  .te-mk-dash__grid { grid-template-columns: minmax(0, 1fr); }
  .te-mk-dash__order:nth-of-type(n+4) { display: none; }
  .te-mk-dash__main { padding: 1em; }
}
@container (max-width: 460px) {
  .te-mk-dash { grid-template-columns: minmax(0, 1fr); }
  .te-mk-dash__side { display: none; }
  .te-mk-dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
  .te-mk-dash__kpi:nth-child(3) { display: none; }
  .te-mk-dash__value { font-size: 1.35em; }
  .te-mk-dash__plot { min-height: 9em; }
  .te-mk-dash__bars { gap: .25em; }
  .te-mk-dash__head .te-mk__eyebrow { display: none; }
}

/* ==========================================================================
   Billet
   ========================================================================== */
.te-mk-ticket {
  display: flex;
  max-width: 640px;
  margin-inline: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 18px 28px rgba(16, 24, 40, .16)) drop-shadow(0 2px 3px rgba(16, 24, 40, .08));
}
.te-mk--dark .te-mk-ticket { filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 30px rgba(29, 198, 83, .18)); }
.te-mk-ticket__main,
.te-mk-ticket__stub {
  background: var(--mk-bg);
  --notch: .95em;
}
.te-mk-ticket__main {
  flex: 1;
  min-width: 0;
  border-radius: var(--mk-r) 0 0 var(--mk-r);
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.te-mk-ticket__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55em;
  width: 13em;
  flex-shrink: 0;
  padding: 1.2em 1em;
  border-radius: 0 var(--mk-r) var(--mk-r) 0;
  background-image: linear-gradient(var(--mk-line-2) 50%, transparent 50%);
  background-size: 1.5px .7em;
  background-repeat: repeat-y;
  background-position: 0 0;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  text-align: center;
}
.te-mk--dark .te-mk-ticket__main,
.te-mk--dark .te-mk-ticket__stub { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.te-mk-ticket__band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 1em 1.3em;
  color: #fff;
  background:
    radial-gradient(60% 140% at 100% 0%, rgba(77, 216, 122, .55), transparent 60%),
    linear-gradient(120deg, #0B130E, #1C2B1E 55%, #127A33);
}
.te-mk-ticket__org { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; font-size: .9em; }
.te-mk-ticket__kind {
  font-size: .7em;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3em .7em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
}
.te-mk-ticket__body { padding: 1.15em 1.3em 1.3em; }
.te-mk-ticket__event { font-size: 1.5em; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.te-mk-ticket__cat { margin: .55em 0 1em; }
.te-mk-ticket__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em 1.2em; }
.te-mk-ticket__meta > span { display: flex; flex-direction: column; gap: .15em; min-width: 0; }
.te-mk-ticket__meta .te-mk__strong { font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-ticket__qr {
  width: 8.8em;
  padding: .55em;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #E5E9EE;
}
.te-mk-ticket__qr svg { width: 100%; height: auto; fill: #0B130E; stroke: none; }
.te-mk-ticket__num { font-family: var(--te-font-mono, ui-monospace, "SFMono-Regular", Consolas, monospace); font-size: .8em; font-weight: 600; letter-spacing: .02em; }
.te-mk-ticket__stub .te-mk__muted { font-size: .74em; }

@container (max-width: 480px) {
  .te-mk-ticket { flex-direction: column; max-width: 340px; }
  .te-mk-ticket__main {
    border-radius: var(--mk-r) var(--mk-r) 0 0;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .te-mk-ticket__stub {
    width: auto;
    border-radius: 0 0 var(--mk-r) var(--mk-r);
    background-image: linear-gradient(90deg, var(--mk-line-2) 50%, transparent 50%);
    background-size: .7em 1.5px;
    background-repeat: repeat-x;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .te-mk-ticket__event { font-size: 1.35em; }
}

/* ==========================================================================
   Terminal cashless
   ========================================================================== */
.te-mk-term__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6em;
  padding: .7em 1.1em .8em;
}
.te-mk-term__stand { font-size: 1.15em; letter-spacing: -.01em; }
.te-mk-term__wristband {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .1em;
  margin: 0 1em;
  padding: .95em 1.05em 1em;
  border-radius: 16px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(29, 198, 83, .5), transparent 60%),
    linear-gradient(140deg, #1C2B1E, #0B130E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 20px -10px rgba(11, 19, 14, .6);
}
.te-mk-term__wbtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6em; font-size: .8em; }
.te-mk-term__nfc { display: inline-flex; align-items: center; gap: .4em; color: rgba(255, 255, 255, .8); font-family: var(--te-font-mono, ui-monospace, monospace); }
.te-mk-term__nfc svg { width: 1.3em; height: 1.3em; color: #4DD87A; }
.te-mk-term__holder { font-weight: 600; }
.te-mk-term__wblabel { color: rgba(255, 255, 255, .6); }
.te-mk-term__balance { font-size: 2.1em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.te-mk-term__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55em;
  padding: .9em 1em;
}
.te-mk-term__prod {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .55em;
  align-items: center;
  padding: .6em .65em;
  border-radius: 12px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
}
.te-mk-term__swatch { grid-row: span 2; width: 2em; height: 2em; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.te-mk-term__pname { font-weight: 600; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-term__prod .te-mk__muted { display: none; }
.te-mk-term__price { font-size: .85em; font-weight: 600; color: var(--mk-brand-text); }
.te-mk-term__prod.is-picked { border-color: var(--mk-brand); box-shadow: 0 0 0 1px var(--mk-brand), 0 6px 14px -8px rgba(29, 198, 83, .6); }
.te-mk-term__qty {
  position: absolute;
  top: -.45em; right: -.35em;
  min-width: 1.6em; height: 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mk-brand);
  color: #fff;
  font-size: .78em;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--mk-bg-2);
}
.te-mk-term__foot {
  padding: .85em 1em 1.3em;
  background: var(--mk-bg);
  border-top: 1px solid var(--mk-line);
}
.te-mk-term__sum { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; margin-bottom: .65em; }
.te-mk-term__sum .te-mk__muted { font-size: .8em; }
.te-mk-term__sum .te-mk__strong { font-size: 1.3em; letter-spacing: -.02em; }
.te-mk-term__foot .te-mk__btn { padding-block: .95em; border-radius: 12px; }

/* ==========================================================================
   Caisse (POS)
   ========================================================================== */
.te-mk-pos {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  font-size: clamp(10px, 1.5cqi + 2px, 13.5px);
}
.te-mk-pos__catalog { padding: 1em 1.1em 1.2em; min-width: 0; }
.te-mk-pos__bar { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-bottom: .9em; }
.te-mk-pos__bar .te-mk__strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-pos__tabs {
  display: flex;
  gap: .25em;
  padding: .25em;
  margin-bottom: .9em;
  border-radius: 10px;
  background: var(--mk-bg-3);
}
.te-mk-pos__tab {
  flex: 1;
  text-align: center;
  padding: .45em .4em;
  border-radius: 7px;
  font-size: .82em;
  font-weight: 600;
  color: var(--mk-text-3);
  white-space: nowrap;
}
.te-mk-pos__tab.is-active { background: var(--mk-bg); color: var(--mk-text); box-shadow: 0 1px 3px rgba(16, 24, 40, .1); }
.te-mk-pos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6em; }
.te-mk-pos__prod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .2em;
  padding: .7em;
  border-radius: 12px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  min-width: 0;
}
.te-mk-pos__swatch { width: 100%; height: 3.6em; border-radius: 8px; margin-bottom: .35em; opacity: .9; }
.te-mk-pos__pname { font-weight: 600; font-size: .86em; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.te-mk-pos__prod .te-mk__muted { font-size: .78em; }
.te-mk-pos__prod.is-picked { border-color: var(--mk-brand); box-shadow: 0 0 0 1px var(--mk-brand), 0 8px 18px -10px rgba(29, 198, 83, .7); }
.te-mk-pos__receipt {
  display: flex;
  flex-direction: column;
  padding: 1em 1.1em 1.1em;
  background: var(--mk-bg);
  border-left: 1px solid var(--mk-line);
  min-width: 0;
}
.te-mk-pos__rhead { display: flex; flex-direction: column; gap: .1em; padding-bottom: .7em; border-bottom: 1px dashed var(--mk-line-2); }
.te-mk-pos__rhead .te-mk__muted { font-size: .78em; }
.te-mk-pos__lines { flex: 1; padding: .4em 0; }
.te-mk-pos__line {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto;
  gap: .4em;
  padding: .5em 0;
  font-size: .88em;
  border-bottom: 1px solid var(--mk-line);
}
.te-mk-pos__lqty { color: var(--mk-text-3); font-weight: 600; }
.te-mk-pos__lname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-pos__total { display: flex; align-items: baseline; justify-content: space-between; padding: .7em 0 .8em; }
.te-mk-pos__amount { font-size: 1.6em; font-weight: 700; letter-spacing: -.03em; }
.te-mk-pos__pay { display: grid; grid-template-columns: 1fr; gap: .45em; }
.te-mk-pos__pay .te-mk__btn { padding-block: .85em; }

@container (max-width: 620px) {
  .te-mk-pos { grid-template-columns: minmax(0, 1fr); }
  .te-mk-pos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .te-mk-pos__prod:nth-child(n+7) { display: none; }
  .te-mk-pos__receipt { border-left: 0; border-top: 1px solid var(--mk-line); }
  .te-mk-pos__pay { grid-template-columns: 1fr 1fr; }
}
@container (max-width: 400px) {
  .te-mk-pos__catalog { padding: .8em; }
  .te-mk-pos__grid { gap: .45em; }
  .te-mk-pos__prod { padding: .5em; }
  .te-mk-pos__swatch { height: 2.6em; }
  .te-mk-pos__bar .te-mk__net { display: none; }
}

/* ==========================================================================
   Scan d'entrée
   ========================================================================== */
.te-mk-scan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6em;
  padding: .7em 1.1em .8em;
}
.te-mk-scan__head .te-mk__strong { font-size: .95em; }
.te-mk-scan__viewfinder {
  position: relative;
  margin: 0 1em;
  aspect-ratio: 1 / .9;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(255, 255, 255, .1), transparent 70%),
    radial-gradient(120% 90% at 0% 100%, rgba(29, 198, 83, .22), transparent 60%),
    linear-gradient(160deg, #24342A, #0B130E);
}
.te-mk-scan__qr {
  width: 44%;
  height: auto;
  padding: .45em;
  border-radius: 6px;
  background: #F4F6F5;
  fill: #0B130E !important;
  stroke: none !important;
  transform: perspective(400px) rotateX(10deg) rotate(-5deg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.te-mk-scan__corners { position: absolute; inset: 16%; }
.te-mk-scan__corners i {
  position: absolute;
  width: 22%; height: 22%;
  border: 3px solid var(--mk-brand);
  filter: drop-shadow(0 0 6px rgba(29, 198, 83, .6));
}
.te-mk-scan__corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.te-mk-scan__corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.te-mk-scan__corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.te-mk-scan__corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }
.te-mk-scan__line {
  position: absolute;
  left: 18%; right: 18%;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4DD87A, transparent);
  box-shadow: 0 0 14px 2px rgba(29, 198, 83, .6);
  animation: te-mk-scanline 2.6s ease-in-out infinite;
}
.te-mk-scan__result {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: .9em 1em .7em;
  padding: .8em .9em;
  border-radius: 14px;
  background: var(--mk-brand-soft);
  border: 1px solid color-mix(in srgb, var(--mk-brand) 45%, transparent);
}
.te-mk-scan__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5em; height: 2.5em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--mk-brand);
  color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-brand) 22%, transparent);
}
.te-mk-scan__check svg { width: 1.35em; height: 1.35em; stroke-width: 3; }
.te-mk-scan__rtext { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.te-mk-scan__rtitle { font-size: 1.12em; font-weight: 700; color: var(--mk-brand-text); letter-spacing: -.01em; }
.te-mk-scan__rsub { font-size: .8em; color: var(--mk-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-scan__counter {
  margin: 0 1em 1.2em;
  padding: .8em .9em;
  border-radius: 14px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
}
.te-mk-scan__crow { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; margin-bottom: .55em; }
.te-mk-scan__crow .te-mk__muted { font-size: .8em; }
.te-mk-scan__crow .te-mk__strong .te-mk__muted { font-weight: 400; }
.te-mk-scan__stats { display: flex; justify-content: space-between; gap: .4em; margin-top: .6em; font-size: .72em; color: var(--mk-text-3); }
.te-mk-scan__stats b { color: var(--mk-text); font-weight: 600; }

/* ==========================================================================
   Revente
   ========================================================================== */
.te-mk-resale {
  display: flex;
  flex-direction: column;
  gap: .95em;
  max-width: 420px;
  margin-inline: auto;
  padding: 1.25em;
}
.te-mk-resale__top { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.te-mk-resale__event { display: flex; align-items: center; gap: .8em; }
.te-mk-resale__thumb {
  width: 3.4em; height: 3.4em;
  flex-shrink: 0;
  border-radius: 12px;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(77, 216, 122, .9), transparent 70%),
    linear-gradient(140deg, #1C2B1E, #0B130E);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.te-mk-resale__eventtext { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.te-mk-resale__eventtext .te-mk__strong { font-size: 1.1em; letter-spacing: -.01em; }
.te-mk-resale__price {
  display: flex;
  align-items: baseline;
  gap: .7em;
  padding: .8em 1em;
  border-radius: 12px;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
}
.te-mk-resale__amount { font-size: 2em; font-weight: 700; letter-spacing: -.03em; }
.te-mk-resale__orig { font-size: .82em; color: var(--mk-text-3); }
.te-mk-resale__orig s { color: var(--mk-text-2); }
.te-mk-resale__seller { display: flex; align-items: center; gap: .65em; }
.te-mk-resale__sellertext { display: flex; flex-direction: column; }
.te-mk-resale__sellertext .te-mk__strong { font-size: .92em; }
.te-mk-resale__sellertext .te-mk__muted { font-size: .78em; }
.te-mk-resale__guarantees { display: flex; flex-direction: column; gap: .4em; }
.te-mk-resale__guarantees li {
  position: relative;
  padding-left: 1.6em;
  font-size: .86em;
  color: var(--mk-text-2);
}
.te-mk-resale__guarantees li::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: 1.1em; height: 1.1em;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 70% no-repeat,
    var(--mk-brand);
}
.te-mk-resale__others { display: flex; flex-direction: column; gap: .35em; padding-top: .9em; border-top: 1px solid var(--mk-line); }
.te-mk-resale__other {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .7em;
  padding: .45em 0;
  font-size: .85em;
  color: var(--mk-text-2);
}
.te-mk-resale__other > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   Site événement
   ========================================================================== */
.te-mk-site__hero {
  position: relative;
  padding: .9em 1.4em 2.2em;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(45% 80% at 85% 20%, rgba(77, 216, 122, .55), transparent 70%),
    radial-gradient(40% 70% at 10% 110%, rgba(245, 158, 11, .35), transparent 70%),
    linear-gradient(135deg, #0B130E 0%, #1C2B1E 55%, #0F3D1F 100%);
}
.te-mk-site__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1.5px);
  background-size: 2.2em 2.2em;
  -webkit-mask: linear-gradient(200deg, #000, transparent 55%);
  mask: linear-gradient(200deg, #000, transparent 55%);
  opacity: .35;
}
.te-mk-site__nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.4em; margin-bottom: 2em; }
.te-mk-site__logo { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; letter-spacing: -.02em; font-size: 1.05em; }
.te-mk-site__logo::before { content: ""; width: .75em; height: .75em; border-radius: 50%; background: #4DD87A; box-shadow: 0 0 12px #4DD87A; }
.te-mk-site__links { display: flex; gap: 1.2em; flex: 1; font-size: .82em; color: rgba(255, 255, 255, .75); }
.te-mk-site__cta { padding: .4em .9em; border-radius: 999px; background: #fff; color: #0B130E; font-size: .8em; font-weight: 700; }
.te-mk-site__herotext { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .55em; max-width: 32em; }
.te-mk-site__date { font-size: .74em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #4DD87A; }
.te-mk-site__title { font-size: 2.3em; font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.te-mk-site__sub { font-size: .92em; color: rgba(255, 255, 255, .78); margin-bottom: .4em; }
.te-mk-site__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.6em;
  padding: 1.3em 1.4em 1.5em;
}
.te-mk-site__h { font-weight: 700; font-size: .95em; margin-bottom: .55em; letter-spacing: -.01em; }
.te-mk-site__slot {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  align-items: center;
  gap: .5em;
  padding: .55em 0;
  border-top: 1px solid var(--mk-line);
}
.te-mk-site__time { font-size: .85em; font-weight: 700; color: var(--mk-brand-text); }
.te-mk-site__slotbody { display: flex; align-items: center; justify-content: space-between; gap: .5em; min-width: 0; }
.te-mk-site__slotbody .te-mk__strong { font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-site__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
.te-mk-site__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
  padding: .75em .5em;
  border-radius: 12px;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
  text-align: center;
}
.te-mk-site__person .te-mk__strong { font-size: .86em; }
.te-mk-site__person .te-mk__muted { font-size: .74em; }
.te-mk-site__portrait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8em; height: 2.8em;
  margin-bottom: .35em;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: .9em;
  box-shadow: 0 0 0 3px var(--mk-bg);
}
.te-mk-site__portrait--a { background: linear-gradient(140deg, #4DD87A, #127A33); }
.te-mk-site__portrait--b { background: linear-gradient(140deg, #93C5FD, #1E40AF); }
.te-mk-site__portrait--c { background: linear-gradient(140deg, #FCD34D, #B45309); }
.te-mk-site__portrait--d { background: linear-gradient(140deg, #C4B5FD, #6D28D9); }

@container (max-width: 560px) {
  .te-mk-site__content { grid-template-columns: minmax(0, 1fr); gap: 1.1em; }
  .te-mk-site__links { visibility: hidden; }
  .te-mk-site__title { font-size: 1.9em; }
  .te-mk-site__people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .te-mk-site__person .te-mk__muted { display: none; }
  .te-mk-site__person { padding: .6em .3em; }
}
@container (max-width: 400px) {
  .te-mk-site__people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Constructeur de formulaire
   ========================================================================== */
.te-mk-fb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  padding: .75em 1em;
  border-bottom: 1px solid var(--mk-line);
}
.te-mk-fb__crumb { font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.te-mk-fb__crumb .te-mk__muted { font-size: 1em; }
.te-mk-fb__actions { display: inline-flex; align-items: center; gap: .5em; }
.te-mk-fb__cols { display: grid; grid-template-columns: 10.5em minmax(0, 1fr) 15em; }
.te-mk-fb__palette {
  display: flex;
  flex-direction: column;
  gap: .35em;
  padding: .9em .75em;
  background: var(--mk-bg-2);
  border-right: 1px solid var(--mk-line);
}
.te-mk-fb__palette .te-mk__label { margin-bottom: .3em; }
.te-mk-fb__tool {
  display: flex;
  align-items: center;
  gap: .55em;
  padding: .4em .5em;
  border-radius: 8px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  font-size: .82em;
  color: var(--mk-text-2);
  white-space: nowrap;
}
.te-mk-fb__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em; height: 1.7em;
  border-radius: 6px;
  background: var(--mk-bg-3);
  color: var(--mk-text-2);
  font-size: .85em;
  font-weight: 700;
}
.te-mk-fb__canvas {
  display: flex;
  flex-direction: column;
  gap: .6em;
  padding: 1.2em 1.4em 1.4em;
  min-width: 0;
  background-color: var(--mk-bg-2);
  background-image: radial-gradient(var(--mk-line-2) 1px, transparent 1.2px);
  background-size: 1.1em 1.1em;
}
.te-mk-fb__formtitle { font-size: 1.15em; font-weight: 700; letter-spacing: -.02em; margin-bottom: .2em; }
.te-mk-fb__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4em;
  padding: .7em .85em .8em;
  border-radius: 11px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  box-shadow: var(--mk-shadow-sm);
}
.te-mk-fb__flabel { font-size: .84em; font-weight: 600; }
.te-mk-fb__flabel i { font-style: normal; color: var(--mk-error); }
.te-mk-fb__input {
  position: relative;
  display: block;
  padding: .45em .6em;
  border-radius: 7px;
  border: 1px solid var(--mk-line-2);
  background: var(--mk-bg);
  font-size: .84em;
  color: var(--mk-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.te-mk-fb__input.is-placeholder { color: var(--mk-text-3); }
.te-mk-fb__input.is-select::after {
  content: "";
  position: absolute;
  right: .7em; top: 50%;
  width: .45em; height: .45em;
  border-right: 1.5px solid var(--mk-text-3);
  border-bottom: 1.5px solid var(--mk-text-3);
  transform: translateY(-70%) rotate(45deg);
}
.te-mk-fb__choices { display: flex; flex-wrap: wrap; gap: .35em; }
.te-mk-fb__choice {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .7em;
  border-radius: 999px;
  border: 1px solid var(--mk-line-2);
  font-size: .8em;
  color: var(--mk-text-2);
}
.te-mk-fb__choice::before { content: ""; width: .7em; height: .7em; border-radius: 50%; border: 1.5px solid var(--mk-line-2); }
.te-mk-fb__choice.is-on { border-color: var(--mk-brand); background: var(--mk-brand-soft); color: var(--mk-brand-text); font-weight: 600; }
.te-mk-fb__choice.is-on::before { border-color: var(--mk-brand); background: var(--mk-brand); box-shadow: inset 0 0 0 2px var(--mk-bg); }
.te-mk-fb__field.is-conditional { margin-left: 1.5em; }
.te-mk-fb__field.is-conditional::before {
  content: "";
  position: absolute;
  left: -1.05em; top: -.6em;
  width: .8em; height: 2em;
  border-left: 1.5px dashed var(--mk-brand);
  border-bottom: 1.5px dashed var(--mk-brand);
  border-bottom-left-radius: 6px;
}
.te-mk-fb__field.is-selected {
  border-color: var(--mk-brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk-brand) 16%, transparent), 0 10px 24px -14px rgba(29, 198, 83, .6);
}
.te-mk-fb__cond {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .35em;
  padding: .2em .6em;
  border-radius: 999px;
  background: var(--mk-brand-soft);
  color: var(--mk-brand-text);
  font-size: .72em;
  font-weight: 600;
}
.te-mk-fb__cond svg { width: 1.15em; height: 1.15em; stroke-width: 2.2; }
.te-mk-fb__handle { position: absolute; top: .8em; right: .8em; display: grid; grid-template-columns: repeat(2, 3px); gap: 2px; }
.te-mk-fb__handle i { width: 3px; height: 3px; border-radius: 50%; background: var(--mk-text-3); }
.te-mk-fb__handle i:nth-child(n) { box-shadow: 5px 0 0 var(--mk-text-3); }
.te-mk-fb__add {
  padding: .6em;
  border-radius: 10px;
  border: 1.5px dashed var(--mk-line-2);
  text-align: center;
  font-size: .82em;
  font-weight: 600;
  color: var(--mk-text-3);
}
.te-mk-fb__settings {
  display: flex;
  flex-direction: column;
  gap: .75em;
  padding: .9em 1em;
  border-left: 1px solid var(--mk-line);
  min-width: 0;
}
.te-mk-fb__setting { display: flex; flex-direction: column; gap: .3em; }
.te-mk-fb__setting .te-mk__muted { font-size: .78em; }
.te-mk-fb__toggle { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: .84em; color: var(--mk-text-2); }
.te-mk-fb__rule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3em;
  padding: .6em;
  border-radius: 9px;
  background: var(--mk-brand-softer);
  border: 1px dashed color-mix(in srgb, var(--mk-brand) 50%, transparent);
}
.te-mk-fb__rule .te-mk__muted { font-size: .76em; width: 100%; }
.te-mk-fb__pill {
  padding: .2em .5em;
  border-radius: 6px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line-2);
  font-size: .76em;
  font-weight: 600;
  white-space: nowrap;
}
.te-mk-fb__pill--op { border-color: transparent; background: transparent; color: var(--mk-text-3); font-weight: 400; padding-inline: .1em; }
.te-mk-fb__pill--val { color: var(--mk-brand-text); border-color: color-mix(in srgb, var(--mk-brand) 50%, transparent); }

@container (max-width: 820px) {
  .te-mk-fb__cols { grid-template-columns: minmax(0, 1fr) 14em; }
  .te-mk-fb__palette { display: none; }
}
@container (max-width: 560px) {
  .te-mk-fb__cols { grid-template-columns: minmax(0, 1fr); }
  .te-mk-fb__settings { display: none; }
  .te-mk-fb__canvas { padding: 1em; }
  .te-mk-fb__actions .te-mk__badge { display: none; }
}

/* ==========================================================================
   Campagne email
   ========================================================================== */
.te-mk-camp__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  padding: .85em 1.1em;
  border-bottom: 1px solid var(--mk-line);
}
.te-mk-camp__title { display: flex; flex-direction: column; gap: .1em; min-width: 0; }
.te-mk-camp__title > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-camp__title .te-mk__strong { font-size: 1.05em; letter-spacing: -.01em; }
.te-mk-camp__title .te-mk__muted { font-size: .8em; }
.te-mk-camp__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1em;
  padding: 1em;
  background: var(--mk-bg-2);
}
.te-mk-camp__preview {
  border-radius: 12px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  overflow: hidden;
  box-shadow: var(--mk-shadow-sm);
}
.te-mk-camp__mailhead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .25em .7em;
  padding: .65em .85em;
  border-bottom: 1px solid var(--mk-line);
  font-size: .8em;
}
.te-mk-camp__mailhead > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-camp__mailhead .te-mk__muted { font-size: 1em; }
.te-mk-camp__mail { display: flex; flex-direction: column; gap: .6em; padding: .85em; }
.te-mk-camp__banner {
  display: grid;
  place-items: center;
  height: 5.6em;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
  background:
    radial-gradient(50% 90% at 80% 10%, rgba(77, 216, 122, .6), transparent 70%),
    linear-gradient(135deg, #0B130E, #1C2B1E 60%, #127A33);
}
.te-mk-camp__hello { font-weight: 700; font-size: .92em; }
.te-mk-camp__p { font-size: .84em; color: var(--mk-text-2); line-height: 1.45; }
.te-mk-camp__skel { display: flex; flex-direction: column; gap: .4em; }
.te-mk-camp__skel i { display: block; height: .5em; border-radius: 4px; background: var(--mk-bg-3); }
.te-mk-camp__skel i:nth-child(2) { width: 88%; }
.te-mk-camp__skel i:nth-child(3) { width: 62%; }
.te-mk-camp__mailbtn {
  align-self: flex-start;
  margin-top: .2em;
  padding: .55em 1em;
  border-radius: 8px;
  background: var(--mk-btn);
  color: #fff;
  font-size: .8em;
  font-weight: 600;
}
.te-mk-camp__stats { display: flex; flex-direction: column; gap: .8em; min-width: 0; }
.te-mk-camp__kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
.te-mk-camp__kpi {
  display: flex;
  flex-direction: column;
  gap: .2em;
  padding: .75em .85em;
  border-radius: 12px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  min-width: 0;
}
.te-mk-camp__kpi .te-mk__muted { font-size: .76em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-camp__kpi.is-hl { border-color: color-mix(in srgb, var(--mk-brand) 55%, transparent); background: var(--mk-brand-softer); }
.te-mk-camp__kpi.is-hl .te-mk-camp__value { color: var(--mk-brand-text); }
.te-mk-camp__value { font-size: 1.5em; font-weight: 700; letter-spacing: -.03em; }
.te-mk-camp__chart {
  padding: .8em .9em .7em;
  border-radius: 12px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
}
.te-mk-camp__charthead { display: flex; align-items: center; justify-content: space-between; gap: .5em; margin-bottom: .5em; font-size: .9em; }
.te-mk-camp__legend { display: inline-flex; align-items: center; gap: .4em; font-size: .78em; color: var(--mk-text-3); white-space: nowrap; }
.te-mk-camp__legend i { width: .9em; height: 3px; border-radius: 2px; background: var(--mk-brand); }
.te-mk-camp__legend i.is-click { background: var(--mk-info); margin-left: .4em; }
.te-mk-camp__chart svg { width: 100%; height: 7.5em; }
.te-mk-camp__grid { stroke: var(--mk-line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.te-mk-camp__area { fill: color-mix(in srgb, var(--mk-brand) 16%, transparent); stroke: none; }
.te-mk-camp__line { stroke: var(--mk-brand); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.te-mk-camp__line2 { stroke: var(--mk-info); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.te-mk-camp__axis { display: flex; justify-content: space-between; margin-top: .35em; font-size: .68em; color: var(--mk-text-3); }

@container (max-width: 640px) {
  .te-mk-camp__cols { grid-template-columns: minmax(0, 1fr); }
  .te-mk-camp__preview { display: none; }
}
@container (max-width: 400px) {
  .te-mk-camp__bar .te-mk__badge { display: none; }
  .te-mk-camp__value { font-size: 1.3em; }
}

/* ==========================================================================
   Réseaux sociaux (calendrier éditorial)
   ========================================================================== */
.te-mk-soc__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  padding: .85em 1.1em;
  border-bottom: 1px solid var(--mk-line);
}
.te-mk-soc__title { display: flex; flex-direction: column; gap: .1em; }
.te-mk-soc__title .te-mk__strong { font-size: 1.05em; letter-spacing: -.01em; }
.te-mk-soc__title .te-mk__muted { font-size: .8em; }
.te-mk-soc__legend { display: inline-flex; flex-wrap: wrap; gap: .4em .9em; font-size: .78em; color: var(--mk-text-2); }
.te-mk-soc__legend > span { display: inline-flex; align-items: center; gap: .4em; }
.te-mk-soc__dot { display: inline-block; width: .75em; height: .75em; border-radius: 50%; flex-shrink: 0; }
.te-mk-soc__dot--ig { background: linear-gradient(135deg, #F59E0B, #E11D74 55%, #8B5CF6); }
.te-mk-soc__dot--fb { background: #2563EB; }
.te-mk-soc__dot--li { background: #0E7490; }
.te-mk-soc__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45em;
  padding: .9em;
  background: var(--mk-bg-2);
}
.te-mk-soc__day {
  display: flex;
  flex-direction: column;
  gap: .4em;
  min-height: 15em;
  padding: .5em;
  border-radius: 11px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-line);
  min-width: 0;
}
.te-mk-soc__day.is-today { border-color: color-mix(in srgb, var(--mk-brand) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mk-brand) 12%, transparent); }
.te-mk-soc__dayhead { display: flex; align-items: center; justify-content: space-between; padding: .1em .15em .25em; font-size: .76em; color: var(--mk-text-3); }
.te-mk-soc__dayhead b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em; height: 1.8em;
  border-radius: 50%;
  color: var(--mk-text);
  font-weight: 700;
}
.te-mk-soc__day.is-today .te-mk-soc__dayhead b { background: var(--mk-brand); color: #fff; }
.te-mk-soc__post {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35em;
  padding: .45em .5em .5em;
  border-radius: 8px;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
  border-left: 3px solid #2563EB;
  font-size: .76em;
}
.te-mk-soc__post--ig { border-left-color: #E11D74; }
.te-mk-soc__post--li { border-left-color: #0E7490; }
.te-mk-soc__phead { display: inline-flex; align-items: center; gap: .35em; color: var(--mk-text-3); font-weight: 600; }
.te-mk-soc__phead .te-mk-soc__dot { width: .65em; height: .65em; }
.te-mk-soc__text {
  font-weight: 500;
  color: var(--mk-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.te-mk-soc__post .te-mk__badge { font-size: .86em; padding: .15em .5em; }

@container (max-width: 900px) {
  .te-mk-soc__week { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .te-mk-soc__day:nth-child(n+6) { display: none; }
}
@container (max-width: 640px) {
  .te-mk-soc__week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .te-mk-soc__day:nth-child(n+4) { display: none; }
  .te-mk-soc__bar { flex-direction: column; align-items: flex-start; }
}
@container (max-width: 400px) {
  .te-mk-soc__week { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .6em; }
  .te-mk-soc__day:nth-child(n+3) { display: none; }
  .te-mk-soc__day:nth-child(2) { display: flex; }
}

/* ==========================================================================
   Facture
   ========================================================================== */
.te-mk-inv {
  max-width: 580px;
  margin-inline: auto;
  padding: 1.7em 1.8em 1.3em;
}
.te-mk-inv::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #127A33, #1DC653, #4DD87A);
}
.te-mk-inv__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1em; }
.te-mk-inv__from { display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.te-mk-inv__from .te-mk__muted { font-size: .78em; }
.te-mk-inv__brand { display: inline-flex; align-items: center; gap: .55em; margin-bottom: .35em; font-weight: 700; letter-spacing: -.01em; }
.te-mk-inv__ref { display: flex; flex-direction: column; align-items: flex-end; gap: .3em; text-align: right; }
.te-mk-inv__num { font-size: 1.3em; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.te-mk-inv__paid { font-size: .8em; padding: .3em .75em; }
.te-mk-inv__parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  margin: 1.4em 0 1.2em;
  padding: .85em 1em;
  border-radius: 10px;
  background: var(--mk-bg-2);
  border: 1px solid var(--mk-line);
}
.te-mk-inv__parties > div { display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.te-mk-inv__parties .te-mk__label { margin-bottom: .15em; }
.te-mk-inv__parties .te-mk__strong { font-size: .92em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-inv__parties .te-mk__muted { font-size: .78em; }
.te-mk-inv__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6em 5.6em 3.8em 5.8em;
  gap: .6em;
  padding: .6em .2em;
  font-size: .86em;
  border-bottom: 1px solid var(--mk-line);
}
.te-mk-inv__row > span:not(:first-child) { text-align: right; }
.te-mk-inv__row--head {
  padding-block: .45em;
  font-size: .7em;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mk-text-3);
  border-bottom-color: var(--mk-line-2);
}
.te-mk-inv__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.te-mk-inv__totals { width: min(100%, 17em); margin: .9em 0 0 auto; }
.te-mk-inv__trow { display: flex; justify-content: space-between; gap: 1em; padding: .25em .2em; font-size: .88em; }
.te-mk-inv__trow .te-mk__muted { font-size: 1em; }
.te-mk-inv__trow--grand {
  margin-top: .4em;
  padding-top: .6em;
  border-top: 2px solid var(--mk-text);
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: -.01em;
}
.te-mk-inv__foot {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 1.4em;
  padding-top: .8em;
  border-top: 1px dashed var(--mk-line-2);
  font-size: .72em;
  color: var(--mk-text-3);
}

@container (max-width: 460px) {
  .te-mk-inv { padding: 1.3em 1.1em 1em; }
  .te-mk-inv__row { grid-template-columns: minmax(0, 1fr) 2em 5.4em; }
  .te-mk-inv__row > span:nth-child(3),
  .te-mk-inv__row > span:nth-child(4) { display: none; }
  .te-mk-inv__parties { grid-template-columns: minmax(0, 1fr); gap: .7em; }
  .te-mk-inv__foot > span:last-child { display: none; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes te-mk-ping {
  0% { box-shadow: 0 0 0 0 rgba(29, 198, 83, .55); }
  80%, 100% { box-shadow: 0 0 0 .55em rgba(29, 198, 83, 0); }
}
@keyframes te-mk-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes te-mk-grow { from { transform: scaleY(.15); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
@keyframes te-mk-scanline {
  0%, 100% { top: 22%; }
  50% { top: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  .te-mk *,
  .te-mk *::before,
  .te-mk *::after {
    animation: none !important;
    transition: none !important;
  }
}
