/* =====================================================================
   ASCENSIA — Espace apprenant Tutor LMS (learning area + dashboard)
   Charte : Navy #1C2B3A · Teal #5C8791 · Blanc cassé #F7F5F0
            Beige #E8DFD0 · Gris pierre #7A7268 · Gris brume #E2DCD4
   Apparence uniquement — aucune logique Tutor modifiée.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Variables du design system Tutor 4 → palette ASCENSIA
   (chargé après les feuilles Tutor : même spécificité, déclaré ensuite)
   --------------------------------------------------------------------- */
:root {
	--tutor-brand-100: rgba(92, 135, 145, 0.08);
	--tutor-brand-200: rgba(92, 135, 145, 0.14);
	--tutor-brand-300: rgba(92, 135, 145, 0.22);
	--tutor-brand-400: rgba(92, 135, 145, 0.45);
	--tutor-brand-500: #5c8791;
	--tutor-brand-600: #5c8791;
	--tutor-brand-700: #1c2b3a;
	--tutor-brand-800: #1c2b3a;
	--tutor-brand-900: #1c2b3a;
	--tutor-brand-950: #1c2b3a;

	--tutor-surface-base: #f7f5f0;
	--tutor-surface-l1: #ffffff;
	--tutor-surface-l1-hover: #f7f5f0;
	--tutor-surface-l2: #e8dfd0;
	--tutor-surface-l2-hover: #e2dcd4;
	--tutor-surface-l3: #f7f5f0;
	--tutor-surface-sidebar-l1: #f7f5f0;

	--tutor-text-primary: #1c2b3a;
	--tutor-text-secondary: #1c2b3a;
	--tutor-text-subdued: #7a7268;
	--tutor-text-light: #f7f5f0;

	--tutor-icon-idle: #1c2b3a;
	--tutor-icon-hover: #1c2b3a;
	--tutor-icon-secondary: #7a7268;
	--tutor-icon-subdued: #7a7268;

	--tutor-border-idle: #e2dcd4;
	--tutor-border-idle2: #e2dcd4;
	--tutor-border-hover: rgba(122, 114, 104, 0.55);
	--tutor-border-tertiary: #7a7268;
	--tutor-border-dark: #1c2b3a;

	--tutor-button-secondary: #e8dfd0;
	--tutor-button-secondary-hover: #e2dcd4;
	--tutor-button-secondary-focused: #e8dfd0;
	--tutor-button-outline-hover: rgba(232, 223, 208, 0.55);
	--tutor-button-ghost-hover: rgba(232, 223, 208, 0.55);
	--tutor-button-disabled: #e2dcd4;

	--tutor-actions-gray-empty: #e2dcd4;
	--tutor-actions-gray-secondary: #e8dfd0;
	--tutor-actions-gray-tertiary: #e2dcd4;
	--tutor-actions-gray-quaternary: #cfc9c0;

	--tutor-tab-sidebar-l2: #f7f5f0;
	--tutor-tab-sidebar-l2-hover: rgba(232, 223, 208, 0.55);

	--tutor-font-family-heading: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--tutor-font-family-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

	--tutor-button-radius: 999px;
	--tutor-input-radius: 8px;
}

/* ---------------------------------------------------------------------
   2. Typographie DM Sans sur les zones Tutor
   --------------------------------------------------------------------- */
.tutor-learning-area,
.tutor-dashboard-layout,
.tutor-learning-area button,
.tutor-learning-area input,
.tutor-learning-area select,
.tutor-learning-area textarea,
.tutor-dashboard-layout button,
.tutor-dashboard-layout input,
.tutor-dashboard-layout select,
.tutor-dashboard-layout textarea {
	font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   3. Espace d'apprentissage : masquer le header/footer marketing du site
   (la learning area a sa propre barre : retour + titre + sommaire)
   --------------------------------------------------------------------- */
body.asc-learning .elementor-52,
body.asc-learning .footer-width-fixer {
	display: none !important;
}

/* ---------------------------------------------------------------------
   4. Learning area — cadre général
   --------------------------------------------------------------------- */
.tutor-learning-area {
	background: #f7f5f0;
}

.tutor-learning-header {
	background: #f7f5f0;
	border-bottom: 1px solid #e2dcd4;
}

.tutor-learning-header-title {
	color: #1c2b3a;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.tutor-learning-sidebar {
	background: #f7f5f0;
	border-right: 1px solid #e2dcd4;
}

.tutor-learning-area-content {
	background: #f7f5f0;
}

.tutor-learning-area-container {
	max-width: 980px;
	margin-inline: auto;
}

/* Carte de contenu (vidéo + onglets + texte) */
.tutor-lesson-content-tab {
	background: #ffffff;
	border: 1px solid #e2dcd4;
	border-radius: 12px;
	overflow: hidden;
}

/* Barres de progression → teal sur gris brume */
.tutor-progress-bar {
	background: #e2dcd4 !important;
}

.tutor-progress-bar-fill {
	background: #5c8791 !important;
}

/* Curriculum du chapitre (nav Tutor) : état actif charte */
.tutor-learning-nav-item {
	border-left: 3px solid transparent;
}

.tutor-learning-nav-item.active {
	background: #e8dfd0 !important;
	border-left-color: #5c8791;
}

.tutor-learning-nav-topic.active .tutor-learning-nav-header-title {
	color: #1c2b3a;
	font-weight: 600;
}

/* ---------------------------------------------------------------------
   5. Sommaire du module (bloc ASCENSIA injecté dans la sidebar)
   --------------------------------------------------------------------- */
.asc-overline {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #7a7268;
}

.asc-module-nav {
	padding: 20px 12px 6px;
}

.asc-module-nav-head {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0 10px 16px;
	border-bottom: 1px solid #e2dcd4;
	margin-bottom: 12px;
}

.asc-module-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #1c2b3a;
}

