/* ============================================================
   vibration-medium.css — extrait de styles.css le 2026-05-07
   Phase 3 (extraction CSS module-par-module).
   66 règles, ~356 lignes.
   Cut & paste pur — ordre source strict (même @media wrapper si répété).
   ============================================================ */

body:has(#vibrationMediumView.active) #vibFlameLoopBg,
body:has(#vibrationMediumView.active) #vibFlameLoopBg2 {
  display: block;
}

#vibFlameLoopBg,
#vibFlameLoopBg2 {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  z-index: 0;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  background: #000;
}

/* Écrans ultra-larges (>1.9 ratio, ex: 21:9, 32:9) :
   le cierge restait écrasé/cropé en cover. On passe en contain
   pour préserver la flamme entière, et on adoucit les bords noirs
   par un vignettage radial dans le body. */
@media (min-aspect-ratio: 19/10) {
  #vibFlameLoopBg,
  #vibFlameLoopBg2 {
    object-fit: contain;
    object-position: center;
  }
  body:has(#vibrationMediumView.active)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,0.55) 75%, #000 100%);
  }
}

.vib-flame-stage-shell,
#vibMediumStage,
.vib-flame-glow,
#vibMediumVideo {
  display: none !important;
}

.vib-flame-answer {
  position: fixed;
  top: 76%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  margin: 0;
  z-index: 10;
  text-align: center;
}




@media (min-width: 769px) {
  .vib-flame-answer {
      top: 50%;
      max-width: 800px;
    }

  .vib-flame-answer-label {
      font-size: clamp(6rem, 15vw, 11rem);
      letter-spacing: 0.22em;
      margin-bottom: 24px;
    }

  .vib-flame-answer-line {
      font-size: clamp(2rem, 5vw, 3.2rem);
      letter-spacing: 0.05em;
    }

}

.vib-flame-answer.is-yes .vib-flame-answer-label,
.vib-flame-answer.is-no .vib-flame-answer-label {
  font-size: clamp(6rem, 28vw, 10rem);
}

@media (min-width: 769px) {
  .vib-flame-answer.is-yes .vib-flame-answer-label,
    .vib-flame-answer.is-no .vib-flame-answer-label {
      font-size: clamp(10rem, 22vw, 17rem);
    }

}

#vibrationMediumView {
  position: relative;
  height: 100vh;
  padding: 20px 16px 42px;
  background: transparent;
  overflow: hidden;
}

#vibrationMediumView::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
  z-index: 1;
}

#vibrationMediumView::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(230, 210, 130, 0.06), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.vib-flame-hero-mark {
  text-align: center;
  font-size: 2rem;
  color: rgba(230, 210, 130, 0.92);
  text-shadow: 0 0 18px rgba(230, 210, 130, 0.18);
  margin: 0 0 10px;
  animation: flame-flicker 2.4s ease-in-out infinite alternate;
}

.vib-flame-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  color: var(--gold-main) !important;
}

.vib-flame-subtitle {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 32px;
  color: rgba(226, 232, 240, 0.78) !important;
  line-height: 1.5;
  font-size: 0.9rem;
}

.vib-flame-question-panel {
  max-width: 500px;
  margin: 0 auto 14px;
}

.vib-flame-question {
  min-height: 64px;
  max-height: 110px;
  border-radius: 14px;
  border: 1px solid rgba(230, 210, 130, 0.14);
  background: rgba(3, 8, 18, 0.34);
  color: #eef2ff;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.vib-flame-question::placeholder {
  color: rgba(203, 213, 225, 0.42);
  font-style: normal;
}

.vib-flame-question:focus {
  border-color: rgba(230, 210, 130, 0.28);
  box-shadow:
    0 0 0 1px rgba(230, 210, 130, 0.10),
    0 0 18px rgba(230, 210, 130, 0.05);
}

.vib-medium-rules {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 10.5px;
  line-height: 1.35;
  text-align: center;
  color: rgba(229, 231, 235, 0.42);
  user-select: none;
}

