:root {
	--raqi-navy-blue: #0a294d; /* Navy blue*/
	--raqi-orange: #f34414; /* Bright Red-Orange*/
	--raqi-jaune: #ffac27; /* Golden Yellow */
	--raqi-beige: #d8cabd; /* Warm beige */
	--raqi-steel-blue: #355e8a; /* Steel Blue */
	--primary-color: #3498db;
	--header-height: 3em;
	--footer-height: 2em;
	font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@font-face {
	font-family: 'Inclusive Sans';
	src: url('/fonts/InclusiveSans-VariableFont_wght.woff2') format('woff2');
	font-weight: 400 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Nunito Sans';
	src: url('/fonts/NunitoSans-VariableFont.woff2') format('woff2'), url('/fonts/NunitoSans-Italic-VariableFont.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

h1, h2, h3, h4, h5, h6, h7 {
	font-family: 'Inclusive Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	margin-bottom: .7rem;
}

h1 {
	background-color: var(--raqi-steel-blue);
	color: white;
	font-weight: 900;
	font-size: 2rem;
	text-transform: uppercase;
	padding: 10px;
	margin-bottom: 0;
}

h2 {
	color: var(--raqi-orange);
	font-weight: bold;
	font-size: 1.8rem;
}

h3 {
	font-weight: bold;
	font-size: 1.4rem;
}

h4 {
	font-weight: bold;
	font-size: 1rem;
	text-transform: uppercase;
}

h5 {
	font-weight: bold;
	font-size: 1rem;
}

body {
	background-color: #eee;
}

.exergues {
	font-family: 'Inclusive Sans', sans-serif;
	font-weight: bold;
}

body.raqi {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	box-sizing: border-box;
}

/* ── Navbar ──────────────────────────────────────── */
.raqi .navbar {
	font-family: 'Inclusive Sans', sans-serif;
	background-color: var(--raqi-navy-blue);
	color: #ffd;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	z-index: 1000;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	overflow: visible;
}

.raqi-header-image {
	width: 100%;
	max-height: 400px;
	object-fit: cover;
	display: block;
}

/* ── Main body ──────────────────────────────────── */
main.raqi-body {
	flex: 1 1 auto;
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
	padding-top: calc(var(--header-height) - var(--footer-height));
	padding-bottom: var(--header-height);
	box-sizing: border-box;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	margin-top: 10px;
}

	main.raqi-body > .container {
		margin: 10px;
	}

@media (max-width: 768px) {
	main.raqi-body {
		background-attachment: scroll;
	}
}

/* ── Menu ───────────────────────────────────────── */
.raqi-menu {
	display: flex;
	flex-wrap: wrap;
	font-family: 'Inclusive Sans', sans-serif;
	font-weight: bold;
	align-items: center;
	column-gap: 0.25rem;
	padding: 0;
	margin-left: 0;
}

	.raqi-menu > div {
		height: var(--header-height);
		margin: 0;
		transition: background-color 0.5s ease-in-out;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		padding: 0;
	}

		.raqi-menu > div:hover {
			background-color: var(--raqi-steel-blue);
		}

		.raqi-menu > div.active {
			background-color: var(--raqi-steel-blue);
		}

		.raqi-menu > div > a {
			text-transform: uppercase;
			display: inline-block;
			padding: clamp(.5rem, .6vw, .7rem);
			color: white;
			text-decoration: none;
			font-size: clamp(1rem, 1.1vw, 2rem);
		}
		#main-content > .header > div > h1 {
			font-size: clamp(1rem, 3vw, 2rem)!important;
		}
/* ── Footer ─────────────────────────────────────── */
.raqi > footer {
	position: fixed;
	bottom: 0;
	left: 0;
	background-color: var(--raqi-navy-blue);
	color: #ccc;
	padding: .2rem 1rem;
	width: 100%;
	height: var(--footer-height);
	box-sizing: border-box;
	z-index: 10;
	display: flex;
	align-items: center;
	font-size: .8rem;
}

@media (max-width: 600px) {
	.raqi > footer {
		height: calc(var(--footer-height) * 2);
	}
}

.raqi > footer a {
	color: #ccc;
	text-decoration: none;
}

	.raqi > footer a:hover {
		color: #fff;
	}

/* ── Hamburger ──────────────────────────────────── */
.raqi-hamburger {
	display: none;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	padding: 0.5rem;
	margin-right: 0.5rem;
	align-self: center;
	z-index: 1100;
}

	.raqi-hamburger .bar {
		display: block;
		width: 22px;
		height: 2px;
		background: #fff;
		margin: 4px 0;
		border-radius: 1px;
	}

@media (max-width: 1200px) {
	.raqi-hamburger {
		display: block;
	}

	#raqi-navbar .container {
		position: relative;
	}

	.raqi-menu {
		display: none;
		flex-direction: column;
		gap: 0;
		background-color: #0a294ddd;
		-webkit-backdrop-filter: blur(6px);
		backdrop-filter: blur(6px);
		box-shadow: 0 8px 20px rgba(2, 6, 23, 0.45);
		padding: 0.5rem 0;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		z-index: 1000;
		border-top: 1px solid rgba(255,255,255,0.06);
		opacity: 0;
		transform-origin: top;
		transition: opacity 180ms ease, transform 180ms ease;
		transform: translateY(-6px);
		margin-left: 0;
		width: 100%;
		box-sizing: border-box;
	}

		.raqi-menu.open {
			position: fixed;
			display: flex;
			opacity: 1;
			transform: translateY(0);
		}

		.raqi-menu > div {
			padding: 0.5rem 1rem;
			width: 100%;
			min-height: var(--header-height);
		}

		.raqi-menu a {
			display: block;
			color: inherit;
			text-decoration: none;
			width: 100%;
			padding-left: 0.25rem;
		}

		.raqi-menu div svg {
			margin-left: 0;
		}
}

/* ── Listes ─────────────────────────────────────── */
.liste {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
	gap: 10px;
}

@media (max-width: 600px) {
	.liste {
		grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
	}
}

	.liste > div > a {
		color: black;
		text-decoration: none;
		font-size: 1.2rem;
		position: relative;
	}

/* ── Cartes ─────────────────────────────────────── */
.carte {
	grid-template-rows: subgrid;
	grid-row: span 2;
	background: none;
	background-color: #f8f8f8;
	font-size: .9rem;
	border: 1px solid #888;
	background-position: center;
	padding: 10px;
}

	.carte .titre {
		font-weight: bold;
	}

	.carte .sous-titre {
		font-size: 1rem;
		color: #888;
		font-weight: normal;
		display: block;
	}

	.carte .auteur {
		font-size: 1rem;
		color: #888;
		font-weight: normal;
		display: block;
	}

	.carte .date {
		font-size: .8rem;
		color: #aaa;
		font-weight: normal;
		display: block;
	}

	.carte a {
		font-size: 1.2rem;
		color: black;
		text-decoration: none;
		position: relative;
	}

	.carte .liens {
		display: flex;
		padding: 2px;
	}

	.carte:has(>a):hover {
		transform: scale(1.005);
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
	}

	.carte img {
		width: 100%;
	}

	.carte h2 {
		padding: 10px;
	}

	@media (max-width: 600px) {
		.carte h2 {
			font-size: 1.5rem;
		}
	}

	/* Document cards: icon + title layout */
	.carte > a > div {
		display: flex;
	}

		.carte > a > div > div:first-child {
			margin-right: 1rem;
		}

		.carte > a > div > div {
			font-weight: bold;
		}

/* ── Forms ──────────────────────────────────────── */
form input[type=text],
form input[type=password],
form input[type=email] {
	width: 100%;
	font-size: 1.2rem;
	box-sizing: border-box;
}

form button[type=submit] {
	font-size: 1rem;
	color: white;
	font-weight: bold;
	background-color: var(--raqi-steel-blue);
	border-radius: 4px;
	border-width: 1px;
	padding: 6px 3rem;
	margin-right: 0;
}

form > div:has(button[type=submit]) {
	text-align: right;
}

.validation-summary-errors {
	background-color: #600;
	color: #eee;
	padding: 0;
}

	.validation-summary-errors > ul {
		list-style: none;
		padding: 1rem;
	}

.field-validation-error {
	display: block;
	width: 100%;
	color: #600;
	font-weight: bold;
}

/* ── Utilities ──────────────────────────────────── */
.intro {
	font-weight: 300;
	font-size: 1.2rem;
}

.search-card {
	background-color: #f8f8f8;
	border: 1px solid #bbb;
	padding: 10px;
	margin-bottom: 10px;
}

.contenu {
	margin: 10px 0;
	background-color: white;
	padding: 10px;
	border: 1px solid #888;
}

.contenu p {
	margin: .5rem 0;
}

.highlight {
	font-weight: bold;
	background-color: yellow;
}

/* Before — scattered */
.annonce h3    { color: var(--raqi-steel-blue); margin: 0; }
.annonce .texte { color: #111; }
.annonce .date  { color: #888; font-size: .8rem; font-style: italic; }
