:root {
	--bg-1: #f9fbf2;
	--bg-2: #f3f0e9;
	--ink-strong: #1b2a34;
	--ink-soft: #4e5d68;
	--surface-main: #fffefb;
	--surface-card: #ffffff;
	--line-soft: rgba(17, 36, 53, 0.14);
	--shadow-main: 0 22px 45px rgba(29, 46, 67, 0.12);
	--accent: #1f7a8c;
	--accent-2: #ef8354;
	--accent-3: #284b63;
	--ok: #ccffcc;
	--warn: #ffefcc;
	--bad: #ffcccc;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: "Sora", "Segoe UI", sans-serif;
	color: var(--ink-strong);
	background:
		radial-gradient(circle at 12% 15%, rgba(31, 122, 140, 0.18), transparent 42%),
		radial-gradient(circle at 88% 8%, rgba(239, 131, 84, 0.18), transparent 38%),
		linear-gradient(145deg, var(--bg-1), var(--bg-2));
	background-attachment: fixed;
	min-height: 100vh;
}

main.container {
	padding: 1.4rem 1.1rem 2.7rem;
	max-width: 1140px;
	margin: 1rem auto 2rem;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 18px;
	background: color-mix(in srgb, var(--surface-main) 93%, white 7%);
	box-shadow: var(--shadow-main);
	animation: fade-up 480ms ease-out;
}

.parcoursup {
	display: flex;
	flex-direction: column;
	gap: 1.3rem;
}

.search-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #2a4f66;
	text-transform: uppercase;
}

mon-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-bottom: 0.4rem;
}

.header-icons {
	display: inline-flex;
	gap: 0.6rem;
	padding: 0.4rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(31, 122, 140, 0.25);
	backdrop-filter: blur(6px);
}

.header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	color: var(--accent-3);
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.header-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}

.header-icon:hover,
.header-icon:focus-visible {
	transform: translateY(-2px);
	background: var(--accent);
	color: #ffffff;
	outline: none;
}

.filters-panel {
	background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(248, 253, 255, 0.95));
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	padding: 1rem 1rem 0.9rem;
	box-shadow: 0 10px 24px rgba(35, 56, 84, 0.1);
	animation: fade-up 520ms ease-out;
}

.filters-grid {
	margin-bottom: 0.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.75rem;
	align-items: stretch;
}

.filter-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.filter-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #547085;
}

.filter-field input,
.filter-field select {
	padding: 0.62rem 0.72rem;
	min-height: 42px;
	border: 1px solid #cfd8df;
	border-radius: 10px;
	background: #ffffff;
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 0.92rem;
	color: var(--ink-strong);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.filter-field input::placeholder {
	color: #7d8a93;
}

.filter-field input:focus,
.filter-field select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(31, 122, 140, 0.2);
}

.search-section {
	display: flex;
	justify-content: flex-end;
}

.search-btn {
	min-height: 43px;
	min-width: 170px;
	padding: 0.65rem 1.45rem;
	background: linear-gradient(135deg, var(--accent), #2e9eb5);
	color: #ffffff;
	border: none;
	border-radius: 11px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: transform 180ms ease, box-shadow 180ms ease;
	box-shadow: 0 10px 20px rgba(31, 122, 140, 0.24);
}

.search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 24px rgba(31, 122, 140, 0.28);
}

.search-btn:focus-visible {
	outline: 3px solid rgba(46, 158, 181, 0.35);
	outline-offset: 2px;
}

#map {
	height: 420px;
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 14px 30px rgba(24, 46, 69, 0.14);
	animation: fade-up 560ms ease-out;
}

table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 0.85rem;
	background: var(--surface-card);
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 12px 24px rgba(21, 42, 64, 0.08);
	animation: fade-up 620ms ease-out;
}

th,
td {
	border-bottom: 1px solid rgba(38, 61, 83, 0.1);
	padding: 0.7rem 0.75rem;
	text-align: left;
	font-size: 0.88rem;
}

th {
	position: sticky;
	top: 0;
	z-index: 1;
	background: linear-gradient(180deg, #f0f6f8, #e8eef4);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.74rem;
	font-weight: 700;
	color: #2d4d63;
}

tr:nth-child(even) td {
	background: #fbfcfd;
}

tr:hover td {
	background: #ecf7fb;
}

a {
	color: var(--accent-3);
	text-decoration: none;
	font-weight: 600;
}

a:hover {
	text-decoration: underline;
}

.pagination {
	display: flex;
	justify-content: center;
	gap: 0.8rem;
	margin-top: 0.6rem;
	align-items: center;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid var(--line-soft);
	border-radius: 12px;
	padding: 0.5rem 0.75rem;
	box-shadow: 0 8px 16px rgba(17, 35, 52, 0.08);
}

.pagination button {
	padding: 0.44rem 0.85rem;
	border: 1px solid #cfd8df;
	background: #ffffff;
	border-radius: 999px;
	cursor: pointer;
	font-weight: 600;
	transition: transform 150ms ease, background-color 150ms ease;
}

.pagination button:hover:not(:disabled) {
	transform: translateY(-1px);
	background: #edf5fa;
}

.pagination button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

profil h1 {
	font-family: "Archivo Black", "Sora", sans-serif;
	letter-spacing: 0.02em;
	font-size: clamp(1.45rem, 2.4vw, 2rem);
	margin: 0.2rem 0 1rem;
	color: #173651;
}

profil > button {
	margin: 0.75rem 0 0.9rem;
	padding: 0.6rem 0.95rem;
	border-radius: 11px;
	border: 0;
	background: linear-gradient(135deg, var(--accent-2), #ff9f45);
	color: #1b1d21;
	font-family: "Sora", "Segoe UI", sans-serif;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(239, 131, 84, 0.28);
	transition: transform 160ms ease;
}

profil > button:hover:not(:disabled) {
	transform: translateY(-2px);
}

profil > button:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

.feedback-message {
	padding: 0.8rem 0.9rem;
	border-radius: 10px;
	border: 1px solid #d8e4eb;
	background: #f0f8fd;
	color: #284b63;
	font-size: 0.92rem;
	margin-top: 1rem;
}

.feedback-error {
	border-color: #efb8b8;
	background: #fff3f3;
	color: #8b3131;
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 920px) {
	main.container {
		margin: 0.6rem 0.6rem 1.2rem;
		padding: 1rem 0.8rem 1.4rem;
	}

	#map {
		height: 360px;
	}
}

@media (max-width: 700px) {
	.header-icon {
		width: 36px;
		height: 36px;
	}

	.filters-grid {
		grid-template-columns: 1fr;
	}

	.search-section {
		justify-content: center;
	}

	.search-btn {
		width: 100%;
		max-width: 280px;
	}

	table {
		font-size: 0.84rem;
	}

	th,
	td {
		padding: 0.56rem 0.5rem;
	}

	#map {
		height: 300px;
	}
}
