/* Lou & Leo Core - frontend parcours */

.ll-core-shell,
.ll-core-archive {
	box-sizing: border-box;
	width: min(100%, 1120px);
	margin: 0 auto 32px;
	color: #172033;
	font-family: inherit;
}

.ll-core-shell *,
.ll-core-archive * {
	box-sizing: border-box;
}

.ll-core-notice {
	width: min(100%, 860px);
	margin: 18px auto;
	padding: 16px 18px;
	border: 1px solid #d7dde8;
	border-radius: 8px;
	background: #f8fafc;
	color: #334155;
	font-weight: 700;
}

.ll-core-notice--locked {
	border-color: #f1c97d;
	background: #fff8e8;
	color: #7a4b12;
}

.ll-core-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #172033;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.ll-core-button:hover,
.ll-core-button:focus {
	border-color: #FFA126;
	color: #FFA126;
	text-decoration: none;
	transform: translateY(-1px);
}

.ll-core-button--primary {
	border-color: #FFA126;
	background: #FFA126;
	color: #ffffff;
}

.ll-core-button--primary:hover,
.ll-core-button--primary:focus {
	background: #FFA126;
	border-color: #FFA126;
	color: #ffffff;
}

.ll-core-button--secondary {
	border-color: #b6c2d4;
	background: #f8fafc;
}

.ll-core-button--ghost {
	border-color: transparent;
	background: transparent;
	color: #5A3A22;
}

.ll-core-button--small {
	min-height: 36px;
	padding: 8px 12px;
	font-size: 0.88rem;
}

.ll-core-button--disabled {
	opacity: 0.48;
	cursor: not-allowed;
	transform: none;
}

.ll-core-archive {
	padding: 8px 0;
}

.ll-core-archive__header,
.ll-module__header,
.ll-activity__header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 0 18px;
}

.ll-core-archive__eyebrow,
.ll-module__eyebrow,
.ll-activity__eyebrow {
	margin: 0 0 4px;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ll-core-archive__title,
.ll-module__title,
.ll-activity__title {
	margin: 0;
	color: #111827;
	font-size: 2rem;
	line-height: 1.12;
}

.ll-core-archive__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}

.ll-core-module-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 170px;
	padding: 18px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ll-core-module-card__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 800;
}

.ll-core-module-card__status,
.ll-module-status,
.ll-module-word__badge,
.ll-module-activity__meta {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 9px;
	border-radius: 999px;
	background: #eef2ff;
	color: #334155;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1.1;
}

.ll-core-module-card__title {
	margin: 0;
	font-size: 1.12rem;
	line-height: 1.25;
}

.ll-core-module-card__title a {
	color: #172033;
	text-decoration: none;
}

.ll-core-module-card__title a:hover,
.ll-core-module-card__title a:focus {
	color: #1d4ed8;
	text-decoration: underline;
}

.ll-core-module-card__hint {
	margin: auto 0 0;
	color: #64748b;
	font-size: 0.92rem;
}

.ll-core-module-card.is-locked {
	background: #f8fafc;
	color: #64748b;
	box-shadow: none;
}

.ll-core-module-card.is-current {
	border-color: #93c5fd;
	background: #eff6ff;
}

.ll-core-module-card.is-completed {
	border-color: #86efac;
	background: #f0fdf4;
}

.ll-core-module-card.is-locked .ll-core-module-card__status,
.ll-core-button--disabled {
	background: #e2e8f0;
	color: #64748b;
}

.ll-core-module-card.is-completed .ll-core-module-card__status {
	background: #dcfce7;
	color: #166534;
}

.ll-core-module-card.is-current .ll-core-module-card__status {
	background: #dbeafe;
	color: #1d4ed8;
}

.ll-module,
.ll-activity,
.ll-word-card {
	padding: 22px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.ll-core-shell.ll-activity {
	border: 0;
	background: transparent;
	box-shadow: none;
}

.ll-module-instance {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.ll-module-instance__nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ll-module-instance__button {
	min-width: 128px;
}

.ll-module-instance__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	padding: 18px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	background: #ffffff;
}

.ll-module-word-card {
	position: relative;
	border-radius: 8px;
	isolation: isolate;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ll-module-word-card:hover {
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
	transform: translateY(-4px) scale(1.02);
}

.ll-module-word-card__image {
	position: relative;
	display: block;
	height: 200px;
	border-radius: 8px;
	background: #f1f5f9;
	overflow: hidden;
}

.ll-module-word-card__img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: center 58%;
	transform: translateY(-14px);
}

.ll-module-word-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: #f1f5f9;
}

