/* ==========================================================================
   LES REFLETS DE SOFROLIA — DESIGN SYSTEM "APPLE-LIKE" LUXE & MINIMALISTE
   Scopé sous #oracle-app-root pour intégration propre dans WordPress
   ========================================================================== */

#oracle-app-root {
  --bg-deep: #090a0f;
  --bg-surface: #12141d;
  --glass-bg: rgba(25, 28, 40, 0.62);
  --glass-bg-elevated: rgba(34, 38, 54, 0.78);
  --glass-border: rgba(255, 255, 255, 0.11);
  --glass-border-highlight: rgba(226, 199, 146, 0.42);

  --text-primary: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.68);
  --text-muted: rgba(245, 245, 247, 0.44);

  --accent-gold: #dfC28B;
  --accent-gold-soft: rgba(223, 194, 139, 0.16);
  --accent-yin: #9cb8e8;
  --accent-yang: #e6b77e;

  --card-ratio: 2 / 3;
  --slot-card-w: clamp(104px, 24vw, 148px);
  --carousel-card-w: clamp(112px, 26vw, 152px);
  --radius-card: 14px;
  --radius-sheet: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 14px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-card-active: 0 24px 48px rgba(0, 0, 0, 0.78), 0 0 24px rgba(223, 194, 139, 0.25);

  --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-flip: cubic-bezier(0.34, 1.18, 0.64, 1);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 50% 0%, #191d2c 0%, var(--bg-deep) 68%);
  min-height: 100dvh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#oracle-app-root *,
#oracle-app-root *::before,
#oracle-app-root *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #090a0f;
}

.is-hidden {
  display: none !important;
}

/* Halo atmosphérique subtil */
.oracle-ambient-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 92vw);
  height: 340px;
  background: radial-gradient(ellipse at center, rgba(223, 194, 139, 0.11) 0%, rgba(120, 140, 210, 0.04) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}

/* ==========================================================================
   1. HEADER & BARRE DE CONTRÔLE (STYLE iOS NATIVE)
   ========================================================================== */
.oracle-header {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.oracle-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 2px;
}

.oracle-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary);
}

.oracle-controls-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.oracle-segmented-control {
  display: inline-flex;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 3px;
}

.segment-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.28s var(--ease-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.segment-btn .segment-sub {
  font-size: 0.7rem;
  opacity: 0.65;
  font-weight: 400;
  display: none;
}

@media (min-width: 540px) {
  .segment-btn .segment-sub {
    display: inline;
  }
}

.segment-btn.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.oracle-icon-btn {
  appearance: none;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.oracle-icon-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.oracle-status-banner {
  margin: 2px 0 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 400;
  min-height: 1.4em;
  transition: opacity 0.25s ease;
}

/* ==========================================================================
   2. ZONE DES EMPLACEMENTS DE TIRAGE (SLOTS & SCÈNE 3D)
   + MODE ZOOM / PLEIN ÉCRAN LORS DE LA RÉVÉLATION
   ========================================================================== */
.oracle-slots-stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px;
  margin: auto 0;
  width: 100%;
  transition: all 0.68s var(--ease-apple);
}

/* Basculement plein écran dès le clic sur "Révéler les cartes" */
.oracle-slots-stage.is-fullscreen-stage,
#oracle-app-root[data-state="REVEALING"] .oracle-slots-stage,
#oracle-app-root[data-state="REVEALED"] .oracle-slots-stage,
#oracle-app-root[data-state="READING"] .oracle-slots-stage {
  flex: 1 1 auto;
  max-width: 1420px;
  margin: 8px auto;
  padding: clamp(14px, 2.5vw, 28px) clamp(16px, 3vw, 36px);
  justify-content: flex-start;
  gap: 26px;
}

.oracle-slots-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 3.5vw, 28px);
  flex-wrap: wrap;
  width: 100%;
  transition: gap 0.68s var(--ease-apple);
}

/* Grille plein écran : occupe toute la largeur disponible */
.oracle-slots-stage.is-fullscreen-stage .oracle-slots-grid,
#oracle-app-root[data-state="REVEALING"] .oracle-slots-grid,
#oracle-app-root[data-state="REVEALED"] .oracle-slots-grid,
#oracle-app-root[data-state="READING"] .oracle-slots-grid {
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}

.oracle-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.68s var(--ease-apple);
}

/* En mode plein écran révélé, chaque slot devient une colonne de lecture spacieuse */
.oracle-slots-stage.is-fullscreen-stage .oracle-slot,
#oracle-app-root[data-state="REVEALING"] .oracle-slot,
#oracle-app-root[data-state="REVEALED"] .oracle-slot,
#oracle-app-root[data-state="READING"] .oracle-slot {
  flex: 1 1 320px;
  max-width: 430px;
  background: rgba(20, 23, 34, 0.54);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-soft);
}

