@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css");
@font-face {
  font-family: "MedievalSharp";
  src: url("../assets/fonts/MedievalSharp/MedievalSharp-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "OpenDyslexic";
  src: url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.woff2") format("woff2"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.woff") format("woff"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.otf") format("opentype"), url("../assets/fonts/OpenDyslexic/OpenDyslexic-Regular.eot");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus_Jakarta_Sans";
  src: url("../assets/fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "VujahdayScript-Regular.ttf";
  src: url("../assets/fonts/Vujahday_Script/VujahdayScript-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --color-bg: #000000;
  --color-text: #ffffff;
  --color-primary: #ffffff;
  --color-border: #ffffff;
  --a11y-font-scale: 1;
}

html {
  scrollbar-gutter: stable;
  background: var(--color-bg);
  color: var(--color-text) !important;
  overflow-x: hidden;
  font-size: calc(16px * var(--a11y-font-scale));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body, button, input, select, textarea {
  font: inherit;
}

html.theme-light {
  --color-bg: #ffffff;
  --color-text: var(--color-text);
  --color-primary: #4f46e5;
  --color-border: rgba(0, 0, 0, 0.2);
}

html.theme-dark {
  --color-bg: #160029;
  --color-text: var(--color-text);
  --color-primary: #A155E3;
  --color-border: #1600294C;
}

html.a11y-underline-links a,
html.a11y-underline-links a:visited {
  text-decoration: underline !important;
}

html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font * {
  font-family: "OpenDyslexic", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
}

html.a11y-grayscale #mainContent {
  filter: grayscale(1);
}

html.a11y-contrast-high #mainContent {
  filter: contrast(1.5) saturate(1.2);
}

html.a11y-contrast-negative #mainContent {
  filter: invert(1) hue-rotate(180deg);
}

#mainMenu {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1100;
  font-family: "Plus Jakarta Sans", sans-serif;
}
#mainMenu #escButton {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#mainMenu #escButton:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#mainMenu #escButton:active {
  transform: translateY(1px);
}
#mainMenu #escButton:disabled, #mainMenu #escButton[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#mainMenu #escButton:focus-visible {
  outline: 3px solid #A155E3;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(161, 85, 227, 0.3);
}
#mainMenu #escButton {
  position: relative;
  z-index: 2000;
  font-family: "Plus Jakarta Sans", sans-serif;
}
#mainMenu #escScreen {
  font-family: "Plus Jakarta Sans", sans-serif;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1300;
  box-sizing: border-box;
  padding: 6vh 6vw;
  overflow: auto;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(2px);
  color: var(--color-text);
  margin: 0;
}
#mainMenu #escScreen .escDialog {
  width: 80vw;
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  font-family: "Plus Jakarta Sans", sans-serif;
}
#mainMenu #escScreen .escDialog .a11yHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle:active {
  transform: translateY(1px);
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle:disabled, #mainMenu #escScreen .escDialog .a11yHeader #a11yToggle[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  max-width: fit-content;
  gap: 8px;
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle .chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  display: inline-block;
}
#mainMenu #escScreen .escDialog .a11yHeader #a11yToggle[aria-expanded=true] .chevron {
  transform: rotate(45deg);
}
#mainMenu #escScreen .escDialog .accessibilityList {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 12px;
}
#mainMenu #escScreen .escDialog .accessibilityList li {
  margin: 0;
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction {
  width: 100%;
  text-align: left;
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction:active {
  transform: translateY(1px);
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction:disabled, #mainMenu #escScreen .escDialog .accessibilityList .accessAction[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction {
  background-clip: padding-box;
  margin-top: 10px;
}
#mainMenu #escScreen .escDialog .accessibilityList .accessAction:hover {
  background: rgba(255, 255, 255, 0.12);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl label {
  font-size: 0.95rem;
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl input[type=range] {
  grid-column: 1/-2;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  outline: none;
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl output {
  justify-self: end;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  justify-self: end;
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch input {
  opacity: 0;
  width: 0;
  height: 0;
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch input:checked + .slider {
  background: rgba(50, 200, 120, 0.6);
  box-shadow: inset 0 0 0 1px rgba(50, 200, 120, 0.8);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .toggleSwitch input:checked + .slider:before {
  transform: translateX(20px);
}
#mainMenu #escScreen .escDialog .accessibilityList .a11yControl .switchLabel {
  grid-column: 1/2;
}
#mainMenu #escScreen.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

#helpButton {
  position: fixed;
  top: 2vh;
  right: 2vw;
}

#helpButton button {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#helpButton button:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#helpButton button:active {
  transform: translateY(1px);
}
#helpButton button:disabled, #helpButton button[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#helpButton button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

#potionPreview, #questionProgress {
  display: none;
}

#dialogueSection {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  box-sizing: border-box;
  grid-template-rows: 62% 1fr;
  width: 85%;
  padding: calc(var(--vh, 1vh) * 5);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#dialogueSection #characterDisplay {
  background: transparent;
  display: flex;
  justify-content: center;
}
#dialogueSection #characterDisplay #characterImage {
  width: auto;
  height: 125vh;
  object-fit: contain;
  transform: translateY(-10vh);
  z-index: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
#dialogueSection #characterDisplay #characterImage::selection {
  background: transparent;
}
#dialogueSection #characterDisplay #characterImage::-moz-selection {
  background: transparent;
}
#dialogueSection #chatBox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 10;
}
#dialogueSection #chatBox #characterName {
  background: rgba(15, 15, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
#dialogueSection #chatBox #chatText {
  background: rgba(15, 15, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: calc(var(--vh, 1vh) * 12);
  color: var(--color-text);
  line-height: 1.55;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#mainContent.exercise-fullscreen #dialogueSection {
  width: 100%;
  padding: 0;
  grid-template-rows: 0 1fr; /* hide character row, use full height for chat */
}
#mainContent.exercise-fullscreen #dialogueSection #characterDisplay {
  display: none !important;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox {
  position: fixed;
  inset: 0;
  padding: 4vh 6vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.72); /* stronger dim for accessibility */
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #characterName {
  display: none; /* hide name bar during exercise */
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #chatText {
  background: transparent;
  color: var(--color-text);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  line-height: 1.6;
  min-height: 12vh;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #choiceOptions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption:active {
  transform: translateY(1px);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption:disabled, #mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  min-height: 52px; /* larger tap target */
  text-align: left;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption:focus-visible {
  outline: 3px solid #A155E3;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(161, 85, 227, 0.3);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption.selected, #mainContent.exercise-fullscreen #dialogueSection #chatBox .choiceOption:disabled {
  background: rgba(80, 180, 120, 0.75);
  border-color: rgba(255, 255, 255, 0.95);
  cursor: default;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #potionPreview {
  margin-top: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-text);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton {
  align-self: flex-end;
  margin-top: auto; /* push to bottom */
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton:active {
  transform: translateY(1px);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton:disabled, #mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton:focus-visible {
  outline: 3px solid #A155E3;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(161, 85, 227, 0.3);
}
#mainContent.exercise-fullscreen #dialogueSection #chatBox #nextButton {
  max-height: 56px !important;
}

/* --- Inventory Section (Conteneur global) --- */
#inventorySection {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
}