.vib-flame-ask-row {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.vib-flame-ask-btn {
  min-width: 200px;
  background: rgba(20, 12, 8, 0.6) !important;
  border: 1px solid #e4b275 !important;
  color: #e4b275 !important;
  text-shadow: 0 0 8px rgba(228, 178, 117, 0.18);
  box-shadow: 0 0 18px rgba(228, 178, 117, 0.12), inset 0 0 12px rgba(228, 178, 117, 0.05);
}
.vib-flame-ask-btn:hover,
.vib-flame-ask-btn:focus {
  background: rgba(40, 24, 14, 0.7) !important;
  border-color: #f0c485 !important;
  color: #f0c485 !important;
  box-shadow: 0 0 22px rgba(228, 178, 117, 0.22);
}
.vib-flame-ask-btn .arcane-badge-inline {
  color: #e4b275 !important;
  opacity: 0.85;
}

.vib-flame-btn-icon {
  width: 22px;
  height: 22px;
  vertical-align: -6px;
  margin-right: 8px;
  filter: drop-shadow(0 0 4px rgba(244, 210, 122, 0.4));
  user-select: none;
  -webkit-user-drag: none;
}

.vib-flame-status {
  text-align: center;
  margin: 8px 0 0;
  color: rgba(226, 232, 240, 0.74) !important;
  min-height: 1.1em;
  font-size: 0.86rem;
}

.vib-flame-page.is-asking .vib-flame-hero-mark,
.vib-flame-page.is-asking .vib-flame-title,
.vib-flame-page.is-asking .vib-flame-subtitle,
.vib-flame-page.is-asking .vib-flame-ask-row,
.vib-flame-page.is-asking .vib-medium-rules,
.vib-flame-page.is-asking .vib-flame-status {
  display: none !important;
}

.vib-flame-question-display {
  display: none;
}

.vib-flame-page.is-asking .vib-flame-question-panel {
  position: fixed;
  left: 50%;
  top: 59%;
  transform: translateX(-50%);
  width: 94%;
  max-width: 700px;
  z-index: 10;
  text-align: center;
}

.vib-flame-page.is-asking .vib-flame-question {
  display: none;
}

.vib-flame-page.is-asking .vib-flame-question-display {
  display: block;
  font-size: clamp(1.8rem, 6.5vw, 3rem);
  font-style: italic;
  color: rgba(230, 210, 130, 0.95);
  background: none;
  border: none;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: center;
  line-height: 1.55;
  text-shadow: 0 0 24px rgba(230, 210, 130, 0.35);
  text-wrap: balance;
  hyphens: none;
}

.vib-flame-oracle-panel {
  max-width: 520px;
  margin: 0 auto;
}

.vib-flame-stage-shell {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.vib-flame-stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(3, 8, 18, 0.16);
  box-shadow:
    0 0 28px rgba(230, 210, 130, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.42);
}

.vib-flame-poster,
.vib-flame-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vib-flame-poster {
  z-index: 2;
  opacity: 1;
  transition: opacity 0.55s ease;
}

.vib-flame-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.vib-flame-stage.is-playing .vib-flame-poster { opacity: 0; }

.vib-flame-stage.is-playing .vib-flame-video  { opacity: 1; }

.vib-flame-glow {
  position: absolute;
  inset: auto 14% 6% 14%;
  height: 18%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(230, 210, 130, 0.18), transparent 70%);
  filter: blur(16px);
  opacity: 0.78;
}

.vib-flame-answer {
  position: fixed;
  top: 76%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.vib-flame-answer.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.vib-flame-answer-label {
  font-family: 'Cinzel', 'Palatino Linotype', Georgia, serif;
  font-size: clamp(5rem, 25vw, 10rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-main);
  margin-bottom: 16px;
}

.vib-flame-answer-line {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.93);
}