/* Mode 1 carte en plein écran : mise en page panoramique (Carte grand format + Texte côte à côte sur desktop) */
@media (min-width: 820px) {
  .oracle-slots-stage.is-fullscreen-stage .oracle-slots-grid.mode-1 .oracle-slot,
  #oracle-app-root[data-state="REVEALED"] .oracle-slots-grid.mode-1 .oracle-slot,
  #oracle-app-root[data-state="READING"] .oracle-slots-grid.mode-1 .oracle-slot {
    max-width: 960px;
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
    padding: 32px;
  }

  .oracle-slots-stage.is-fullscreen-stage .oracle-slots-grid.mode-1 .slot-visual-column,
  #oracle-app-root[data-state="REVEALED"] .oracle-slots-grid.mode-1 .slot-visual-column,
  #oracle-app-root[data-state="READING"] .oracle-slots-grid.mode-1 .slot-visual-column {
    flex: 0 0 auto;
  }
}

.slot-visual-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slot-Header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.slot-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  font-weight: 500;
  transition: font-size 0.4s var(--ease-apple), color 0.4s ease;
}

.oracle-slots-stage.is-fullscreen-stage .slot-title,
#oracle-app-root[data-state="REVEALING"] .slot-title,
#oracle-app-root[data-state="REVEALED"] .slot-title {
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.18em;
}

.slot-well {
  width: var(--slot-card-w);
  aspect-ratio: var(--card-ratio);
  border-radius: var(--radius-card);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transition: width 0.68s var(--ease-apple), border-color 0.35s var(--ease-apple), box-shadow 0.45s var(--ease-apple), transform 0.55s var(--ease-apple);
}

/* AGRANDISSEMENT / ZOOM DES CARTES SÉLECTIONNÉES EN MODE PLEIN ÉCRAN */
.oracle-slots-stage.is-fullscreen-stage .slot-well,
#oracle-app-root[data-state="REVEALING"] .slot-well,
#oracle-app-root[data-state="REVEALED"] .slot-well,
#oracle-app-root[data-state="READING"] .slot-well {
  width: clamp(190px, 22vw, 255px);
  border-style: solid;
  border-color: rgba(223, 194, 139, 0.38);
  box-shadow: var(--shadow-card-active);
}

.oracle-slots-stage.is-fullscreen-stage .oracle-slots-grid.mode-1 .slot-well,
#oracle-app-root[data-state="REVEALING"] .oracle-slots-grid.mode-1 .slot-well,
#oracle-app-root[data-state="REVEALED"] .oracle-slots-grid.mode-1 .slot-well,
#oracle-app-root[data-state="READING"] .oracle-slots-grid.mode-1 .slot-well {
  width: clamp(230px, 34vw, 310px);
}

.slot-well.is-next-target {
  border-color: rgba(223, 194, 139, 0.45);
  box-shadow: inset 0 0 24px rgba(223, 194, 139, 0.06);
}

.slot-placeholder-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

/* Carte logée dans un slot (Flip 3D + Rotation d'orientation) */
.placed-card-3d {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s var(--ease-flip);
  cursor: pointer;
  border-radius: var(--radius-card);
}

/* RÈGLE STRICTE : Une fois retournée, la carte reste verrouillée sur son recto (aucun filtre 2D qui aplatit preserve-3d au survol) */
.placed-card-3d.is-flipped,
.placed-card-3d.is-flipped:hover {
  transform: rotateY(180deg) !important;
  filter: none !important;
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #141722;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.card-face-back {
  transform: rotateY(0deg);
}

