/* ========== MAIN CONTENT ========== */
main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 3rem 2rem;
}

/* === SKELETON: outer shell owns border/radius/glow, holds image-container + footer bar stacked === */

.skeleton-shell {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  background-color: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
  max-width: 520px;
  width: auto;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.skeleton-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.85;
  z-index: 5;
}

.skeleton-shell:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  transform: translateY(-3px);
  cursor: pointer;
}
.skeleton-shell:active {
  transform: translateY(-1px);
}

.skeleton-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  box-sizing: border-box;
  width: auto;
}

.skeleton-container img,
.skeleton-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 85vh;
  border-radius: 10px;
  transition: transform 0.25s ease;
}

@media (max-width: 767px) {
  .skeleton-shell {
    max-width: 92vw;
    border-width: 1px;
  }
  .skeleton-container {
    padding: 4px 0 0;
  }

  .skeleton-container img,
  .skeleton-img {
    width: 92vw;
    max-width: none;
    max-height: 92vh;
    height: auto;
  }
}

@media (min-width: 1200px) {
  .skeleton-shell {
    max-width: 480px;
  }
  .skeleton-container img {
    max-height: 70vh;
  }
}


/* ===== Skeleton footer bar (holds Mode toggle) — dedicated strip below the image, no overlap ever ===== */
.skeleton-footer {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 8px;
  margin-top: 4px;
  background: var(--header-grad-top);
  z-index: 60;
}

/* thin yellow gradient hairline separating image from footer bar — echoes header line */
.skeleton-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
  opacity: 0.6;
}

.mode-toggle-btn {
  position: static;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(22,22,22,0.95);
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.mode-toggle-btn .mode-label {
  font-size: 11px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mode-toggle-btn:hover,
.mode-toggle-btn:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(245,213,53,0.18), 0 4px 8px rgba(0,0,0,0.6);
  outline: none;
}

@media (max-width: 420px) {
  .skeleton-footer { padding: 8px 0 6px; }
  .mode-toggle-btn { padding: 5px 12px; }
  .mode-toggle-btn .mode-label { font-size: 9px; }
}

/* Organ image (Viscérale mode) — overlays skeleton-img exactly, hidden by default.
   IMPORTANT: default is display:none here (not the [hidden] attribute) so JS can
   toggle it reliably via inline style without any specificity conflicts. */
.skeleton-container .organ-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* Organ clickable zones — same interaction language as .bone-zone, hidden by default */
.organ-zone {
  position: absolute;
  display: none;
  z-index: 50;
  border-radius: 12%;
  cursor: pointer;
  pointer-events: auto;
  background: transparent;
  box-shadow: none;
  transition: box-shadow 0.15s ease;
}

.organ-zone:hover {
  box-shadow: 0 0 20px 9px rgb(245, 213, 53);
}

.organ-zone.tapped {
  animation: boneTap 0.4s ease forwards;
}

/* TTX zone — chest/lungs region */
.zone-ttx {
  left: 50%;
  top: 24%;
  width: 32%;
  height: 12%;
  transform: translate(-50%, -50%);
}

/* ASP zone — abdomen/intestines region */
.zone-asp {
  left: 50%;
  top: 40%;
  width: 28%;
  height: 14%;
  transform: translate(-50%, -50%);
}

/* Base clickable zone style */
.bone-zone {
    position: absolute;
    display: block;
    background: rgb(255, 217, 0); /* semi-transparent yellow */
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

/* Glow on hover */
.bone-zone:hover {
    opacity: 0.6;
    box-shadow: 0 0 10px var(--accent);
}

/* ===== Switch-view button styling + label ===== */
.switch-view-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 60;
  width: 48px;
  height: 52px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(22,22,22,0.95);
  border: 2px solid var(--accent);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

/* Icon color */
.switch-view-btn svg path {
  stroke: var(--accent);
}

/* small label under icon */
.switch-view-btn .switch-label {
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* hover/focus on the button itself: scale + subtle glow */
.switch-view-btn:hover,
.switch-view-btn:focus {
  transform: scale(1.08);
  box-shadow: 0 8px 22px rgba(245,213,53,0.18), 0 4px 8px rgba(0,0,0,0.6);
  outline: none;
}

/* remove focus ring default but keep accessibility focus visible */
.switch-view-btn:focus {
  box-shadow: 0 8px 28px rgba(245,213,53,0.22);
}

/* --- IMPORTANT: prevent the image from getting hover effects while hovering the button --- */
/* the button sits BEFORE the image in the DOM, so we target the sibling img */
.skeleton-container .switch-view-btn:hover ~ img,
.skeleton-container .switch-view-btn:focus ~ img,
.skeleton-container .switch-view-btn:active ~ img {
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* small tweak for tiny screens so button doesn't cover too much */
@media (max-width: 420px) {
  .switch-view-btn { width: 42px; height: 46px; top: 6px; right: 6px; padding: 5px; }
  .switch-view-btn .switch-label { font-size: 9px; }
}

/* rotate icon when .rotating is applied to the button */
.switch-view-btn svg {
  transition: transform 0.42s cubic-bezier(.2,.9,.2,1);
  transform-origin: 50% 50%;
}

/* rotate 180deg while the button has the class */
.switch-view-btn.rotating svg {
  transform: rotate(180deg);
}

/* subtle extra micro-rotate while pressing (optional) */
.switch-view-btn:active svg {
  transform: scale(0.98) rotate(0deg);
}

/* fade helpers already exist Ã¢â‚¬â€ keep them (no change) */
.skeleton-img.fade-out { opacity: 0.22; transition: opacity 180ms linear; }
.skeleton-img.fade-in { opacity: 1; transition: opacity 220ms linear; }

/* ===== Swipe hint — small arrow / dot / arrow row in a dedicated strip
   just under the feet (added via .skeleton-container's extra bottom
   padding, touch-only, so the image itself and its map coordinates are
   never touched). Touch devices only (hover:none). ===== */
.skeleton-swap-hint {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
}
.skeleton-swap-arrow {
  width: 21px;
  height: 13px;
  color: var(--accent);
}
.skeleton-swap-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.55));
}
.skeleton-swap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6);
}

