/* Tri du matin (Neo 08/10/2026) : plein écran, une pub à la fois, → garder, ← refuser */
body.tri-on { overflow: hidden; }
#tri { position: fixed; inset: 0; z-index: 200; background: var(--page); display: grid; grid-template-rows: auto 1fr auto; outline: none; }
.tri-top { display: flex; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--ring); }
.tri-top > div { display: flex; align-items: center; gap: 12px; }
.tri-top b { font: 700 20px/1 var(--display); }
.tri-top .eyebrow { margin: 0; }
.tri-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--tile); overflow: hidden; }
.tri-bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .25s var(--ease); }
.tri-scene { position: relative; display: grid; place-items: center; padding: 18px; overflow: hidden; min-height: 0; }
.tri-card { position: relative; display: grid; grid-template-columns: auto minmax(220px, 340px); gap: 24px; align-items: center; max-height: 100%;
  padding: 18px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring2); transition: transform .2s var(--ease), opacity .2s; touch-action: pan-y; user-select: none; }
.tri-card.entre { transform: translateY(16px) scale(.97); opacity: 0; }
.tri-card.part-ok { transform: translateX(70vw) rotate(10deg); opacity: 0; }
.tri-card.part-non { transform: translateX(-70vw) rotate(-10deg); opacity: 0; }
.tri-media { display: grid; place-items: center; }
.tri-media img { display: block; max-height: calc(100vh - 230px); max-width: min(56vw, 640px); border-radius: 12px; }
.tri-media iframe { width: 360px; height: calc(100vh - 230px); max-height: 720px; border: 0; border-radius: 12px; background: #000; }
.tri-media video { display: block; height: calc(100vh - 230px); max-height: 760px; max-width: min(56vw, 440px); border-radius: 12px; background: #000; }
.tri-wait { width: 340px; height: 420px; display: grid; place-items: center; padding: 20px; text-align: center; border-radius: 12px; background: var(--tile); color: var(--muted); }
.tri-info h2 { margin: 10px 0 6px; font: 700 22px/1.15 var(--display); }
.tri-info p { margin: 6px 0; font-size: 14px; }
.tri-txt { color: var(--text2); white-space: pre-wrap; max-height: 30vh; overflow: auto; }
.tri-badge { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--lime-10); color: var(--lime); font: 600 12px var(--display); }
.tri-badge.v { background: rgba(255, 176, 31, .12); color: var(--amber); }
.tri-stamp { position: absolute; top: 26px; padding: 6px 14px; border-radius: 10px; font: 700 22px/1 var(--display); letter-spacing: .06em; opacity: 0; transition: opacity .12s; pointer-events: none; }
.tri-stamp.ok { left: 26px; color: var(--lime); box-shadow: inset 0 0 0 3px var(--lime); transform: rotate(-10deg); }
.tri-stamp.non { right: 26px; color: var(--red); box-shadow: inset 0 0 0 3px var(--red); transform: rotate(10deg); }
.tri-card.part-ok .tri-stamp.ok, .tri-card[data-sens="ok"] .tri-stamp.ok, .tri-card.part-non .tri-stamp.non, .tri-card[data-sens="non"] .tri-stamp.non { opacity: 1; }
.tri-keys { display: flex; justify-content: center; gap: 10px; padding: 14px 18px 20px; flex-wrap: wrap; }
.tri-k { height: 44px; padding: 0 16px; border-radius: 12px; background: var(--tile); color: var(--text); font-weight: 600; }
.tri-k.oui { background: var(--lime); color: var(--on-lime); }
.tri-k.non { background: var(--red-10); color: var(--red); }
kbd { font: 600 12px var(--display); padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.tri-k.oui kbd { background: rgba(0, 0, 0, .12); }
.tri-raisons { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 201; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center;
  padding: 10px 12px; border-radius: 14px; background: var(--card); max-width: 92vw; box-shadow: inset 0 0 0 1px rgba(255, 90, 82, .4), 0 12px 32px rgba(0, 0, 0, .5); overflow: hidden; }
.tri-raisons > span { color: var(--muted); font-size: 13px; padding: 0 4px; }
.tri-raisons button { height: 34px; padding: 0 12px; border-radius: 10px; background: var(--tile); color: var(--text); font-size: 13px; }
.tri-chrono { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--red); animation: tri-chrono 2.2s linear forwards; }
@keyframes tri-chrono { from { width: 100%; } to { width: 0; } }
.tri-fin { max-width: 520px; text-align: center; }
.tri-fin h2 { font: 700 30px/1.1 var(--display); margin: 8px 0 14px; }
.tri-fin ul { list-style: none; padding: 0; margin: 12px 0; color: var(--text2); }
@media (max-width: 760px) {
  .tri-card { grid-template-columns: 1fr; gap: 12px; padding: 12px; max-width: 100%; }
  .tri-media img { max-width: 100%; max-height: 52vh; }
  .tri-media iframe { width: min(340px, 86vw); height: 56vh; }
  .tri-info h2 { font-size: 18px; } .tri-txt { max-height: 14vh; }
  .tri-k kbd { display: none; } .tri-k { padding: 0 12px; }
}
.tri-badge.c { background: rgba(124, 108, 255, .16); color: #b3a8ff; }
.tri-sig { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--tile); font-size: 12px; color: var(--text2); }
.tri-media img[referrerpolicy] { max-height: calc(100vh - 230px); }
/* feuille de titre d'une partie : arrive, puis s'en va (Neo : « bam, ensuite elle part ») */
.tri-feuille { text-align: center; padding: 44px 56px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--lime-24), 0 24px 60px rgba(0, 0, 0, .5);
  animation: tri-feuille .35s var(--ease) both; transition: transform .35s var(--ease), opacity .35s; }
