/* =========================================================
   DAEWOLF — Prototype 0 — Bloc 15
   v7 : L'Appel + première boucle jouable de La Traque
   ========================================================= */

:root {
  --black-deep: #030609;
  --blue-night: #071019;
  --blue-electric: #55d9ff;
  --blue-electric-strong: #88e8ff;
  --text-light: #d8e8f7;
  --text-muted: #8fa6bb;
  --focus-ring: #9cf0ff;

  --content-width: 640px;
  --hunt-width: 860px;
  --transition-medium: 600ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--black-deep);
  color-scheme: dark;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text-light);
  background: var(--black-deep);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
}

.game-shell,
.game-space {
  width: 100%;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.fade-out {
  opacity: 0;
  transition: opacity var(--transition-medium) ease;
}


/* =========================================================
   L'APPEL — Bloc 14 validé
   ========================================================= */

.intro {
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 54px) 20px;
}

.intro-inner {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  text-align: center;
}

/* Petit halo uniquement autour du logo */
.daewolf-logo {
  display: block;
  width: min(72vw, 330px);
  height: auto;
  margin: 0 auto clamp(18px, 4vh, 32px);
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(85, 217, 255, 0.16));
  animation: logo-appear 800ms ease-out 100ms forwards;
}

.daewolf-presence {
  position: relative;
  width: min(84vw, 390px);
  margin: 0 auto clamp(20px, 3.8vh, 32px);
  isolation: isolate;
  opacity: 0;
  transform: translateY(6px);
  animation: presence-appear 1000ms ease-out 450ms forwards;
}

/* Halo local, petit et resserré */
.daewolf-halo {
  position: absolute;
  z-index: -1;
  left: 25%;
  top: 24%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(85, 217, 255, 0.11) 0%,
    rgba(85, 217, 255, 0.045) 30%,
    rgba(85, 217, 255, 0.015) 48%,
    transparent 64%
  );
  filter: blur(10px);
  animation: halo-breathe 4s ease-in-out infinite;
}

.daewolf-character {
  display: block;
  width: 100%;
  height: auto;
  max-height: 43vh;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
}

.intro-copy {
  max-width: 580px;
  margin: 0 auto;
}

.daewolf-line {
  margin: 0;
  line-height: 1.62;
  text-wrap: balance;
}

.daewolf-line--first {
  color: #edf8ff;
  font-size: clamp(1.18rem, 2.6vw, 1.48rem);
  font-weight: 650;
  letter-spacing: 0.015em;
  opacity: 0;
  animation: text-appear 650ms ease-out 1200ms forwards;
}

.daewolf-line--second {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--text-muted);
  font-size: clamp(0.96rem, 2.1vw, 1.08rem);
  opacity: 0;
  animation: text-appear 720ms ease-out 1800ms forwards;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  margin-top: clamp(26px, 5vh, 40px);
  padding: 0.9rem 1.55rem;
  border: 1px solid rgba(85, 217, 255, 0.58);
  border-radius: 999px;
  color: #ecfbff;
  background: var(--blue-night);
  box-shadow: 0 0 14px rgba(85, 217, 255, 0.07);
  cursor: pointer;
  font-size: clamp(0.94rem, 2vw, 1.02rem);
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  animation: action-appear 650ms ease-out 2450ms forwards;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.primary-action:hover {
  transform: translateY(-2px);
  border-color: var(--blue-electric-strong);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.14);
}

.primary-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}



.home-trace-actions {
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  margin: 0 auto;
}

.replay-trace-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 44px;
  margin-top: 12px;
  padding: 0.7rem 1.12rem;
  border: 1px solid rgba(85, 217, 255, 0.24);
  border-radius: 999px;
  color: #a9c9d8;
  background: rgba(5, 13, 20, 0.46);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(5px);
  animation: action-appear 620ms ease-out 2700ms forwards;
  transition:
    color 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.replay-trace-toggle:hover,
.replay-trace-toggle[aria-expanded="true"] {
  color: #e9faff;
  border-color: rgba(85, 217, 255, 0.52);
  background: rgba(8, 22, 33, 0.72);
  box-shadow: 0 0 16px rgba(85, 217, 255, 0.08);
  transform: translateY(-1px);
}

.replay-trace-toggle:focus-visible,
.replay-trace-option:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.replay-trace-toggle__icon {
  color: var(--blue-electric-strong);
  font-size: 1.08rem;
  line-height: 1;
}

.replay-trace-panel {
  width: min(100%, 590px);
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(85, 217, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(10, 24, 35, 0.84),
      rgba(4, 10, 16, 0.92)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  text-align: left;
}

.replay-trace-panel__heading {
  margin-bottom: 12px;
  text-align: center;
}

.replay-trace-panel__eyebrow {
  margin: 0 0 4px;
  color: #6f95a8;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.replay-trace-panel__heading h2 {
  margin: 0;
  color: #eaf9ff;
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  font-weight: 740;
}

.replay-trace-list {
  display: grid;
  gap: 9px;
}

.replay-trace-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(127, 173, 195, 0.15);
  border-radius: 13px;
  color: inherit;
  background: rgba(3, 9, 14, 0.6);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.replay-trace-option:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 217, 255, 0.42);
  background: rgba(7, 19, 28, 0.88);
  box-shadow: 0 0 15px rgba(85, 217, 255, 0.06);
}

