/* === DESIGN PRESSOIR COTEAUX DU LINON v2 === */

/* 1. Le Bouton Flottant (Pomme Pulsante) */
.claude-chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #65a30d 0%, #365314 100%); /* Vert Intense */
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(54, 83, 20, 0.4);
    border: 2px solid #bef264;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.claude-chat-toggle:hover {
    transform: scale(1.1) rotate(15deg);
}

/* 2. La Fenêtre de Chat (Style iPhone) */
.claude-chat-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: 75vh;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border: 1px solid rgba(0,0,0,0.05);
}

/* 3. L'En-tête (Dégradé Nature) */
.claude-chat-header {
    background: linear-gradient(135deg, #4d7c0f 0%, #1a2e05 100%);
    padding: 20px 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.claude-chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.claude-chat-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* 4. Zone de Messages */
.claude-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f3f4f6;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px; /* Petit effet papier millimétré subtil */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bulle Bot (Blanc pur) */
.claude-message-assistant {
    align-self: flex-start;
    background: #ffffff;
    color: #1f2937;
    padding: 15px;
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    max-width: 85%;
    font-size: 14px;
    line-height: 1.5;
}

/* Le message de bienvenue n'est plus jaune, il est blanc comme les autres */
.claude-welcome {
    background: #ffffff;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    border-left: 4px solid #84cc16; /* Petite touche verte */
}

/* Bulle User (Vert Pomme) */
.claude-message-user {
    align-self: flex-end;
    background: #65a30d;
    color: white;
    padding: 12px 18px;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 4px 10px rgba(101, 163, 13, 0.3);
    max-width: 80%;
    font-size: 14px;
    font-weight: 500;
}

/* 5. Zone de Saisie */
.claude-chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.claude-chat-input {
    flex: 1;
    background: #f3f4f6;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.2s;
    height: 45px; /* Hauteur fixe */
    resize: none;
}

.claude-chat-input:focus {
    box-shadow: 0 0 0 2px #bef264;
    background: white;
}

.claude-chat-send {
    width: 45px;
    height: 45px;
    background: #4d7c0f;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.claude-chat-send:hover {
    transform: scale(1.1);
    background: #365314;
}