:root {
	--mtdm-bg: #fbf8f1;
	--mtdm-surface: #ffffff;
	--mtdm-ink: #1f2024;
	--mtdm-blue: #91c1db;
	--mtdm-blue-deep: #284b9a;
	--mtdm-blue-band: #2f79ad;
	--mtdm-line: #c7dceb;
	--mtdm-shadow: 0 16px 36px rgba(31, 32, 36, 0.08);
	--mtdm-radius: 28px;
	--mtdm-radius-sm: 18px;
	--mtdm-wrap: min(1180px, calc(100vw - 32px));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Trebuchet MS", "Gill Sans", sans-serif;
	color: var(--mtdm-ink);
	background: linear-gradient(180deg, #fffcf6 0%, #fbf8f1 100%);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	max-width: 100%;
}

p {
	line-height: 1.7;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--mtdm-blue-band);
	color: #fff8f1;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-header__inner,
.site-footer__inner,
.hero,
.quick-sections,
.photos-band,
.parishes,
.news-home,
.page-shell,
.listing-shell {
	width: var(--mtdm-wrap);
	margin: 0 auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.site-header__diocese {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	background: var(--mtdm-bg);
	padding: 6px 12px;
	border-radius: 999px;
}

.site-header__diocese img {
	height: 48px;
	width: auto;
	display: block;
}

.site-branding__home {
	display: flex;
	flex-direction: column;
}

.site-branding__title,
.hero h1,
.page-header h1,
.listing-shell h1,
.news-single h1 {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	letter-spacing: 0;
}

.site-branding__title {
	font-size: 1.2rem;
}

.site-header__quicklinks {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-left: auto;
}

.site-header__quicklink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mtdm-blue);
	border: 1px solid rgba(40, 75, 154, 0.45);
	color: var(--mtdm-ink);
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(31, 32, 36, 0.1);
}

.site-header__quicklink:hover {
	background: var(--mtdm-blue-deep);
	color: #fff;
}

/* Header sur fond bleu : texte des boutons en creme (fonds inchanges). */
.site-header__quicklink,
.site-header .site-nav__menu a {
	color: #fff8f1;
}

.site-nav__menu,
.site-footer__menu,
.section-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
}

.site-nav__menu a,
.button-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mtdm-blue);
	color: var(--mtdm-ink);
	font-weight: 700;
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu a:hover,
.button-link:hover {
	background: var(--mtdm-blue-deep);
	color: #fff;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	gap: 32px;
	padding: 52px 0 24px;
	align-items: center;
}

.hero__eyebrow,
.section-sidebar__eyebrow,
.news-card__date {
	color: var(--mtdm-blue-deep);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
}

.hero__welcome {
	margin: 0 0 12px;
	font-size: clamp(3rem, 7vw, 6.7rem);
	font-weight: 700;
	line-height: 0.95;
}

.hero h1 {
	font-size: clamp(1.8rem, 3.5vw, 3.4rem);
	line-height: 1.08;
	margin: 0;
}

.hero__brand {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: rgba(255, 255, 255, 0.7);
	border: 1px solid var(--mtdm-line);
	border-radius: var(--mtdm-radius);
	box-shadow: var(--mtdm-shadow);
}

.hero__brand img {
	width: 100%;
	height: 120px;
	object-fit: contain;
	background: #fff;
	border-radius: 16px;
	padding: 8px;
}

.hero__logo-link {
	display: block;
	border-radius: 16px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero__logo-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(31, 32, 36, 0.12);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.section-heading h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.quick-sections,
.photos-band,
.news-home,
.listing-shell,
.page-shell {
	padding: 24px 0 42px;
}

.quick-sections__grid,
.news-home__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.quick-card,
.news-card,
.news-list__item,
.news-single,
.section-sidebar,
.page-content {
	background: var(--mtdm-surface);
	border: 1px solid var(--mtdm-line);
	border-radius: var(--mtdm-radius);
	box-shadow: var(--mtdm-shadow);
}

.quick-card,
.news-card,
.news-list__item,
.news-single {
	padding: 22px;
}

.quick-card {
	min-height: 88px;
	padding: 16px 18px;
	background: var(--mtdm-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.quick-card__title {
	display: block;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.2;
}

.quick-card:hover {
	background: var(--mtdm-blue-deep);
	color: #fff;
}

.news-card p {
	color: rgba(31, 32, 36, 0.84);
}

.gallery-strip {
	overflow: hidden;
	padding: 10px 0 4px;
}

.gallery-strip__track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation: mtdm-scroll-gallery 80s linear infinite;
}

.gallery-strip__item {
	margin: 0;
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gallery-strip__item img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: var(--mtdm-shadow);
}

.gallery-strip__caption {
	font-size: 0.85rem;
	color: var(--mtdm-blue-deep);
	text-align: center;
	padding: 0 4px;
	line-height: 1.3;
}

.gallery-lightbox__caption {
	margin-top: 12px;
	color: #fff;
	text-align: center;
	font-size: 1rem;
	min-height: 1.3em;
	max-width: 80ch;
	margin-left: auto;
	margin-right: auto;
}

.page-header__parish-logo {
	max-width: 180px;
	height: auto;
	margin: 0 0 16px;
}

.gallery-strip__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.gallery-lightbox[hidden] {
	display: none;
}

.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1200;
}

.gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 28, 0.8);
}