.ll-module-word-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 8px;
	background: #16a34a;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.ll-module-word-card.ll-role-new::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: 8px;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.3), 0 6px 14px rgba(22, 163, 74, 0.24);
	pointer-events: none;
}

.ll-metacognition {
	margin-top: 24px;
	padding: 18px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.ll-metacognition__header {
	margin-bottom: 16px;
}

.ll-metacognition__header h2 {
	margin: 0 0 6px;
	font-size: 1.25rem;
	line-height: 1.2;
}

.ll-metacognition__header p {
	margin: 0;
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.4;
}

.ll-metacognition__words {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.ll-metacognition-word {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
}

.ll-metacognition-word__title {
	color: #111827;
	font-size: 1.05rem;
	font-weight: 900;
	line-height: 1.2;
}

.ll-metacognition-word__choices {
	display: grid;
	gap: 8px;
}

.ll-metacognition-word__choices label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 8px;
	align-items: start;
	margin: 0;
	color: #172033;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.25;
}

.ll-metacognition-word__comment {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: #334155;
	font-size: 0.88rem;
	font-weight: 800;
}

.ll-metacognition-word__comment textarea {
	width: 100%;
	min-height: 92px;
	padding: 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #172033;
	font: inherit;
	line-height: 1.35;
	resize: vertical;
}

.ll-metacognition__footer {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 14px;
}

.ll-metacognition__message {
	min-height: 20px;
	color: #64748b;
	font-size: 0.9rem;
	font-weight: 800;
}

.ll-metacognition__message.is-success {
	color: #166534;
}

.ll-metacognition__message.is-error {
	color: #b91c1c;
}

.ll-module-instance--locked {
	text-align: center;
}

.ll-module-instance__locked-text {
	margin: 0;
	color: #475569;
	font-weight: 700;
}

.ll-activity__module-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	color: #475569;
	font-weight: 800;
	text-decoration: none;
}

.ll-activity__module-link:hover,
.ll-activity__module-link:focus {
	border-color: #FFA126;
	color: #FFA126;
	text-decoration: none;
}

.ll-activity-game {
	margin: 18px 0 0;
	padding: 14px;
	border-radius: 8px;
	overflow-x: auto;
}

.ll-activity-game-placeholder {
	margin: 0;
	color: #64748b;
	font-weight: 800;
}

.ll-activity-nav,
.ll-activity-back {
	margin: 18px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.ll-activity-nav__progress {
	margin: 0 0 10px;
	color: #475569;
	font-weight: 900;
}

.ll-activity-nav__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ll-word-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: min(720px, calc(100dvh - 48px));
	margin-bottom: 16px;
}

