/**
 * Styles CSS pour le chatbot GPT - Frontend
 */

:root {
    --couleur-principale-chatbot: #e96531;
    --couleur-fond-chatbot: #f7f7f7;
}

/* Bouton flottant du chatbot */
.wp-chatbot-gpt-toggle {
    position: fixed;
    bottom: 55px;
    left: 0px;
    width: 60px;
    height: 60px;
    background: var(--couleur-principale-chatbot);
    border-radius: 0 50% 50% 0;
    box-shadow: 0 4px 20px rgba(233, 101, 49, 0.3);
    cursor: pointer;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
}

.wp-chatbot-gpt-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(233, 101, 49, 0.4);
}

.wp-chatbot-gpt-toggle-icon,
.wp-chatbot-gpt-toggle-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.wp-chatbot-gpt-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Popover du chatbot */
.wp-chatbot-gpt-container {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wp-chatbot-gpt-popover {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 400px;
    height: 600px;
    z-index: 999998;
    display: none;
    animation: slideUp 0.3s ease-out;
    transition: all 0.3s ease;
}

/* État agrandi du popup */
.wp-chatbot-gpt-popover.expanded {
    width: 90vw;
    height: 90vh;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
    .wp-chatbot-gpt-popover {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
    
    .wp-chatbot-gpt-popover.expanded {
        width: 100vw;
        height: 100vh;
        left: 0;
        right: 0;
        bottom: 0vh;
        margin: 0;
        padding: 0;
        transform: none;
    }
}

.wp-chatbot-gpt-popover.wp-chatbot-gpt-popover-open {
    display: block;
}

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

.wp-chatbot-gpt-header {
    background: var(--couleur-principale-chatbot);
    color: white;
    padding: 10px 20px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: start;
    justify-content: start;
}

.wp-chatbot-gpt-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: white !important;
    padding-bottom: 0;
    max-width: calc(100% - 40px);
}
.wp-chatbot-gpt-title .exp{ color: white; }

.wp-chatbot-gpt-clear {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 15px;
    transition: background-color 0.2s ease;
    opacity: 0.8;
}

.wp-chatbot-gpt-clear:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.wp-chatbot-gpt-clear svg {
    width: 16px;
    height: 16px;
    color: white;
}

/* Bouton de redimensionnement */
.wp-chatbot-gpt-resize {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 15px;
    transition: all 0.2s ease;
    opacity: 0.8;
}

.wp-chatbot-gpt-resize:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.wp-chatbot-gpt-resize svg {
    width: 16px;
    height: 16px;
    color: white;
    transition: transform 0.2s ease;
}

.wp-chatbot-gpt-resize.expanded svg {
    transform: scale(1.1);
}

#wp-chatbot-gpt-container.inputhide .wp-chatbot-gpt-input-container{
    display: none;
}


.wp-chatbot-gpt-messages {
    height: 450px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: height 0.3s ease;
}

.wp-chatbot-gpt-popover .wp-chatbot-gpt-messages {
    height: 450px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#wp-chatbot-gpt-container.inputhide .wp-chatbot-gpt-messages{
    height: 550px;
    max-height: 550px;
}


/* Messages en mode agrandi */
.wp-chatbot-gpt-popover.expanded .wp-chatbot-gpt-messages {
    height: calc(90vh - 120px);
    max-height: calc(90vh - 120px);
}

#wp-chatbot-gpt-container.wp-chatbot-gpt-popover.expanded.inputhide .wp-chatbot-gpt-messages {
    height: calc(90vh - 50px);
    max-height: calc(90vh - 50px);
}

.wp-chatbot-gpt-message {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease-out;
    gap: 8px;
    flex-direction: column;
}

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



.wp-chatbot-gpt-bot {
    justify-content: flex-start;
}

.wp-chatbot-gpt-error {
    justify-content: center;
}

/* Conteneur avatar et timestamp */
.wp-chatbot-gpt-avatar-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: 4px;
}

/* Avatars */
.wp-chatbot-gpt-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}
.wp-chatbot-gpt-user .wp-chatbot-gpt-avatar-container{
    flex-direction: row-reverse;
}

.wp-chatbot-gpt-user .wp-chatbot-gpt-avatar {
    background: var(--couleur-principale-chatbot);
    color: white;
}

.wp-chatbot-gpt-bot .wp-chatbot-gpt-avatar {
    background: #e9ecef;
    color: #6c757d;
}

