/* ==============================================
   Chemsex Quiz — Stylesheet v1.1.0
   Switch asbl
   Typo : Boldonse (titres) + Swiza (corps)
   ============================================== */

/* ---- Fonts (chargées par le thème Bricks) ---- */
.cq-wrap {
	--cq-font-title: 'Boldonse', sans-serif;
	--cq-font-body:  'Swiza', sans-serif;
	--cq-bg:         transparent;
	--cq-pink:       #F2A7D8;
	--cq-pink-light: #FAD9F0;
	--cq-border:     #1a1a1a;
	--cq-text:       #1a1a1a;
	--cq-radius-pill: 999px;
	--cq-radius-btn:  999px;
}

/* ---- Reset local ---- */
.cq-wrap *, .cq-wrap *::before, .cq-wrap *::after { box-sizing: border-box; }
.cq-wrap button { font-family: var(--cq-font-body); cursor: pointer; }

/* ---- Container ---- */
.cq-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 2.5rem 1.5rem;
	background: var(--cq-bg);
	font-family: var(--cq-font-body);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.5;
	color: var(--cq-text);
}

/* ---- Barre de progression ---- */
.cq-progress-track {
Display:none;
}
.cq-progress-fill {
	height: 100%;
	background: var(--bleu, #534AB7);
	border-radius: 999px;
	transition: width 0.4s ease;
}

/* ---- Titre question ---- */
.cq-q-text {
	font-family: var(--cq-font-title);
	font-weight: 400;
	font-size: clamp(1.5rem, 4vw, 2rem);
	color: var(--bleu, #534AB7);
	line-height: 1.7;
	margin-bottom: 2.5rem;
	text-align: center;
}
.cq-q-sub {
	font-size: 14px;
	color: #777;
	margin-bottom: 1rem;
	text-align: center;
}
.cq-q-meta {
	display: none;
}

/* ---- Badge ⓘ popup (Q8) ---- */
.cq-info-btn {
	display: inline-flex;
	align-items: center;
	gap: 0;
	background: var(--cq-pink-light);
	border: 1.5px solid var(--cq-border);
	border-radius: var(--cq-radius-pill);
	padding: 0.3rem 1rem 0.3rem 0.3rem;
	font-family: var(--cq-font-body);
	font-weight: 500;
	font-size: 15px;
	color: var(--cq-text);
	cursor: pointer;
	margin: 0 auto 1.5rem;
	transition: background 0.15s;
}
.cq-info-btn:hover { background: var(--cq-pink); }
.cq-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--cq-pink);
	border: 1.5px solid var(--cq-border);
	font-weight: 700;
	font-size: 16px;
	margin-right: 10px;
	flex-shrink: 0;
}
.cq-info-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

/* ---- Options ---- */
.cq-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 2rem;
}
.cq-option {
	width: 100%;
	text-align: center;
	padding: 1rem 1.4rem;
	background: transparent;
	border: 1.5px solid var(--cq-border);
	border-radius: var(--cq-radius-pill);
	font-family: var(--cq-font-body);
	font-weight: 500;
	font-size: 16px;
	color: var(--cq-text);
	cursor: pointer;
	line-height: 1.45;
	transition: border-color 0.15s, background 0.15s, border-width 0.05s;
}
.cq-option:hover {
	border-color: var(--bleu, #534AB7);
	background: transparent;
}
.cq-option.cq-selected {
	border-color: var(--bleu, #534AB7);
	border-width: 2.5px;
	background: transparent;
}
/* pas de .cq-dot dans ce design */

/* ---- Navigation ---- */
.cq-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 0.5rem;
}

/* Bouton rond de base */
.cq-btn-round {
	position: relative;
	width: 52px;
	height: 52px;
	border-radius: 999px;
	border: 2px solid var(--cq-border);
	background: var(--rose);
	color: var(--cq-text);
	font-size: 30px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	transition: width 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.2s, color 0.2s;
	flex-shrink: 0;
}

/* Icône flèche */
.cq-btn-round .cq-arrow {
	position: relative;
	z-index: 1;
	transition: opacity 0.15s;
	flex-shrink: 0;
}

/* Label caché par défaut */
.cq-btn-round .cq-btn-label {
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	font-family: var(--cq-font-title);
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 0.01em;
	transition: max-width 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.2s, margin 0.2s;
	white-space: nowrap;
}

/* Hover : expand + violet */
.cq-btn-round:hover:not(:disabled) {
	width: auto;
	padding: 0 20px 0 16px;
	background: var(--bleu, #534AB7);
	color: #fff;
	border-color: var(--bleu, #534AB7);
}
.cq-btn-round:hover:not(:disabled) .cq-btn-label {
	max-width: 160px;
	opacity: 1;
	margin-left: 8px;
}
.cq-btn-round:hover:not(:disabled) .cq-arrow {
	opacity: 1;
}

/* Bouton back : label à droite de la flèche */
.cq-btn-back:hover:not(:disabled) {
	padding: 0 16px 0 20px;
	flex-direction: row-reverse;
}
.cq-btn-back:hover:not(:disabled) .cq-btn-label {
	margin-left: 0;
	margin-right: 8px;
}

/* Désactivé */
.cq-btn-round:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	background: var(--rose);
}

.cq-counter {
	display:none;
}

/* ---- Écran de redirection ---- */
.cq-redirect-screen {
	text-align: center;
	padding: 3rem 1rem;
}
.cq-redirect-screen .cq-q-text {
	margin-bottom: 1rem;
}
.cq-redirect-msg {
	font-size: 15px;
	color: #666;
	margin-bottom: 1.5rem;
}
.cq-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid rgba(0,0,0,0.1);
	border-top-color: var(--bleu, #534AB7);
	border-radius: 50%;
	animation: cq-spin 0.7s linear infinite;
}
@keyframes cq-spin { to { transform: rotate(360deg); } }

/* ---- Popup modale ---- */
.cq-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.cq-modal {
	background: #FCC8EA;
	border-radius: 0px;
	border: 1px solid #000;
	max-width: 650px;
	width: 100%;
	padding: 2rem 2.75rem;
	position: relative;
}
.cq-modal-title {
display:none;
}
.cq-modal-body {
	font-size: 15px;
	line-height: 1.7;
	color: #000;
}
.cq-modal-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--cq-pink);
	border: 1.5px solid var(--cq-border);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	font-size: 18px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--cq-text);
	transition: background 0.15s;
}
.cq-modal-close:hover { background: #e890c8; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
	.cq-wrap { padding: 1.5rem 1rem; }
	.cq-option { font-size: 15px; padding: 0.85rem 1.1rem; }
	.cq-btn-round { width: 46px; height: 46px; font-size: 18px; }
}
