/* =========================================
	 L2C - Modale cartes / badges
	 À charger après formation.css
========================================= */

.modal.modal-cartes-l2c {
	width: 100%;
	max-height: 100%;
	background: #f8f8f8;
}

#l2cDownloadAllPracticesPdf 
{
	background-color: white;
	background: white;
	color: #f08c1c;
	font-size: 1.5em;
	transition: 0.25s;
	height: fit-content;
}

#l2cDownloadAllPracticesPdf:hover
{
	background-color: #f08c1c;
	background: #f08c1c;
	color: white;
	transition: 0.25s;
}

.l2c-card-locked-overlay p {
	color: black;
}

.modal-cartes-l2c .modal-content {
	background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
	height: 100% !important;
	max-height: 100% !important;
	padding: 1em;
}

div#modalCartes {
	top: 0% !important;
	height: 100vh !important;
}

.cartes-hero {
	background: rgb(240 140 28);
	border-radius: 1em;
	padding: 1.25em;
	color: white;
	margin-bottom: 1.25em;
}

.cartes-hero h4 {
	margin: 0 0 0.35em 0;
	color: #ffffff;
}

.cartes-subtitle {
	margin: 0 0 0.8em 0;
	color: rgba(255,255,255,0.92);
}

.cartes-summary {
	display: flex;
	gap: 0.75em;
	flex-wrap: wrap;
	justify-content: center;
}

.summary-pill {
	background: rgb(61 60 60);
	color: white;
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 999px;
	padding: 0.45em 0.9em;
	font-weight: 600;
}

.cartes-section {
	margin-bottom: 1.5em;
}

.cartes-section-title {
	color: #111111;
	font-weight: 700;
	margin-bottom: 0.25em;
}

.cartes-helper {
	color: #444;
	margin-top: 0;
}


.cartes-module-group {
	width: 100%;
	flex: 0 0 100%;
}

#l2cLockedCards,
#l2cUnlockedCards {
	display: block !important;
}

#l2cLockedCards > .cartes-module-group,
#l2cUnlockedCards > .cartes-module-group {
	width: 100%;
}

.cartes-module-title 
{
		width: 100%;
		display: flex;
		justify-content: center;
		color: black;
		background-color: #79b247;
		padding: 0.5em 0em;
		margin-top: 0.5em !important;
		margin-bottom: 0.5em;
}

.col.s12.m6.l4.xl3 
{
		margin-bottom: 1em;
}

.l2c-card {
	height: fit-content;
	border-radius: 1em;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	border: 1px solid rgba(0,0,0,0.08);
}

.l2c-card-block {
	padding-top: 0.2em;
	color: green;
}

.l2c-card .card-content {
	display: flex;
	flex-direction: column;
	height: calc(100% - 3.2em);
	justify-content: center;
	padding: 0.4em 1.4em;
}

.l2c-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6em;
	padding: 0.9em 1em 0.2em 1em;
}

.l2c-family-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	background: #111111;
	color: #fbee00;
	padding: 0.28em 0.65em;
	border-radius: 999px;
	font-size: 0.84em;
	font-weight: 700;
}

.l2c-difficulty {
	font-weight: 700;
	font-size: 0.8em;
}

.difficulty_easy
{
	color: #79b247 !important;
}

.difficulty_medium
{
	color: #d59d18 !important;
}

.difficulty_hard
{
	color: #d51818 !important;
}

.l2c-card .card-title {
	color: #111111;
	font-size: 1.2em;
	line-height: 1.25 !important;
	margin-bottom: 0.5em !important;
}

.l2c-card-why {
	color: #303030;
	margin-bottom: 0.8em;
}

.l2c-card-block ol {
	padding-left: 1.2em;
	margin-top: 0.45em;
}

.l2c-card-block li {
	margin-bottom: 0.4em;
}

.l2c-card-actions {
	margin-top: auto;
	padding-top: 1em;
	display: flex;
	justify-content: flex-start;
}

.l2c-card-download {
	background: linear-gradient(90deg, rgb(236 179 53) 0%, rgb(245 233 18) 100%);
	color: #111111 !important;
	font-weight: 700;
	border-radius: 0.65em;
}

