/*
Theme Name: Paroisse des Alpilles
Description: Une page d’accueil lumineuse pour la paroisse, basée sur FlyMag.
Version: 1.0.6
Template: flymag
Text Domain: paroisse-alpilles
*/

.alpilles-theme {
	--olive: #344a37;
	--olive-dark: #23382b;
	--ochre: #a56d38;
	--stone: #f5f2e9;
	--ink: #292f29;
	--muted: #656a60;
	background: #fffdf8;
	color: var(--ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.65;
}

.alpilles-theme *,
.alpilles-theme *::before,
.alpilles-theme *::after {
	box-sizing: border-box;
}

.alpilles-theme h1,
.alpilles-theme h2,
.alpilles-theme h3 {
	color: var(--olive-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	letter-spacing: -0.035em;
}

.alpilles-theme a {
	color: inherit;
}

.alpilles-theme a:focus-visible {
	outline: 3px solid #bd854e;
	outline-offset: 3px;
}

.alpilles-container {
	width: min(1200px, calc(100% - 64px));
	margin: 0 auto;
}

.alpilles-header {
	background: #fffdf8;
	border-bottom: 1px solid #e8e5db;
}

.alpilles-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 94px;
	padding: 15px 0;
}

.alpilles-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	text-decoration: none;
}

.alpilles-brand__mark {
	display: grid;
	place-items: center;
	width: 45px;
	height: 45px;
	border: 1px solid #d5c4a6;
	border-radius: 50%;
	background: linear-gradient(145deg, #fffdf8, #ece5d5);
	box-shadow: 0 3px 10px rgba(35, 56, 43, 0.06);
	color: var(--olive);
	font-size: 23px;
}

.alpilles-brand strong,
.alpilles-brand small {
	display: block;
}

.alpilles-brand strong {
	color: var(--olive-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.2;
}

.alpilles-brand small {
	margin-top: 4px;
	color: var(--muted);
	font-size: 10px;
	letter-spacing: 0.02em;
}

.alpilles-nav {
	flex: 1;
	min-width: 0;
	padding: 7px;
	border: 1px solid #e8e4d8;
	border-radius: 18px;
	background: #f5f4ed;
	box-shadow: 0 4px 16px rgba(35, 56, 43, 0.04);
}

ul.alpilles-menu,
.alpilles-nav div.alpilles-menu > ul,
.alpilles-nav .menu > ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.alpilles-nav li {
	position: relative;
	list-style: none;
}

ul.alpilles-menu > li > a,
.alpilles-nav div.alpilles-menu > ul > li > a,
.alpilles-nav .menu > ul > li > a {
	height: 100%;
	justify-content: center;
	text-align: center;
}

.alpilles-nav li[class*="custom-menu-item-"] {
	border-top: 0;
}

.alpilles-nav li[class*="custom-menu-item-"]:hover {
	background: transparent;
}

.alpilles-nav li[class*="custom-menu-item-"] .sub-menu {
	background: #fffdf8;
}

.alpilles-nav a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid transparent;
	border-radius: 11px;
	color: var(--olive-dark);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.alpilles-nav a:hover,
.alpilles-nav a:focus-visible {
	background: #fffdf8;
	border-color: #dfd4bf;
	box-shadow: 0 2px 6px rgba(35, 56, 43, 0.06);
	color: var(--olive-dark);
}

.alpilles-nav .current-menu-item > a,
.alpilles-nav .current_page_item > a,
.alpilles-nav a[aria-current="page"] {
	background: var(--olive);
	box-shadow: 0 3px 8px rgba(35, 56, 43, 0.15);
	color: #fffdf8;
}

.alpilles-nav ul ul {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	display: none;
	min-width: 190px;
	margin: 0;
	padding: 6px;
	border: 1px solid #e8e4d8;
	border-radius: 13px;
	background: #fffdf8;
	box-shadow: 0 8px 20px rgba(35, 56, 43, 0.15);
}

.alpilles-nav ul ul a {
	padding: 7px 14px;
}

.alpilles-nav li:hover > ul,
.alpilles-nav li:focus-within > ul {
	display: block;
}

.alpilles-nav ul ul ul {
	top: 0;
	left: 100%;
}

.alpilles-quick-links {
	background: var(--stone);
	border-bottom: 1px solid #e1ddcf;
}

.alpilles-quick-links__inner {
	display: flex;
	flex-wrap: wrap;
	padding: 8px 0;
	gap: 6px 24px;
}

.alpilles-quick-links__inner a {
	display: flex;
	flex: 1 1 230px;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 5px 12px;
	border-left: 2px solid #b69a70;
	color: var(--olive-dark);
	font-size: 13px;
	line-height: 1.45;
	overflow-wrap: anywhere;
	text-decoration: none;
}

.alpilles-quick-links__inner a span {
	color: var(--muted);
	font-size: 11px;
}

.alpilles-quick-links__inner a:hover strong,
.alpilles-quick-links__inner a:focus-visible strong {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.alpilles-quick-links__inner .alpilles-quick-links__latest {
	gap: 4px;
	padding: 10px 16px;
	border-left: 3px solid #c8a265;
	border-radius: 0 10px 10px 0;
	background: var(--olive);
	box-shadow: 0 3px 10px rgba(35, 56, 43, 0.14);
	color: #fffdf8;
}

.alpilles-quick-links__inner .alpilles-quick-links__latest span {
	color: #f0d7aa;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.alpilles-quick-links__inner .alpilles-quick-links__latest:hover,
.alpilles-quick-links__inner .alpilles-quick-links__latest:focus-visible {
	background: var(--olive-dark);
}

.alpilles-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 500px;
	background: #eaece1;
}

.alpilles-hero__content {
	align-self: center;
	width: min(600px, 100%);
	justify-self: end;
	padding: 65px 70px 65px 32px;
}

.alpilles-kicker {
	margin: 0 0 15px;
	color: #815b35;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.alpilles-hero h1 {
	margin: 0 0 20px;
	font-size: clamp(42px, 5vw, 68px);
	line-height: 1.06;
}

.alpilles-hero__text {
	max-width: 420px;
	margin: 0;
	color: #535e52;
	font-size: 17px;
	line-height: 1.75;
}

.alpilles-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 26px;
	margin-top: 30px;
}

.alpilles-theme .alpilles-button {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	padding: 13px 20px;
	background: var(--olive);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.alpilles-theme .alpilles-button:hover,
.alpilles-theme .alpilles-button:focus {
	background: var(--olive-dark);
	color: #fff;
}

.alpilles-text-link {
	color: var(--olive-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.alpilles-text-link span {
	margin-left: 8px;
}

.alpilles-hero__visual {
	position: relative;
	min-width: 0;
	min-height: 500px;
	margin: 0;
	overflow: hidden;
	background: #a7b2a1;
}

.alpilles-hero__visual img {
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
	object-fit: cover;
	object-position: center 45%;
}

.alpilles-hero__visual figcaption {
	position: absolute;
	right: 12px;
	bottom: 12px;
	padding: 4px 8px;
	background: rgba(25, 38, 29, 0.85);
	color: #fff;
	font-size: 11px;
}

.alpilles-hero__visual figcaption a,
.alpilles-credit a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.alpilles-practical {
	display: grid;
	grid-template-columns: 1.25fr repeat(3, 1fr);
	padding-top: 40px;
	padding-bottom: 40px;
}

.alpilles-practical__intro,
.alpilles-practical__item {
	padding: 5px 22px;
}

.alpilles-practical__intro {
	padding-left: 0;
}

.alpilles-practical__intro .alpilles-kicker {
	display: block;
	margin-bottom: 7px;
}

.alpilles-practical__intro h2 {
	margin: 0;
	font-size: 24px;
}

.alpilles-practical__item {
	position: relative;
	display: flex;
	flex-direction: column;
	border-left: 1px solid #dfded4;
	text-decoration: none;
}

.alpilles-practical__number {
	margin-bottom: 5px;
	color: #9c764e;
	font-size: 11px;
}

.alpilles-practical__item strong {
	color: var(--olive-dark);
	font-size: 14px;
}

.alpilles-practical__item small {
	margin-top: 3px;
	color: var(--muted);
}

.alpilles-practical__item > span:last-child {
	position: absolute;
	top: 4px;
	right: 10px;
	color: var(--ochre);
}

.alpilles-practical__item:hover strong,
.alpilles-practical__item:focus strong {
	text-decoration: underline;
}

.alpilles-churches {
	padding: 75px 0 66px;
	background: var(--stone);
}

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

.alpilles-section-heading h2 {
	margin: 0;
	font-size: clamp(32px, 3.5vw, 46px);
	line-height: 1.1;
}

.alpilles-section-heading > p {
	max-width: 300px;
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

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

.alpilles-church {
	min-width: 0;
	margin: 0;
}

.alpilles-church img {
	display: block;
	width: 100%;
	height: 230px;
	object-fit: cover;
	background: #dedfd4;
}

.alpilles-church figcaption {
	padding: 15px 0 0;
}

.alpilles-church__name,
.alpilles-church__dedication,
.alpilles-credit {
	display: block;
}

.alpilles-church__name {
	color: var(--olive-dark);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1.2;
}

.alpilles-church__dedication {
	margin-top: 4px;
	color: var(--muted);
	font-size: 13px;
}

.alpilles-credit,
.alpilles-photo-note {
	margin-top: 6px;
	color: #62685d;
	font-size: 11px;
	line-height: 1.45;
}

.alpilles-photo-note {
	margin-bottom: 0;
}

.alpilles-news {
	padding-top: 75px;
	padding-bottom: 75px;
}

.alpilles-home-layout--with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 32px;
}

.alpilles-home-layout--with-sidebar .alpilles-section-heading {
	align-items: flex-start;
	flex-direction: column;
	gap: 16px;
}

.alpilles-home-layout--with-sidebar .alpilles-news-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alpilles-home-sidebar {
	min-width: 0;
	padding: 75px 0;
	overflow-wrap: anywhere;
}

.alpilles-home-sidebar .widget {
	margin-bottom: 22px;
	padding: 22px;
	border: 1px solid #e5e5da;
	background: var(--stone);
}

.alpilles-home-sidebar .widget-title {
	font-size: 23px;
}

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

.alpilles-theme .alpilles-news-card {
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 1px solid #e5e5da;
	background: #fff;
}

.alpilles-news-card__image {
	display: block;
}

.alpilles-news-card__image img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.alpilles-news-card__body {
	padding: 24px;
}

.alpilles-news-card time {
	color: #856744;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.alpilles-news-card h3 {
	margin: 10px 0;
	font-size: 24px;
	line-height: 1.2;
}

.alpilles-news-card h3 a {
	text-decoration: none;
}

.alpilles-news-card p {
	color: var(--muted);
	font-size: 14px;
}

.alpilles-news-card__link,
.alpilles-all-news {
	display: inline-block;
	margin-top: 8px;
	color: var(--olive-dark);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.alpilles-pagination {
	margin-top: 28px;
}

.alpilles-existing-content,
.alpilles-widgets {
	padding-top: 32px;
	padding-bottom: 32px;
}

.alpilles-widgets .widget {
	margin-bottom: 25px;
}

.alpilles-content {
	padding-top: 40px;
	padding-bottom: 55px;
}

.alpilles-content .hentry,
.alpilles-content .widget {
	border: 1px solid #e5e5da;
	background: #fffdf8;
}

.alpilles-content .hentry + .hentry {
	margin-top: 18px;
}

.alpilles-content .entry-title,
.alpilles-content .entry-title a,
.alpilles-content .widget-area .widget,
.alpilles-content .widget-area .widget a {
	color: var(--olive-dark);
}

.alpilles-content .entry-meta,
.alpilles-content .entry-meta a,
.alpilles-content .entry-footer,
.alpilles-content .entry-footer a {
	color: var(--muted);
}

.alpilles-content .widget-title {
	border-color: #b6bca9;
}

.alpilles-content .page-header {
	background: var(--olive);
}

.alpilles-content .page-header h1 {
	color: #fff;
}

.alpilles-content button,
.alpilles-content .button,
.alpilles-content input[type="button"],
.alpilles-content input[type="reset"],
.alpilles-content input[type="submit"] {
	background: var(--olive);
	color: #fff;
}

.alpilles-content button:hover,
.alpilles-content .button:hover,
.alpilles-content input[type="button"]:hover,
.alpilles-content input[type="reset"]:hover,
.alpilles-content input[type="submit"]:hover {
	background: var(--olive-dark);
	color: #fff;
}

.alpilles-footer {
	padding: 50px 0;
	background: var(--olive-dark);
	color: #f8f6ec;
}

.alpilles-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 30px;
}

.alpilles-footer strong {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-weight: 400;
}

.alpilles-footer p {
	margin: 8px 0;
	color: #d3ddce;
	font-size: 13px;
}

.alpilles-footer a {
	color: #fff;
	text-decoration: underline;
}

.alpilles-footer__widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 30px;
}

.alpilles-footer__widgets h3 {
	color: #fff;
}

.alpilles-footer__widgets .widget {
	padding: 0;
	border: 0;
	background: transparent;
}

.alpilles-footer__social {
	margin-top: 24px;
}

.alpilles-footer__social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	padding: 0;
	list-style: none;
}

@media (max-width: 900px) {
	.alpilles-home-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.alpilles-home-sidebar {
		padding: 0 0 40px;
	}

	.alpilles-header__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.alpilles-nav {
		width: 100%;
	}

	.alpilles-hero__content {
		padding-right: 35px;
	}

	.alpilles-practical {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 0;
	}

	.alpilles-church-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 26px;
	}
}

@media (max-width: 600px) {
	.alpilles-container {
		width: calc(100% - 36px);
	}

	.alpilles-content {
		padding: 24px 18px 40px;
	}

	.alpilles-header__inner {
		min-height: 0;
	}

	.alpilles-nav {
		width: 100%;
	}

	ul.alpilles-menu,
	.alpilles-nav div.alpilles-menu > ul,
	.alpilles-nav .menu > ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.alpilles-nav ul ul {
		position: static;
		min-width: 0;
		box-shadow: none;
	}

	.alpilles-hero {
		grid-template-columns: 1fr;
	}

	@media (prefers-reduced-motion: reduce) {
		.alpilles-nav a {
			transition: none;
		}
	}

	.alpilles-hero__content {
		padding: 52px 18px;
	}

	.alpilles-hero__visual {
		min-height: 310px;
	}

	.alpilles-practical {
		grid-template-columns: 1fr;
		gap: 18px;
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.alpilles-practical__item {
		padding-left: 15px;
	}

	.alpilles-churches,
	.alpilles-news {
		padding-top: 50px;
		padding-bottom: 50px;
	}

	.alpilles-section-heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 15px;
	}

	.alpilles-church-grid {
		gap: 20px 12px;
	}

	.alpilles-church img {
		height: 170px;
	}

	.alpilles-church__name {
		font-size: 19px;
	}

	.alpilles-news-grid,
	.alpilles-home-layout--with-sidebar .alpilles-news-grid,
	.alpilles-footer__widgets {
		grid-template-columns: 1fr;
	}

	.alpilles-footer__inner {
		flex-direction: column;
		gap: 18px;
	}
}