.asc-module-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.asc-chap {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 12px 12px 11px;
	border-radius: 8px;
	border-left: 3px solid transparent;
	text-decoration: none !important;
	color: #1c2b3a;
}

.asc-chap:hover {
	background: rgba(232, 223, 208, 0.55);
}

.asc-chap.is-current {
	background: #e8dfd0;
	border-left-color: #5c8791;
}

.asc-chap-dot {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	background: #e2dcd4;
	color: #7a7268;
	margin-top: 1px;
}

.asc-chap.is-current .asc-chap-dot {
	background: #5c8791;
	color: #f7f5f0;
}

.asc-chap.is-open .asc-chap-dot {
	background: #e8dfd0;
	color: #1c2b3a;
}

.asc-chap-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.asc-chap-overline {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #7a7268;
}

.asc-chap-buy {
	color: #5c8791;
	letter-spacing: 0.02em;
	font-weight: 500;
}

.asc-chap-title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: #1c2b3a;
}

.asc-chap.is-locked .asc-chap-title {
	color: #7a7268;
	font-weight: 400;
}

.asc-lock {
	display: inline-block;
	flex: none;
}

.asc-curriculum-label {
	padding: 14px 22px 0;
}

/* ---------------------------------------------------------------------
   6. En-tête de leçon (fil d'ariane + H1)
   --------------------------------------------------------------------- */
.asc-lesson-head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 6px 2px 22px;
}

.asc-breadcrumb {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a7268;
}

.asc-lesson-title {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #1c2b3a;
}

/* Texte du cours */
.tutor-lesson-wrapper {
	color: #1c2b3a;
}

.tutor-lesson-wrapper p {
	font-size: 16.5px;
	line-height: 1.75;
	color: #1c2b3a;
}

.tutor-lesson-wrapper h2 {
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	color: #1c2b3a;
}

.tutor-lesson-wrapper h3 {
	font-size: 20px;
	font-weight: 500;
	color: #1c2b3a;
}

.tutor-lesson-wrapper a {
	color: #5c8791;
}

.tutor-lesson-wrapper a:hover {
	color: #1c2b3a;
}

/* ---------------------------------------------------------------------
   7. Supports pédagogiques & évaluation (accordéons dynamiques)
   --------------------------------------------------------------------- */
.asc-docs {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 44px;
	padding-top: 42px;
	border-top: 1px solid #e2dcd4;
}

.asc-docs-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 4px;
}

.asc-docs-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #1c2b3a;
}

.asc-docs-block {
	border: 1px solid #e2dcd4;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.asc-docs-block summary {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 26px;
	cursor: pointer;
}

.asc-docs-block summary::-webkit-details-marker {
	display: none;
}

.asc-docs-block summary:hover {
	background: #f7f5f0;
}

.asc-shape {
	width: 12px;
	height: 12px;
	background: #1c2b3a;
	flex: none;
}

.asc-shape-square { border-radius: 3px; }
.asc-shape-circle { border-radius: 50%; }
.asc-shape-diamond { transform: rotate(45deg); border-radius: 2px; }

.asc-docs-block-title {
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	color: #1c2b3a;
}

.asc-docs-count {
	font-size: 13px;
	color: #7a7268;
	white-space: nowrap;
}

.asc-chevron {
	width: 8px;
	height: 8px;
	border-right: 2px solid #7a7268;
	border-bottom: 2px solid #7a7268;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.15s ease;
	flex: none;
}