.wp-chatbot-gpt-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.wp-chatbot-gpt-message-content:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
.wp-chatbot-gpt-user{
    align-items: flex-end;
}
.wp-chatbot-gpt-user .wp-chatbot-gpt-message-content {
    background: linear-gradient(135deg, var(--couleur-principale-chatbot) 0%, #d4552a 100%);
    color: white;
    border-bottom-right-radius: 4px;

    text-align: justify;
}

.wp-chatbot-gpt-user .wp-chatbot-gpt-message-content::before {
    content: '';
    position: absolute;
    bottom: 1px;
    right: -7px;
    width: 0;
    height: 0;
    border-left: 8px solid #d4552a;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.wp-chatbot-gpt-bot .wp-chatbot-gpt-message-content {
    background: white;
    color: #333;
    border: 1px solid #e1e5e9;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: justify;
    width: 100%;
}

.wp-chatbot-gpt-bot .wp-chatbot-gpt-message-content::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-right: 8px solid #e1e5e9;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.wp-chatbot-gpt-error .wp-chatbot-gpt-message-content {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #fed7d7;
    border-radius: 18px;
    text-align: center;
    max-width: 90%;
}


.wp-chatbot-gpt-bot .wp-chatbot-gpt-message-content .unapplicateur h3{
    font-weight: 800;
    margin-bottom: 0;
    font-size: 14px;
}
.wp-chatbot-gpt-bot .wp-chatbot-gpt-message-content .unapplicateur{
    padding: 2rem 0;
    border-bottom: 1px solid var(--couleur-principale);
}


.wp-chatbot-gpt-error .wp-chatbot-gpt-avatar {
    background: #fed7d7;
    color: #c53030;
}

.wp-chatbot-gpt-message-timestamp {
    font-size: 9px;
    color: #999;
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    white-space: nowrap;
    line-height: 1;
}



.wp-chatbot-gpt-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e5e9;
}

.wp-chatbot-gpt-popover .wp-chatbot-gpt-input-container {
    padding: 10px 15px;
}

.wp-chatbot-gpt-form {
    display: flex;
    align-items: center;
}

.wp-chatbot-gpt-input-wrapper {
    display: flex;
    width: 100%;
    background: var(--couleur-fond-chatbot);
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.wp-chatbot-gpt-input-wrapper:focus-within {
    border-color: var(--couleur-principale-chatbot);
    box-shadow: 0 0 0 3px rgba(233, 101, 49, 0.1);
}

.wp-chatbot-gpt-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.wp-chatbot-gpt-input::placeholder {
    color: #999;
}

.wp-chatbot-gpt-input:disabled {
    background: var(--couleur-fond-chatbot);
    color: #999;
    cursor: not-allowed;
}

button.wp-chatbot-gpt-send:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 0 25px 25px 0 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

button.wp-chatbot-gpt-send:not(.et_pb_menu__icon):hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

button.wp-chatbot-gpt-send:not(.et_pb_menu__icon):active:not(:disabled) {
    transform: translateY(0) !important;
}

button.wp-chatbot-gpt-send:not(.et_pb_menu__icon):disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.wp-chatbot-gpt-send-text {
    display: inline;
}

.wp-chatbot-gpt-send-icon {
    display: inline;
    font-size: 16px;
}

.wp-chatbot-gpt-send-disabled .wp-chatbot-gpt-send-text {
    display: none;
}

.wp-chatbot-gpt-send-disabled .wp-chatbot-gpt-send-icon {
    display: inline;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wp-chatbot-gpt-typing {
    padding: 0 20px 20px;
    order: 999999;
    display: none; /* Par défaut caché */
}

.wp-chatbot-gpt-typing.show {
    display: block !important;
}

.wp-chatbot-gpt-typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 70%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-chatbot-gpt-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wp-chatbot-gpt-typing-indicator span, .wp-chatbot-gpt-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--couleur-principale-chatbot);
    animation: typing 1.4s infinite ease-in-out;
}

.wp-chatbot-gpt-typing-indicator span:nth-child(1), .wp-chatbot-gpt-typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.wp-chatbot-gpt-typing-indicator span:nth-child(2), .wp-chatbot-gpt-typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.wp-chatbot-gpt-action-module-title{ width: 100%; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}