.l2c-card.is-unlocked 
{
	background: linear-gradient(180deg, #ffffff 0%, #f8fff0 100%);
	border-bottom: 6px solid #008000;
	border-left: 6px solid #79b247;
	height: -webkit-fill-available;
	margin-bottom: 0;
	margin-top: 0;
}

.l2c-card.is-locked {
	background: linear-gradient(180deg, #efefef 0%, #d9d9d9 100%);
	filter: grayscale(1);
	position: relative;
	border-top: 6px solid #8f8f8f;
	border-right: 6px solid #565656;
	margin-bottom: 0;
	margin-top: 0;
}

.l2c-card-locked-overlay {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: #444;
	text-align: center;
	gap: 0.5em;
}

.l2c-lock-icon {
	font-size: 2.2em;
}

.l2c-card-missing-pdf {
	color: #6b6b6b;
	font-style: italic;
}

.l2c-badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.85em;
}

.l2c-badge-card.debutant {
	border-left: 8px solid #79b247;
	border-bottom: 8px solid green;
}

.l2c-badge-card {
	background: white;
	color: black;
	border-radius: 1em;
	padding: 1em;
	border: 2px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.l2c-badge-card .l2c-badge-top {
	font-weight: 700;
	margin-bottom: 0.45em;
}

.l2c-badge-title {
	font-size: 1.1em;
	font-weight: 700;
	margin-bottom: 0.25em;
}

.l2c-badge-progress {
	color: #555;
}

.l2c-badge-card.intermediaire 
{
		border-left: 8px solid #d59d18;
		border-bottom: 8px solid #9e7513;
}

.l2c-badge-card.avance
{
		border-left: 8px solid #5d7fff;
		border-bottom: 8px solid #364a97;
}

.l2c-empty-state {
	background: rgba(255,255,255,0.75);
	padding: 1em;
	border-radius: 0.8em;
	color: #333;
	font-weight: 600;
}

.cartes-module-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	background-color: #79b247 !important;
	color: #000;
	border: none;
	padding: 0.7em 1em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	font-size: 1.2em;
	font-weight: 700;
	cursor: pointer;
	border-radius: 0.4em;
}

.cartes-module-toggle:hover {
	filter: brightness(0.9);
	background: transparent;
}

.cartes-module-toggle .cartes-module-chevron {
	transition: transform 0.2s ease;
}

.cartes-module-toggle.is-open .cartes-module-chevron {
	transform: rotate(180deg);
}

.cartes-module-content {
	margin-bottom: 0.75em;
}

.l2c-card-content-compact {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 14em;
}

.l2c-card-unlocked-compact {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	height: 100%;
}

.l2c-card-unlocked-compact .l2c-card-why {
	margin-top: 0.5em;
	margin-bottom: 1em;
}

.cartes-groups {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
	gap: 1em;
	width: 100%;
}

.cartes-groups > .col.s12.m6.l4.xl3 {
	float: none !important;
	margin: 0;
	padding: 0;
	width: calc(25% - 0.75em);
}

.module-overview-card
{
	cursor: pointer;
	text-align: left;
	border: 2px solid transparent;
	font: inherit;
}

.module-overview-card.is-selected
{
	border-color: #f28c00;
	box-shadow: 0 0 0 2px rgba(242, 140, 0, 0.18);
}

.module-overview-card:focus-visible
{
	outline: 3px solid rgba(242, 140, 0, 0.45);
	outline-offset: 2px;
}

@media screen and (max-width: 1400px) {
	.cartes-groups > .col.s12.m6.l4.xl3 {
		width: calc(33.333% - 0.7em);
	}
}

@media screen and (max-width: 992px) {
	.cartes-groups > .col.s12.m6.l4.xl3 {
		width: calc(50% - 0.5em);
	}
}

@media screen and (max-width: 600px) {
	.cartes-groups > .col.s12.m6.l4.xl3 {
		width: 100%;
	}
}

button:focus
{
	outline: none;
	background-color: #ffffff;
}

.cartes-badge-count 
{
	display: none;
	min-width: 1.6em;
	height: 1.6em;
	margin-left: 0.5em;
	border-radius: 999px;
	background: #ffffff;
	color: #111111;
	font-weight: 800;
	align-items: center;
	justify-content: center;
	font-size: 0.85em;
}

button.btn-small.l2c-module-download-all
{
	background: #f08c1c;
	font-size: 1.2em;
	font-weight: 700;
}

/* __________________________________________________________________ EXPORT DES CARTES __________________________________________________________________*/
.card-export-sheet {
	width: 1100px;
	padding: 34px 42px;
	box-sizing: border-box;
	border: 4px solid #f28b19;
	background: #ffffff;
	color: #111111;
	font-family: Arial, sans-serif;
	line-height: 1.4;
}

.card-export-meta-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.card-export-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border: 4px solid #65b65a;
	border-radius: 999px;
	background: #ffffff;
	color: #222222;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.1;
}

