/* jauge.css — stop-la-jauge (barre verticale ou cadran à aiguille) */
.jauge {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
  padding: calc(66px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}
.jauge__scene { position: relative; flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }

/* --- Forme « barre » --- */
.jauge__piste {
  position: relative; width: 64px; height: 100%; max-height: 460px; border-radius: 32px; background: #e9e4d8;
  box-shadow: inset 0 2px 8px rgba(24,38,35,.18), 0 0 0 4px #fff, 0 8px 24px rgba(24,38,35,.15);
}
.jauge__zone {
  position: absolute; left: 0; right: 0; border-top: 3px solid #fff; border-bottom: 3px solid #fff;
  background: repeating-linear-gradient(45deg, #2e9e5b 0 6px, #62cc8a 6px 12px); /* motif rayé : la zone n'est pas repérée que par la couleur */
}
.jauge__zone-label {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-family: var(--police-titre); font-weight: 800; font-size: 16px; background: var(--encre); color: #fff; padding: 5px 12px; border-radius: 999px;
}
.jauge__zone-label::before { content: ''; position: absolute; left: -8px; top: 50%; margin-top: -7px; border: 7px solid transparent; border-left: 0; border-right-color: var(--encre); }
.jauge__curseur {
  position: absolute; left: -12px; right: -12px; height: 12px; margin-top: -6px; border-radius: 6px; background: var(--primaire);
  box-shadow: 0 2px 6px rgba(0,0,0,.35), 0 0 0 2px #fff; will-change: top;
}

/* --- Forme « aiguille » --- */
.jauge__svg { width: min(92vw, 440px); max-height: 100%; }
.jauge__arc { fill: none; stroke: #e9e4d8; stroke-width: 22; stroke-linecap: round; }
.jauge__zone-arc { fill: none; stroke: url(#jauge-hachures); stroke-width: 22; }
.jauge__zone-texte { font-family: var(--police-titre); font-weight: 800; font-size: 13px; fill: var(--encre); }
.jauge__aiguille line { stroke: var(--primaire); stroke-width: 5; stroke-linecap: round; }
.jauge__aiguille circle { fill: var(--encre); }

/* --- Résultat d'un essai --- */
.jauge__niveau { font-family: var(--police-titre); font-weight: 800; font-size: 14px; letter-spacing: .04em; background: var(--encre); color: #fff; padding: 5px 14px; border-radius: 999px; text-align: center; }
.jauge__mille { position: absolute; left: -3px; right: -3px; top: 36%; height: 28%; background: repeating-linear-gradient(45deg, #f2c45a 0 5px, #ffe39a 5px 10px); box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(242,196,90,.9); border-radius: 3px; }
.jauge__mille-arc { fill: none; stroke: #f2c45a; stroke-width: 22; }
.jauge__message { min-height: 36px; font-family: var(--police-titre); font-weight: 800; font-size: 24px; text-align: center; line-height: 1.2; }
.jauge--touche .jauge__message { color: #1f8a4c; }
.jauge--rate .jauge__message { color: #c8102e; }
.jauge--touche .jauge__curseur, .jauge--touche .jauge__aiguille line { background: #1f8a4c; stroke: #1f8a4c; }
.jauge--rate .jauge__curseur, .jauge--rate .jauge__aiguille line { background: #c8102e; stroke: #c8102e; }

.jauge__btn { width: 100%; max-width: 300px; }
.jauge__aide { font-size: 14px; opacity: .8; text-align: center; margin: 0; max-width: 34ch; }