.replay-trace-option__copy {
  display: grid;
  min-width: 0;
}

.replay-trace-option__kicker {
  color: #6f9caf;
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.replay-trace-option__title {
  margin-top: 2px;
  color: #edfaff;
  font-size: 0.96rem;
  font-weight: 780;
}

.replay-trace-option__subtitle {
  margin-top: 3px;
  overflow: hidden;
  color: #829eac;
  font-size: 0.73rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-trace-option__action {
  color: var(--blue-electric-strong);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .replay-trace-panel {
    padding: 14px;
  }

  .replay-trace-option {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .replay-trace-option__action {
    justify-self: start;
  }
}


/* =========================================================
   LA TRAQUE — Bloc 15
   ========================================================= */

.traque {
  display: grid;
  place-items: start center;
  padding: clamp(24px, 4vw, 42px) 18px 48px;
  opacity: 1;
}

.traque.is-entering {
  animation: hunt-appear 560ms ease-out both;
}

.traque-inner {
  width: min(100%, var(--hunt-width));
  margin: 0 auto;
  text-align: center;
}

.traque-header {
  width: min(100%, 680px);
  margin: 0 auto 22px;
}

.traque-logo {
  display: block;
  width: min(48vw, 190px);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 5px rgba(85, 217, 255, 0.13));
}

.traque-kicker {
  margin: 0 0 10px;
  color: var(--blue-electric);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.first-trace {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  color: #edf8ff;
  font-size: clamp(1.08rem, 2.4vw, 1.36rem);
  font-style: normal;
  font-weight: 560;
  line-height: 1.58;
  text-wrap: balance;
}

.map-stage {
  width: min(100%, 650px);
  margin: 24px auto 0;
}

.map-host {
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(85, 217, 255, 0.13);
  border-radius: 24px;
  background: rgba(7, 16, 25, 0.52);
  box-shadow:
    inset 0 0 28px rgba(85, 217, 255, 0.025),
    0 0 22px rgba(85, 217, 255, 0.025);
  overflow: hidden;
}

.map-loading {
  margin: 0;
  padding: 2rem;
  color: var(--text-muted);
}

.map-host svg {
  display: block;
  width: min(100%, 590px);
  height: auto;
  padding: clamp(12px, 2vw, 18px);
}

/* Les styles du SVG restent actifs.
   Ceux-ci gèrent l'état choisi par JavaScript. */
.map-host .zone.is-selected {
  fill: #0f78c8;
  stroke: var(--blue-electric-strong);
  filter: drop-shadow(0 0 10px rgba(85, 217, 255, 0.58));
}

.map-host .zone:focus-visible {
  outline: none;
  stroke: var(--focus-ring);
  stroke-width: 6;
  filter: drop-shadow(0 0 10px rgba(85, 217, 255, 0.55));
}

.proximity-feedback {
  min-height: 104px;
  width: min(100%, 570px);
  margin: 20px auto 0;
  display: grid;
  place-items: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(85, 217, 255, 0.09);
}

.feedback-instruction {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.feedback-result {
  margin: 0;
  animation: feedback-appear 260ms ease-out both;
}

.feedback-level {
  display: block;
  margin-bottom: 7px;
  font-size: clamp(1.12rem, 2.6vw, 1.34rem);
  font-weight: 850;
  letter-spacing: 0.075em;
}

.feedback-voice {
  display: block;
  color: #e2eff8;
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.55;
}

.proximity-feedback[data-level="cold"] .feedback-level {
  color: #b8d7f0;
}

.proximity-feedback[data-level="warm"] .feedback-level {
  color: #f0ddb0;
}

.proximity-feedback[data-level="hot"] .feedback-level {
  color: #ffc2a3;
}

.trace-counter {
  margin: 4px auto 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.trace-counter strong {
  color: var(--text-light);
  font-weight: 800;
}

.error-message {
  width: min(100%, 580px);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(85, 217, 255, 0.18);
  border-radius: 16px;
  color: #e0edf7;
  background: rgba(7, 16, 25, 0.72);
  line-height: 1.55;
}




/* =========================================================
   Icône Trace DaeWolf — remplace les pattes orange
   ========================================================= */

.trace-icon {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  object-fit: contain;
  vertical-align: -0.2em;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(85, 217, 255, 0.24));
}

.trace-icon--button {
  width: 1.22em;
  height: 1.22em;
}

.trace-icon--inline {
  margin-right: 0.22rem;
}

.trace-icon--departure {
  width: 1.65rem;
  height: 1.65rem;
  vertical-align: middle;
}

.primary-action .trace-icon,
.home-journal-access .trace-icon,
.accuse-button .trace-icon {
  margin-right: 0.02rem;
}

.trace-counter .trace-icon {
  margin-right: 0.15rem;
}

.journal-summary__icon .trace-icon {
  width: 1.05rem;
  height: 1.05rem;
  vertical-align: middle;
}

.journal-future__symbol .trace-icon {
  width: 1.75rem;
  height: 1.75rem;
  vertical-align: middle;
  filter: drop-shadow(0 0 12px rgba(85, 217, 255, 0.28));
}

/* =========================================================
   Icône DaeWolf — remplace l'émoji loup générique
   ========================================================= */

.dw-emoji {
  display: inline-block;
  width: 1.18em;
  height: 1.18em;
  margin-right: 0.22em;
  vertical-align: -0.22em;
  object-fit: contain;
  flex: 0 0 auto;
}


/* =========================================================
   Accessibilité
   ========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* =========================================================
   Animations
   ========================================================= */

@keyframes logo-appear {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes presence-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes halo-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.90;
    transform: scale(1.03);
  }
}

@keyframes text-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes action-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hunt-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes feedback-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 560px) {
  .intro {
    padding: 24px 16px 32px;
  }

  .daewolf-logo {
    width: min(78vw, 285px);
  }

  .daewolf-presence {
    width: min(88vw, 340px);
  }

  .daewolf-character {
    max-height: 40vh;
  }

  .primary-action {
    width: min(100%, 330px);
    margin-top: 28px;
  }

  .traque {
    padding: 22px 12px 36px;
  }

  .traque-logo {
    width: min(52vw, 170px);
    margin-bottom: 18px;
  }

  .map-stage {
    margin-top: 20px;
  }

  .map-host {
    min-height: 300px;
    border-radius: 18px;
  }

  .map-host svg {
    padding: 8px;
  }

  .proximity-feedback {
    min-height: 96px;
    padding-inline: 10px;
  }
}


/* =========================================================
   Réduction des animations
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .daewolf-logo,
  .daewolf-presence,
  .daewolf-line--first,
  .daewolf-line--second,
  .primary-action {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   BLOC 16 — Le Cercle se resserre
   ========================================================= */

.map-host.is-locked {
  transform: scale(0.88);
  transform-origin: center top;
  opacity: 0.72;
  transition:
    transform 420ms ease,
    opacity 420ms ease;
}

.map-host.is-locked .zone {
  pointer-events: none;
  cursor: default;
}

.map-host.is-locked .zone:not(.is-selected) {
  fill-opacity: 0.001 !important;
  stroke: none !important;
  filter: none !important;
}

.phase-two {
  width: min(100%, 720px);
  margin: 12px auto 0;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(85, 217, 255, 0.12);
  animation: hunt-appear 520ms ease-out both;
}

.phase-two-intro,
.final-search__intro {
  width: min(100%, 620px);
  margin: 0 auto;
}

.phase-two-voice {
  margin: 0 0 10px;
  color: #e3f2fb;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.58;
}

.phase-two h3,
.final-search h3 {
  margin: 0;
  color: var(--blue-electric);
  font-size: clamp(1.08rem, 2.4vw, 1.28rem);
  font-weight: 780;
  letter-spacing: 0.01em;
}

.hunt-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 620px);
  margin: 24px auto 0;
}

