/* Eduscol Cours — compléments au thème SMF (propriétés logiques : compatible RTL) */
.cours-hero p:last-child { margin-bottom: 0; }
.cours-plans { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 8px 0; }
.cours-plans .windowbg { margin: 0; }
.cours-price { font-size: 1.9em; font-weight: bold; margin: .2em 0; }
.cours-price small { font-size: .5em; font-weight: normal; opacity: .7; }
.cours-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cours-card { display: flex; flex-direction: column; gap: .3em; margin: 0 !important; text-decoration: none; border-inline-start: 4px solid #f3c63d; }
.cours-card:hover { text-decoration: none; filter: brightness(.97); }
.cours-cols { display: grid; gap: 8px; grid-template-columns: 260px 1fr; align-items: start; }
@media (max-width: 760px) { .cours-cols { grid-template-columns: 1fr; } }
.cours-list .cours-lesson { display: block; padding: .45em .6em; border-radius: 4px; text-decoration: none; }
.cours-list .cours-lesson:hover { background: rgba(0, 0, 0, .06); }
.cours-list .cours-lesson.active { background: #17413b; color: #fff; }
.cours-viewer { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; background: #000; display: block; }
.cours-pdf { aspect-ratio: auto; height: 78vh; background: #eee; }
.cours-line { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; justify-content: space-between; padding: .6em 0; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.cours-line:last-child { border-bottom: 0; }
.cours-actions { display: flex; flex-wrap: wrap; gap: .4em; align-items: center; }
.cours-actions form { margin: 0; }
.cours-ok { color: #1f7a4d; }
.cours-err { color: #b3362c; }
.cours-table { width: 100%; }
.cours-viewer { direction: ltr; }

.cours-filter { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.cours-filter input[type=search] { flex: 1 1 200px; min-width: 0; }
.cours-tag { display: inline-block; font-size: .8em; padding: .1em .55em; margin-inline-end: .35em; border-radius: 3px; background: rgba(23, 65, 59, .12); }

/* Formulaires : une colonne pleine largeur, identique en LTR/RTL et sur smartphone */
.cours-dl.settings dt, .cours-dl.settings dd { float: none !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; text-align: start !important; clear: both; }
.cours-dl.settings dt { font-weight: bold; margin-top: .9em !important; margin-bottom: .25em !important; }
.cours-dl.settings dt:first-child { margin-top: 0 !important; }
.cours-dl.settings dd input[type=text], .cours-dl.settings dd input[type=number], .cours-dl.settings dd input[type=search],
.cours-dl.settings dd input[type=file], .cours-dl.settings dd select, .cours-dl.settings dd textarea { width: 100% !important; max-width: 100%; box-sizing: border-box; }
.cours-dl.settings dd input[type=checkbox] { width: auto !important; }
.cours-dl + input[type=submit], .cours-dl ~ .button { margin-top: 1em; }
.cours-scroll { overflow-x: auto; }
.cours-filter select { max-width: 100%; }
.cours-actions .button, .cours-actions input[type=submit] { margin: 0; }
@media (max-width: 760px) {
	.cours-filter > * { flex: 1 1 100%; }
	.cours-line > .cours-actions { width: 100%; }
	.cours-pdf { height: 60vh; }
	.cours-plans, .cours-grid { grid-template-columns: 1fr; }
}
