﻿html {
	scroll-behavior: smooth;
}
body.course-reader-open { overflow: hidden; }
#course-upload-status[hidden] { display: none; }
#course-upload-status { padding: 10px 0; color: #0f766e; font-weight: bold; }
#course-upload-progress { display: block; width: 100%; height: 18px; margin-top: 8px; accent-color: #0f766e; }
#publish-save:disabled { opacity: .65; cursor: wait; }
.course-card[tabindex] { cursor: pointer; }
.course-card[tabindex]:focus-visible { outline: 3px solid #0f766e; outline-offset: 3px; }
.student-space .teacher-note-input { width: 7ch; min-width: 0; max-width: 100%; padding: 6px 4px; box-sizing: content-box; text-align: center; }
.notes-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.save-note-row[hidden] { display: none !important; }
@media(max-width:600px) { .student-space .teacher-note-input { width: 5ch; padding: 5px 2px; font-size: 16px; } .student-space #notes-form td { padding: 5px 3px; } }
#course-reader { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #f1f5f9; color: #172033; }
#course-reader[open] { display: flex; flex-direction: column; }
#course-reader::backdrop { background: rgba(15,23,42,.7); }
#course-reader .course-reader-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: white; border-bottom: 1px solid #cbd5e1; flex-shrink: 0; }
#course-reader-title { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
#course-reader-close { flex-shrink: 0; }
#course-reader-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
#course-reader .course-body, #course-reader .course-reader-file { max-width: 1100px; margin: 0 auto 20px; padding: 16px; background: white; border-radius: 8px; overflow-wrap: anywhere; }
#course-reader .course-reader-file img, #course-reader .course-reader-file video { display: block; width: 100%; height: auto; max-height: none; }
#course-reader .course-reader-file iframe { display: block; width: 100%; height: 80vh; border: 1px solid #cbd5e1; background: white; }
@media(max-width:600px) { #course-reader-body { padding: 8px; } #course-reader .course-reader-header { padding: 10px; } #course-reader-title { font-size: 17px; } }

body {
	margin: 0;
	background: #eef7f7 !important;
	color: #172033;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}



img {
	max-width: 100%;
	height: auto;
}

#wrapper {
	min-height: 100vh;
	background: linear-gradient(180deg, #eef7f7 0%, #f8fbfb 55%, #eef7f7 100%);
}

.header,
.content,
.fluid,
.widget,
.widget-header,
.widget-title {
	margin: 0 auto;z-index: 99999; align-items: center;justify-content: center;marging-top: 42px;box-shadow: 0 10px 25px rgba(0,0,0,.25);
	max-width: 100%;
}
.widget-header {
	padding: 5px 0px;
}
.widget-title  {
	padding: 0px 5px;
}
.fluid {
	width: 98vw;
	margin: 0 auto;
}

.widget.grid12,
.widget {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.widget-header,
.widget-title {
	background: transparent;
	border: 0;
}

#menu1 {
	width: 100%;
	max-width: 100%;
	margin: 0 auto !important;
	float: none !important;
	z-index: auto;
}

#menu2 {
	display: none;
}

.app-page,
.page-shell,
.dashboard-shell {
	width: min(1180px, calc(100% - 28px));
	margin: 18px auto 34px;
}

.page-card,
.panel,
.modal-content,
.table2excel,
table[bgcolor="white"] {
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.panel,
.modal-content {
	overflow: hidden;
}

.modal-header {
	background: #0f766e;
	color: #ffffff;
	border-bottom: 0;
}

.modal-title {
	font-weight: 800;
}

.modal-body {
	background: #ffffff;
	color: #172033;
}

.modal-footer {
	background: #f8fafc;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

table {
	max-width: 100%;
	border-collapse: collapse;
}

table[border],
.table2excel {
	background: #ffffff !important;
	border-color: rgba(15, 23, 42, 0.12) !important;
}

table th,
table td {
	vertical-align: middle;
}

table tr[bgcolor="#99e3cf"],
table tr[bgcolor="#99f6cf"],
table td[bgcolor="#99f6cf"] {
	background: #dff7f4 !important;
}

input,
select,
textarea {
	border: 1px solid rgba(15, 23, 42, 0.18);
	border-radius: 5px;
	background: #ffffff;
	color: #172033;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
	border-color: #0f766e;
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

button,
.btn,
input[type="button"],
input[type="submit"] {
	border-radius: 5px;
	border: 1px solid rgba(15, 118, 110, 0.2);
	background: #0f766e;
	color: #ffffff;
	font-weight: 700;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	background: #0b5f59;
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
	transform: translateY(-1px);
}

.btn-primary,
.btn-info {
	background: #0f766e;
	border-color: #0f766e;
	color: #ffffff;
}

.btn-primary:hover,
.btn-info:hover {
	background: #0b5f59;
	border-color: #0b5f59;
	color: #ffffff;
}

#message {
	width: min(900px, calc(100% - 20px));
	margin: 10px auto;
	padding: 8px 12px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.82);
}

.footer {
	width: 100%;
	margin-top: 24px;
	padding: 18px 12px 22px;
	text-align: center;
	font-weight: 600;
	box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.1);
}

.footer a {
	font-weight: 800;
}


.footer .footer-inner {
	width: min(1180px, calc(100% - 24px));
	margin: 0 auto;
}



.footer .footer-muted {
	display: inline-block;
	margin-top: 4px;
	font-size: 12px;
}

@media (max-width: 768px) {
	body {
		font-size: 13px;
	}

	.fluid,
	.app-page,
	.page-shell,
	.dashboard-shell {
		width: calc(100% - 18px);
	}

	table {
		font-size: 12px !important;
	}

	.table2excel,
	table[bgcolor="white"] {
		display: block;
		width: 100% !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	input,
	select,
	textarea,
	button,
	.btn {
		max-width: 100%;
	}

	.modal-dialog {
		width: calc(100% - 18px);
		margin: 12px auto;
	}
}
 /* MENU */


	img {
		min-height: 0%;
		min-width: 0%;
	}
	#top.app-menu a {
		font-weight: bold;
	}
	#top.app-menu {
		width: 100%;
		margin-top: -2em;
		margin-left: 0;
		box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
		position: fixed;
		z-index: 10000;
	}

	.app-menu * {
		box-sizing: border-box;
	}

	.app-menu-bar {
		display: flex;
		align-items: center;
		gap: 14px;
		width: 100%;
		padding: 9px 18px;
	}

	.app-menu-logo {
		display: flex;
		align-items: center;
		flex: 0 0 auto;
	}

	.app-menu-logo img {
		width: 58px;
		height: 58px;
		object-fit: contain;
		min-width: 0%;
		min-height: 0%;
	}

	.app-menu-main {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		width: 100%;
		min-width: 0;
	}

	.app-menu-mobile-year {
		display: none;
	}

	.app-menu-mobile-icons {
		display: none;
	}

	.app-menu-tools,
	.app-menu-links,
	.app-menu-actions {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.app-menu-links {
		justify-content: center;
		flex: 1 1 auto;
		flex-wrap: wrap;
	}

	.app-menu-select {
		height: 36px;
		max-width: 170px;
		border: 0;
		border-radius: 4px;
		padding: 4px 9px;
		font-weight: bold;
		color: #1f2937;
		background-color: #ffffff;
		box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	}

	.app-menu-link,
	.app-menu-icon,
	.app-menu-settings {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-height: 34px;
		border-radius: 5px;
		color: <?php echo $menuColor; ?>;
		text-decoration: none;
		font-weight: bold;
		line-height: 1;
		transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
	}

	.app-menu-link {
		padding: 8px 11px;
		white-space: nowrap;
	}

	.app-menu-icon,
	.app-menu-settings {
		width: 34px;
		padding: 0;
	}

	.app-menu-link:hover,
	.app-menu-icon:hover,
	.app-menu-settings:hover,
	.app-menu-link:focus,
	.app-menu-icon:focus,
	.app-menu-settings:focus {
		background-color: rgba(255, 255, 255, 0.18);
		color: <?php echo $menuColor; ?>;
		text-decoration: none;
		transform: translateY(-1px);
	}

.small-box-footer {
	padding: 12px;
	font-weight: bold;
	margin: 5px;
	border-radius: 5px;
}

.is-active {
		background-color: yellow;
		color: black;
		box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
	}
.is-active a{
		color: black;
	}

	.app-menu-toggle {
		display: none;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 38px;
		border: 1px solid rgba(255, 255, 255, 0.35);
		border-radius: 4px;
		background-color: rgba(255, 255, 255, 0.12);
		color: <?php echo $menuColor; ?>;
		font-size: 18px;
	}

	.app-menu-toggle:focus {
		outline: 2px solid rgba(255, 255, 255, 0.65);
		outline-offset: 2px;
	}

	@media (max-width: 991px) {
		.app-menu-bar {
			align-items: center;
			display: grid;
			grid-template-columns: auto minmax(110px, 1fr) auto auto;
			gap: 10px;
			padding: 8px 12px;
		}

		.app-menu-logo img {
			width: 58px;
			height: 44px;
		}

		.app-menu-bar {
			flex-wrap: wrap;
		}

		.app-menu-logo {
			display: flex;
			grid-column: 1;
		}

		.app-menu-toggle {
			display: inline-flex;
			grid-column: 4;
			justify-self: end;
			margin-left: 0;
			position: relative;
			z-index: 10002;
			touch-action: manipulation;
		}

		.app-menu-mobile-year {
			display: flex;
			grid-column: 2;
			justify-content: center;
			min-width: 0;
		}

		.app-menu-mobile-year .app-menu-select {
			width: 100%;
			max-width: 210px;
			height: 38px;
			text-align: center;
		}

		.app-menu-mobile-icons {
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 6px;
			grid-column: 3;
		}

		.app-menu-mobile-icons .app-menu-icon,
		.app-menu-mobile-icons .app-menu-settings {
			width: 34px;
			height: 38px;
			min-height: 38px;
		}

		.app-menu-main {
			display: none;
			grid-column: 1 / -1;
			align-items: stretch;
			flex-direction: column;
			gap: 10px;
			width: 100%;
			margin-top: 8px;
			padding: 10px;
			background-color: rgba(0, 0, 0, 0.08);
			border-top: 1px solid rgba(255, 255, 255, 0.24);
			position: relative;
			z-index: 10001;
		}

		.app-menu-main.is-open {
			display: flex;
		}

		.app-menu-tools,
		.app-menu-links,
		.app-menu-actions {
			width: 100%;
			justify-content: center;
			flex-wrap: wrap;
		}

		.app-menu-links {
			align-items: stretch;
			display: grid;
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 8px;
		}

		.app-menu-link {
			width: 100%;
			min-width: 0;
			text-align: center;
			padding: 11px 10px;
			background-color: rgba(255, 255, 255, 0.1);
		}

		.app-menu-select {
			max-width: 190px;
		}

		.app-menu-tools .app-menu-select {
			display: none;
		}

		.app-menu-main .app-menu-tools,
		.app-menu-main .app-menu-actions {
			display: none;
		}
	}

	@media (max-width: 480px) {
		.app-menu-bar {
			grid-template-columns: auto minmax(76px, 1fr) auto auto;
			gap: 5px;
		}

		.app-menu-logo {
			grid-column: 1;
		}

		.app-menu-logo img {
			width: 42px;
			height: 34px;
		}

		.app-menu-mobile-year {
			grid-column: 2;
		}

		.app-menu-mobile-year .app-menu-select {
			height: 34px;
			max-width: 150px;
			padding-left: 4px;
			padding-right: 4px;
		}

		.app-menu-mobile-icons {
			grid-column: 3;
			justify-content: center;
			gap: 3px;
		}

		.app-menu-mobile-icons .app-menu-icon,
		.app-menu-mobile-icons .app-menu-settings {
			width: 28px;
			height: 34px;
			min-height: 34px;
		}

		.app-menu-toggle {
			grid-column: 4;
			width: 34px;
			height: 34px;
		}

		.app-menu-link {
			min-height: 40px;
		}

		.app-menu-tools,
		.app-menu-actions {
			justify-content: space-between;
		}

		.app-menu-links {
			grid-template-columns: 1fr;
		}
	}

/* Navigation principale partagee */
:root{--app-menu-width:236px;--app-menu-collapsed:66px;--app-menu-bg:#0f766e;--app-menu-color:#fff}
body{background-color:#eef7f7;padding-left:var(--app-menu-width);padding-top:58px;transition:padding-left .18s ease}
body.app-menu-collapsed{padding-left:var(--app-menu-collapsed)}
.menuapp,.small-box-footer{background-color:var(--app-menu-bg);color:var(--app-menu-color)}
#top.app-side-menu{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:var(--app-menu-width)!important;height:100vh;z-index:10000;box-shadow:8px 0 22px rgba(15,23,42,.14);display:flex;flex-direction:column;transition:width .18s ease,transform .18s ease;background:var(--app-menu-bg);color:var(--app-menu-color)}
body.app-menu-collapsed #top.app-side-menu{width:var(--app-menu-collapsed)!important}
.app-menu-brand{display:flex;align-items:center;justify-content:center;gap:10px;min-height:62px;padding:8px 10px 8px 58px;border-bottom:1px solid rgba(255,255,255,.18);font-weight:bold;overflow:hidden;text-align:center}
.app-menu-home{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;color:var(--app-menu-color);text-decoration:none;overflow:hidden}
.app-menu-home:hover,.app-menu-home:focus{color:var(--app-menu-color);text-decoration:none}
.app-menu-brand img{width:42px;height:42px;object-fit:contain;background:#fff;border-radius:6px;padding:3px;min-width:42px}.app-menu-brand span{white-space:nowrap}
.app-menu-nav{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:10px 8px;overflow-y:auto;overflow-x:hidden;flex:1}
.app-menu-link{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:42px;padding:9px 11px;border-radius:6px;color:var(--app-menu-color);text-decoration:none;font-weight:bold;white-space:nowrap;text-align:left}
.app-menu-link i{width:22px;text-align:center;font-size:17px;flex:0 0 22px}.app-menu-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left}
.app-menu-link:hover,.app-menu-link:focus{background:rgba(255,255,255,.16);color:var(--app-menu-color);text-decoration:none}.app-menu-link.is-active{background:#ff0;color:#111;box-shadow:inset 3px 0 0 rgba(0,0,0,.18)}
body.app-menu-collapsed .app-menu-text,body.app-menu-collapsed .app-menu-brand span{display:none}body.app-menu-collapsed .app-menu-link{display:flex;justify-content:center;padding-left:8px;padding-right:8px}
.app-menu-topbar{position:fixed;top:0;left:var(--app-menu-width);right:0;min-height:58px;z-index:9999;background:var(--app-menu-bg);color:var(--app-menu-color);box-shadow:0 4px 16px rgba(15,23,42,.1);display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 14px;transition:left .18s ease}body.app-menu-collapsed .app-menu-topbar{left:var(--app-menu-collapsed)}
.app-menu-icon,.app-menu-settings,.app-menu-admin,.app-menu-collapse{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.14);color:var(--app-menu-color);text-decoration:none;font-size:16px;cursor:pointer;flex:0 0 38px}
.app-menu-floating-toggle{position:fixed;top:10px;left:10px;z-index:10003;background:var(--app-menu-bg);color:var(--app-menu-color)}
.app-menu-icon:hover,.app-menu-settings:hover,.app-menu-admin:hover,.app-menu-collapse:hover{background:rgba(255,255,255,.24);color:var(--app-menu-color);text-decoration:none}
.app-menu-select{height:38px;max-width:190px;border:1px solid #cbd5e1;border-radius:6px;padding:4px 8px;font-weight:bold;color:#1f2937;background:#fff}.app-menu-expiration{height:38px;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.35);border-radius:6px;background:rgba(255,255,255,.14);color:var(--app-menu-color);padding:0 10px;font-weight:bold;white-space:nowrap}.small-box-footer{padding:12px;font-weight:bold;margin:5px;border-radius:5px}
@media(max-width:760px){body{padding-left:0;padding-top:58px}body.app-menu-collapsed{padding-left:0}.app-side-menu,body.app-menu-collapsed .app-side-menu{width:236px;transform:translateX(-100%);box-shadow:8px 0 22px rgba(15,23,42,.22)}body.app-menu-mobile-open .app-side-menu{transform:translateX(0)}.app-menu-brand{justify-content:center;padding-left:58px}.app-menu-brand span,.app-menu-text{display:block}.app-menu-link{display:grid;grid-template-columns:28px minmax(0,1fr);justify-content:flex-start;padding-left:11px;padding-right:11px;text-align:left}.app-menu-topbar,body.app-menu-collapsed .app-menu-topbar{left:0;gap:5px;padding:8px 8px 8px 56px}.app-menu-select{max-width:118px}.app-menu-expiration{max-width:96px;overflow:hidden;text-overflow:ellipsis;padding:0 7px}.app-menu-expiration span{overflow:hidden;text-overflow:ellipsis}.app-menu-admin{display:inline-flex}}
@media(max-width:760px){body,body.app-menu-collapsed{padding-top:50px}.app-menu-topbar,body.app-menu-collapsed .app-menu-topbar{height:50px;min-height:50px;gap:3px;padding:6px 6px 6px 51px;box-sizing:border-box}.app-menu-floating-toggle{top:7px;left:7px}.app-menu-topbar .app-menu-icon,.app-menu-topbar .app-menu-settings,.app-menu-topbar .app-menu-admin,.app-menu-floating-toggle{width:32px;height:32px;flex:0 0 32px;font-size:14px}.app-menu-topbar #anneescolaireen{flex:1 1 88px;min-width:68px;max-width:105px;height:32px;padding:2px 3px;font-size:11px;line-height:1.1;text-overflow:ellipsis}.app-menu-topbar .app-menu-expiration{flex:0 0 auto;max-width:76px;height:32px;padding:0 5px;gap:3px;font-size:11px}.app-menu-topbar .app-menu-expiration i{font-size:13px}}
@media(max-width:480px){.app-menu-topbar #anneescolaireen{flex:0 1 78px;width:78px;min-width:64px;max-width:78px;padding-left:2px;padding-right:1px;font-size:10px}.app-menu-topbar .app-menu-expiration{width:auto;max-width:66px;flex:0 0 auto;justify-content:center;padding:0 4px;gap:2px}.app-menu-topbar .app-menu-expiration span{display:inline;max-width:44px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}}
@media(max-width:360px){.app-menu-topbar .app-menu-forward,.app-menu-topbar .app-menu-refresh{display:none}.app-menu-topbar #anneescolaireen{max-width:78px}}

/* Espace commun apprenant et parent */
.student-space{width:min(1180px,calc(100% - 28px));margin:18px auto 36px;color:#172033}.student-space-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.student-space-head h1{margin:0;font-size:24px}.student-space-head p{margin:4px 0 0;color:#64748b;font-weight:bold}.student-space-panel,.student-space-alert,.student-space-message{background:#fff;border:1px solid #dbe5e5;border-radius:9px;padding:16px;margin-bottom:14px;box-shadow:0 7px 20px rgba(15,23,42,.08)}.student-space-panel h2{margin:0 0 14px}.student-space-item{padding:12px 0;border-top:1px solid #e5eeee}.student-space-item:first-of-type{border-top:0}.student-space-btn{display:inline-flex;align-items:center;justify-content:center;margin:4px 6px 4px 0;padding:9px 13px;border:0;border-radius:6px;background:#0f766e;color:#fff!important;font-weight:bold;text-decoration:none;cursor:pointer}.student-space-btn-secondary{background:#475569}.student-space-btn-danger{background:#b91c1c}.student-space-table-wrap{overflow:auto}.student-space-table{width:100%;border-collapse:collapse}.student-space-table th,.student-space-table td{padding:10px;border:1px solid #dbe5e5;text-align:left}.student-space-table th{background:#99e3cf}.student-space-table .is-current-student{background:#fff7bf;font-weight:bold}.student-space-alert{color:#b91c1c;font-weight:bold}.student-space-message{color:#0f766e;font-weight:bold}.student-absence-form{display:grid;grid-template-columns:minmax(150px,.35fr) minmax(240px,1fr) minmax(190px,.45fr) auto;gap:12px;align-items:end}.student-absence-form label{display:grid;gap:5px;font-weight:bold}.student-absence-form input,.student-absence-form textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:9px;background:#fff}.absence-delete-form{display:inline}.absence-proof-open{padding:0;border:0;background:transparent;cursor:pointer}.absence-proof-thumb{width:64px;height:48px;object-fit:cover;border-radius:5px;border:1px solid #cbd5e1}.absence-modal[hidden]{display:none}.absence-modal{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(15,23,42,.86)}.absence-modal img{max-width:94vw;max-height:88vh;object-fit:contain;border-radius:8px;background:#fff}.absence-modal-close{position:absolute;top:14px;right:18px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:30px;cursor:pointer}.student-document-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.student-document-identity{display:flex;gap:18px;flex-wrap:wrap;padding:10px;margin-bottom:12px;background:#f8fafc;border:1px solid #dbe5e5;border-radius:6px}@media(max-width:720px){.student-absence-form{grid-template-columns:1fr}.student-space{width:calc(100% - 16px)}}@media print{.student-space-head,.student-print,#top,.app-menu-topbar,.app-menu-floating-toggle{display:none!important}.student-space{width:100%;margin:0}.student-official-document{box-shadow:none;border:0}.student-space-panel:not(.student-official-document){display:none}}

/* Barre commune des actions Excel et impression */
.data-action-bar{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;width:100%;margin:10px 0 16px;padding:10px;border:1px solid #d7e5e5;border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.07);box-sizing:border-box}
.data-action-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;margin:0!important;padding:9px 14px;border:1px solid #0f766e;border-radius:7px;background:#0f766e;color:#fff;font-size:14px!important;font-weight:700!important;line-height:1.2;cursor:pointer;text-decoration:none;box-shadow:none;transition:background-color .15s ease,transform .15s ease}
.data-action-button:hover,.data-action-button:focus{background:#0b5f59;color:#fff;transform:translateY(-1px);outline:0}
.data-action-link{display:inline-flex;margin:0!important;text-decoration:none!important}
.data-action-icon{font-size:16px}
@media(max-width:600px){.data-action-bar{justify-content:center;gap:6px;padding:8px}.data-action-button{width:42px;min-width:42px;height:40px;padding:0}.data-action-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.data-action-icon{font-size:18px}}
@media(max-width:600px){.data-action-bar .myschool-template-download.data-action-button{width:auto;min-width:112px;max-width:180px;padding:4px 8px;gap:5px}.data-action-bar .myschool-template-download .data-action-label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;white-space:normal;font-size:11px;line-height:1.1;text-align:left}.data-action-bar .myschool-template-download .data-action-icon{flex:none;font-size:16px}}

/* Select enrichi professionnel */
.myschool-rich-select{position:relative;display:inline-block;max-width:100%;vertical-align:middle;box-sizing:border-box;height:var(--myschool-select-height,auto);}
.myschool-native-select{position:absolute!important;left:0;top:0;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important;z-index:-1!important;}
.myschool-rich-button{width:100%;height:var(--myschool-select-height,40px);min-height:0;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#172033;padding:4px 34px 4px 10px;text-align:left;font-weight:bold;line-height:1.2;box-sizing:border-box;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;}
.myschool-rich-button:after{content:'\f107';font-family:FontAwesome;position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#0f766e;}
.myschool-rich-select.is-open .myschool-rich-button{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.14);}
.myschool-rich-panel{display:none;position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:10020;background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 14px 32px rgba(15,23,42,.18);overflow:hidden;min-width:100%;}
.myschool-rich-select.is-open .myschool-rich-panel{display:block;}
.myschool-rich-search{width:100%;height:36px;border:0;border-bottom:1px solid #e2e8f0;padding:7px 10px;font-weight:bold;background:#f8fbfb;color:#172033;box-sizing:border-box;outline:none;}
.myschool-rich-options{display:block;max-height:220px;overflow:auto;padding:4px;}
.myschool-rich-option{display:block;width:100%;border:0;background:#fff;color:#172033;text-align:left;padding:8px 10px;border-radius:4px;font-weight:bold;cursor:pointer;}
.myschool-rich-option:hover,.myschool-rich-option:focus{background:#eefafa;color:#0f766e;outline:0;}
.myschool-rich-option.is-selected{background:#0f766e;color:#fff;}
.myschool-rich-option.is-selected:before{content:'\f00c';font-family:FontAwesome;margin-right:7px;}
.myschool-rich-option.is-disabled{opacity:.55;cursor:not-allowed;}
.myschool-rich-empty{display:block;padding:10px;color:#64748b;font-weight:bold;}

.student-results-filter{margin-bottom:18px}
.student-results-filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.student-results-filter-form label{display:grid;gap:5px;min-width:220px;font-weight:700}
.student-results-filter-form select,.student-results-filter-form input{min-height:40px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;padding:8px 10px;background:#fff;color:#172033}
.student-releve-document>.student-document-head{margin-bottom:12px}
.student-releve-document .pageimprime{max-width:100%;overflow-x:auto}
@media(max-width:720px){form.student-results-filter-form:not(#evaluation-batch-form){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;align-items:end}form.student-results-filter-form:not(#evaluation-batch-form) label{width:auto;min-width:0;max-width:100%;font-size:12px;line-height:1.25;gap:4px}form.student-results-filter-form:not(#evaluation-batch-form) select,form.student-results-filter-form:not(#evaluation-batch-form) input{width:100%;min-width:0;min-height:36px;padding:5px 6px;font-size:12px}form.student-results-filter-form:not(#evaluation-batch-form) .student-space-btn,form.student-results-filter-form:not(#evaluation-batch-form) button[type=submit]{width:100%;min-height:36px;margin:0;padding:5px 7px;font-size:12px}}
@media(max-width:350px){form.student-results-filter-form:not(#evaluation-batch-form){grid-template-columns:repeat(2,minmax(0,1fr))}}
.entreprise-settings{max-width:1200px;margin:20px auto;padding:0 14px;text-align:left;color:#172033}.entreprise-settings-card{background:#fff;border:1px solid #dce5ef;border-radius:16px;box-shadow:0 8px 28px rgba(25,42,62,.08);padding:24px}.entreprise-settings-card h2{margin:0;color:#172033;font-size:24px}.entreprise-settings-intro{margin:6px 0 22px;color:#607086}.entreprise-settings-card h3{margin:25px 0 12px;padding-bottom:8px;border-bottom:1px solid #e7ecf2;font-size:17px;color:#24354a}.entreprise-grid{display:grid;gap:14px}.entreprise-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.entreprise-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.entreprise-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.entreprise-grid>div{min-width:0}.entreprise-grid>div>label,.entreprise-settings-card>div>label{display:block;margin-bottom:5px;font-size:13px;font-weight:700;color:#334155}.entreprise-settings-card input:not([type=checkbox]):not([type=file]),.entreprise-settings-card select,.entreprise-settings-card textarea{box-sizing:border-box;max-width:100%;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;padding:8px 10px}.entreprise-settings-card input:focus,.entreprise-settings-card select:focus,.entreprise-settings-card textarea:focus{outline:2px solid #f4c531;outline-offset:1px}.entreprise-settings-card textarea{width:100%;resize:vertical}.entreprise-public-card{margin-top:24px;padding:18px;border:1px solid #d7e3f0;border-radius:12px;background:#f7faff}.entreprise-public-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.entreprise-public-head h3{margin:0 0 5px;padding:0;border:0}.entreprise-public-head p{margin:0;color:#607086;font-size:13px}.entreprise-public-status{flex:none;padding:7px 11px;border-radius:999px;font-size:12px;font-weight:700}.entreprise-public-status.is-on{background:#dcfce7;color:#166534}.entreprise-public-status.is-off{background:#fee2e2;color:#991b1b}.entreprise-public-status.is-pending{background:#fef3c7;color:#854d0e}.entreprise-types>label{display:flex;align-items:center;gap:8px;min-width:0;margin:0;padding:10px 12px;border:1px solid #e0e7ef;border-radius:8px;background:#fafbfd}.entreprise-types input{flex:none}.entreprise-public-link{margin-bottom:12px;padding:12px;border:1px solid #dbe5ef;border-radius:9px;background:#f7faff}.entreprise-public-link label{display:block;margin-bottom:7px;font-weight:700}.entreprise-public-link input{width:min(100%,550px)!important}.entreprise-settings-actions{margin-top:22px;text-align:center}.entreprise-settings-actions button{min-height:40px;padding:8px 14px;border:1px solid #d1a900;border-radius:8px;background:#ffd53d;color:#172033;font-weight:700;cursor:pointer}.entreprise-settings-actions #save-entreprise-parametre{min-width:210px}.entreprise-settings-actions button:hover{background:#f5c51b}
@media(max-width:900px){.entreprise-grid-three,.entreprise-grid-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.entreprise-settings{padding:0 8px}.entreprise-settings-card{padding:16px}.entreprise-grid-three,.entreprise-grid-four,.entreprise-grid-two{grid-template-columns:1fr}.entreprise-public-head{flex-wrap:wrap}.entreprise-settings-card h2{font-size:20px}.entreprise-settings-actions #save-entreprise-parametre{width:100%}}
@media print{.student-results-filter{display:none!important}.student-releve-document{padding:0!important}.student-releve-document>.student-document-head{display:none!important}}





.legal-page{margin:0;background:#eef7f7;color:#172033;font:16px/1.7 Arial,Helvetica,sans-serif}
.legal-page a{color:#0f766e;text-decoration:underline;text-underline-offset:3px}
.legal-header,.legal-footer{max-width:1000px;margin:auto;padding:24px;box-sizing:border-box}
.legal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.legal-brand{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:bold;text-decoration:none!important}
.legal-brand img{width:48px;height:48px;object-fit:contain}
.legal-page nav{display:flex;gap:20px;flex-wrap:wrap}
.legal-document{max-width:952px;margin:0 auto;background:white;padding:40px;box-sizing:border-box;border:1px solid #dbe5e5;border-radius:12px}
.legal-document h1{font-size:clamp(26px,5vw,38px);line-height:1.2;margin:12px 0}
.legal-document h2{font-size:21px;margin:30px 0 10px;line-height:1.4}
.legal-kicker,.legal-updated{color:#526574;font-size:14px}
.legal-footer{font-size:14px}
.auth-legal{font-size:13px;line-height:1.6;color:#526574;margin:18px 0 0}
.auth-legal a{color:#0f766e;text-decoration:underline}
.footer-legal{display:flex;gap:16px;flex-wrap:wrap}
@media(max-width:600px){.legal-document{margin:0 12px;padding:22px}.legal-header,.legal-footer{padding:20px}.legal-document ul{padding-left:20px}}
.annual-modules{margin:24px auto;max-width:1200px;padding:20px;background:#fff;color:#172033;box-sizing:border-box}
.annual-modules form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:16px 0}
.annual-modules label{display:grid;gap:5px;font-weight:bold}
.annual-modules select,.annual-modules button{padding:9px;border:1px solid #b8cece;border-radius:5px}
.annual-modules button{cursor:pointer;background:#eefafa;color:#0f766e;font-weight:bold}
.annual-modules table{width:100%;border-collapse:collapse}
.annual-modules th,.annual-modules td{padding:10px;border:1px solid #dbe5e5;text-align:left}
.annual-modules th{background:#99e3cf}
.annual-modules [hidden]{display:none!important}
#module-message{padding:10px;background:#eefafa}

/* Parametres de l'annee et affectations de matieres */
.settings-menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:1280px;margin:0 auto 14px;padding:8px;background:#fff;border:1px solid #dbe5e5;border-radius:9px;box-shadow:0 4px 16px rgba(15,23,42,.06);box-sizing:border-box}
.settings-menu .settings-menu-link{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:0;padding:8px 13px;border:1px solid #b8e5e1;border-radius:7px;background:#eefafa;color:#0f766e;font:700 14px Arial,Helvetica,sans-serif;text-decoration:none;white-space:nowrap;box-sizing:border-box}
.settings-menu .settings-menu-link:hover,.settings-menu .settings-menu-link:focus{background:#d8f3ef;color:#0f766e;text-decoration:none}
.settings-menu .settings-menu-link.is-active,.settings-menu .settings-menu-link.is-active:hover,.settings-menu .settings-menu-link.is-active:focus{background:#ff0;color:#111;border-color:#d6c200;text-decoration:none}
.settings-menu button.settings-menu-link{cursor:pointer}.settings-menu.compta-tabs,.settings-menu.compta-subtabs{max-width:none;justify-content:flex-start}.settings-menu.compta-tabs{margin:14px 0}.settings-menu.compta-subtabs{margin:0 0 14px}.deliberation-settings-nav{width:min(100%,1280px)}
.compta-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;box-sizing:border-box}.compta-table-scroll .compta-table{width:100%}.compta-page .compta-panel,.compta-page #compta-content{min-width:0;max-width:100%;box-sizing:border-box}
.compta-list-heading{font-size:18px;margin:18px 0 9px;color:#172033}
@media(max-width:760px){.school-home{width:calc(100% - 12px)!important;margin:8px auto 22px!important}.school-hero,.school-grid{gap:8px!important;margin-bottom:8px!important}.school-welcome,.school-context,.school-section{padding:10px!important;min-height:0!important}.school-welcome h1{font-size:19px!important;margin:10px 0 5px!important}.school-welcome p{font-size:11px!important;line-height:1.35!important}.school-eyebrow{font-size:10px!important;padding:5px 7px!important}.school-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:10px!important}.school-action{width:auto!important;min-width:0!important;min-height:34px!important;padding:5px 6px!important;gap:5px!important;font-size:10px!important;text-align:center}.school-stats,.school-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-bottom:8px!important}.school-stat{min-width:0;padding:9px!important}.school-stat i{width:26px!important;height:26px!important;margin-bottom:5px!important;font-size:12px}.school-stat strong{font-size:20px!important}.school-stat span{font-size:10px!important;line-height:1.2!important}.school-shortcut{width:auto!important;min-width:0!important;min-height:54px!important;padding:6px!important;gap:6px!important}.school-shortcut i{width:27px!important;height:27px!important;font-size:12px}.school-shortcut strong{font-size:11px!important;line-height:1.15}.school-shortcut span,.school-context-label,.school-list-main span,.school-note-meta{font-size:10px!important;line-height:1.2}.school-context-value{font-size:12px!important}.school-section-title h2{font-size:15px!important}.school-section-title a,.school-list-main strong{font-size:11px!important}.school-list-row{grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;padding:7px!important}.school-badge{min-width:38px!important;min-height:24px!important;padding:3px 5px!important;font-size:10px!important}}
@media(min-width:430px) and (max-width:760px){.school-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.school-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:561px) and (max-width:1050px){.settings-menu.compta-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.settings-menu.compta-tabs .settings-menu-link{width:100%;min-width:0;white-space:normal;text-align:center}}
@media(max-width:560px){.settings-menu.compta-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible}.settings-menu.compta-tabs .settings-menu-link{width:100%;min-width:0;white-space:normal;text-align:center}.compta-page .compta-filter-apply{min-height:32px}.compta-page .compta-form-grid:has(.compta-filter-filiere){grid-template-columns:repeat(2,minmax(0,1fr))!important}.compta-page .compta-form-grid:has(.compta-filter-filiere) .compta-filter-apply{grid-column:1/-1}}
@media(max-width:760px){.compta-page{width:calc(100% - 12px)!important;margin:10px 6px 24px!important}.compta-page .compta-panel{padding:8px!important}.compta-table-scroll .compta-table{min-width:620px}.compta-page .compta-table th,.compta-page .compta-table td{padding:5px 4px!important;font-size:10.5px!important;line-height:1.25}.compta-page .compta-table .compta-btn{min-height:29px;padding:4px 6px;font-size:10px}.compta-page .compta-actions{display:flex;gap:3px;flex-wrap:nowrap}.compta-page .compta-input{min-width:56px;height:28px;padding:2px 4px;font-size:11px}.compta-page .compta-table th:first-child,.compta-page .compta-table td:first-child{min-width:95px}}
@media(max-width:760px){.comptabilite-page .header,.comptabilite-page .fluid,.comptabilite-page .widget.grid12,.comptabilite-page .widget-header{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;box-sizing:border-box}.comptabilite-page .compta-page{width:100%!important;margin:6px 0 20px!important;padding:0 5px!important;box-sizing:border-box}.comptabilite-page .compta-panel{padding:6px!important;margin-bottom:8px}.comptabilite-page .compta-table-scroll{margin:0;width:100%;border-radius:4px}.comptabilite-page .compta-table-scroll .compta-table{width:max-content;min-width:100%;table-layout:auto}.comptabilite-page .compta-table th,.comptabilite-page .compta-table td{padding:3px 4px!important;font-size:10px!important;line-height:1.2;text-align:left}.comptabilite-page .compta-table .compta-num{text-align:right!important}.comptabilite-page .compta-table th:first-child,.comptabilite-page .compta-table td:first-child{min-width:82px}.comptabilite-page .compta-table .compta-input{min-width:48px;width:62px;height:26px;padding:2px 3px;font-size:10px}.comptabilite-page .compta-table .compta-btn{min-height:26px;padding:3px 5px;font-size:10px}}
@media(max-width:760px){.comptabilite-page .compta-table th,.comptabilite-page .compta-table td{font-size:9px!important;line-height:1.15;padding:3px!important}.comptabilite-page .compta-table .compta-input,.comptabilite-page .compta-table .compta-btn{font-size:9px!important}.comptabilite-page .compta-card span,.comptabilite-page .compta-small,.comptabilite-page .compta-field label{font-size:10px}.comptabilite-page .compta-title{font-size:18px}.comptabilite-page .compta-list-heading{font-size:15px;margin:10px 0 6px}}
@media(max-width:760px){.comptabilite-page .compta-page{padding-left:0!important;padding-right:0!important}.comptabilite-page #compta-content{width:100%;padding:0!important;margin:0!important}.comptabilite-page .compta-stats{gap:5px!important;margin-bottom:8px!important}.comptabilite-page .compta-card{min-width:0;padding:7px!important}.comptabilite-page .compta-card strong{font-size:15px!important;line-height:1.1;overflow-wrap:anywhere;margin-top:3px}.comptabilite-page .compta-card span{font-size:9px!important;line-height:1.15}.comptabilite-page .compta-panel{padding:4px!important}.comptabilite-page .compta-table th,.comptabilite-page .compta-table td{font-size:8.5px!important;padding:2px!important}.comptabilite-page .compta-table .compta-num{font-size:8.5px!important}.comptabilite-page .compta-table .compta-input{width:55px;min-width:45px;font-size:9px!important}.comptabilite-page .compta-table-scroll{border-radius:0}}
@media(max-width:760px){.comptabilite-page .compta-page{padding-left:5px!important;padding-right:5px!important}.comptabilite-page #compta-content>.compta-panel:first-child{padding:8px!important;border-radius:7px}}
@media print{.compta-table-scroll{overflow:visible!important;max-width:none!important}.compta-table-scroll .compta-table{min-width:0!important}}
.admin-public-cell{white-space:nowrap}.admin-public-toggle{display:inline-flex;align-items:center;gap:5px;border:1px solid currentColor;border-radius:6px;background:#fff;font-size:12px;font-weight:700;vertical-align:middle;cursor:pointer;padding:6px 9px;margin-right:8px}.admin-public-toggle i{font-size:20px;line-height:1}.admin-public-toggle.is-on,.admin-public-state.is-on{color:#15803d}.admin-public-toggle.is-off,.admin-public-state.is-off{color:#b91c1c}.admin-public-toggle:focus-visible{outline:2px solid #f4c531}.admin-public-toggle:disabled{opacity:.5;cursor:wait}.admin-public-state{display:inline-block;margin:0 10px 0 3px;font-size:12px;font-weight:700}.admin-public-cell .admin-btn{vertical-align:middle}
.matiere-page{background:#eef7f7!important;color:#172033}
.matiere-page .widget.grid12,.matiere-page .widget-header,.matiere-page .fluid{width:100%!important;max-width:none!important;box-sizing:border-box}
.matiere-page #data_transaction{padding:12px;box-sizing:border-box}
.matiere-page .matiere-heading,.matiere-page .matiere-search,.matiere-page #data{max-width:1280px;margin:0 auto 14px}
.matiere-page #message{color:#b91c1c;font-weight:700;min-height:22px;padding:3px 0}
.matiere-search{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;align-items:end;gap:10px;padding:18px;background:#fff;border:1px solid #dbe5e5;border-radius:10px;box-shadow:0 6px 18px rgba(15,23,42,.06);box-sizing:border-box}
.matiere-search h1{grid-column:1/-1;margin:0 0 4px;font-size:22px;line-height:1.2}
.matiere-search select{width:100%!important;height:42px!important;min-width:0;margin:0!important;padding:8px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#172033;font-size:14px;font-weight:600}
.matiere-search #rechercher{height:42px;margin:0!important;padding:0 15px;border:0;border-radius:7px;background:#0f766e;color:#fff;font-weight:700;cursor:pointer;white-space:nowrap}
.matiere-table-wrap{width:100%;overflow-x:auto;box-sizing:border-box;background:#fff;border:1px solid #dbe5e5;border-radius:10px;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.matiere-table{width:100%;min-width:980px;border-collapse:collapse;background:#fff;font-size:14px!important}
.matiere-table td{border-bottom:1px solid #e2e8f0;padding:8px 10px;text-align:left;vertical-align:middle}
.matiere-table tr:nth-child(2) td{background:#e6f5f2;font-weight:700;white-space:nowrap}
.matiere-table input,.matiere-table select{height:40px!important;min-width:70px;padding:6px 8px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:6px;font-size:14px!important;font-weight:600}
.matiere-table #matiere{min-width:190px}.matiere-table #bareme{min-width:80px}
.matiere-table .matiere-separator{display:none}
.matiere-table #ajoutermatiere,.matiere-table .modifmatiere,.matiere-table .supmatiere{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border-radius:6px;background:#eefafa;color:#0f766e;text-decoration:none;white-space:nowrap}
.matiere-toolbar{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:1280px;margin:12px auto 0}
.matiere-toolbar button,.matiere-toolbar a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;margin:0!important;padding:8px 12px;border:1px solid #b8e5e1;border-radius:7px;background:#eefafa;color:#0f766e;font:700 14px Arial,Helvetica,sans-serif;text-decoration:none;cursor:pointer}
.matiere-toolbar button:hover,.matiere-toolbar a:hover{background:#d8f3ef;color:#0f766e}
@media(max-width:900px){.matiere-search{grid-template-columns:repeat(2,minmax(0,1fr))}.matiere-search #rechercher{grid-column:1/-1}.matiere-toolbar{justify-content:flex-start}}
@media(max-width:560px){.matiere-page #data_transaction{padding:8px}.settings-menu{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}.settings-menu .settings-menu-link{min-height:36px;padding:7px 10px}.matiere-search{gap:8px;padding:12px}.matiere-search h1{font-size:19px}.matiere-search select{font-size:13px}.matiere-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.matiere-toolbar button,.matiere-toolbar a{font-size:18px;padding:8px 6px}.matiere-toolbar span{display:none}.matiere-table{font-size:13px!important}}
@media(max-width:600px){.settings-menu{gap:4px;padding:5px;margin-bottom:9px}.settings-menu .settings-menu-link{min-height:30px;padding:5px 7px;font-size:11px;line-height:1.15;border-radius:5px}.param-tabs,.admin-tabs{flex-wrap:nowrap!important;overflow-x:auto;gap:4px!important;scrollbar-width:thin}.param-tabs .param-tab,.admin-tabs .admin-tab{min-height:30px!important;padding:5px 7px!important;font-size:11px!important;line-height:1.15!important;border-radius:5px!important}.settings-menu.compta-tabs,.settings-menu.compta-subtabs{margin-top:8px;margin-bottom:9px}}
.student-search-bar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:10px auto 14px}.student-search-bar #rechercher{margin-top:0!important}
@media(min-width:601px) and (max-width:900px){.settings-menu,.param-tabs,.admin-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important}.settings-menu .settings-menu-link,.param-tabs .param-tab,.admin-tabs .admin-tab{width:100%;min-width:0;white-space:normal!important;text-align:center}.settings-menu.compta-subtabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.settings-menu,.param-tabs,.admin-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important;overflow:visible!important}.settings-menu .settings-menu-link,.param-tabs .param-tab,.admin-tabs .admin-tab{width:100%;min-width:0;min-height:32px!important;padding:4px 5px!important;white-space:normal!important;text-align:center;font-size:10.5px!important;line-height:1.15!important}.settings-menu.compta-subtabs{grid-template-columns:repeat(2,minmax(0,1fr))}.etudiant-page .student-search-bar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:calc(100% - 8px);margin:6px 4px 10px}.etudiant-page .student-search-bar select,.etudiant-page .student-search-bar button{width:100%!important;min-width:0!important;height:32px!important;margin:0!important;padding:3px 4px!important;font-size:10px!important;box-sizing:border-box}.course-wrap{width:calc(100% - 8px)!important}.course-panel{padding:8px!important}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.course-grid>div{min-width:0}.course-grid label{font-size:10px!important;margin-bottom:3px!important}.course-grid select,.course-grid input{height:32px!important;min-width:0;padding:4px!important;font-size:11px!important;box-sizing:border-box}.course-grid .course-btn{min-height:32px;padding:5px 7px;font-size:11px}.course-grid .course-span-2,.course-grid .course-span-3,.course-grid .course-span-5{grid-column:1/-1!important}#course-search-form .course-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#course-search-form .course-grid>div:nth-child(4){grid-column:span 2}#course-search-form .course-grid>div:nth-child(5) .course-btn{width:100%}}

/* Saisie des types d'evaluation */
#evaluation-batch-form{display:block}
#evaluation-rows{display:grid;gap:10px;margin:12px 0}
.evaluation-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(110px,150px) 82px 40px 40px;gap:10px;align-items:center}
.evaluation-row>.evaluation-name,.evaluation-row>.evaluation-percentage{width:100%;height:40px;min-height:40px;box-sizing:border-box;margin:0}
.evaluation-row .evaluation-active-label{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-width:0;height:40px;margin:0;white-space:nowrap}
.evaluation-row .evaluation-active{width:17px;height:17px;min-height:0;margin:0;padding:0;flex:0 0 17px}
.evaluation-row .evaluation-toggle,.evaluation-row .evaluation-delete{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;color:#475569;cursor:pointer}
.evaluation-row .evaluation-delete{border-color:#fecaca;background:#fff1f2;color:#b91c1c}
.evaluation-row .evaluation-toggle:hover,.evaluation-row .evaluation-toggle:focus{background:#e2e8f0}
.evaluation-row .evaluation-delete:hover,.evaluation-row .evaluation-delete:focus{background:#fee2e2;color:#991b1b}
@media(max-width:560px){.evaluation-row{grid-template-columns:minmax(0,1fr) 82px 55px 34px 34px;gap:5px}.evaluation-row .evaluation-active-label{font-size:12px}.evaluation-row .evaluation-toggle,.evaluation-row .evaluation-delete{width:34px;height:40px}}
.backup-reset-dialog{width:min(480px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;border:0;border-radius:12px;padding:22px;box-shadow:0 20px 60px rgba(15,23,42,.3);color:#172033;background:#fff}
.backup-reset-dialog::backdrop{background:rgba(15,23,42,.68)}
.backup-reset-dialog h2{margin:0 0 12px;font-size:22px}
.backup-reset-dialog p{line-height:1.5}
.backup-reset-dialog label{display:block;margin:15px 0 6px;font-weight:700}
.backup-reset-dialog input{display:block;width:100%;height:46px;box-sizing:border-box;border:1px solid #94a3b8;border-radius:7px;padding:8px 12px;font-size:20px;letter-spacing:.25em;text-align:center}
.backup-reset-dialog #backup-reset-status{min-height:22px;margin:10px 0;color:#a11b1b;font-weight:600}
.backup-reset-buttons{display:flex;gap:8px;flex-wrap:wrap}
.backup-reset-buttons .param-btn{flex:1 1 auto;white-space:normal}
.backup-reset-buttons .backup-cancel{background:#475569}
@media(max-width:560px){.backup-reset-dialog{padding:16px}.backup-reset-dialog h2{font-size:19px}.backup-reset-buttons{display:grid;grid-template-columns:1fr 1fr}.backup-reset-buttons #backup-code-send{grid-column:1/-1}}
.help-page{margin:0;background:#f0f7f6;color:#15323a;font-family:Arial,Helvetica,sans-serif}
.help-page *{box-sizing:border-box}.help-page a{text-decoration:none}.help-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px max(24px,calc((100vw - 1200px)/2));background:#fff;border-bottom:1px solid #d4e6e2}.help-brand{display:inline-flex;align-items:center;gap:10px;color:#15323a;font-size:20px;font-weight:800}.help-brand img{width:40px;height:40px;object-fit:contain}.help-header nav,.help-footer nav{display:flex;gap:20px;flex-wrap:wrap}.help-header nav a,.help-footer a{color:#0f766e;font-weight:700}.help-page main{max-width:1200px;margin:auto;padding:26px 20px 48px}.help-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:25px;align-items:center;background:#0f766e;border-radius:16px;padding:36px;color:#fff;box-shadow:0 18px 38px rgba(10,65,60,.16)}.help-eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em}.help-hero h1{font-size:clamp(32px,5vw,54px);line-height:1.07;margin:12px 0}.help-hero p{max-width:670px;font-size:17px;line-height:1.55}.help-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.help-primary,.help-outline{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border-radius:7px;font-weight:800}.help-primary{background:#ffeb65;color:#182a2d}.help-outline{border:1px solid rgba(255,255,255,.75);color:#fff}.help-hero-card{display:grid;gap:12px;padding:20px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.26)}.help-hero-card span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.help-hero-card strong{display:block;padding:10px;border-radius:6px;background:#fff;color:#0f625c}.help-hero-card p{font-size:13px;margin:4px 0 0}.help-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;align-items:start;margin-top:25px}.help-sidebar{position:sticky;top:15px;background:#fff;border:1px solid #d6e6e3;border-radius:11px;padding:16px;max-height:calc(100vh - 30px);overflow:auto}.help-sidebar label{display:block;font-weight:800;margin-bottom:8px}.help-sidebar input{width:100%;height:39px;border:1px solid #b7d6d1;border-radius:6px;padding:0 10px;margin-bottom:13px}.help-sidebar nav{display:grid;gap:3px}.help-sidebar nav a{display:block;padding:8px 9px;border-radius:6px;color:#27545a;font-size:13px;font-weight:700;line-height:1.35}.help-sidebar nav a:hover,.help-sidebar nav a:focus{background:#e3f3ef;color:#0b665e}.help-content{display:grid;gap:17px}.help-lesson{scroll-margin-top:20px;background:#fff;border:1px solid #d6e6e3;border-radius:11px;padding:24px;box-shadow:0 6px 20px rgba(18,50,59,.04)}.help-lesson[hidden],.help-sidebar a[hidden]{display:none}.help-lesson-role{display:inline-block;padding:5px 9px;border-radius:20px;background:#e2f3ee;color:#0d665d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.help-lesson h2{margin:10px 0 8px;font-size:23px;line-height:1.2}.help-lesson-head p{margin:0 0 18px;color:#536772;line-height:1.5}.help-steps{counter-reset:steps;list-style:none;margin:0;padding:0;display:grid;gap:10px}.help-steps li{position:relative;padding:10px 10px 10px 48px;border:1px solid #e1eeec;border-radius:8px;background:#fbfdfd}.help-steps li:before{counter-increment:steps;content:counter(steps,decimal-leading-zero);position:absolute;left:12px;top:12px;color:#0f766e;font-size:13px;font-weight:800}.help-steps h3{margin:0 0 4px;font-size:15px}.help-steps p{margin:0;color:#415965;line-height:1.5;font-size:14px}.help-tip{margin:17px 0 0;border-left:4px solid #0f766e;background:#e9f6f2;padding:12px;border-radius:0 6px 6px 0;color:#24504e;line-height:1.45}.help-contact{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,.6fr);gap:25px;margin-top:30px;padding:26px;background:#fff;border:1px solid #d6e6e3;border-radius:12px}.help-contact h2{font-size:26px;margin:10px 0}.help-contact p{line-height:1.6;color:#536772}.help-contact .help-eyebrow{color:#0f766e}.help-contact-actions{display:grid;align-content:center;gap:9px}.help-contact-actions a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:7px;background:#e9f6f2;color:#0f625c;font-weight:800;overflow-wrap:anywhere}.help-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#fff;border-top:1px solid #d6e6e3;padding:20px max(24px,calc((100vw - 1200px)/2));color:#536772;font-size:13px}
@media(max-width:820px){.help-layout{grid-template-columns:1fr}.help-sidebar{position:static;max-height:none}.help-sidebar nav{display:flex;overflow-x:auto;gap:6px}.help-sidebar nav a{min-width:150px}.help-hero,.help-contact{grid-template-columns:1fr}.help-hero-card{grid-template-columns:repeat(3,minmax(0,1fr))}.help-hero-card span,.help-hero-card p{grid-column:1/-1}}
@media(max-width:560px){.help-header{padding:10px 14px}.help-header nav{gap:9px;font-size:12px}.help-header nav a:nth-child(2){display:none}.help-page main{padding:12px 8px 30px}.help-hero{padding:21px 16px;border-radius:9px}.help-hero p{font-size:14px}.help-hero-card{grid-template-columns:1fr}.help-hero-card span,.help-hero-card p{grid-column:auto}.help-hero-actions a{flex:1 1 100%}.help-layout{gap:11px;margin-top:12px}.help-sidebar,.help-lesson,.help-contact{padding:14px;border-radius:8px}.help-lesson h2{font-size:19px}.help-steps li{padding-left:43px}.help-contact{margin-top:13px}.help-footer{padding:18px 14px}}
.admin-campaign{max-width:1100px;margin:auto;color:#172033}.admin-campaign h2{font-size:22px;margin:2px 0 10px}.admin-campaign>p{line-height:1.5;max-width:850px}.admin-campaign-stats{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.admin-campaign-stats span{background:#eef7f5;border:1px solid #c7e5df;border-radius:7px;padding:10px 14px;font-size:13px}.admin-campaign-stats strong{font-size:20px;color:#0f625c;margin-right:4px}.admin-campaign-send{min-height:42px}.admin-campaign-send:disabled{opacity:.55;cursor:not-allowed}.admin-campaign-list{overflow-x:auto;margin-top:20px;border:1px solid #dbe7e7;border-radius:7px}.admin-campaign .admin-campaign-list table{min-width:580px;font-size:13px}.admin-campaign .admin-campaign-list th{background:#f3f8f7;text-align:left}.admin-campaign .admin-campaign-list td{font-weight:normal;overflow-wrap:anywhere}.admin-campaign-list small{color:#526673}.admin-page .admin-tab.is-active{background:#ffeb65;color:#172033;border-color:#d7bc37}
@media(max-width:760px){.admin-campaign h2{font-size:19px}.admin-campaign-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.admin-campaign-stats span{padding:8px;font-size:11px}.admin-campaign-stats strong{font-size:16px}.admin-campaign-send{width:100%;white-space:normal}.admin-page .admin-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.admin-page .admin-tab{font-size:11px;padding:7px 4px;min-height:36px}}
.backup-history-dialog{width:min(620px,calc(100vw - 24px))}.backup-history{display:grid;gap:8px;max-height:min(46vh,420px);overflow:auto;margin:16px 0;padding:2px}.backup-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fbfb;color:#172033;text-align:left;cursor:pointer}.backup-history-item:hover,.backup-history-item:focus{border-color:#0f766e;background:#edf8f5}.backup-history-item.is-selected{border:2px solid #0f766e;background:#e3f5ee}.backup-history-item strong{font-size:15px}.backup-history-item small{color:#64748b}.backup-history-dialog #backup-restore-status{min-height:22px;color:#a11b1b;font-weight:600}.backup-history-dialog button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:560px){.backup-history-item{align-items:flex-start;flex-direction:column;gap:2px;padding:10px}.backup-history-dialog .backup-reset-buttons{grid-template-columns:1fr}.backup-history-dialog .backup-reset-buttons button{width:100%}}
.backup-history .backup-history-item{cursor:default}.backup-history .backup-history-item:hover{background:#f8fbfb;border-color:#cbd5e1}.backup-history-label{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap;min-width:0}.backup-history-label small{font-size:13px}.backup-history .backup-history-restore{flex:0 0 auto;min-height:34px;padding:7px 12px}
@media(max-width:560px){.backup-history .backup-history-item{flex-direction:row;align-items:center}.backup-history-label{display:block}.backup-history-label strong,.backup-history-label small{display:block}.backup-history .backup-history-restore{padding:6px 9px;font-size:12px}}
.modal-backdrop{z-index:11000}.modal{z-index:11010}.modal-dialog{margin-top:70px}
@media(max-width:760px){.modal-dialog{margin:60px 10px 20px}}
@media(max-width:600px){
  #profi .modal-dialog{width:calc(100% - 20px);max-width:420px;margin:58px auto 16px}
  #profi .modal-header{padding:10px 13px}
  #profi .modal-title{font-size:15px;line-height:1.3}
  #profi .modal-body{padding:12px 13px;font-size:13px}
  #profi #para .page-title{font-size:18px;line-height:1.25;margin:4px 0;overflow-wrap:anywhere}
  #profi .modal-body h2{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
  #profi .modal-body h4{font-size:13px;line-height:1.4}
  #profi .modal-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding:9px}
  #profi .modal-footer>*{margin:0}
  #profi .modal-footer .btn,#profi .modal-body .btn{min-height:31px;padding:5px 8px;font-size:11px;line-height:1.25;white-space:normal}
  .footer{padding:10px 8px 14px;font-size:11px;line-height:1.35}
  .footer h3{margin:2px 0 5px;font-size:12px!important;line-height:1.3}
  .footer .footer-inner{width:100%;font-size:11px}
  .footer .footer-legal{justify-content:center;gap:5px 10px}
  .footer .footer-muted{font-size:10px;margin-top:3px}
}
.course-card h3{font-size:16px;line-height:1.3;margin-bottom:5px}
.course-card .course-meta{font-size:11px;line-height:1.35;margin-bottom:6px}
.course-card>.course-body{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.course-card{padding:10px}.course-card h3{font-size:15px}.course-card>.course-body{font-size:12px;-webkit-line-clamp:2;line-clamp:2}}
.course-body mjx-container[display="true"]{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 0}
