.komments-title{
	margin-top: 30px;
}


/* Système de commentaires de vote */

.vote-comments-system {
    margin-top: 2rem;
}

.vote-form-wrapper {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.vote-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.vote-form-wrapper .radios {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vote-form-wrapper .radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vote-form-wrapper .radio input[type="radio"] {
    width: auto;
    margin: 0;
}

.vote-form-wrapper .radio label {
    margin: 0;
    cursor: pointer;
}

.vote-comment textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.vote-comment textarea:focus {
    border-color: #333;
}

.vote-comment small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.form-btn input[type="submit"] {
    background: #333;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.form-btn input[type="submit"]:hover {
    background: #555;
}

/* Commentaires existants */
.comments-list {
    margin-top: 2rem;
}

.comments-list h3{
    margin-bottom: var(--padding);
}

.comment {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment-author {
    font-weight: normal;
    color: #333;
    font-family: var(--font-sans);
}

.comment-date{
    font-size: 0.875rem;
    color: #999;
    font-family: var(--font-mono);
}

.comment-phase {
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

.comment-text {
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.comment-actions {
    margin-top: 1rem;
}

.reply-toggle {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0;
    text-decoration: underline;
}

.reply-toggle:hover {
    color: #333;
}

/* Formulaire de réponse */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 4px;
    display: none;
}

.reply-form.active {
    display: block;
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.reply-form textarea:focus {
    border-color: #333;
}

.reply-form-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-form button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.reply-form button[type="submit"] {
    background: #333;
    color: white;
}

.reply-form button[type="submit"]:hover {
    background: #555;
}

.reply-form button[type="button"] {
    background: #e0e0e0;
    color: #333;
}

.reply-form button[type="button"]:hover {
    background: #d0d0d0;
}

/* Réponses (threads) */
.comment-replies {
    margin-top: 1rem;
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #e0e0e0;
}

.comment-reply {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.comment-reply .comment-header {
    border-bottom: 1px solid #e0e0e0;
}

.comment-reply .comment-author {
    font-size: 0.95rem;
}

.comment-reply .comment-date{
    font-size: 0.8rem;
}

.comment-reply .comment-text {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Messages d'alerte */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert.fail {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert.vote {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Styles pour les réactions - À ajouter à vote-comments.css */

/* Container des réactions */
.comment-reactions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* Boutons de réaction */
.reaction-btn {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.reaction-btn:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
    transform: scale(1.05);
}

/* Réaction active (utilisateur a déjà réagi) */
.reaction-btn.active {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    font-weight: 500;
}

.reaction-btn.active:hover {
    background: #bbdefb;
}

/* Compteur de réactions */
.reaction-count {
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 1rem;
    text-align: center;
}

/* Cache le compteur si = 0 */
.reaction-count:empty::after {
    content: "0";
}

/* Animations */
@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reaction-btn:active {
    animation: reactionPop 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .comment-reactions {
        gap: 0.4rem;
    }
    
    .reaction-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
    }
}

/* Variante avec emojis plus grands */
.reaction-btn {
    font-size: 1rem; /* Ajuster si besoin */
}

/* Style alternatif : boutons ronds */
.reaction-btn.round {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
}

/* Tooltip pour les réactions */
.reaction-btn {
    position: relative;
}

/* Tooltip visible au survol */
.reaction-btn[data-tooltip]:not([data-tooltip=""]):hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: normal;
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

/* Flèche du tooltip */
.reaction-btn[data-tooltip]:not([data-tooltip=""]):hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

/* Animation d'apparition */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Empêcher le tooltip de dépasser de l'écran sur mobile */
@media (max-width: 768px) {
    .reaction-btn[data-tooltip]:not([data-tooltip=""]):hover::after {
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }
}

/* Style alternatif : tooltip plus stylé */
.reaction-btn[data-tooltip]:not([data-tooltip=""]):hover::after {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}



/* Responsive */
@media (max-width: 768px) {
    .comment-replies {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .vote-form-wrapper {
        padding: 1rem;
    }
}