/* Created by TopStyle Trial - www.topstyle4.com */
/* --- Page Header --- */
.page-header {
    padding: 160px 0 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--white), var(--gold-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Chat Section --- */
.chat-section {
    padding: 40px 0 80px;
    background: var(--bg-color);
    min-height: 600px;
}

.chat-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Interface Chat */
.chat-interface {
    background: #1E1E1E;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: #252525;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bot-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    position: relative;
}

/* Petit point vert "en ligne" */
.bot-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #27C93F;
    border-radius: 50%;
    border: 2px solid #1E1E1E;
}

.bot-identity h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--white);
    font-family: var(--font-title);
}

.status-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reset-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
}

.reset-chat:hover {
    color: var(--gold-primary);
}

/* Corps du chat */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1A1A1A;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) #1A1A1A;
}

.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background-color: var(--gold-primary); border-radius: 3px; }

/* Messages */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255,255,255,0.05);
}

.user-message {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-weight: 500;
}

/* Boutons de réponse (Chips) */
.response-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.option-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.option-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-color);
}

/* Zone de saisie */
.chat-input-area {
    padding: 15px;
    background: #252525;
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

#user-input {
    flex: 1;
    background: #1A1A1A;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 2px;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

#user-input:focus {
    border-color: var(--gold-primary);
}

.send-btn {
    background: var(--gold-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: var(--bg-color);
}

.send-btn:hover {
    background: var(--white);
    transform: scale(1.05);
}

.send-btn:disabled {
    background: #333;
    color: #555;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Info */
.chat-info-side {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    height: fit-content;
}

.chat-info-side h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-family: var(--font-title);
}

.chat-info-side ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.chat-info-side li {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-info-side li strong {
    color: var(--gold-primary);
}

.note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* Responsive */
@media (max-width: 968px) {
    .chat-wrapper {
        grid-template-columns: 1fr;
    }
    .chat-interface {
        height: 500px;
    }
    .chat-info-side {
        display: none; /* Caché sur mobile pour focaliser sur le chat */
    }
}