.single-ll_orthographe .site,
.single-ll_orthographe .site-content,
.single-ll_orthographe .site-main,
.single-ll_orthographe #primary,
.single-ll_orthographe .content-area,
.single-ll_orthographe .content-container,
.single-ll_orthographe .content-wrap,
.single-ll_orthographe .entry,
.single-ll_orthographe .entry-header,
.single-ll_orthographe .entry-content,
.single-ll_orthographe .wp-site-blocks {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.single-ll_orthographe .entry-title {
	display: none !important;
}

.single-ll_activite .entry-title,
.single-ll_activite .wp-block-post-title {
	display: none !important;
}

.single-ll_activite .site,
.single-ll_activite .site-content,
.single-ll_activite .site-main,
.single-ll_activite main,
.single-ll_activite article,
.single-ll_activite #primary,
.single-ll_activite .content-area,
.single-ll_activite .content-container,
.single-ll_activite .content-wrap,
.single-ll_activite .site-inner,
.single-ll_activite .container,
.single-ll_activite .ast-container,
.single-ll_activite .inside-article,
.single-ll_activite .page-content,
.single-ll_activite .post,
.single-ll_activite .type-ll_activite,
.single-ll_activite .entry,
.single-ll_activite .entry-header,
.single-ll_activite .entry-content,
.single-ll_activite .wp-site-blocks,
.single-ll_activite .wp-block-post-content,
.single-ll_activite .content-bg,
.single-ll_activite .site-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.single-ll_activite .ll-core-shell,
.single-ll_activite .ll-activity {
	width: 100%;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.single-ll_activite .ll-activity-game {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow-x: visible;
}

.single-ll_activite .ll-activity-game > .sbo-game-shell {
	width: 100%;
}

.single-ll_activite .ll-activity-nav,
.single-ll_activite .ll-activity-back {
	margin: 6px 0 0;
	padding-top: 6px;
}

.single-ll_activite .ll-activity-nav__progress {
	margin: 0 0 4px;
	line-height: 1.1;
}

.single-ll_orthographe .ll-core-shell,
.single-ll_orthographe .ll-word-card {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.ll-word-card__header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	text-align: center;
}

.ll-word-card__eyebrow {
	margin: 0;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.ll-word-card__title {
	margin: 0;
	color: #111827;
	font-size: 1.8rem;
	line-height: 1.12;
}

.ll-word-card__layout {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) minmax(265px, 550px) minmax(220px, 1fr);
	gap: 24px;
	align-items: start;
	flex: 1 1 auto;
	min-height: 0;
}

.ll-word-card__main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.ll-word-card__side {
	min-width: 0;
}

.ll-word-card__side--right {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 8px;
}

.ll-word-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78%;
	margin: 0 auto;
	border-radius: 16px;
	overflow: hidden;
}

.ll-word-image__img {
	display: block;
	width: 100%;
	max-height: clamp(220px, 52dvh, 560px);
	height: auto;
	object-fit: contain;
}

.ll-word-image--empty {
	aspect-ratio: 1 / 1;
	max-height: 420px;
	background: #f1f5f9;
}

.ll-word-audio {
	width: 100%;
}

.ll-word-audio audio,
.ll-word-card audio {
	display: block;
	width: 100%;
	border-radius: 8px;
	background: #eee8e2;
	overflow: hidden;
}

.ll-word-card audio::-webkit-media-controls-panel {
	background: #eee8e2;
}

.ll-word-extra-audio {
	display: block;
	align-items: center;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: #ffffff;
}

.ll-word-extra-audio--rule {
	background: #e8f6ec;
	border-color: #bde5c7;
}

.ll-word-extra-audio--exception {
	background: #e8f1ff;
	border-color: #bfd5fb;
}

.ll-word-extra-audio--help {
	background: #fff0df;
	border-color: #f4d0a8;
}

.ll-word-extra-audio__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.ll-word-extra-audio__label {
	color: #172033;
	font-size: 0.82rem;
	font-weight: 900;
}

.ll-word-extra-audio--rule audio,
.ll-word-extra-audio--rule audio::-webkit-media-controls-panel {
	background: #d9f0df;
}

.ll-word-extra-audio--exception audio,
.ll-word-extra-audio--exception audio::-webkit-media-controls-panel {
	background: #dbeaff;
}

.ll-word-extra-audio--help audio,
.ll-word-extra-audio--help audio::-webkit-media-controls-panel {
	background: #ffe4c5;
}

.ll-word-memory {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 9999;
	transform: translateY(-50%);
	font-family: inherit;
}

.ll-word-memory,
.ll-word-memory * {
	box-sizing: border-box;
}

.ll-word-memory__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 128px;
	padding: 10px 8px;
	border: 1px solid #D97A00;
	border-right: 0;
	border-radius: 14px 0 0 14px;
	background: #FFA126;
	color: #ffffff;
	font-weight: 900;
	line-height: 1.1;
	text-orientation: mixed;
	writing-mode: vertical-rl;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ll-word-memory__toggle:hover,
.ll-word-memory__toggle:focus {
	background: #FFB347;
	color: #ffffff;
	outline: none;
}

.ll-word-memory__panel {
	position: absolute;
	top: 50%;
	right: 50px;
	width: min(320px, calc(100vw - 72px));
	padding: 14px;
	border: 1px solid #D97A00;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
	transform: translateY(-50%);
}

.ll-word-memory__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #ffffff;
	color: #5A3A22;
	font-weight: 900;
	cursor: pointer;
}