.hunt-tool,
.secondary-action,
.accuse-button {
  border: 1px solid rgba(85, 217, 255, 0.42);
  color: #edf9ff;
  background: #071019;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.hunt-tool {
  min-height: 58px;
  padding: 13px 16px;
  border-radius: 16px;
  font-weight: 760;
  letter-spacing: 0.025em;
}

.hunt-tool:hover,
.secondary-action:hover,
.accuse-button:hover {
  transform: translateY(-2px);
  border-color: var(--blue-electric-strong);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.13);
}

.hunt-tool:focus-visible,
.secondary-action:focus-visible,
.accuse-button:focus-visible,
.place-choice:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.hunt-tool.is-used {
  border-color: rgba(85, 217, 255, 0.20);
  color: var(--text-muted);
  background: rgba(7, 16, 25, 0.62);
}

.hunt-tool__label {
  margin-left: 6px;
}

.trace-panel {
  width: min(100%, 620px);
  margin: 18px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(85, 217, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 16, 25, 0.68);
  text-align: left;
  animation: feedback-appear 320ms ease-out both;
}

.trace-panel__label {
  margin: 0 0 8px;
  color: var(--blue-electric);
  font-size: 0.73rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trace-panel__text {
  margin: 0;
  color: #e7f4fb;
  font-size: 1rem;
  line-height: 1.62;
}

.final-search {
  width: min(100%, 700px);
  margin: 30px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(85, 217, 255, 0.10);
  animation: hunt-appear 480ms ease-out both;
}

.place-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin: 22px auto 0;
}

.place-choice {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(85, 217, 255, 0.18);
  border-radius: 18px;
  color: var(--text-light);
  background: rgba(7, 16, 25, 0.64);
  cursor: pointer;
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.place-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 217, 255, 0.50);
}

.place-choice.is-selected {
  border-color: var(--blue-electric);
  background: rgba(19, 74, 104, 0.46);
  box-shadow:
    0 0 0 1px rgba(85, 217, 255, 0.10) inset,
    0 0 20px rgba(85, 217, 255, 0.11);
}

.place-choice__name {
  display: block;
  color: #effaff;
  font-size: 1rem;
  font-weight: 840;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.place-choice__department {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.accusation-feedback {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin: 14px auto 0;
  color: #e4f1f8;
  line-height: 1.55;
}

.accusation-feedback p {
  margin: 0;
}

.accuse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  margin-top: 8px;
  padding: 0.88rem 1.55rem;
  border-radius: 999px;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}


/* ---------- Overlay jumelles ---------- */

.binoculars-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 4, 7, 0.94);
  backdrop-filter: blur(4px);
}

