/* ==========================================================================
   LUXODERME — MINI-JEU INTERACTIF « MYTHES & RÉALITÉS » (PUPITRE & ÉVENTAIL LUXE)
   ========================================================================== */

.section-myths {
  --m-navy: #0a1c3b;
  --m-navy-deep: #061226;
  --m-gold: #caa151;
  --m-gold-deep: #916c21;
  --m-ivory: #f6f1e9;
  --m-alabaster: #fcfaf6;
  --m-text: #2c3a4f;
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  background-color: var(--m-ivory);
  padding: clamp(64px, 8vw, 104px) 0;
  overflow: hidden;
  border-top: 1px solid rgba(202, 161, 81, 0.22);
}

/* ==========================================================================
   1. PUPITRE 2 COLONNES (.myths-layout) & REPÈRES D'ÉTAPE
   ========================================================================== */

.myths-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 490px);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.myths-header {
  margin: 0;
  max-width: 34rem;
  text-align: left;
}

.myths-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-gold-deep);
  margin-bottom: 12px;
}

.myths-star {
  color: var(--m-gold);
  font-size: 0.9rem;
}

.myths-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  line-height: 1.18;
  color: var(--m-navy);
  margin: 0;
}

.myths-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--m-gold-deep);
}

.myths-rule {
  display: block;
  width: 56px;
  height: 1px;
  background-color: var(--m-gold);
  margin: 18px 0;
}

.myths-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--m-text);
  margin: 0 0 24px 0;
  max-width: 58ch;
}

/* Barre de progression */
.myths-progress-wrap {
  max-width: 420px;
  scroll-margin-top: 88px;
}

.myths-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--m-navy);
  margin-bottom: 8px;
}

.myths-score-pill {
  padding: 2px 11px;
  border-radius: 999px;
  background: rgba(202, 161, 81, 0.18);
  border: 1px solid rgba(202, 161, 81, 0.4);
  color: var(--m-gold-deep);
  font-size: 0.74rem;
}

.myths-progress-track {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(10, 28, 59, 0.12);
  overflow: hidden;
}

.myths-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--m-gold-deep), var(--m-gold));
  transition: width 0.55s var(--m-ease);
}

.myths-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0;
}

.myths-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  color: rgba(10, 28, 59, 0.45);
  background: var(--m-alabaster);
  border: 1px solid rgba(10, 28, 59, 0.16);
  transition: all 0.35s var(--m-ease);
}

.myths-step.is-current {
  background: var(--m-navy);
  border-color: var(--m-gold);
  color: var(--m-ivory);
  box-shadow: 0 8px 18px rgba(10, 28, 59, 0.2);
  transform: scale(1.08);
}

.myths-step.is-correct {
  background: linear-gradient(135deg, #e3c783, #caa151);
  border-color: var(--m-gold);
  color: var(--m-navy);
}

.myths-step.is-surprise {
  background: rgba(10, 28, 59, 0.1);
  border-color: rgba(202, 161, 81, 0.55);
  color: var(--m-gold-deep);
}

.myths-desktop-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(44, 58, 79, 0.78);
}

/* ==========================================================================
   2. SCÈNE & PAQUET ÉVENTAIL HAUTE PAPETERIE (.myths-stage & .myths-grid)
   ========================================================================== */

.myths-stage {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin-left: auto;
  isolation: isolate;
}

/* Halo lumineux champagne très discret derrière le paquet pour créer de la profondeur */
.myths-stage::before {
  content: '';
  position: absolute;
  inset: 8% 4% 4% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 161, 81, 0.2) 0%, rgba(202, 161, 81, 0.06) 45%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
}

.myths-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  padding: 10px 18px 34px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  max-height: 780px;
  transition: opacity 0.4s ease, max-height 0.52s var(--m-ease), padding 0.4s ease;
}