.ll-word-memory__title {
	margin: 0 34px 12px 0;
	color: #5A3A22;
	font-size: 1rem;
	line-height: 1.2;
}

.ll-word-memory__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}

.ll-word-memory__input {
	width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	color: #172033;
	font: inherit;
}

.ll-word-memory__submit,
.ll-word-memory__choice {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #D97A00;
	border-radius: 8px;
	background: #FFA126;
	color: #ffffff;
	font-weight: 800;
	line-height: 1.1;
	cursor: pointer;
}

.ll-word-memory__submit:hover,
.ll-word-memory__submit:focus,
.ll-word-memory__choice:hover,
.ll-word-memory__choice:focus {
	background: #FFB347;
	color: #ffffff;
}

.ll-word-memory__result {
	margin-top: 12px;
	color: #475569;
	font-size: 0.92rem;
	line-height: 1.4;
}

.ll-word-memory__result p {
	margin: 0 0 8px;
}

.ll-word-memory__choice {
	width: 100%;
	margin-top: 6px;
	background: #ffffff;
	color: #5A3A22;
}

.ll-word-memory-card__title {
	margin: 0 0 10px;
	color: #5A3A22;
	font-size: 1.1rem;
	line-height: 1.2;
}

.ll-word-memory-card__image {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: contain;
	border-radius: 8px;
	background: #f8fafc;
}

.ll-word-memory-card__audio {
	display: block;
	width: 100%;
	margin-top: 10px;
	border-radius: 8px;
}

.ll-word-nav,
.ll-word-back {
	margin: auto 0 0;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
}

.ll-word-nav__progress {
	margin: 0 0 8px;
	color: #475569;
	font-weight: 900;
	text-align: center;
}

.ll-word-nav__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.ll-word-nav__link {
	gap: 6px;
	min-width: 0;
}

.ll-word-nav__arrow {
	font-size: 1.1rem;
	line-height: 1;
}

.ll-archive-page {
	box-sizing: border-box;
	width: min(1300px, calc(100% - 32px));
	margin: 32px auto;
}

.ll-archive-page * {
	box-sizing: border-box;
}

.ll-archive-head {
	margin-bottom: 18px;
}

.ll-archive-title {
	margin: 0 0 8px;
}

.ll-archive-description {
	opacity: 0.9;
}

.ll-progress-box {
	margin: 0 0 28px;
	padding: 16px 18px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	background: #fff;
}

.ll-progress-top {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.ll-progress-label {
	font-size: 1.05em;
	font-weight: 900;
}

.ll-progress-count {
	font-weight: 700;
	opacity: 0.9;
}

.ll-progress-track {
    width: 100%;
    height: 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    box-sizing: border-box;
    overflow: hidden;
}

.ll-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: #4CAF50;
	transition: width 0.3s ease;
}

.ll-progress-percent {
	margin-top: 8px;
	font-weight: 800;
	text-align: right;
}

.ll-module-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 18px;
}

.ll-module-card {
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.ll-module-locked {
	position: relative;
	opacity: 0.72;
}

.ll-module-locked::after {
	content: "🔒";
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 1.2em;
}

.ll-module-link-locked {
	display: inline-block;
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	background: #d9d9d9;
	color: #555;
	font-weight: 800;
	text-align: center;
	cursor: not-allowed;
}

.ll-module-card-inner {
	display: flex;
	flex-direction: column;
	min-height: 170px;
	padding: 14px;
}

.ll-module-title {
	margin-bottom: 6px;
	font-weight: 900;
	line-height: 1.25;
}

.ll-module-number {
	margin-bottom: 12px;
	font-size: 0.92em;
	font-weight: 700;
	opacity: 0.8;
}

.ll-module-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ll-status-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 800;
	line-height: 1;
}

.ll-badge-doing {
	background: #ffe6c9;
	color: #8a4b00;
}

