/* ============================================================================
   LOGIN PROMPT - MESSAGE DE CONNEXION
   ============================================================================ */

.login-prompt-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.login-prompt-content {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideInFromBottom 0.6s ease;
}

.login-prompt-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 
        0 10px 30px rgba(255, 215, 0, 0.4),
        0 0 50px rgba(255, 215, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

.login-prompt-icon i {
    font-size: 50px;
    color: #000;
}

.login-prompt-title {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    letter-spacing: 1px;
}

.login-prompt-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 50px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.login-prompt-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.feature-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.feature-item i {
    font-size: 40px;
    color: #ffd700;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-item p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.login-prompt-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.login-prompt-btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-prompt-btn.primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.login-prompt-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.login-prompt-btn.secondary {
    background: transparent;
    color: #ffd700;
    border-color: #ffd700;
}

.login-prompt-btn.secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.login-prompt-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
    font-size: 0.9rem;
    margin-top: 30px;
}

.login-prompt-info i {
    color: #ffd700;
    font-size: 1.1rem;
}

/* ============================================================================
   CHATBOT SECTION - STYLES PRINCIPAUX AMÉLIORÉS
   ============================================================================ */

.chatbot-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.chatbot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.chatbot-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 60px;
}

.chatbot-title {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.chatbot-title i {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.chatbot-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.chatbot-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: stretch;
}

.chatbot-info,
.chatbot-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================================================
   SECTION INFORMATIONS AMÉLIORÉE
   ============================================================================ */

.chatbot-info {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.03) 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 24px;
    padding: 0;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.info-card {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 25px;
    border-radius: 22px 22px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid rgba(0, 0, 0, 0.1);
}

.info-icon i {
    font-size: 28px;
    color: #000;
}

.info-card h3 {
    color: #000;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
}

.info-item {
    margin: 0;
    padding: 25px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background: rgba(255, 215, 0, 0.05);
    transform: translateX(5px);
}

.info-item-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.info-item-icon i {
    color: #ffd700;
    font-size: 18px;
}

.info-item-content {
    flex: 1;
}

.info-item h4 {
    color: #ffd700;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.info-item p {
    color: #cccccc;
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.info-item.highlight {
    background: rgba(255, 215, 0, 0.05);
    border-radius: 0 0 22px 22px;
    border-bottom: none;
}

.example-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.question-tag {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
}

.question-tag:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.4);
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 22px 22px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 5px;
}

.stat-value i {
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================================
   WIDGET CHATBOT AMÉLIORÉ
   ============================================================================ */

.chatbot-widget {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ffd700;
    border-radius: 24px;
    padding: 0;
    box-shadow: 
        0 20px 60px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.widget-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.widget-header-enhanced {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.bot-avatar i {
    font-size: 24px;
    color: #000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.avatar-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid #ffd700;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.bot-info {
    flex: 1;
}

.bot-info h3 {
    color: #ffd700;
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #00ff00;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    color: #ffd700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-icon:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

/* ============================================================================
   WEBCHAT CONTAINER
   ============================================================================ */

#webchat {
    height: 1000px !important;
    max-height: 1000px !important;
    width: 100%;
    overflow: hidden !important;
    position: relative;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

#webchat > div {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

#webchat [role="log"],
#webchat .webchat__basic-transcript,
#webchat .webchat__scrollable {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    flex: 1 !important;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Ascenseur doré visible (Desktop uniquement) */
@media (min-width: 769px) {
    #webchat [role="log"]::-webkit-scrollbar,
    #webchat .webchat__basic-transcript::-webkit-scrollbar,
    #webchat .webchat__scrollable::-webkit-scrollbar {
        width: 14px !important;
    }

    #webchat [role="log"]::-webkit-scrollbar-track,
    #webchat .webchat__basic-transcript::-webkit-scrollbar-track,
    #webchat .webchat__scrollable::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 10px !important;
        margin: 10px 0 !important;
        border: 1px solid rgba(255, 215, 0, 0.2) !important;
    }

    #webchat [role="log"]::-webkit-scrollbar-thumb,
    #webchat .webchat__basic-transcript::-webkit-scrollbar-thumb,
    #webchat .webchat__scrollable::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #ffd700 0%, #ffed4e 100%) !important;
        border-radius: 10px !important;
        border: 2px solid rgba(0, 0, 0, 0.5) !important;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
    }

    #webchat [role="log"]::-webkit-scrollbar-thumb:hover,
    #webchat .webchat__basic-transcript::-webkit-scrollbar-thumb:hover,
    #webchat .webchat__scrollable::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #ffed4e 0%, #ffd700 100%) !important;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    }

    #webchat [role="log"],
    #webchat .webchat__basic-transcript,
    #webchat .webchat__scrollable {
        scrollbar-width: auto !important;
        scrollbar-color: #ffd700 rgba(255, 255, 255, 0.08) !important;
    }
}