/* Verrouillage absolu : dès que la carte est révélée (.is-flipped), le verso est masqué et ne peut jamais réapparaître au survol */
.placed-card-3d.is-flipped .card-face-back,
.placed-card-3d.is-flipped:hover .card-face-back {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.placed-card-3d.is-flipped .card-face-front,
.placed-card-3d.is-flipped:hover .card-face-front {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Le conteneur du verso tourne par incréments de 180° en phase ORIENTING */
.card-back-rotator {
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease-apple);
}

.card-face-front {
  transform: rotateY(180deg);
  border: 1px solid rgba(223, 194, 139, 0.35);
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* RÈGLE CRITIQUE : Orientation Yin / Yang gérée uniquement via CSS rotate(180deg) */
.card-recto-img.is-rotated-180,
.reading-recto-img.is-rotated-180 {
  transform: rotate(180deg);
}

/* Badge d'action sous le slot (ex. Pivoter 180° ou nom révélé) */
.slot-footer-caption {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-rotate-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.slot-rotate-btn:hover {
  background: rgba(223, 194, 139, 0.18);
  border-color: var(--glass-border-highlight);
}

.slot-revealed-caption {
  text-align: center;
  line-height: 1.25;
}

.slot-revealed-name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slot-revealed-polarity {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
}

/* Panneau de lecture intégré directement dans chaque slot en mode Plein Écran */
.slot-expanded-details {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  padding-top: 14px;
  padding-inline: 20px; /* Marges latérales de sécurité mobile-first */
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  animation: fadeExpandDetails 0.55s var(--ease-apple) forwards;
}

@keyframes fadeExpandDetails {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slot-detail-interp {
  font-size: 0.94rem;
  line-height: 1.66;
  color: var(--text-secondary);
  margin: 0;
}

.slot-detail-rituel {
  background: rgba(223, 194, 139, 0.07);
  border: 1px solid rgba(223, 194, 139, 0.22);
  border-radius: 16px;
  padding: 18px 16px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

/* Titre du Rituel en haut, strictement séparé de la zone de superposition */
.slot-detail-rituel > strong,
.rituel-section-title {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent-gold);
  margin: 0 0 16px;
  line-height: 1.35;
}

/* ==========================================================================
   MODE RÉDUIT EN HAUT DE L'ÉCRAN LORS DU TIRAGE DE LA CARTE D'ÉCLAIRAGE
   Les 3 cartes principales se réduisent et s'alignent côte à côte tout en haut
   (visuels uniquement, aucun texte explicatif visible)
   ========================================================================== */
#oracle-app-root.is-complement-workflow .oracle-header {
  gap: 6px;
  padding-bottom: 4px;
}

#oracle-app-root.is-complement-workflow .oracle-eyebrow {
  display: none;
}

#oracle-app-root.is-complement-workflow .oracle-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.oracle-slots-grid.is-compact-top-row {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: clamp(10px, 2.2vw, 20px) !important;
  padding: 6px 12px;
  margin: 0 auto;
  width: auto;
  background: rgba(18, 21, 32, 0.55);
  border: 1px solid rgba(223, 194, 139, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.oracle-slots-grid.is-compact-top-row .oracle-slot {
  flex: 0 0 auto !important;
  max-width: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* Masquage strict de tous les textes et légendes des cartes principales réduites */
.oracle-slots-grid.is-compact-top-row .slot-Header,
.oracle-slots-grid.is-compact-top-row .slot-footer-caption,
.oracle-slots-grid.is-compact-top-row .slot-expanded-details {
  display: none !important;
}

/* Réduction de la taille des 3 visuels principaux en haut de l'écran */
.oracle-slots-grid.is-compact-top-row .slot-well {
  width: clamp(64px, 11vw, 90px) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55) !important;
}

.oracle-slots-grid.is-compact-top-row .card-face {
  border-radius: 10px !important;
}

/* Zone dédiée à la Carte d'Éclairage juste en dessous des cartes principales réduites */
.oracle-complement-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  animation: fadeExpandDetails 0.5s var(--ease-apple) forwards;
}

.oracle-complement-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Quand la carte d'éclairage est révélée en mode plein écran sous la barre des 3 cartes */
.oracle-slots-stage.is-fullscreen-stage .oracle-complement-container .oracle-slot {
  max-width: 780px;
  width: 100%;
}

@media (min-width: 760px) {
  .oracle-slots-stage.is-fullscreen-stage .oracle-complement-container .oracle-slot {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 26px;
  }
}

/* Bloc d'actions unique sous la carte (espacé avec gap: 12px, largeur 100% max 360px centré) */
.oracle-stage-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-inline: 16px;
  justify-content: center;
  align-items: stretch;
  min-height: 48px;
}

.oracle-stage-actions .oracle-pill-btn {
  width: 100%;
}

.oracle-pill-btn {
  appearance: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 11px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s var(--ease-apple);
  letter-spacing: 0.01em;
}

.oracle-btn-primary {
  background: linear-gradient(135deg, #e7cea0 0%, #c8a468 100%);
  color: #0b0c12;
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(200, 164, 104, 0.32);
}

.oracle-btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 34px rgba(200, 164, 104, 0.45);
}

/* MISE EN ÉVIDENCE VISUELLE DU BOUTON « TIRER UNE CARTE D'ÉCLAIRAGE » */
@keyframes complementCtaPulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(235, 199, 132, 0.45),
      0 12px 32px rgba(212, 169, 94, 0.42),
      inset 0 1px 1px rgba(255, 255, 255, 0.65);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(235, 199, 132, 0),
      0 16px 40px rgba(235, 199, 132, 0.65),
      inset 0 1px 2px rgba(255, 255, 255, 0.85);
  }
}

.oracle-btn-complement-cta {
  background: linear-gradient(135deg, #f7e4bc 0%, #DFB66C 48%, #c29142 100%);
  color: #090a0f;
  border: 1px solid rgba(255, 246, 224, 0.75);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 13px 28px;
  letter-spacing: 0.02em;
  animation: complementCtaPulse 2.6s infinite var(--ease-apple);
}

.oracle-btn-complement-cta:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06);
}

.complement-cta-sparkle {
  font-size: 1.05rem;
  line-height: 1;
}

.oracle-btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.oracle-btn-secondary:hover:not(:disabled) {
  border-color: var(--glass-border-highlight);
  background: rgba(255, 255, 255, 0.1);
}

.oracle-btn-secondary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.oracle-btn-glass {
  background: rgba(223, 194, 139, 0.1);
  border: 1px solid rgba(223, 194, 139, 0.35);
  color: var(--accent-gold);
  backdrop-filter: blur(16px);
}

.oracle-btn-glass:hover {
  background: rgba(223, 194, 139, 0.2);
}

/* ==========================================================================
   3. CARROUSEL PHYSIQUE DES CARTES ÉTALÉES (INERTIE & SCROLL SNAP)
   + DISPARITION FLUIDE LORS DE LA RÉVÉLATION
   ========================================================================== */
