/* Simulae · consultation par chat (variante A), /consultation/.
 * Porté de assets/css/voyance/voyance-chat.css (plugin psality). Différences :
 *  - couleurs : les --vc-* du plugin (une palette par voyant) sont ramenées sur les jetons de site.css (nuit, pierre,
 *    laiton), les mêmes pour les six voyants et pour la variante B : le test A/B mesure le format, pas la couleur ;
 *    chaque voyant garde son motif de fond, en laiton ;
 *  - plus de correctifs pour Divi ni pour la barre d'admin WordPress ;
 *  - ajouts : boutons de sujet, aperçu de la lecture (texte en partie flouté), mention IA, logo dans l'en-tête.
 * Chargé après site.css (polices, jetons sur :root, bandeau cookies). */

body.vc-page { margin: 0; background: var(--nuit); }

.vc-app {
  --vc-serif: var(--serif);
  --vc-sans: var(--sans);
  --vc-bg: var(--pierre);
  --vc-head: var(--nuit);
  --vc-acc: var(--laiton);
  --vc-accTx: var(--encre);
  --vc-accTexte: #7A5C24;            /* laiton foncé pour du texte sur fond clair (contraste AA) */
  --vc-uBg: var(--nuit);
  --vc-uTx: var(--clair);
  --vc-cBg: #FFFDF9;
  --vc-cTx: var(--encre);
  --vc-mut: var(--gris);
  --vc-line: #DDD3C6;
  --vc-dock: var(--carte);
  --vc-chip: #F6F1EA;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--nuit);
  color: var(--vc-cTx);
  font-family: var(--vc-sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.vc-app *, .vc-app *::before, .vc-app *::after { box-sizing: border-box; }
.vc-app :where(p, ul, li, h2, strong, span, button, input, textarea) { margin: 0; padding: 0; }
.vc-app :where(ul) { list-style: none; }
.vc-app :where(button, input, textarea) { font: inherit; color: inherit; }
.vc-app svg { display: block; }
.vc-app :focus-visible { outline: 3px solid var(--vc-acc); outline-offset: 2px; }
.vc-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Motifs par voyant, en laiton */
.vc--aelis .vc-fil { background-image: linear-gradient(45deg, rgba(200, 161, 90, .07) 25%, transparent 25%, transparent 75%, rgba(200, 161, 90, .07) 75%), linear-gradient(45deg, rgba(200, 161, 90, .07) 25%, transparent 25%, transparent 75%, rgba(200, 161, 90, .07) 75%); background-size: 22px 22px; background-position: 0 0, 11px 11px; }
.vc--orsan .vc-fil { background-image: linear-gradient(rgba(200, 161, 90, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 161, 90, .1) 1px, transparent 1px); background-size: 24px 24px; }
.vc--selena .vc-fil { background-image: radial-gradient(circle at 3px 3px, rgba(200, 161, 90, .3) 1px, transparent 1.5px), radial-gradient(circle at 17px 21px, rgba(200, 161, 90, .2) 1px, transparent 1.5px); background-size: 28px 28px; }
.vc--mael .vc-fil { background-image: radial-gradient(circle at 50% 50%, rgba(200, 161, 90, .18) 1.5px, transparent 2px); background-size: 20px 20px; }
.vc--iris .vc-fil { background-image: repeating-linear-gradient(135deg, rgba(200, 161, 90, .1) 0 1px, transparent 1px 14px); }
.vc--nox .vc-fil { background-image: radial-gradient(circle at 12px 18px, rgba(28, 43, 42, .22) .8px, transparent 1.2px), radial-gradient(circle at 44px 50px, rgba(28, 43, 42, .14) .7px, transparent 1.1px), radial-gradient(circle at 70px 12px, rgba(28, 43, 42, .18) .9px, transparent 1.3px); background-size: 90px 70px; }

/* Cadre : colonne centrée en ordinateur */
.vc-cadre {
  height: 100%;
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: var(--vc-bg);
  box-shadow: 0 0 0 1px rgba(200, 161, 90, .25), 0 0 80px rgba(0, 0, 0, .35);
}

/* En-tête */
.vc-tete { flex: none; background: var(--vc-head); color: var(--clair); padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.vc-tete__ligne { display: flex; align-items: center; gap: 10px; }
.vc-retour { flex: none; width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; color: inherit; border-radius: 8px; }
.vc-tete__avatar { flex: none; width: 42px; }
.vc-tete__avatar:empty { display: none; }
.vc-tete__avatar svg, .vc-groupe__avatar svg { width: 100%; height: auto; }
.vc-tete__txt { display: flex; flex-direction: column; min-width: 0; flex-grow: 1; }
.vc-tete__txt strong { font-family: var(--vc-serif); font-weight: 400; font-size: 20px; line-height: 1.1; }
.vc-tete__txt span { font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-tete__statut { transition: opacity .3s; }
.vc-tete__marque { flex: none; display: flex; align-items: center; padding: 6px 2px; border-radius: 6px; }
.vc-tete__marque img { display: block; height: 22px; width: auto; }
@media (max-width: 340px) { .vc-tete__marque { display: none; } }

/* Fil */
.vc-fil { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 10px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; overflow-anchor: none; }
.vc-groupe { display: flex; align-items: flex-end; gap: 8px; animation: vc-entre .28s ease-out both; }
.vc-groupe--moi { justify-content: flex-end; }
.vc-groupe__avatar { flex: none; width: 30px; }
.vc-groupe__bulles { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; max-width: 84%; min-width: 0; }
.vc-bulle { padding: 10px 14px; font-size: 16px; line-height: 1.42; overflow-wrap: anywhere; animation: vc-entre .28s ease-out both; }
.vc-bulle--voyant { background: var(--vc-cBg); color: var(--vc-cTx); border: 1px solid var(--vc-line); border-radius: 18px 18px 18px 6px; box-shadow: 0 1px 1px rgba(0, 0, 0, .04); }
.vc-bulle--moi { max-width: 80%; background: var(--vc-uBg); color: var(--vc-uTx); border-radius: 18px 18px 6px 18px; white-space: pre-wrap; }
.vc-frappe { display: flex; gap: 5px; padding: 14px 16px; }
.vc-frappe span { width: 7px; height: 7px; border-radius: 50%; background: var(--vc-mut); animation: vc-point 1.1s infinite ease-in-out; }
.vc-frappe span:nth-child(2) { animation-delay: .16s; }
.vc-frappe span:nth-child(3) { animation-delay: .32s; }
.vc-bloc { display: flex; flex-direction: column; animation: vc-entre .3s ease-out both; }

.vc-systeme { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 2px 4px 6px; text-align: center; }
.vc-systeme__date { font-size: 12px; color: var(--vc-mut); }
.vc-systeme__notice, .vc-systeme > span:only-child {
  display: inline-block; max-width: 460px; padding: 9px 13px; border-radius: 12px; background: var(--vc-chip); border: 1px solid var(--vc-line);
  font-size: 12.5px; line-height: 1.45; color: var(--vc-mut);
}
.vc-systeme__notice strong { color: var(--vc-cTx); font-weight: 600; }
.vc-systeme__notice a { color: var(--vc-accTexte); }
.vc-systeme--erreur { flex-direction: row; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--vc-mut); }
.vc-lien { background: none; border: 0; color: var(--vc-accTexte); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 8px; }

/* Choix d'un voyant (adresse sans voyant valide) */
.vc-voyants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vc-voyants a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--vc-cBg); border: 1px solid var(--vc-line); color: var(--vc-cTx); text-decoration: none; }
.vc-voyants a span:first-child { flex: none; width: 34px; }
.vc-voyants strong { display: block; font-family: var(--vc-serif); font-weight: 400; font-size: 18px; line-height: 1.1; }
.vc-voyants small { font-size: 12px; color: var(--vc-mut); }

/* Dock */
.vc-dock { flex: none; background: var(--vc-dock); border-top: 1px solid var(--vc-line); padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); min-height: 76px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.vc-attente { min-height: 48px; display: flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--vc-chip); border: 1px solid var(--vc-line); color: var(--vc-mut); font-size: 15px; }
button.vc-attente { width: 100%; cursor: pointer; text-align: left; }
.vc-saisie { display: flex; gap: 8px; align-items: flex-end; }
.vc-champ { flex-grow: 1; min-width: 0; height: 48px; min-height: 48px; max-height: 132px; padding: 12px 18px; border-radius: 24px; border: 1px solid var(--vc-line); background: var(--vc-chip); color: var(--vc-cTx); font-size: 16px; line-height: 22px; resize: none; overflow-y: hidden; font-family: inherit; }
.vc-champ::placeholder { color: var(--vc-mut); opacity: .85; }
.vc-champ:focus, .vc-champ:focus-visible { outline: none; border-color: var(--vc-acc); box-shadow: 0 0 0 1px var(--vc-acc); }
.vc-champ:disabled { opacity: .7; cursor: default; }
.vc-envoyer { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--vc-acc); color: var(--vc-accTx); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: opacity .2s; }
.vc-envoyer:disabled { opacity: .35; cursor: default; }

