:root {
	--iut-red-950: #450a0a;
	--iut-red-900: #7f1d1d;
	--iut-red-800: #991b1b;
	--iut-red-700: #b91c1c;
	--iut-red-600: #dc2626;
	--iut-red-100: #fee2e2;
	--iut-red-50: #fef2f2;

	--iut-bg: #fff7f7;
	--iut-card: #ffffff;
	--iut-soft: #fff1f2;
	--iut-border: #fecaca;
	--iut-text: #1f2937;
	--iut-muted: #64748b;
	--iut-shadow: 0 12px 28px rgba(127, 29, 29, .10);
}

.iut-page {
	width: min(1180px, calc(100% - 32px));
	margin: 24px auto 60px;
}

.iut-contenu {
	margin-top: 20px;
}

.iut-article {
	background: var(--iut-card);
	border-radius: 26px;
	padding: 30px;
	border: 1px solid var(--iut-border);
	box-shadow: var(--iut-shadow);
}

.iut-article h2 {
	margin-top: 0;
	font-size: 2rem;
	color: var(--iut-red-900);
}

.iut-article h3 {
	margin-top: 30px;
	color: var(--iut-red-800);
	font-size: 1.35rem;
}

.iut-article p,
.iut-article li {
	line-height: 1.7;
	color: var(--iut-text);
}

.iut-article a {
	color: var(--iut-red-700);
	font-weight: 700;
}

.iut-signature,
.iut-source {
	color: var(--iut-muted);
	font-style: italic;
}

.iut-source {
	margin-top: 10px;
	font-size: 0.82rem;
}

.iut-hero {
	border-radius: 26px;
	padding: 34px;
	background:
		radial-gradient(circle at top right, rgba(248, 113, 113, .32), transparent 36%),
		linear-gradient(135deg, var(--iut-red-950), var(--iut-red-800));
	color: white;
	box-shadow: 0 18px 45px rgba(127, 29, 29, .24);
}

.iut-hero h1 {
	margin: 4px 0 10px;
	font-size: clamp(2rem, 4vw, 3.4rem);
	line-height: 1.05;
}

.iut-hero p {
	max-width: 780px;
	margin: 0;
	opacity: .92;
	font-size: 1.05rem;
}

.iut-kicker {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-weight: 800;
	color: #fecaca;
	font-size: .78rem;
}

.iut-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0;
}

.iut-tabs a {
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--iut-red-50);
	color: var(--iut-red-900);
	font-weight: 700;
	border: 1px solid var(--iut-border);
	transition: .18s ease;
}

.iut-tabs a:hover {
	transform: translateY(-1px);
	background: var(--iut-red-100);
	color: var(--iut-red-950);
}

.iut-tabs a.actif {
	background: var(--iut-red-800);
	color: white;
	border-color: var(--iut-red-800);
}

.iut-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.iut-card {
	display: grid;
	grid-template-columns: 76px 1fr;
	gap: 16px;
	align-items: center;
	min-height: 140px;
	padding: 20px;
	border-radius: 24px;
	background: white;
	border: 1px solid var(--iut-border);
	box-shadow: var(--iut-shadow);
	color: inherit;
	text-decoration: none;
	transition: .18s ease;
}

.iut-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 38px rgba(127, 29, 29, .16);
	background: #fffafa;
}

.iut-card-icon {
	width: 76px;
	height: 76px;
	border-radius: 22px;
	background: var(--iut-soft);
	display: grid;
	place-items: center;
}

.iut-card-icon img {
	max-width: 48px;
	max-height: 48px;
}

.iut-card h2 {
	margin: 0 0 6px;
	font-size: 1.1rem;
	color: var(--iut-red-900);
}

.iut-card p {
	margin: 0;
	color: var(--iut-muted);
	line-height: 1.45;
}

.iut-box {
	margin: 22px 0;
	padding: 20px;
	border-radius: 22px;
	background: var(--iut-red-50);
	border: 1px solid var(--iut-border);
}

.iut-box h3 {
	margin-top: 0;
}

.iut-alerte-danger {
	background: #fef2f2;
	border-color: #fca5a5;
}

