/**
 * Styles du Module de Commentaires pour les Articles
 * Design moderne, convivial et adapté à la charte de MonsieurMike.be
 */

.commentaires-wrapper {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 2px dashed rgba(74, 144, 226, 0.2);
}

.commentaires-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 25px;
}

.commentaires-title {
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: 22px;
	font-weight: 700;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.commentaires-count-badge {
	background: #4A90E2;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
}

/* Liste des commentaires */
.commentaires-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 35px;
}

.commentaire-card {
	background: #ffffff;
	border: 1px solid rgba(74, 144, 226, 0.15);
	border-radius: 14px;
	padding: 18px 22px;
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.commentaire-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(74, 144, 226, 0.1);
}

.commentaire-top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.commentaire-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 16px;
	color: #ffffff;
	background: linear-gradient(135deg, #4A90E2, #357ABD);
	flex-shrink: 0;
	box-shadow: 0 3px 8px rgba(74, 144, 226, 0.25);
}

.commentaire-avatar-auteur {
	background: #ffffff !important;
	border: 2.5px solid #FFD93D;
	padding: 1px;
	box-shadow: 0 4px 10px rgba(255, 217, 61, 0.4);
	overflow: hidden;
}

.commentaire-avatar-img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.commentaire-card-auteur {
	border-left: 4px solid #4A90E2;
	background: #fbfdff;
	box-shadow: 0 6px 18px rgba(74, 144, 226, 0.08);
}

.commentaire-meta {
	flex: 1;
}

.commentaire-auteur {
	font-weight: 700;
	font-size: 15px;
	color: #2c3e50;
	display: flex;
	align-items: center;
	gap: 8px;
}

.commentaire-badge-admin {
	background: #FFD93D;
	color: #7a5a00;
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 12px;
}

.commentaire-date {
	font-size: 12px;
	color: #8c9ba5;
}

.commentaire-body {
	color: #4a5568;
	font-size: 14.5px;
	line-height: 1.6;
	word-break: break-word;
	white-space: pre-line;
	padding-left: 52px;
}

/* Aucun commentaire pour l'instant */
.commentaires-empty {
	background: rgba(255, 255, 255, 0.7);
	border: 1.5px dashed #cbd5e1;
	border-radius: 14px;
	padding: 30px 20px;
	text-align: center;
	color: #64748b;
	margin-bottom: 30px;
}

.commentaires-empty-icon {
	font-size: 36px;
	display: block;
	margin-bottom: 8px;
}

/* Formulaire d'ajout de commentaire */
.commentaire-form-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 26px;
	box-shadow: 0 10px 30px rgba(74, 144, 226, 0.08);
	border: 1px solid rgba(74, 144, 226, 0.15);
}

.commentaire-form-card h4 {
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: 18px;
	color: #2c3e50;
	margin-top: 0;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.comm-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

@media (max-width: 600px) {
	.comm-form-row {
		grid-template-columns: 1fr;
	}
	.commentaire-body {
		padding-left: 0;
		margin-top: 10px;
	}
}

.comm-field-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.comm-field-group label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
}

.comm-field-group input[type="text"],
.comm-field-group input[type="email"],
.comm-field-group input[type="number"],
.comm-field-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #d1d5db;
	border-radius: 10px;
	font-family: var(--font-body, inherit);
	font-size: 14px;
	color: #1e293b;
	background: #f8fafc;
	transition: all 0.2s ease;
	outline: none;
}

.comm-field-group input:focus,
.comm-field-group textarea:focus {
	border-color: #4A90E2;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

.comm-field-group textarea {
	resize: vertical;
	min-height: 100px;
}

.comm-hint {
	font-size: 11.5px;
	color: #94a3b8;
}

.comm-captcha-group {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f1f5f9;
	padding: 10px 14px;
	border-radius: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.comm-captcha-label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	display: flex;
	align-items: center;
	gap: 6px;
}

.comm-captcha-input {
	width: 80px !important;
	text-align: center;
	font-weight: bold;
}

.comm-submit-btn {
	background: linear-gradient(135deg, #4A90E2, #357ABD);
	color: #ffffff;
	border: none;
	padding: 12px 26px;
	border-radius: 10px;
	font-family: var(--font-heading, 'Poppins', sans-serif);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.comm-submit-btn:hover {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Alertes & Notifications */
.comm-alert {
	padding: 12px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.comm-alert-success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.comm-alert-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