/* Sujets proposés au début de la consultation (boutons) */
.vc-sujets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; animation: vc-entre .3s ease-out both; }
.vc-sujet {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 56px; padding: 8px 14px;
  border-radius: 14px; border: 1.5px solid var(--vc-acc); background: var(--vc-cBg); color: var(--vc-cTx); text-align: left; cursor: pointer;
  transition: background .2s;
}
.vc-sujet:hover { background: var(--vc-chip); }
.vc-sujet strong { font-size: 15px; font-weight: 600; line-height: 1.2; }
.vc-sujet span { font-size: 12.5px; color: var(--vc-mut); line-height: 1.25; }
.vc-sujet:disabled { opacity: .5; cursor: default; }

.vc-choix { display: flex; flex-wrap: wrap; gap: 8px; }
.vc-puce { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--vc-acc); background: var(--vc-chip); color: var(--vc-cTx); font-size: 15px; font-weight: 500; }
.vc-puce--statique { display: inline-flex; align-items: center; min-height: 32px; font-size: 13px; cursor: default; }
.vc-choix--lecture { justify-content: center; }

.vc-bouton { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--vc-acc); color: var(--vc-accTx); font-size: 16px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.vc-bouton:hover { filter: brightness(1.07); }
.vc-bouton:active { transform: translateY(1px); }