.iut-alerte-danger h3 {
	color: var(--iut-red-900);
}

.iut-alerte-warning {
	background: #fffbeb;
	border-color: #fde68a;
}

.iut-alerte-warning h3 {
	color: #92400e;
}

.iut-note {
	padding: 14px 16px;
	border-left: 5px solid #f59e0b;
	background: #fffbeb;
	border-radius: 12px;
}

.iut-competences,
.iut-etats,
.iut-double,
.iut-contacts {
	display: grid;
	gap: 14px;
}

.iut-competences {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 22px 0;
}

.iut-etats {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 18px 0;
}

.iut-double,
.iut-contacts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.iut-competences div,
.iut-etats div,
.iut-contacts p {
	margin: 0;
	padding: 16px;
	border-radius: 18px;
	background: var(--iut-red-50);
	border: 1px solid var(--iut-border);
}

.iut-competences div {
	display: flex;
	gap: 14px;
	align-items: center;
}

.iut-competences strong {
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	height: 38px;
	border-radius: 14px;
	background: var(--iut-red-800);
	color: white;
}

.iut-etats strong {
	display: block;
	font-size: 1.1rem;
	margin-bottom: 6px;
}

.iut-etats .valide {
	border: 2px solid #22c55e;
	background: #f0fdf4;
}

.iut-etats .valide strong {
	color: #15803d;
}

.iut-etats .sursis {
	border: 2px solid #f59e0b;
	background: #fffbeb;
}

.iut-etats .sursis strong {
	color: #b45309;
}

.iut-etats .ajournee {
	border: 2px solid #ef4444;
	background: #fef2f2;
}

.iut-etats .ajournee strong {
	color: #b91c1c;
}