.oracle-carousel-section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 420px;
  opacity: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition:
    max-height 0.68s var(--ease-apple),
    opacity 0.52s var(--ease-apple),
    transform 0.62s var(--ease-apple),
    margin 0.68s var(--ease-apple),
    padding 0.68s var(--ease-apple);
}

/* En phase d'orientation (avant clic sur "Révéler les cartes"), le carrousel est estompé */
#oracle-app-root[data-state="ORIENTING"] .oracle-carousel-section {
  opacity: 0.3;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
}

/* Disparition fluide complète du carrousel au clic sur "Révéler les cartes" */
.oracle-carousel-section.is-carousel-hidden,
#oracle-app-root[data-state="REVEALING"] .oracle-carousel-section,
#oracle-app-root[data-state="REVEALED"] .oracle-carousel-section,
#oracle-app-root[data-state="READING"] .oracle-carousel-section {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(48px) scale(0.94);
  margin: 0;
  padding: 0;
}

.carousel-Viewport {
  width: 100%;
  position: relative;
  perspective: 1200px;
  /* Masque de fondu latéral luxueux */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.oracle-carousel-track {
  display: flex;
  align-items: center;
  gap: 0; /* Aucun espacement : les cartes se chevauchent en éventail */
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 52px calc(50vw - (var(--carousel-card-w) / 2)) 64px;
  scrollbar-width: none;
  cursor: grab;
  transform-style: preserve-3d;
}

.oracle-carousel-track:active {
  cursor: grabbing;
}

.oracle-carousel-track::-webkit-scrollbar {
  display: none;
}

/* Carte individuelle dans le carrousel en arc de cercle avec chevauchement */
.carousel-card-item {
  flex: 0 0 var(--carousel-card-w);
  aspect-ratio: var(--card-ratio);
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius-card);
  /* Point de pivot bas pour former un éventail naturel tenu en main */
  transform-origin: 50% 135%;
  transition:
    transform 0.34s var(--ease-apple),
    box-shadow 0.34s var(--ease-apple),
    opacity 0.3s ease,
    outline-color 0.25s ease;
  cursor: pointer;
  box-shadow: -6px 12px 26px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: #141722;
  overflow: hidden;
  will-change: transform, z-index;
}

/* Chevauchement partiel réaliste (effet paquet / éventail compact) */
.carousel-card-item:not(:first-child) {
  margin-left: calc(var(--carousel-card-w) * -0.46);
}

/* Focus central : premier plan absolu, surélevé et zoomé au sommet de l'arc */
.carousel-card-item.is-centered {
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(223, 194, 139, 0.32);
  outline: 1.5px solid rgba(223, 194, 139, 0.72);
}

.carousel-card-item.is-Picked {
  opacity: 0 !important;
  transform: scale(0.4) translateY(-60px) !important;
  pointer-events: none;
}

.carousel-card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Badge discret "Toucher pour choisir" sur la carte centrée */
.carousel-card-item::after {
  content: "Choisir";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 12, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 194, 139, 0.45);
  color: var(--accent-gold);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transition: all 0.25s var(--ease-apple);
  pointer-events: none;
}

.carousel-card-item.is-centered::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Animation de brassage du carrousel */
@keyframes deckShufflePulse {
  0% { transform: scale(0.88) translateY(8px) rotate(0deg); }
  35% { transform: scale(0.82) translateY(-12px) rotate(-3deg); opacity: 0.45; }
  70% { transform: scale(0.92) translateY(4px) rotate(2deg); opacity: 0.85; }
  100% { transform: scale(0.88) translateY(8px) rotate(0deg); }
}

.oracle-carousel-track.is-shuffling .carousel-card-item {
  animation: deckShufflePulse 0.55s var(--ease-apple);
}

.carousel-footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 20px;
  text-align: center;
}

.carousel-counter {
  font-size: 0.76rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.carousel-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Clone volant lors de la transition du carrousel vers le slot (FLIP Animation) */
.flying-card-clone {
  position: fixed;
  z-index: 9999;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card-active);
  pointer-events: none;
  transition: transform 0.62s var(--ease-apple), width 0.62s var(--ease-apple), height 0.62s var(--ease-apple);
}

.flying-card-clone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   4. PANNEAU DE LECTURE GLASSMORPHISM (MODAL / SHEET iOS)
   ========================================================================== */
.oracle-reading-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 5, 10, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px 0;
  animation: fadeBackdrop 0.32s var(--ease-apple);
}

@media (min-width: 768px) {
  .oracle-reading-backdrop {
    align-items: center;
    padding: 24px;
  }
}

@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.oracle-reading-sheet {
  width: min(880px, 100%);
  max-height: 88dvh;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpSheet 0.42s var(--ease-apple);
}

@media (min-width: 768px) {
  .oracle-reading-sheet {
    border-radius: var(--radius-sheet);
    max-height: 84dvh;
  }
}

