/* Carnet du tarot du jour (includes/daily_journal.php, assets/js/daily-journal.js) : 7 jours en frise, aujourd'hui à droite.
   Chargé sur la page de tirage et sur la page résultat : couleurs en dur (indépendant des variables de page). */
.dj { position: relative; isolation: isolate; overflow: hidden; padding: clamp(1.3rem, 3vw, 1.9rem); border-radius: 24px; color: #dfe4f2;
	background: radial-gradient(420px 260px at 90% 0, rgba(233, 238, 255, .16), transparent 70%), radial-gradient(360px 240px at 0 100%, rgba(122, 104, 214, .24), transparent 70%), linear-gradient(160deg, #1f2a58, #111836);
	box-shadow: 0 24px 54px rgba(18, 24, 48, .18); }
.dj[hidden] { display: none; }
/* Profondeur : ciel étoilé qui scintille et deux constellations au trait doré, derrière le contenu */
.dj::before, .dj::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.dj::before {
	inset: 0; background-repeat: repeat; background-size: 210px 180px;
	background-image:
		radial-gradient(circle at 22px 30px, rgba(255, 255, 255, .8) 0 .8px, transparent 1.4px),
		radial-gradient(circle at 96px 110px, rgba(255, 255, 255, .55) 0 .7px, transparent 1.3px),
		radial-gradient(circle at 160px 44px, rgba(255, 246, 220, .9) 0 1.1px, rgba(255, 226, 160, .3) 1.8px, transparent 3px),
		radial-gradient(circle at 188px 150px, rgba(255, 255, 255, .5) 0 .7px, transparent 1.3px),
		radial-gradient(circle at 54px 158px, rgba(255, 255, 255, .65) 0 .8px, transparent 1.4px);
	animation: djTwinkle 4.5s ease-in-out infinite alternate;
}
.dj::after {
	right: -10px; top: -6px; width: 300px; height: 150px; opacity: .55;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 150'%3E%3Cg fill='none' stroke='%23d9b872' stroke-width='.8' stroke-opacity='.55'%3E%3Cpath d='M30 112 78 84 122 96 170 58 214 70 262 34'/%3E%3Cpath d='M170 58 186 112 240 124'/%3E%3C/g%3E%3Cg fill='%23f3dfa6'%3E%3Ccircle cx='30' cy='112' r='2'/%3E%3Ccircle cx='78' cy='84' r='2.6'/%3E%3Ccircle cx='122' cy='96' r='1.8'/%3E%3Ccircle cx='170' cy='58' r='3'/%3E%3Ccircle cx='214' cy='70' r='2'/%3E%3Ccircle cx='262' cy='34' r='2.8'/%3E%3Ccircle cx='186' cy='112' r='1.8'/%3E%3Ccircle cx='240' cy='124' r='2.4'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
	animation: djGlow 6s ease-in-out infinite alternate;
}
@keyframes djTwinkle { from { opacity: .4; } to { opacity: .95; } }
@keyframes djGlow { from { opacity: .35; } to { opacity: .7; } }.dj__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.dj h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(1.35rem, 2.8vw, 1.7rem); line-height: 1.2; color: #fff; }
.dj h2::before { display: none; }
.dj h2 svg { color: #d9b872; flex: 0 0 auto; }
.dj__streak { margin: 0; padding: .35rem .85rem; border-radius: 999px; background: linear-gradient(180deg, #e7c77f, #c9a25a); color: #1b2547; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.dj__streak[hidden] { display: none; }
.dj .dj__lead { margin: .45rem 0 1.2rem; font-size: .97rem; line-height: 1.6; color: #c3cbe0; }
.dj__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.45rem, 1.6vw, 1rem); }
.dj__day { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; text-align: center; }
.dj__day img { display: block; width: 100%; max-width: 104px; height: auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.dj__day:not(.is-empty):hover img { transform: translateY(-4px) rotate(-1.5deg); }
.dj__link { display: flex; flex-direction: column; align-items: center; gap: .45rem; width: 100%; color: inherit; text-decoration: none; border-radius: 8px; }
.dj__link:hover .dj__name, .dj__link:focus-visible .dj__name { color: #d9b872; text-decoration: underline; text-underline-offset: 3px; }
.dj__link:focus-visible { outline: 2px solid #d9b872; outline-offset: 4px; }
.dj__day.is-empty img { opacity: .28; filter: grayscale(.4); box-shadow: none; }
.dj__day.is-today img { box-shadow: 0 0 0 2px #d9b872, 0 0 26px rgba(255, 226, 160, .35), 0 8px 20px rgba(0, 0, 0, .35); }
.dj__day.is-today.is-empty img { opacity: .5; }
.dj__day time { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #d9b872; }
.dj__name { font-size: .8rem; font-weight: 600; line-height: 1.25; color: #fff; overflow-wrap: anywhere; }
.dj__day.is-empty .dj__name { font-weight: 500; color: #8f99b6; }
.dj .dj__foot { margin: 1.2rem 0 0; font-size: .82rem; line-height: 1.5; color: #8f99b6; }
.dj__clear { padding: 0; border: 0; background: none; color: #c3cbe0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dj__clear:hover { color: #fff; }
@media (max-width: 560px) {
	.dj__days { gap: .3rem; }
	.dj__day time { font-size: .6rem; letter-spacing: .02em; }
	.dj__name { font-size: .64rem; }
	.dj__day img { border-radius: 5px; }
}