/* --- Bloc Inventaire (Visuel) --- */
.inventory {
  pointer-events: auto;
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(20, 20, 25, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.inventory-title {
  font-size: 0.85rem;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  font-weight: 600;
}

.inventory-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.inventory-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.inventory-item:hover, .inventory-item:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  outline: none;
}
.inventory-item img {
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
}
.inventory-item span {
  font-size: 0.75rem;
  text-align: center;
  padding: 2px;
}

/* --- Point & Click Scene --- */
#pointClickSection {
  position: fixed;
  inset: 0;
  z-index: 900;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.scene {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.scene-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.95) contrast(1.05);
  z-index: 0;
}

/* Hotspots invisibles (zones cliquables) */
.hotspot {
  position: absolute;
  background: rgba(255, 255, 255, 0);
  border: 2px solid rgba(255, 255, 255, 0);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.hotspot:focus-visible,
.hotspot:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* Hotspot avec image */
.hotspot-img {
  position: absolute;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.hotspot-img img {
  display: block;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.15s ease;
}

.hotspot-img:hover img,
.hotspot-img:focus-visible img {
  transform: scale(1.08);
}

/* État ramassé (on masque la zone originale) */
.hotspot--collected,
.hotspot-img--collected {
  display: none !important;
}

/* --- HUD P&C (compteur + bouton continuer) --- */
#pcHud {
  position: fixed;
  top: 80px;
  left: 12px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(20, 20, 25, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: "Plus Jakarta Sans", sans-serif;
}

#pcHud #pcCounter {
  font-size: 1rem;
  opacity: 0.95;
}

#pcHud #pcContinueBtn {
  padding: 8px 14px;
}

