* { box-sizing: border-box; }
body { margin: 0; font-family: "Trebuchet MS", sans-serif; background: #1f3b1f; color: #fff; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: #14290fcc; }
h1 { font-size: 20px; margin: 0; }
.argent { background: #f2c230; color: #3a2a00; padding: 6px 14px; border-radius: 20px; font-size: 18px; }
nav { position: fixed; top: 52px; left: 0; right: 0; z-index: 2; display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; justify-content: center; pointer-events: none; }
nav button { pointer-events: auto; }
button { font: inherit; border: 0; border-radius: 10px; padding: 8px 14px; background: #3d7a2e; color: #fff; cursor: pointer; }
button:hover:not(:disabled) { background: #4f9a3c; }
button:disabled { background: #555; cursor: default; }
nav button.actif { background: #f2c230; color: #3a2a00; }
.ecran { display: none; position: fixed; inset: 0; z-index: 5; background: #000a; padding: 16px; overflow: auto; text-align: center; }
.ecran.actif { display: block; }
.fenetre { position: relative; max-width: 1050px; margin: 40px auto; background: #1f3b1f; border: 4px solid #14290f; border-radius: 16px; padding: 16px; }
.fermer { position: absolute; top: 10px; right: 10px; background: #c0392b; }
#jeu { position: fixed; inset: 0; width: 100vw; height: 100vh; touch-action: none; }
#btn-fouiller { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 2; font-size: 20px; padding: 12px 22px; background: #f2c230; color: #3a2a00; visibility: hidden; }
.aide { position: fixed; left: 12px; bottom: 6px; margin: 0; z-index: 2; font-size: 14px; background: #0007; padding: 6px 10px; border-radius: 8px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-width: 1000px; margin: auto; }
.carte { background: #2e5a24; border-radius: 12px; padding: 10px; }
.carte canvas { background: #4f8f3a; border-radius: 8px; }
.carte h3 { margin: 6px 0; }
.carte p { margin: 2px 0; font-size: 14px; }
.carte button { margin-top: 8px; }
#jours { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.jour { background: #2e5a24; border-radius: 12px; padding: 12px; width: 120px; display: flex; flex-direction: column; gap: 6px; }
.jour.pris { opacity: .45; }
.jour.courant { background: #f2c230; color: #3a2a00; transform: scale(1.08); }
.gros { font-size: 20px; padding: 12px 24px; }
#msg { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000d; padding: 12px 20px; border-radius: 12px; font-size: 18px; opacity: 0; transition: opacity .3s; pointer-events: none; text-align: center; max-width: 90vw; }
#msg.visible { opacity: 1; }
#btn-sauter { position: fixed; right: 20px; bottom: 70px; z-index: 2; font-size: 20px; padding: 14px 22px; background: #3b8f2f; color: #fff; }
#rond { position: fixed; left: 24px; bottom: 70px; z-index: 2; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,0.22); border: 3px solid rgba(255,255,255,0.6); touch-action: none; user-select: none; }
#bouton-rond { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: #3b8f2f; border: 3px solid #fff; pointer-events: none; }
