/* ═══════════════ Djouney v3 — « L'Étincelle » et « Le Rendez-Vous » (v3-009) ═══════════════
   La nuit du carnet : aubergine profonde, or chaud, et la fleur du duo pour la lueur.
   Contrastes vérifiés : crème #F4ECE2 sur #22161F (14:1), or #D9B46C sur #22161F (8:1). Préfixe .et-. */

.et {
  --et-nuit: #22161F;
  --et-nuit-2: #2E1E2B;
  --et-voile: rgba(var(--ink-rgb), .07);
  --et-trait: rgba(217, 180, 108, .38);
  --et-or: #D9B46C;
  --et-creme: #F4ECE2;
  --et-doux: rgba(var(--ink-rgb), .78);
  color: var(--et-creme);
  background:
    radial-gradient(90vmax 70vmax at 20% -10%, color-mix(in srgb, var(--flower) 26%, transparent) 0%, transparent 60%),
    radial-gradient(80vmax 60vmax at 110% 110%, rgba(217, 180, 108, .14) 0%, transparent 55%),
    linear-gradient(180deg, var(--et-nuit-2) 0%, var(--et-nuit) 100%);
}
.et :focus-visible { outline: 2px solid var(--et-or); outline-offset: 3px; }

.et-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: calc(6px + var(--safe-top)) 16px calc(40px + var(--safe-bottom));
}
.et-inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.et-head { display: flex; align-items: center; min-height: 52px; margin-left: -8px; }
.et-back { color: var(--et-creme); }
.et-title { margin: 0; font-family: var(--font-hand); font-weight: 500; font-size: clamp(44px, 12vw, 58px); line-height: 1.02; color: var(--et-creme); outline: none; text-shadow: 0 0 26px color-mix(in srgb, var(--flower) 45%, transparent); }
.et-sub { margin: 6px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 15.5px; color: var(--et-doux); }
.et-progres { display: flex; gap: 6px; margin-top: 14px; }
.et-progres:empty { display: none; }
.et-progres span { flex: 1; height: 4px; border-radius: 2px; background: rgba(var(--ink-rgb), .16); }
.et-progres .est-fait { background: var(--et-or); }
.et-progres .est-en-cours { background: linear-gradient(90deg, var(--et-or), color-mix(in srgb, var(--flower) 70%, var(--et-or))); box-shadow: 0 0 10px rgba(217, 180, 108, .6); }
.et-scene { display: flex; flex-direction: column; gap: 16px; }
.et-etat { margin: 0; padding: 18px 4px; font-family: var(--font-serif); font-style: italic; color: var(--et-doux); }
.et-bloc { display: flex; flex-direction: column; gap: 14px; }

/* ─── La question ─── */
.et-carte {
  padding: 24px 22px;
  border-radius: 26px;
  border: 1px solid var(--et-trait);
  background: linear-gradient(160deg, rgba(var(--ink-rgb), .09), rgba(var(--ink-rgb), .03));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(var(--light-rgb), calc(.06 * var(--hl-a)));
  animation: etCarte .6s var(--ease);
}
.et-carte__sur { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--et-or); }
.et-carte__question { margin: 10px 0 0; font-family: var(--font-hand); font-weight: 500; font-size: clamp(30px, 8.4vw, 38px); line-height: 1.16; color: var(--et-creme); }
@keyframes etCarte { from { opacity: 0; transform: translateY(10px); } }

/* ─── Ma réponse secrète ─── */
.et-saisie { display: flex; flex-direction: column; gap: 10px; }
.et-saisie__texte {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(var(--ink-rgb), .18);
  border-radius: 20px;
  background: rgba(0, 0, 0, .22);
  color: var(--et-creme);
  font-family: var(--font-hand);
  font-size: 23px;
  line-height: 1.35;
  resize: vertical;
}
.et-saisie__texte::placeholder { color: rgba(var(--ink-rgb), .5); font-family: var(--font-serif); font-style: italic; font-size: 15px; }
.et-saisie__texte:focus { outline: none; border-color: var(--et-or); box-shadow: 0 0 0 3px rgba(217, 180, 108, .2); }
.et-saisie__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.et-saisie__compte { font-size: 12.5px; color: var(--et-doux); font-variant-numeric: tabular-nums; }
.et .btn { min-height: 50px; }
.et-sceller, .et-suivant {
  gap: 10px;
  padding: 0 22px;
  border: 0;
  background: linear-gradient(135deg, var(--et-or), #C3914A);
  color: #2A1A12;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(217, 180, 108, .28);
}
.et-sceller:disabled, .et-suivant:disabled { opacity: .45; box-shadow: none; }
.et-cachet { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--flower) 60%, #fff), var(--flower) 60%, color-mix(in srgb, var(--flower) 70%, #000)); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); flex: none; }
.et-annuler { align-self: center; color: var(--et-doux); }

/* ─── Les réponses ─── */
.et-reponse {
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--et-voile);
  border: 1px solid rgba(var(--ink-rgb), .12);
}
.et-reponse__qui { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--et-or); }
.et-reponse__texte { margin: 6px 0 0; font-family: var(--font-hand); font-size: 24px; line-height: 1.32; color: var(--et-creme); white-space: pre-wrap; overflow-wrap: anywhere; }
.et-reponse__reaction { margin: 8px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--et-or); }
.et-revelation { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .et-revelation { grid-template-columns: 1fr 1fr; } }
.et-revelation.est-nouvelle .et-reponse { animation: etReveler 1.4s var(--ease) both; }
.et-revelation.est-nouvelle .et-reponse--lui { animation-delay: .35s; }
@keyframes etReveler {
  0% { opacity: 0; transform: translateY(8px); box-shadow: 0 0 0 rgba(217, 180, 108, 0); }
  45% { opacity: 1; box-shadow: 0 0 36px rgba(217, 180, 108, .55); }
  100% { opacity: 1; transform: none; box-shadow: 0 0 0 rgba(217, 180, 108, 0); }
}