.vib-flame-answer.is-yes    .vib-flame-answer-label { color: #7ee787; }

.vib-flame-answer.is-no     .vib-flame-answer-label { color: #ff8b8b; }

.vib-flame-answer.is-refuse .vib-flame-answer-label { color: #f8fafc; }

.vib-flame-answer:not(.is-hidden) .vib-flame-answer-label {
  animation-duration: 2.2s;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  animation-fill-mode: both;
  animation-iteration-count: 1;
  animation-delay: 0.2s;
  transform-origin: center;
}

.vib-flame-answer.is-yes:not(.is-hidden)    .vib-flame-answer-label { animation-name: glow-yes; }

.vib-flame-answer.is-no:not(.is-hidden)     .vib-flame-answer-label { animation-name: glow-no; }

.vib-flame-answer.is-refuse:not(.is-hidden) .vib-flame-answer-label { animation-name: glow-refuse; }

@media (max-width: 768px) {
  #vibrationMediumView {
      padding: 2px 12px 20px;
    }

  .vib-flame-hero-mark {
      font-size: 1.2rem;
      margin: 0 0 4px;
    }

  .vib-flame-title {
      font-size: 1.2rem;
      margin-bottom: 4px;
    }

  .vib-flame-subtitle {
      font-size: 0.85rem;
      line-height: 1.35;
      margin: 0 auto 8px;
      padding: 0 4px;
    }

  .vib-flame-question-panel {
      margin-bottom: 6px;
    }

  .vib-flame-question {
      min-height: 52px;
      max-height: 80px;
    }

  .vib-medium-rules { display: none; }

  .vib-flame-ask-row { margin-top: 8px; }

  .vib-flame-status { margin-top: 4px; }

  .vib-flame-page.is-asking .vib-flame-question-display {
      font-size: clamp(1rem, 4.5vw, 1.35rem);
    }

  .vib-flame-answer-label {
      font-size: clamp(1rem, 5.5vw, 1.6rem);
      white-space: normal;
      word-break: break-word;
    }

  .vib-flame-answer-line {
      font-size: clamp(0.82rem, 3.2vw, 0.98rem);
    }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .vib-flame-page.is-asking .vib-flame-question-display {
      font-size: clamp(1.3rem, 3.8vw, 2rem);
    }

  .vib-flame-answer-label {
      font-size: clamp(3rem, 11vw, 5rem);
      white-space: normal;
      word-break: break-word;
    }

  .vib-flame-answer-line {
      font-size: clamp(1rem, 2.2vw, 1.4rem);
    }

}

/* ============================================================
   REDESIGN PUB v1 (2026-05-09) — Oracle de la Flamme
   Aligne le rendu verdict sur la planche pub : cadre doré,
   header ORACLE / DE LA FLAMME, verdict géant doré, médaillon.
   Ajouté en fin de fichier pour override propre.
   ============================================================ */

/* Cadre doré overlay PERMANENT sur toute la vue Oracle de la Flamme.
   Visible aussi bien en état asking qu'en reveal. Ne capte pas les clics. */
.vib-flame-overlay-frame {
  position: fixed;
  inset: max(46px, env(safe-area-inset-top, 0px) + 40px) 3vw 12px;
  z-index: 11;
  pointer-events: none;
  border: 1px solid var(--flame-frame-line, rgba(244, 210, 122, 0.42));
  border-radius: 4px;
}
.vib-flame-overlay-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--flame-frame-line-2, rgba(244, 210, 122, 0.18));
  border-radius: 3px;
  pointer-events: none;
}
.vib-flame-overlay-frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  background-image:
    linear-gradient(var(--flame-gold, #f4d27a), var(--flame-gold, #f4d27a)),
    linear-gradient(var(--flame-gold, #f4d27a), var(--flame-gold, #f4d27a));
  background-size: 22px 1px, 1px 22px;
  background-repeat: no-repeat;
  opacity: 0.85;
}
.vib-flame-overlay-frame-corner--tl {
  top: 4px; left: 4px;
  background-position: top left, top left;
}
.vib-flame-overlay-frame-corner--tr {
  top: 4px; right: 4px;
  background-position: top right, top right;
}
.vib-flame-overlay-frame-corner--bl {
  bottom: 4px; left: 4px;
  background-position: bottom left, bottom left;
}
.vib-flame-overlay-frame-corner--br {
  bottom: 4px; right: 4px;
  background-position: bottom right, bottom right;
}

/* L'overlay frame n'est rendu QUE sur la vue active */
body:not(:has(#vibrationMediumView.active)) .vib-flame-overlay-frame {
  display: none;
}

/* État question : titre serif + diviseur losange + sous-titre italique */
.vib-flame-title {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.22em !important;
  color: #e4b275 !important;
  text-shadow: 0 0 14px rgba(228, 178, 117, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.05;
  font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
  margin: 32px 0 0 !important;
}

.vib-medium-rules {
  display: none !important;
}

@media (min-width: 769px) {
  #vibrationMediumView {
    padding-top: 28px !important;
  }
  .vib-flame-title {
    margin: 24px 0 0 !important;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem) !important;
  }
  .vib-flame-subtitle {
    margin-top: 10px !important;
    margin-bottom: 14px !important;
  }
}
.vib-flame-title-line {
  display: block;
}
.vib-flame-title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px auto 10px;
  color: #e4b275;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.85;
}
.vib-flame-page.is-asking .vib-flame-title-divider {
  display: none !important;
}
.vib-flame-title-divider .vib-flame-title-divider-diamond {
  font-size: 9px;
  transform: translateY(-1px);
}
.vib-flame-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-style: italic !important;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem) !important;
  color: rgba(245, 240, 225, 0.85) !important;
  letter-spacing: 0.02em !important;
  max-width: 32ch !important;
  line-height: 1.4 !important;
}

