/* ============================
   🎨 Variables globales (formation)
============================ */
:root {
	--primary-color: #875e40;
	--secondary-color: #2b2d42;
	--primary-color-dark: #6c4a33;
	--text-dark: #333;
	--white: #fff;
	--light-gray: #f9f6f4;

	--shadow-light: 0 4px 12px rgba(0, 0, 0, 0.12);
	--shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.16);
	--shadow-strong: 0 8px 20px rgba(0, 0, 0, 0.2);

	--font-family-base: "Mulish", Helvetica, Arial, Sans-Serif, serif;
	--font-family-heading: "Poppins", Helvetica, Arial, Sans-Serif, serif;
}

/* ===== Colonne gauche : contenu texte ===== */

.mentoriel-lms-section .lms-content {
	max-width: 480px;
}

.mentoriel-lms-section .lms-eyebrow {
	text-transform: uppercase;
	font-size: 1rem;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--primary-color-dark);
}

.mentoriel-lms-section .lms-title {
	font-size: 3em;
	line-height: 1.15;
	font-weight: 700;
	color: var(--secondary-color) !important;
	font-family: var(--font-family-base) !important;
}

.mentoriel-lms-section .lms-text {
	font-size: 1rem;
	line-height: 1.7;
	font-weight: 400 !important;
	color: #4b5563;
	font-family: var(--font-family-base) !important;
}

/* Bouton */

.mentoriel-lms-section .lms-cta-btn {
	white-space: nowrap;
	display: inline-block;
}

.mentoriel-lms-section .lms-cta-btn {
	border-radius: 3px;
	font-weight: 600 !important;
	padding: 0.8rem 2.3rem;
	border: 2px solid transparent;
	color: var(--white) !important;
	background-color: var(--secondary-color);
	border-color: var(--secondary-color);
	transition: all 0.7s ease !important;
	text-transform: uppercase;
	font-family: var(--font-family-heading) !important;
	letter-spacing: 1px !important;
	border-radius: 6px;
}

.mentoriel-lms-section .lms-cta-btn:hover {
	background-color: var(--white);
	color: var(--primary-color) !important;
	border-color: var(--primary-color);
}

@media (max-width: 575.98px) {
	.mentoriel-lms-section .lms-cta-btn {
		width: 100%;
		text-align: center;
		white-space: normal; /* autorise le retour à la ligne si besoin */
		padding: 0.9rem 1.3rem;
	}
}

/* ===== Carte image principale ===== */

.mentoriel-lms-section .lms-main-card {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	background: #f3f5ff;
	min-height: 270px;
}

.mentoriel-lms-section .lms-main-card .lms-main-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mentoriel-lms-section .lms-main-card .lms-main-image.active {
	opacity: 1;
	visibility: visible;
	transform: scale(1.01);
}

/* ===== Tuiles ===== */

.mentoriel-lms-section .lms-tile {
	border-radius: 24px;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
	font-size: 0.95rem;
}

.mentoriel-lms-section .lms-tile:hover,
.mentoriel-lms-section .lms-tile.active {
	filter: brightness(1.02);
}

.mentoriel-lms-section .lms-tile-qualiopi:hover,
.mentoriel-lms-section .lms-tile-qualiopi.active {
	background-color: #54b948;
	color: #fff;
}

.mentoriel-lms-section .lms-tile-formations:hover,
.mentoriel-lms-section .lms-tile-formations.active {
	background-color: #05121e;
	color: #fff;
}

.mentoriel-lms-section .lms-tile-prevention:hover,
.mentoriel-lms-section .lms-tile-prevention.active {
	background-color: #875e40;
	color: #fff;
}

.mentoriel-lms-section .lms-tile-lesboxcorses:hover,
.mentoriel-lms-section .lms-tile-lesboxcorses.active {
	background-color: gray;
	color: #fff;
}

.mentoriel-lms-section .lms-tile-reports:hover,
.mentoriel-lms-section .lms-tile-reports.active {
	background-color: #beae46;
	color: #fff;
}

.mentoriel-lms-section .lms-tile:hover .lms-tile-icon,
.mentoriel-lms-section .lms-tile.active .lms-tile-icon {
	background: none;
}

.mentoriel-lms-section .lms-tile:hover .lms-tile-label,
.mentoriel-lms-section .lms-tile.active .lms-tile-label {
	color: #fff;
}

.lms-tile-icon i {
	font-size: larger;
}

.mentoriel-lms-section .lms-tile-icon {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	background: rgba(255, 255, 255, 0.75);
}

.mentoriel-lms-section .lms-tile-label {
	font-weight: 500;
	color: #111827;
	line-height: 1.3;
}

/* Couleurs spécifiques */

.mentoriel-lms-section .lms-tile-prevention {
	background: #94745ec9; /* orange pâle */
}

.mentoriel-lms-section .lms-tile-lesboxcorses {
	background: rgb(224, 224, 224);
}

.mentoriel-lms-section .lms-tile-formations {
	background: #1b446b9a; /* bleu pastel */
}

.mentoriel-lms-section .lms-tile-reports {
	background: #e5dda7; /* vert pastel */
}

.mentoriel-lms-section .lms-tile-qualiopi {
	background: #53b9485b; /* gris clair */
}

/* ===== Responsive ===== */

@media (max-width: 991.98px) {
	.mentoriel-lms-section .lms-content {
		margin-bottom: 2rem;
		text-align: center;
	}

	.mentoriel-lms-section .lms-cta-btn {
		margin-inline: auto;
	}
}

@media (max-width: 767.98px) {
	.mentoriel-lms-section .lms-bottom-row {
		flex-direction: column;
	}
}