/* Styles pour les liens dans les messages */
.wp-chatbot-gpt-message-content a {
    color: var(--couleur-principale-chatbot);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.wp-chatbot-gpt-message-content a:hover {
    border-bottom-color: var(--couleur-principale-chatbot);
}

.wp-chatbot-gpt-user .wp-chatbot-gpt-message-content a {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.wp-chatbot-gpt-user .wp-chatbot-gpt-message-content a:hover {
    border-bottom-color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
    .wp-chatbot-gpt-container {
        border-radius: 0;
        box-shadow: none;
    }
    
    .wp-chatbot-gpt-popover {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        left: 20px;
        right: 20px;
        bottom: 90px;
    }
    
    .wp-chatbot-gpt-messages {
        height: 300px;
        max-height: 300px;
        padding: 15px;
    }
    
    .wp-chatbot-gpt-popover .wp-chatbot-gpt-messages {
        height: calc(100% - 180px);
        max-height: calc(100% - 180px);
    }

    .wp-chatbot-gpt-popover.expanded .wp-chatbot-gpt-messages {
        height: calc(100% - 120px);
        max-height: calc(100% - 120px);
    }
    
    .wp-chatbot-gpt-message-content {
        max-width: 100%;
        font-size: 13px;
    }
    
    .wp-chatbot-gpt-input-container {
        padding: 15px;
    }
    
    .wp-chatbot-gpt-popover .wp-chatbot-gpt-input-container {
        padding: 8px 15px;
    }
    
    .wp-chatbot-gpt-input {
        font-size: 13px;
    }
    
    .wp-chatbot-gpt-send {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .wp-chatbot-gpt-messages {
        height: 250px;
        max-height: 250px;
        padding: 10px;
    }
    
    .wp-chatbot-gpt-message-content {
        max-width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .wp-chatbot-gpt-input-container {
        padding: 10px;
    }
    
    .wp-chatbot-gpt-input {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .wp-chatbot-gpt-send {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .wp-chatbot-gpt-send-text {
        display: none;
    }
    
    .wp-chatbot-gpt-send-icon {
        display: inline;
    }
}

/* Styles pour l'accessibilité */
.wp-chatbot-gpt-input:focus {
    outline: none;
}

.wp-chatbot-gpt-send:focus {
    outline: 2px solid var(--couleur-principale-chatbot);
    outline-offset: 2px;
}

/* Module d'actions */
.wp-chatbot-gpt-action-module {
    margin-top: 12px;
    padding: 12px 0;
}

.wp-chatbot-gpt-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

button.wp-chatbot-gpt-action-btn:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
    min-width: 120px !important;
}

button.wp-chatbot-gpt-action-btn:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(233, 101, 49, 0.3) !important;
}

.wp-chatbot-gpt-other-question {
    background: #6c757d;
}

.wp-chatbot-gpt-other-question:hover {
    background: #5a6268;
}

/* Modal applicateur */
.wp-chatbot-gpt-applicateur-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-chatbot-gpt-applicateur-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wp-chatbot-gpt-applicateur-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.wp-chatbot-gpt-applicateur-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.wp-chatbot-gpt-applicateur-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wp-chatbot-gpt-applicateur-close:hover {
    background: #f5f5f5;
    color: #333;
}

.wp-chatbot-gpt-applicateur-modal-body {
    padding: 20px;
}

.wp-chatbot-gpt-postal-code-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    margin: 12px 0;
    transition: border-color 0.3s ease;
}

.wp-chatbot-gpt-postal-code-input:focus {
    outline: none;
    border-color: var(--couleur-principale-chatbot);
    box-shadow: 0 0 0 3px rgba(233, 101, 49, 0.1);
}

button.wp-chatbot-gpt-search-applicateur-btn:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

button.wp-chatbot-gpt-search-applicateur-btn:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

.wp-chatbot-gpt-applicateur-results {
    margin-top: 20px;
}

.wp-chatbot-gpt-applicateur-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.wp-chatbot-gpt-applicateur-item h5 {
    margin: 0 0 8px 0;
    color: var(--couleur-principale-chatbot);
    font-size: 16px;
}

.wp-chatbot-gpt-applicateur-item p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

.wp-chatbot-gpt-applicateur-item a {
    color: var(--couleur-principale-chatbot);
    text-decoration: none;
}

.wp-chatbot-gpt-applicateur-item a:hover {
    text-decoration: underline;
}

.wp-chatbot-gpt-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}


/* Formulaire de contact */
.wp-chatbot-gpt-contact-form {
    padding-top: 20px;
    margin-top: 10px;
}

.wp-chatbot-gpt-contact-header {
    margin-bottom: 20px;
}

.wp-chatbot-gpt-contact-header h4 {
    margin: 0 0 10px 0;
    color: var(--couleur-principale-chatbot);
    font-size: 16px;
}
.wp-chatbot-gpt-contact-header h4 .exp{ color: var(--couleur-principale-chatbot); }
.wp-chatbot-gpt-contact-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.wp-chatbot-gpt-contact-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wp-chatbot-gpt-form-group {
    display: flex;
    flex-direction: column;
}

.wp-chatbot-gpt-form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.wp-chatbot-gpt-form-group input,
.wp-chatbot-gpt-form-group textarea,
.wp-chatbot-gpt-form-group select {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
}

.wp-chatbot-gpt-form-group input:focus,
.wp-chatbot-gpt-form-group textarea:focus,
.wp-chatbot-gpt-form-group select:focus {
    outline: none;
    border-color: var(--couleur-principale-chatbot);
    box-shadow: 0 0 0 3px rgba(233, 101, 49, 0.1);
}

.wp-chatbot-gpt-form-group input[readonly] {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.wp-chatbot-gpt-form-group input:disabled,
.wp-chatbot-gpt-form-group textarea:disabled,
.wp-chatbot-gpt-form-group select:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

button.wp-chatbot-gpt-submit-contact:disabled {
    background: #28a745;
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

button.wp-chatbot-gpt-submit-contact:disabled:hover {
    background: #28a745;
    transform: none;
    box-shadow: none;
}

button.wp-chatbot-gpt-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.wp-chatbot-gpt-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

button.wp-chatbot-gpt-submit-contact:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
}

button.wp-chatbot-gpt-submit-contact:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

button.wp-chatbot-gpt-cancel-contact:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
}

button.wp-chatbot-gpt-cancel-contact:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

button.wp-chatbot-gpt-new-request-contact:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex: 1 !important;
}

button.wp-chatbot-gpt-new-request-contact:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

/* Bouton "Refaire une demande" dans le chat */
button.wp-chatbot-gpt-new-request-chat-btn:not(.et_pb_menu__icon) {
    background: var(--couleur-principale-chatbot) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    display: inline-block !important;
}

button.wp-chatbot-gpt-new-request-chat-btn:not(.et_pb_menu__icon):hover {
    background: #d4552a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(233, 101, 49, 0.3) !important;
}

/* Responsive pour le formulaire */
@media (max-width: 768px) {
    .wp-chatbot-gpt-form-actions {
        flex-direction: column;
    }
    
    .wp-chatbot-gpt-submit-contact,
    .wp-chatbot-gpt-cancel-contact,
    .wp-chatbot-gpt-new-request-contact {
        flex: none;
        width: 100%;
    }
}

/* Responsive pour la modal */
@media (max-width: 768px) {
    .wp-chatbot-gpt-applicateur-modal {
        padding: 10px;
    }
    
    .wp-chatbot-gpt-applicateur-modal-content {
        max-height: 90vh;
    }
    
    .wp-chatbot-gpt-action-buttons {
        flex-direction: column;
    }
    
    .wp-chatbot-gpt-action-btn {
        flex: none;
        width: 100%;
    }
}



/* Styles pour le message d'accueil */
.wp-chatbot-gpt-welcome-message {
    text-align: center;
    padding: 20px;
}

.wp-chatbot-gpt-welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.wp-chatbot-gpt-welcome-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.wp-chatbot-gpt-welcome-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--couleur-principale-chatbot, #f56509);
    text-align: center;
}
.wp-chatbot-gpt-welcome-title .exp{ color: var(--couleur-principale-chatbot); }