.myths-grid.is-deck-complete {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.myth-card {
  grid-area: 1 / 1;
  position: relative;
  transform-origin: center 65%;
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.myth-card-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(0deg);
  transition: transform 0.78s var(--m-ease);
}

.myth-card.is-flipped .myth-card-inner {
  transform: perspective(1200px) rotateY(180deg);
}

.myth-face {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 16px;
  padding: clamp(24px, 2.8vw, 32px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Finition carte cartonnée luxe : surface satinée + double filet or intérieur */
.myth-face-front {
  background: linear-gradient(165deg, #ffffff 0%, #fcfaf6 55%, #f7f0e2 100%);
  border: 1px solid rgba(202, 161, 81, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 6px rgba(252, 250, 246, 0.85),
    inset 0 0 0 7px rgba(202, 161, 81, 0.16),
    0 24px 48px -16px rgba(6, 18, 38, 0.18),
    0 6px 16px -4px rgba(10, 28, 59, 0.08);
  transform: rotateY(0deg);
}

.myth-card.is-flipped .myth-face-front {
  pointer-events: none;
}

/* Verso bleu nuit profond avec éclat doré subtil + double filet or */
.myth-face-back {
  background:
    radial-gradient(circle at 14% 0%, rgba(202, 161, 81, 0.18) 0%, transparent 52%),
    linear-gradient(160deg, #0d2246 0%, #061226 100%);
  border: 1px solid rgba(202, 161, 81, 0.62);
  color: var(--m-ivory);
  transform: rotateY(180deg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 6px rgba(10, 28, 59, 0.55),
    inset 0 0 0 7px rgba(202, 161, 81, 0.22),
    0 26px 52px -16px rgba(6, 18, 38, 0.34);
}

.myth-card:not(.is-flipped) .myth-face-back {
  pointer-events: none;
}

/* Masque en douceur le texte des cartes arrière pour que seuls leurs bords satinés sertis d'or dépassent */
.myth-card .myth-face-front > * {
  transition: opacity 0.38s ease 0.06s;
}

.myth-card:not([data-stack-pos="0"]) .myth-face-front > * {
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* ÉVENTAIL ASYMÉTRIQUE LUXE (remplace l'empilement basique en escalier) */
.myth-card[data-stack-pos="0"] {
  z-index: 4;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.myth-card[data-stack-pos="1"] {
  z-index: 3;
  transform: translate3d(14px, 8px, 0) rotate(2.6deg) scale(0.965);
  opacity: 1;
  pointer-events: none;
}

.myth-card[data-stack-pos="1"] .myth-face-front {
  background: linear-gradient(165deg, #fbf7ef 0%, #f3ebdc 100%);
  border-color: rgba(202, 161, 81, 0.44);
  box-shadow:
    inset 0 0 0 6px rgba(249, 244, 234, 0.7),
    inset 0 0 0 7px rgba(202, 161, 81, 0.14),
    0 18px 36px -14px rgba(6, 18, 38, 0.14);
}

.myth-card[data-stack-pos="2"] {
  z-index: 2;
  transform: translate3d(-11px, 14px, 0) rotate(-2.2deg) scale(0.935);
  opacity: 0.96;
  pointer-events: none;
}

.myth-card[data-stack-pos="2"] .myth-face-front {
  background: linear-gradient(165deg, #0f2447 0%, #091833 100%);
  border-color: rgba(202, 161, 81, 0.5);
  box-shadow:
    inset 0 0 0 6px rgba(10, 28, 59, 0.6),
    inset 0 0 0 7px rgba(202, 161, 81, 0.2),
    0 14px 28px -12px rgba(6, 18, 38, 0.22);
}

.myth-card[data-stack-pos="3"] {
  z-index: 1;
  transform: translate3d(6px, 20px, 0) rotate(1.1deg) scale(0.905);
  opacity: 0.85;
  pointer-events: none;
}

.myth-card[data-stack-pos="3"] .myth-face-front {
  background: #efe6d5;
  border-color: rgba(202, 161, 81, 0.36);
  box-shadow: 0 10px 22px -10px rgba(6, 18, 38, 0.12);
}

/* Curseurs et états drag / swipe */
.myth-card.is-top.is-flipped {
  cursor: grab;
}

.myth-card.is-top.is-flipped.is-dragging {
  cursor: grabbing;
}

.myth-card.is-dragging,
.myth-card.is-peeking {
  transition: none !important;
  animation: none !important;
}

.myth-card.is-dismissed-left {
  z-index: 5;
  transform: translate3d(-128%, -16px, 0) rotate(-14deg) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.48s var(--m-ease), opacity 0.36s ease !important;
}

.myth-card.is-dismissed-right {
  z-index: 5;
  transform: translate3d(128%, -16px, 0) rotate(14deg) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.48s var(--m-ease), opacity 0.36s ease !important;
}

/* Oscillation douce d'appel au swipe une fois retournée */
.myth-card.is-top.is-flipped.is-swipe-ready:not(.is-dragging) {
  animation: mythSwipeNudge 3.2s var(--m-ease) 0.9s infinite;
}

@keyframes mythSwipeNudge {
  0%, 72%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  80% {
    transform: translate3d(-16px, -2px, 0) rotate(-1.8deg);
  }
  88% {
    transform: translate3d(5px, 0, 0) rotate(0.6deg);
  }
}

/* ==========================================================================
   CONTENU DES FACES DE CARTES
   ========================================================================== */

.myth-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.myth-num {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--m-gold);
  letter-spacing: 0.02em;
}

.myth-num-total {
  font-size: 0.92rem;
  color: rgba(10, 28, 59, 0.42);
  margin-left: 2px;
  font-weight: 400;
}

.myth-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-navy);
  background: rgba(202, 161, 81, 0.14);
  padding: 5px 11px;
  border-radius: 999px;
}

.myth-statement {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.14rem, 1.55vw, 1.32rem);
  line-height: 1.46;
  color: var(--m-navy);
  margin: 0 0 18px 0;
}

.myth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.myth-btn {
  appearance: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--m-navy);
  background: #ffffff;
  border: 1px solid rgba(10, 28, 59, 0.22);
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s var(--m-ease);
}

.myth-btn:hover,
.myth-btn:focus-visible {
  background-color: var(--m-navy);
  border-color: var(--m-navy);
  color: var(--m-ivory);
  transform: translateY(-2px);
}

/* Dos de la carte */
.myth-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.myth-verdict-badge.is-correct {
  background: rgba(46, 125, 50, 0.2);
  color: #a3e9a4;
  border: 1px solid rgba(163, 233, 164, 0.45);
}

.myth-verdict-badge.is-surprise {
  background: rgba(202, 161, 81, 0.18);
  color: #f0cf85;
  border: 1px solid rgba(202, 161, 81, 0.45);
}

.myth-flip-back {
  background: transparent;
  border: none;
  color: rgba(246, 241, 233, 0.65);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.myth-flip-back:hover {
  color: var(--m-gold);
  background-color: rgba(255, 255, 255, 0.06);
}

.myth-answer-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.55vw, 1.34rem);
  line-height: 1.32;
  color: var(--m-gold);
  margin: 0 0 10px 0;
}

.myth-explanation {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.62;
  color: rgba(246, 241, 233, 0.92);
  margin: 0 0 16px 0;
}

.myth-explanation strong {
  color: #ffffff;
  font-weight: 600;
}

.myth-learn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--m-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
  margin-top: auto;
}

.myth-learn-link:hover {
  color: #ffffff;
  text-decoration-color: var(--m-gold);
}

/* Pied de carte mobile & desktop (.myth-mobile-footer) */
.myth-mobile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(202, 161, 81, 0.25);
}

.myth-swipe-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(246, 241, 233, 0.78);
}

.myth-swipe-cue svg {
  color: var(--m-gold);
}

.myth-swipe-cue svg.myth-swipe-arrow--left,
.myth-swipe-cue svg:first-child {
  animation: mythCueSlideLeft 1.8s ease-in-out infinite;
}

.myth-swipe-cue svg.myth-swipe-arrow--right,
.myth-swipe-cue svg:last-child {
  animation: mythCueSlideRight 1.8s ease-in-out infinite;
}

@keyframes mythCueSlideLeft {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3px);
  }
}

@keyframes mythCueSlideRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

.myth-next-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e3c783 0%, #caa151 45%, #b78a3a 100%);
  color: var(--m-navy);
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.myth-next-btn:active {
  transform: scale(0.96);
}

/* Fenêtre photographique macro (.myth-media) */
.myth-media {
  position: relative;
  width: 100%;
  height: clamp(104px, 12vw, 128px);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 18px 0;
  border: 1px solid rgba(202, 161, 81, 0.35);
  background-color: var(--m-ivory);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.myth-media picture,
.myth-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal-pos, center center);
  transform: scale(1.1);
  transition: transform 1.15s var(--m-ease), filter 0.6s ease;
  will-change: transform;
}

