/**
 * Commentaires — single exposition uniquement (.exposition-comments-area).
 * Indépendant du CSS overlay produit (product-comments-template.css).
 */

.exposition-comments-area {
	width: 70%;
	max-width: 100%;
	margin: 100px auto 0;
	box-sizing: border-box;
	scroll-margin-top: 100px;
}

.exposition-comments-title {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 600;
	margin-bottom: 1.75rem;
	color: #000;
	text-align: center;
}

.exposition-comments-area .overlay-section-content {
	padding: 0;
	overflow: visible;
}

.exposition-comments-area .info-section {
	max-width: 100%;
}

/* Liste */
.exposition-comments-area .comments-list {
	margin-top: 0;
	text-align: center;
}

/*
 * Bandeaux de statut (modération, etc.) : mêmes classes que l’overlay produit
 * (.comment-status-message, .is-warning) — styles dans product-comments-template.css
 */
.exposition-comments-area .comments-list > .comment-status-message {
	margin: 0 0 15px 0;
	width:100%;
	text-align:center;
}

.exposition-comments-area .comments-list > .comment-status-message p {
	margin: 0;
	font-size: 0.9em;
    width: 100%;
	font-weight:bold;
}

/* Ancre navigateur après publication (commentaire publié) */
.exposition-comments-area .comment[id^="comment-"] {
	scroll-margin-top: 90px;
}

.exposition-comments-area .comments-pagination {
	display: flex;
	justify-content: flex-end;
	margin-top: 15px;
}

.exposition-comments-area .comments-load-more {
	border: 1px solid #000;
	background: #fff;
	color: #000;
	padding: 10px 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 20px;
	font-size: 12px;
}

.exposition-comments-area .comments-load-more:hover:not(:disabled) {
	background: #000;
	color: #fff;
}

.exposition-comments-area .comments-load-more:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.exposition-comments-area .comment {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px 0px;
	
}

.exposition-comments-area .comments-list .comment.admin-comment {
	background: #f1f1f1;
	margin-left: 0;
}

@media (min-width: 769px) {
	.exposition-comments-area .comments-list .comment.admin-comment {
		margin-left: 8%;
	}
}

.exposition-comments-area .comment .comment-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 10px;
	gap: 12px;
	flex-wrap: wrap;
}

.exposition-comments-area .comments-list .comment .comment-author {
	font-weight: 600;
	color: #777;
	font-size: 0.7em;
	text-transform: capitalize;
}

.exposition-comments-area .comments-list .comment.admin-comment .comment-author {
	font-weight: 700;
}

.exposition-comments-area .comments-list .comment .comment-meta {
	color: #777;
	font-size: 0.7em;
}

.exposition-comments-area .comment .comment-content {
	color: #495057;
	line-height: 1.65;
	font-size: 1rem;
}

.exposition-comments-area .comment .comment-content p {
	margin-bottom: 10px;
}

.exposition-comments-area .comment .comment-content p:last-child {
	margin-bottom: 0;
}

/* Bloc formulaire */
.exposition-comments-area .comment-form {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	flex-wrap: wrap;
	background: #f8f9fa;
	padding: 40px;
	border-radius: 8px;
	margin-top: 48px;
	margin-bottom: 24px;
	border: 1px solid #e9ecef;
}

.exposition-comments-area .comment-form-header {
	flex: 0 0 28%;
	min-width: 200px;
}

.exposition-comments-area .comment-form h3 {
	color: #000;
	margin-bottom: 15px;
	font-size: 1.3em;
	background-image: url("../assets/icons/black-comments-icon.svg");
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 40px;
	padding-left: 60px;
	line-height: 1.3;
}

.exposition-comments-area .comment-form-header p {
	font-size: 0.95em;
	line-height: 1.5;
	color: #495057;
}

.exposition-comments-area .user-info {
	background: #ecf0f1;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 0.95em;
}

/* Formulaire natif (sans .comment-form-ajax) */
.exposition-comments-area #commentform {
	flex: 1;
	min-width: 260px;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 70%;
}

.exposition-comments-area #commentform .form-group {
	margin-bottom: 15px;
}

.exposition-comments-area #commentform label {
	display: block;
	font-weight: 600;
	color: #000;
	font-size: 14px;
	margin-bottom: 10px;
}

.exposition-comments-area #commentform input[type="text"],
.exposition-comments-area #commentform input[type="email"],
.exposition-comments-area #commentform textarea {
	width: 100%;
	padding: 10px 12px;
	font-size: 0.95em;
	border: 1px solid #000;
	background: #fff;
	box-shadow: none;
	box-sizing: border-box;
}

.exposition-comments-area #commentform input:focus,
.exposition-comments-area #commentform textarea:focus {
	outline: none;
	border-color: #000;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.exposition-comments-area #commentform textarea {
	min-height: 120px;
	resize: vertical;
}

.exposition-comments-area #commentform .required {
	color: #e74c3c;
	font-weight: bold;
}

.exposition-comments-area #commentform .form-actions {
	margin-top: 20px;
	text-align: right;
}

.exposition-comments-area #commentform #submit {
	padding: 12px 24px;
	border: 1px solid #000;
	background-color: #000;
	color: #fff;
	cursor: pointer;
	font-weight: 600;
	font-size: 1em;
	transition: background 0.2s ease, color 0.2s ease;
}

.exposition-comments-area #commentform #submit:hover:not(:disabled) {
	background-color: #fff;
	color: #000;
}

.exposition-comments-area #commentform #submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.exposition-comments-area #comment-status {
	margin-top: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
	.exposition-comments-area {
		width: 90%;
	}
}

@media (max-width: 768px) {
	.exposition-comments-area {
		width: 100%;
		margin-top: 48px;
		padding: 0 12px;
	}

	.exposition-comments-area .comment-form {
		flex-direction: column;
		padding: 28px 20px;
		margin-top: 32px;
	}

	.exposition-comments-area .comment-form-header {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.exposition-comments-area #commentform {
		max-width: 100%;
	}

	.exposition-comments-area .comment-form h3 {
		background-size: 32px;
		padding-left: 48px;
		font-size: 1.15em;
	}
}