.asc-docs-block[open] > summary .asc-chevron {
	transform: rotate(225deg) translateY(-2px);
}

.asc-docs-grid {
	padding: 2px 26px 26px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.asc-doc-card {
	background: #e8dfd0;
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.asc-doc-file {
	width: 34px;
	height: 42px;
	background: #f7f5f0;
	border: 1px solid #e2dcd4;
	border-radius: 4px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #7a7268;
	box-sizing: border-box;
}

.asc-doc-type {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #7a7268;
	background: #f7f5f0;
	border: 1px solid #e2dcd4;
	border-radius: 999px;
	padding: 4px 11px;
}

.asc-doc-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: #1c2b3a;
	flex: 1;
}

.asc-doc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	border: 1.5px solid #1c2b3a;
	color: #1c2b3a !important;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 18px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.asc-doc-btn:hover {
	background: #1c2b3a;
	color: #f7f5f0 !important;
}

/* ---------------------------------------------------------------------
   8. Navigation entre chapitres (cours du même module)
   --------------------------------------------------------------------- */
.asc-chapter-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid #e2dcd4;
	margin-top: 4px;
	padding: 26px 24px;
}

.asc-chapter-nav-prev,
.asc-chapter-nav-next {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 14.5px;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.asc-chapter-nav-prev {
	border: 1.5px solid #e2dcd4;
	color: #7a7268 !important;
	padding: 11px 24px;
	background: transparent;
}

.asc-chapter-nav-prev:hover {
	border-color: #7a7268;
	color: #1c2b3a !important;
}

.asc-chapter-nav-prev.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.asc-chapter-nav-next {
	background: #5c8791;
	color: #f7f5f0 !important;
	padding: 12px 26px;
}

.asc-chapter-nav-next:hover {
	background: #1c2b3a;
	color: #f7f5f0 !important;
}

.asc-chapter-nav .asc-lock {
	color: currentColor;
	vertical-align: -2px;
}

/* Footer Tutor (précédent / suivant / marquer terminé) */
.tutor-learning-area-footer {
	border-top: 1px solid #e2dcd4;
	background: #ffffff;
}

/* ---------------------------------------------------------------------
   9. Dashboard apprenant
   --------------------------------------------------------------------- */
.tutor-dashboard-layout {
	background: #f7f5f0;
}

.tutor-dashboard-sidebar {
	background: #f7f5f0;
	border-right: 1px solid #e2dcd4;
}

.tutor-dashboard-sidebar-logo,
.tutor-dashboard-sidebar-logo .site-title {
	color: #1c2b3a;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.tutor-dashboard-sidebar-nav a {
	color: #1c2b3a;
	border-radius: 8px;
	border-left: 3px solid transparent;
}

.tutor-dashboard-sidebar-nav a:hover {
	background: rgba(232, 223, 208, 0.55);
}

.tutor-dashboard-sidebar-nav a.active {
	background: #e8dfd0;
	border-left-color: #5c8791;
	color: #1c2b3a;
	font-weight: 600;
}

.tutor-dashboard-header {
	background: #f7f5f0;
	border-bottom: 1px solid #e2dcd4;
}

.tutor-dashboard-nav-mobile {
	background: #f7f5f0;
	border-top: 1px solid #e2dcd4;
}

/* Avatars → pastille beige / initiales navy (cf. maquette) */
.tutor-avatar {
	background: #e8dfd0 !important;
	color: #1c2b3a !important;
}

.tutor-avatar .tutor-avatar-initials {
	color: #1c2b3a;
	font-weight: 600;
}

/* Boutons : petits réglages au-delà des variables */
.tutor-btn {
	font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
}

.tutor-btn-primary {
	color: #f7f5f0;
}

.tutor-btn-primary:hover {
	color: #f7f5f0;
}

/* Focus clavier + accent-color charte */
.tutor-learning-area :focus-visible,
.tutor-dashboard-layout :focus-visible {
	outline-color: #5c8791;
}

.tutor-dashboard-layout input[type="checkbox"],
.tutor-dashboard-layout input[type="radio"] {
	accent-color: #5c8791;
}

/* ---------------------------------------------------------------------
   10. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
	.asc-lesson-head {
		padding-top: 2px;
	}

	.asc-chapter-nav {
		padding: 22px 16px;
	}
}

@media (max-width: 575px) {
	.asc-docs-grid {
		grid-template-columns: 1fr;
		padding: 2px 16px 20px;
	}

	.asc-docs-block summary {
		padding: 16px 16px;
	}

	.asc-chapter-nav-prev,
	.asc-chapter-nav-next {
		flex: 1 1 100%;
		justify-content: center;
	}
}