@keyframes slideUpSheet {
  from { transform: translateY(48px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.sheet-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  gap: 12px;
}

.sheet-grabber {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}

.sheet-nav-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sheet-tab-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-tab-btn.is-active {
  background: var(--accent-gold-soft);
  border-color: var(--glass-border-highlight);
  color: var(--accent-gold);
}

.sheet-close-btn {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.sheet-content-scroll {
  overflow-y: auto;
  padding: clamp(18px, 3vw, 30px);
  -webkit-overflow-scrolling: touch;
}

.reading-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 680px) {
  .reading-layout {
    grid-template-columns: 210px 1fr;
    gap: 30px;
  }
}

.reading-card-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.reading-card-frame {
  width: min(190px, 52vw);
  aspect-ratio: var(--card-ratio);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card-active);
  border: 1px solid var(--glass-border-highlight);
  background: #141722;
}

.reading-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-apple);
}

.reading-polarity-pill {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: rgba(223, 194, 139, 0.12);
  border: 1px solid rgba(223, 194, 139, 0.35);
  color: var(--accent-gold);
  font-weight: 500;
}

.reading-text-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reading-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.reading-slot-tag {
  color: var(--accent-gold);
  font-weight: 600;
}

.reading-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.reading-subtitle {
  margin: -6px 0 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.reading-glass-block {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
}

.reading-block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin: 0 0 8px;
  font-weight: 600;
}

.reading-essence-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}

.reading-body-text {
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin: 0;
}

.reading-position-text {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-primary);
}

.rituel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.rituel-header .reading-block-label {
  margin: 0;
}

.rituel-icon {
  color: var(--accent-gold);
  font-size: 0.9rem;
}

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

.inverse-title {
  margin: 2px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.oracle-chip-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.74rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.oracle-chip-btn:hover {
  border-color: var(--glass-border-highlight);
  color: var(--accent-gold);
}

.other-polarity-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   5. MONÉTISATION LÉGÈRE V1 : TOAST, CADENAS, CAPTURE D'EMAIL & PAYWALL
   ========================================================================== */

/* Notification discrète de confirmation ("Accès illimité débloqué") */
.oracle-toast {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2500;
  background: rgba(20, 24, 36, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 194, 139, 0.55);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(223, 194, 139, 0.22);
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: toastSlideIn 0.4s var(--ease-apple) forwards;
}

.toast-icon {
  color: var(--accent-gold);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Icône de cadenas sur les modes verrouillés (3 Cartes & Carte d'éclairage) */
.lock-icon {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.9;
  display: inline-block;
}

/* Masquage automatique des cadenas dès que l'application est débloquée */
#oracle-app-root[data-unlocked="true"] .lock-icon {
  display: none !important;
}

/* ==========================================================================
   TEASING VISUEL DE LA SECTION RITUEL (Aperçu flouté quand oracle_has_email = false)
   ========================================================================== */
.rituel-teaser-zone {
  position: relative;
  width: 100%;
  border-radius: 12px;
}

.rituel-teaser-zone.is-locked {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: hidden;
}

.rituel-blurred-rest {
  font-size: 0.87rem;
  line-height: 1.62;
  color: var(--text-secondary);
  filter: blur(0px);
  -webkit-filter: blur(0px);
  opacity: 1;
  transition: filter 0.4s ease, -webkit-filter 0.4s ease, opacity 0.4s ease;
}

/* État verrouillé : 100 % du corps du rituel dans le DOM avec flou CSS 6px + fondu d'opacité vers le bas */
.rituel-blurred-rest.is-blurred {
  position: absolute;
  inset: 0;
  z-index: 1;
  filter: blur(6px);
  -webkit-filter: blur(6px);
  user-select: none;
  pointer-events: none;
  padding: 14px 12px 24px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.14) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.14) 100%
  );
}

/* Encart de capture d'email superposé au centre de la zone floutée du Rituel (dans le flux flex centré) */
.rituel-email-overlay {
  position: relative;
  z-index: 5;
  width: 100%;
  background: rgba(14, 17, 27, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(223, 194, 139, 0.36);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rituel-email-overlay.is-unlocking {
  opacity: 0;
  pointer-events: none;
}

/* Brève animation de mise en évidence sur la bordure de l'encart Rituel */
@keyframes rituelOverlayHighlight {
  0%, 100% {
    border-color: rgba(223, 194, 139, 0.36);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  }
  30%, 70% {
    border-color: #f3d79b;
    box-shadow:
      0 0 0 3px rgba(223, 194, 139, 0.35),
      0 0 28px rgba(223, 194, 139, 0.65),
      0 14px 34px rgba(0, 0, 0, 0.55);
  }
}

.rituel-email-overlay.is-highlighted-pulse {
  animation: rituelOverlayHighlight 1.4s var(--ease-apple);
}

.email-gate-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.email-gate-title-line1 {
  display: block;
  color: var(--text-primary);
}

.email-gate-title-line2 {
  display: block;
  font-size: 0.92em;
  color: var(--accent-gold);
}

.email-gate-subtitle {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 16px;
  max-width: 390px;
}

.email-gate-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 520px) {
  .email-gate-form {
    flex-direction: row;
    align-items: center;
  }

  .email-gate-form .email-gate-submit-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.oracle-glass-input {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.oracle-glass-input::placeholder {
  color: var(--text-muted);
}

.oracle-glass-input:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(223, 194, 139, 0.16);
}

.email-gate-submit-btn {
  width: 100%;
  justify-content: center;
}

.email-gate-feedback {
  margin: 0;
  font-size: 0.76rem;
  color: #f28b82;
}

/* Mention discrète du Mode Découverte (12 cartes duales fondamentales) */
.free-mode-deck-notice {
  margin: -6px 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-align: center;
}

#oracle-app-root[data-unlocked="true"] .free-mode-deck-notice {
  display: none !important;
}

/* Encart Quota Quotidien (2e tirage offert via Email OU Bonus Partage + Pass Fondateur) */
.oracle-quota-gate {
  width: min(540px, 94vw);
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(223, 194, 139, 0.38);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin: 6px auto 0;
  animation: fadeExpandDetails 0.45s var(--ease-apple) forwards;
}

.quota-gate-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.quota-gate-text {
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--text-secondary);
  margin: 0;
}

