/* V775 — Boussole du Voyageur interactive, animée & multi-modes */

.lme-boussole-dial-wrap {
  width: 138px;
  height: 138px;
  margin: 0 auto 14px;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 26px rgba(53, 93, 80, 0.22));
}

.lme-boussole-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.lme-boussole-needle {
  transform-origin: 70px 70px;
  transition: transform 0.75s cubic-bezier(0.22, 1.28, 0.36, 1);
}

.lme-boussole-dial-wrap.is-spinning .lme-boussole-needle {
  transition: transform 1.45s cubic-bezier(0.12, 0.92, 0.24, 1);
}

.lme-boussole-ring-outer {
  transform-origin: 70px 70px;
  animation: lmeCompassSlowOrbit 36s linear infinite;
}

@keyframes lmeCompassSlowOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lme-boussole-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.lme-boussole-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1.5px solid #e4d5c3;
  background: #ffffff;
  color: #20302b;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lme-boussole-mode-btn strong {
  font-size: 0.96rem;
}

.lme-boussole-mode-btn small {
  font-size: 0.76rem;
  color: #626a66;
}

.lme-boussole-mode-btn:hover {
  transform: translateY(-2px);
  border-color: #c79648;
}

.lme-boussole-mode-btn.is-active {
  background: linear-gradient(135deg, #1f5b50 0%, #2d6f62 100%);
  border-color: #1f5b50;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(31, 91, 80, 0.2);
}

.lme-boussole-mode-btn.is-active small {
  color: rgba(255, 255, 255, 0.85);
}

/* Mode Mixeur d'envies */
.lme-mixer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}

.lme-mixer-ctrl {
  background: #fffaf5;
  border: 1px solid #eadcc9;
  border-radius: 16px;
  padding: 14px 16px;
}

.lme-mixer-ctrl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 0.9rem;
}

.lme-mixer-val {
  font-size: 0.8rem;
  color: #9d543f;
  background: #f9ebe3;
  padding: 3px 9px;
  border-radius: 999px;
}

.lme-mixer-range {
  width: 100%;
  accent-color: #9d543f;
  cursor: pointer;
}

.lme-mixer-dur-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.lme-dur-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #dfd4c7;
  background: #fffaf5;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: #20302b;
  cursor: pointer;
}

.lme-dur-pill.is-active {
  background: #9d543f;
  border-color: #9d543f;
  color: #ffffff;
}

.lme-live-podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.lme-live-card {
  background: #fffaf8;
  border: 1.5px solid #e6d8c7;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: lmeCardPop 0.32s ease;
}

.lme-live-card.is-first {
  border-color: #c79648;
  background: linear-gradient(180deg, #fffdf8 0%, #fff6ea 100%);
}

@keyframes lmeCardPop {
  from { opacity: 0.5; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lme-live-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lme-live-flag {
  font-size: 2.3rem;
  line-height: 1;
}

.lme-live-score {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f5b50;
}

.lme-live-bar-track {
  height: 7px;
  background: #eee3d5;
  border-radius: 999px;
  overflow: hidden;
}

.lme-live-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9d543f, #c79648);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.lme-live-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lme-live-actions a,
.lme-live-actions button {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Mode Roue du destin */
.lme-wheel-stage {
  text-align: center;
  padding: 14px 6px;
}

.lme-wheel-filter {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.lme-wheel-btn {
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #9d543f 0%, #c86d44 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(157, 84, 63, 0.32);
  transition: transform 0.16s ease;
}

.lme-wheel-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.lme-wheel-result {
  max-width: 520px;
  margin: 22px auto 0;
  background: #fffaf5;
  border: 2px solid #c79648;
  border-radius: 22px;
  padding: 22px;
  text-align: left;
  animation: lmeCardPop 0.4s ease;
}

@media (max-width: 820px) {
  .lme-boussole-modes {
    grid-template-columns: 1fr;
  }
  .lme-mixer-grid,
  .lme-live-podium {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lme-boussole-ring-outer,
  .lme-boussole-needle,
  .lme-live-card,
  .lme-wheel-result {
    animation: none !important;
    transition: none !important;
  }
}