:root {
  --flame-gold:        #f4d27a;
  --flame-gold-deep:   #c79a3e;
  --flame-gold-soft:   rgba(244, 210, 122, 0.55);
  --flame-frame-bg:    rgba(5, 2, 8, 0.88);
  --flame-frame-line:  rgba(244, 210, 122, 0.42);
  --flame-frame-line-2: rgba(244, 210, 122, 0.18);
}

/* Couleurs verdict : tout en doré (la lecture vient du mot, pas de la teinte) */
.vib-flame-answer.is-yes    .vib-flame-answer-label,
.vib-flame-answer.is-no     .vib-flame-answer-label,
.vib-flame-answer.is-refuse .vib-flame-answer-label {
  color: var(--flame-gold) !important;
}

/* Le bloc verdict devient un cadre vertical plein écran TRANSPARENT
   pour laisser la bougie en fond rester visible. */
.vib-flame-answer:not(.is-hidden) {
  position: fixed !important;
  top: max(46px, env(safe-area-inset-top, 0px) + 40px) !important;
  left: 3vw !important;
  right: 3vw !important;
  bottom: 64px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 12;
  text-align: center;
  display: flex;
  align-items: stretch;
  justify-content: center;
  pointer-events: none;
}

/* Cadre principal — désormais SANS bordure (l'overlay-frame fait le job).
   Sert uniquement de container flex pour le contenu du reveal. */
.vib-flame-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 22px 22px 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
}
.vib-flame-frame::before,
.vib-flame-frame::after,
.vib-flame-frame-corners,
.vib-flame-frame-corners::before,
.vib-flame-frame-corners::after {
  display: none !important;
}

/* Cadre interne (double bordure) */
.vib-flame-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--flame-frame-line-2);
  border-radius: 3px;
  pointer-events: none;
}

/* Coins ornementés (4 SVG aux angles) */
.vib-flame-frame-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vib-flame-frame-corners::before,
.vib-flame-frame-corners::after,
.vib-flame-frame::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background-image:
    linear-gradient(var(--flame-gold), var(--flame-gold)),
    linear-gradient(var(--flame-gold), var(--flame-gold));
  background-size: 22px 1px, 1px 22px;
  background-repeat: no-repeat;
  background-position: top left, top left;
  opacity: 0.85;
}
.vib-flame-frame-corners::before { top: 4px; left: 4px; }
.vib-flame-frame-corners::after  {
  top: 4px; right: 4px;
  background-position: top right, top right;
}
.vib-flame-frame::after {
  bottom: 4px; left: 4px;
  background-position: bottom left, bottom left;
}
/* 4ème coin via une petite astuce : bordure du cadre lui-même + un span vide */
.vib-flame-frame .vib-flame-frame-divider--foot::after {
  content: "";
  position: absolute;
  bottom: -22px;
  right: -8px;
  width: 22px;
  height: 22px;
  background-image:
    linear-gradient(var(--flame-gold), var(--flame-gold)),
    linear-gradient(var(--flame-gold), var(--flame-gold));
  background-size: 22px 1px, 1px 22px;
  background-repeat: no-repeat;
  background-position: bottom right, bottom right;
  opacity: 0.85;
  pointer-events: none;
}

/* Header — bloc haut */
.vib-flame-frame-header {
  text-align: center;
  margin-bottom: 8px;
  flex: 0 0 auto;
}

/* Verdict bloc — partie haute du cadre, AU-DESSUS de la flamme */
.vib-flame-frame-verdict {
  flex: 0 0 auto;
}

/* Espace flexible qui laisse la bougie visible en fond */
.vib-flame-frame-spacer {
  flex: 1 1 auto;
  min-height: 22vh;
}

/* Phrase de clôture + médaillon = bloc bas */
#vibMediumAnswer .vib-flame-answer-line {
  flex: 0 0 auto;
}
.vib-flame-frame-medallion {
  flex: 0 0 auto;
}
.vib-flame-frame-divider--foot {
  flex: 0 0 auto;
}
.vib-flame-frame-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #e4b275;
  font-size: clamp(1.4rem, 5.2vw, 1.85rem);
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(228, 178, 117, 0.18);
}

