
/* ══════════════════════════════════════════════════════════
   QUIZZ ISLAM — Le-Coran.com
   Refined editorial aesthetic with warm scholarly tones
   ══════════════════════════════════════════════════════════ */

:root {
	--qz-olive: #94b100;
	--qz-olive-dark: #7a9200;
	--qz-olive-light: #f4f7e8;
	--qz-gold: #c8a84e;
	--qz-gold-light: #faf6eb;
	--qz-cream: #fefcf7;
	--qz-ink: #2c2c2c;
	--qz-ink-soft: #5a5a5a;
	--qz-ink-muted: #8a8a8a;
	--qz-border: #e8e2d6;
	--qz-border-light: #f0ebe0;
	--qz-success: #2d8a4e;
	--qz-success-bg: #eef8f0;
	--qz-error: #c0392b;
	--qz-error-bg: #fdf0ee;
	--qz-warning-bg: #fef9ef;
	--qz-warning: #d4850a;
	--qz-radius: 10px;
	--qz-shadow: 0 2px 12px rgba(0,0,0,0.06);
	--qz-shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
	--qz-font-display: 'Amiri', Georgia, serif;
	--qz-font-body: 'Cabin', -apple-system, sans-serif;
}

#quizz_islam .zone_titre {
	padding-left: 15px;
	padding-right: 15px;
}
#quizz_islam .zone_titre h1 {
	display: block;
	max-width: 100%;
	font-family: var(--qz-font-display);
	font-size: 32px;
	letter-spacing: 0.5px;
}
#quizz_islam .zone_titre > h1::before {
	margin-right: 12px;
	vertical-align: -0.06em;
}

/* ── Hero intro section ── */
.qz-intro {
	background: linear-gradient(135deg, var(--qz-cream), var(--qz-olive-light));
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 28px 32px;
	margin-bottom: 32px;
	font-family: var(--qz-font-body);
	color: var(--qz-ink-soft);
	font-size: 15px;
	line-height: 1.7;
	position: relative;
	overflow: hidden;
}
.qz-intro::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, rgba(148,177,0,0.1) 0%, transparent 70%);
	border-radius: 50%;
}

/* ── Quiz grid ── */
.qz-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 20px;
	overflow: hidden;
}

/* ── Quiz listing cards ── */
#quizz_islam .qcm {
	display: flex;
	flex-direction: column;
	width: auto;
	background: white;
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 0;
	margin: 0;
	text-align: left;
	box-shadow: var(--qz-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	box-sizing: border-box;
}
#quizz_islam .qcm:hover {
	transform: translateY(-3px);
	box-shadow: var(--qz-shadow-lg);
}
#quizz_islam .qcm .nom_qcm {
	font-family: var(--qz-font-display);
	font-weight: 700;
	font-size: 17px;
	color: var(--qz-ink);
	padding: 20px 20px 8px;
	line-height: 1.4;
	border-bottom: none;
}
#quizz_islam .qcm .nom_qcm i {
	font-family: var(--qz-font-body);
	font-size: 11px;
	font-style: normal;
	color: var(--qz-ink-muted);
	background: var(--qz-olive-light);
	padding: 3px 8px;
	border-radius: 20px;
	display: inline-block;
	margin-bottom: 6px;
}
#quizz_islam .qcm .description_qcm {
	font-family: var(--qz-font-body);
	font-size: 13.5px;
	color: var(--qz-ink-soft);
	line-height: 1.6;
	padding: 0 20px 16px;
	min-height: 70px;
}
#quizz_islam .qcm .action_qcm {
	padding: 14px 20px;
	background: var(--qz-gold-light);
	border-top: 1px solid var(--qz-border-light);
	margin-top: auto;
}
#quizz_islam .qcm .action_qcm a {
	display: inline-block;
	font-family: var(--qz-font-body);
	font-size: 13px;
	font-weight: 600;
	color: white;
	background: var(--qz-olive);
	padding: 7px 16px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.2s ease;
	margin-right: 6px;
	margin-bottom: 4px;
}
#quizz_islam .qcm .action_qcm a:hover {
	background: var(--qz-olive-dark);
}