.binoculars-dialog {
  width: min(100%, 920px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(85, 217, 255, 0.16);
  border-radius: 24px;
  background: #030609;
  text-align: center;
  box-shadow: 0 0 34px rgba(85, 217, 255, 0.07);
}

.binoculars-kicker {
  margin: 0 0 12px;
  color: var(--blue-electric);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.binoculars-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  max-height: 64vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

.binoculars-voice {
  width: min(100%, 690px);
  margin: 18px auto 0;
  color: #e7f4fb;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.58;
}

.secondary-action {
  min-height: 46px;
  margin-top: 20px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 730;
}


/* ---------- Transition réussite ---------- */

.found-transition {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #010305;
}

.found-transition__content {
  text-align: center;
}

.found-vision {
  position: relative;
  width: min(54vw, 270px);
  margin: 0 auto 24px;
}

.found-head {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(85, 217, 255, 0.12));
  animation: found-head-fade 1.9s ease-out forwards;
}


.found-eye {
  position: absolute;
  display: block;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  filter:
    brightness(1.12)
    saturate(1.08)
    drop-shadow(0 0 4px rgba(85, 217, 255, 0.22));
  animation:
    found-real-eye-appear 1.05s ease-out 0.72s forwards,
    real-eye-breathe 2.6s ease-in-out 1.78s infinite;
}

.found-eye--left {
  left: 33.6914%;
  top: 40.6901%;
  width: 15.1367%;
}

.found-eye--right {
  left: 62.5000%;
  top: 40.6901%;
  width: 12.6953%;
}


.found-message {
  margin: 0;
  color: #eefbff;
  font-size: clamp(1.18rem, 3vw, 1.5rem);
  line-height: 1.5;
  opacity: 0;
  animation: found-message-appear 0.8s ease-out 1.35s forwards;
}


/* ---------- Retrouvailles : révélation ---------- */

.retrouvailles {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px) 18px;
  background: var(--black-deep);
}

.retrouvailles.is-entering {
  animation: hunt-appear 620ms ease-out both;
}

.retrouvailles-inner {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.retrouvailles-logo {
  display: block;
  width: min(44vw, 180px);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 0 5px rgba(85, 217, 255, 0.13));
}

.reveal-figure {
  width: min(100%, 900px);
  margin: 0 auto;
}

.reveal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 67vh;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(85, 217, 255, 0.12);
  box-shadow: 0 0 26px rgba(85, 217, 255, 0.06);
}

.retrouvailles-kicker {
  margin: 24px 0 7px;
  color: var(--blue-electric);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.reveal-title {
  margin: 0;
  color: #effaff;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  font-weight: 880;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.reveal-subtitle {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2vw, 1.14rem);
}


@keyframes found-head-fade {
  0% {
    opacity: 0.28;
    transform: scale(0.985);
    filter: drop-shadow(0 0 6px rgba(85, 217, 255, 0.06));
  }

  20% {
    opacity: 0.44;
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(85, 217, 255, 0.14));
  }

  65% {
    opacity: 0.20;
    transform: scale(1.012);
  }

  100% {
    opacity: 0.04;
    transform: scale(1.02);
    filter: drop-shadow(0 0 10px rgba(85, 217, 255, 0.05));
  }
}

@keyframes found-eyes-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.90);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes found-message-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eyes-breathe {
  0%,
  100% {
    opacity: 0.82;
    filter: brightness(0.90);
  }

  50% {
    opacity: 1;
    filter: brightness(1.15);
  }
}


@media (max-width: 620px) {
  .hunt-tools,
  .place-choices {
    grid-template-columns: 1fr;
  }

  .phase-two {
    padding-top: 24px;
  }

  .map-host.is-locked {
    transform: scale(0.94);
  }

  .found-vision {
    width: min(68vw, 220px);
    margin-bottom: 22px;
  }

  .binoculars-dialog {
    padding: 16px;
    border-radius: 18px;
  }
}


/* ---------- Ajustement halo des yeux ---------- */

@keyframes found-real-eye-appear {
  0% {
    opacity: 0;
    filter:
      brightness(1.00)
      saturate(1.00)
      drop-shadow(0 0 0 rgba(85, 217, 255, 0));
  }

  35% {
    opacity: 0.42;
    filter:
      brightness(1.20)
      saturate(1.10)
      drop-shadow(0 0 5px rgba(85, 217, 255, 0.30))
      drop-shadow(0 0 12px rgba(85, 217, 255, 0.18));
  }

  100% {
    opacity: 1;
    filter:
      brightness(1.52)
      saturate(1.24)
      drop-shadow(0 0 8px rgba(85, 217, 255, 0.92))
      drop-shadow(0 0 18px rgba(85, 217, 255, 0.58))
      drop-shadow(0 0 30px rgba(85, 217, 255, 0.24));
  }
}

@keyframes real-eye-breathe {
  0%,
  100% {
    opacity: 0.92;
    filter:
      brightness(1.34)
      saturate(1.16)
      drop-shadow(0 0 7px rgba(85, 217, 255, 0.82))
      drop-shadow(0 0 16px rgba(85, 217, 255, 0.46))
      drop-shadow(0 0 24px rgba(85, 217, 255, 0.16));
  }

  50% {
    opacity: 1;
    filter:
      brightness(1.62)
      saturate(1.28)
      drop-shadow(0 0 10px rgba(85, 217, 255, 1.00))
      drop-shadow(0 0 24px rgba(85, 217, 255, 0.70))
      drop-shadow(0 0 36px rgba(85, 217, 255, 0.28));
  }
}


