/* DEMO — mockup Instagram + sidebar Elyaste (fidèle à l'extension réelle) */
.demo { padding: 0 0 6rem; }
.demo h2 { display: none; }
.demo .section-tag { display: none; }
.demo-wrapper {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 16px;
}

/* Instagram mockup */
.demo-instagram {
	background: white;
	border: 1px solid #dbdbdb;
	border-radius: 12px;
	overflow: hidden;
	max-width: 480px;
	margin: 0 auto;
	transition: margin-right .25s cubic-bezier(.4,0,.2,1);
}
.demo-wrapper.dext-open .demo-instagram { margin-right: 300px; }
.demo-ig-bar {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 14px; border-bottom: 1px solid #efefef;
	font-weight: 700; font-size: 14px; color: #262626;
}
.demo-ig-header {
	display: flex; align-items: center; gap: 10px; padding: 10px 14px;
}
.demo-ig-avatar {
	width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #7c3aed, #a78bfa);
	display: flex; align-items: center; justify-content: center;
	color: white; font-weight: 800; font-size: 12px;
}
.demo-ig-meta { flex: 1; }
.demo-ig-username { font-size: 13px; font-weight: 700; color: #262626; }
.demo-ig-location { font-size: 11px; color: #8e8e8e; }
.demo-ig-dots { cursor: pointer; position: relative; }
.demo-ig-tooltip {
	position: absolute; top: 100%; right: 0; margin-top: 8px;
	background: #1a1a1a; color: #fff; font-family: var(--font);
	font-size: 12px; font-weight: 600; line-height: 1.4;
	padding: 10px 12px; border-radius: 10px; width: 190px; text-align: left;
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
	opacity: 0; pointer-events: none; transform: translateY(-4px);
	transition: opacity .15s ease, transform .15s ease;
	z-index: 30;
}
.demo-ig-tooltip.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.demo-ig-image {
	width: 100%; aspect-ratio: 1;
	background: linear-gradient(150deg, #c4b5fd 0%, #7c3aed 50%, #3b0764 100%);
	display: flex; align-items: center; justify-content: center;
}
.demo-ig-img-text {
	font-size: 28px; font-weight: 800; color: rgba(255,255,255,0.9);
	letter-spacing: 3px; text-align: center; line-height: 1.3;
	text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.demo-ig-actions { display: flex; gap: 12px; padding: 10px 14px 4px; }
.demo-ig-likes { font-size: 13px; font-weight: 700; color: #262626; padding: 0 14px 4px; }
.demo-ig-caption { font-size: 13px; color: #262626; padding: 0 14px 4px; line-height: 1.5; }
.demo-ig-caption strong { font-weight: 700; }
.demo-ig-comment { font-size: 13px; color: #262626; padding: 0 14px 8px; }
.demo-ig-comment strong { font-weight: 700; }
.demo-ig-comment-new { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; }
.demo-ig-comment-new.visible { opacity: 1; transform: translateY(0); }
.demo-insert-limit { color: #7c3aed; font-style: italic; font-weight: 600; }
.demo-ig-comment-row {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 14px 12px; border-top: 1px solid #efefef;
}
.demo-ig-own-av {
	width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #5b21b6, #7c3aed);
	color: white; font-size: 10px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.demo-ig-input-wrap { flex: 1; font-size: 13px; }
.demo-ig-typed { color: #262626; }
.demo-ig-typed.placeholder { color: #8e8e8e; }
.demo-ig-publish {
	font-size: 13px; font-weight: 700; color: #0095f6;
	background: none; border: none; cursor: pointer;
	font-family: var(--font); opacity: .35; pointer-events: none; transition: opacity .2s;
}
.demo-ig-publish.active { opacity: 1; pointer-events: auto; }
.demo-ig-publish:hover, .demo-ig-publish:focus { background: none; }

/* Toggle Elyaste (bouton flottant, fidèle à l'extension) */
.dext-toggle {
	position: absolute; top: 50%; right: 0; transform: translateY(-50%);
	z-index: 30; width: 32px; height: 60px;
	background: var(--blue); color: #fff; border: none;
	border-radius: 8px 0 0 8px; cursor: pointer; font-size: 17px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: -2px 0 12px rgba(124,58,237,.3);
	transition: right .25s cubic-bezier(.4,0,.2,1), width .2s;
}
.dext-toggle:hover { width: 38px; }
.demo-wrapper.dext-open .dext-toggle { right: 300px; }

/* Sidebar Elyaste (fidèle à la vraie extension : tiroir depuis la droite) */
.dext-sidebar {
	position: absolute; right: 0; top: 0; bottom: 0; width: 300px;
	background: #fff; border-left: 1px solid #e5e7eb;
	display: flex; flex-direction: column;
	box-shadow: -4px 0 24px rgba(0,0,0,.08);
	transform: translateX(100%);
	transition: transform .25s cubic-bezier(.4,0,.2,1);
	font-size: 12px; color: #1a1a1a;
	border-radius: 0 16px 16px 0;
}
.dext-sidebar.open { transform: translateX(0); }
.dext-header {
	padding: 14px 16px 12px; border-bottom: 1px solid #e5e7eb;
	background: #fff; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
	border-radius: 0 16px 0 0;
}
.dext-logo { font-weight: 800; font-size: 15px; letter-spacing: -.5px; color: #7c3aed; }
.dext-badge {
	font-size: 9px; background: rgba(124,58,237,.08); color: #7c3aed;
	border: 1px solid rgba(124,58,237,.2); border-radius: 4px;
	padding: 2px 6px; letter-spacing: .5px; text-transform: uppercase;
}
.dext-body { flex: 1; overflow-y: auto; }
.dext-section { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
.dext-section-title { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #6b7280; margin-bottom: 8px; font-weight: 600; }
.dext-profile-name { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.dext-bio-preview { font-size: 10px; color: #6b7280; line-height: 1.4; margin-bottom: 6px; }
.dext-niche-badge {
	display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600;
	background: rgba(124,58,237,.08); border: 1px solid rgba(124,58,237,.2); color: #7c3aed;
}
.dext-criteria-list { list-style: none; padding: 0; margin: 0 0 8px; }
.dext-criteria-list li { padding: 3px 0; font-size: 11px; line-height: 1.4; }
.dext-ok { color: #16a34a; }
.dext-cooldown {
	display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px;
	font-size: 11px; background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.2); color: #16a34a;
}
.dext-sublabel { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; margin-bottom: 5px; }
.dext-btn {
	width: 100%; padding: 9px 14px; border: none; border-radius: 6px;
	font-size: 11px; font-weight: 700; cursor: pointer; transition: all .15s;
	letter-spacing: .3px; margin-bottom: 6px; font-family: var(--font);
	display: flex; align-items: center; justify-content: center; gap: 6px;
}
.dext-btn:last-child { margin-bottom: 0; }
.dext-btn-primary { background: #7c3aed; color: #fff; }
.dext-btn-primary:hover { background: #6d28d9; }
.dext-btn-secondary { background: #f9fafb; color: #6b7280; border: 1px solid #e5e7eb; }
.dext-btn-secondary:hover { background: #e5e7eb; color: #1a1a1a; }
.dext-btn-success { background: rgba(22,163,74,.08); color: #16a34a; border: 1px solid rgba(22,163,74,.2); }
.dext-btn-success:hover { background: rgba(22,163,74,.14); }
.dext-btn-success.done { opacity: .7; cursor: default; }
.dext-btn:hover, .dext-btn:focus { outline: none !important; border-color: transparent; }
.dext-btn-primary:hover, .dext-btn-primary:focus { background: #6d28d9 !important; color: #fff !important; border: none !important; }
.dext-btn-secondary:hover, .dext-btn-secondary:focus { background: #e5e7eb !important; color: #1a1a1a !important; border: 1px solid #e5e7eb !important; }
.dext-btn-success:hover, .dext-btn-success:focus { background: rgba(22,163,74,.14) !important; color: #16a34a !important; border: 1px solid rgba(22,163,74,.2) !important; }
.dext-toggle:hover, .dext-toggle:focus { background: var(--blue) !important; border: none !important; outline: none !important; color: #fff !important; }
.dext-comment-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 9px; color: #6b7280; text-transform: uppercase; letter-spacing: .6px; }
.dext-ai-badge { color: #7c3aed; font-weight: 700; text-transform: none; letter-spacing: 0; }
.dext-comment-box {
	background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px;
	padding: 10px 12px; font-size: 12px; color: #1a1a1a; line-height: 1.5; min-height: 50px; margin-bottom: 6px;
	text-align: left;
}
.dext-loading-dot {
	display: inline-block; width: 6px; height: 6px; border-radius: 50%;
	background: #7c3aed; animation: dextPulse 1.2s ease-in-out infinite; margin: 8px 3px;
}
.dext-loading-dot:nth-child(2) { animation-delay: .2s; }
.dext-loading-dot:nth-child(3) { animation-delay: .4s; }
@keyframes dextPulse { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.dext-copy-feedback { display: none; font-size: 10px; color: #16a34a; text-align: center; margin: 2px 0 6px; }
.dext-copy-feedback.show { display: block; }
.dext-manual-hint { font-size: 10px; color: #6b7280; margin-bottom: 8px; line-height: 1.4; }

/* Extension popup */
.demo-suggestions { display: none; }

/* Page hero */
.demo-page-hero {
	padding: 6rem 0 3rem;
	text-align: center;
}
.demo-page-hero h1 {
	font-size: clamp(32px, 5vw, 58px);
	font-weight: 800;
	letter-spacing: -1.5px;
	line-height: 1.1;
	margin-bottom: 1rem;
	color: var(--black);
}
.demo-page-hero p {
	font-size: 17px;
	color: var(--gray-600);
	font-weight: 500;
	max-width: 520px;
	margin: 0 auto 2.5rem;
	line-height: 1.6;
}
.demo-page-hero .demo-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}
.demo-step-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--gray-600);
}
.demo-step-num {
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--blue);
	color: white;
	font-size: 13px; font-weight: 800;
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.demo-step-sep {
	width: 40px; height: 1px;
	background: var(--gray-200);
	margin: 0 12px;
}
.demo-cta-block {
	text-align: center;
	padding: 4rem 0 2rem;
	border-top: 1px solid var(--gray-200);
	margin-top: 3rem;
}
.demo-cta-block p {
	font-size: 15px; color: var(--gray-600); font-weight: 500;
	margin-bottom: 1.5rem;
}

/* Custom tone selector */
.demo-tone-select { position: relative; margin-top: 6px; }
.demo-tone-trigger {
	display: flex; align-items: center; justify-content: space-between;
	padding: 8px 12px; border: 1.5px solid var(--gray-200);
	border-radius: 10px; font-size: 13px; font-weight: 700;
	color: var(--black); cursor: pointer; background: white;
	transition: border-color .15s;
}
.demo-tone-select.open .demo-tone-trigger,
.demo-tone-trigger:hover { border-color: var(--blue); }
.demo-tone-select.open .demo-tone-trigger svg { transform: rotate(180deg); }
.demo-tone-trigger svg { transition: transform .2s; color: var(--gray-400); }
.demo-tone-dropdown {
	position: absolute; top: calc(100% + 4px); left: 0; right: 0;
	background: white; border: 1.5px solid var(--gray-200);
	border-radius: 10px; overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	display: none; z-index: 20;
}
.demo-tone-select.open .demo-tone-dropdown { display: block; }
.demo-tone-option {
	display: flex; align-items: center; gap: 8px;
	padding: 9px 12px; font-size: 13px; font-weight: 700;
	color: var(--black); cursor: pointer; transition: background .15s;
}
.demo-tone-option:hover { background: var(--gray-100); }
.demo-tone-option.selected { background: var(--blue-light); color: var(--blue); }

@media (max-width: 768px) {
	.demo-page-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
	.demo-page-hero .demo-steps { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; width: fit-content; margin-left: auto; margin-right: auto; }
	.demo-step-sep { width: 1px; height: 20px; }

	.demo-wrapper { display: flex; flex-direction: column; gap: 1.5rem; overflow: visible; border-radius: 0; }
	.dext-toggle { display: none; }
	.dext-sidebar {
		position: static; width: 100%; transform: none; box-shadow: none;
		border: 1px solid #e5e7eb; border-radius: 16px; height: auto;
	}
	.demo-wrapper.dext-open .demo-instagram { margin-right: auto; }
	.demo-instagram { max-width: 100%; }
}
