/* ═══════════════════════════════════════════════════════════
   KCQ – Frontend Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Page de niveau (taxonomy-kcq_niveau) ── */
.kcq-niveau-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a2e;
}

/* ─── HERO ─── */
.kcq-niveau-hero {
	position: relative;
	background: linear-gradient(135deg, #faf5ff 0%, #f0e8ff 50%, #fce9f9 100%);
	overflow: hidden;
	padding: 48px 24px 56px;
}

.kcq-niveau-hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.kcq-hero-deco {
	position: absolute;
	font-size: 22px;
	font-weight: 800;
	color: #7c2d8c;
	opacity: .22;
	line-height: 1;
}
.kcq-hero-deco-1 { top: 14px;  left: 32px;   font-size: 28px; }
.kcq-hero-deco-2 { top: 44px;  left: 120px;  font-size: 14px; }
.kcq-hero-deco-3 { top: 16px;  right: 60px;  font-size: 26px; }
.kcq-hero-deco-4 { bottom: 24px; right: 140px; font-size: 12px; }

.kcq-hero-wave {
	position: absolute;
	width: 140px;
	color: #7c2d8c;
	opacity: .18;
}
.kcq-hero-wave-1 { top: 10px;    right: 30px; }
.kcq-hero-wave-2 { bottom: 10px; left: 60px;  }

.kcq-niveau-hero-inner {
	position: relative;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
}

/* Breadcrumb */
.kcq-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #7c2d8c;
	margin-bottom: 18px;
}
.kcq-breadcrumb a           { color: #7c2d8c; text-decoration: none; font-weight: 500; }
.kcq-breadcrumb a:hover     { text-decoration: underline; }
.kcq-breadcrumb-sep         { opacity: .5; }

/* Titre hero */
.kcq-niveau-hero-title {
	font-family: "Segoe Script", "Brush Script MT", Georgia, cursive;
	font-size: clamp(28px, 5vw, 46px);
	font-weight: 700;
	color: #7c2d8c;
	margin: 0 0 16px;
	line-height: 1.2;
}

.kcq-niveau-hero-desc {
	font-size: 15px;
	color: #444;
	max-width: 640px;
	margin: 0 auto;
	line-height: 1.6;
}

/* ─── GRILLE MATIÈRES ─── */
.kcq-matieres-section {
	background: #f5f5f8;
	padding: 36px 24px;
}

.kcq-matieres-grid {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.kcq-matiere-card {
	background: #fff;
	border: 1px solid #e8e8f0;
	border-radius: 14px;
	padding: 20px 16px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	text-decoration: none;
	color: #1a1a2e;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	box-shadow: 0 2px 8px rgba(20,20,43,0.04);
}

.kcq-matiere-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(124,45,140,0.13);
	border-color: var(--kcq-mat-color, #7c2d8c);
}

.kcq-matiere-card-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kcq-matiere-card-icon svg { width: 56px; height: 56px; }

.kcq-matiere-card-name {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	color: #1a1a2e;
}

.kcq-matiere-card-count {
	font-size: 12px;
	font-weight: 600;
}

/* ─── CONTENU PAR MATIÈRE ─── */
.kcq-niveau-content {
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 24px 60px;
}

.kcq-matiere-section {
	margin-bottom: 52px;
}

.kcq-matiere-section-header {
	display: flex;
	align-items: center;
	gap: 14px;
	border-bottom: 3px solid var(--kcq-mat-color, #7c2d8c);
	padding-bottom: 12px;
	margin-bottom: 20px;
}

.kcq-matiere-section-icon { width: 40px; height: 40px; flex-shrink: 0; }
.kcq-matiere-section-icon svg { width: 40px; height: 40px; }

.kcq-matiere-section-header h2 {
	font-size: 20px;
	font-weight: 800;
	color: #1a1a2e;
	margin: 0;
}

.kcq-subsection-title {
	font-size: 15px;
	font-weight: 700;
	color: #555;
	margin: 20px 0 10px;
}

/* ─── BOUTON RETOUR ─── */
.kcq-niveau-back {
	text-align: center;
	padding: 0 24px 48px;
}

.kcq-btn-outline {
	background: transparent !important;
	border: 2px solid #7c2d8c !important;
	color: #7c2d8c !important;
}
.kcq-btn-outline:hover {
	background: #7c2d8c !important;
	color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   Shortcode [kcq_niveaux] — page "Choisis ton niveau"
   ═══════════════════════════════════════════════════════════ */
.kcq-niveaux-wrap {
	max-width: 960px;
	margin: 40px auto;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.kcq-niveaux-kicker {
	font-family: "Segoe Script", "Brush Script MT", cursive;
	color: #7c2d8c;
	font-size: 32px;
	margin: 0;
}

.kcq-niveaux-title {
	font-size: 28px;
	font-weight: 800;
	color: #1a1a2e;
	margin: 4px 0 30px;
}

.kcq-niveaux-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(280px, 1fr));
	gap: 20px;
	justify-items: stretch;
}

.kcq-niveau-card {
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 14px;
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 10px rgba(20, 20, 43, 0.04);
	text-align: left;
	transition: transform 0.18s, box-shadow 0.18s;
}
.kcq-niveau-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(124,45,140,0.10);
}

.kcq-niveau-card-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kcq-niveau-eyebrow { color: #6b6b7b; font-size: 14px; }

.kcq-niveau-name {
	color: #7c2d8c;
	font-size: 26px;
	font-weight: 800;
}

.kcq-niveau-icon { font-size: 42px; line-height: 1; }

/* ─── Bouton générique ─── */
.kcq-btn {
	display: inline-block;
	background: #7c2d8c;
	color: #fff !important;
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	width: fit-content;
	font-size: 14px;
	transition: background 0.18s, color 0.18s;
}
.kcq-btn:hover { background: #5f2170; color: #fff; }

/* ─── Listes cours / quiz ─── */
.kcq-liste {
	max-width: 960px;
	margin: 0 auto 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.kcq-item {
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #1a1a2e;
	font-weight: 600;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.kcq-item:hover {
	border-color: #7c2d8c;
	box-shadow: 0 4px 14px rgba(124,45,140,0.10);
	transform: translateY(-1px);
}

.kcq-item-icon { font-size: 22px; }
.kcq-item-meta { margin-left: auto; color: #6b6b7b; font-size: 13px; font-weight: 400; }

/* ─── Responsive ─── */
@media (max-width: 640px) {
	.kcq-niveaux-grid   { grid-template-columns: 1fr; }
	.kcq-matieres-grid  { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Fallback archive (ancien template) ─── */
.kcq-niveau-archive {
	max-width: 960px;
	margin: 40px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.kcq-niveau-archive-header { text-align: center; margin-bottom: 30px; }
.kcq-back-link    { color: #7c2d8c; text-decoration: none; font-weight: 600; }
.kcq-section-title { color: #1a1a2e; font-size: 20px; margin: 24px 0 12px; }

/* ─── Quiz jouable ─── */
.kcq-quiz-player {
	max-width: 700px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.kcq-quiz-question {
	background: #fff;
	border: 1px solid #ececf3;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 16px;
}

.kcq-quiz-question h4 { margin: 0 0 12px; color: #1a1a2e; }

.kcq-quiz-choice {
	display: block;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.kcq-quiz-choice:hover    { border-color: #7c2d8c; background: #faf5ff; }
.kcq-quiz-choice input    { margin-right: 8px; }
.kcq-quiz-choice.correct  { border-color: #2e9e5b; background: #eafaf0; }
.kcq-quiz-choice.incorrect{ border-color: #c0392b; background: #fdecea; }

.kcq-quiz-result {
	background: linear-gradient(135deg, #1a1a2e, #3a1a4e);
	color: #fff;
	padding: 24px;
	border-radius: 14px;
	text-align: center;
	font-size: 20px;
	font-weight: 800;
	box-shadow: 0 8px 32px rgba(124,45,140,0.25);
}

/* ═══════════════════════════════════════════════════════════
   Page Matière + Niveau (taxonomy-kcq_matiere_niveau)
   ═══════════════════════════════════════════════════════════ */
.kcq-mn-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a2e;
	background: #f3f4f6;
	min-height: 100vh;
}

.kcq-mn-hero {
	background: #fff;
	text-align: center;
	padding: 32px 24px 48px;
	border-bottom: 1px solid #e8e8f0;
	position: relative;
	overflow: hidden;
}

.kcq-mn-hero-title {
	font-family: "Segoe Script", "Brush Script MT", Georgia, cursive;
	font-size: clamp(32px, 5vw, 46px);
	font-weight: 700;
	color: #7c2d8c;
	margin: 20px 0 0;
	position: relative;
	display: inline-block;
}

.kcq-hero-doodle {
	position: absolute;
	font-size: 24px;
	opacity: 0.6;
}
.kcq-doodle-1 { top: -20px; left: -40px; transform: rotate(-15deg); }
.kcq-doodle-2 { bottom: -10px; right: -50px; transform: rotate(15deg); }
.kcq-doodle-3 { top: 10px; right: -80px; font-size: 18px; }

.kcq-mn-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px;
	display: flex;
	gap: 32px;
	align-items: flex-start;
}

/* Sidebar */
.kcq-mn-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(20, 20, 43, 0.04);
}

.kcq-mn-sidebar-header {
	border-bottom: 1px solid #e8e8f0;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

.kcq-mn-sidebar-header h2 {
	font-size: 18px;
	font-weight: 800;
	color: #7c2d8c;
	margin: 0 0 4px;
}

.kcq-mn-progress {
	font-size: 13px;
	color: #6b6b7b;
	font-weight: 600;
}

.kcq-mn-chapters-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.kcq-mn-chapter-item {
	margin-bottom: 16px;
}

.kcq-mn-chapter-item a {
	text-decoration: none;
	display: block;
	color: inherit;
	transition: opacity 0.2s;
}

.kcq-mn-chapter-item a:hover {
	opacity: 0.8;
}

.kcq-mn-chapter-meta {
	font-size: 11px;
	color: #888;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.kcq-mn-radio-circle {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #ddd;
}

.kcq-mn-chapter-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	padding-left: 20px;
}

/* Main Content */
.kcq-mn-main {
	flex-grow: 1;
	min-width: 0;
}

.kcq-mn-intro {
	text-align: center;
	color: #444;
	font-size: 15px;
	margin-bottom: 32px;
}

.kcq-mn-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 32px;
	justify-content: flex-start;
}

.kcq-mn-filter {
	background: #fff;
	border: none;
	border-radius: 20px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	color: #6b6b7b;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,0.02);
	transition: all 0.2s;
}

.kcq-mn-filter:hover {
	background: #faf5ff;
}

.kcq-mn-filter.active {
	background: #7c2d8c;
	color: #fff;
}

.kcq-mn-chapter-section {
	margin-bottom: 48px;
}

.kcq-mn-chapter-header {
	background: #7c2d8c;
	color: #fff;
	border-radius: 12px;
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.kcq-mn-chapter-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.kcq-mn-chapter-number {
	font-size: 24px;
	font-weight: 800;
	opacity: 0.9;
}

.kcq-mn-chapter-header-left h3 {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.kcq-mn-chapter-stats {
	font-size: 12px;
	opacity: 0.8;
}

.kcq-mn-chapter-header-right {
	text-align: right;
	font-size: 12px;
	font-weight: 600;
}

.kcq-mn-progress-bar-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.kcq-mn-progress-bar {
	width: 120px;
	height: 6px;
	background: rgba(255,255,255,0.3);
	border-radius: 3px;
	overflow: hidden;
}

.kcq-mn-progress-fill {
	height: 100%;
	background: #fff;
}

/* Cards */
.kcq-mn-lessons {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kcq-lesson-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(20,20,43,0.04);
	position: relative;
	transition: transform 0.2s, box-shadow 0.2s;
}

.kcq-lesson-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(20,20,43,0.08);
}

.kcq-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 12px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.kcq-badge-cours {
	background: #1a1a4b;
	color: #fff;
}

.kcq-badge-quiz {
	background: #e67e22;
	color: #fff;
}

.kcq-lesson-title-link {
	text-decoration: none;
	color: #1a1a2e;
}

.kcq-lesson-title-link h4 {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.kcq-dot {
	width: 8px;
	height: 8px;
	background: #ccc;
	border-radius: 50%;
	display: inline-block;
}

.kcq-lesson-desc {
	font-size: 13px;
	color: #6b6b7b;
	margin: 0 0 16px;
	line-height: 1.5;
}

.kcq-lesson-footer {
	display: flex;
	justify-content: flex-start;
	border-top: 1px solid #f0f0f5;
	padding-top: 12px;
}

.kcq-lesson-status-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #f0f0f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
	.kcq-mn-container {
		flex-direction: column;
	}
	.kcq-mn-sidebar {
		width: 100%;
	}
	.kcq-mn-chapter-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.kcq-mn-chapter-header-right {
		width: 100%;
		text-align: left;
	}
	.kcq-mn-progress-bar-wrap {
		align-items: flex-start;
	}
}

/* ═══════════════════════════════════════════════════════════
   Section Vidéos — Cartes & lecteur inline
   ═══════════════════════════════════════════════════════════ */

/* Badge Vidéo — couleur harmonisée avec Cours et Quiz */
.kcq-badge-video {
	background: #0d7377;
	color: #fff;
}

/* Dot teal pour les vidéos */
.kcq-dot--video {
	background: #0d7377;
}

/* Wrapper vidéo (thumbnail + player) */
.kcq-video-wrapper {
	margin-bottom: 14px;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

/* Zone miniature */
.kcq-video-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	cursor: pointer;
	overflow: hidden;
	background: #1a1a2e;
}

.kcq-video-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, filter 0.35s ease;
}

.kcq-video-thumb:hover .kcq-video-thumb-img {
	transform: scale(1.04);
	filter: brightness(0.75);
}

/* Placeholder si pas de miniature */
.kcq-video-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2d1a3e 0%, #1a1a2e 100%);
}

/* Bouton Play */
.kcq-video-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 60px;
	height: 60px;
	background: rgba(229, 62, 140, 0.90);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 20px rgba(229,62,140,0.5);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	pointer-events: none;
}
.kcq-video-play-btn svg {
	width: 24px;
	height: 24px;
	margin-left: 3px; /* optical centering for play icon */
}
.kcq-video-thumb:hover .kcq-video-play-btn {
	transform: translate(-50%, -50%) scale(1.12);
	background: #e53e8c;
	box-shadow: 0 8px 32px rgba(229,62,140,0.65);
}

/* Player iframe embed */
.kcq-video-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.kcq-video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Pas d'URL configurée */
.kcq-video-thumb--no-url {
	cursor: default;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
}
.kcq-video-no-url-msg {
	position: absolute;
	color: rgba(255,255,255,0.6);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

/* Filtre Vidéo actif */
.kcq-mn-filter[data-filter="video"].active {
	background: #0d7377;
	color: #fff;
}
.kcq-mn-filter[data-filter="video"]:hover:not(.active) {
	background: #e8f7f7;
	color: #0d7377;
}

/* ═══════════════════════════════════════════════════════════
   Carte vidéo simplifiée (liste) — flèche play + bouton
   ═══════════════════════════════════════════════════════════ */

.kcq-video-list-link h4 {
	justify-content: space-between;
}

.kcq-video-play-arrow {
	display: inline-flex;
	align-items: center;
	color: #0d7377;
	opacity: 0.65;
	transition: opacity 0.2s, transform 0.2s;
	flex-shrink: 0;
}

.kcq-video-list-link:hover .kcq-video-play-arrow {
	opacity: 1;
	transform: translateX(3px);
}

.kcq-video-watch-btn {
	display: inline-block;
	margin-left: auto;
	background: #0d7377;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
	transition: opacity 0.2s, transform 0.2s;
	white-space: nowrap;
}

.kcq-video-watch-btn:hover {
	opacity: 0.88;
	transform: translateX(2px);
}

/* ═══════════════════════════════════════════════════════════
   Page vidéo dédiée (single-kcq_video) — kcqv-*
   ═══════════════════════════════════════════════════════════ */

.kcqv-page {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #2d2d44;
	background: #f9f8fc;
	min-height: 100vh;
	padding-bottom: 60px;
}

/* Centrage global du contenu */
.kcqv-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Breadcrumb */
.kcqv-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 24px 0 12px;
	background: transparent;
	font-size: 12px;
	color: #999;
}
.kcqv-breadcrumb a {
	color: #7c2d8c;
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.15s;
}
.kcqv-breadcrumb a:hover { opacity: 0.7; }
.kcqv-bc-sep { color: #ccc; }
.kcqv-breadcrumb span:last-child { color: #2d2d44; font-weight: 600; }

/* Hero titre */
.kcqv-hero {
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
	margin-bottom: 24px;
	border: 1px solid #eeebf2;
}

.kcqv-badge-video {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #0d7377;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: 12px;
}

.kcqv-hero-title {
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 800;
	color: #7c2d8c;
	margin: 0 0 6px;
	line-height: 1.25;
}

.kcqv-hero-chapter {
	font-size: 13px;
	color: #888;
	margin: 0;
}

/* ── Layout principal ── */
.kcqv-layout {
	display: flex;
	height: 600px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #eeebf2;
	box-shadow: 0 8px 30px rgba(124, 45, 140, 0.04);
	overflow: hidden;
}

/* ── PLAYLIST (gauche) ── */
.kcqv-playlist {
	width: 320px;
	flex-shrink: 0;
	background: #fafafc;
	border-right: 1px solid #eeebf2;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.kcqv-playlist-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	border-bottom: 1px solid #eeebf2;
	flex-shrink: 0;
	background: #fff;
}

.kcqv-playlist-title {
	font-size: 12px;
	font-weight: 800;
	color: #7c2d8c;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.kcqv-playlist-count {
	font-size: 11px;
	color: #888;
	font-weight: 600;
}

.kcqv-playlist-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
	scrollbar-width: thin;
	scrollbar-color: rgba(124, 45, 140, 0.2) transparent;
}

.kcqv-playlist-list::-webkit-scrollbar { width: 4px; }
.kcqv-playlist-list::-webkit-scrollbar-thumb { background: rgba(124, 45, 140, 0.2); border-radius: 2px; }

/* Item playlist */
.kcqv-playlist-item {
	border-bottom: 1px solid #f3f0f6;
}

.kcqv-playlist-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	text-decoration: none;
	color: #4d4d60;
	transition: background 0.15s, color 0.15s;
	position: relative;
}

.kcqv-playlist-link:hover {
	background: #f5f4f8;
	color: #7c2d8c;
}

.kcqv-playlist-item--active .kcqv-playlist-link {
	background: #f4ecf7;
	color: #7c2d8c;
	border-left: 3px solid #7c2d8c;
}

/* Miniature dans la playlist */
.kcqv-playlist-thumb {
	width: 64px;
	height: 40px;
	border-radius: 6px;
	overflow: hidden;
	background: #e2e8f0;
	flex-shrink: 0;
	position: relative;
}

.kcqv-playlist-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kcqv-playlist-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.kcqv-playlist-play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(124, 45, 140, 0.4);
	opacity: 0;
	transition: opacity 0.2s;
}

.kcqv-playlist-play-icon svg {
	width: 18px;
	height: 18px;
	color: #fff;
	fill: #fff;
}

.kcqv-playlist-link:hover .kcqv-playlist-play-icon { opacity: 1; }
.kcqv-playlist-item--active .kcqv-playlist-play-icon { opacity: 1; }

/* Texte playlist item */
.kcqv-playlist-text {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.kcqv-playlist-num {
	font-size: 11px;
	font-weight: 700;
	color: #ccc;
	flex-shrink: 0;
	margin-top: 2px;
	font-variant-numeric: tabular-nums;
}

.kcqv-playlist-item--active .kcqv-playlist-num { color: #7c2d8c; }

.kcqv-playlist-item-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kcqv-playlist-item-desc {
	font-size: 11px;
	color: #888;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kcqv-playlist-now {
	flex-shrink: 0;
	color: #7c2d8c;
	display: flex;
	align-items: center;
}

/* ── LECTEUR (droite) ── */
.kcqv-player-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	background: #fff;
}

.kcqv-video-container {
	width: 100%;
	background: #f8fafc;
}

.kcqv-video-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #f1f5f9;
	cursor: pointer;
}

.kcqv-video-thumb-big {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcqv-thumb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.9);
	transition: filter 0.3s;
}

.kcqv-video-thumb-big:hover .kcqv-thumb-img { filter: brightness(0.8); }

.kcqv-thumb-placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.kcqv-big-play-btn {
	position: relative;
	z-index: 2;
	width: 72px;
	height: 72px;
	background: #7c2d8c;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 8px 30px rgba(124, 45, 140, 0.3);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.kcqv-big-play-btn svg {
	width: 28px;
	height: 28px;
	fill: #fff;
	margin-left: 4px;
}

.kcqv-video-thumb-big:hover .kcqv-big-play-btn {
	transform: scale(1.08);
	background: #5f2170;
	box-shadow: 0 12px 40px rgba(124, 45, 140, 0.45);
}

.kcqv-play-hint {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	font-size: 13px;
	color: #fff;
	background: rgba(0,0,0,0.4);
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 600;
	letter-spacing: .03em;
	pointer-events: none;
}

.kcqv-iframe-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.kcqv-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.kcqv-no-video {
	aspect-ratio: 16 / 9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: #f1f5f9;
	color: #888;
	font-size: 15px;
}

.kcqv-no-video-icon { font-size: 48px; }

/* Zone info + navigation */
.kcqv-video-info {
	padding: 24px 28px;
	border-top: 1px solid #eeebf2;
	flex: 1;
}

.kcqv-video-info-title {
	font-size: 18px;
	font-weight: 800;
	color: #2d2d44;
	margin: 0 0 8px;
}

.kcqv-video-info-desc {
	font-size: 14px;
	color: #6b6b7b;
	line-height: 1.6;
	margin: 0 0 24px;
}

/* Navigation précédent / suivant */
.kcqv-nav {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.kcqv-nav-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 180px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fbfbfe;
	border: 1px solid #eeebf2;
	text-decoration: none;
	color: #2d2d44;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.kcqv-nav-btn:hover {
	background: #f5eef7;
	border-color: #7c2d8c;
	color: #7c2d8c;
}

.kcqv-nav-next { justify-content: flex-end; text-align: right; }

.kcqv-nav-btn svg { flex-shrink: 0; color: #888; transition: color 0.2s; }
.kcqv-nav-btn:hover svg { color: #7c2d8c; }

.kcqv-nav-btn small {
	display: block;
	font-size: 11px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: 2px;
}

.kcqv-nav-btn strong {
	display: block;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}

/* Retour */
.kcqv-back-link {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: #7c2d8c;
	text-decoration: none;
	transition: color 0.2s;
}
.kcqv-back-link:hover { color: #5f2170; }

/* Compteur vidéo X / N */
.kcqv-vid-counter {
	font-size: 12px;
	color: #888;
	margin: 0 0 16px;
	font-weight: 600;
}
.kcqv-vid-counter strong { color: #2d2d44; }

/* ── Responsive ── */
@media (max-width: 900px) {
	.kcqv-layout {
		flex-direction: column;
		height: auto;
	}
	.kcqv-playlist {
		width: 100%;
		max-height: 320px;
		border-right: none;
		border-top: 1px solid #eeebf2;
		order: 2;
	}
	.kcqv-player-wrap { order: 1; }
}

@media (max-width: 600px) {
	.kcqv-hero { padding: 14px 16px 20px; }
	.kcqv-video-info { padding: 16px; }
	.kcqv-nav-btn { min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════
   Page Quiz interactive (single-kcq_quiz) — kcqz-*
   Design : une question à la fois, barre progression, feedback
   ═══════════════════════════════════════════════════════════ */

.kcqz-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a2e;
	background: #f5f3f7;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
}

/* ── Header bar ── */
.kcqz-header {
	background: #fff;
	border-bottom: 1px solid #ececf3;
	position: sticky;
	top: 0;
	z-index: 100;
}

.kcqz-header-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.kcqz-header-title {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.kcqz-header-name {
	font-size: 14px;
	font-weight: 700;
	color: #7c2d8c;
}

.kcqz-header-counter {
	font-size: 13px;
	color: #6b6b7b;
	font-weight: 600;
}

.kcqz-header-actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

.kcqz-quit-btn {
	font-size: 13px;
	color: #6b6b7b;
	text-decoration: none;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
	transition: background 0.15s, color 0.15s;
}

.kcqz-quit-btn:hover {
	background: #faf5ff;
	color: #7c2d8c;
}

/* Progress bar */
.kcqz-progress-bar {
	height: 4px;
	background: #ececf3;
}

.kcqz-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #e53e8c, #7c2d8c);
	border-radius: 0 2px 2px 0;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Main question area ── */
.kcqz-main {
	flex: 1;
	max-width: 680px;
	width: 100%;
	margin: 0 auto;
	padding: 48px 24px 120px;
}

.kcqz-question-wrap {
	animation: kcqzFadeIn 0.35s ease;
}

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

/* Question text */
.kcqz-question-text {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.5;
	margin-bottom: 32px;
	text-align: center;
}

/* Choices */
.kcqz-choices {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kcqz-choice {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #fff;
	border: 2px solid #ececf3;
	border-radius: 12px;
	padding: 16px 20px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
	text-align: left;
	font-family: inherit;
	font-size: 15px;
	width: 100%;
	position: relative;
}

.kcqz-choice:hover:not(.kcqz-choice--answered) {
	border-color: #7c2d8c;
	background: #faf5ff;
	box-shadow: 0 2px 12px rgba(124,45,140,0.08);
	transform: translateY(-1px);
}

.kcqz-choice-letter {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f5f3f7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
	color: #7c2d8c;
	flex-shrink: 0;
	border-left: 3px solid #7c2d8c;
}

.kcqz-choice-text {
	flex: 1;
	font-weight: 600;
	color: #1a1a2e;
	line-height: 1.4;
}

.kcqz-choice-indicator {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	display: none;
}

/* ── Answered states ── */
.kcqz-choice--answered {
	cursor: default;
	transform: none !important;
}

.kcqz-choice--answered:hover {
	box-shadow: none;
	transform: none;
}

/* Correct answer */
.kcqz-choice--correct {
	background: #c5d99e;
	border-color: #a3c261;
}

.kcqz-choice--correct .kcqz-choice-letter {
	background: #a3c261;
	color: #fff;
	border-left-color: #8aad4a;
}

.kcqz-choice--correct .kcqz-choice-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #7da53e;
	border-radius: 50%;
	color: #fff;
}

.kcqz-choice--correct .kcqz-choice-indicator::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

/* Incorrect answer */
.kcqz-choice--incorrect {
	background: #fdecea;
	border-color: #e8a9a0;
}

.kcqz-choice--incorrect .kcqz-choice-letter {
	background: #e8a9a0;
	color: #fff;
	border-left-color: #c0392b;
}

.kcqz-choice--incorrect .kcqz-choice-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #c0392b;
	border-radius: 50%;
	color: #fff;
}

.kcqz-choice--incorrect .kcqz-choice-indicator::after {
	content: '';
	width: 12px;
	height: 12px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
}

/* Non-selected after answering */
.kcqz-choice--answered:not(.kcqz-choice--correct):not(.kcqz-choice--incorrect) {
	opacity: 0.55;
}

/* ── Explanation ── */
.kcqz-explanation {
	margin-top: 28px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #ececf3;
	overflow: hidden;
	animation: kcqzFadeIn 0.3s ease;
}

.kcqz-explanation-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a2e;
	text-align: left;
	transition: background 0.15s;
}

.kcqz-explanation-toggle:hover {
	background: #faf5ff;
}

.kcqz-chevron {
	transition: transform 0.3s ease;
	color: #6b6b7b;
	flex-shrink: 0;
}

.kcqz-explanation-content {
	padding: 0 20px 20px;
	border-top: 1px solid #ececf3;
}

.kcqz-explanation-content p {
	font-size: 14px;
	color: #555;
	line-height: 1.7;
	margin: 16px 0 0;
}

/* ── Bottom bar (feedback) ── */
.kcqz-bottombar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 200;
	padding: 0;
	transition: background 0.3s;
	animation: kcqzSlideUp 0.3s ease;
}

@keyframes kcqzSlideUp {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.kcqz-bottombar--correct {
	background: #7da53e;
}

.kcqz-bottombar--incorrect {
	background: #c0392b;
}

.kcqz-bottombar-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.kcqz-feedback {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
}

.kcqz-feedback-icon {
	display: flex;
	align-items: center;
}

.kcqz-feedback-text {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
}

.kcqz-next-btn {
	background: #fff;
	color: #1a1a2e;
	border: none;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: opacity 0.15s, transform 0.15s;
}

.kcqz-next-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* ── Results screen ── */
.kcqz-results {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: linear-gradient(135deg, #1a1a2e 0%, #3a1a5e 50%, #7c2d8c 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: kcqzFadeIn 0.4s ease;
}

.kcqz-results-inner {
	text-align: center;
	max-width: 480px;
	padding: 40px 32px;
}

.kcqz-results-icon {
	font-size: 64px;
	margin-bottom: 16px;
}

.kcqz-results-title {
	font-size: 32px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 24px;
}

.kcqz-score-circle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 32px;
}

.kcqz-score-percent {
	font-size: 72px;
	font-weight: 900;
	color: #fff;
	line-height: 1;
}

.kcqz-score-detail {
	font-size: 16px;
	color: rgba(255,255,255,0.6);
	font-weight: 600;
}

.kcqz-results-breakdown {
	display: flex;
	gap: 24px;
	justify-content: center;
	margin-bottom: 36px;
}

.kcqz-breakdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 24px;
	border-radius: 12px;
	min-width: 120px;
}

.kcqz-breakdown-correct {
	background: rgba(125, 165, 62, 0.25);
}

.kcqz-breakdown-wrong {
	background: rgba(192, 57, 43, 0.25);
}

.kcqz-breakdown-num {
	font-size: 32px;
	font-weight: 900;
	color: #fff;
}

.kcqz-breakdown-label {
	font-size: 12px;
	font-weight: 600;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.kcqz-results-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.kcqz-btn-restart {
	background: #fff;
	color: #7c2d8c;
	border: none;
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.15s, box-shadow 0.15s;
}

.kcqz-btn-restart:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255,255,255,0.2);
}

.kcqz-btn-back {
	background: rgba(255,255,255,0.15);
	color: #fff;
	border: 2px solid rgba(255,255,255,0.3);
	padding: 12px 28px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
	transition: background 0.15s, border-color 0.15s;
}

.kcqz-btn-back:hover {
	background: rgba(255,255,255,0.25);
	border-color: rgba(255,255,255,0.5);
}

/* Empty quiz */
.kcqz-empty {
	text-align: center;
	padding: 80px 24px;
	color: #6b6b7b;
	font-size: 16px;
}

.kcqz-empty a {
	display: inline-block;
	margin-top: 16px;
}

/* ── Quiz responsive ── */
@media (max-width: 600px) {
	.kcqz-main {
		padding: 24px 16px 120px;
	}
	.kcqz-question-text {
		font-size: 17px;
	}
	.kcqz-choice {
		padding: 12px 14px;
		gap: 12px;
	}
	.kcqz-choice-letter {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
	.kcqz-choice-text {
		font-size: 14px;
	}
	.kcqz-bottombar-inner {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
	.kcqz-next-btn {
		width: 100%;
	}
	.kcqz-results-breakdown {
		flex-direction: column;
		gap: 12px;
	}
	.kcqz-score-percent {
		font-size: 56px;
	}
}

/* ═══════════════════════════════════════════════════════════
   Page Cours individuel (single-kcq_cours) — kcqc-*
   Design inspiré Digischool
   ═══════════════════════════════════════════════════════════ */

/* Reset body pour la page cours */
.kcqc-body {
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #2d2d44;
}

.kcqc-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ── Hero ── */
.kcqc-hero {
	background: #fff;
	text-align: center;
	padding: 24px 24px 48px;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid #f0edf5;
}

/* Breadcrumb */
.kcqc-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	font-size: 12px;
	color: #999;
	margin-bottom: 32px;
}

.kcqc-breadcrumb a {
	color: #7c2d8c;
	text-decoration: none;
	font-weight: 500;
	transition: opacity 0.15s;
}

.kcqc-breadcrumb a:hover { opacity: 0.7; }

.kcqc-breadcrumb span {
	color: #ccc;
}

.kcqc-bc-current {
	color: #2d2d44;
	font-weight: 600;
}

/* Doodles décoratifs */
.kcqc-doodles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.kcqc-doodle {
	position: absolute;
	color: #7c2d8c;
	font-size: 20px;
	opacity: 0.25;
}

.kcqc-doodle--plus1 { top: 50px; left: 6%; font-size: 28px; font-weight: 900; }
.kcqc-doodle--dot1  { top: 80px; left: 12%; font-size: 40px; opacity: 0.12; }
.kcqc-doodle--dot2  { top: 60%; right: 10%; font-size: 16px; }
.kcqc-doodle--plus2 { bottom: 30px; right: 6%; font-size: 24px; font-weight: 900; }

.kcqc-doodle-wave {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 160px;
	opacity: 0.35;
}

.kcqc-doodle-squiggle {
	position: absolute;
	top: 30px;
	right: 5%;
	width: 80px;
	opacity: 0.3;
}

/* Titre cursif */
.kcqc-hero-title {
	font-family: 'Pacifico', cursive;
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 400;
	color: #7c2d8c;
	margin: 0 0 12px;
	line-height: 1.25;
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.kcqc-hero-meta {
	font-size: 13px;
	color: #888;
	font-weight: 500;
	margin: 0 0 24px;
	position: relative;
	z-index: 1;
}

/* Actions sous le titre */
.kcqc-hero-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.kcqc-badge-cours-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #1a1a4b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.kcqc-back-link {
	font-size: 13px;
	color: #7c2d8c;
	text-decoration: none;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 8px;
	transition: background 0.15s;
}

.kcqc-back-link:hover {
	background: #faf5ff;
}

/* ── Intro ── */
.kcqc-intro-wrap {
	background: #f9f8fc;
	padding: 32px 24px;
	border-bottom: 1px solid #eeebf5;
}

.kcqc-intro-text {
	max-width: 750px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.75;
	color: #444;
	text-align: center;
	font-style: italic;
}

/* ── Contenu principal ── */
.kcqc-content-wrap {
	flex: 1;
	padding: 48px 24px 64px;
	background: #fff;
}

.kcqc-content {
	max-width: 750px;
	margin: 0 auto;
}

/* ── Typographie du contenu WordPress ── */
.kcqc-content h1,
.kcqc-content h2,
.kcqc-content h3,
.kcqc-content h4 {
	color: #7c2d8c;
	margin: 32px 0 12px;
	line-height: 1.3;
}

.kcqc-content h2 {
	font-size: 22px;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 10px;
}

.kcqc-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #3a1a5e;
}

.kcqc-content h4 {
	font-size: 15px;
	font-weight: 700;
	color: #555;
}

.kcqc-content p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.8;
	color: #2d2d44;
}

.kcqc-content ul,
.kcqc-content ol {
	margin: 0 0 20px 20px;
	padding: 0;
}

.kcqc-content li {
	font-size: 15px;
	line-height: 1.75;
	color: #2d2d44;
	margin-bottom: 6px;
}

.kcqc-content strong { color: #1a1a4b; }

.kcqc-content em { color: #7c2d8c; }

.kcqc-content a {
	color: #7c2d8c;
	text-decoration: underline;
	text-decoration-color: rgba(124,45,140,0.3);
}

.kcqc-content blockquote {
	margin: 24px 0;
	padding: 16px 24px;
	background: #faf5ff;
	border-left: 4px solid #7c2d8c;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #555;
}

/* Encadrés spéciaux (retenir, objectif…) */
.kcqc-content .wp-block-group,
.kcqc-content .has-background {
	border-radius: 12px;
	padding: 20px 24px;
	margin: 24px 0;
}

/* Tables */
.kcqc-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	font-size: 14px;
}

.kcqc-content th {
	background: #7c2d8c;
	color: #fff;
	padding: 10px 14px;
	text-align: left;
	font-weight: 700;
}

.kcqc-content td {
	padding: 10px 14px;
	border-bottom: 1px solid #f0edf5;
}

.kcqc-content tr:nth-child(even) td {
	background: #faf5ff;
}

/* Images */
.kcqc-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 8px 0;
}

/* ── Barre de navigation bas de page ── */
.kcqc-lesson-nav {
	background: #7c2d8c;
	color: #fff;
}

.kcqc-lesson-nav-inner {
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 72px;
}

.kcqc-nav-prev,
.kcqc-nav-next {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 16px 28px;
	text-decoration: none;
	color: #fff;
	transition: background 0.2s;
	gap: 4px;
}

.kcqc-nav-prev {
	border-right: 1px solid rgba(255,255,255,0.15);
	align-items: flex-start;
}

.kcqc-nav-next {
	align-items: flex-end;
	text-align: right;
}

.kcqc-nav-prev:hover,
.kcqc-nav-next:hover {
	background: rgba(255,255,255,0.12);
}

.kcqc-nav-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	opacity: 0.7;
}

.kcqc-nav-title {
	font-size: 14px;
	font-weight: 700;
}

.kcqc-nav-back {
	grid-column: 2;
}

/* ── Responsive ── */
@media (max-width: 640px) {
	.kcqc-hero {
		padding: 16px 16px 36px;
	}

	.kcqc-hero-title {
		font-size: 26px;
	}

	.kcqc-content-wrap {
		padding: 32px 16px 48px;
	}

	.kcqc-lesson-nav-inner {
		grid-template-columns: 1fr;
	}

	.kcqc-nav-prev {
		border-right: none;
		border-bottom: 1px solid rgba(255,255,255,0.15);
	}

	.kcqc-nav-next {
		align-items: flex-start;
		text-align: left;
	}

	.kcqc-nav-back {
		grid-column: 1;
	}

	.kcqc-doodle-squiggle,
	.kcqc-doodle-wave { display: none; }
}

/* ── Éléments structurés du Cours (Style DigiSchool) ── */

/* Bar de téléchargement PDF */
.kcqc-pdf-download-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.kcqc-pdf-icon-wrap {
	position: relative;
	background: #fdf2f2;
	border: 1px solid #fbd5d5;
	padding: 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kcqc-pdf-badge-tag {
	position: absolute;
	top: -6px;
	left: -6px;
	background: #e74c3c;
	color: #fff;
	font-size: 8px;
	font-weight: 900;
	padding: 1px 4px;
	border-radius: 3px;
	text-transform: uppercase;
}

.kcqc-pdf-btn {
	background: #d48b0a;
	background: linear-gradient(135deg, #d48b0a 0%, #b87300 100%);
	color: #fff !important;
	border: none;
	padding: 10px 20px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 4px 12px rgba(184, 115, 0, 0.2);
	transition: transform 0.2s, box-shadow 0.2s;
}

.kcqc-pdf-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(184, 115, 0, 0.35);
}

/* Section de structure générique */
.kcqc-structured-section {
	margin: 40px 0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
	background: #fbfbfe;
	border: 1px solid #eeebf7;
}

.kcqc-section-title {
	font-size: 18px !important;
	font-weight: 800 !important;
	margin-top: 0 !important;
	margin-bottom: 16px !important;
	color: #7c2d8c !important;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 2px dashed rgba(124, 45, 140, 0.15);
	padding-bottom: 8px;
}

/* Style de section Objectif */
.kcqc-objectif-section {
	background: #f7f4fc;
	border-left: 5px solid #7c2d8c;
}

.kcqc-objectif-section .kcqc-section-title {
	color: #7c2d8c !important;
	border-bottom-color: rgba(124, 45, 140, 0.2);
}

/* Style de section A retenir */
.kcqc-retenir-section {
	background: #fff9f0;
	border-left: 5px solid #e67e22;
}

.kcqc-retenir-section .kcqc-section-title {
	color: #d35400 !important;
	border-bottom-color: rgba(230, 126, 34, 0.2);
}

.kcqc-retenir-section ul {
	margin: 0 0 0 20px;
	padding: 0;
}

.kcqc-retenir-section li {
	font-size: 15px;
	line-height: 1.8;
	margin-bottom: 10px;
	list-style-type: disc;
	color: #4d3d33;
}

/* Style de section Entraînons-nous */
.kcqc-entrainement-section {
	background: #f5faf6;
	border-left: 5px solid #2ecc71;
}

.kcqc-entrainement-section .kcqc-section-title {
	color: #27ae60 !important;
	border-bottom-color: rgba(46, 204, 113, 0.2);
}

.kcqc-qa-pair {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e9f5ed;
}

.kcqc-qa-pair:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.kcqc-question {
	font-size: 15px;
	font-weight: 700;
	color: #2c3e50;
	margin-bottom: 8px !important;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.kcqc-answer {
	font-size: 15px;
	color: #27ae60;
	margin-bottom: 0 !important;
	font-weight: 600;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.kcqc-qa-icon {
	flex-shrink: 0;
}

/* RTL support modifications for new sections */
[dir="rtl"] .kcqc-pdf-btn svg {
	margin-right: 0;
	margin-left: 6px;
}

[dir="rtl"] .kcqc-pdf-badge-tag {
	left: auto;
	right: -6px;
}

[dir="rtl"] .kcqc-objectif-section,
[dir="rtl"] .kcqc-retenir-section,
[dir="rtl"] .kcqc-entrainement-section {
	border-left: none;
	border-right: 5px solid;
}

[dir="rtl"] .kcqc-objectif-section {
	border-right-color: #7c2d8c;
}

[dir="rtl"] .kcqc-retenir-section {
	border-right-color: #e67e22;
}

[dir="rtl"] .kcqc-entrainement-section {
	border-right-color: #2ecc71;
}

[dir="rtl"] .kcqc-retenir-section ul {
	margin-left: 0;
	margin-right: 20px;
}

