/* --------- BASE GLOBALE --------- */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background-color: #f4f4f4;
	color: #333;
}

/* Liens avec surlignage jaune animé */
a {
	position: relative;
	color: #0066cc;
	text-decoration: none;
	font-weight: normal;
}

a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: yellow;
	transform: scaleX(0);
	transform-origin: bottom right;
	transition: transform 0.3s ease-out;
}

a:hover::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

/* --------- HEADER / FOOTER --------- */

header, footer {
	background-color: #0b264c; /* fallback plus compatible */
	color: white;
	text-align: center;
	padding: 1rem;
}

footer p {
	margin: 0.5rem 0;
	font-size: 0.9em;
}

/* --------- STRUCTURE DES PAGES --------- */

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1rem;
}

.container {
	background: white;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	padding: 2rem;
	max-width: 900px;
	width: 100%;
	border-radius: 8px;
}

.columns {
	display: flex;
	gap: 2rem;
}

.left-column {
	flex: 2;
}

.right-column {
	flex: 1;
	border-left: 2px solid #eee;
	padding-left: 1rem;
}

/* Titres */

h1 {
	color: #003366;
	margin-top: 0.5rem;
}

h2 {
	color: #003366;
	margin-top: 1rem;
}

.section {
	margin-bottom: 2rem;
}

/* Navigation dans le header (si utilisé) */

nav a {
	margin: 0 10px;
	color: #66aaff;
	text-decoration: none;
	font-weight: bold;
}

nav a:hover {
	text-decoration: underline;
}

/* Items d’archives / listes */

.item {
	margin-bottom: 0.75rem;
}

.item .date {
	font-size: 0.9em;
	color: #666;
}

/* Menu de liens à masquer sur mobile */
@media screen and (max-width: 768px) {
	#menu-liens {
		display: none !important;
	}
}

/* Responsive colonnes */

@media (max-width: 768px) {
	.columns {
		flex-direction: column;
	}
	.right-column {
		border-left: none;
		padding-left: 0;
		margin-top: 1rem;
	}
}

/* Encadré individuel pour chaque nouvelle InfoBref */
.infobref-item {
	background-color: #0041C2;   /* Bleu profond Bonjour St-Jean */
	color: white;
	padding: 15px 18px;
	border-radius: 8px;
	margin: 12px 0;
}

/* liens en blanc */
.infobref-item a {
	color: #ffffff !important;
	text-decoration: underline;
	text-align-last: right;
}

.infobref-item a:hover {
	opacity: 0.8;
}

