/* ============================================================
   Le mot du jour — page de révélation
   ============================================================ */
.mdj {
  background: radial-gradient(120% 80% at 50% -10%, #FFFDF8 0%, var(--paper) 50%, var(--paper-warm) 100%);
  min-height: 100vh;
}
.mdj main { overflow: hidden; }

.mdj-mount {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 9vh, 6rem) var(--space-lg) var(--space-2xl);
  text-align: center;
  position: relative;
}

/* ---- le voile (avant révélation) ---- */
.mdj-veil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  cursor: pointer;
  min-height: 60vh;
  transition: opacity 1s ease, transform 1s ease;
}
.mdj-veil.is-gone { opacity: 0; transform: scale(0.94); pointer-events: none; }

.mdj-star {
  width: clamp(120px, 30vw, 180px);
  height: clamp(120px, 30vw, 180px);
  color: var(--gold);
  animation: mdjPulse 3.4s ease-in-out infinite;
}
.mdj-star svg { width: 100%; height: 100%; display: block; }
@keyframes mdjPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.78; filter: drop-shadow(0 0 10px rgba(184,134,11,0.25)); }
  50%      { transform: scale(1.06) rotate(22.5deg); opacity: 1; filter: drop-shadow(0 0 26px rgba(184,134,11,0.45)); }
}
.mdj-invite {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink-soft);
  font-style: italic;
  max-width: 22rem;
  margin: 0 auto;
}
.mdj-tap {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- le mot révélé ---- */
.mdj-card { animation: mdjReveal 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes mdjReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.mdj-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.mdj-ar {
  font-family: var(--font-arabic);
  direction: rtl;
  font-size: clamp(3rem, 12vw, 4.6rem);
  line-height: 1.5;
  color: var(--ink-title);
}
.mdj-tr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--gold);
  margin-top: 0.2rem;
}
.mdj-rule { width: 56px; height: 1px; background: var(--gold-soft); margin: var(--space-lg) auto; }
.mdj-def {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--ink-title);
  margin: 0 auto var(--space-lg);
  max-width: 26rem;
}
.mdj-section { margin: var(--space-lg) auto 0; max-width: 30rem; }
.mdj-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.mdj-section p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.mdj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-2xl);
}
.mdj-btn {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.mdj-btn--gold { background: var(--gold); color: #FFFDF8; border-color: var(--gold); }
.mdj-btn:hover { background: var(--gold); color: #FFFDF8; }
.mdj-btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* prose + question à méditer */
.mdj-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.5rem);
  color: var(--gold);
  margin-top: var(--space-md);
}
/* icône d'envoi dans le bouton Offrir */
.mdj-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.mdj-send-icon { width: 17px; height: 17px; }

/* ---- accueil : deux portes ---- */
.mdj-landing { text-align: center; padding-top: clamp(2rem, 6vh, 4rem); }
.mdj-landing__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 6vw, 2.8rem); color: var(--ink-title); margin-bottom: 0.3rem;
}
.mdj-landing__sub {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.2rem; color: var(--ink-soft); margin-bottom: var(--space-2xl);
}
.mdj-doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); max-width: 34rem; margin: 0 auto; }
@media (max-width: 540px) { .mdj-doors { grid-template-columns: 1fr; } }
.mdj-door {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: var(--space-xl) var(--space-lg);
  text-decoration: none;
  background: linear-gradient(170deg, var(--paper-warm), var(--paper-deep));
  border: 1px solid var(--gold-soft); border-radius: 16px;
  box-shadow: 0 14px 34px -28px rgba(27,42,78,0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.mdj-door:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -26px rgba(27,42,78,0.5); }
.mdj-door__icon { width: 54px; height: 54px; color: var(--gold); margin-bottom: var(--space-sm); }
.mdj-door__icon svg { width: 100%; height: 100%; }
.mdj-door__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink-title); }
.mdj-door__sub { font-family: var(--font-sans); font-size: 0.82rem; color: var(--ink-mute); }

/* ---- offrir ---- */
.mdj-offer { text-align: center; padding-top: clamp(2rem, 6vh, 4rem); }
.mdj-offer-sub {
  font-family: var(--font-display); font-style: italic; font-size: 1.2rem;
  color: var(--ink-soft); max-width: 26rem; margin: 0.4rem auto var(--space-lg);
}
.mdj-dove-big { width: clamp(90px, 22vw, 130px); margin: 0 auto var(--space-lg); color: var(--gold); animation: mdjPulse 3.4s ease-in-out infinite; }
.mdj-dove-big svg { width: 100%; height: 100%; }
.mdj-card--offer { animation: mdjReveal 0.8s cubic-bezier(.2,.7,.2,1) both; margin-top: var(--space-xl); }
.mdj-dove { width: 18px; height: 18px; }

