


.option-donne-zone { position: relative; margin: 0 0 12px; }
.option-donne {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-forte);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texte);
  text-align: left; 
}
.option-donne input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--color-dark); }
.option-donne small {
  grid-column: 2;
  font-weight: 400;
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--texte-doux, #9a93b8);
}

.btn-info-donne {
  display: none;
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-forte); background: transparent;
  color: var(--texte-doux); font-weight: 700; cursor: pointer;
}
.option-donne-zone.ouverte .btn-info-donne { top: 18px; transform: none; }


.bandeau-bloque {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
  margin: 0 0 12px; padding: 8px 12px;
  background: color-mix(in srgb, #d98f3a 16%, var(--surface-2));
  border: 1px solid color-mix(in srgb, #d98f3a 45%, var(--line-forte));
  border-radius: 8px; font-size: 0.85rem; color: var(--texte);
}
.bandeau-bloque[hidden] { display: none; }


.overlay-box .fin-rang { color: var(--texte); font-weight: 600; margin: -10px 0 16px; }
.overlay-box .fin-rang:empty { display: none; }
.lien-classement-fin {
  display: inline-block; margin-top: 14px;
  color: var(--color-light); text-decoration: none; font-size: 0.85rem; font-weight: 600;
}
.lien-classement-fin:hover { color: var(--color-accent); }


.mode-pioche3 #waste-slot { width: calc(var(--carte-l) + 2 * var(--eventail)); --eventail: calc(var(--carte-l) * 0.24); justify-content: flex-start; }
.mode-pioche3 #waste-slot .card { position: absolute; top: -2px; }
.mode-pioche3 #waste-slot .card.eventail { cursor: default; }


.bandeau-indice {
  margin: 0 0 12px; padding: 8px 12px;
  background: color-mix(in srgb, #facc15 14%, var(--surface-2));
  border: 1px solid color-mix(in srgb, #facc15 45%, var(--line-forte));
  border-radius: 8px; font-size: 0.85rem; color: var(--texte);
}
.bandeau-indice[hidden] { display: none; }
.card.indice-source, .card-slot.indice-cible, .card.indice-cible { box-shadow: 0 0 0 3px #facc15, 0 0 18px rgba(250, 204, 21, 0.7); }
.card.indice-source { animation: indice-pulse 0.9s ease-in-out 3; }
@keyframes indice-pulse { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .card.indice-source { animation: none; } }


.archive-choix {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 0 0 12px; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--line-forte); border-radius: 8px;
  font-size: 0.85rem; color: var(--texte); text-align: left;
}
.archive-choix label { font-weight: 600; }
.archive-choix select { font: inherit; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-forte); background: var(--surface-1, #1e1b2e); color: var(--texte); }
.archive-choix small { flex-basis: 100%; color: var(--texte-doux, #9a93b8); font-size: 0.76rem; }
.archive-choix a { color: var(--color-light); }


.fin-stats {
  list-style: none; margin: -6px 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  font-size: 0.82rem; color: var(--texte-doux, #9a93b8);
}
.fin-stats[hidden] { display: none; }
.fin-stats strong { color: var(--texte); }


.texte-mode { margin: 28px auto 0; max-width: 760px; text-align: left; color: var(--texte); line-height: 1.6; }
.texte-mode h2 { font-size: 1.15rem; margin: 18px 0 8px; }
.texte-mode a { color: var(--color-light); }

@media (max-width: 600px) {
  .mode-pioche3 .top-row, .mode-pioche3 .stock-waste, .mode-pioche3 .fondations { gap: 4px; }
  .mode-pioche3 #waste-slot { --eventail: calc(var(--carte-l) * 0.18); }
  .option-donne { padding: 7px 44px 7px 10px; font-size: 0.8rem; }
  .option-donne small { display: none; font-size: 0.72rem; }
  .option-donne-zone.ouverte .option-donne small { display: block; }
  .btn-info-donne { display: block; }
  .overlay-btns .btn { flex: 1 1 40%; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .option-donne-zone { margin-bottom: 8px; }
  .option-donne { padding: 4px 44px 4px 10px; }
  .option-donne small { display: none; }
  .option-donne-zone.ouverte .option-donne small { display: block; }
  .btn-info-donne { display: block; width: 24px; height: 24px; }
}


@media (max-width: 400px) {
  .mode-pioche3 .top-bar h1, .mode-archive .top-bar h1 { white-space: normal; flex: 1 1 auto; min-width: 0; font-size: 1rem; line-height: 1.15; text-align: left; }
}

@media (max-width: 400px) { #btn-indice .libelle-court { display: none; } }
