/* 11Simulator · Soutenir le jeu (20261125kf1) — jeu + pages de présentation */
:root { --esh-rose: #ff6b6b; --esh-rose2: #ff8e72; }

/* Bouton du mode Simple */
html[data-theme] body #eshSimple.esh-open, html body #eshSimple.esh-open { color: var(--esh-rose) !important; border-color: rgba(255, 107, 107, .45) !important; }
html[data-theme] body #eshSimple.esh-open:hover, html body #eshSimple.esh-open:hover { background: rgba(255, 107, 107, .1) !important; }

/* Carte du menu latéral (mode Expert) */
html body #sidebar .esh-side {
  display: flex; align-items: center; gap: 10px; width: calc(100% - 4px); margin: 2px 2px 10px; padding: 7px 12px;
  border-radius: 12px; border: 1px solid rgba(255, 107, 107, .35); background: rgba(255, 107, 107, .08);
  color: inherit; font: inherit; text-align: start; cursor: pointer; flex-shrink: 0; transition: background .15s, border-color .15s;
}
html body #sidebar .esh-side:hover { background: rgba(255, 107, 107, .16); border-color: rgba(255, 107, 107, .6); }
html body #sidebar .esh-side:focus-visible { outline: 2px solid var(--esh-rose); outline-offset: 2px; }
.esh-side-ico { font-size: 18px; color: var(--esh-rose); line-height: 1; }
.esh-side-tx { display: flex; flex-direction: column; min-width: 0; }
.esh-side-t { font-size: 13.5px; font-weight: 700; }
.esh-side-s { font-size: 11.5px; opacity: .7; line-height: 1.3; }

/* Fenêtre */
.esh-overlay {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(4, 8, 12, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: esh-in .18s ease-out;
}
@keyframes esh-in { from { opacity: 0 } to { opacity: 1 } }
html body .esh-overlay .esh-card:focus, html body .esh-overlay .esh-card:focus-visible { outline: none !important; }
.esh-card {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto;
  padding: 26px 24px 18px; border-radius: 20px; text-align: center;
  background: #121a22; color: #eef2f5; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); font-family: inherit;
}
.esh-x {
  position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; opacity: .6; font-size: 22px; line-height: 1; cursor: pointer;
}
.esh-x:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.esh-heart {
  width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--esh-rose), var(--esh-rose2));
  box-shadow: 0 8px 22px rgba(255, 107, 107, .35);
}
.esh-title { margin: 0 0 8px; font-size: 21px; font-weight: 800; letter-spacing: 0; text-transform: none; color: inherit; }
.esh-intro { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; opacity: .85; }
.esh-lead { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; text-align: start; }
.esh-goals { list-style: none; margin: 0 0 14px; padding: 0; text-align: start; display: grid; gap: 8px; }
.esh-goals li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45;
  padding: 9px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.esh-ico { flex: 0 0 auto; font-size: 16px; line-height: 1.3; }
.esh-thanks { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.esh-cta {
  display: block; padding: 13px 18px; border-radius: 14px; font-weight: 800; font-size: 15.5px; text-decoration: none;
  color: #fff !important; background: linear-gradient(135deg, var(--esh-rose), var(--esh-rose2));
  box-shadow: 0 8px 20px rgba(255, 107, 107, .3); transition: transform .12s, box-shadow .12s;
}
.esh-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 107, 107, .4); }
.esh-cta:focus-visible, .esh-later:focus-visible, .esh-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.esh-safe { margin: 10px 0 4px; font-size: 12px; opacity: .6; line-height: 1.4; }
.esh-later { margin-top: 4px; padding: 8px 14px; border: 0; background: transparent; color: inherit; opacity: .7; font: inherit; font-size: 13.5px; cursor: pointer; }
.esh-later:hover { opacity: 1; }