.gallery-lightbox__dialog {
	position: relative;
	height: 100%;
	width: min(1200px, calc(100vw - 20px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 64px;
	align-items: center;
	gap: 8px;
}

.gallery-lightbox__figure {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: calc(100vh - 40px);
}

.gallery-lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 80px);
	border-radius: 14px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
	background: #fff;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	color: #101219;
	cursor: pointer;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gallery-lightbox__close {
	position: absolute;
	top: 18px;
	right: 10px;
}

.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover,
.gallery-lightbox__close:hover {
	background: #fff;
}

@keyframes mtdm-scroll-gallery {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(-50% - 8px));
	}
}

.news-home__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.news-card h3,
.news-list__item h2 {
	margin-top: 0;
}

.news-card {
	border-radius: 20px;
}

.page-shell {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.page-shell--full {
	grid-template-columns: minmax(0, 1fr);
}

.section-sidebar {
	position: sticky;
	top: 96px;
	padding: 24px;
}

.section-sidebar__title {
	margin: 0 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.8rem;
}

.section-sidebar__list {
	display: grid;
	gap: 8px;
}

.section-sidebar__list a {
	display: block;
	padding: 10px 14px;
	border-radius: 14px;
	background: #f6fbff;
}

.section-sidebar__list .is-current a,
.section-sidebar__list a:hover {
	background: var(--mtdm-blue);
	font-weight: 700;
}

.page-content {
	padding: 30px;
}

.page-header h1,
.listing-shell h1,
.news-single h1 {
	margin-top: 0;
	font-size: clamp(2rem, 3vw, 3rem);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: Georgia, "Times New Roman", serif;
}

.entry-content h2 {
	color: var(--mtdm-blue-deep);
	margin-top: 2.2rem;
}

.entry-content a {
	color: var(--mtdm-blue-deep);
	text-decoration: underline;
}

.entry-content .feuilles-year {
	margin-top: 2rem;
	padding-bottom: 4px;
	border-bottom: 2px solid rgba(40, 75, 154, 0.18);
}

.entry-content .feuilles-list {
	columns: 2;
	column-gap: 32px;
	margin: 0 0 1rem;
	padding-left: 1.2rem;
}

.entry-content .feuilles-list li {
	break-inside: avoid;
	margin: 2px 0;
}

@media (max-width: 720px) {
	.entry-content .feuilles-list {
		columns: 1;
	}
}

.entry-content img {
	height: auto;
	border-radius: 14px;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1rem 0;
}

.entry-content th,
.entry-content td {
	border: 1px solid #c7dceb;
	padding: 6px 10px;
	vertical-align: top;
}

.parish-hub {
	margin-top: 28px;
}

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

.parish-hub__card {
	background: #fff;
	border: 1px solid var(--mtdm-line);
	border-radius: 20px;
	padding: 18px;
	box-shadow: var(--mtdm-shadow);
}

.parish-hub__logo-link {
	display: block;
	background: #fff;
	border-radius: 14px;
	padding: 8px;
	border: 1px solid var(--mtdm-line);
}

.parish-hub__logo-link img {
	width: 100%;
	height: 150px;
	object-fit: contain;
}

.parish-hub__card h2 {
	font-size: 1.35rem;
	margin: 12px 0 10px;
}

.parish-hub__card p {
	margin-top: 0;
}

.site-footer {
	background: var(--mtdm-blue-band);
	color: #fff8f1;
	margin-top: 24px;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 0;
}

.site-footer__title {
	margin: 0 0 6px;
	font-weight: 700;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

@media (max-width: 1080px) {
	.hero,
	.page-shell,
	.quick-sections__grid,
	.news-home__grid {
		grid-template-columns: 1fr;
	}

	.section-sidebar {
		position: static;
	}

	.parish-hub__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.site-header__inner,
	.site-footer__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.site-nav__menu {
		justify-content: flex-start;
	}

	.site-header__quicklinks {
		justify-content: flex-start;
		margin-left: 0;
	}

	.hero {
		padding-top: 28px;
	}

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

	.gallery-lightbox__dialog {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		width: calc(100vw - 8px);
	}

	.gallery-lightbox__close {
		top: 10px;
		right: 6px;
	}

	.quick-card,
	.parish-card,
	.news-card,
	.news-list__item,
	.news-single,
	.page-content,
	.section-sidebar {
		border-radius: 22px;
	}
}