.ll-badge-todo {
	background: #efefef;
	color: #555;
}

.ll-badge-done {
	background: #dff5e1;
	color: #1f6b2a;
}

.ll-comment-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.05em;
	line-height: 1;
}

.ll-module-action {
	margin-top: auto;
}

.ll-module-link {
	display: inline-block;
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	background: #111;
	color: #fff;
	font-weight: 800;
	text-align: center;
	text-decoration: none;
}

.ll-module-link:hover,
.ll-module-link:focus {
	color: #fff;
	text-decoration: none;
}

@media (min-width: 768px) and (max-width: 1366px) {
	.ll-module-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
		column-gap: 26px !important;
		row-gap: 26px !important;
	}
}

@media (min-width: 1367px) {
	.ll-module-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: 16px;
		row-gap: 18px;
	}
}

.tax-type-classe .ll-core-archive-word-thumbs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 8px 0 12px;
}

.tax-type-classe .ll-core-archive-word-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border: 1px solid #d9e0ea;
	border-radius: 8px;
	background: #f8fafc;
	overflow: hidden;
}

.tax-type-classe .ll-core-archive-word-thumb__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ll-child-dashboard,
.ll-dashboard,
.ll-dashboard-scoring,
.ll-dashboard-meta-score,
.ll-dashboard-bilan,
.ll-difficultes-detail {
	box-sizing: border-box;
	width: 100%;
	color: #172033;
}

.ll-child-dashboard *,
.ll-dashboard *,
.ll-dashboard-scoring *,
.ll-dashboard-meta-score *,
.ll-dashboard-bilan *,
.ll-difficultes-detail * {
	box-sizing: border-box;
}

.ll-child-dashboard__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.ll-child-dashboard__panel {
	min-width: 0;
}

.ll-child-dashboard__panel:nth-child(2) {
	padding: 14px;
	border-radius: 12px;
	background: #f8fafc;
}

.ll-dashboard,
.ll-dashboard-scoring,
.ll-dashboard-meta-score {
	margin-bottom: 30px;
}

.ll-dashboard h3,
.ll-dashboard-scoring h3,
.ll-dashboard-meta-score h3,
.ll-dashboard-bilan h3,
.ll-difficultes-detail h2 {
	margin: 0 0 10px;
	line-height: 1.2;
}

.ll-score-intro,
.ll-bilan-intro,
.ll-difficultes-intro {
	margin: 0 0 12px;
	color: #475569;
	font-size: 0.9em;
	line-height: 1.4;
}

.ll-score-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.ll-score-stats div,
.ll-word-row,
.ll-score-word,
.ll-meta-score-box,
.ll-meta-score-empty,
.ll-bilan-skills,
.ll-bilan-word,
.ll-bilan-success,
.ll-difficultes-empty,
.ll-difficulte-card {
	border-radius: 12px;
}

.ll-score-stats div {
	padding: 10px;
	text-align: center;
}

.ll-score-stats strong {
	display: block;
	font-size: 1.3em;
	line-height: 1.1;
}

.ll-score-stats span {
	font-size: 0.78em;
}

.ll-score-bar,
.ll-bilan-skill-bar,
.ll-difficulte-bar {
    height: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    box-sizing: border-box;
    overflow: hidden;
}

.ll-score-bar div,
.ll-bilan-skill-bar div,
.ll-difficulte-bar div {
	height: 100%;
	border-radius: 999px;
	background: #2e7d32;
}

.ll-score-percent {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 0.82em;
	text-align: right;
}