@media (hover: none) and (pointer: coarse) {
  /* Extra room under the feet for the hint — only added on touch
     devices, since that's the only place the hint ever shows. */
  .skeleton-container { padding-bottom: 30px; }

  .skeleton-swap-hint { opacity: 1; }
  .skeleton-swap-arrow.left { animation: skelArrowLeft 2.4s ease-in-out infinite; }
  .skeleton-swap-arrow.right { animation: skelArrowRight 2.4s ease-in-out infinite; }
  .skeleton-swap-dot { animation: skelDotGlow 2.4s ease-in-out infinite; }
}

/* Same rules again, gated by the .is-touch class that skeleton.js adds
   via JS feature-detection. Some mobile browsers report hover/pointer
   media features unreliably, so this is a second, more dependable path
   to the exact same result — whichever signal fires, the hint shows. */
.is-touch .skeleton-container { padding-bottom: 30px; }
.is-touch .skeleton-swap-hint { opacity: 1; }
.is-touch .skeleton-swap-arrow.left { animation: skelArrowLeft 2.4s ease-in-out infinite; }
.is-touch .skeleton-swap-arrow.right { animation: skelArrowRight 2.4s ease-in-out infinite; }
.is-touch .skeleton-swap-dot { animation: skelDotGlow 2.4s ease-in-out infinite; }

@keyframes skelArrowLeft {
  0%, 100% { opacity: 0.45; transform: translate(0, 0); }
  50%      { opacity: 1;    transform: translate(-4px, -2px); }
}
@keyframes skelArrowRight {
  0%, 100% { opacity: 0.45; transform: translate(0, 0); }
  50%      { opacity: 1;    transform: translate(4px, -2px); }
}
@keyframes skelDotGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.6); }
  50%      { box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-swap-arrow, .skeleton-swap-dot { animation: none !important; opacity: 0.8 !important; }
}