/* =========================================================
   BLOC 17 — Le Lieu parle
   Ajout uniquement après la Traque verrouillée.
   ========================================================= */

.discovery {
  width: min(100%, 820px);
  margin: 34px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(85, 217, 255, 0.10);
}

.discovery-opening {
  width: min(100%, 670px);
  margin: 0 auto;
  text-align: center;
  animation: discovery-rise 520ms ease-out both;
}

.discovery-voice,
.chapter-voice {
  margin: 0;
  color: #eaf8ff;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
}

.discovery-opening__second {
  margin: 14px auto 0;
  color: #b8cad4;
  font-size: 0.98rem;
  line-height: 1.65;
}

.discovery-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0.82rem 1.35rem;
  border: 1px solid rgba(85, 217, 255, 0.42);
  border-radius: 999px;
  color: #effaff;
  background: #071019;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.discovery-action:hover,
.sources-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--blue-electric-strong);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.13);
}

.discovery-action:focus-visible,
.sources-toggle:focus-visible,
.sources-list a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.discovery-chapter {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(85, 217, 255, 0.13);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 25, 0.82),
      rgba(3, 8, 13, 0.72)
    );
  text-align: left;
  box-shadow: 0 0 28px rgba(85, 217, 255, 0.045);
  animation: discovery-rise 440ms ease-out both;
}

.discovery-chapter__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chapter-eyebrow {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(85, 217, 255, 0.22);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chapter-badge[data-type="fact"] {
  color: #bdf4ff;
  background: rgba(38, 130, 164, 0.13);
}

.chapter-badge[data-type="rumour"] {
  color: #e2d7ff;
  border-color: rgba(188, 161, 255, 0.24);
  background: rgba(108, 79, 168, 0.13);
}

.chapter-title {
  margin: 0;
  color: var(--blue-electric);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  font-weight: 820;
  letter-spacing: 0.02em;
}

.chapter-headline {
  margin: 12px 0 0;
  color: #f0fbff;
  font-size: clamp(1.34rem, 3vw, 2rem);
  line-height: 1.18;
}

.chapter-body {
  margin: 18px 0 0;
  color: #c8d9e2;
  font-size: 1rem;
  line-height: 1.72;
}

.chapter-voices {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.chapter-voice {
  padding-left: 14px;
  border-left: 2px solid rgba(85, 217, 255, 0.24);
}

.chapter-voice--philosophy {
  color: #f0fbff;
}

.chapter-voice--humour {
  color: #d8edf6;
}

.trace-resolution {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(85, 217, 255, 0.11);
  border-radius: 18px;
  background: rgba(85, 217, 255, 0.035);
}

.trace-resolution__label {
  margin: 0;
  color: var(--blue-electric);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trace-resolution__quote {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  color: #e7f5fb;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.trace-resolution__explanation {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.chapter-media {
  margin: 24px 0 0;
}

.chapter-media img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(85, 217, 255, 0.10);
}

.chapter-media figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.chapter-media__label {
  color: var(--blue-electric);
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.souvenir-stage {
  width: min(100%, 760px);
  margin: 0 auto;
  animation: discovery-rise 520ms ease-out both;
}

.souvenir-card {
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(85, 217, 255, 0.17);
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 25, 0.90),
      rgba(3, 8, 13, 0.82)
    );
  box-shadow: 0 0 32px rgba(85, 217, 255, 0.06);
}

.souvenir-kicker {
  margin: 0 0 14px;
  color: var(--blue-electric);
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.souvenir-image {
  display: block;
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  border-radius: 18px;
}

.souvenir-title {
  margin: 20px 0 0;
  color: #f2fbff;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.souvenir-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.souvenir-text {
  width: min(100%, 580px);
  margin: 20px auto 0;
  color: #e7f4fa;
  font-size: clamp(1.02rem, 2vw, 1.14rem);
  font-style: italic;
  line-height: 1.65;
}

.sources-toggle {
  min-height: 42px;
  margin-top: 20px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(85, 217, 255, 0.20);
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.sources-panel {
  width: min(100%, 680px);
  margin: 14px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(85, 217, 255, 0.10);
  border-radius: 16px;
  background: rgba(7, 16, 25, 0.58);
  text-align: left;
}

.sources-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sources-list li {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.sources-list a {
  color: #c8efff;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.departure-message {
  width: min(100%, 620px);
  min-height: 130px;
  margin: 28px auto 0;
  color: #dcecf3;
  line-height: 1.65;
}

.departure-message p {
  margin: 8px 0 0;
}

.departure-paw {
  color: var(--blue-electric);
  font-size: 1.65rem;
  filter: drop-shadow(0 0 9px rgba(85, 217, 255, 0.24));
}

.departure-line-appear {
  animation: discovery-rise 480ms ease-out both;
}

@keyframes discovery-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 620px) {
  .discovery {
    margin-top: 28px;
  }

  .discovery-chapter {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .discovery-chapter__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .chapter-media img,
  .souvenir-image {
    border-radius: 14px;
  }

  .souvenir-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
}


/* =========================================================
   Lecteur FOLLOW THE BLUE — page d'accueil uniquement
   ========================================================= */

.theme-player {
  width: min(100%, 410px);
  margin: clamp(20px, 3.5vh, 28px) auto 0;
  padding: 13px 15px 12px;
  border: 1px solid rgba(85, 217, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 25, 0.76),
      rgba(3, 8, 13, 0.62)
    );
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.045);
  opacity: 0;
  transform: translateY(5px);
  animation: theme-player-appear 650ms ease-out 2250ms forwards;
}

.theme-player__meta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.62rem;
  margin-bottom: 10px;
}

.theme-player__eyebrow {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-player__title {
  color: #eaf9ff;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
}

.theme-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.theme-control {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(85, 217, 255, 0.24);
  border-radius: 50%;
  color: #e9faff;
  background: rgba(7, 16, 25, 0.82);
  cursor: pointer;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.theme-control:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 217, 255, 0.64);
  background: rgba(15, 39, 55, 0.86);
  box-shadow: 0 0 12px rgba(85, 217, 255, 0.10);
}

.theme-control:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.theme-control.is-active {
  color: var(--blue-electric-strong);
  border-color: rgba(85, 217, 255, 0.66);
  box-shadow: 0 0 13px rgba(85, 217, 255, 0.13);
}

.theme-control--volume {
  width: 30px;
  height: 30px;
  font-size: 1.02rem;
}

.theme-player__separator {
  width: 1px;
  height: 25px;
  margin: 0 2px;
  background: rgba(85, 217, 255, 0.13);
}

.theme-volume-icon {
  font-size: 0.92rem;
  filter: saturate(0.8);
}

.theme-volume-value {
  min-width: 38px;
  color: var(--text-muted);
  font-size: 0.73rem;
  text-align: left;
}

.theme-player__status {
  display: flex;
  justify-content: center;
  gap: 0.42rem;
  margin-top: 9px;
  color: #71889b;
  font-size: 0.69rem;
  letter-spacing: 0.025em;
}

@keyframes theme-player-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .theme-player {
    padding-inline: 11px;
  }

  .theme-player__controls {
    gap: 5px;
  }

  .theme-control {
    width: 32px;
    height: 32px;
  }

  .theme-control--volume {
    width: 28px;
    height: 28px;
  }
}


