.thiasos-mood-widget {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.mood-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

.mood-header p {
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.emoji-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.emoji-option {
    cursor: pointer;
    touch-action: manipulation;
}

.emoji-option input[type="radio"] {
    display: none;
}

.emoji-option .emoji {
    display: inline-block;
    font-size: 28px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.emoji-option .emoji:hover {
    transform: scale(1.2);
    background: rgba(52, 152, 219, 0.1);
}

.emoji-option input[type="radio"]:checked + .emoji {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: scale(1.1);
}

.mood-text-input {
    margin-bottom: 15px;
}

.mood-text-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.mood-text-input small {
    color: #7f8c8d;
    font-size: 12px;
}

.mood-visibility-wrapper {
    margin-bottom: 20px;
}

.mood-visibility {
    margin-bottom: 10px;
}

.mood-visibility label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.mood-visibility select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mood-group-select {
    margin-top: 10px;
}

.mood-group-select label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.mood-group-select select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mood-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    position: relative;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #ecf0f1;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.mood-actions button {
    white-space: nowrap;
    min-width: fit-content;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-link {
    background: none;
    color: #3498db;
    padding: 5px 10px;
}

.current-mood {
    text-align: center;
    padding: 20px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
}

.mood-display {
    margin: 15px 0;
}

.mood-display .mood-emoji {
    font-size: 36px;
    margin-right: 10px;
}

.mood-display .mood-text {
    font-style: italic;
    color: #2c3e50;
}

.mood-message {
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

.mood-message.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.mood-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Mood Wall Styles */
.thiasos-mood-wall {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mood-wall-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.mood-wall-header h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

/* Amélioration de l'espacement et z-index */
.moods-list {
    position: relative;
}

.thiasos-mood-wall .mood-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 1;
}

.mood-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    z-index: 2;
}

.mood-item:has(.support-messages.show) {
    z-index: 100;
}

.mood-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mood-content .mood-emoji {
    font-size: 32px;
}

.mood-info strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.mood-info .mood-text {
    color: #7f8c8d;
    font-style: italic;
}

.mood-info .mood-time {
    display: block;
    color: #bdc3c7;
    font-size: 12px;
    margin-top: 5px;
}

/* Amélioration du bouton Onde Positive avec dégradé */
.send-wave-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.send-wave-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    animation: wiggle 0.5s ease;
}

.send-wave-btn:active {
    transform: scale(0.98);
}

.send-wave-btn.sent {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
    cursor: default;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg) scale(1.05); }
    25% { transform: rotate(-3deg) scale(1.05); }
    75% { transform: rotate(3deg) scale(1.05); }
}

/* Effet de brillance sur les boutons */
.send-wave-btn::before,
.support-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s;
}

.send-wave-btn:hover::before,
.support-btn:hover::before {
    left: 100%;
}

/* Amélioration du bouton principal Soutenir */
.support-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.support-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.support-btn:active {
    transform: scale(0.98);
}

/* Dropdown messages de soutien - Style amélioré avec z-index corrigé */
.support-dropdown {
    position: relative;
    z-index: 10;
}