/* ── SEO text styling ── */
.qz-seo-text {
	font-family: var(--qz-font-body);
	color: var(--qz-ink-soft);
	font-size: 15px;
	line-height: 1.85;
	margin-top: 34px;
	padding: 28px;
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	background: linear-gradient(180deg,#ffffff 0%,var(--qz-cream) 100%);
	box-shadow: var(--qz-shadow);
	column-count: 2;
	column-gap: 34px;
	column-rule: 1px solid var(--qz-border-light);
}
.qz-seo-text p{margin:0}
.qz-seo-text strong{color:var(--qz-olive-dark)}
.qz-seo-text:before{
	content:'Approfondir ses connaissances';
	display:block;
	column-span:all;
	margin-bottom:14px;
	color:var(--qz-ink);
	font-family:var(--qz-font-display);
	font-size:22px;
	font-weight:700;
	line-height:1.25;
}

/* ── Login prompt ── */
.qz-login-prompt {
	background: var(--qz-gold-light);
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 32px;
	text-align: center;
	font-family: var(--qz-font-body);
	margin: 20px 0;
}
.qz-login-prompt p {
	font-size: 16px;
	color: var(--qz-ink);
	margin-bottom: 16px;
}
.qz-login-prompt .btn {
	background: var(--qz-olive);
	border: none;
	color: white;
	font-family: var(--qz-font-body);
	font-weight: 600;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	transition: background 0.2s;
}
.qz-login-prompt .btn:hover {
	background: var(--qz-olive-dark);
}

/* ── Quiz header bar ── */
.qz-quiz-header {
	background: linear-gradient(135deg, var(--qz-olive), var(--qz-olive-dark));
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	min-height: 76px;
	padding: 18px 24px;
	border-radius: var(--qz-radius);
	margin-bottom: 20px;
	font-family: var(--qz-font-display);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}
#quizz_islam .qz-quiz-header h2 {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: #fff !important;
	text-transform: none;
}
.qz-quiz-header .qz-question-count {
	font-family: var(--qz-font-body);
	font-size: 13px;
	opacity: 0.9;
	background: rgba(255,255,255,0.15);
	padding: 5px 12px;
	border-radius: 20px;
}

/* ── Quiz meta info ── */
.qz-meta-bar {
	background: var(--qz-cream);
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 16px 20px;
	margin-bottom: 24px;
	font-family: var(--qz-font-body);
	font-size: 13.5px;
	color: var(--qz-ink-soft);
	line-height: 1.8;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
}
.qz-meta-bar a {
	color: var(--qz-olive);
	text-decoration: none;
	font-weight: 600;
}
.qz-meta-bar a:hover {
	text-decoration: underline;
}
.qz-meta-bar .qz-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.qz-meta-bar .qz-meta-item i {
	color: var(--qz-gold);
}

/* ── Timer ── */
.qz-timer {
	background: linear-gradient(135deg, var(--qz-gold), #b8963f);
	color: white;
	font-family: var(--qz-font-body);
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: var(--qz-radius);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	box-shadow: 0 2px 8px rgba(200,168,78,0.3);
}
.qz-timer i {
	font-size: 16px;
}
.qz-timer-untimed {
	background: var(--qz-olive-light);
	color: var(--qz-olive-dark);
	box-shadow: none;
	border: 1px solid var(--qz-border);
}

/* ── Question block header (continue mode) ── */
.qz-question-label {
	display: inline-block;
	background: var(--qz-olive);
	color: white;
	font-family: var(--qz-font-body);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* ── Question card ── */
#quizz_islam .une_question {
	background: white;
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 0;
	margin-top: 0;
	margin-bottom: 20px;
	box-shadow: var(--qz-shadow);
	overflow: hidden;
	font-weight: normal;
}
#quizz_islam .question {
	background: transparent;
	font-size: inherit;
	text-align: left;
	padding: 0;
	line-height: inherit;
	display: block;
	color: inherit;
	text-transform: none;
	margin: 0;
}
#quizz_islam .p_question {
	font-family: var(--qz-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--qz-ink);
	padding: 20px 24px;
	line-height: 1.5;
	background: var(--qz-cream);
	border-bottom: 1px solid var(--qz-border-light);
}