.ll-dashboard-list,
.ll-score-list,
.ll-bilan-list,
.ll-meta-score-words {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ll-score-list {
	margin-top: 14px;
}

.ll-word-row,
.ll-score-word,
.ll-bilan-word {
	padding: 10px;
}

.ll-dashboard-list .ll-word-row + .ll-word-row {
	border-top: 1px solid #FFA126;
	padding-top: 16px;
}

.ll-meta-score-box,
.ll-meta-score-empty,
.ll-bilan-success,
.ll-difficultes-empty {
	padding: 14px;
	line-height: 1.45;
}

.ll-word-line,
.ll-score-word-top {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	justify-content: space-between;
	line-height: 1.25;
}

.ll-word-status,
.ll-score-word-top span {
	font-size: 0.82em;
	font-weight: 800;
	white-space: nowrap;
}

.ll-success,
.ll-score-acquis span {
	color: #2e7d32;
}

.ll-error,
.ll-score-difficile span {
	color: #d35400;
}

.ll-score-fragile span {
	color: #f59e0b;
}

.ll-score-nouveau span,
.ll-score-encours span {
	color: #555555;
}

.ll-word-comment,
.ll-score-word-details,
.ll-bilan-word-help,
.ll-meta-score-box p,
.ll-meta-score-empty {
	margin-top: 6px;
	color: #475569;
	font-size: 0.88em;
	line-height: 1.4;
}

.ll-word-module-link {
	display: inline-block;
	margin-top: 8px;
	padding: 6px 9px;
	border-radius: 8px;
	color: #475569;
	font-size: 0.82em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.ll-word-module-link:hover,
.ll-word-module-link:focus {
	color: #172033;
	text-decoration: none;
}

.ll-word-pagination,
.ll-pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	font-size: 0.85em;
}

.ll-word-pagination {
	justify-content: center;
}

.ll-word-pagination a,
.ll-word-pagination span.disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	color: #172033;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.ll-word-pagination span.disabled {
	color: #888888;
}

.ll-pagination a,
.ll-pagination span.disabled {
	font-weight: 700;
	text-decoration: none;
}

.ll-pagination span.disabled {
	color: #94a3b8;
}

.ll-page-count {
	color: #64748b;
	font-size: 0.82em;
	font-weight: 700;
}

.ll-meta-score-box + .ll-meta-score-box {
	margin-top: 10px;
}

.ll-meta-score-words {
	margin-bottom: 12px;
}

.ll-meta-score-words a,
.ll-bilan-word-title {
	font-weight: 800;
	text-decoration: none;
}

.ll-bilan-section-title {
	margin: 30px 0 10px;
	font-weight: 900;
}

.ll-bilan-skills {
	padding: 12px;
	margin-bottom: 5px;
}

.ll-bilan-skill-row {
	margin-bottom: 10px;
}

.ll-bilan-skill-row:last-child {
	margin-bottom: 0;
}

.ll-bilan-skill-label {
	margin-bottom: 5px;
	font-size: 0.9em;
	font-weight: 800;
}

.ll-plus-details {
	color: #90EE90;
	font-size: 0.9em;
	line-height: 1.4;
	opacity: 0.8;
	text-decoration: none;
}

.ll-bilan-success p {
	margin: 0 0 8px;
}

.ll-bilan-success p:last-child {
	margin-bottom: 0;
}

.ll-difficultes-intro {
	margin-bottom: 20px;
}

.ll-difficultes-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 14px;
}

.ll-difficulte-card {
	padding: 14px;
}

.ll-difficulte-card h3 {
	margin: 0 0 10px;
	font-size: 0.95em;
	line-height: 1.25;
}

.ll-difficulte-percent {
	margin-bottom: 8px;
	font-size: 1.35em;
	font-weight: 900;
}

.ll-difficulte-bar {
	height: 9px;
	margin-bottom: 10px;
}

.ll-difficulte-stats {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: #64748b;
	font-size: 0.85em;
}

.ll-retour-dashboard {
	margin-top: 40px;
	text-align: center;
}

.ll-retour-dashboard-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 14px;
	color: #2e7d32 !important;
	font-weight: 800;
	text-decoration: none;
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.ll-retour-dashboard-btn:hover,
.ll-retour-dashboard-btn:focus {
	color: #2e7d32 !important;
	opacity: 0.92;
	text-decoration: none;
	transform: translateY(-1px);
}