/* Diviseur losange — ·◆· glyphes nets */
.vib-flame-frame-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 14px auto 12px;
  color: #e4b275;
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
}
.vib-flame-frame-divider .vib-flame-frame-divider-diamond {
  font-size: 9px;
  transform: translateY(-1px);
}

.vib-flame-frame-leadin {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 3.8vw, 1.45rem);
  color: #e4b275 !important;
  letter-spacing: 0.02em;
  margin-top: 12px;
  text-shadow: 0 0 12px rgba(228, 178, 117, 0.16);
}

/* Verdict + halo rayonnant */
.vib-flame-frame-verdict {
  position: relative;
  margin: 8px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(100px, 22vw, 150px);
}
.vib-flame-frame-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(244,210,122,0.22) 0%, rgba(244,210,122,0.08) 28%, transparent 60%),
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(244,210,122,0.08) 0deg 2deg,
      transparent 2deg 14deg);
  filter: blur(0.4px);
  opacity: 0.85;
  mask-image: radial-gradient(circle at center, #000 0%, #000 50%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 50%, transparent 78%);
  animation: flame-rays-pulse 4.5s ease-in-out infinite;
}

@keyframes flame-rays-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* Verdict SILENCE : plus petit pour tenir sur une ligne (7 lettres vs 3) */
#vibMediumAnswer.is-refuse .vib-flame-answer-label {
  font-size: clamp(2.8rem, 11vw, 5rem) !important;
  letter-spacing: 0.1em !important;
}

/* Verdict label : géant monochrome #e4b275 */
#vibMediumAnswer .vib-flame-answer-label {
  position: relative;
  z-index: 2;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(4.8rem, 19vw, 8.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: #e4b275 !important;
  margin: 0;
  text-shadow:
    0 0 60px rgba(228, 178, 117, 0.35),
    0 0 28px rgba(228, 178, 117, 0.45),
    0 0 12px rgba(228, 178, 117, 0.7),
    0 0 4px rgba(228, 178, 117, 0.9);
  animation: flame-verdict-in 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes flame-verdict-in {
  0%   { opacity: 0; transform: scale(0.86); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}

/* Phrase de clôture serif — monochrome #e4b275 */
#vibMediumAnswer .vib-flame-answer-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  line-height: 1.4;
  color: #e4b275 !important;
  letter-spacing: 0.02em;
  max-width: 28ch;
  margin: 0 auto 8px;
  text-shadow: 0 0 12px rgba(228, 178, 117, 0.16);
  animation: flame-fade-up 800ms 250ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes flame-fade-up {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0);   }
}

/* Médaillon flamme — image PNG (icône fournie par le designer) */
.vib-flame-frame-medallion-img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 8px auto 0;
  filter: drop-shadow(0 0 12px rgba(244, 210, 122, 0.35));
  animation: flame-fade-up 900ms 400ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  user-select: none;
  -webkit-user-drag: none;
}

.vib-flame-frame-divider--foot {
  display: none !important;
}

/* Bouton partage repositionné — hors cadre */
#vibFlameShareBtn {
  position: fixed !important;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 13;
  margin: 0 !important;
}

/* Tablette / desktop : agrandit légèrement le cadre */
@media (min-width: 769px) {
  .vib-flame-answer:not(.is-hidden) {
    width: min(90vw, 520px);
  }
  .vib-flame-frame {
    padding: 46px 34px 36px;
  }
  #vibMediumAnswer .vib-flame-answer-label {
    font-size: clamp(7rem, 14vw, 11rem);
  }
}

/* Mobile : tasser un peu */
@media (max-width: 480px) {
  .vib-flame-frame {
    padding: 30px 20px 24px;
  }
  .vib-flame-frame-verdict {
    margin: 16px 0 14px;
    min-height: clamp(110px, 32vw, 160px);
  }
  #vibMediumAnswer .vib-flame-answer-label {
    font-size: clamp(5.5rem, 26vw, 9rem);
  }
  #vibMediumAnswer .vib-flame-answer-line {
    margin-bottom: 18px;
  }
}

/* Mobile : remonter le médaillon pour respiration avec le bouton "Confier" */
@media (max-width: 768px) {
  .vib-flame-answer:not(.is-hidden) {
    bottom: 92px !important;
  }
  .vib-flame-frame-medallion-img {
    margin-top: 4px;
  }
  /* Bouton Confier compact sur mobile : single-line, padding réduit */
  #vibFlameShareBtn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    bottom: 16px !important;
  }
}



