/* html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
 */
body {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: -1;
}

html, body {
    background-image: url("../img/background.28fc97f2f1a8.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* static/css/index.css */
.group:hover .group-hover\:block {
    display: block;
}

/* Animation pour le menu déroulant */
.relative .hidden {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    display: none;
}

.relative .hidden.block {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

/* static/css/index.css */
.group:hover .group-hover\:block {
    display: block;
}

/* Animation pour le menu déroulant */
.relative .hidden {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    display: none;
}

.relative .hidden.block {
    transform: translateY(0);
    opacity: 1;
    display: block;
}

/* Dialogue de présentation MrKarfour (accueil) */
.mk-dialogue {
  backdrop-filter: blur(8px);
}

.mk-msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  animation: mk-bubble-in 0.35s ease-out;
}

.mk-avatar {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  object-position: center bottom;
  flex-shrink: 0;
  background: transparent;
}

.mk-avatar-header {
  width: 2.75rem;
  height: 2.75rem;
}

.mk-msg-mrk {
  justify-content: flex-start;
  align-items: flex-end;
}

.mk-msg-user {
  justify-content: flex-end;
}

.mk-avatar-user {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--mk-primary-deep);
  background: var(--mk-secondary);
}

.mk-bubble {
  max-width: 82%;
  padding: 0.7rem 0.9rem;
  border-radius: 1.05rem;
  font-size: 0.925rem;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.mk-bubble-mrk {
  background: var(--mk-primary);
  color: var(--mk-text-on-primary);
  border-bottom-left-radius: 0.3rem;
}

.mk-bubble-user {
  background: var(--mk-secondary-bubble-bg);
  color: var(--mk-text);
  border: 1px solid var(--mk-secondary-bubble-border);
  border-bottom-right-radius: 0.3rem;
}

.mk-dialogue-link {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: #fff;
  color: var(--mk-primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
}

.mk-dialogue-link:hover {
  background: var(--mk-secondary);
  color: var(--mk-text);
}

.mk-dots {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  height: 1rem;
}

.mk-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  animation: mk-dot 1s ease-in-out infinite;
}

.mk-dots span:nth-child(2) { animation-delay: 0.15s; }
.mk-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes mk-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes mk-bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .mk-msg { animation: none; }
  .mk-dots span { animation: none; }
}

/* ─────────────────────────────────────────────
   Lisibilité sur fond photo sombre (background.jpg)
   ───────────────────────────────────────────── */
body {
  color: #f3f4f6;
}

main {
  color: #f9fafb;
}

/* Titres / sous-titres / liens hors cartes : clairs */
main .text-teal-800 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
main .text-teal-700 {
  color: #fde047 !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
main .text-gray-900 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
main .text-gray-700,
main .text-gray-600,
main .text-gray-500 {
  color: #e5e7eb !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Dans les panneaux clairs : restaurer le contraste sombre */
.bg-white .text-teal-800,
[class*="bg-white/"] .text-teal-800,
.bg-gray-50 .text-teal-800,
.bg-teal-50 .text-teal-800,
.bg-blue-50 .text-teal-800,
.bg-amber-50 .text-teal-800,
.bg-green-50 .text-teal-800,
.bg-indigo-50 .text-teal-800,
.bg-red-50 .text-teal-800,
.bg-orange-50 .text-teal-800,
.bg-purple-50 .text-teal-800,
.bg-yellow-50 .text-teal-800 {
  color: #115e59 !important;
  text-shadow: none;
}

.bg-white .text-teal-700,
[class*="bg-white/"] .text-teal-700,
.bg-gray-50 .text-teal-700,
.bg-teal-50 .text-teal-700,
.bg-blue-50 .text-teal-700,
.bg-amber-50 .text-teal-700,
.bg-green-50 .text-teal-700,
.bg-indigo-50 .text-teal-700 {
  color: #0f766e !important;
  text-shadow: none;
}

.bg-white .text-gray-900,
[class*="bg-white/"] .text-gray-900,
.bg-gray-50 .text-gray-900 {
  color: #111827 !important;
  text-shadow: none;
}

.bg-white .text-gray-700,
[class*="bg-white/"] .text-gray-700,
.bg-gray-50 .text-gray-700,
.bg-teal-50 .text-gray-700,
.bg-blue-50 .text-gray-700,
.bg-amber-50 .text-gray-700,
.bg-green-50 .text-gray-700,
.bg-indigo-50 .text-gray-700 {
  color: #374151 !important;
  text-shadow: none;
}

.bg-white .text-gray-600,
[class*="bg-white/"] .text-gray-600,
.bg-gray-50 .text-gray-600,
.bg-teal-50 .text-gray-600,
.bg-blue-50 .text-gray-600,
.bg-amber-50 .text-gray-600,
.bg-green-50 .text-gray-600,
.bg-indigo-50 .text-gray-600,
.bg-red-50 .text-gray-600,
.bg-orange-50 .text-gray-600,
.bg-purple-50 .text-gray-600,
.bg-yellow-50 .text-gray-600 {
  color: #4b5563 !important;
  text-shadow: none;
}

.bg-white .text-gray-500,
[class*="bg-white/"] .text-gray-500,
.bg-gray-50 .text-gray-500,
.bg-teal-50 .text-gray-500,
.bg-blue-50 .text-gray-500,
.bg-amber-50 .text-gray-500,
.bg-green-50 .text-gray-500,
.bg-indigo-50 .text-gray-500 {
  color: #6b7280 !important;
  text-shadow: none;
}

/* Texte hérité dans les cartes sans classe de couleur */
.bg-white,
[class*="bg-white/"],
.bg-gray-50 {
  color: #1f2937;
}

/* Liens d’action hors carte bien visibles */
.mk-page-link {
  color: #fde047 !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.mk-page-link:hover {
  color: #ffffff !important;
}