.myth-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 28, 59, 0.04) 0%,
    rgba(10, 28, 59, 0.14) 55%,
    rgba(6, 18, 38, 0.62) 100%
  );
  pointer-events: none;
}

.myth-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(252, 250, 246, 0.22) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.95s var(--m-ease);
  pointer-events: none;
}

.myth-card:not(.is-flipped):hover .myth-media img {
  transform: scale(1.18);
}

.myth-card:not(.is-flipped):hover .myth-media::after {
  transform: translateX(120%);
}

.myth-media-caption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 18, 38, 0.64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(202, 161, 81, 0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--m-ivory);
}

.myth-media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--m-gold);
  box-shadow: 0 0 0 0 rgba(202, 161, 81, 0.65);
  animation: mythGoldPulse 2.6s ease-out infinite;
}

@keyframes mythGoldPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(202, 161, 81, 0.65);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(202, 161, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(202, 161, 81, 0);
  }
}

.myth-card[data-stack-pos="0"]:not(.is-flipped) .myth-media img {
  animation: mythKenBurns 9.5s ease-in-out infinite alternate;
}

@keyframes mythKenBurns {
  0% {
    transform: scale(1.08) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.18) translate3d(-1.5%, -1.5%, 0);
  }
}

/* ==========================================================================
   3. PANNEAU DE SYNTHÈSE (.myths-summary adapté à la colonne .myths-stage)
   ========================================================================== */