/* ===== First-visit click hint — thin caption strip sitting in the dead
   space between the skeleton image and the mode-toggle footer bar (no
   bone zone lives there, so it can never overlap the skull or anything
   else). Shown once per browser session (sessionStorage-gated in the
   page's inline script) to nudge first-time visitors toward clicking a
   zone. Collapses to zero height when hidden so it never leaves a gap.
   Decorative only (aria-hidden). ===== */
.skeleton-hint-bar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  text-align: center;
  background: rgba(var(--accent-rgb), 0.035);
  border-top: 1px solid transparent;
  transition: max-height 0.5s ease, opacity 0.45s ease, padding 0.5s ease, border-color 0.45s ease;
}
.skeleton-hint-bar.show {
  max-height: 64px;
  opacity: 1;
  padding: 10px 18px;
  border-top-color: rgba(var(--accent-rgb), 0.14);
}
.skeleton-hint-bar.hide {
  max-height: 0;
  opacity: 0;
  padding: 0 18px;
  border-top-color: transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, border-color 0.3s ease;
}

.skeleton-click-hint-icon-wrap {
  position: relative;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skeleton-click-hint-icon {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.skeleton-click-hint-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), 0.55));
}
.skeleton-click-hint-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--accent-rgb), 0.65);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}
.skeleton-hint-bar.show .skeleton-click-hint-ring {
  animation: skelHintPing 1.8s ease-out infinite;
}
.skeleton-click-hint-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.35;
}