/* Disclaimer : rappel discret que le verdict est une voie parmi d autres */
.vib-flame-disclaimer {
  font-family: "Cormorant Garamond", "EB Garamond", serif;
  font-style: italic;
  font-size: 0.78em;
  color: #E8DCC4;
  opacity: 0.55;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 12px auto 8px;
  max-width: 80%;
  line-height: 1.4;
}

/* ============================================================
   ORACLE DE LA FLAMME — polish v2 — premium question display
   2026-05-17
   ============================================================ */

/* === Question répétée : présentation premium avec guillemets or === */
.vib-flame-page.is-asking .vib-flame-question-display {
  position: relative !important;
  font-size: clamp(1.3rem, 4vw, 2.1rem) !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  color: rgba(240, 217, 122, 0.95) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.45 !important;
  padding: 14px 56px !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.4) !important;
  max-width: 720px;
  margin: 0 auto;
}
.vib-flame-page.is-asking .vib-flame-question-display::before {
  content: "«";
  position: absolute;
  left: 8px;
  top: -8px;
  font-size: 2.4em;
  color: #d4af37;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  opacity: 0.85;
  font-style: normal;
}
.vib-flame-page.is-asking .vib-flame-question-display::after {
  content: "»";
  position: absolute;
  right: 8px;
  bottom: -22px;
  font-size: 2.4em;
  color: #d4af37;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1;
  opacity: 0.85;
  font-style: normal;
}

/* === Question vue par défaut (avant ask) : textarea plus élégant === */
.vib-flame-question {
  background: rgba(2, 6, 23, 0.5) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  border-radius: 12px !important;
  color: #e5e7eb !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.04em !important;
  padding: 14px 18px !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vib-flame-question:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.65) !important;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}
.vib-flame-question::placeholder {
  color: rgba(230, 210, 130, 0.4) !important;
  font-style: italic;
}

/* === Bouton Interroger : harmonisation gold gradient === */
.vib-flame-ask-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.10)) !important;
  border: 1px solid rgba(212, 175, 55, 0.65) !important;
  color: #f0d97a !important;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-size: 1rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.vib-flame-ask-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.32), rgba(212, 175, 55, 0.16)) !important;
  border-color: #d4af37 !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35) !important;
}

/* === Status sous le bouton : italic or sober === */
.vib-flame-status {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.65) !important;
  font-style: italic !important;
  letter-spacing: 0.04em !important;
}

/* === Subtitle plus précieux === */
.vib-flame-subtitle {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(230, 210, 130, 0.78) !important;
  font-style: italic !important;
  letter-spacing: 0.05em !important;
}

/* === Disclaimer sous le verdict : pareil === */
.vib-flame-disclaimer {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  color: rgba(212, 175, 55, 0.55) !important;
  font-style: italic !important;
  letter-spacing: 0.04em !important;
  font-size: 0.85rem !important;
}

/* === Badge arcanes hérite couleur globale or === */
.vib-flame-ask-btn .arcane-badge-inline {
  color: unset !important;
}

/* === Title harmonisé sur la grammaire tarot/karma/cycles === */
.vib-flame-title {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 500 !important;
  color: #d4af37 !important;
  letter-spacing: 0.14em !important;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.28) !important;
  font-size: clamp(1.6rem, 4vw, 2.2rem) !important;
  margin-top: 28px !important;
}
@media (min-width: 769px) {
  .vib-flame-title {
    font-size: clamp(2rem, 3.4vw, 2.6rem) !important;
    margin-top: 22px !important;
  }
}
.vib-flame-title-line {
  display: block;
  line-height: 1.1;
}

/* Divider sous le titre : ◆ or saturé entre traits or fins */
.vib-flame-title-divider {
  color: #d4af37 !important;
  opacity: 1 !important;
  margin: 16px auto 12px !important;
  gap: 14px !important;
  font-size: 0.7rem !important;
}
.vib-flame-title-divider .vib-flame-title-divider-diamond {
  color: #d4af37 !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
  font-size: 0.85rem !important;
}
.vib-flame-title-divider > span:not(.vib-flame-title-divider-diamond) {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
  text-indent: -9999px;
  overflow: hidden;
}