.myths-summary {
  margin-top: 0;
  padding: clamp(26px, 3vw, 34px);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--m-navy) 0%, #13294d 100%);
  border: 1px solid rgba(202, 161, 81, 0.45);
  color: var(--m-ivory);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  box-shadow:
    inset 0 0 0 6px rgba(10, 28, 59, 0.5),
    inset 0 0 0 7px rgba(202, 161, 81, 0.22),
    0 24px 48px -16px rgba(6, 18, 38, 0.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--m-ease), transform 0.55s var(--m-ease);
}

.myths-summary[hidden] {
  display: none;
}

.myths-summary.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.myths-summary-content {
  flex: none;
  text-align: left;
}

.myths-summary-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--m-gold);
  margin-bottom: 8px;
}

.myths-summary-title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.28;
  color: #ffffff;
  margin: 0 0 8px 0;
}

.myths-summary-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(246, 241, 233, 0.86);
  margin: 0;
}

.myths-summary-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.myths-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background-image: linear-gradient(135deg, #e3c783 0%, #caa151 38%, #b78a3a 62%, #d9b66a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 28px -12px rgba(202, 161, 81, 0.6);
  color: var(--m-navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  transition: filter 0.25s ease, transform 0.25s var(--m-ease);
}

.myths-cta-primary span {
  display: inline-block;
  text-align: center;
}

.myths-cta-primary svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--m-ease);
}

.myths-cta-primary:hover svg {
  transform: translateX(3px);
}

.myths-cta-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.myths-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(202, 161, 81, 0.55);
  color: var(--m-ivory);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.myths-cta-secondary:hover {
  background-color: rgba(202, 161, 81, 0.16);
  border-color: var(--m-gold);
}

.myths-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(202, 161, 81, 0.45);
  background: rgba(202, 161, 81, 0.08);
  color: var(--m-ivory, #f6f1e9);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.myths-replay-btn svg {
  flex-shrink: 0;
  color: var(--m-gold, #caa151);
  transition: transform 0.35s ease;
}

.myths-replay-btn:hover {
  background: rgba(202, 161, 81, 0.2);
  border-color: var(--m-gold, #caa151);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(202, 161, 81, 0.22);
}

.myths-replay-btn:hover svg {
  transform: rotate(-45deg);
}

.myths-social-invite {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(202, 161, 81, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  color: rgba(246, 241, 233, 0.72);
  text-align: center;
}

.myths-social-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.myths-social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e8c77b;
  font-weight: 600;
  text-decoration: none;
  min-height: 36px;
  padding: 2px 4px;
  transition: color 0.2s ease;
}

.myths-social-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   4. RESPONSIVE TABLETTE & SMARTPHONE
   ========================================================================== */

@media (max-width: 920px) {
  .myths-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .myths-header {
    max-width: 100%;
  }

  .myths-stage {
    margin: 0 auto;
    max-width: 460px;
  }

  .myths-desktop-hint {
    display: none;
  }
}

@media (max-width: 540px) {
  .myths-grid {
    padding: 8px 14px 28px;
  }

  .myth-card[data-stack-pos="1"] {
    transform: translate3d(9px, 7px, 0) rotate(2.1deg) scale(0.965);
  }

  .myth-card[data-stack-pos="2"] {
    transform: translate3d(-8px, 12px, 0) rotate(-1.8deg) scale(0.935);
  }

  .myth-card[data-stack-pos="3"] {
    transform: translate3d(4px, 17px, 0) rotate(0.9deg) scale(0.905);
  }

  .myths-summary {
    padding: 24px 16px;
    gap: 16px;
  }

  .myths-cta-primary {
    padding: 12px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }

  .myths-replay-btn {
    padding: 11px 14px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .myth-card-inner {
    transition: none;
  }
  .myth-card.is-flipped .myth-card-inner {
    transform: none;
  }
  .myth-card.is-flipped .myth-face-front {
    display: none;
  }
  .myth-face-back {
    transform: none;
    display: none;
  }
  .myth-card.is-flipped .myth-face-back {
    display: flex;
  }
  .myth-card.is-top.is-flipped.is-swipe-ready,
  .myth-swipe-cue svg,
  .myth-media-dot,
  .myth-card[data-stack-pos="0"]:not(.is-flipped) .myth-media img {
    animation: none !important;
  }
  .myth-media img {
    transform: scale(1.04) !important;
    transition: none !important;
  }
}

/* Masquage fluide du dock sticky (.dock) pendant la consultation du jeu Mythes & Réalités */
body.in-myths-game .dock {
  transform: translate3d(0, 24px, 0) scale(0.95) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease, transform 0.35s var(--m-ease), visibility 0s linear 0.35s !important;
}