@keyframes skelHintPing {
  0%   { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  70%  { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(2.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-click-hint-ring { animation: none !important; opacity: 0 !important; }
}

@media (max-width: 480px) {
  .skeleton-hint-bar.show { max-height: 84px; padding: 9px 14px; }
  .skeleton-click-hint-text { font-size: 0.72rem; }
  .skeleton-click-hint-icon-wrap,
  .skeleton-click-hint-icon,
  .skeleton-click-hint-ring { width: 15px; height: 15px; }
}

/* Content section — v3: no icons, thin top accent, editorial stat row with dividers */
.content-section {
  position: relative;
  flex: 1 1 300px;
  max-width: 600px;
  background-color: #262626;
  border: 1px solid #3a3a3a;
  border-radius: 14px;
  padding: 38px 36px;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.85;
}

.content-section:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 14px 34px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.content-overline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

.content-stat-grid {
  list-style: none;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: stretch;
}

.content-stat-grid li {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 18px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.content-stat-grid li:first-child {
  padding-left: 0;
  border-left: none;
}

.content-stat-grid .stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.content-stat-grid .stat-label {
  font-size: 0.7rem;
  color: rgba(240,240,240,0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .skeleton-img {
    max-height: 600px;
  }
}

@media (max-width: 767px) {
  .skeleton-img {
    max-height: 75vh;
  }
  .content-section {
    padding: 28px 24px;
  }
  .content-stat-grid li {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .content-stat-grid {
    gap: 4px;
  }
  .content-stat-grid li {
    padding: 0 8px;
  }
  .content-stat-grid .stat-value {
    font-size: 1.05rem;
  }
  .content-stat-grid .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.15px;
    line-height: 1.25;
  }
}

.content-section h1,
.content-section h2 {
    font-size: 1.85rem;
    margin-bottom: 0.85rem;
    color: var(--accent);  /* Accent yellow */
    line-height: 1.25;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(240,240,240,0.8);
}


/* ========== RESPONSIVE DESIGN ========== */

/* For tablets and larger screens */
@media (min-width: 768px) {
    body {
        font-size: 1.1rem;
    }

    header {
        padding: 1.5rem 3rem;
    }

    .logo-container h1 {
        font-size: 2.5rem;
    }

    main {
        padding: 4rem 3rem;
    }

    .content-section h1,
    .content-section h2 {
        font-size: 2.2rem;
    }

    .skeleton-section img {
        width: 350px;
    }
}

/* For large desktop screens */
@media (min-width: 1200px) {
    main {
        max-width: 1400px;
        margin: 0 auto;
    }

    body {
        font-size: 1.2rem;
    }

    .skeleton-section img {
        width: 400px;
    }
}

/* For small screens (phones) */
@media (max-width: 767px) {
    header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    main {
        flex-direction: column;
        align-items: center;
        padding: 2rem 1rem;
    }

    .skeleton-section img {
        width: 90%;
    }

    .content-section {
        text-align: left;
    }

    .logo-container h1 {
        font-size: 1.8rem;
    }
}

/* ========== POLISH: Shadows, Animations, Icons ========== */

/* Slight shadow for cards/images */
.skeleton-section img,
footer {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hover effect for skeleton image */
.skeleton-section img:hover {
    transform: scale(1.03);
    border-color: var(--accent);
}

/* Nav hover effect already exists, we just make it smoother */
nav a:hover {
    color: var(--accent);
    transform: scale(1.05);
}

/* Add a light glow on headings */
.content-section h1,
.content-section h2 {
    text-shadow: 0 0 5px rgba(var(--accent-rgb), 0.4);
}

/* Make skeleton image bigger and clearer */
.skeleton-section img {
    width: 350px;
    max-width: 100%;
    border: 3px solid #444;
    border-radius: 12px;
    background-color: #1c1c1c;
    padding: 10px;
}

/* Larger skeleton on large screens */
@media (min-width: 1200px) {
    .skeleton-section img {
        width: 450px;
    }
}

/* Clearer display on mobile */
@media (max-width: 767px) {
    .skeleton-section img {
        width: 100%;
    }
}


/* ========== Scroll Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Scroll Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
  .content-section h1,
  .content-section h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: left;
  }

  .content-section p {
    font-size: 0.98rem;
    line-height: 1.55;
    text-align: left;
  }

  .content-feature-list li {
    font-size: 0.78rem;
    padding: 5px 12px;
  }

  .skeleton-container img {
    max-width: 250px;
  }
}

/* Base clickable area */
.bone-zone {
  position: absolute;
  z-index: 50;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  background: transparent; /* completely invisible background */
  box-shadow: none; /* no shadow by default */
  transition: box-shadow 0.15s ease;
}

/* Glow effect on hover */
.bone-zone:hover {
  box-shadow: 0 0 20px 9px rgb(245, 213, 53); /* yellow glow */
}

/* Debug mode so you can see it while adjusting */
.bone-zone.debug {
  background: rgba(255, 217, 0, 0.5) !important;
  outline: 2px solid rgba(255, 217, 0, 0.8) !important;
  opacity: 1 !important;
}

/* Skull clickable zone - adjust if needed */
.zone-crane {
  left: 50%;
  top: 4%;
  width: 18%;
  height: 5%;
  transform: translate(-50%, -50%);
}

.view-post .zone-crane {
  left: 49%;
  top: 5%;
  width: 17%;
  height: 7%;
  transform: translate(-50%, -50%);
}

.zone-clavicule {
  left: 50%;   /* adjust this % to move horizontally */
  top: 18%;    /* adjust this % to move vertically */
  width: 43%;  /* adjust size */
  height: 3%;
  transform: translate(-50%, -50%);
}

/* =========================== HumÃƒÂ©rus Zones =========================== */
.zone-humerus-left,
.zone-humerus-right {
  position: absolute;
  cursor: pointer;
  z-index: 3;
  opacity: 0; /* invisible but clickable */
  transition: opacity 0.2s;
}

/* Adjust these to fit your skeleton image precisely */
.zone-humerus-left {
  top: 20%;    /* vertical position */
  left: 21%;   /* horizontal position */
  width: 8%;   /* width of clickable area */
  height: 16%; /* height of clickable area */
}

.zone-humerus-right {
  top: 20%;
  right: 21%;
  width: 8%;
  height: 16%;
}

/* --- Ãƒâ€°PAULE DROITE clickable zone --- */
.zone-epaule-droite {
  position: absolute;
  right: 21%;   /* adjust horizontally */
  top: 17%;     /* vertical position */
  width: 13%;    /* size of clickable circle */
  height: 6%;
  cursor: pointer;
  background: rgba(var(--accent-rgb), 0.25); /* transparent golden glow */
  border-radius: 50%;
  transition: background 0.2s ease;
}

/* --- Ãƒâ€°PAULE GAUCHE clickable zone --- */
.zone-epaule-gauche {
  position: absolute;
  left: 21%;    /* mirror horizontally */
  top: 17%;
  width: 13%;
  height: 6%;
  cursor: pointer;
  background: rgba(var(--accent-rgb), 0.25);
  border-radius: 50%;
  transition: background 0.2s ease;
}

/* === SCAPULA ZONES (posterior view only) === */
.hide-ant {
  display: none;
}

.zone-scapula-droite {
  position: absolute;
  right: 34%;
  top: 18%;
  width: 8%;
  height: 8%;
  border-radius: 30%;
  opacity: 1;
}

.zone-scapula-gauche {
  position: absolute;
  left: 34%;
  top: 18%;
  width: 8%;
  height: 8%;
  border-radius: 30%;
  opacity: 1;
}

/* === coude ZONES === */
.hide-ant {
  display: none;
}

.zone-coude-left {
  position: absolute;
  left: 18%;
  top: 34%;
  width: 10%;
  height: 5%;
}

.zone-coude-right {
  position: absolute;
  right: 18%;
  top: 34%;
  width: 10%;
  height: 5%;
}

/* Coude Ã¢â‚¬â€ POST view position corrections */
.view-post .zone-coude-left {
  position: absolute;
  left: 20%;
  top: 36%;
  width: 10%;
  height: 5%;
}

.view-post .zone-coude-right {
  position: absolute;
  right: 20%;
  top: 36%;
  width: 10%;
  height: 5%;
}

/* === avantbras ZONES === */
.hide-ant {
  display: none;
}

.zone-avantbras-left {
  position: absolute;
  left: 13%;
  top: 37%;
  width: 10%;
  height: 13%;
  transform: rotate(15deg);
}

.zone-avantbras-right {
  position: absolute;
  right: 13%;
  top: 37%;
  width: 10%;
  height: 13%;
  transform: rotate(-15deg);
}

/* avantbras Ã¢â‚¬â€ POST view position corrections */
.view-post .zone-avantbras-left {
  position: absolute;
  left: 21%;
  top: 41%;
  width: 8%;
  height: 11%;
  transform: rotate(0deg); 
}

.view-post .zone-avantbras-right {
  position: absolute;
  right: 21%;
  top: 41%;
  width: 8%;
  height: 11%;
  transform: rotate(0deg); 
}

/* === poignet ZONES === */
.hide-ant {
  display: none;
}

.zone-poignet-left {
  position: absolute;
  left: 9%;
  top: 48%;
  width: 9%;
  height: 4%;
}

.zone-poignet-right {
  position: absolute;
  right: 9%;
  top: 48%;
  width: 9%;
  height: 4%;
}

/* poignet Ã¢â‚¬â€ POST view position corrections */
.view-post .zone-poignet-left {
  position: absolute;
  left: 20%;
  top: 51%;
  width: 7%;
  height: 3%;
}

.view-post .zone-poignet-right {
  position: absolute;
  right: 23%;
  top: 51%;
  width: 7%;
  height: 3%;
}

/* === main ZONES === */
.hide-ant {
  display: none;
}

.zone-main-left {
  position: absolute;
  left: 4%;
  top: 51%;
  width: 12%;
  height: 7%;
  transform: rotate(11deg); 
}

.zone-main-right {
  position: absolute;
  right: 4%;
  top: 51%;
  width: 12%;
  height: 7%;
  transform: rotate(-11deg); 
}

/* main Ã¢â‚¬â€ POST view position corrections */
.view-post .zone-main-left {
  position: absolute;
  left: 22%;
  top: 53%;
  width: 8%;
  height: 6%;
  transform: rotate(-10deg); 
}

.view-post .zone-main-right {
  position: absolute;
  right: 24%;
  top: 53%;
  width: 8%;
  height: 6%;
  transform: rotate(10deg); 
}

/* bassin clickable zone */
.zone-bassin {
  left: 50%;
  top: 45%;
  width: 30%;
  height: 10%;
  transform: translate(-50%, -50%);
}

/* === hanche ZONES === */
.hide-ant {
  display: none;
}

.zone-hanche-left {
  position: absolute;
  left: 32%;
  top: 46%;
  width: 10%;
  height: 6%;
  transform: rotate(11deg); 
}

.zone-hanche-right {
  position: absolute;
  right: 32%;
  top: 46%;
  width: 10%;
  height: 6%;
  transform: rotate(-11deg); 
}

/* === femur ZONES === */
.hide-ant {
  display: none;
}

.zone-femur-left {
  position: absolute;
  left: 34%;
  top: 52%;
  width: 7%;
  height: 20%;
  transform: rotate(-8deg); 
}

.zone-femur-right {
  position: absolute;
  right: 33%;
  top: 52%;
  width: 7%;
  height: 20%;
  transform: rotate(8deg); 
}

/* === genou ZONES === */
.hide-ant {
  display: none;
}

.zone-genou-left {
  position: absolute;
  left: 34%;
  top: 69%;
  width: 12%;
  height: 6%;
  transform: rotate(-10deg); 
}

.zone-genou-right {
  position: absolute;
  right: 34%;
  top: 69%;
  width: 12%;
  height: 6%;
  transform: rotate(10deg); 
}

/* === jambe ZONES === */
.hide-ant {
  display: none;
}

.zone-jambe-left {
  position: absolute;
  left: 37%;
  top: 74%;
  width: 8%;
  height: 18%;
  transform: rotate(-9deg);
}

.zone-jambe-right {
  position: absolute;
  right: 37%;
  top: 74%;
  width: 8%;
  height: 18%;
  transform: rotate(9deg);
}

/* jambe Ã¢â‚¬â€ POST view position corrections */

.view-post .zone-jambe-left {
  position: absolute;
  left: 36%;
  top: 74%;
  width: 8%;
  height: 18%;
  transform: rotate(0deg);
}

.view-post .zone-jambe-right {
  position: absolute;
  right: 36%;
  top: 74%;
  width: 8%;
  height: 18%;
  transform: rotate(0deg);
}

/* === cheville ZONES === */
.hide-ant {
  display: none;
}

.zone-cheville-left {
  position: absolute;
  left: 40%;
  top: 91%;
  width: 8%;
  height: 4%;
}

.zone-cheville-right {
  position: absolute;
  right: 40%;
  top: 91%;
  width: 8%;
  height: 4%; 
}

/* cheville Ã¢â‚¬â€ POST view position corrections */

.view-post .zone-cheville-left {
  position: absolute;
  left: 37%;
  top: 93%;
  width: 9%;
  height: 4%;
}

.view-post .zone-cheville-right {
  position: absolute;
  right: 37%;
  top: 93%;
  width: 9%;
  height: 4%;
}

/* === pied ZONES === */
.hide-ant {
  display: none;
}

.zone-pied-left {
  position: absolute;
  left: 38%;
  top: 94%;
  width: 10%;
  height: 5%;
}

.zone-pied-right {
  position: absolute;
  right: 38%;
  top: 94%;
  width: 10%;
  height: 5%;
}

/* pied Ã¢â‚¬â€ POST view position corrections */

.view-post .zone-pied-left {
  position: absolute;
  left: 34%;
  top: 96%;
  width: 10%;
  height: 3%;
}

.view-post .zone-pied-right {
  position: absolute;
  right: 34%;
  top: 96%;
  width: 10%;
  height: 3%;
}

/* === sternum ZONE === */
.hide-post {
  display: none;
}

.zone-sternum {
  position: absolute;
  left: 46%;
  top: 20%;
  width: 8%;
  height: 13%;
}

/* === massiffacial ZONE === */
.hide-post {
  display: none;
}

.zone-massiffacial {
  position: absolute;
  left: 43%;
  top: 7%;
  width: 14%;
  height: 7%;
}

/* === cervical ZONE === */
.hide-post {
  display: none;
}

.zone-cervical {
  position: absolute;
  left: 46%;
  top: 13%;
  width: 8%;
  height: 6%;
}

.view-post .zone-cervical {
  position: absolute;
  left: 45%;
  top: 10%;
  width: 9%;
  height: 8%;
}

/* === dorsal ZONE === */
.hide-post {
  display: none;
}

.zone-dorsal {
  position: absolute;
  left: 46%;
  top: 17%;
  width: 8%;
  height: 15%;
}

/* === lombaire ZONE === */
.hide-post {
  display: none;
}

.zone-lombaire {
  position: absolute;
  left: 46%;
  top: 33%;
  width: 8%;
  height: 10%;
}

.view-post .zone-lombaire {
  position: absolute;
  left: 45%;
  top: 30%;
  width: 10%;
  height: 12%;
}

/* === grilcostal ZONES === */
.hide-ant {
  display: none;
}

.zone-grilcostal-left {
  position: absolute;
  left: 30%;
  top: 20%;
  width: 17%;
  height: 16%;
}

.zone-grilcostal-right {
  position: absolute;
  right: 30%;
  top: 20%;
  width: 17%;
  height: 16%;
}

/* grilcostal Ã¢â‚¬â€ POST view position corrections */

.view-post .zone-grilcostal-left {
  position: absolute;
  left: 30%;
  top: 25%;
  width: 17%;
  height: 9%;
}

.view-post .zone-grilcostal-right {
  position: absolute;
  right: 30%;
  top: 25%;
  width: 17%;
  height: 9%;
}


/* ======================================================================
   INCIDEX SKELETON GEOMETRY FIX — preserve all existing features
   ----------------------------------------------------------------------
   Only fixes the first-load/right-side shell stretching.
   Existing mode toggle, ANT/POST button, swipe arrows, click hint,
   organ mode, and all other styles remain untouched.
   ====================================================================== */
.skeleton-shell {
  width: min(520px, calc(85vh * 1487 / 3118), calc(100vw - 4rem));
  max-width: calc(100vw - 4rem);
  flex: 0 0 auto;
}

.skeleton-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1487 / 3118;
  flex: 0 0 auto;
}

.skeleton-container .skeleton-img {
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.skeleton-container .organ-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (min-width: 768px) {
  .skeleton-shell {
    width: min(520px, calc(600px * 1487 / 3118), calc(100vw - 4rem));
  }
}

@media (min-width: 1200px) {
  .skeleton-shell {
    width: min(480px, calc(70vh * 1487 / 3118), calc(100vw - 4rem));
  }
}

@media (max-width: 767px) {
  .skeleton-shell {
    width: min(92vw, calc(75vh * 1487 / 3118));
    max-width: 92vw;
  }

  .skeleton-container {
    width: 100%;
    aspect-ratio: 1487 / 3118;
  }

  .skeleton-container .skeleton-img,
  .skeleton-container .organ-img {
    width: 100%;
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 420px) {
  .skeleton-shell {
    width: min(92vw, calc(75vh * 1487 / 3118));
  }
}