.tri-feuille h2 { margin: 6px 0 10px; font: 700 44px/1 var(--display); letter-spacing: -.01em; }
.tri-feuille p { margin: 6px 0; } .tri-feuille b { color: var(--lime); font: 700 18px var(--display); }
.tri-feuille.part { transform: translateY(-40px) scale(.96); opacity: 0; }
@keyframes tri-feuille { from { transform: translateY(40px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 760px) { .tri-feuille { padding: 30px 24px; } .tri-feuille h2 { font-size: 32px; } }
@media (max-width: 760px) { .tri-media video { height: 56vh; max-width: 86vw; } }
/* Lancer ce qui est prêt (Neo 08/10/2026) */
#lance { position: fixed; inset: 0; z-index: 210; background: var(--page); display: grid; grid-template-rows: auto 1fr; }
.l-corps { overflow: auto; padding: 22px 18px 40px; display: grid; gap: 14px; align-content: start; justify-items: center; }
.l-corps > * { width: min(820px, 100%); }
.l-bloc { padding: 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--ring2); }
.l-on { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.l-on b { font: 700 18px var(--display); }
.l-on input { accent-color: var(--lime); width: 16px; height: 16px; transform: translateY(2px); }
.l-liste { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.l-liste li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--tile); font-size: 14px; flex-wrap: wrap; }
.l-liste li.l-ex { background: var(--red-10); color: var(--red); }
.l-liste select { height: 32px; border-radius: 8px; background: var(--page); color: var(--text); border: 1px solid var(--ring2); max-width: 260px; }
.l-regl { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ring); font-size: 13px; color: var(--text2); }
.l-regl label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.l-regl label > span { color: var(--muted); }
.l-regl input, .l-regl select { height: 34px; padding: 0 10px; border-radius: 9px; background: var(--page); color: var(--text); border: 1px solid var(--ring2); font: inherit; }
.l-regl input[inputmode] { width: 64px; } .l-regl [data-k=countries] { width: 110px; } .l-regl [data-k=campaignName] { width: 200px; }
.l-regl [data-k=campaignId] { max-width: 280px; }
.l-camp { flex-basis: 100%; }
.l-pied { display: grid; justify-items: center; gap: 8px; padding-top: 4px; }
.l-pied .primary.big { min-width: 320px; height: 52px; font-size: 16px; }
.l-etapes { list-style: none; padding: 12px 16px; margin: 0; border-radius: 14px; background: var(--card); font-size: 13px; color: var(--text2); display: grid; gap: 4px; }
.l-etapes li:last-child { color: var(--lime); }
.l-fin ul { text-align: left; display: grid; gap: 8px; } .l-fin li.ok b { color: var(--lime); } .l-fin .err, .l-fin li.err { color: var(--red); }
.tri-fin-actions { display: flex; gap: 10px; justify-content: center; margin-top: 8px; }
.l-briefs { margin-top: 12px; font-size: 13px; } .l-briefs summary { cursor: pointer; color: var(--text2); }
.l-coches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 14px; margin-top: 8px; max-height: 220px; overflow: auto; }
.l-coches label { display: flex; gap: 6px; align-items: baseline; } .l-coches label.vieux { color: var(--muted); }
.l-coches input { accent-color: var(--lime); }