/* ---- sagesse / parabole / conte ---- */
.mdj-sagesse-titre {
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-md);
}
.mdj-sagesse-texte {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  line-height: 1.55; color: var(--ink-title); max-width: 30rem; margin: 0 auto;
}
.mdj-source {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--ink-mute); margin-top: var(--space-md);
}

/* ============================================================
   Intentions, respiration, colombe qui s'envole
   ============================================================ */

/* — chips d'intention — */
.mdj-intention { margin: var(--space-md) auto var(--space-lg); max-width: 28rem; }
.mdj-intention__label {
  font-family: var(--font-sans); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); text-align: center;
  margin-bottom: 0.6rem;
}
.mdj-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.mdj-chip {
  font-family: var(--font-display); font-size: 0.92rem; line-height: 1;
  color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 0.9rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.mdj-chip:hover { border-color: var(--gold); color: var(--ink-title); transform: translateY(-1px); }
.mdj-chip.is-active { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.mdj-chip__ico { font-size: 0.9em; margin-right: 0.2rem; }

/* — pause respiration — */
.mdj-breath {
  position: fixed; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,253,248,0.96) 0%, rgba(247,243,234,0.96) 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; cursor: pointer;
  animation: mdjFadeIn 0.5s ease both;
}
.mdj-breath.is-gone { animation: mdjFadeOut 0.5s ease both; }
@keyframes mdjFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mdjFadeOut { from { opacity: 1; } to { opacity: 0; } }
.mdj-breath__inner { text-align: center; max-width: 24rem; padding: var(--space-lg); }
.mdj-breath__circle {
  width: 100px; height: 100px; margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,160,80,0.18) 0%, rgba(192,160,80,0) 70%);
  border: 1px solid var(--gold-soft);
  animation: mdjBreath 3s ease-in-out infinite;
}
@keyframes mdjBreath {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.mdj-breath__text {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; line-height: 1.6;
  color: var(--ink-soft);
}

/* — colombe qui s'envole — */
.mdj-dove-fly {
  position: fixed; left: 0; top: 0;
  z-index: 1500; pointer-events: none;
  color: var(--gold);
  animation: mdjDoveFly 2.4s cubic-bezier(.32,.18,.6,1) forwards;
}
.mdj-dove-fly svg { width: 56px; height: 56px; display: block; filter: drop-shadow(0 4px 12px rgba(192,160,80,0.4)); }
@keyframes mdjDoveFly {
  0%   { left: -8vw; top: 65vh; transform: rotate(-6deg) scale(0.7); opacity: 0; }
  10%  { opacity: 1; }
  50%  { top: 28vh; transform: rotate(8deg) scale(1.1); }
  100% { left: 108vw; top: 12vh; transform: rotate(-8deg) scale(0.85); opacity: 0; }
}

/* — message « le mot a pris son envol » — */
.mdj-sent-msg {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%);
  z-index: 1500;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.15rem; color: var(--ink-title);
  background: var(--paper);
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 12px 30px -16px rgba(27,42,78,0.3);
  animation: mdjSentIn 0.6s cubic-bezier(.2,.7,.2,1) both;
}
.mdj-sent-msg.is-fade { animation: mdjFadeOut 0.7s ease both; }
@keyframes mdjSentIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* — bouton fantôme (pour le lien doux "Continuer le chemin") — */
.mdj-btn--ghost { background: transparent; color: var(--ink-mute); border: 1px solid transparent; }
.mdj-btn--ghost:hover { color: var(--gold); border-color: var(--gold-soft); }

@media (prefers-reduced-motion: reduce) {
  .mdj-breath__circle { animation: none; }
  .mdj-dove-fly { animation-duration: 0.6s; }
}

/* ============================================================
   DESIGN TIPTOP — refonte complète : matière, ciel, encre, souffle
   ============================================================ */