.card-export-pill .material-icons {
	font-size: 22px;
}

.card-export-pill.is-family,
.card-export-pill.is-difficulty {
	border-color: #65b65a;
	background: #f2fbf1;
}

.card-export-pill.is-module {
	border-color: #4f6f95;
	background: #eef4fa;
	color: #304e70;
}

.card-export-pill.is-impact {
	border-color: #f28b19;
	background: #fff3e5;
	color: #a95100;
}

.card-export-pill.is-status.is-unlocked {
	border-color: #27ae60;
	background: #eaf7ef;
	color: #187846;
}

.card-export-pill.is-status.is-locked {
	border-color: #607d8b;
	background: #eef2f4;
	color: #455a64;
}

.card-export-title {
	margin: 0 0 10px;
	color: #111111;
	font-size: 42px;
	line-height: 1.15;
	font-weight: 700;
}

.card-export-short-title {
	margin: 0 0 24px;
	color: #444444;
	font-size: 22px;
	font-weight: 700;
}

.card-export-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 26px;
	padding: 18px 24px;
	border-radius: 12px;
	background: #f7931e;
	font-size: 20px;
	text-align: center;
}

.card-export-grid,
.card-export-grid div,
.card-export-grid strong {
	color: #ffffff !important;
}

.card-export-section {
	margin-bottom: 24px;
}

.card-export-section h3 {
	margin: 0 0 9px;
	color: #111111;
	font-size: 28px;
	font-weight: 500;
}

.card-export-section p,
.card-export-section li {
	margin-top: 0;
	color: #111111;
	font-size: 21px;
	line-height: 1.45;
}

.card-export-section p {
	font-weight: 600;
}

.card-export-section ol,
.card-export-section ul {
	margin: 0;
	padding-left: 32px;
}

.card-export-footer {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	margin-top: 34px;
	padding-top: 16px;
	border-top: 2px solid #dddddd;
	color: #555555;
	font-size: 17px;
}

.theme-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.5rem;
	margin-top: 1rem;
}

.theme-overview-card
{
	background: #ffffff;
	border-radius: 14px;
	padding: 0.2rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	color: #222;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 0.25s;
}

.theme-overview-card:hover
{
	background: rgb(240 140 28 / 50%);
	transform: scale(1.03);
	transition: 0.25s;
}

.theme-overview-top,
.theme-overview-bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}

.theme-overview-top {
	font-size: 0.9rem;
	/*margin-bottom: 0.7rem;*/
}

.theme-overview-bottom {
	font-size: 0.85rem;
	margin-top: 0.6rem;
	opacity: 0.8;
}

.theme-progress-bar {
	width: 100%;
	height: 10px;
	background: #e8e8e8;
	border-radius: 999px;
	overflow: hidden;
}

.theme-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #71b859, #27ae60);
	border-radius: 999px;
}

.theme-group {
	margin-bottom: 0.5rem;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0px 0px 10px #7e7e7e;
}

.theme-toggle {
	width: 100%;
	border: 0;
	background: #ffffff;
	padding: 1rem;
	cursor: pointer;
	text-align: left;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.7rem 1rem;
	align-items: center;
}

button.theme-toggle:hover
{
	background: white;
}

.theme-toggle-main {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}

.theme-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: #222;
}

.theme-count {
	font-size: 0.9rem;
	opacity: 0.85;
	color: #222;
}

.theme-toggle .theme-progress-wrap {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.75rem;
	align-items: center;
}

.theme-percent {
	font-size: 0.85rem;
	opacity: 0.85;
	color: #222;
}

.theme-chevron {
	position: absolute;
	right: 1rem;
	top: 1rem;
	transition: transform 0.2s ease;
	visibility: hidden;
}