/* Mobile - Scrollbar par défaut */
@media (max-width: 768px) {
    #webchat [role="log"]::-webkit-scrollbar,
    #webchat .webchat__basic-transcript::-webkit-scrollbar,
    #webchat .webchat__scrollable::-webkit-scrollbar {
        width: auto !important;
    }
    
    #webchat [role="log"],
    #webchat .webchat__basic-transcript,
    #webchat .webchat__scrollable {
        scrollbar-width: thin !important;
        scrollbar-color: auto !important;
    }
}

/* ============================================================================
   WIDGET FOOTER AMÉLIORÉ
   ============================================================================ */

.widget-footer-enhanced {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 1;
}

.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #999;
    font-size: 0.85rem;
}

.footer-info i {
    color: #ffd700;
    font-size: 1rem;
}

/* ============================================================================
   RESPONSIVE DESIGN - LOGIN PROMPT
   ============================================================================ */

@media (max-width: 768px) {
    .login-prompt-content {
        padding: 40px 30px;
    }

    .login-prompt-icon {
        width: 80px;
        height: 80px;
    }

    .login-prompt-icon i {
        font-size: 40px;
    }

    .login-prompt-title {
        font-size: 2rem;
    }

    .login-prompt-subtitle {
        font-size: 1rem;
    }

    .login-prompt-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-item {
        padding: 25px;
    }

    .feature-item i {
        font-size: 35px;
    }

    .feature-item h3 {
        font-size: 1.2rem;
    }

    .login-prompt-actions {
        flex-direction: column;
        gap: 15px;
    }

    .login-prompt-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-prompt-content {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .login-prompt-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .login-prompt-icon i {
        font-size: 35px;
    }

    .login-prompt-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .login-prompt-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .login-prompt-features {
        margin: 30px 0;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-item i {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .login-prompt-actions {
        margin: 30px 0;
    }

    .login-prompt-info {
        font-size: 0.85rem;
        margin-top: 20px;
    }
}

/* ============================================================================
   RESPONSIVE DESIGN - CHATBOT
   ============================================================================ */

@media (max-width: 1200px) {
    .chatbot-content {
        grid-template-columns: 350px 1fr;
        gap: 30px;
    }
    
    .chatbot-info,
    .chatbot-widget {
        height: 100%;
    }
}

@media (max-width: 1024px) {
    .chatbot-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chatbot-info {
        order: 2;
        position: static;
    }

    .chatbot-widget {
        order: 1;
    }
}

@media (max-width: 768px) {
    .chatbot-section {
        padding: 60px 0;
    }

    .chatbot-title {
        font-size: 2.2rem;
    }

    .chatbot-subtitle {
        font-size: 1rem;
    }

    .chatbot-info,
    .chatbot-widget {
        border-radius: 20px;
    }

    #webchat {
        height: 500px !important;
        max-height: 500px !important;
    }

    .header-top {
        gap: 12px;
    }

    .bot-avatar {
        width: 45px;
        height: 45px;
    }

    .bot-info h3 {
        font-size: 1.1rem;
    }

    .info-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .chatbot-section {
        padding: 40px 0;
    }

    .chatbot-container {
        padding: 0 15px;
    }

    .chatbot-title {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }

    .chatbot-subtitle {
        font-size: 0.95rem;
    }

    .chatbot-header {
        margin-bottom: 40px;
    }

    .info-card {
        padding: 20px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

    .info-icon i {
        font-size: 24px;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

    .info-item {
        padding: 20px;
        flex-direction: column;
        gap: 12px;
    }

    .info-item-icon {
        width: 36px;
        height: 36px;
    }

    .info-item h4 {
        font-size: 1rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .widget-header-enhanced {
        padding: 15px;
    }

    .header-top {
        gap: 10px;
    }

    .bot-avatar {
        width: 40px;
        height: 40px;
    }

    .bot-avatar i {
        font-size: 20px;
    }

    .bot-info h3 {
        font-size: 1rem;
    }

    #webchat {
        height: 450px !important;
        max-height: 450px !important;
    }

    .widget-footer-enhanced {
        padding: 12px 15px;
    }

    .footer-info {
        font-size: 0.8rem;
    }

    .question-tag {
        font-size: 0.8rem;
    }
}

/* ============================================================================
   ANIMATIONS SUPPLÉMENTAIRES
   ============================================================================ */

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-widget {
    animation: slideInFromBottom 0.6s ease;
}

.chatbot-info {
    animation: slideInFromBottom 0.6s ease 0.2s both;
}

.info-item {
    animation: slideInFromBottom 0.4s ease both;
}

.info-item:nth-child(1) { animation-delay: 0.1s; }
.info-item:nth-child(2) { animation-delay: 0.2s; }
.info-item:nth-child(3) { animation-delay: 0.3s; }
.info-item:nth-child(4) { animation-delay: 0.4s; }
.info-item:nth-child(5) { animation-delay: 0.5s; }

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.chat-input:focus,
.chat-action-btn:focus,
.chat-send-btn:focus,
.mode-btn:focus,
.action-icon:focus {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.