/* Thème clair du jeu */
html[data-theme="paper"] .esh-card { background: #fffdf8; color: #1b2128; border-color: rgba(0, 0, 0, .1); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
html[data-theme="paper"] .esh-goals li { background: rgba(0, 0, 0, .045); }
html[data-theme="paper"] .esh-x:hover { background: rgba(0, 0, 0, .06); }
html[data-theme="paper"] body #eshSimple.esh-open, html[data-theme="paper"] .esh-side-ico { color: #d9433f !important; }
html[data-theme="paper"] .esh-cta:focus-visible, html[data-theme="paper"] .esh-later:focus-visible { outline-color: #1b2128; }

@media (prefers-reduced-motion: reduce) { .esh-overlay { animation: none } .esh-cta { transition: none } }

/* Pages de présentation (/fr/, /en/…) */
.esh-land { max-width: 760px; margin: 48px auto 8px; padding: 26px 24px; border-radius: 20px; text-align: center;
  border: 1px solid rgba(255, 107, 107, .3); background: rgba(255, 107, 107, .06); }
.esh-land h2 { margin: 0 0 8px; }
.esh-land p { margin: 0 auto 12px; max-width: 600px; line-height: 1.55; }
.esh-land ul { list-style: none; margin: 0 auto 16px; padding: 0; max-width: 560px; display: grid; gap: 6px; text-align: start; }
.esh-land li { padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.esh-land .esh-cta { display: inline-block; }
.esh-land .esh-safe { margin-top: 10px; }
.esh-land .esh-h { color: var(--esh-rose); }
footer .legal a.esh-foot, footer .legal a.esh-foot:visited { color: var(--esh-rose); }

/* ds2 : fenêtre large — message personnalisé à gauche, formulaire Ko-fi intégré à droite */
.esh-card.esh-wide { max-width: 880px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; text-align: start; padding: 48px 24px 20px; }
.esh-wide .esh-msg { text-align: center; padding-top: 6px; }
.esh-hi { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.45;
  background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .28); }
.esh-pay { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.esh-frame { border-radius: 16px; overflow: hidden; background: #fff; height: 590px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.esh-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.esh-alt { display: inline-block; margin: 2px auto 0; font-size: 13px; color: var(--esh-rose) !important; text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="paper"] .esh-alt { color: #d9433f !important; }
html[data-theme="paper"] .esh-frame { box-shadow: 0 4px 16px rgba(0, 0, 0, .12); border: 1px solid rgba(0, 0, 0, .08); }
@media (max-width: 860px) {
  .esh-card.esh-wide { grid-template-columns: 1fr; max-width: 460px; gap: 14px; padding: 44px 16px 14px; }
  .esh-wide .esh-intro, .esh-wide .esh-thanks { display: none; }
  .esh-wide .esh-goals { gap: 5px; margin-bottom: 4px; }
  .esh-wide .esh-goals li { font-size: 13px; padding: 6px 10px; }
  .esh-wide .esh-heart { width: 44px; height: 44px; font-size: 21px; margin-bottom: 8px; }
  .esh-frame { height: 590px; }
}

/* kf1 : remerciement après un don + statut Supporter */
.esh-thx .esh-card { max-width: 440px; overflow: hidden; }
.esh-heart-big { width: 72px; height: 72px; font-size: 34px; animation: esh-beat 1.2s ease-in-out 2; }
@keyframes esh-beat { 0%, 100% { transform: scale(1) } 30% { transform: scale(1.18) } 60% { transform: scale(.96) } }
.esh-got { margin: 0 0 10px; font-size: 15.5px; font-weight: 700; }
.esh-overlay .esh-card .esh-badge { display: inline-block; margin: 2px 0 14px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  color: #fff !important; opacity: 1; background: linear-gradient(135deg, var(--esh-rose), var(--esh-rose2)); }
.esh-back { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 800; margin-top: 6px; }
.esh-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.esh-burst span { position: absolute; top: -24px; color: var(--esh-rose); opacity: 0; animation: esh-fall 2.4s ease-in 0s 1 forwards; }
@keyframes esh-fall { 0% { opacity: 0; transform: translateY(0) rotate(0) } 15% { opacity: .9 } 100% { opacity: 0; transform: translateY(460px) rotate(40deg) } }
html body #sidebar .esh-side.esh-is-sup { background: rgba(255, 107, 107, .14); border-color: rgba(255, 107, 107, .55); }
@media (prefers-reduced-motion: reduce) { .esh-heart-big, .esh-burst span { animation: none } .esh-burst { display: none } }