/* === Mobile : pas de fixed overlay sur la question (confusion avec la phrase verdict) === */
@media (max-width: 768px) {
  .vib-flame-page.is-asking .vib-flame-question-panel {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    margin: 18px auto !important;
  }
  .vib-flame-page.is-asking .vib-flame-question-display {
    font-size: clamp(1.1rem, 4.2vw, 1.4rem) !important;
    padding: 12px 40px !important;
    margin: 0 auto 14px !important;
  }
  .vib-flame-page.is-asking .vib-flame-question-display::before {
    font-size: 2em !important;
    top: -6px;
    left: 4px;
  }
  .vib-flame-page.is-asking .vib-flame-question-display::after {
    font-size: 2em !important;
    bottom: -14px;
    right: 4px;
  }
  /* Verdict line plus respirée */
  .vib-flame-answer-line {
    margin-top: 18px !important;
  }
}


/* ============================================================
   ORACLE FLAMME — Mobile final (clean, 2026-05-17)
   ============================================================ */

/* Compensation letter-spacing pour titre parfaitement centré */
.vib-flame-title {
  padding-left: 0.14em !important;
}

@media (max-width: 768px) {
  /* === Phase SAISIE (non is-asking) === */
  /* Bouton Interroger en sticky bottom, taille réduite */
  #vibrationMediumView .vib-flame-page:not(.is-asking) .vib-flame-ask-row {
    position: fixed !important;
    bottom: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 84% !important;
    max-width: 420px !important;
    z-index: 50 !important;
    margin: 0 !important;
  }
  #vibrationMediumView .vib-flame-page:not(.is-asking) .vib-flame-ask-btn {
    width: 100% !important;
  }
  #vibrationMediumView .vib-flame-page:not(.is-asking) {
    padding-bottom: 110px !important;
  }

  /* === Phase RÉPONSE (is-asking) === */
  /* Cache la phrase 'La flamme se replie/s'élève' et la médaille flamme du bas */
  .vib-flame-page.is-asking .vib-flame-answer-line,
  .vib-flame-page.is-asking .vib-flame-frame-medallion-img {
    display: none !important;
  }

  /* Question display : pinned en position absolue dans le viewport,
     vers le bas (zone bougie) — TOUJOURS visible, JAMAIS au-dessus du titre */
  .vib-flame-page.is-asking .vib-flame-question-panel {
    position: fixed !important;
    bottom: 110px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 600px !important;
    z-index: 20 !important;
    text-align: center !important;
    padding: 0 12px !important;
    margin: 0 !important;
    display: block !important;
  }
  .vib-flame-page.is-asking .vib-flame-question {
    display: none !important;
  }
  .vib-flame-page.is-asking .vib-flame-question-display {
    display: block !important;
    position: relative !important;
    font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif !important;
    font-style: italic !important;
    color: rgba(240, 217, 122, 0.95) !important;
    font-size: clamp(0.95rem, 3.8vw, 1.25rem) !important;
    line-height: 1.4 !important;
    letter-spacing: 0.04em !important;
    padding: 8px 40px !important;
    margin: 0 auto !important;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.4) !important;
  }
  .vib-flame-page.is-asking .vib-flame-question-display::before {
    content: "«";
    position: absolute;
    left: 4px;
    top: -8px;
    font-size: 2em;
    color: #d4af37;
    line-height: 1;
    font-style: normal;
    opacity: 0.85;
  }
  .vib-flame-page.is-asking .vib-flame-question-display::after {
    content: "»";
    position: absolute;
    right: 4px;
    bottom: -16px;
    font-size: 2em;
    color: #d4af37;
    line-height: 1;
    font-style: normal;
    opacity: 0.85;
  }

  /* Status caché en mobile asking (la question fait le job) */
  .vib-flame-page.is-asking .vib-flame-status {
    display: none !important;
  }
}

@media (max-width: 768px) {
  /* Question légèrement plus grosse */
  .vib-flame-page.is-asking .vib-flame-question-display {
    font-size: clamp(1.1rem, 4.6vw, 1.5rem) !important;
  }
  /* Disclaimer descendue dans la zone sombre pour contraste */
  .vib-flame-page.is-asking .vib-flame-disclaimer {
    margin-top: 130px !important;
    color: rgba(220, 200, 150, 0.75) !important;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.85) !important;
  }
}

