/* ================================================================
   DIVI TIMBRE SINGLE — Fiche individuelle de timbre
   ================================================================ */

/* ── Container ── */
.dts-stamp-single {
	font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}

/* ── Back Link ── */
.dts-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
	transition: color 0.2s ease;
}
.dts-back-link:hover {
	color: #005f8a;
}

/* ── Card container ── */
.dts-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.dts-card-body {
	display: flex;
	gap: 35px;
	padding: 35px;
}

/* ══════════════════════════════════════════
   IMAGE COLUMN
   ══════════════════════════════════════════ */
.dts-img-col {
	flex: 0 0 380px;
	position: relative;
}

.dts-main-img-wrapper {
	position: relative;
	width: 100%;
	background: #f9fafb;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.dts-main-img-wrapper img {
	width: 100%;
	height: auto;
	display: block;
	cursor: zoom-in;
	object-fit: contain;
	min-height: 250px;
	max-height: 450px;
	padding: 15px;
	transition: opacity 0.2s ease;
}
.dts-main-img-wrapper img:hover {
	opacity: 0.92;
}

/* Nav arrows */
.dts-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1f2937;
	font-size: 18px;
	transition: all 0.2s ease;
	z-index: 5;
	box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dts-nav:hover {
	background: #fff;
	color: #0073aa;
	transform: translateY(-50%) scale(1.1);
}
.dts-nav.prev { left: 10px; }
.dts-nav.next { right: 10px; }

/* Counter */
.dts-counter {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	pointer-events: none;
}

/* Thumbnails strip */
.dts-thumbnails {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	padding: 4px 0;
}

.dts-gallery-thumb {
	flex: 0 0 68px;
	height: 68px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.15s ease;
	background: #f3f4f6;
}
.dts-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}
.dts-gallery-thumb:hover {
	border-color: #93c5fd;
	transform: scale(1.05);
}
.dts-gallery-thumb.active {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Condition badge */
.dts-condition-badge {
	display: inline-block;
	margin-top: 12px;
	padding: 6px 18px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dts-condition-badge.neuf,
.dts-condition-badge.mint {
	background: #10b981 !important;
	color: #fff !important;
	border: 1px solid #065f46 !important;
}

.dts-condition-badge.oblitere,
.dts-condition-badge.used {
	background: #1f2937 !important;
	color: #ffffff !important;
	border: 1px solid #000 !important;
}

/* ══════════════════════════════════════════
   INFO COLUMN
   ══════════════════════════════════════════ */
.dts-info-col {
	flex: 1;
	min-width: 0;
}

.dts-collection-row {
	margin-bottom: 10px;
}

/* Reuse lightbox collection tag */
.dts-stamp-single .collection-tag {
	background: #e1f0fa;
	color: #0073aa;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dts-title {
	margin: 0 0 16px 0;
	font-size: 1.8rem;
	color: #1f2937;
	font-weight: 700;
	line-height: 1.3;
}

/* Meta section (identifiers) */
.dts-meta-section {
	margin-bottom: 20px;
	font-size: 0.95rem;
	color: #555;
}
.dts-meta-section p {
	margin: 6px 0;
}
.dts-meta-section strong {
	color: #374151;
}

/* Action buttons */
.dts-action-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 25px;
}

/* Colnect link */
.dts-colnect-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 20px;
	background: #0073aa;
	color: #fff !important;
	text-decoration: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.1s ease;
}
.dts-colnect-link:hover {
	background: #005f8a;
	transform: translateY(-1px);
}

/* Share button + dropdown */
.dts-share-wrapper {
	position: relative;
	display: inline-block;
}

.dts-share-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 10px 20px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
}
.dts-share-btn:hover {
	background: #005f8a;
	transform: translateY(-1px);
}

.dts-share-menu {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	z-index: 100;
	min-width: 200px;
	overflow: hidden;
	animation: dtsSharePop 0.2s ease;
}
.dts-share-menu.open {
	display: block;
}
.dts-share-menu button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: none;
	font-size: 13px;
	color: #374151;
	cursor: pointer;
	text-align: left;
	transition: background 0.15s ease;
}
.dts-share-menu button:hover {
	background: #f3f4f6;
}
.dts-share-menu button:not(:last-child) {
	border-bottom: 1px solid #f3f4f6;
}

@keyframes dtsSharePop {
	from { transform: translateY(5px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* ── Sections ── */
.dts-section {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px solid #eee;
}

.dts-section-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1f2937;
	margin: 0 0 14px 0;
}

/* Technical details grid */
.dts-tech-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	font-size: 0.9rem;
	color: #555;
}
.dts-tech-item strong {
	color: #374151;
}

/* Cotes grid */
.dts-cotes-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.dts-cote-item {
	flex: 1;
	min-width: 150px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 18px;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dts-cote-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dts-cote-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #6b7280;
	margin-bottom: 6px;
}

.dts-cote-value {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	color: #059669;
}

/* Description */
.dts-description {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #374151;
}

/* Toast */
.dts-toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: #059669;
	color: #fff;
	padding: 14px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
	z-index: 99999999;
	animation: dtsSlideUp 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}
.dts-toast.error {
	background: #ef4444;
}

@keyframes dtsSlideUp {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

/* ══════════════════════════════════════════
   ZOOM OVERLAY
   ══════════════════════════════════════════ */
.dts-zoom-overlay {
	display: none;
	position: fixed;
	z-index: 9999999;
	left: 0; top: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.95);
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	animation: dtsFadeIn 0.2s ease;
}
.dts-zoom-overlay img {
	max-width: 95%;
	max-height: 95vh;
	object-fit: contain;
	border-radius: 4px;
}

@keyframes dtsFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 868px) {
	.dts-card-body {
		flex-direction: column;
		padding: 25px;
	}

	.dts-img-col {
		flex: none;
		width: 100%;
		max-width: 400px;
		margin: 0 auto;
	}

	.dts-title {
		font-size: 1.4rem;
		margin-top: 10px;
	}

	.dts-tech-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.dts-stamp-single {
		padding: 10px;
	}

	.dts-card-body {
		padding: 18px;
		gap: 20px;
	}

	.dts-cotes-grid {
		flex-direction: column;
	}

	.dts-cote-item {
		min-width: unset;
	}

	.dts-action-btns {
		flex-direction: column;
	}

	.dts-colnect-link,
	.dts-share-btn {
		width: 100%;
		justify-content: center;
	}
}