/* =========================================================
   Mini-lecteur persistant — Traque et Retrouvailles
   ========================================================= */

.theme-mini-player {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 28px);
  padding: 8px 10px;
  border: 1px solid rgba(85, 217, 255, 0.20);
  border-radius: 14px;
  background: rgba(3, 8, 13, 0.90);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 18px rgba(85, 217, 255, 0.07),
    0 10px 24px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translateY(6px);
}

.theme-mini-player.is-visible {
  animation: theme-mini-appear 320ms ease-out forwards;
}

.theme-mini-player__identity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.theme-mini-player__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue-electric);
  box-shadow: 0 0 8px rgba(85, 217, 255, 0.62);
}

.theme-mini-player__title {
  max-width: 118px;
  overflow: hidden;
  color: #dff7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-mini-player__controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.theme-mini-control {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(85, 217, 255, 0.18);
  border-radius: 50%;
  color: #e9faff;
  background: rgba(7, 16, 25, 0.84);
  cursor: pointer;
  line-height: 1;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.theme-mini-control:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 217, 255, 0.54);
  background: rgba(15, 39, 55, 0.92);
}

.theme-mini-control:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-mini-control.is-active {
  color: var(--blue-electric-strong);
  border-color: rgba(85, 217, 255, 0.62);
  box-shadow: 0 0 10px rgba(85, 217, 255, 0.14);
}

.theme-mini-control--volume {
  width: 25px;
  height: 25px;
}

.theme-mini-player__separator {
  width: 1px;
  height: 20px;
  margin: 0 1px;
  background: rgba(85, 217, 255, 0.11);
}

.theme-mini-player__speaker {
  font-size: 0.78rem;
}

.theme-mini-volume-value {
  min-width: 32px;
  color: #8399a8;
  font-size: 0.64rem;
}

@keyframes theme-mini-appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .theme-mini-player {
    right: 8px;
    bottom: 8px;
    gap: 7px;
    padding: 7px 8px;
  }

  .theme-mini-player__title {
    display: none;
  }

  .theme-mini-player__identity {
    gap: 0;
  }

  .theme-mini-control {
    width: 27px;
    height: 27px;
  }

  .theme-mini-control--volume {
    width: 24px;
    height: 24px;
  }
}


/* =========================================================
   BLOC 18 — Le Carnet s'ouvre
   Ajout après les Blocs 16 et 17 verrouillés.
   ========================================================= */

.home-journal-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin-top: 14px;
  padding: 0.48rem 0.82rem;
  border: 0;
  color: #7f9dad;
  background: transparent;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 740;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition:
    color 160ms ease,
    transform 160ms ease,
    text-shadow 160ms ease;
}

.home-journal-access:hover {
  color: #c6f0ff;
  transform: translateY(-1px);
  text-shadow: 0 0 10px rgba(85, 217, 255, 0.18);
}