/* ─── Le voile ─── */
.et-voile { position: relative; overflow: hidden; border-radius: 20px; border: 1px dashed rgba(var(--ink-rgb), .22); min-height: 132px; }
.et-voile.est-scellee { border-style: solid; border-color: var(--et-trait); }
.et-voile__leurre { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; filter: blur(7px); opacity: .55; }
.et-voile__ligne { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(var(--ink-rgb), .7), rgba(217, 180, 108, .5)); }
.et-voile__mot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  background: rgba(34, 22, 31, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.et-voile__qui { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--et-or); }
.et-voile__texte { margin: 6px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 15.5px; line-height: 1.45; color: var(--et-creme); }
.et-voile:not(.est-scellee) .et-voile__leurre { animation: etRespire 3.2s ease-in-out infinite; }
@keyframes etRespire { 50% { opacity: .25; } }

/* ─── Réactions, méditation ─── */
.et-reactions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.et-reaction {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--ink-rgb), .25);
  background: transparent;
  color: var(--et-creme);
  font-size: 14.5px;
  font-weight: 500;
}
.et-reaction[aria-pressed="true"] { border-color: var(--et-or); background: rgba(217, 180, 108, .16); color: var(--et-or); box-shadow: 0 0 16px rgba(217, 180, 108, .3); }
.et-meditation { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
.et-anneau {
  --et-part: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: conic-gradient(var(--et-or) calc(var(--et-part) * 360deg), rgba(var(--ink-rgb), .12) 0);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 58%);
  mask: radial-gradient(circle, transparent 56%, #000 58%);
}
.et-meditation__texte { margin: 0; text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--et-doux); font-variant-numeric: tabular-nums; }
.et-suivant { align-self: stretch; }

/* ─── Attente, bilan, soirs ─── */
.et-attente { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 8px; text-align: center; }
.et-attente__titre { margin: 0; font-family: var(--font-hand); font-weight: 500; font-size: 30px; color: var(--et-creme); }
.et-attente__texte { margin: 0; font-family: var(--font-serif); font-style: italic; line-height: 1.5; color: var(--et-doux); }
.et-braise { width: 18px; height: 18px; border-radius: 50%; background: var(--et-or); box-shadow: 0 0 22px 6px rgba(217, 180, 108, .55); animation: etBraise 1.8s ease-in-out infinite; }
@keyframes etBraise { 50% { transform: scale(.7); box-shadow: 0 0 10px 2px rgba(217, 180, 108, .35); } }
.et-bilan__titre { margin: 0; font-family: var(--font-hand); font-weight: 500; font-size: 32px; color: var(--et-or); }
.et-bilan { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.et-bilan li { padding: 14px 16px; border-radius: 18px; background: var(--et-voile); }
.et-bilan__question { margin: 0 0 6px; font-family: var(--font-serif); font-style: italic; color: var(--et-or); }
.et-bilan__reponse { margin: 4px 0 0; font-family: var(--font-hand); font-size: 21px; line-height: 1.3; }
.et-bilan__reponse span { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; color: var(--et-doux); }
.et-prochaine { margin: 0; text-align: center; font-family: var(--font-serif); font-style: italic; color: var(--et-or); }
.et-soirs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.et-soirs__titre { margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 16px; color: var(--et-doux); }
.et-soir { border-radius: 18px; background: rgba(var(--ink-rgb), .04); }
.et-soir summary { display: flex; flex-direction: column; gap: 2px; min-height: 52px; padding: 12px 16px; cursor: pointer; font-family: var(--font-serif); font-style: italic; color: var(--et-creme); }
.et-soir__n { font-family: var(--font-ui); font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--et-or); }
.et-soir .et-revelation { padding: 0 12px 12px; }
.et-soir--ouvert { padding: 12px; }

/* ─── Dans le carnet : la carte du Rendez-Vous ─── */
.cn-jeu-slot:empty { display: none; }
.et-rdv {
  margin: 8px 0 14px;
  padding: 18px;
  border-radius: 22px;
  color: #F4ECE2;
  background: radial-gradient(70% 90% at 0% 0%, color-mix(in srgb, var(--flower) 30%, transparent), transparent 70%), linear-gradient(160deg, #2E1E2B, #22161F);
  box-shadow: 0 12px 28px rgba(var(--ink-rgb), .3), inset 0 0 0 1px rgba(217, 180, 108, .35);
}
.et-rdv__titre { margin: 0; font-family: var(--font-hand); font-weight: 500; font-size: 28px; line-height: 1.1; color: #F4ECE2; }
.et-rdv__question { margin: 8px 0 0; font-family: var(--font-serif); font-style: italic; font-size: 15.5px; line-height: 1.45; color: #D9B46C; }
.et-rdv__texte { margin: 6px 0 12px; font-size: 14.5px; line-height: 1.45; color: rgba(var(--ink-rgb), .82); }
.et-rdv .btn { min-height: 44px; padding: 0 18px; border: 0; background: linear-gradient(135deg, #D9B46C, #C3914A); color: #2A1A12; font-weight: 600; box-shadow: none; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .et-carte, .et-revelation.est-nouvelle .et-reponse, .et-voile__leurre, .et-braise { animation: none !important; }
}