.quota-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.quota-gate-actions .oracle-pill-btn {
  width: 100%;
  justify-content: center;
}

/* Modale de Vente ("Pass Fondateur — Édition Illimitée") */
.oracle-paywall-backdrop {
  align-items: center;
  padding: 20px;
  z-index: 1500;
}

.oracle-paywall-dialog {
  width: min(510px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(223, 194, 139, 0.38);
  border-radius: 26px;
  padding: clamp(22px, 3.8vw, 34px);
  box-shadow: var(--shadow-card-active);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: slideUpSheet 0.38s var(--ease-apple);
}

.paywall-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.paywall-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(223, 194, 139, 0.14);
  border: 1px solid rgba(223, 194, 139, 0.42);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.paywall-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.paywall-title-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.15rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.paywall-title-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-gold);
  line-height: 1.2;
}

.paywall-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: -2px 0 4px;
}

.paywall-price-line {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  color: var(--accent-gold);
  font-weight: 600;
}

.paywall-old-price {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.88rem;
}

.paywall-guarantee-line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 400px;
}

.paywall-benefits-list {
  list-style: none;
  padding: 14px 18px;
  margin: 2px 0 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.paywall-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--text-secondary);
}

.paywall-benefits-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.benefit-check {
  color: var(--accent-gold);
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}

.paywall-main-cta {
  width: 100%;
  text-decoration: none;
  padding: 13px 24px;
  font-size: 0.92rem;
}

.paywall-code-section {
  width: 100%;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.paywall-code-link {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.paywall-code-link:hover {
  color: var(--accent-gold);
}

.paywall-code-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.paywall-code-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.paywall-code-submit {
  flex: 0 0 auto;
  padding: 10px 18px;
}

.paywall-code-error {
  margin: 0;
  font-size: 0.76rem;
  color: #f28b82;
}

/* ==========================================================================
   6. PARTAGE SOCIAL AU FORMAT STORY 9:16 (1080x1920px)
   ========================================================================== */

/* Bouton élégant et discret "Partager ma carte (Story)" */
.oracle-btn-share {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(223, 194, 139, 0.28);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 11px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s var(--ease-apple);
}

.oracle-btn-share:hover:not(:disabled) {
  background: rgba(223, 194, 139, 0.14);
  border-color: var(--glass-border-highlight);
  color: var(--accent-gold);
  transform: translateY(-1px);
}

.oracle-btn-share:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Mise en évidence subtile tant que le bonus "+1 tirage offert" du jour n'est pas utilisé */
.oracle-btn-share.is-bonus-highlight {
  border-color: rgba(223, 194, 139, 0.75);
  color: var(--accent-gold);
  background: rgba(223, 194, 139, 0.08);
  box-shadow: 0 0 0 1px rgba(223, 194, 139, 0.18), 0 0 18px rgba(223, 194, 139, 0.18);
}

/* Modale compacte "Limite quotidienne atteinte" */
.oracle-quota-dialog {
  width: min(380px, 100%);
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(223, 194, 139, 0.38);
  border-radius: 22px;
  padding: 28px 20px 22px;
  box-shadow: var(--shadow-card-active);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  animation: slideUpSheet 0.32s var(--ease-apple);
}

.quota-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  padding-inline: 28px;
}

.quota-modal-text {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.quota-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.quota-modal-actions .oracle-pill-btn {
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   MODE VIRAL "OFFRIR UN TIRAGE À UN PROCHE" (?gift=)
   ========================================================================== */

/* Bouton pilule élégant "✦ Tirer une carte pour un proche" */
.oracle-gift-pill-btn {
  appearance: none;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  color: #e5c98b;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  transition: all 0.28s var(--ease-apple);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.oracle-gift-pill-btn:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.65);
  color: #fff2c4;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42), 0 0 16px rgba(212, 175, 55, 0.22);
}

.oracle-gift-pill-btn:active {
  transform: translateY(0);
}

.gift-pill-icon {
  color: var(--accent-gold);
  font-size: 0.92rem;
  line-height: 1;
}

.oracle-gift-pill-btn.is-hidden {
  display: none !important;
}

/* Espacement spécifique sous le slider d'accueil */
.carousel-footer-meta .oracle-gift-pill-btn {
  margin-top: 14px;
}

/* Modale Expéditeur avec Slider Circulaire 100% Face Cachée */
.oracle-gift-backdrop {
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1550;
}

.oracle-gift-dialog {
  width: min(600px, 100%);
  max-height: 94dvh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--glass-bg-elevated);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(223, 194, 139, 0.38);
  border-radius: 24px;
  padding: 28px 14px 24px;
  box-shadow: var(--shadow-card-active);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: slideUpSheet 0.32s var(--ease-apple);
}

.gift-header-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-inline: 18px;
}

.gift-modal-instructions {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 3.4vw, 1.25rem);
  font-style: italic;
  color: var(--accent-gold);
  line-height: 1.35;
  margin: 0;
  max-width: 440px;
}