.iut-comp-1 { background: #dcfce7 !important; }
.iut-comp-2 { background: #fee2e2 !important; }
.iut-comp-3 { background: #fef3c7 !important; }
.iut-comp-4 { background: #fecaca !important; }

.iut-competences .iut-comp-1 { border-left: 6px solid #22c55e; }
.iut-competences .iut-comp-2 { border-left: 6px solid #f87171; }
.iut-competences .iut-comp-3 { border-left: 6px solid #facc15; }
.iut-competences .iut-comp-4 { border-left: 6px solid #991b1b; }

.iut-competences .iut-comp-1 strong { background: #22c55e; }
.iut-competences .iut-comp-2 strong { background: #f87171; }
.iut-competences .iut-comp-3 strong { background: #facc15; color: #422006; }
.iut-competences .iut-comp-4 strong { background: #991b1b; }

.iut-docs {
	display: grid;
	gap: 10px;
	padding-left: 20px;
}

.iut-doc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 18px 0;
}

.iut-doc-card {
	display: grid;
	grid-template-columns: 58px 1fr;
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 18px;
	background: white;
	border: 1px solid var(--iut-border);
	text-decoration: none;
	color: inherit;
	transition: .18s ease;
}

.iut-doc-card:hover {
	transform: translateY(-2px);
	background: var(--iut-red-50);
	border-color: #fca5a5;
}

.iut-doc-type {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--iut-red-800);
	color: white;
	font-size: .75rem;
	font-weight: 800;
}

.iut-doc-card strong {
	color: var(--iut-red-900);
}

.iut-doc-card p {
	margin: 4px 0 0;
	font-size: .86rem;
	color: var(--iut-muted);
	line-height: 1.35;
}

.iut-matrices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.iut-matrice {
	overflow-x: auto;
}

.iut-matrice table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.78rem;
	background: white;
}

.iut-matrice caption {
	text-align: left;
	font-weight: 800;
	font-size: 1rem;
	margin-bottom: 6px;
	color: var(--iut-red-900);
}

.iut-matrice th,
.iut-matrice td {
	border: 1px solid var(--iut-border);
	padding: 4px 6px;
	line-height: 1.2;
	vertical-align: middle;
}

.iut-matrice th {
	background: var(--iut-red-100);
	color: var(--iut-red-950);
}

.iut-rsae {
	min-width: 220px;
	max-width: 280px;
	font-size: 0.72rem;
	line-height: 1.2;
	font-weight: 400;
}

.iut-ligne-sae td {
	background: #f3dede;
}

.iut-ligne-sae .iut-rsae {
	font-size: 0.72rem;
	font-weight: 400;
}

.iut-matrice td:not(.iut-rsae) {
	text-align: center;
	font-weight: 600;
	width: 42px;
}

.iut-matrice .coef0 {
	background: #fff7f7 !important;
	color: transparent;
}

.iut-steps {
	padding-left: 22px;
}

code {
	padding: 2px 6px;
	border-radius: 8px;
	background: #fff1f2;
	color: var(--iut-red-900);
}

@media (max-width: 1100px) {
	.iut-matrices {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.iut-grid,
	.iut-competences,
	.iut-etats,
	.iut-contacts,
	.iut-doc-grid,
	.iut-double {
		grid-template-columns: 1fr;
	}

	.iut-card {
		grid-template-columns: 60px 1fr;
	}

	.iut-card-icon {
		width: 60px;
		height: 60px;
	}

	.iut-article,
	.iut-hero {
		padding: 22px;
	}
}

.iut-hero,
.iut-hero h1,
.iut-hero h2,
.iut-hero h3,
.iut-hero p,
.iut-hero a{
  color: #fff !important;
}

.iut-hero .iut-kicker{
  color: #fecaca !important;
}

.iut-hero h1{
  border-left-color: rgba(255,255,255,.75) !important;
}

/* =========================================================
   IUT LOCAL
========================================================= */

.iut-local{
	display: grid;
	gap: 28px;
}

.iut-local-grid{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.iut-local-card{
	display: flex;
	flex-direction: column;
	gap: 14px;

	padding: 22px;

	border-radius: 22px;

	text-decoration: none;
	color: inherit;

	background:
		linear-gradient(
			180deg,
			rgba(255,255,255,.05),
			rgba(255,255,255,.02)
		);

	border: 1px solid rgba(224,201,143,.14);

	box-shadow:
		0 10px 28px rgba(0,0,0,.22);

	transition:
		transform .18s ease,
		border-color .18s ease,
		box-shadow .18s ease;
}

.iut-local-card:hover{
	transform: translateY(-4px);

	border-color: rgba(224,201,143,.34);

	box-shadow:
		0 18px 40px rgba(0,0,0,.30);
}

.iut-local-icone{
	font-size: 42px;
}

.iut-local-card h3{
	margin: 0;

	color: var(--qb-laiton-2);

	font-size: 22px;
	font-weight: 800;
}

.iut-local-card p{
	margin: 0;

	line-height: 1.5;

	opacity: .82;
}

.iut-local-section{
	display: grid;
	gap: 22px;
}

.iut-local-section h2{
	margin: 0;

	font-size: 28px;
	color: var(--qb-laiton-2);
}

.iut-galerie{
	display: grid;

	grid-template-columns:
		repeat(auto-fill, minmax(220px, 1fr));

	gap: 18px;
}

.iut-photo{
	display: block;

	border-radius: 18px;

	overflow: hidden;

	background: rgba(255,255,255,.04);

	border: 1px solid rgba(255,255,255,.08);

	transition:
		transform .18s ease,
		border-color .18s ease;
}

.iut-photo:hover{
	transform: scale(1.02);

	border-color: rgba(224,201,143,.32);
}

.iut-photo img{
	display: block;

	width: 100%;
	height: 220px;

	object-fit: cover;
}

.iut-videos{
	display: grid;
	gap: 20px;
}

.iut-video-card{
	display: grid;
	gap: 14px;

	padding: 20px;

	border-radius: 22px;

	background:
		linear-gradient(
			180deg,
			rgba(255,255,255,.04),
			rgba(255,255,255,.02)
		);

	border: 1px solid rgba(255,255,255,.08);
}

.iut-video-card h3{
	margin: 0;

	font-size: 20px;
	color: var(--qb-laiton-2);
}

.iut-video-card video{
	width: 100%;

	border-radius: 18px;

	background: #000;
}

.iut-card-image{
	width: 100%;

	height: 180px;

	object-fit: cover;

	border-radius: 14px;
}