/* Rituels */
.vc-rituel { align-self: stretch; padding: 16px 12px 14px; border-radius: 18px; background: var(--vc-cBg); border: 1px solid var(--vc-line); display: flex; flex-direction: column; align-items: center; gap: 12px; overflow: hidden; }
.vc-rituel__aide { font-size: 13px; color: var(--vc-mut); }

.vc-carte { display: flex; width: 74px; height: 120px; padding: 5px; border-radius: 8px; flex: none; }
.vc-carte__int { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 4px; }
.vc-carte--dos { background: var(--nuit); border: 1.5px solid var(--vc-acc); }
.vc-carte--dos .vc-carte__int { border: 1px solid var(--vc-acc); color: var(--vc-acc); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 8px); }
.vc-carte--face { background: #FBF6EC; border: 1.5px solid #2A2420; color: #2A2420; }
.vc-carte--face .vc-carte__int { border: 1px solid #2A2420; justify-content: space-between; padding: 5px 2px; }
.vc-carte__num { font-family: var(--vc-serif); font-size: 11px; min-height: 13px; }
.vc-carte__ico { color: var(--vc-accTexte); }
.vc-carte__nom { font-family: var(--vc-serif); font-size: 10px; line-height: 1.1; text-align: center; }
.vc-carte.est-retournee { animation: vc-retourne .5s ease-out both; }

.vc-eventail { position: relative; width: 300px; max-width: 100%; height: 150px; }
.vc-eventail__carte {
  position: absolute; left: 50%; top: 18px; margin-left: -37px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px;
  transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); transform-origin: 50% 120%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18));
}
.vc-eventail__carte:hover { transform: translateX(var(--x)) translateY(calc(var(--y) - 8px)) rotate(var(--r)); }
.vc-eventail__carte[aria-pressed="true"] { transform: translateX(var(--x)) translateY(calc(var(--y) - 24px)) rotate(var(--r)); opacity: .5; cursor: default; }
.vc-emplacements { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.vc-pile { position: relative; width: 240px; max-width: 100%; height: 150px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.vc-pile:disabled { cursor: default; }
.vc-pile .vc-carte { position: absolute; left: 50%; top: 12px; margin-left: -37px; transition: transform .22s ease; }
.vc-pile .vc-carte:nth-child(1) { transform: translate(-8px, 0) rotate(-4deg); }
.vc-pile .vc-carte:nth-child(2) { transform: translate(-4px, -2px) rotate(-2deg); }
.vc-pile .vc-carte:nth-child(4) { transform: translate(4px, -6px) rotate(2deg); }
.vc-pile .vc-carte:nth-child(5) { transform: translate(8px, -8px) rotate(4deg); }
.vc-pile.est-melange .vc-carte:nth-child(odd) { animation: vc-melange-a .44s ease-in-out infinite; }
.vc-pile.est-melange .vc-carte:nth-child(even) { animation: vc-melange-b .44s ease-in-out infinite; }

.vc-chiffres { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.vc-chiffres span { width: 30px; height: 40px; border-radius: 8px; background: var(--vc-chip); border: 1px solid var(--vc-line); display: flex; align-items: center; justify-content: center; font-family: var(--vc-serif); font-size: 20px; }
.vc-calcul { font-size: 15px; color: var(--vc-mut); text-align: center; animation: vc-entre .3s ease-out both; }
.vc-calcul strong { color: var(--vc-cTx); }
.vc-nombre { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: vc-entre .4s ease-out both; }
.vc-nombre__rond { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--vc-acc); display: flex; align-items: center; justify-content: center; font-family: var(--vc-serif); font-size: 36px; color: var(--vc-accTexte); }
.vc-nombre__label { font-size: 13px; color: var(--vc-mut); }

.vc-roue { max-width: 100%; height: auto; }
.vc-roue__cercle { fill: none; stroke: var(--vc-acc); stroke-dasharray: 2 5; }
.vc-roue__seg { fill: var(--vc-chip); stroke: var(--vc-line); transition: fill .5s; }
.vc-roue__seg.est-actif { fill: var(--vc-acc); }
.vc-roue__lab { font-family: var(--vc-sans); font-size: 8.5px; font-weight: 600; fill: var(--vc-mut); }
.vc-roue__lab.est-actif { fill: var(--encre); }
.vc-roue__centre { fill: var(--vc-chip); }
.vc-roue__signe { font-family: var(--vc-serif); font-size: 19px; fill: var(--vc-cTx); }
.vc-roue__dates { font-family: var(--vc-sans); font-size: 10px; fill: var(--vc-mut); }

.vc-signe { flex-direction: row; align-self: flex-start; padding: 14px 18px; gap: 14px; }
.vc-signe__rond { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--vc-acc); display: flex; align-items: center; justify-content: center; color: var(--vc-accTexte); }
.vc-signe__txt { display: flex; flex-direction: column; text-align: left; }
.vc-signe__txt strong { font-family: var(--vc-serif); font-weight: 400; font-size: 22px; }
.vc-signe__txt span { font-size: 13px; color: var(--vc-mut); }

.vc-lunes { display: flex; gap: 12px; }
.vc-lune { width: 26px; height: 26px; border-radius: 50%; background: var(--vc-acc); opacity: .3; }
.vc-lune--0 { box-shadow: inset -10px 0 0 0 var(--vc-cBg); }
.vc-lune--1 { box-shadow: inset -5px 0 0 0 var(--vc-cBg); }
.vc-lune--3 { box-shadow: inset 5px 0 0 0 var(--vc-cBg); }
.vc-lune--4 { box-shadow: inset 10px 0 0 0 var(--vc-cBg); }
.vc-lunes.est-actif .vc-lune { animation: vc-lune 1.9s ease-in-out infinite; }
.vc-lunes.est-actif .vc-lune--1 { animation-delay: .38s; }
.vc-lunes.est-actif .vc-lune--2 { animation-delay: .76s; }
.vc-lunes.est-actif .vc-lune--3 { animation-delay: 1.14s; }
.vc-lunes.est-actif .vc-lune--4 { animation-delay: 1.52s; }

/* Aperçu de la lecture : le début se lit, la suite est floutée ; puis le passage au paywall */
.vc-lecture { align-self: stretch; margin: 6px 0; padding: 22px 20px 20px; border-radius: 20px; background: var(--vc-cBg); border: 1.5px solid var(--vc-acc); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 30px rgba(0, 0, 0, .08); animation: vc-entre .4s ease-out both; }
.vc-lecture__sur { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--vc-accTexte); }
.vc-lecture__titre { font-family: var(--vc-serif); font-weight: 400; font-size: 25px; line-height: 1.12; }
.vc-lecture__rituel { font-size: 13px; color: var(--vc-mut); }
.vc-lecture__texte { position: relative; display: flex; flex-direction: column; gap: 12px; font-family: var(--vc-serif); font-size: 17.5px; line-height: 1.5; }
.vc-lecture__texte p { overflow-wrap: anywhere; }
.vc-flou { filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.vc-lecture__lignes { display: flex; flex-direction: column; gap: 11px; padding-top: 4px; filter: blur(3px); }
.vc-lecture__lignes span { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, #D9CFC2, #E6DED3); }
.vc-lecture__lignes span:nth-child(2) { width: 92%; }
.vc-lecture__lignes span:nth-child(3) { width: 64%; }
.vc-lecture__voile { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255, 253, 249, 0), var(--vc-cBg)); pointer-events: none; }
.vc-lecture__verrou { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--vc-line); font-size: 15px; font-weight: 600; }
.vc-lecture__verrou svg { flex: none; color: var(--vc-accTexte); }
.vc-lecture__liste { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.vc-lecture__liste li { display: flex; gap: 10px; }
.vc-lecture__liste li::before { content: "✓"; color: var(--vc-accTexte); font-weight: 600; }
.vc-lecture__note { font-size: 12.5px; line-height: 1.45; color: var(--vc-mut); text-align: center; }
.vc-lecture__note a { color: inherit; }

/* Animations */
@keyframes vc-entre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes vc-point { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes vc-retourne { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@keyframes vc-melange-a { 0%, 100% { transform: translate(-30px, 4px) rotate(-10deg); } 50% { transform: translate(26px, -6px) rotate(8deg); } }
@keyframes vc-melange-b { 0%, 100% { transform: translate(28px, -4px) rotate(9deg); } 50% { transform: translate(-24px, 6px) rotate(-7deg); } }
@keyframes vc-lune { 0%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .vc-app *, .vc-app *::before, .vc-app *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Ordinateur : un peu plus d'air autour de la colonne */
@media (min-width: 900px) {
  .vc-fil { padding: 22px 22px 14px; }
  .vc-dock { padding-inline: 22px; }
  .vc-sujets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
