.chatbot-toggle-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(107deg, #f74986, #483A87);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(247, 73, 134, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.chatbot-toggle-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(247, 73, 134, 0.4);
}

#chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    height: 600px;
    background-color: rgba(15, 13, 37, 0.95);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(247, 73, 134, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(247, 73, 134, 0.2);
    backdrop-filter: blur(10px);
}

#chatbot-header {
    padding: 20px;
    background: linear-gradient(107deg, #f74986, #483A87);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#chatbot-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatbot-header span::before {
    content: '💼';
    font-size: 1.2em;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

#close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.8;
}

#close-chatbot:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
    opacity: 1;
}

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

.chatbot-message {
    max-width: 100%;
    padding: 12px 16px;
    border-radius: 18px;
    margin: 5px 0;
    word-wrap: break-word;
    font-size: 0.95em;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bot-message {
    background: rgba(247, 73, 134, 0.1);
    border: 1px solid rgba(247, 73, 134, 0.2);
    animation: fadeInLeft 0.3s ease forwards;
    color: white;
    align-self: flex-start;
    border-radius: 18px 18px 18px 5px;
}

.user-message {
    background: linear-gradient(107deg, #f74986, #483A87);
    animation: fadeInRight 0.3s ease forwards;
    color: white;
    align-self: flex-end;
    border-radius: 18px 18px 5px 18px;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#chatbot-input-container {
    padding: 20px;
    border-top: 1px solid rgba(247, 73, 134, 0.2);
    display: flex;
    gap: 12px;
    background: rgba(15, 13, 37, 0.98);
    border-radius: 0 0 20px 20px;
}

#chatbot-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid rgba(247, 73, 134, 0.2);
    border-radius: 25px;
    outline: none;
    background-color: rgba(15, 13, 37, 0.8);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95em;
}

#chatbot-input:focus {
    border-color: #f74986;
    box-shadow: 0 0 15px rgba(247, 73, 134, 0.2);
}

#chatbot-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#send-message {
    background: linear-gradient(107deg, #f74986, #483A87);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(247, 73, 134, 0.2);
}

#send-message:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(247, 73, 134, 0.3);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    margin: 5px 0 15px 0;
}

.quick-question {
    background: rgba(247, 73, 134, 0.1);
    border: 1px solid rgba(247, 73, 134, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-question:hover {
    background: linear-gradient(107deg, #f74986, #483A87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 73, 134, 0.3);
    border-color: transparent;
}

/* Questions rapides */
.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 5px;
    margin: 5px 0 15px 0;
}

.quick-question {
    background: rgba(184, 94, 230, 0.1);
    border: 1px solid rgba(184, 94, 230, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quick-question:hover {
    background: linear-gradient(107deg, #f74986, #483A87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 94, 230, 0.3);
}

/* Style des réponses */
.response-content {
    padding: 8px;
}

.response-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.15em;
    color: #f74986;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-content h4 {
    margin: 10px 0;
    font-size: 1.05em;
    color: #B85EE6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.response-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.response-content li {
    margin: 5px 0;
    line-height: 1.4;
}

.response-content p {
    margin: 8px 0;
    line-height: 1.4;
}

.response-content .highlight {
    color: #f74986;
    font-weight: 500;
    margin-top: 12px;
    padding: 8px;
    background: rgba(247, 73, 134, 0.1);
    border-radius: 8px;
}

.response-content .note {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
    padding-left: 8px;
    border-left: 2px solid #f74986;
}

/* Timeline style */
.timeline {
    margin: 20px 0;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin: 15px 0;
    border-left: 2px solid rgba(184, 94, 230, 0.3);
}

.timeline-dot {
    position: absolute;
    left: -11px;
    top: -2px;
    background: #0f0d25;
    padding: 2px;
}

/* Project items */
.project-item {
    margin: 12px 0;
    padding: 12px;
    border-left: 3px solid #f74986;
    background: rgba(184, 94, 230, 0.1);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateX(5px);
    background: rgba(184, 94, 230, 0.15);
}

/* Contact links */
.contact-links {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(184, 94, 230, 0.1);
    border: 1px solid rgba(184, 94, 230, 0.2);
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link i {
    font-size: 1.2em;
}

.contact-link:hover {
    background: linear-gradient(107deg, #f74986, #483A87);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 94, 230, 0.2);
}

/* Scrollbar personnalisée */
#chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: rgba(15, 13, 37, 0.8);
    border-radius: 3px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(107deg, #f74986, #483A87);
    border-radius: 3px;
    border: 2px solid rgba(15, 13, 37, 0.8);
}

/* Animation d'apparition */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message {
    animation: slideIn 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 480px) {
    #chatbot-container {
        width: 90%;
        height: 80vh;
        right: 5%;
        left: 5%;
        bottom: 80px;
    }
    
    .chatbot-toggle-button {
        width: 50px;
        height: 50px;
        font-size: 1.2em;
    }

    .quick-questions {
        gap: 6px;
    }

    .quick-question {
        padding: 6px 12px;
        font-size: 0.85em;
    }

    .contact-links {
        flex-direction: column;
    }
}

/* Liens dans les réponses */
.bot-message a {
    color: #B85EE6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bot-message a:hover {
    color: #f74986;
}

/* Style des listes */
.bot-message ul {
    list-style-type: none;
}

.bot-message ul li::before {
    content: "•";
    color: #f74986;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Texte en gras */
.bot-message strong {
    color: #B85EE6;
    font-weight: 600;
}

/* Skill sections */
.skill-section {
    margin: 10px 0;
}

/* Project items */
.project-item {
    margin: 10px 0;
    padding: 8px;
    border-left: 2px solid #f74986;
    background: rgba(184, 94, 230, 0.1);
}

.project-item h4 {
    margin: 0 0 5px 0;
}

.project-item p {
    margin: 0;
    font-size: 0.9em;
}

/* Loading */
.loading {
    opacity: 0.5;
}

.chatbot-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}
