:root {
  --kpro-blue: #2563eb;
  --kpro-blue-deep: #1e40af;
  --kpro-black: #050505;
  --kpro-white: #ffffff;
}
/*
  Intentionally minimal.
  The page UI is Tailwind-driven (see `index.html`).
  This file exists to avoid a broken stylesheet link and to provide
  a single source of truth for the brand palette (Blue/White/Black).
*/
/* --- Widget IA KPRO.tech --- */
/* --- Widget IA KPRO.tech (Version Animée & Minimisable) --- */

/* Animation d'apparition (Fade + Slide-in) */
@keyframes kpro-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 1. Le bouton "bulle" de bascule */
#kpro-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #111; /* Fond sombre comme tes boutons */
    color: #fff;
    border: 1px solid #333;
    border-radius: 50%; /* Cercle parfait */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10000; /* Toujours au-dessus */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease; /* Transition douce pour le hover */
}

/* Effet hover sur la bulle */
#kpro-chat-toggle:hover {
    background-color: #222; /* Légèrement plus clair */
    transform: scale(1.05); /* Léger grossissement */
    border-color: #444;
}

/* 2. La fenêtre de chat principale */
#kpro-chat-widget {
    position: fixed;
    bottom: 90px; /* Placé au-dessus de la bulle */
    right: 20px;
    width: 350px;
    height: 480px;
    background-color: #000000;
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 9999;
    font-family: monospace;
    overflow: hidden;
    
    /* Préparation pour l'animation */
    opacity: 0;
    pointer-events: none; /* Désactivé quand masqué */
    transform: translateY(20px);
    transition: all 0.3s ease-out; /* Transition pour la fermeture */
}

/* Classe pour afficher la fenêtre avec animation */
#kpro-chat-widget.kpro-chat-visible {
    opacity: 1;
    pointer-events: auto; /* Activé quand visible */
    transform: translateY(0);
    animation: kpro-slide-in 0.3s ease-out; /* Lance l'animation d'entrée */
}

/* Reste du style (En-tête, messages, input) */
#chat-header {
    background-color: #111;
    color: #fff;
    padding: 12px 15px;
    font-size: 13px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace le titre et le 'X' */
}

#chat-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s;
}

#chat-close:hover {
    color: #fff; /* Le 'X' devient blanc au survol */
}

#chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message {
    background-color: #2b2b2b;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-message {
    background-color: #111;
    color: #ccc;
    align-self: flex-start;
    border: 1px solid #333;
    border-bottom-left-radius: 2px;
}

#chat-input-area {
    display: flex;
    border-top: 1px solid #333;
    background-color: #000;
}

#chat-input {
    flex-grow: 1;
    padding: 15px;
    background-color: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    outline: none;
}

#chat-send {
    padding: 0 15px;
    background-color: transparent;
    color: #888;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

#chat-send:hover {
    color: #fff; /* L'icône d'envoi devient blanche au survol */
}