body:has(.ll-child-dashboard) .site,
body:has(.ll-dashboard) .site,
body:has(.ll-dashboard-scoring) .site,
body:has(.ll-dashboard-meta-score) .site,
body:has(.ll-dashboard-bilan) .site,
body:has(.ll-difficultes-detail) .site,
body:has(.ll-child-dashboard) .site-content,
body:has(.ll-dashboard) .site-content,
body:has(.ll-dashboard-scoring) .site-content,
body:has(.ll-dashboard-meta-score) .site-content,
body:has(.ll-dashboard-bilan) .site-content,
body:has(.ll-difficultes-detail) .site-content,
body:has(.ll-child-dashboard) .site-main,
body:has(.ll-dashboard) .site-main,
body:has(.ll-dashboard-scoring) .site-main,
body:has(.ll-dashboard-meta-score) .site-main,
body:has(.ll-dashboard-bilan) .site-main,
body:has(.ll-difficultes-detail) .site-main,
body:has(.ll-child-dashboard) #primary,
body:has(.ll-dashboard) #primary,
body:has(.ll-dashboard-scoring) #primary,
body:has(.ll-dashboard-meta-score) #primary,
body:has(.ll-dashboard-bilan) #primary,
body:has(.ll-difficultes-detail) #primary,
body:has(.ll-child-dashboard) .content-area,
body:has(.ll-dashboard) .content-area,
body:has(.ll-dashboard-scoring) .content-area,
body:has(.ll-dashboard-meta-score) .content-area,
body:has(.ll-dashboard-bilan) .content-area,
body:has(.ll-difficultes-detail) .content-area,
body:has(.ll-child-dashboard) .content-container,
body:has(.ll-dashboard) .content-container,
body:has(.ll-dashboard-scoring) .content-container,
body:has(.ll-dashboard-meta-score) .content-container,
body:has(.ll-dashboard-bilan) .content-container,
body:has(.ll-difficultes-detail) .content-container,
body:has(.ll-child-dashboard) .content-wrap,
body:has(.ll-dashboard) .content-wrap,
body:has(.ll-dashboard-scoring) .content-wrap,
body:has(.ll-dashboard-meta-score) .content-wrap,
body:has(.ll-dashboard-bilan) .content-wrap,
body:has(.ll-difficultes-detail) .content-wrap,
body:has(.ll-child-dashboard) .entry,
body:has(.ll-dashboard) .entry,
body:has(.ll-dashboard-scoring) .entry,
body:has(.ll-dashboard-meta-score) .entry,
body:has(.ll-dashboard-bilan) .entry,
body:has(.ll-difficultes-detail) .entry,
body:has(.ll-child-dashboard) .entry-header,
body:has(.ll-dashboard) .entry-header,
body:has(.ll-dashboard-scoring) .entry-header,
body:has(.ll-dashboard-meta-score) .entry-header,
body:has(.ll-dashboard-bilan) .entry-header,
body:has(.ll-difficultes-detail) .entry-header,
body:has(.ll-child-dashboard) .entry-content,
body:has(.ll-dashboard) .entry-content,
body:has(.ll-dashboard-scoring) .entry-content,
body:has(.ll-dashboard-meta-score) .entry-content,
body:has(.ll-dashboard-bilan) .entry-content,
body:has(.ll-difficultes-detail) .entry-content,
body:has(.ll-child-dashboard) .wp-site-blocks,
body:has(.ll-dashboard) .wp-site-blocks,
body:has(.ll-dashboard-scoring) .wp-site-blocks,
body:has(.ll-dashboard-meta-score) .wp-site-blocks,
body:has(.ll-dashboard-bilan) .wp-site-blocks,
body:has(.ll-difficultes-detail) .wp-site-blocks,
body:has(.ll-child-dashboard) .wp-block-post-content,
body:has(.ll-dashboard) .wp-block-post-content,
body:has(.ll-dashboard-scoring) .wp-block-post-content,
body:has(.ll-dashboard-meta-score) .wp-block-post-content,
body:has(.ll-dashboard-bilan) .wp-block-post-content,
body:has(.ll-difficultes-detail) .wp-block-post-content,
body:has(.ll-child-dashboard) .content-bg,
body:has(.ll-dashboard) .content-bg,
body:has(.ll-dashboard-scoring) .content-bg,
body:has(.ll-dashboard-meta-score) .content-bg,
body:has(.ll-dashboard-bilan) .content-bg,
body:has(.ll-difficultes-detail) .content-bg,
body:has(.ll-child-dashboard) .site-container,
body:has(.ll-dashboard) .site-container,
body:has(.ll-dashboard-scoring) .site-container,
body:has(.ll-dashboard-meta-score) .site-container,
body:has(.ll-dashboard-bilan) .site-container,
body:has(.ll-difficultes-detail) .site-container {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

@media (max-width: 1024px) {
	.ll-child-dashboard__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ll-difficultes-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ll-core-shell,
	.ll-core-archive {
		width: 100%;
		margin-bottom: 24px;
	}

	.ll-module,
	.ll-activity,
	.ll-word-card {
		padding: 16px;
	}

	.ll-core-archive__title,
	.ll-module__title,
	.ll-activity__title {
		font-size: 1.55rem;
	}

	.ll-core-archive__header,
	.ll-module__header,
	.ll-activity__header {
		flex-direction: column;
		align-items: stretch;
	}

	.ll-core-archive__grid {
		grid-template-columns: 1fr;
	}

	.ll-module-instance__nav {
		justify-content: center;
	}

	.ll-module-instance__button {
		flex: 1 1 auto;
		min-width: 0;
	}

	.ll-module-instance__button:nth-child(3) {
		flex-basis: 100%;
	}

	.ll-module-instance__grid {
		gap: 14px;
		padding: 14px;
	}

	.ll-metacognition__words {
		grid-template-columns: 1fr;
	}

	.ll-metacognition__footer,
	.ll-metacognition__footer .ll-core-button {
		width: 100%;
	}

	.ll-module-word-card__image {
		height: 170px;
	}

	.ll-module-word-card__img {
		height: 164px;
	}

	.ll-activity-nav__links {
		grid-template-columns: 1fr;
	}

	.ll-child-dashboard__grid,
	.ll-difficultes-grid {
		grid-template-columns: 1fr;
	}

	.ll-score-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ll-word-line,
	.ll-score-word-top {
		align-items: flex-start;
	}

	.ll-word-card {
		min-height: calc(100dvh - 24px);
		gap: 12px;
	}

	.ll-word-card__title {
		font-size: 1.45rem;
	}

	.ll-word-card__layout {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.ll-word-card__side--left {
		display: none;
	}

	.ll-word-card__side--right {
		gap: 8px;
		padding-top: 0;
	}

	.ll-word-image {
		width: min(100%, 430px);
	}

	.ll-word-image__img {
		max-height: 42dvh;
	}

	.ll-word-extra-audio {
		padding: 8px;
	}

	.ll-word-nav {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin-right: -16px;
		margin-left: -16px;
		padding: 10px 16px 0;
		background: #ffffff;
	}

	.ll-word-nav__links {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.ll-word-nav__link {
		width: 100%;
		flex-direction: column;
		gap: 4px;
		min-height: 48px;
		padding: 8px 6px;
		font-size: 0.82rem;
		white-space: nowrap;
	}

	.ll-core-button,
	.ll-activity__module-link {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.ll-module-instance__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (min-width: 761px) {
	.single-ll_orthographe .ll-word-card {
		gap: 8px;
		min-height: 0;
		padding-bottom: 10px;
	}

	.ll-word-card__layout {
		grid-template-columns: minmax(120px, 1fr) minmax(245px, 480px) minmax(220px, 1fr) !important;
		gap: 18px;
		flex: 0 1 auto;
	}

	.ll-word-card__side {
		display: block;
		min-height: 1px;
	}

	.ll-word-card__side--right {
		display: flex;
	}

	.ll-word-card__main {
		gap: 8px;
	}

	.ll-word-image {
		width: 70%;
	}

	.ll-word-image__img {
		max-height: clamp(190px, 46dvh, 500px);
	}

	.ll-word-audio,
	.ll-word-audio audio,
	.ll-word-card audio {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}

	.ll-word-nav,
	.ll-word-back {
		margin: 4px 0 0;
		padding-top: 4px;
	}

	.ll-word-nav__progress {
		margin: 0 0 4px;
		line-height: 1.1;
	}

	.ll-word-nav__links {
		gap: 8px;
	}

	.ll-word-nav__link {
		min-height: 36px;
		padding: 7px 10px;
	}
}