#modalCartes a.modal-close.btn-flat
{
	position: absolute;
	right: 2em;
	color: red;
	background-color: white;
	width: 3.1em;
	height: 3.1em;
	border-radius: 5em;
	display: flex;
	justify-content: center;
	align-items: center;
}

.btn-flat i {
	font-size: 3em;
}

.theme-toggle.is-open .theme-chevron {
	transform: rotate(180deg);
}

.theme-content {
	padding: 1rem;
	background: #f7f7f7;
}

/*.theme-card-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 0.25rem;
}*/

.theme-card-list {
	display: grid;
	grid-template-columns: repeat(
		auto-fill,
		minmax(240px, 1fr)
	);
	justify-content: start;
	align-items: start;
	gap: 0.25rem;
	width: 100%;
}

.theme-card-item 
{
	border: 0;
	border-radius: 12px;
	padding: 0.2rem 0.5rem;
	text-align: left;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0rem 0.75rem;
	align-items: center;
	cursor: pointer;
	min-height: 40px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.theme-card-item.is-unlocked {
	background: #ffffff;
	color: #1f1f1f;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
	border-left: 6px solid #27ae60;
	/*max-width: 15.6vw;
	min-width: 15.6vw;
	max-height: 5vh;
	min-height: 5vh;*/
}

.theme-card-item.is-unlocked:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

article.theme-card-item.is-unlocked {
	
}

button.theme-card-item.is-explore.l2c-card-explore-download.tooltipped 
{
	/*max-width: 15.6vw;
	min-width: 15.6vw;
	max-height: 5vh;
	min-height: 5vh;*/
	padding: 0.1em;
	text-align: center;
}


span.card-detail-downloaded-badge 
{
	display: flex;
	align-items: center;
}

.card-export-status
{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;

	width: fit-content;
	max-width: calc(100% - 2rem);
	margin: 1rem auto;

	padding: 0.55rem 1.4rem;
	box-sizing: border-box;

	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.2;
	font-weight: 500;
	text-align: center;
}

.card-export-status.is-unlocked
{
	border: 2px solid #2e7d32;
	background: #e8f5e9;
	color: #1b5e20;
}

.card-export-status.is-locked
{
	border: 2px solid #c62828;
	background: #ffebee;
	color: #b71c1c;
}

.theme-module-actions
{
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.l2c-module-download-all.is-generating
{
	opacity: 0.65;
	cursor: wait;
}

.theme-card-item.is-unlocked .theme-card-status
{
	color: #d79a00;
}

.theme-card-item.is-unlocked.is-downloaded .theme-card-status
{
	color: #168b55;
}

.theme-card-item.is-unlocked.is-downloaded
{
	border-color: rgba(22, 139, 85, 0.55);
}


/*.theme-card-item.is-locked 
{
	background: #ffffff;
	color: #777;
	border-left: 6px solid #999;
	cursor: not-allowed;
	opacity: 0.72;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.14);
}*/

.theme-card-status {
	font-weight: 700;
	font-size: 1.1rem;
}

.theme-card-title {
	font-weight: 700;
	line-height: 1.25;
}

.theme-card-difficulty {
	grid-column: 2;
	font-size: 0.78rem;
	display: none;
	width: fit-content;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

.card-detail-header {
	margin-bottom: 1.25rem;
}

.card-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.card-detail-meta span
{
	background: #ffffff !important;
	border: 4px solid #65b65a;
	border-radius: 999px;
	padding: 0.25rem 0.65rem;
	color: #222 !important;
	font-weight: bold;
}

.card-detail-short-title 
{
	font-weight: 700;
	opacity: 0.75;
}

.modal-close.btn-flat 
{
	position: absolute;
	z-index: 2;
	right: 1em;
	top: 2em;
	color: red;
	padding: 0;
}


.card-detail-grid 
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-bottom: 1.2rem;
	padding: 1rem;
	background: #f7f7f7;
	border-radius: 12px;
	justify-items: center;
}

.card-detail-section {
	margin-bottom: 1.2rem;
}

.card-detail-section h5 {
	margin-bottom: 0.4rem;
}

.card-detail-actions {
	margin-top: 1.5rem;
	display: flex;
	justify-content: flex-end;
}

@media screen and (max-width: 992px) 
{
	.modal.modal-cartes-l2c 
	{
		width: 100% !important;
		max-height: 100% !important;
	}

	.cartes-summary 
	{
	flex-direction: row;
	}
}

.theme-card-subgroup 
{
}

.theme-card-subgroup + .theme-card-subgroup {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid rgba(30, 35, 40, 0.12);
}

.theme-card-subgroup-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 0px;
	font-size: 1rem;
	font-weight: 800;
	color: #24282d;
}

.theme-card-subgroup-title .material-icons {
	font-size: 21px;
}

.theme-card-subgroup-unlocked
.theme-card-subgroup-title
.material-icons {
	color: #d79415;
}

.theme-card-subgroup-explore
.theme-card-subgroup-title
.material-icons {
	color: #466b76;
}

.theme-card-subgroup-helper {
	margin: -4px 0 13px;
	font-size: 0.88rem;
	line-height: 1.4;
	color: #62676d;
}

.theme-card-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.035);
	color: #6b7075;
	font-size: 0.88rem;
}

