
/* === Tokens (from the original theme.json: base #fff, contrast #000, bleu-maupas #a1d1e4) === */
:root {
	--fond: #ffffff;
	--encre: #000000;
	--muted: #444444;
	--bleu-maupas: #a1d1e4;
	--gris-carte: #abb8c3;
	--bord: #dddddd;
	--fond-doux: #f6f6f6;
	--font: "Source Serif 4", "Source Serif Pro", Georgia, serif;
}

/* === Ground === */
html { min-width: 320px; color-scheme: light; }

body {
	margin: 0;
	background-color: var(--fond);
	color: var(--encre);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.6;
}

:focus-visible { outline: 2px solid var(--bleu-maupas); outline-offset: 2px; }

::selection { background-color: var(--bleu-maupas); color: #000; }

/* === Layout: constrained ~650px (WP contentSize), wide ~1000px (WP wideSize) === */
.hdp-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.hdp-content { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.hdp-wide { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* === Header: logo left, nav right (like the original alignwide flex group) === */
.hdp-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	max-width: 1000px;
	margin: 0 auto;
	padding: 24px 20px 32px;
}

.hdp-logo img { height: 80px; width: auto; display: block; }
.hdp-logo { text-decoration: none; }

.hdp-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

.hdp-nav a {
	font-family: var(--font);
	font-size: 17px;
	color: var(--encre);
	text-decoration: none;
	padding: 2px 0;
}

.hdp-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hdp-nav a.hdp-nav-active { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 639px) {
	.hdp-header { flex-direction: column; align-items: flex-start; }
	.hdp-logo img { height: 56px; }
}

/* === Typography === */
h1.hdp-page-title {
	font-family: var(--font);
	font-weight: 400;
	font-size: clamp(34px, 5vw, 52px);
	line-height: 1.2;
	margin: 24px 0 32px;
	text-wrap: balance;
}

h2 {
	font-family: var(--font);
	font-weight: 400;
	font-size: 32px;
	line-height: 1.25;
	margin: 0 0 16px;
}

/* === Prose (page content) === */
.hdp-prose p { margin: 0 0 18px; }
.hdp-prose p:last-child { margin-bottom: 0; }
.hdp-prose strong { font-weight: 700; }
.hdp-prose em { font-style: italic; }

.hdp-prose a {
	color: var(--encre);
	text-decoration: underline;
	text-decoration-color: var(--bleu-maupas);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.hdp-prose a:hover { text-decoration-color: var(--encre); }

.hdp-prose ul { margin: 0 0 18px; padding-left: 26px; }
.hdp-prose li { margin-bottom: 8px; }
.hdp-prose li:last-child { margin-bottom: 0; }

img.hdp-img-full {
	display: block;
	width: 100%;
	height: auto;
	margin: 24px 0;
}

/* Bold-only paragraph = section label (like the bold headers on Prestations) */
.hdp-prose p.hdp-label {
	font-weight: 700;
	font-size: 21px;
	letter-spacing: 0.04em;
	margin: 36px 0 14px;
}

/* === Home hero: framed full-width image, centered text, CTA === */
.hdp-hero-img {
	border: 1px solid var(--bord);
	padding: 10px;
	background: #fff;
	margin-bottom: 32px;
}

.hdp-hero-img img { display: block; width: 100%; height: auto; }

.hdp-hero-text {
	max-width: 800px;
	margin: 0 auto 28px;
	text-align: center;
	font-size: 21px;
	line-height: 1.6;
}

.hdp-cta-row { text-align: center; margin: 28px 0 40px; }

.hdp-button {
	display: inline-block;
	background-color: var(--bleu-maupas);
	color: #000;
	font-family: var(--font);
	font-size: 17px;
	padding: 12px 28px;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: filter 150ms;
}

.hdp-button:hover { filter: brightness(0.94); text-decoration: none; color: #000; }

/* === Media-text (a-propos): image + content side by side, alignwide === */
.hdp-media-text {
	display: grid;
	gap: 32px;
	align-items: center;
	margin: 40px 0;
}

@media (min-width: 800px) {
	.hdp-media-text { grid-template-columns: 1fr 1fr; }
	.hdp-media-text.hdp-media-right .hdp-media-img { order: 2; }
}

.hdp-media-img img {
	display: block;
	width: 100%;
	height: auto;
}

.hdp-media-content h2 { text-align: center; margin-bottom: 20px; }
.hdp-media-content p { margin: 0 0 14px; }
.hdp-media-content ul { margin: 0; padding-left: 24px; }
.hdp-media-content li { margin-bottom: 6px; }

/* === Gallery (a-propos): 3 columns, cropped like the original is-cropped gallery === */
.hdp-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 32px 0;
}

@media (max-width: 639px) {
	.hdp-gallery { grid-template-columns: repeat(2, 1fr); }
}

.hdp-gallery img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

/* === Cards (prestations): ONE bordered card per section, items listed inside === */
.hdp-card {
	border: 1px solid var(--gris-carte);
	border-radius: 4px;
	padding: 20px 24px;
	margin-bottom: 20px;
}

.hdp-card ul {
	margin: 0;
	padding-left: 26px;
}

.hdp-card li {
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 10px;
}

.hdp-card li:last-child { margin-bottom: 0; }

/* === Contact page: two columns === */
.hdp-contact-grid {
	display: grid;
	gap: 40px;
	margin: 8px 0 40px;
}

@media (min-width: 800px) {
	.hdp-contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.hdp-contact-card {
	background-color: var(--fond-doux);
	border-radius: 8px;
	padding: 24px;
	align-self: start;
}

.hdp-contact-card h2 { font-size: 26px; margin-bottom: 14px; }
.hdp-contact-card address { font-style: normal; line-height: 1.9; }
.hdp-contact-card a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--bleu-maupas); text-decoration-thickness: 2px; }

.hdp-contact-form { display: grid; gap: 16px; }

.hdp-contact-form label {
	display: block;
	font-size: 16px;
}

.hdp-contact-form input,
.hdp-contact-form textarea {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	background-color: #fff;
	border: 1px solid var(--gris-carte);
	border-radius: 4px;
	color: var(--encre);
	font-family: var(--font);
	font-size: 17px;
	box-sizing: border-box;
}

.hdp-contact-form input:focus,
.hdp-contact-form textarea:focus {
	outline: 2px solid var(--bleu-maupas);
	outline-offset: 1px;
}

.hdp-contact-form textarea { resize: vertical; min-height: 180px; }

.hdp-form-success {
	background-color: var(--bleu-maupas);
	color: #000;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 0;
}

/* === Actualités === */
.hdp-news-item { border-bottom: 1px solid var(--bord); padding: 20px 0; }
.hdp-news-item:last-child { border-bottom: none; }
.hdp-news-item h2 { font-size: 24px; margin: 0 0 6px; }
.hdp-news-date { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.hdp-news-summary { margin: 0; color: var(--muted); }

/* === Footer: separator + contact block (like the original template part) === */
.hdp-footer {
	border-top: 1px solid var(--bord);
	margin-top: 64px;
	padding: 32px 0 48px;
}

.hdp-footer-inner {
	max-width: 650px;
	margin: 0 auto;
	padding: 0 20px;
	font-size: 16px;
	line-height: 1.9;
	color: var(--encre);
}

.hdp-footer a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--bleu-maupas); text-decoration-thickness: 2px; }
.hdp-footer address { font-style: normal; }
.hdp-footer-copy { margin-top: 20px; font-size: 14px; color: var(--muted); }
