/* ctruillet.eu — Cours multi-formats
   Classes : course--<type> (1er format), course--2-<type>, course--3-<type>
   Couleurs par format : générées depuis Réglages › Bloc Cours */

.course { --c2: var(--c); --c3: var(--c2); --g: 3px; }

.course .course-meta strong:nth-of-type(2) { color: var(--c2); }
.course .course-meta strong:nth-of-type(3) { color: var(--c3); }

/* Liseré segmenté, avec un petit espace entre les couleurs */
.course[class*="course--2-"] {
	border-left: 0;
	padding-left: calc(.9rem + 3px);
	background: linear-gradient(
		var(--c) 0 calc(50% - var(--g)),
		transparent 0 calc(50% + var(--g)),
		var(--c2) 0
	) left top / 3px 100% no-repeat;
}
.course[class*="course--3-"] {
	background-image: linear-gradient(
		var(--c) 0 calc(33.34% - var(--g)),
		transparent 0 calc(33.34% + var(--g)),
		var(--c2) 0 calc(66.67% - var(--g)),
		transparent 0 calc(66.67% + var(--g)),
		var(--c3) 0
	);
}

/* Bloc Cours : détail (paragraphes et listes internes) */
.course .course-detail > * { margin: 0 !important; line-height: 1.5; }
.course .course-detail > p { font-size: 1rem; color: #3a4240; }
.course .course-detail > ul,
.course .course-detail > ol { font-size: .95rem; color: #3a4240; padding-left: 1.2rem; margin: .25rem 0 !important; }
.course .course-level:empty,
.course .course-title:empty { display: none; }

/* Durée par format */
.course .course-meta .course-hours { color: inherit; font-weight: 400; }

/* Liens : icônes */
.course .course-meta a .ctc-icon { width: .95em; height: .95em; vertical-align: -.12em; margin-right: .25em; }

/* Cours masqué (éditeur uniquement) */
.ctc-hidden-badge { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: #1e1e1e; color: #fff; padding: .1rem .4rem; border-radius: 2px; margin-bottom: .3rem !important; }

/* Récapitulatif */
.ctc-summary { margin: var(--wp--preset--spacing--40, 1.5rem) 0; overflow-x: auto; }
.ctc-summary table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ctc-summary caption { text-align: left; font-weight: 600; margin-bottom: .5rem; color: #3a4240; }
.ctc-summary th, .ctc-summary td { padding: .45rem .6rem; border-bottom: 1px solid #e3e8e5; text-align: left; }
.ctc-summary thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6661; border-bottom: 2px solid #c9d3ce; }
.ctc-summary thead th[class*="ctc-f-"] { color: var(--c); }
.ctc-summary .ctc-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctc-summary tfoot th, .ctc-summary tfoot td { font-weight: 600; border-top: 2px solid #c9d3ce; border-bottom: 0; }
.ctc-summary-note, .ctc-summary--empty p { font-size: .85rem; color: #5b6661; }
