/* Outils réglables du site (version 1.61) : calendrier de disponibilités et lecteur de mix flottant.
   Réglages et pages concernées : écrans DJ Boujou › Disponibilités et DJ Boujou › Lecteur de mix (inc/outils.php).
   Les états (is-live, is-open, is-play…) sont ajoutés par assets/js/outils.js ; sans script, le calendrier montre ses premiers mois
   et le lecteur n'apparaît pas. Avec « réduire les animations » : aucune animation. */

@keyframes djb-ot-spin { to { transform: rotate(360deg); } }
@keyframes djb-ot-eq { 0%, 100% { transform: scaleY(0.5); } 50% { transform: scaleY(1); } }
@keyframes djb-ot-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Calendrier de disponibilités ---------- */
.av { padding-top: 24px; padding-bottom: 24px; }
.av__intro { max-width: 620px; margin: 16px auto 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.av__bar { display: flex; justify-content: center; gap: 12px; margin: 30px 0 18px; }
.av__bar[hidden] { display: none; }
.av__nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel); color: var(--cream); font: 400 22px/1 var(--sans); cursor: pointer; transition: border-color 0.25s, opacity 0.25s; }
.av__nav:hover:not([disabled]) { border-color: var(--gold); }
.av__nav[disabled] { opacity: 0.3; cursor: default; }
.av__nav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.av__months { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 30px; align-items: start; max-width: calc(var(--n, 2) * 420px + (var(--n, 2) - 1) * 30px); margin: 30px auto 0; }
.av__bar:not([hidden]) + .av__months { margin-top: 0; }
.av-m[hidden] { display: none; }
.av-m__t { margin: 0 0 12px; font: 500 21px/1.1 var(--serif); text-align: center; text-transform: capitalize; color: var(--cream); }
.av-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.av-w { padding: 6px 0; text-align: center; font: 700 10.5px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.av-d { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); color: var(--cream); font: 600 13.5px/1 var(--sans); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.av-d--out { border: 0; background: transparent; cursor: default; }
.av-d:hover:not([disabled]):not(.av-d--out) { transform: scale(1.08); border-color: var(--gold); z-index: 1; }
.av-d:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.av-d.is-free::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3F9B5F; }
.av-d.is-busy { border-color: transparent; background: repeating-linear-gradient(135deg, var(--line-2) 0 5px, var(--alt) 5px 10px); color: var(--muted-3); text-decoration: line-through; }
.av-d.is-opt { border-color: rgba(201, 162, 75, 0.7); background: rgba(201, 162, 75, 0.2); }
.av-d.is-past { opacity: 0.3; cursor: default; }
.av-d.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.av-d.is-sel, .av-d.is-sel:hover { border-color: var(--gold); background: var(--gold); color: #1D1A17; text-decoration: none; }
.av-d.is-sel::after { display: none; }
.av__leg { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font: 600 13px/1 var(--sans); color: var(--muted); }
.av__leg li { display: flex; align-items: center; gap: 7px; }
.av-k { display: inline-block; width: 13px; height: 13px; border-radius: 3px; }
.av-k--free { background: var(--panel); border: 1px solid var(--line-strong); border-bottom: 3px solid #3F9B5F; }
.av-k--busy { background: repeating-linear-gradient(135deg, var(--line-strong) 0 3px, var(--alt) 3px 6px); }
.av-k--opt { background: rgba(201, 162, 75, 0.35); border: 1px solid var(--gold); }
.av-k--sel { background: var(--gold); }
.av__res { display: grid; gap: 10px; justify-items: center; align-content: center; max-width: 580px; min-height: 112px; margin: 26px auto 0; padding: 20px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); text-align: center; }
.av__res.is-ok { border-color: #3F9B5F; }
.av__res.is-no { border-color: var(--line-strong); }
.av__res.is-opt { border-color: var(--gold); }
.av__res > * { margin: 0; animation: djb-ot-in 0.35s ease both; }
.av__prompt { color: var(--muted); font-size: 15px; }
.av__res b { font: 500 22px/1.25 var(--serif); color: var(--cream); }
.av__res p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.av__alts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.av__alt { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 99px; background: transparent; color: var(--cream); font: 600 13px/1 var(--sans); cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.av__alt:hover { border-color: var(--gold); background: var(--hover-tint); }
.av__note { margin: 0; font-size: 13px; color: var(--muted-2); }
/* Avertissement du formulaire de contact */
.av-warn { margin: 8px 0 0; padding: 9px 12px; border-left: 3px solid var(--line-strong); border-radius: 0 6px 6px 0; background: var(--hover-tint); font-size: 13.5px; line-height: 1.5; color: var(--soft); animation: djb-ot-in 0.3s ease both; }
.av-warn[hidden] { display: none; }
.av-warn.is-ok { border-left-color: #3F9B5F; }
.av-warn.is-no { border-left-color: #C0504D; }
.av-warn.is-opt { border-left-color: var(--gold); }
@media (max-width: 760px) {
	.av__months { --n: 1 !important; max-width: 420px; }
	.av:not(.is-live) .av-m:nth-child(n + 2) { display: none; }
}

/* ---------- Lecteur de mix flottant ---------- */
.mxp {
	--mx-bg: rgba(20, 17, 14, 0.95); --mx-fg: #F5EFE4; --mx-mute: #B8AD9C; --mx-line: #3A332B; --mx-soft: rgba(245, 239, 228, 0.2); --mx-hover: rgba(201, 162, 75, 0.16); --mx-on: #C9A24B;
	position: fixed; left: 18px; bottom: 18px; z-index: 44; width: 316px; max-width: calc(100vw - 24px); overflow: hidden;
	border: 1px solid var(--mx-line); border-radius: 22px; background: var(--mx-bg); color: var(--mx-fg);
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	animation: djb-ot-in 0.5s ease both;
}
.mxp[hidden] { display: none; }
.mxp--ivoire { --mx-bg: rgba(250, 246, 238, 0.96); --mx-fg: #1D1A17; --mx-mute: #6B6258; --mx-line: #E4D9C6; --mx-soft: rgba(29, 26, 23, 0.16); --mx-hover: rgba(201, 162, 75, 0.2); --mx-on: #7E6226; box-shadow: 0 24px 60px -20px rgba(60, 40, 10, 0.45); }
.mxp--right { left: auto; right: 22px; bottom: 92px; }
.mxp__top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.mxp__vin { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #C9A24B 0 20%, #0E0D0C 22%), repeating-radial-gradient(circle, #0E0D0C 0 2px, #1D1A17 2px 3px); background-blend-mode: normal; border: 1px solid #2A2622; box-shadow: inset 0 0 0 4px #0E0D0C; }
.mxp__vin::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px); }
.mxp__vin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: #C9A24B; box-shadow: 0 0 0 2px #0E0D0C; }
.mxp__vin img { position: absolute; left: 50%; top: 50%; z-index: 1; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; object-fit: cover; }
.mxp__vin img[hidden] { display: none; }
.mxp.is-play .mxp__vin { animation: djb-ot-spin 3s linear infinite; }
.mxp__t { flex: 1; min-width: 0; }
.mxp__name, .mxp__sub { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mxp__name { font: 700 13.5px/1.25 var(--sans); }
.mxp__sub { margin-top: 1px; font: 500 12px/1.2 var(--sans); color: var(--mx-mute); }
.mxp__play { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: #1D1A17; font: 800 14px/1 var(--sans); cursor: pointer; transition: transform 0.2s ease; }
.mxp__play:hover { transform: scale(1.08); }
.mxp__more { flex: none; padding: 4px 6px; border: 0; background: none; color: var(--mx-mute); font-size: 18px; line-height: 1; cursor: pointer; transition: transform 0.3s ease; }
.mxp.is-open .mxp__more { transform: rotate(180deg); }
.mxp__play:focus-visible, .mxp__more:focus-visible, .mxp__item:focus-visible, .mxp__wf:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mxp__body { display: none; padding: 0 14px 12px; }
.mxp.has-played .mxp__body, .mxp.is-open .mxp__body { display: block; }
.mxp__wf { display: flex; align-items: center; gap: 2px; height: 28px; cursor: pointer; }
.mxp__wf i { flex: 1; min-height: 3px; border-radius: 2px; background: var(--mx-soft); transform-origin: 50% 50%; }
.mxp__wf i.on { background: var(--mx-on); }
.mxp.is-play .mxp__wf i.last { animation: djb-ot-eq 0.6s ease-in-out infinite; }
.mxp__time { display: flex; justify-content: space-between; margin-top: 3px; font: 600 11px/1 var(--sans); color: var(--mx-mute); font-variant-numeric: tabular-nums; }
.mxp__list { display: none; gap: 3px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--mx-line); }
.mxp.is-open .mxp__list { display: grid; }
.mxp__list-t { margin: 0 0 4px 4px; font: 700 10.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mx-mute); }
.mxp__item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--mx-fg); font: 600 13px/1.25 var(--sans); text-align: left; cursor: pointer; transition: background 0.2s ease; }
.mxp__item:hover { background: var(--mx-hover); }
.mxp__item.is-on { background: var(--mx-hover); color: var(--mx-on); }
.mxp__item small { flex: none; font: 500 12px/1.25 var(--sans); color: var(--mx-mute); }
@media (max-width: 600px) {
	.mxp { left: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 104px); min-width: 250px; }
	.mxp--right { left: auto; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: calc(100vw - 20px); }
	.mxp--no-mobile { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.mxp, .av__res > *, .av-warn { animation: none; }
	.mxp.is-play .mxp__vin, .mxp.is-play .mxp__wf i.last { animation: none; }
	.av-d, .mxp__more, .mxp__play { transition: none; }
}

/* ---------- Application BoujouZik en grand (accueil : « Voir un exemple ») ---------- */
html.lxv-lock { overflow: hidden; }
@keyframes djb-ot-rise { from { opacity: 0; transform: translateY(40px) scale(0.94); } }
@keyframes djb-ot-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.lxv { position: fixed; inset: 0; z-index: 99000; display: grid; place-items: center; padding: 16px; background: radial-gradient(70% 70% at 50% 45%, rgba(38, 33, 28, 0.94), rgba(14, 12, 10, 0.97)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease; }
.lxv[hidden] { display: none; }
.lxv.is-in { opacity: 1; }
.lxv__stage { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.lxv__phone { position: relative; height: min(84vh, 800px); height: min(84dvh, 800px); aspect-ratio: 300 / 580; max-width: calc(100vw - 32px); padding: 10px; border-radius: 42px; background: #0A0908; border: 2px solid #3A332B; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 7px rgba(255, 255, 255, 0.035), 0 0 90px -20px rgba(201, 162, 75, 0.35); }
.lxv.is-in .lxv__phone { animation: djb-ot-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lxv__phone::before { content: ""; position: absolute; top: 19px; left: 50%; z-index: 3; width: 28%; height: 20px; margin-left: -14%; border-radius: 12px; background: #0A0908; pointer-events: none; }
.lxv__screen { position: relative; height: 100%; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 32px; background: #0E1522; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.lxv__screen::-webkit-scrollbar { display: none; }
.lxv__screen:focus-visible { outline: none; }
.lxv.is-kbd .lxv__screen:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lxv__img { display: block; width: 100%; height: auto; margin-top: 24px; -webkit-user-drag: none; user-select: none; }
.lxv__bar { position: absolute; right: 5px; top: 28px; bottom: 28px; z-index: 4; width: 3px; border-radius: 3px; background: rgba(245, 239, 228, 0.12); pointer-events: none; }
.lxv__bar i { position: absolute; left: 0; right: 0; top: 0; height: 12%; border-radius: 3px; background: var(--gold); }
.lxv__hint { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 13px/1 var(--sans); letter-spacing: 0.04em; color: #CFC4B2; transition: opacity 0.5s ease; }
.lxv__hint.is-off { opacity: 0; }
.lxv__mouse { position: relative; flex: none; width: 15px; height: 24px; border: 1.5px solid #CFC4B2; border-radius: 8px; }
.lxv__mouse::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 5px; margin-left: -1px; border-radius: 2px; background: var(--gold); animation: djb-ot-nudge 1.4s ease-in-out infinite; }
.lxv__x { position: absolute; right: 14px; top: 12px; z-index: 5; width: 44px; height: 44px; border: 1px solid rgba(245, 239, 228, 0.25); border-radius: 50%; background: rgba(14, 12, 10, 0.6); color: #F5EFE4; font: 300 28px/1 var(--sans); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.lxv__x:hover { border-color: var(--gold); background: rgba(14, 12, 10, 0.9); }
.lxv__x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .lxv { padding: 10px; } .lxv__phone { height: min(78vh, 760px); height: min(78dvh, 760px); border-radius: 36px; } .lxv__screen { border-radius: 27px; } .lxv__x { right: 10px; top: 10px; } }
@media (prefers-reduced-motion: reduce) { .lxv, .lxv__hint { transition: none; } .lxv.is-in .lxv__phone, .lxv__mouse::after { animation: none; } }