.theme-card-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(30, 35, 40, 0.1);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	justify-content: center;
}

.theme-card-item.is-explore {
	border-left: 5px solid #78909c;
}

.theme-card-item.is-unlocked {
	border-left: 5px solid #1fb46a;
}

.theme-card-item.is-downloaded {
	box-shadow:
		0 0 0 2px rgba(31, 180, 106, 0.16),
		0 3px 10px rgba(0, 0, 0, 0.08);
}

.theme-card-main {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"status title"
		"status difficulty";
	gap: 2px 9px;
	width: 100%;
	border: 0;
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: 1em;
}

button.theme-card-main {
	cursor: pointer;
}

button.theme-card-main:hover {
	/*background: rgba(31, 180, 106, 0.06);*/
}

.theme-card-status {
	grid-area: status;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: center;
}

.theme-card-status .material-icons {
	font-size: 21px;
}

.is-unlocked .theme-card-status {
	color: #179a58;
}

.is-explore .theme-card-status {
	color: #607d8b;
}

.theme-card-title {
	grid-area: title;
	align-self: end;
	font-weight: 750;
	line-height: 1.1;
	color: black;
}

.theme-card-difficulty {
	grid-area: difficulty;
	align-self: start;
	font-size: 0.76rem;
	line-height: 1.2;
}

/*.theme-card-explore-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding: 0 10px 10px;
}*/

/*.theme-card-downloaded-badge,
.card-detail-downloaded-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.76rem;
	font-weight: 750;
	color: #177c4c;
}

.theme-card-downloaded-badge {
	padding: 5px 7px;
}

.theme-card-downloaded-badge .material-icons,
.card-detail-downloaded-badge .material-icons {
	font-size: 17px;
}*/

/*.theme-card-download-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 150px;
	min-height: 36px;
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: #466b76;
	color: #ffffff;
	font-size: 0.78rem;
	font-weight: 750;
	cursor: pointer;
}

.theme-card-download-button:hover {
	filter: brightness(0.92);
}

.theme-card-download-button .material-icons {
	font-size: 18px;
}

.theme-card-download-button:disabled,
.l2c-card-detail-download:disabled {
	opacity: 0.65;
	cursor: progress;
}*/

.card-detail-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.l2c-card-detail-download {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.l2c-card-detail-download .material-icons {
	font-size: 19px;
}

.l2c-download-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: l2c-download-spin 0.8s linear infinite;
}

@keyframes l2c-download-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 700px) {
	.theme-card-subgroup-title {
		font-size: 0.94rem;
	}

	.theme-card-download-button {
		flex-basis: 100%;
	}
}


/*
 * Les cartes à explorer sont désormais elles-mêmes
 * des boutons de téléchargement.
 */