/* Alerte limite d'envoi quotidien atteinte */
.gift-quota-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 16px 12px;
  width: 100%;
  max-width: 380px;
  animation: fadeIn 0.3s ease;
}

.gift-quota-notice.is-hidden {
  display: none;
}

.gift-quota-notice-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--accent-gold);
  margin: 0;
}

.gift-quota-notice .oracle-pill-btn {
  width: 100%;
  justify-content: center;
}

.gift-slider-zone {
  width: 100%;
  position: relative;
  margin: 2px 0 6px;
}

.gift-carousel-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.gift-carousel-track {
  padding: 44px calc(50% - (var(--carousel-card-w) / 2)) 52px;
}

.gift-carousel-hint {
  display: block;
  margin-top: -2px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Carte choisie dans le slider cadeau : halo doré intense et légère surélévation, toujours 100% face cachée */
.carousel-card-item.is-gift-selected {
  outline: 2px solid var(--accent-gold);
  box-shadow:
    0 0 0 3px rgba(223, 194, 139, 0.45),
    0 0 36px rgba(223, 194, 139, 0.8),
    0 28px 56px rgba(0, 0, 0, 0.9) !important;
  transform: translateY(-24px) rotate(0deg) scale(1.15) !important;
  z-index: 350 !important;
  opacity: 1 !important;
}

/* Panneau d'action après sélection */
.gift-action-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  animation: fadeIn 0.3s ease;
  margin-top: 4px;
}

.gift-action-panel.is-hidden {
  display: none;
}

.gift-action-panel .oracle-pill-btn {
  width: 100%;
  justify-content: center;
}

/* Zone lien direct avec bouton Copier le lien */
.gift-direct-link-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

@media (min-width: 480px) {
  .gift-direct-link-box {
    flex-direction: row;
    align-items: center;
  }
}

.gift-url-input {
  flex: 1;
  font-size: 0.8rem;
  padding: 10px 14px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  text-overflow: ellipsis;
  user-select: all;
  -webkit-user-select: all;
}

.gift-url-input:focus {
  background: rgba(0, 0, 0, 0.55);
}

.gift-copy-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 0.82rem;
  width: auto !important;
}

.gift-reselect-link {
  appearance: none;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(223, 194, 139, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.gift-reselect-link:hover {
  color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
}

.gift-feedback {
  margin: 4px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--accent-gold);
  word-break: break-word;
  user-select: all;
}

/* Côté destinataire : accueil standard masqué, carte offerte centrée */
.oracle-app.is-gift-mode .oracle-controls-bar,
.oracle-app.is-gift-mode .free-mode-deck-notice,
.oracle-app.is-gift-mode .oracle-quota-gate {
  display: none !important;
}

.oracle-gift-message {
  max-width: 340px;
  margin: 0 auto 18px;
  padding-inline: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--text-primary);
}

.oracle-app.is-gift-mode[data-state="GIFT_PENDING"] .placed-card-3d {
  cursor: pointer;
  animation: giftCardInvite 2.4s ease-in-out infinite;
}

@keyframes giftCardInvite {
  0%, 100% { box-shadow: 0 0 0 rgba(223, 194, 139, 0); }
  50% { box-shadow: 0 0 32px rgba(223, 194, 139, 0.45); }
}

.oracle-gift-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  margin: 20px auto 0;
  padding-inline: 16px;
}

.oracle-gift-cta.is-hidden {
  display: none;
}

.oracle-gift-cta .oracle-pill-btn {
  width: 100%;
  justify-content: center;
}

/* Conteneur HTML dédié hors écran (1080x1920px) pour html2canvas */
.oracle-story-template {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1080px;
  height: 1920px;
  z-index: -1;
  background: radial-gradient(circle at 50% 18%, #1e2336 0%, #0b0d14 62%, #07080d 100%);
  color: #f5f5f7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 150px 84px 0;
  box-sizing: border-box;
  overflow: hidden;
}

.story-ambient-glow {
  position: absolute;
  top: 220px;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 194, 139, 0.16) 0%, rgba(223, 194, 139, 0.03) 52%, transparent 72%);
  pointer-events: none;
}

/* En-tête Story (padding haut généreux) */
.story-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.story-eyebrow {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #dfc28b;
}

.story-divider {
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(223, 194, 139, 0.7), transparent);
}

