/* Jeere Studio — « Abonnements Studio »: the plan chip, the locks, the upgrade sheet, the badge
 * switch of the publish dialog. The studio's own tokens (studio.css); text ≥ 4.5:1 on #262626 /
 * #1E1E1E. */

/* the plan chip in the top bar (replaces the old « Formule Avancée » badge; never hidden) */
.st-planchip {
  display: inline-flex; align-items: center; gap: 5px; flex: none; max-width: 150px;
  font: 600 11px var(--st-font); letter-spacing: 0.02em; white-space: nowrap;
  color: #DDE8FF; background: rgba(54, 87, 255, 0.22); border: 1px solid rgba(94, 125, 255, 0.5);
  padding: 3px 9px 3px 7px; border-radius: 999px; cursor: pointer;
}
.st-planchip span { overflow: hidden; text-overflow: ellipsis; }
.st-planchip:hover { background: rgba(54, 87, 255, 0.36); }
.st-planchip__ico { width: 12px; height: 12px; flex: none; }
.st-planchip[data-state="free"] { color: var(--st-ink); background: var(--st-chrome-2); border-color: var(--st-line-d); }
.st-planchip[data-state="free"]:hover { background: var(--st-chrome-3); }
.st-planchip[data-state="trial"] { color: #FFE9A8; background: rgba(245, 184, 0, 0.16); border-color: rgba(245, 184, 0, 0.5); }
.st-planchip[data-state="due"] { color: #FFD0D0; background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.5); }
.st-touch .st-planchip { min-height: 34px; padding: 4px 11px 4px 9px; }

/* a lock on what Découverte does not include: visible, never hidden */
.st-lock { width: 11px; height: 11px; flex: none; vertical-align: -1px; margin-left: 4px; opacity: 0.9; }
.st-right__tabs button.is-locked { color: var(--st-ink-dim); }
.st-ftb__btn.is-locked > .st-lock { position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; margin: 0; color: #FFE9A8; }
.st-ftb__btn { position: relative; }
.st-share__row button.is-locked { display: inline-flex; align-items: center; }
.dz-fontmenu__i.is-locked span { opacity: 0.75; }
.dz-fontmenu__lock { width: 12px; height: 12px; flex: none; margin-left: 6px; color: var(--st-ink-dim); }

/* text links and anchor buttons inside the studio's dialogs */
.st-textlink {
  background: none; border: 0; padding: 6px 2px; color: #AFC0FF; font: 500 12px var(--st-font);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.st-modal a.st-textlink { text-decoration: underline; }
.st-textlink:hover { color: #D4DDFF; }
.st-btnlink { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.st-modal__actions { flex-wrap: wrap; }
.st-modal__actions--col { flex-direction: column; align-items: stretch; }
.st-modal__actions--col > p { margin: 0 !important; }

/* the upgrade sheet */
.st-plansheet { width: min(760px, 100%); padding: 24px 24px 18px; }
.st-plansheet h2 { margin: 6px 0 8px; }
.st-plansheet__eyebrow {
  display: flex; align-items: center; gap: 6px; margin: 0 !important;
  font-size: 11px !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #FFE9A8 !important;
}
.st-plansheet__eyebrow .st-lock { margin: 0; width: 12px; height: 12px; }
.st-plansheet__limit { color: var(--st-ink) !important; }
.st-plansheet__ok { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(34, 197, 94, 0.12); color: #BFF0D0; font-size: 12px; line-height: 1.5; }
.st-plansheet__ok svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.st-plansheet__feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0; list-style: none; }
.st-plansheet__feats li {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px 3px 6px; border-radius: 999px;
  border: 1px solid var(--st-line-d); color: #C8C8C8; font-size: 11px;
}
.st-plansheet__feats li .st-lock { margin: 0 2px 0 0; }
.st-plansheet__feats li.is-cur { border-color: #FFE9A8; color: #FFE9A8; }
.st-plansheet__trial {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; padding: 12px 14px;
  border-radius: 12px; background: rgba(54, 87, 255, 0.14); border: 1px solid rgba(94, 125, 255, 0.4);
}
.st-plansheet__trial > span { flex: 1 1 260px; font-size: 12px; line-height: 1.5; color: #D4DDFF; }
.st-plansheet__trial .st-primary { font-size: 13px; padding: 8px 16px; }
.st-plansheet__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.st-plansheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 10px; }
.st-plansheet__lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-ink-dim); }
.st-plansheet__bar .st-seg button { padding: 5px 12px; font: 500 12px var(--st-font); color: #C8C8C8; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.st-plansheet__bar .st-seg button.is-on { background: var(--st-blue); color: #fff; }

.st-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.st-plan {
  display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px;
  background: #1E1E1E; border: 1px solid var(--st-line-d);
}
.st-plan.is-pick { border-color: rgba(94, 125, 255, 0.75); box-shadow: inset 0 0 0 1px rgba(94, 125, 255, 0.35); }
.st-plan.is-cur { border-color: rgba(34, 197, 94, 0.6); }
.st-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.st-plan__name { font: 600 15px var(--st-brand-font); color: var(--st-ink); }
.st-plan .st-pill { background: rgba(54, 87, 255, 0.28); color: #DDE8FF; }
.st-plan .st-pill--ok { background: var(--ok-bg); color: var(--ok-ink); }
.st-plan__for { margin: 0 !important; font-size: 12px !important; line-height: 1.45 !important; color: var(--st-ink-dim) !important; min-height: 34px; }
.st-plan__price { font-size: 12px; color: #C8C8C8; }
.st-plan__price b { font: 600 20px var(--st-font); color: var(--st-ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.st-plan__sub { font-size: 11px; color: var(--st-ink-dim); line-height: 1.45; }
.st-plan__pts { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; flex: 1; }
.st-plan__pts li { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; line-height: 1.45; color: #C8C8C8; }
.st-plan__pts svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--ok); }
.st-plan__cta { justify-content: center; margin-top: 8px; padding: 8px 12px; font-size: 12px; }
.st-plansheet__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--st-line-d); }
.st-demo {
  margin-left: auto; font-size: 11px; font-weight: 600; color: #FFE9A8; padding: 3px 9px; border-radius: 999px;
  background: rgba(245, 184, 0, 0.14); border: 1px solid rgba(245, 184, 0, 0.4);
}

/* the « Fait avec Jeere » badge switch, in the publish dialog */
.st-badgerow {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 2px;
  padding: 10px 12px; border-radius: 10px; background: #1E1E1E; border: 1px solid var(--st-line-d);
}
.st-badgerow__txt { display: grid; gap: 2px; min-width: 0; }
.st-badgerow__txt b { font-size: 12px; color: var(--st-ink); }
.st-badgerow__txt span { font-size: 11.5px; line-height: 1.45; color: var(--st-ink-dim); }
.st-switch {
  position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px; border: 1px solid var(--st-line-d);
  background: var(--st-chrome-3); cursor: pointer; padding: 0;
}
.st-switch__knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #E8E8E8; transition: transform var(--dur-1, 90ms) var(--ease, ease); }
.st-switch[aria-checked="true"] { background: var(--st-blue); border-color: var(--st-blue); }
.st-switch[aria-checked="true"] .st-switch__knob { transform: translateX(18px); }
.st-switch.is-locked .st-lock { position: absolute; right: -16px; top: 5px; margin: 0; color: #FFE9A8; }
.st-switch.is-locked { margin-right: 14px; }
.st-touch .st-switch { width: 48px; height: 28px; }
.st-touch .st-switch__knob { width: 22px; height: 22px; }
.st-touch .st-switch[aria-checked="true"] .st-switch__knob { transform: translateX(20px); }

@media (max-width: 1100px) {
  .st-plans { grid-template-columns: 1fr; }
  .st-plan__for { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-switch__knob { transition: none; } }

/* the « sur ordinateur » screen, reached from « Essayer le Studio » on a phone */
.st-guard__trial a { color: #AFC0FF; text-decoration: underline; text-underline-offset: 3px; }