button.theme-card-item.is-explore {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(30, 35, 40, 0.1);
	border-right: 1px solid rgba(30, 35, 40, 0.1);
	border-bottom: 1px solid rgba(30, 35, 40, 0.1);
	border-left: 5px solid #78909c;
	background: #ffffff;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		background-color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

button.theme-card-item.is-explore:hover,
button.theme-card-item.is-explore:focus-visible {
	background: #f5f9fa;
	border-left-color: #527985;
	box-shadow:
		0 5px 14px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
	outline: none;
}

button.theme-card-item.is-explore:focus-visible {
	box-shadow:
		0 0 0 3px rgba(70, 107, 118, 0.22),
		0 5px 14px rgba(0, 0, 0, 0.12);
}

/*
 * Carte déjà téléchargée :
 * teinte légèrement verte, sans la confondre
 * avec une carte réellement débloquée.
 */
button.theme-card-item.is-explore.is-downloaded {
	background: #f1f8f5;
	border-top-color: rgba(50, 145, 99, 0.22);
	border-right-color: rgba(50, 145, 99, 0.22);
	border-bottom-color: rgba(50, 145, 99, 0.22);
	border-left-color: #4f9d76;
}

button.theme-card-item.is-explore.is-downloaded:hover,
button.theme-card-item.is-explore.is-downloaded:focus-visible {
	background: #eaf5ef;
	border-left-color: #34845e;
}

button.theme-card-item.is-explore.is-downloaded
.theme-card-status {
	color: #34845e;
}

/*
 * La structure interne conserve l’alignement
 * actuel des titres et des difficultés.
 */
button.theme-card-item.is-explore
.theme-card-main {
	pointer-events: none;
}

/*
 * Indication visuelle pendant la création du PDF.
 */
button.theme-card-item.is-explore.is-generating {
	position: relative;
	opacity: 0.72;
	cursor: progress;
	pointer-events: none;
}

button.theme-card-item.is-explore.is-generating::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 17px;
	height: 17px;
	margin-top: -9px;
	border: 2px solid rgba(70, 107, 118, 0.25);
	border-top-color: #466b76;
	border-radius: 50%;
	animation: l2c-card-download-spin 0.75s linear infinite;
}

@keyframes l2c-card-download-spin {
	to {
		transform: rotate(360deg);
	}
}

.theme-card-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
	margin: 0 0 0.9rem;
	padding: 0.15rem 0;
}

.theme-card-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	font-weight: 700;
}

.theme-card-legend-item .material-icons {
	font-size: 1.25rem;
}

.theme-card-legend-item.is-unlocked {
	color: #d79a00;
}

.theme-card-legend-item.is-explore {
	color: #607d8b;
}

.theme-card-list-all {
	margin-top: 0;
}

.card-detail-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.card-detail-meta-pill .material-icons {
	font-size: 1.1rem;
}

.card-detail-meta .is-family {
	border-color: #65b65a;
	background: #f2fbf1 !important;
}

.card-detail-meta .is-difficulty {
	border-color: #65b65a;
	background: #f2fbf1 !important;
}

.card-detail-meta .is-module {
	border-color: #4f6f95;
	background: #eef4fa !important;
	color: #304e70 !important;
}

.card-detail-meta .is-impact {
	border-color: #f28b19;
	background: #fff3e5 !important;
	color: #a95100 !important;
}

.impact-filter-panel {
	margin: 0.9rem 0 1.1rem;
}

.impact-filter-title {
	margin-bottom: 0.55rem;
	font-size: 1rem;
	font-weight: 750;
	color: #222222;
}

.impact-filter-list {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.5rem;
}

.impact-filter-button {
	min-height: 38px;
	padding: 0.45rem 0.7rem;
	border: 2px solid #d0d0d0;
	border-radius: 999px;
	background: #ffffff;
	color: #252525;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.impact-filter-button:hover {
	transform: translateY(-1px);
	background: #f5f5f5;
}

.impact-filter-button.is-selected {
	color: #ffffff;
	background: #f28b19;
	border-color: #f28b19;
}

.impact-filter-button.impact-level-0.is-selected {
	background: #4f6f95;
	border-color: #4f6f95;
}

.impact-filter-button.impact-level-1.is-selected {
	background: #65a844;
	border-color: #65a844;
}

.impact-filter-button.impact-level-2.is-selected {
	background: #c89a16;
	border-color: #c89a16;
}

.impact-filter-button.impact-level-3.is-selected {
	background: #df6f00;
	border-color: #df6f00;
}

.impact-filter-button.impact-level-4.is-selected {
	background: #b42d2d;
	border-color: #b42d2d;
}

@media screen and (max-width: 1000px) {
	.impact-filter-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 600px) {
	.impact-filter-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* SMALL SCREEN */
@media screen and (min-width: 100px) and (max-width: 600px)
{
	#modalCartes a.modal-close.btn-flat 
	{
	    right: 0.2em;
	}
	.modal-close.btn-flat 
	{
	    top: 0.2em;
	}
}