/* Corps central : Carte .webp nette + Titre + 2 premières phrases (max 160 car.) */
.story-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  width: 100%;
  margin: auto 0;
}

.story-card-frame {
  width: 560px;
  height: 840px;
  border-radius: 36px;
  overflow: hidden;
  background: #141722;
  border: 2px solid rgba(223, 194, 139, 0.48);
  box-shadow:
    0 38px 86px rgba(0, 0, 0, 0.82),
    0 0 42px rgba(223, 194, 139, 0.22);
}

.story-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-card-img.is-rotated-180 {
  transform: rotate(180deg);
}

.story-text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 880px;
}

.story-polarity-tag {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dfc28b;
  background: rgba(223, 194, 139, 0.12);
  border: 1px solid rgba(223, 194, 139, 0.35);
  border-radius: 999px;
  padding: 8px 26px;
}

.story-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 76px;
  font-weight: 600;
  line-height: 1.08;
  color: #f5f5f7;
  margin: 0;
}

.story-card-excerpt {
  font-size: 31px;
  font-weight: 300;
  line-height: 1.52;
  color: rgba(245, 245, 247, 0.84);
  margin: 4px 0 0;
  max-width: 850px;
}

/* Pied de page Story avec marge basse de sécurité de 160px */
.story-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 160px;
  text-align: center;
}

.story-footer-cta {
  font-size: 24px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.64);
  margin: 0;
  letter-spacing: 0.02em;
}

.story-domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(223, 194, 139, 0.14);
  border: 1.5px solid rgba(223, 194, 139, 0.5);
  border-radius: 999px;
  padding: 12px 34px;
  font-size: 28px;
  color: #dfc28b;
  letter-spacing: 0.04em;
}

.story-domain-pill strong {
  font-weight: 600;
  color: #f5f5f7;
}

/* ==========================================================================
   OPTIMISATIONS MOBILE-FIRST (max-width: 600px) : ÉCRAN D'ACCUEIL SANS SCROLL
   ========================================================================== */
@media (max-width: 600px) {
  #oracle-app-root {
    --slot-card-w: clamp(94px, 22vw, 108px);
    --carousel-card-w: clamp(100px, 25vw, 116px);
    min-height: 100dvh;
    padding: clamp(8px, 1.6vh, 12px) 0 clamp(8px, 1.8vh, 14px);
  }

  /* Flux compact de haut en bas sur l'écran d'accueil sans grands vides auto */
  #oracle-app-root:not([data-state="REVEALED"]):not([data-state="READING"]):not([data-state="REVEALING"]) {
    justify-content: flex-start;
    gap: 4px;
  }

  /* 1. COMPACTAGE DE LA ZONE SUPÉRIEURE (~40px gagnés en haut de l'écran) */
  .oracle-header {
    gap: 6px;
    padding: 0 16px;
  }

  .oracle-eyebrow {
    font-size: 0.64rem;
    margin-bottom: 0;
    letter-spacing: 0.16em;
  }

  .oracle-title {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .oracle-controls-bar {
    gap: 6px;
  }

  .segment-btn {
    padding: 5px 12px;
    font-size: 0.74rem;
  }

  .oracle-icon-btn {
    padding: 5px 11px;
    font-size: 0.74rem;
  }

  .oracle-status-banner {
    margin: 0;
    font-size: 0.78rem;
    min-height: 1.2em;
    line-height: 1.25;
  }

  /* 2. RÉDUCTION DU VIDE CENTRAL (ESPACE 16px À 24px ENTRE SLOTS ET SLIDER) */
  #oracle-app-root:not([data-state="REVEALED"]):not([data-state="READING"]):not([data-state="REVEALING"]) .oracle-slots-stage:not(.is-fullscreen-stage) {
    margin: 0;
    padding: 2px 16px 0;
    gap: 6px;
  }

  .oracle-slot {
    gap: 4px;
  }

  .slot-visual-column {
    gap: 4px;
  }

  .slot-title {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .oracle-stage-actions {
    min-height: unset;
    gap: 6px;
    margin: 0 auto;
    padding-inline: 12px;
  }

  .oracle-stage-actions .oracle-pill-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  .free-mode-deck-notice {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  /* 3. COMPACTAGE DU SLIDER & DU BAS DE L'ÉCRAN (CARTE CENTRALE 100% VISIBLE, AUCUN ROGNAGE) */
  .oracle-carousel-section:not(.is-carousel-hidden) {
    margin-top: -8px;
    gap: 3px;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /*.oracle-carousel-track {
    padding-top: 34px;
    padding-bottom: 18px;
  }*/

  .carousel-footer-meta {
    gap: 1px;
    padding: 0 16px;
  }

  .carousel-counter {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .carousel-hint {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .carousel-footer-meta .oracle-gift-pill-btn {
    margin-top: 4px;
    padding: 8px 18px;
    font-size: 0.8rem;
  }
}

/* Accessibilité : Réduction des mouvements (Règle section 9 & 12 du cahier des charges) */
@media (prefers-reduced-motion: reduce) {
  #oracle-app-root *,
  #oracle-app-root *::before,
  #oracle-app-root *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.05ms !important;
    scroll-behavior: auto !important;
  }
}