.wp-chatbot-gpt-welcome-text {
    margin: 0;
    font-size: 1em;
    color: #666;
    line-height: 1.4;
}

/* Mode sombre pour le message d'accueil */
@media (prefers-color-scheme: dark) {
    .wp-chatbot-gpt-welcome-title {
        color: #f56509;
    }
    
    .wp-chatbot-gpt-welcome-text {
        color: #ccc;
    }
}

/* Styles pour les actions du chatbot */
.wp-chatbot-gpt-actions {
    display: flex;
    justify-content: center;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

button.wp-chatbot-gpt-clear:not(.et_pb_menu__icon) {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--couleur-principale-chatbot, #f56509) !important;
    color: white !important;
    border: none !important;
    border-radius: 20px 0  0 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: auto !important;
    width: auto !important;
    transform: none !important;
    box-shadow: none !important;
}

button.wp-chatbot-gpt-clear:not(.et_pb_menu__icon):hover {
    background: #e55a08 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(245, 101, 9, 0.3) !important;
}

button.wp-chatbot-gpt-clear:not(.et_pb_menu__icon):active {
    transform: translateY(0) !important;
}

button.wp-chatbot-gpt-clear:not(.et_pb_menu__icon) svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

button.wp-chatbot-gpt-clear:not(.et_pb_menu__icon) span {
    white-space: nowrap;
}

/* Mode sombre pour les actions */
@media (prefers-color-scheme: dark) {
    .wp-chatbot-gpt-actions {
        background: #2a2a2a;
        border-top-color: #444;
    }
} 