.home-journal-access:focus-visible,
.open-journal-after-expedition:focus-visible,
.journal-summary-toggle:focus-visible,
.journal-back:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.open-journal-after-expedition {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 2px auto 0;
  padding: 0.82rem 1.35rem;
  border: 1px solid rgba(85, 217, 255, 0.34);
  border-radius: 999px;
  color: #effaff;
  background: #071019;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.open-journal-after-expedition:hover,
.journal-back:hover,
.journal-summary-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 217, 255, 0.64);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.12);
}


/* ---------- Écran Carnet ---------- */

.journal {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 58px) 16px 78px;
  background:
    radial-gradient(
      circle at 50% 8%,
      rgba(30, 105, 140, 0.07),
      transparent 34%
    ),
    var(--black-deep);
}

.journal.is-entering {
  animation: journal-enter 520ms ease-out both;
}

.journal-inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.journal-header {
  width: min(100%, 720px);
  margin: 0 auto 34px;
  text-align: center;
}

.journal-logo {
  display: block;
  width: min(42vw, 170px);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 5px rgba(85, 217, 255, 0.12));
}

.journal-kicker {
  margin: 0;
  color: var(--blue-electric);
  font-size: 0.74rem;
  font-weight: 840;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal-title {
  margin: 8px 0 0;
  color: #effaff;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 880;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.journal-manifesto {
  width: min(100%, 610px);
  margin: 18px auto 0;
  color: #c8dce5;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-style: italic;
  line-height: 1.65;
}

.journal-daewolf-memory {
  width: min(100%, 650px);
  margin: 18px auto 0;
  color: #e4f5fb;
  font-size: 0.96rem;
  line-height: 1.6;
}

.journal-count {
  display: inline-block;
  margin: 20px 0 0;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(85, 217, 255, 0.15);
  border-radius: 999px;
  color: #8ba5b3;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ---------- Grille ---------- */

.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.journal-card {
  border-radius: 24px;
}

.journal-card--saved {
  overflow: hidden;
  border: 1px solid rgba(85, 217, 255, 0.15);
  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 25, 0.90),
      rgba(3, 8, 13, 0.84)
    );
  box-shadow: 0 0 30px rgba(85, 217, 255, 0.05);
}

.journal-card__image-wrap {
  position: relative;
}

.journal-card__image {
  display: block;
  width: 100%;
  height: clamp(210px, 32vw, 350px);
  object-fit: cover;
}


.journal-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.journal-card__status-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.journal-card__saved-mark,
.journal-card__replay-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0;
  padding: 0.30rem 0.50rem;
  border-radius: 999px;
  font-size: 0.60rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.journal-card__saved-mark {
  border: 1px solid rgba(85, 217, 255, 0.24);
  color: #cfefff;
  background: rgba(85, 217, 255, 0.045);
}

.journal-card__replay-action {
  gap: 0.28rem;
  border: 1px solid rgba(85, 217, 255, 0.34);
  color: var(--blue-electric-strong);
  background: rgba(7, 18, 27, 0.62);
  font-family: inherit;
  cursor: pointer;
  transition:
    color 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.journal-card__replay-action:hover {
  color: #eefcff;
  border-color: rgba(85, 217, 255, 0.62);
  background: rgba(9, 27, 39, 0.82);
  box-shadow: 0 0 13px rgba(85, 217, 255, 0.08);
  transform: translateY(-1px);
}

.journal-card__replay-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

.journal-card__body {
  padding: clamp(20px, 3vw, 28px);
}

.journal-card__kicker {
  margin: 0;
  color: var(--blue-electric);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journal-card__title {
  margin: 7px 0 0;
  color: #f0fbff;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.journal-card__subtitle {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.journal-card__memory {
  margin: 18px 0 0;
  color: #dbeaf1;
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.6;
}

.journal-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(85, 217, 255, 0.08);
}

.journal-card__meta span {
  color: #6f8795;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.journal-card__meta strong {
  color: #c5e6f2;
  font-size: 0.86rem;
  text-align: right;
}

.journal-summary-toggle {
  width: 100%;
  min-height: 46px;
  margin-top: 20px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(85, 217, 255, 0.18);
  border-radius: 14px;
  color: #d7eff7;
  background: rgba(7, 16, 25, 0.54);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 790;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.journal-summary {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  animation: journal-enter 340ms ease-out both;
}

.journal-summary__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(85, 217, 255, 0.08);
  border-radius: 14px;
  background: rgba(85, 217, 255, 0.025);
}

.journal-summary__icon {
  color: var(--blue-electric);
  font-size: 1.05rem;
  text-align: center;
}

.journal-summary__item h4 {
  margin: 0;
  color: #eaf8ff;
  font-size: 0.88rem;
}

.journal-summary__item p {
  margin: 6px 0 0;
  color: #9eb4c0;
  font-size: 0.86rem;
  line-height: 1.55;
}


/* ---------- Prochaine trace ---------- */

.journal-card--future {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 430px;
  padding: 30px 24px;
  border: 1px dashed rgba(85, 217, 255, 0.16);
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(85, 217, 255, 0.035),
      transparent 38%
    ),
    rgba(4, 10, 16, 0.42);
  text-align: center;
}

.journal-future__symbol {
  color: var(--blue-electric);
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px rgba(85, 217, 255, 0.25));
}

