/* Indices en bas-GAUCHE */
.cochem-hints {
  position: fixed;
  left: 16px;            /* <-- gauche */
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 99998;
  pointer-events: none;
}

.cochem-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  animation: cochem-hint-in 150ms ease-out forwards, cochem-hint-out 300ms ease-in forwards 1200ms;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@keyframes cochem-hint-in { to { opacity: 1; transform: translateY(0); } }
@keyframes cochem-hint-out { to { opacity: 0; transform: translateY(12px); } }

/* Petite modale – AU-DESSUS de la grande */
.cochem-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100002; /* <-- plus haut que .cochem-big-overlay (100000) */
  display: flex;
  align-items: center;
  justify-content: center;
}


.cochem-modal {
  background: #0f0f0f;
  color: #e6e6e6;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 20px;
  border: 4px solid #3b3b3b;       /* cadre épais */
  outline: 2px solid #0a0a0a;       /* double cadre façon pixel */
  border-radius: 0;                  /* angles carrés */
  box-shadow:
    0 0 0 4px #1c1c1c inset,        /* liseré intérieur */
    0 10px 0 #000;                   /* ombre “plate” rétro */
  font-family: monospace;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.cochem-modal p { margin: 0 0 14px 0; line-height: 1.5; }

.cochem-actions { display: flex; justify-content: flex-end; gap: 10px; }

.cochem-btn {
  background: #2b2b2b;
  color: #fff;
  border: 3px solid #090909;
  border-radius: 0;                  /* look pixel */
  padding: 10px 14px;
  cursor: pointer;
  box-shadow:
    inset -2px -2px 0 rgba(0,0,0,0.6),
    inset  2px  2px 0 rgba(255,255,255,0.08),
    0 3px 0 #000;
  transition: transform 80ms ease;
}
.cochem-btn:hover { background: #353535; }
.cochem-btn:active { transform: translateY(2px); box-shadow:
  inset -2px -2px 0 rgba(0,0,0,0.6),
  inset  2px  2px 0 rgba(255,255,255,0.08),
  0 1px 0 #000;
}

/* Grande modale plein écran */
.cochem-big-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cochem-center {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
  width: 100%;
}

/* Image : curseur + anim retour auto via keyframes */
.cochem-main-img {
  max-height: 90vh;
  width: auto;
  max-width: 95vw;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;                   /* <-- pointer */
}

/* micro-anim squish + retour */
@keyframes cochem-squish {
  0%   { transform: scaleX(1)    scaleY(1); }
  50%  { transform: scaleX(1.05) scaleY(0.95); }
  100% { transform: scaleX(1)    scaleY(1); }
}
.cochem-main-img.cochem-anim {
  animation: cochem-squish 180ms ease-in-out;
}

/* Compteur en bas-DROITE */
.cochem-counter {
  position: fixed;
  right: 16px;          /* <-- droite */
  bottom: 16px;
  width: 48px;
  height: 48px;
  background: #9a9a9a;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Confettis */
.cochem-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