/* — heure du jour : le fond suit le temps — */
body.mdj-time-dawn  { background: linear-gradient(180deg, #FFEFD9 0%, #F5DDC1 60%, #E8C49E 100%) !important; }
body.mdj-time-day   { background: radial-gradient(140% 90% at 50% -10%, #FFFDF8 0%, #F8F1DE 60%, #EFE3C6 100%) !important; }
body.mdj-time-dusk  { background: linear-gradient(180deg, #F2D2A4 0%, #D69B6A 55%, #6A3F2B 100%) !important; color: #FFE9C7; }
body.mdj-time-night { background: radial-gradient(140% 100% at 50% 0%, #1A1F35 0%, #0A0E1E 60%, #050811 100%) !important; color: #F0D9A8; }
body.mdj-time-dusk .mdj-mount,
body.mdj-time-night .mdj-mount { color: inherit; }

/* — ciel d'étoiles (constellation soufie en fond) — */
.mdj-sky {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, rgba(255,238,180,0.85), transparent 60%),
    radial-gradient(0.8px 0.8px at 19% 78%, rgba(255,238,180,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 33% 22%, rgba(255,238,180,0.9), transparent 60%),
    radial-gradient(0.9px 0.9px at 45% 60%, rgba(255,238,180,0.55), transparent 60%),
    radial-gradient(1.3px 1.3px at 58% 14%, rgba(255,238,180,0.8), transparent 60%),
    radial-gradient(0.7px 0.7px at 67% 88%, rgba(255,238,180,0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 30%, rgba(255,238,180,0.85), transparent 60%),
    radial-gradient(0.9px 0.9px at 86% 64%, rgba(255,238,180,0.6), transparent 60%),
    radial-gradient(1.1px 1.1px at 92% 18%, rgba(255,238,180,0.75), transparent 60%),
    radial-gradient(0.7px 0.7px at 12% 50%, rgba(255,238,180,0.45), transparent 60%),
    radial-gradient(1px 1px at 38% 86%, rgba(255,238,180,0.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 55% 38%, rgba(255,238,180,0.7), transparent 60%);
  background-size: 100% 100%;
  opacity: 0.35;
  transition: opacity 1.5s ease;
}
body.mdj-time-night .mdj-sky { opacity: 1; }
body.mdj-time-dusk  .mdj-sky { opacity: 0.7; }
.mdj-sky::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(0.6px 0.6px at 22% 35%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(0.8px 0.8px at 48% 72%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(0.7px 0.7px at 73% 48%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(0.9px 0.9px at 89% 81%, rgba(255,255,255,0.65), transparent 60%),
    radial-gradient(0.5px 0.5px at 5% 70%, rgba(255,255,255,0.5), transparent 60%);
  animation: twinkle 4s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.3; } 100% { opacity: 1; } }

/* — la carte : sa matière de parchemin — */
.mdj-card {
  position: relative;
  background: linear-gradient(170deg, #FFFDF8 0%, #F4EAD0 100%);
  border: 1px solid rgba(192,160,80,0.3);
  box-shadow:
    0 30px 60px -36px rgba(40,30,15,0.4),
    0 12px 24px -16px rgba(192,160,80,0.25),
    inset 0 1px 0 rgba(255,255,255,0.7);
  z-index: 1;
}
.mdj-card::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(192,160,80,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(192,160,80,0.05) 0%, transparent 60%);
  pointer-events: none; border-radius: inherit;
}
.mdj-card::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.7  0 0 0 0 0.55  0 0 0 0 0.3  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: 0.5;
  pointer-events: none; border-radius: inherit;
}
.mdj-card > * { position: relative; z-index: 2; }

/* la carte respire — léger souffle, sur 6s */
.mdj-card { animation: mdjReveal 1.4s cubic-bezier(.2,.7,.2,1) both, mdjBreath 7s ease-in-out 1.6s infinite; }
@keyframes mdjBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.006); }
}

/* nuit : la carte devient parchemin sombre */
body.mdj-time-night .mdj-card {
  background: linear-gradient(170deg, #1f2540 0%, #161b30 100%);
  border-color: rgba(216,192,130,0.35);
  color: #F0D9A8;
}
body.mdj-time-night .mdj-card::after { mix-blend-mode: screen; opacity: 0.25; }
body.mdj-time-night .mdj-eyebrow { color: #D8C082; }
body.mdj-time-night .mdj-ar { color: #F0D9A8; text-shadow: 0 0 20px rgba(216,192,130,0.3); }
body.mdj-time-night .mdj-tr { color: #C9B485; }
body.mdj-time-night .mdj-def, body.mdj-time-night .mdj-section p { color: rgba(240,217,168,0.85); }
body.mdj-time-night .mdj-source { color: rgba(240,217,168,0.65); }
body.mdj-time-night .mdj-label { color: #D8C082; }
body.mdj-time-night .mdj-rule { background: rgba(216,192,130,0.4); }
body.mdj-time-night .mdj-sagesse-titre { color: #F0D9A8; }
body.mdj-time-night .mdj-sagesse-texte { color: rgba(240,217,168,0.92); }
body.mdj-time-night .mdj-question { color: #D8C082; }

/* — la calligraphie : encre qui se trace, droite → gauche — */
.mdj-ar {
  animation: mdjInk 1.8s cubic-bezier(.55,.05,.25,1) 0.4s both;
}
@keyframes mdjInk {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; filter: blur(2px); transform: translateY(8px); }
  15%  { opacity: 0.6; filter: blur(1.2px); }
  60%  { opacity: 1; filter: blur(0.4px); transform: translateY(0); }
  100% { clip-path: inset(0 0 0 0); filter: blur(0); }
}

/* — la translittération : apparition par caractères — */
.mdj-tr {
  animation: mdjFadeUp 0.8s cubic-bezier(.3,.7,.2,1) 1.4s both;
}
@keyframes mdjFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* — le voile : étoile khatam qui fleurit — */
.mdj-veil {
  background: radial-gradient(70% 70% at 50% 50%, rgba(192,160,80,0.12) 0%, rgba(15,24,48,0.85) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.mdj-star {
  animation: mdjStarBloom 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 20px rgba(216,192,130,0.5));
  color: #E8C97A;
}
@keyframes mdjStarBloom {
  from { transform: rotate(0deg) scale(0.92); filter: drop-shadow(0 0 12px rgba(216,192,130,0.35)); }
  to   { transform: rotate(22.5deg) scale(1.04); filter: drop-shadow(0 0 36px rgba(216,192,130,0.9)); }
}
.mdj-invite { color: #F0D9A8; }
.mdj-tap { color: rgba(240,217,168,0.7); animation: mdjBlink 2.4s ease-in-out infinite; }
@keyframes mdjBlink { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* — outils : « garder en image », « habiter ce mot » (mode immersion) — */
.mdj-tools {
  display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap;
  margin: var(--space-md) auto 0;
}
.mdj-tool {
  background: rgba(255,253,248,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(192,160,80,0.35);
  border-radius: 999px; padding: 0.55rem 1rem;
  font-family: var(--font-sans); font-size: 0.84rem; letter-spacing: 0.02em;
  color: var(--ink-soft); cursor: pointer;
  transition: all 0.2s;
}
.mdj-tool:hover { background: var(--gold); color: #FFFDF8; border-color: var(--gold); transform: translateY(-1px); }
body.mdj-time-night .mdj-tool { background: rgba(255,238,180,0.08); color: #F0D9A8; border-color: rgba(216,192,130,0.3); }
body.mdj-time-night .mdj-tool:hover { background: rgba(216,192,130,0.85); color: #1A1F35; }

/* — mode immersion : la carte habite tout l'écran — */
body.mdj-immersion { overflow: hidden; }
body.mdj-immersion .site-header,
body.mdj-immersion .site-footer,
body.mdj-immersion .mdj-actions,
body.mdj-immersion .mdj-tools,
body.mdj-immersion .mdj-eyebrow,
body.mdj-immersion .mdj-source,
body.mdj-immersion .mdj-section { display: none !important; }
body.mdj-immersion .mdj-card {
  position: fixed; inset: 0;
  margin: 0; max-width: none; width: 100vw; height: 100vh;
  border: none; border-radius: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 8vh 6vw;
  background: radial-gradient(120% 90% at 50% 50%, #1f2540 0%, #0A0E1E 100%);
  color: #F0D9A8;
}
body.mdj-immersion .mdj-card::before, body.mdj-immersion .mdj-card::after { display: none; }
body.mdj-immersion .mdj-ar { font-size: clamp(4rem, 18vw, 9rem); color: #F0D9A8; text-shadow: 0 0 40px rgba(216,192,130,0.5); }
body.mdj-immersion .mdj-tr { font-size: clamp(1.4rem, 4vw, 2.4rem); color: #D8C082; }
body.mdj-immersion .mdj-def, body.mdj-immersion .mdj-sagesse-texte { font-size: clamp(1.2rem, 3vw, 1.7rem); color: rgba(240,217,168,0.92); max-width: 36rem; }
.mdj-immersion-exit {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 100;
  background: rgba(255,253,248,0.1); color: #F0D9A8;
  border: 1px solid rgba(216,192,130,0.4); border-radius: 999px;
  width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.mdj-immersion-exit:hover { background: rgba(216,192,130,0.3); }

/* — natif vertical : tout est pensé pour le portrait — */
@media (max-width: 640px) {
  .mdj-mount { padding: max(4vh, var(--space-md)) 5vw var(--space-xl); min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
  .mdj-card { padding: var(--space-xl) var(--space-lg); border-radius: 18px; }
  .mdj-ar { font-size: clamp(3rem, 18vw, 5.5rem); }
  .mdj-tr { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }
  .mdj-eyebrow { font-size: clamp(0.7rem, 3vw, 0.85rem); }
  .mdj-sagesse-texte, .mdj-def { font-size: clamp(1.05rem, 3.8vw, 1.25rem); line-height: 1.7; }
  .mdj-actions { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .mdj-btn { width: 100%; justify-content: center; }
}

/* — animations réduites — */
@media (prefers-reduced-motion: reduce) {
  .mdj-card { animation: mdjReveal 0.5s ease both; }
  .mdj-star, .mdj-sky::after, .mdj-tap { animation: none; }
  .mdj-ar { animation: mdjFadeUp 0.5s ease both; }
}

/* ============================================================
   VOILE — refonte : colombe d'or sur lumière d'aube
   ============================================================ */

.mdj-veil {
  position: relative;
  min-height: 80vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(60% 60% at 50% 45%, #FFFDF4 0%, #F5E8CD 55%, #E8D2A8 100%);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 6vh 6vw;
  border-radius: 22px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  animation: mdjFadeIn 0.6s ease both;
  z-index: 1;
}
.mdj-veil.is-gone { animation: mdjFadeOut 0.9s ease both; pointer-events: none; }

/* le bloc colombe + halo */
.mdj-greet {
  position: relative;
  width: clamp(170px, 38vw, 240px);
  height: clamp(170px, 38vw, 240px);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.mdj-halo {
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(216,164,72,0.5) 0%, rgba(216,164,72,0.18) 35%, rgba(216,164,72,0) 70%);
  filter: blur(8px);
  animation: mdjHalo 4s ease-in-out infinite alternate;
}
@keyframes mdjHalo {
  0%   { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 1; }
}
.mdj-greet__dove {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #C9962F;
  filter: drop-shadow(0 6px 18px rgba(180,140,60,0.4));
  animation: mdjDoveBreath 5s ease-in-out infinite;
}
.mdj-greet__dove svg { width: 72%; height: 72%; }
@keyframes mdjDoveBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.04); }
}

/* invitation + indication, en tons chauds */
.mdj-veil .mdj-invite {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  color: #6E4E2A;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  max-width: 24rem;
}
.mdj-veil .mdj-tap {
  font-family: var(--font-sans);
  font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(110,78,42,0.55);
  animation: mdjBlink 2.4s ease-in-out infinite;
}

/* le voile garde sa lumière même en mode nuit */
body.mdj-time-night .mdj-veil {
  background: radial-gradient(60% 60% at 50% 45%, #FFFDF4 0%, #F0DFB5 55%, #C9A26A 100%);
  box-shadow: 0 30px 90px -30px rgba(216,192,130,0.55);
}
body.mdj-time-night .mdj-veil .mdj-invite { color: #5A3E1F; }
body.mdj-time-night .mdj-veil .mdj-tap   { color: rgba(90,62,31,0.6); }

/* l'ancienne étoile khatam n'est plus utilisée */
.mdj-veil .mdj-star { display: none; }

@media (prefers-reduced-motion: reduce) {
  .mdj-halo, .mdj-greet__dove { animation: none; }
}

/* — colombe qui arrive : symétrique au départ — */
.mdj-dove-arrive {
  position: fixed; left: 0; top: 0;
  z-index: 1500; pointer-events: none;
  color: var(--gold);
  animation: mdjDoveArrive 2.4s cubic-bezier(.28,.6,.4,1) forwards;
  filter: drop-shadow(0 6px 20px rgba(192,160,80,0.45));
}
.mdj-dove-arrive svg { width: 64px; height: 64px; display: block; }
@keyframes mdjDoveArrive {
  0%   { left: 108vw; top: 6vh;  transform: rotate(18deg) scale(0.55); opacity: 0; }
  12%  { opacity: 1; }
  55%  { left: 62vw;  top: 28vh; transform: rotate(-2deg) scale(1.05); opacity: 1; }
  80%  { left: 50vw;  top: 42vh; transform: translateX(-50%) rotate(0deg) scale(0.85); opacity: 0.8; }
  100% { left: 50vw;  top: 50vh; transform: translateX(-50%) rotate(0deg) scale(0.45); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mdj-dove-arrive { animation-duration: 0.8s; }
}