@media (max-width: 768px) {
  /* Force centering uniforme sur tous les éléments de la page de saisie */
  #vibrationMediumView .astro-wrapper.vib-flame-page {
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    box-sizing: border-box;
  }
  .vib-flame-page:not(.is-asking) .vib-flame-title,
  .vib-flame-page:not(.is-asking) .vib-flame-subtitle,
  .vib-flame-page:not(.is-asking) .vib-flame-question-panel,
  .vib-flame-page:not(.is-asking) .vib-flame-title-divider {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .vib-flame-page:not(.is-asking) .vib-flame-question {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
  /* Annule la compensation letter-spacing introduite plus haut qui causait l'asymétrie */
  .vib-flame-title {
    padding-left: 0 !important;
  }

  /* Disclaimer remontée légèrement pour ne pas chevaucher Confier */
  .vib-flame-page.is-asking .vib-flame-disclaimer {
    margin-top: 90px !important;
  }
}

@media (max-width: 768px) {
  /* Réduit le letter-spacing du titre qui cause le décalage visuel à droite */
  .vib-flame-title {
    letter-spacing: 0.08em !important;
  }
  /* Compensation : padding-left = moitié letter-spacing */
  .vib-flame-title-line {
    padding-left: 0.08em !important;
  }
  /* Subtitle + textarea : letter-spacing réduit aussi */
  .vib-flame-subtitle {
    letter-spacing: 0.02em !important;
    padding-left: 0 !important;
  }
  .vib-flame-question {
    letter-spacing: 0.02em !important;
    text-align: center !important;
  }
  .vib-flame-question::placeholder {
    text-align: center !important;
  }
  /* Force la même max-width et centrage horizontal sur tous les blocs */
  #vibrationMediumView .vib-flame-title,
  #vibrationMediumView .vib-flame-title-divider,
  #vibrationMediumView .vib-flame-subtitle,
  #vibrationMediumView .vib-flame-question-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  /* FIX RACINE : le titre est un flex container, il faut le forcer en largeur 100% */
  #vibrationMediumView .vib-flame-title {
    width: 100% !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #vibrationMediumView .vib-flame-title-line {
    width: 100% !important;
    text-align: center !important;
  }
  /* Force aussi le divider et la subtitle */
  #vibrationMediumView .vib-flame-title-divider {
    width: 100% !important;
    justify-content: center !important;
  }
  #vibrationMediumView .vib-flame-subtitle {
    width: 100% !important;
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Et la question-panel + textarea (panel a max-width 500px, on s'assure qu'il est centré) */
  #vibrationMediumView .vib-flame-question-panel {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #vibrationMediumView .vib-flame-question {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  /* Annule mon override max-width:100% sur question-panel — restaure 500px centré */
  #vibrationMediumView .vib-flame-question-panel {
    max-width: 500px !important;
    width: auto !important;
    margin: 0 auto 14px !important;
  }
  /* Idem : textarea reste à 100% de sa panel (donc 500px max), centré */
  #vibrationMediumView .vib-flame-question {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    display: block !important;
  }
}

@media (max-width: 768px) {
  /* APPROCHE FLEX : tout le contenu de la page est dans un flex column centered */
  #vibrationMediumView .astro-wrapper.vib-flame-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px 16px 110px !important;
    box-sizing: border-box !important;
  }
  /* Chaque enfant prend la largeur disponible et son contenu se centre */
  #vibrationMediumView .vib-flame-page > * {
    width: 100% !important;
    max-width: 600px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-self: center !important;
  }
}

@media (max-width: 768px) {
  /* DEBUG : remet zéro padding sur .app + force viewport-centered sur tout #vibrationMediumView */
  body:has(#vibrationMediumView.active) .app {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  #vibrationMediumView {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  #vibrationMediumView .vib-flame-page {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  #vibrationMediumView .vib-flame-overlay-frame {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Cache 'Prêt' en phase saisie */
  .vib-flame-page:not(.is-asking) .vib-flame-status {
    display: none !important;
  }
  /* Remonte l'ensemble */
  #vibrationMediumView .vib-flame-page {
    padding-top: 0 !important;
    justify-content: flex-start !important;
  }
  #vibrationMediumView .vib-flame-title {
    margin-top: 8px !important;
  }
}

@media (max-width: 768px) {
  /* En phase réponse : cacher la textarea (la question-display la remplace) */
  .vib-flame-page.is-asking .vib-flame-question,
  .vib-flame-page.is-asking textarea#vibMediumQuestion {
    display: none !important;
  }
  /* Cache aussi le bouton 'Interroger' sticky bottom en phase réponse */
  .vib-flame-page.is-asking .vib-flame-ask-row {
    display: none !important;
  }
}