/* ── Answer options ── */
#quizz_islam .reponses {
	padding: 16px 24px;
}
#quizz_islam .reponse {
	background: var(--qz-olive-light);
	border: 1px solid var(--qz-border);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 8px;
	font-family: var(--qz-font-body);
	font-size: 14px;
	color: var(--qz-ink);
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 10px;
}
#quizz_islam .reponse:hover {
	background: #ecf0da;
	border-color: var(--qz-olive);
}
#quizz_islam .reponse input[type="checkbox"] {
	accent-color: var(--qz-olive);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ── Answer feedback states ── */
#quizz_islam .bonne_reponse {
	font-family: var(--qz-font-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--qz-success);
	background: var(--qz-success-bg);
	padding: 10px 24px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
#quizz_islam .bonne_reponse::before {
	content: '\f058';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}
#quizz_islam .mauvaise_reponse {
	font-family: var(--qz-font-body);
	font-weight: 600;
	font-size: 14px;
	color: var(--qz-error);
	background: var(--qz-error-bg);
	padding: 10px 24px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
#quizz_islam .mauvaise_reponse::before {
	content: '\f057';
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
}
#quizz_islam .bonne_reponse_question {
	background: var(--qz-success-bg);
	border-color: var(--qz-success);
	color: var(--qz-success);
	font-weight: 600;
	padding: 12px 16px;
}
#quizz_islam .mauvaise_reponse_question {
	background: var(--qz-error-bg);
	border-color: var(--qz-error);
	color: var(--qz-error);
	font-weight: 600;
	padding: 12px 16px;
}
#quizz_islam .mauvaise_reponse_question_orange {
	background: var(--qz-warning-bg);
	border-color: var(--qz-warning);
	color: var(--qz-warning);
	font-weight: 600;
	padding: 12px 16px;
}

/* ── Explanation block ── */
#quizz_islam .explication {
	margin: 16px 0 20px;
	padding: 16px 20px;
	background: var(--qz-gold-light);
	border: 1px solid var(--qz-border);
	border-left: 4px solid var(--qz-gold);
	border-radius: 0 8px 8px 0;
	font-family: var(--qz-font-body);
	font-size: 13.5px;
	color: var(--qz-ink-soft);
	line-height: 1.7;
	font-weight: normal;
}
#quizz_islam .explication strong {
	color: var(--qz-olive);
}

/* ── Submit buttons ── */
#quizz_islam input[type="submit"] {
	background: var(--qz-olive) !important;
	border: none !important;
	color: white !important;
	font-family: var(--qz-font-body);
	font-size: 14px;
	font-weight: 600;
	padding: 12px 28px !important;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.25s ease;
	float: right;
	box-shadow: 0 2px 8px rgba(148,177,0,0.25);
}
#quizz_islam input[type="submit"]:hover {
	background: var(--qz-olive-dark) !important;
	box-shadow: 0 4px 16px rgba(148,177,0,0.35);
	transform: translateY(-1px);
}

/* ── Results section ── */
.qz-results {
	background: white;
	border: 1px solid var(--qz-border);
	border-radius: var(--qz-radius);
	padding: 32px;
	text-align: center;
	margin: 24px 0;
	box-shadow: var(--qz-shadow-lg);
}
.qz-score-circle {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	margin: 0 auto 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: var(--qz-font-display);
	position: relative;
}
.qz-score-circle::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 4px solid var(--qz-border);
}
.qz-score-good {
	background: var(--qz-success-bg);
}
.qz-score-good::before {
	border-color: var(--qz-success);
}
.qz-score-mid {
	background: var(--qz-warning-bg);
}
.qz-score-mid::before {
	border-color: var(--qz-warning);
}
.qz-score-bad {
	background: var(--qz-error-bg);
}
.qz-score-bad::before {
	border-color: var(--qz-error);
}
.qz-score-value {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}
.qz-score-label {
	font-family: var(--qz-font-body);
	font-size: 12px;
	color: var(--qz-ink-muted);
	margin-top: 4px;
}
.qz-result-text {
	font-family: var(--qz-font-body);
	font-size: 14px;
	color: var(--qz-ink-soft);
	margin-top: 12px;
}

#quizz_islam #resultat h2 {
	font-family: var(--qz-font-display);
	font-size: 24px;
	color: var(--qz-ink);
	margin-top: 20px;
	font-weight: 700;
}