/* --- Toasts de feedback --- */
#toastContainer {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: rgba(30, 30, 35, 0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-10px);
}

/* --- Panel Items (objets cliquables avec x, y, size) --- */
.panel-item {
  position: absolute;
  cursor: pointer;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
}
.panel-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease, filter 0.2s ease;
}
.panel-item:hover, .panel-item:focus-visible {
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  transform: scale(1.05);
}
.panel-item:hover img, .panel-item:focus-visible img {
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.4));
}
.panel-item:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}
.panel-item:active {
  transform: scale(0.98);
}

#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 6vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%), url("../assets/background/grotte.jpg") center/cover no-repeat;
  color: var(--color-text);
  transition: opacity 400ms ease;
}
#loadingScreen.visible {
  opacity: 1;
  pointer-events: auto;
}
#loadingScreen .loadingContent {
  max-width: 600px;
  width: 100%;
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}
#loadingScreen .loadingContent #loadingMessage {
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.15;
  margin: 0;
  font-family: "MedievalSharp", sans-serif;
}

html, body {
  height: calc(var(--vh, 1vh) * 100);
  max-height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

#mainContent {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

#mainContent.exercise-fullscreen::after {
  display: none !important;
}

#homeScreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 6vw;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%), url("../assets/background/Menu.webp") center/cover no-repeat;
  color: var(--color-text);
}

.homeContent, .homeContent-userinfo {
  max-width: 900px;
  width: 100%;
  background: rgba(20, 20, 30, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.homeContent h1, .homeContent h2, .homeContent-userinfo h1, .homeContent-userinfo h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 10px 0;
  font-family: "MedievalSharp", sans-serif;
}
.homeContent .subtitle, .homeContent-userinfo .subtitle {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  margin-bottom: 22px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.homeContent .homeActions, .homeContent-userinfo .homeActions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 10px;
}
.homeContent .credits, .homeContent-userinfo .credits {
  font-size: 12px;
  opacity: 0.8;
}
.homeContent .inputGroup, .homeContent-userinfo .inputGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin-bottom: 16px;
}
.homeContent .inputGroup label, .homeContent-userinfo .inputGroup label {
  font-size: 0.9rem;
  opacity: 0.8;
}
.homeContent .inputGroup input[type=text], .homeContent-userinfo .inputGroup input[type=text] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  width: 100%;
}

#nextButton.primary, button.primary {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
#nextButton.primary:hover, button.primary:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
#nextButton.primary:active, button.primary:active {
  transform: translateY(1px);
}
#nextButton.primary:disabled, #nextButton.primary[aria-disabled=true], button.primary:disabled, button.primary[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}
#nextButton.primary, button.primary {
  max-height: 52px;
  flex-direction: column-reverse;
}

button.secondary {
  display: flex;
  padding: 16px 32px;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid hsla(33, 59%, 22%, 0.4);
  background: radial-gradient(50% 50% at 50% 50%, #E3D092 0%, #CFB16E 100%);
  color: #1f1409;
  border-radius: 10px;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15) inset;
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.4);
  font-family: "MedievalSharp", sans-serif;
}
button.secondary:hover {
  border-color: hsla(33, 59%, 22%, 0.6);
  filter: brightness(1.08);
}
button.secondary:active {
  transform: translateY(1px);
}
button.secondary:disabled, button.secondary[aria-disabled=true] {
  opacity: 0.6;
  cursor: not-allowed;
}

button:focus-visible:focus-visible, .choiceOption:focus-visible:focus-visible {
  outline: 3px solid #A155E3;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(161, 85, 227, 0.3);
}

.hidden {
  display: none !important;
}

#mainContent {
  position: relative;
}

#mainContent::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.55) 100%);
}

#mainContent.exercise-fullscreen::after {
  display: none !important;
}

img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}
img::selection {
  background: transparent;
}
img::-moz-selection {
  background: transparent;
}
img {
  draggable: false;
}

/*# sourceMappingURL=layout.css.map */
