/* Styles principaux du bloc de commentaires */
.scb-comments-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* En-tête */
.scb-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.scb-comments-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0;
}

.scb-comments-count {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

/* Liste des commentaires */
.scb-comments-list {
    margin-bottom: 35px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.scb-comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.scb-comment-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

/* Avatar */
.scb-comment-avatar {
    flex-shrink: 0;
}

.scb-comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contenu du commentaire */
.scb-comment-content {
    flex: 1;
}

.scb-comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.scb-comment-author {
    font-weight: 600;
    color: #0073aa;
    font-size: 16px;
}

.scb-comment-date {
    font-size: 12px;
    color: #999;
}

.scb-comment-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.scb-reply-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 13px;
    padding: 5px 0;
    transition: color 0.3s;
}

.scb-reply-btn:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Aucun commentaire */
.scb-no-comments {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 10px;
    color: #999;
}

/* Formulaire */
.scb-comment-form-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.scb-comment-form-container h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1e1e1e;
}

/* Indicateur de réponse */
.scb-reply-indicator {
    background: #e8f4f8;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #0073aa;
}

.scb-cancel-reply {
    color: #dc3232;
    text-decoration: none;
    margin-left: 10px;
}

.scb-cancel-reply:hover {
    text-decoration: underline;
}

/* Grille formulaire */
.scb-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.scb-col {
    flex: 1;
}

.scb-form-group {
    margin-bottom: 20px;
}

.scb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.scb-input,
.scb-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: inherit;
}

.scb-input:focus,
.scb-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.scb-textarea {
    resize: vertical;
}

/* Bouton d'envoi */
.scb-submit-btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.scb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Messages */
.scb-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.scb-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scb-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .scb-comments-wrapper {
        padding: 15px;
        margin: 15px;
    }
    
    .scb-comment-item {
        flex-direction: column;
    }
    
    .scb-comment-avatar {
        align-self: flex-start;
    }
    
    .scb-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .scb-comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}