/* ── Description block ── */
.qz-description {
	font-family: var(--qz-font-body);
	font-size: 14px;
	color: var(--qz-ink-soft);
	line-height: 1.7;
	margin-bottom: 24px;
	padding: 16px 20px;
	background: var(--qz-cream);
	border-radius: var(--qz-radius);
	border: 1px solid var(--qz-border-light);
}

/* ── Back link ── */
.qz-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--qz-font-body);
	font-size: 13px;
	color: var(--qz-olive);
	text-decoration: none;
	font-weight: 600;
	margin-bottom: 16px;
	transition: gap 0.2s;
}
.qz-back-link:hover {
	gap: 10px;
	color: var(--qz-olive-dark);
	text-decoration: none;
}

/* ── Clear fix ── */
.qz-clearfix::after {
	content: '';
	display: table;
	clear: both;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
	.qz-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 992px) {
	.qz-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 768px) {
	.qz-grid {
		grid-template-columns: 1fr;
	}
	.qz-quiz-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	#quizz_islam .p_question {
		padding: 16px;
		font-size: 16px;
	}
	#quizz_islam .reponses {
		padding: 12px 16px;
	}
	#quizz_islam .explication {
		margin: 12px 16px 16px;
	}
	.qz-meta-bar {
		flex-direction: column;
		gap: 4px;
	}
	.qz-seo-text {
		column-count: 1;
		padding: 20px;
		font-size: 14px;
	}
}

/* ── Animation ── */
@keyframes qz-fadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}
#quizz_islam .une_question {
	animation: qz-fadeIn 0.4s ease both;
}
#quizz_islam .une_question:nth-child(2) { animation-delay: 0.05s; }
#quizz_islam .une_question:nth-child(3) { animation-delay: 0.1s; }
#quizz_islam .une_question:nth-child(4) { animation-delay: 0.15s; }
#quizz_islam .une_question:nth-child(5) { animation-delay: 0.2s; }

/* Hide old inline h1 style overrides */
#quizz_islam .col-md-12 > form > h1,
#quizz_islam .col-md-12 > form > h3.question {
	background: none !important;
	color: inherit !important;
	font-size: inherit !important;
	padding: 0 !important;
	display: none !important;
}

/* ══════════ Mode nuit ══════════ */
html.lc-dark {
	--qz-olive-light: var(--lc-green-tint);
	--qz-gold-light: var(--lc-surface-2);
	--qz-cream: var(--lc-surface);
	--qz-ink: var(--lc-ink);
	--qz-ink-soft: var(--lc-ink-soft);
	--qz-ink-muted: var(--lc-ink-faint);
	--qz-border: var(--lc-line);
	--qz-border-light: var(--lc-line);
	--qz-success-bg: var(--lc-green-tint);
	--qz-success: #7fc06a;
	--qz-error-bg: rgba(192,57,43,.20);
	--qz-error: #e57368;
	--qz-warning-bg: rgba(212,133,10,.18);
	--qz-warning: #e0a94a;
	--qz-shadow: 0 2px 12px rgba(0,0,0,.35);
	--qz-shadow-lg: 0 8px 32px rgba(0,0,0,.45);
}
html.lc-dark #quizz_islam .qcm{background:var(--lc-surface)}
html.lc-dark #quizz_islam .une_question{background:var(--lc-surface)}
html.lc-dark .qz-results{background:var(--lc-surface)}
html.lc-dark #quizz_islam .reponse:hover{background:var(--lc-surface-2)}
html.lc-dark .qz-seo-text{background:linear-gradient(180deg,var(--lc-surface) 0%,var(--lc-surface-2) 100%)}

/* Résultats : bannière de score en tête (score visible immédiatement après soumission) */
.qz-results-top { margin: 4px 0 24px; }
.qz-results-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.qz-corrections-hint { margin-top: 10px; color: var(--qz-ink-muted); font-size: 13px; text-align: center; }
/* Mur de connexion : contexte du quiz + réassurance gratuité */
.qz-login-quiz { font-size: 1.05rem; margin-bottom: 8px; }
.qz-login-free { margin-top: 12px; color: var(--qz-ink-muted, #6b7280); font-size: 13px; }
.qz-login-free i { color: #16a34a; }
