/* MARIE — styles partagés (chargés par les deux racines, index.html et vertical-9x16.html) */
/* Les @font-face sont déclarés dans chaque racine et chaque scène (chemins depuis la racine du projet). */

:root {
  --cream: #f6f1ea;
  --ink: #1f2a44;
  --terra: #e2725b;
  --green: #2fa37a;
  --sun: #f4b942;
  --stone: #c9c2b8;
  --terra-deep: #b4523f;
  /* terracotta assombri pour le texte (contraste ≥ 3:1 sur crème, grands corps) */
  --terra-text: #c65a43;
  --green-deep: #1f7a5a;
}

.mstage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
}
.mstage .mworld {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none; /* laisse le Studio sélectionner les textes situés dessous */
}
.mstage .mhud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mstage .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(31, 42, 68, 0.06) 1px, transparent 1.2px);
  background-size: 6px 6px;
  opacity: 0.55;
}
.mstage .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(246, 241, 234, 0) 55%, rgba(226, 210, 190, 0.55) 100%);
}

/* ---------- Cartons ---------- */
.carton {
  position: absolute;
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.06;
}
.carton .wm {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.22em 0.04em 0.18em;
  margin: -0.22em -0.04em -0.18em;
}
.carton .wi {
  display: inline-block;
}
.carton em {
  font-style: normal;
  color: var(--terra-text);
}
.fmt-h .carton {
  font-size: 80px;
  max-width: 820px;
}
.fmt-v .carton {
  font-size: 92px;
  max-width: 920px;
  left: 80px;
}
.carton .wi.k {
  color: var(--terra-text);
}

/* ---------- Compteurs ---------- */
.mcount {
  position: absolute;
  font-family: "Inter", sans-serif;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mcount .lab {
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.01em;
}
.mcount .val {
  font-weight: 700;
  font-size: 76px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--terra-text);
  display: block;
  transform-origin: left bottom;
}
.fmt-v .mcount .lab {
  font-size: 34px;
}
.fmt-v .mcount .val {
  font-size: 84px;
}

/* ---------- Étiquettes ancrées au monde ---------- */
.anchor {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.tag {
  position: absolute;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  background: rgba(255, 252, 246, 0.94);
  border: 2px solid rgba(31, 42, 68, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: 0 6px 18px rgba(31, 42, 68, 0.1);
}
.fmt-v .tag {
  font-size: 32px;
}
.pill {
  position: absolute;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  background: var(--green-deep);
  border-radius: 999px;
  padding: 12px 24px 12px 14px;
  box-shadow: 0 10px 26px rgba(31, 122, 90, 0.28);
}
.pill .ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill .ic svg {
  width: 22px;
  height: 22px;
  display: block;
}
.fmt-v .pill {
  font-size: 32px;
}
.ico {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(31, 42, 68, 0.16);
}
.ico svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* ---------- Impulsions et marqueurs (scène 4) ---------- */
.ico.ph {
  background: var(--terra);
}
.ico.sm {
  background: var(--ink);
}
.ico.ok {
  background: var(--green-deep);
}
.mk {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(31, 42, 68, 0.18);
}
.mk svg {
  width: 20px;
  height: 20px;
  display: block;
}
.mk.ph {
  background: var(--terra);
}
.mk.sm {
  background: var(--ink);
}
.mrow {
  position: absolute;
  display: flex;
  gap: 56px;
}
.mrow .mcount {
  position: relative;
}