.journal-future__label {
  margin: 16px 0 0;
  color: #6f8795;
  font-size: 0.7rem;
  font-weight: 830;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.journal-future__title {
  margin: 8px 0 0;
  color: #dff5fc;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  text-transform: uppercase;
}

.journal-future__text {
  width: min(100%, 270px);
  margin: 14px auto 0;
  color: #8098a5;
  font-size: 0.93rem;
  font-style: italic;
  line-height: 1.6;
}


/* ---------- Retour ---------- */

.journal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 0.68rem 1.2rem;
  border: 1px solid rgba(85, 217, 255, 0.20);
  border-radius: 999px;
  color: #bedce8;
  background: rgba(7, 16, 25, 0.68);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

@keyframes journal-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 760px) {
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-card--future {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  .journal {
    padding-inline: 12px;
  }

  .journal-card {
    border-radius: 19px;
  }

  .journal-card__body {
    padding: 18px 16px;
  }

  .journal-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .journal-card__meta strong {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .journal-card__topline {
    align-items: center;
    gap: 6px;
  }

  .journal-card__kicker {
    font-size: 0.66rem;
    letter-spacing: 0.105em;
  }

  .journal-card__status-actions {
    gap: 4px;
  }

  .journal-card__saved-mark,
  .journal-card__replay-action {
    min-height: 28px;
    padding: 0.27rem 0.40rem;
    font-size: 0.54rem;
    letter-spacing: 0.04em;
  }
}


/* =========================================================
   BLOC 19 — Deuxième trace / moteur multi-expéditions
   ========================================================= */

.chapter-badge[data-type="cultural"] {
  border-color: rgba(196, 164, 255, 0.34);
  color: #e3d5ff;
  background: rgba(116, 79, 166, 0.12);
}

.chapter-badge[data-type="mixed"] {
  border-color: rgba(114, 221, 183, 0.32);
  color: #d7fff1;
  background: rgba(46, 139, 107, 0.11);
}

.journal-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  color: #7f98a5;
  text-align: center;
}

.journal-next-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0.72rem 1.08rem;
  border: 1px solid rgba(85, 217, 255, 0.25);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(7, 16, 25, 0.74);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.journal-next-action:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 217, 255, 0.62);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.12);
}

.journal-next-action:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

/* Deux traces + la promesse suivante restent équilibrées. */
@media (min-width: 761px) {
  .journal-grid:has(.journal-card--saved:nth-of-type(2)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-grid:has(.journal-card--saved:nth-of-type(2))
    .journal-card--future {
    grid-column: 1 / -1;
    min-height: 250px;
  }
}

/* =========================================================
   Carnet — souvenir narratif avec DaeWolf
   L'image documentaire reste visible dans la carte ;
   un clic ouvre la scène narrative en plein écran.
   ========================================================= */

.journal-card__image-action {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.journal-card__image-action .journal-card__image {
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.journal-card__image-action:hover .journal-card__image,
.journal-card__image-action:focus-visible .journal-card__image {
  transform: scale(1.012);
  filter: brightness(1.035);
}

.journal-card__image-action:focus-visible {
  outline: 2px solid rgba(85, 217, 255, 0.72);
  outline-offset: -2px;
}

.journal-card__scene-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(85, 217, 255, 0.30);
  border-radius: 999px;
  color: #e8faff;
  background: rgba(2, 8, 14, 0.72);
  box-shadow: 0 0 18px rgba(85, 217, 255, 0.10);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.025em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 190ms ease,
    transform 190ms ease;
  pointer-events: none;
}

.journal-card__image-action:hover .journal-card__scene-hint,
.journal-card__image-action:focus-visible .journal-card__scene-hint {
  opacity: 1;
  transform: translateY(0);
}

.trace-icon--scene-hint {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(85, 217, 255, 0.55));
}

body.journal-scene-open {
  overflow: hidden;
}

.journal-scene-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(0, 3, 7, 0.94);
  backdrop-filter: blur(8px);
  animation: journal-scene-fade 180ms ease-out both;
}

.journal-scene-lightbox.hidden {
  display: none;
}

.journal-scene-lightbox__figure {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
}

.journal-scene-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(33, 161, 255, 0.11);
}

.journal-scene-lightbox__close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2502;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(130, 225, 255, 0.34);
  border-radius: 50%;
  color: #edfaff;
  background: rgba(0, 8, 15, 0.76);
  box-shadow: 0 0 22px rgba(85, 217, 255, 0.12);
  backdrop-filter: blur(9px);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.journal-scene-lightbox__close:hover,
.journal-scene-lightbox__close:focus-visible {
  border-color: rgba(130, 225, 255, 0.78);
  box-shadow: 0 0 26px rgba(85, 217, 255, 0.22);
  outline: none;
}

.journal-scene-lightbox__caption {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2501;
  width: min(calc(100vw - 32px), 760px);
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: rgba(232, 248, 255, 0.86);
  background: rgba(0, 6, 11, 0.64);
  backdrop-filter: blur(8px);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%);
}

@keyframes journal-scene-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (hover: none) {
  .journal-card__scene-hint {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .journal-card__scene-hint {
    right: 10px;
    bottom: 10px;
    padding: 0.42rem 0.58rem;
    font-size: 0.66rem;
  }

  .journal-scene-lightbox__caption {
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 14px;
    font-size: 0.72rem;
  }
}