.support-messages {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 220px;
    display: none;
    padding: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

.support-messages.show {
    display: block;
}

.support-message-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 4px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Variantes de couleurs pour chaque message */
.support-message-btn:nth-child(1) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.support-message-btn:nth-child(2) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.support-message-btn:nth-child(3) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.support-message-btn:nth-child(4) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.support-message-btn:nth-child(5) {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.support-message-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.support-message-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* Triangle/flèche pour le dropdown */
.support-messages::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

/* Bouton signaler */
.report-mood-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #bdc3c7;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.report-mood-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.report-mood-btn.reported {
    color: #2ecc71;
    cursor: default;
}

.report-mood-btn.loading {
    opacity: 0.5;
    cursor: wait;
}

.report-mood-btn.loading::after {
    content: '...';
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Messages flottants */
.floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    z-index: 9999;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.floating-message.success {
    background: #2ecc71;
    color: white;
}

.floating-message.error {
    background: #e74c3c;
    color: white;
}

.floating-message.info {
    background: #3498db;
    color: white;
}

/* Moods masqués automatiquement */
.mood-item.auto-hidden {
    opacity: 0.7;
    background: #fff3cd;
    border-color: #ffc107;
}

.mood-warning {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* No moods message */
.no-moods {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Footer du mur */
.mood-wall-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.mood-wall-login-prompt {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
}

.mood-wall-login-prompt p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

/* --- Styles pour les Badges --- */
.thiasos-mood-badges-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.thiasos-mood-badges-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.badges-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.badge-item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge-icon {
    font-size: 36px;
    margin-right: 15px;
}

.badge-info .badge-title {
    display: block;
    font-weight: bold;
    color: #34495e;
}

.badge-info .badge-date {
    font-size: 12px;
    color: #7f8c8d;
}

/* Styles pour les interactions */
.thiasos-mood-interactions {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 20px;
}

.thiasos-mood-interactions h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.interactions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.interaction-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.interaction-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.interaction-icon {
    font-size: 24px;
    margin-right: 12px;
}

.interaction-item small {
    margin-left: auto;
    color: #6c757d;
    font-size: 12px;
}

/* Animation bounce pour emojis */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-15px,0); }
    70% { transform: translate3d(0,-7px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

.bounce { 
    animation: bounce 0.6s ease; 
}

/* Styles pour Twemoji */
.twemoji-icon,
img.emoji {
    width: 1.2em !important;
    height: 1.2em !important;
    margin: 0 0.05em !important;
    vertical-align: -0.1em !important;
    display: inline-block !important;
}

.emoji-option .twemoji-icon {
    width: 28px !important;
    height: 28px !important;
}

.mood-content .mood-emoji .twemoji-icon {
    width: 32px !important;
    height: 32px !important;
}

.mood-display .mood-emoji .twemoji-icon {
    width: 36px !important;
    height: 36px !important;
}

/* RESPONSIVE POUR MOBILE - EMOJIS PLUS GRANDS */
@media (max-width: 768px) {
    .emoji-selection {
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        max-width: 350px;
        margin: 0 auto 20px auto;
    }
    
    .emoji-option .emoji {
        font-size: 36px; /* Augmentation pour mobile */
        padding: 12px;
        min-width: 60px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease; /* Animation plus rapide sur mobile */
    }
    
    .emoji-option .emoji:hover {
        transform: scale(1.15);
    }
    
    .emoji-option .emoji:active {
        transform: scale(0.95); /* Feedback tactile au touch */
    }
    
    .emoji-option input[type="radio"]:checked + .emoji {
        transform: scale(1.1);
        border-width: 3px;
    }
    
    /* Tooltips des emojis sur mobile */
    .emoji-option {
        position: relative;
    }
    
    .emoji-option::after {
        content: attr(title);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.8);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1000;
    }
    
    .emoji-option:active::after {
        opacity: 1;
    }
    
    /* Adaptation pour très petits écrans */
    @media (max-width: 480px) {
        .emoji-selection {
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            max-width: 280px;
        }
        
        .emoji-option .emoji {
            font-size: 32px;
            padding: 10px;
            min-width: 56px;
            min-height: 56px;
        }
    }
    
    /* Amélioration du reste de l'interface mobile */
    .mood-text-input input {
        font-size: 16px; /* Évite le zoom automatique sur iOS */
        padding: 14px;
    }
    
    .mood-visibility select,
    .mood-group-select select {
        font-size: 16px;
        padding: 12px;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px; /* Zone tactile confortable */
    }
    
    .mood-actions {
        position: relative;
        z-index: 1;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: space-around;
    }
    
    /* Amélioration des dropdowns sur mobile */
    .support-messages {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        top: auto;
        max-width: 90vw;
        width: 300px;
        z-index: 9999;
    }
    
    .support-messages::before {
        display: none;
    }
    
    .support-message-btn {
        font-size: 15px;
        padding: 14px 18px;
    }
    
    /* Adaptation des badges sur mobile */
    .badges-list {
        grid-template-columns: 1fr;
    }
    
    .badge-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .badge-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}