:root {
	--pc-ink: #102a2a;
	--pc-ink-soft: #24413f;
	--pc-green: #087a57;
	--pc-mint: #61e6b3;
	--pc-sky: #52c7e8;
	--pc-lime: #d6f36a;
	--pc-cream: #f6f8f2;
	--pc-mist: #e6efeb;
	--pc-muted: #5d716e;
	--pc-radius-sm: 10px;
	--pc-radius-md: 16px;
	--pc-radius-lg: 24px;
	--pc-shadow-card: 0 12px 30px rgb(16 42 42 / 10%);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--pc-lime);
	outline-offset: 3px;
}

.pc-site-header {
	position: relative;
	z-index: 10;
}

.pc-header-logo {
	line-height: 0;
	margin: 0;
}

.pc-header-logo img {
	display: block;
	height: auto;
	max-width: min(238px, 58vw);
}

.pc-site-header a {
	text-decoration: none;
}

.pc-hero {
	background-image:
		linear-gradient(90deg, rgb(16 42 42 / 88%) 0%, rgb(16 42 42 / 70%) 42%, rgb(16 42 42 / 22%) 100%),
		url('/wp-content/uploads/2024/05/bandeau-pistescyclables.webp');
	background-position: center;
	background-size: cover;
	border-radius: var(--pc-radius-lg);
	min-height: clamp(28rem, 58vw, 40rem);
	overflow: hidden;
	position: relative;
}

.pc-footer-ad {
	background: #f6f8f1;
	padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 4vw, 2.5rem);
}

.pc-footer-ad__inner {
	margin-inline: auto;
	max-width: 728px;
	min-height: 0;
	text-align: center;
}

.pc-footer-ad .adsbygoogle {
	margin-inline: auto;
}

.pc-hero::after {
	background: linear-gradient(120deg, transparent 58%, rgb(97 230 179 / 18%));
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.pc-hero > * {
	position: relative;
	z-index: 1;
}

.pc-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pc-card {
	background: #fff;
	border: 1px solid var(--pc-mist);
	border-radius: var(--pc-radius-md);
	box-shadow: var(--pc-shadow-card);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.pc-national-map-row {
	align-items: stretch;
}

.pc-national-metrics {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pc-metric-card {
	background: #102a2a;
	border-radius: 20px;
	color: #fff;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.pc-metric-card .pc-eyebrow {
	color: #61e6b3;
	margin-bottom: .5rem;
}

.pc-metric-card h3 {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1;
	margin: 0 0 .75rem;
}

.pc-metric-card h3 span {
	color: #d6f36a;
	font-size: .45em;
}

.pc-metric-card p:last-child {
	color: #dcebe5;
	margin-bottom: 0;
}

@media (max-width: 781px) {
	.pc-national-metrics {
		margin-top: 1rem;
	}
}

.pc-note {
	background: color-mix(in srgb, var(--pc-lime) 24%, white);
	border-left: 5px solid var(--pc-green);
	border-radius: 0 var(--pc-radius-sm) var(--pc-radius-sm) 0;
	padding: 1rem 1.25rem;
}

.pc-territory-featured-image {
	box-shadow: 0 18px 45px rgb(16 42 42 / 12%);
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
	overflow: hidden;
}

.pc-territory-featured-image img {
	display: block;
	object-fit: cover;
	width: 100%;
}

/* Fiches communes : hiérarchie longue et classes éditoriales réutilisables. */
.single-pc_commune .wp-block-post-content > h2 {
	border-top: 1px solid var(--pc-mist);
	color: var(--pc-ink);
	margin-top: clamp(3rem, 7vw, 5.5rem);
	padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.single-pc_commune .wp-block-post-content > h2:first-child {
	border-top: 0;
	margin-top: clamp(2rem, 4vw, 3.5rem);
	padding-top: 0;
}

.single-pc_commune .wp-block-post-content h3 {
	color: var(--pc-green);
	margin-top: clamp(2rem, 4vw, 3rem);
}

.single-pc_commune .wp-block-post-content > :where(p, ul, ol) {
	max-width: 78ch;
}

.single-pc_commune .wp-block-post-content :where(ul, ol) {
	padding-left: 1.35em;
}

.single-pc_commune .wp-block-post-content li + li {
	margin-top: .55rem;
}

.single-pc_commune .wp-block-post-content a:not(.wp-block-button__link) {
	text-decoration-color: color-mix(in srgb, var(--pc-green) 55%, transparent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .16em;
}

/* Encadré d'information, conseil pratique ou vigilance terrain. */
.pc-callout {
	background: #fff;
	border: 1px solid var(--pc-mist);
	border-left: 5px solid var(--pc-green);
	border-radius: 0 var(--pc-radius-md) var(--pc-radius-md) 0;
	box-shadow: 0 8px 20px rgb(16 42 42 / 7%);
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.pc-callout > :first-child,
.pc-resource-list > :first-child,
.pc-source > :first-child { margin-top: 0; }
.pc-callout > :last-child,
.pc-resource-list > :last-child,
.pc-source > :last-child { margin-bottom: 0; }

.pc-callout--nature {
	background: color-mix(in srgb, var(--pc-mint) 16%, white);
	border-left-color: var(--pc-green);
}

.pc-callout--vigilance {
	background: color-mix(in srgb, var(--pc-lime) 28%, white);
	border-left-color: #819d10;
}

/* Liste de liens utiles : cartes, schémas, services et associations. */
.pc-resource-list {
	background: var(--pc-cream);
	border-radius: var(--pc-radius-md);
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.pc-resource-list :where(ul, ol) { margin-bottom: 0; }

/* Deux à quatre repères courts, à construire avec le bloc Colonnes. */
.pc-fact-grid {
	gap: 1rem;
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pc-fact-grid > .wp-block-column {
	background: var(--pc-ink);
	border-radius: var(--pc-radius-md);
	color: #fff;
	padding: clamp(1.1rem, 2.5vw, 1.5rem);
}

.pc-fact-grid > .wp-block-column > :first-child {
	color: var(--pc-mint);
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin-top: 0;
	text-transform: uppercase;
}

.pc-fact-grid > .wp-block-column > :last-child {
	color: #fff;
	font-size: 1.12rem;
	margin-bottom: 0;
}

/* Source ou réserve méthodologique, discrète mais lisible. */
.pc-source {
	border-left: 3px solid var(--pc-sky);
	color: var(--pc-muted);
	font-size: .92rem;
	margin-block: 1.5rem;
	padding-left: 1rem;
}

/* Escapades : trois propositions souples, utilisables dans toute fiche ville. */
.pc-journey-grid {
	gap: 1rem;
	margin-block: clamp(1.5rem, 4vw, 2.75rem);
}

.pc-journey-card {
	background: #fff;
	border: 1px solid var(--pc-mist);
	border-radius: var(--pc-radius-md);
	box-shadow: 0 10px 24px rgb(16 42 42 / 8%);
	min-height: 100%;
	padding: clamp(1.25rem, 3vw, 1.75rem);
}

.pc-journey-card > :first-child {
	color: var(--pc-green);
	font-family: var(--wp--preset--font-family--display);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	margin-top: 0;
	text-transform: uppercase;
}

.pc-journey-card > :last-child { margin-bottom: 0; }

.pc-journey-card--nive { border-top: 5px solid var(--pc-sky); }
.pc-journey-card--coast { border-top: 5px solid var(--pc-mint); }
.pc-journey-card--hills { border-top: 5px solid var(--pc-lime); }

/* Image éditoriale : une respiration visuelle, pas une bannière publicitaire. */
.pc-commune-cover {
	border-radius: var(--pc-radius-lg);
	box-shadow: var(--pc-shadow-card);
	margin-block: clamp(2rem, 5vw, 4rem);
	overflow: hidden;
}

.pc-commune-cover .wp-block-cover__inner-container {
	max-width: 690px;
	padding: clamp(1.5rem, 4vw, 3rem);
}

.pc-commune-cover .wp-block-cover__inner-container > :last-child { margin-bottom: 0; }

.pc-commune-cover .wp-block-cover__inner-container h2 {
	border: 0;
	color: #fff;
	margin-top: 0;
	padding-top: 0;
}

.pc-commune-cover .wp-block-cover__inner-container p { color: #fff; }

.pc-commune-summary {
	font-size: clamp(1.2rem, 2.2vw, 1.55rem);
	line-height: 1.45;
}

.pc-commune-summary strong { color: var(--pc-green); }

.single-pc_commune .wp-block-details {
	background: var(--pc-cream);
	border-radius: var(--pc-radius-sm);
	margin-block: 1rem;
	padding: 1rem 1.25rem;
}

.single-pc_commune .wp-block-details summary {
	color: var(--pc-ink);
	cursor: pointer;
	font-weight: 750;
}

.single-pc_commune .wp-block-details > :last-child { margin-bottom: 0; }

/* Carte grande, mais avec un couloir de défilement sur ordinateur. */
@media (min-width: 782px) {
	.single-pc_commune .pc-map-shell {
	max-width: 1120px;
	width: calc(100% - clamp(2rem, 7vw, 7rem));
	}
}

.wp-block-post-featured-image,
.wp-block-gallery {
	margin-block: clamp(2rem, 5vw, 4rem);
}

.pc-content-shell {
	padding-inline: clamp(1rem, 4vw, 2rem);
}

.pc-footer {
	margin-top: clamp(4rem, 8vw, 8rem);
}

.pc-home-section {
	margin-block: clamp(3rem, 7vw, 6rem);
}

.pc-home-section > :where(p, h2, h3),
.pc-editorial-page :where(.wp-block-post-content, .pc-editorial-band, .pc-card) > :where(p, ul, ol),
.pc-content-shell > :where(p, .wp-block-post-content) {
	max-width: min(100%, 960px);
}

.pc-home-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pc-home-card .wp-block-post-featured-image {
	margin: calc(clamp(1.25rem, 3vw, 2rem) * -1) calc(clamp(1.25rem, 3vw, 2rem) * -1) 1.5rem;
}

.pc-home-card .wp-block-post-featured-image img {
	border-radius: var(--pc-radius-md) var(--pc-radius-md) 0 0;
}

.pc-home-card .wp-block-post-title a,
.pc-popular h3 a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-home .is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: inherit;
}

.pc-news-row {
	margin-bottom: 1rem;
}

.pc-practical-page {
	padding-bottom: var(--wp--preset--spacing--70);
	padding-top: var(--wp--preset--spacing--70);
}

.pc-practical-hero {
	background:
		linear-gradient(135deg, rgb(16 42 42 / 96%), rgb(8 122 87 / 82%)),
		url('/wp-content/uploads/2024/05/bandeau-pistescyclables.webp') center / cover;
	border-radius: var(--pc-radius-lg);
	color: #fff;
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
	overflow: hidden;
	padding: clamp(2rem, 6vw, 4.5rem);
}

.pc-practical-hero h1,
.pc-practical-hero p {
	color: inherit;
}

.pc-practical-query .wp-block-post-template {
	gap: 1.25rem;
}

.pc-practical-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.pc-practical-card .wp-block-post-featured-image {
	margin: calc(clamp(1.25rem, 3vw, 2rem) * -1) calc(clamp(1.25rem, 3vw, 2rem) * -1) 1.25rem;
}

.pc-practical-card .wp-block-post-featured-image img {
	border-radius: var(--pc-radius-md) var(--pc-radius-md) 0 0;
}

.pc-practical-card .wp-block-post-title a {
	color: var(--pc-ink);
	text-decoration: none;
}

.pc-editorial-page {
	padding-bottom: var(--wp--preset--spacing--70);
}

.pc-editorial-hero {
	background-color: var(--pc-ink);
	background-position: center;
	background-size: cover;
	border-radius: var(--pc-radius-lg);
	color: #fff;
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
	overflow: hidden;
	padding: clamp(2rem, 6vw, 4.5rem);
}

.pc-editorial-hero--welcome {
	background-image:
		linear-gradient(90deg, rgb(16 42 42 / 92%), rgb(16 42 42 / 52%)),
		url('/wp-content/uploads/2024/05/bandeau-pistescyclables.webp');
}

.pc-editorial-hero--contact {
	background-image:
		linear-gradient(90deg, rgb(16 42 42 / 88%), rgb(8 122 87 / 46%)),
		url('/wp-content/uploads/2019/07/contact2.jpg');
}

.pc-editorial-hero--partners {
	background-image:
		linear-gradient(90deg, rgb(16 42 42 / 90%), rgb(8 122 87 / 58%)),
		url('/wp-content/uploads/2020/09/annonceurs-velo.jpg');
}

.pc-editorial-hero--news {
	background-image:
		linear-gradient(90deg, rgb(16 42 42 / 92%), rgb(8 122 87 / 46%)),
		url('/wp-content/uploads/2025/07/piste-cyclable-usagers-scaled-1.jpg');
}

.pc-editorial-hero h1,
.pc-editorial-hero p {
	color: inherit;
}

.pc-editorial-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.pc-editorial-band {
	background: #fff;
	border-left: 6px solid var(--pc-green);
	border-radius: var(--pc-radius-md);
	box-shadow: var(--pc-shadow-card);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.pc-contact-layout,
.pc-partners-layout {
	align-items: stretch;
}

.pc-contact-form {
	background: #fff;
	border: 1px solid var(--pc-mist);
	border-radius: var(--pc-radius-md);
	box-shadow: var(--pc-shadow-card);
	display: grid;
	gap: 1rem;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.pc-contact-form label {
	color: var(--pc-ink);
	display: grid;
	font-weight: 750;
	gap: .4rem;
}

.pc-contact-form input,
.pc-contact-form select,
.pc-contact-form textarea {
	border: 1px solid #cbdad5;
	border-radius: 10px;
	font: inherit;
	padding: .8rem .9rem;
	width: 100%;
}

.pc-contact-form button {
	background: var(--pc-green);
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
	padding: .9rem 1.25rem;
}

.pc-partners-offer {
	border-top: 6px solid var(--pc-green);
}

.pc-partner-example {
	background: #fff;
	border: 1px solid var(--pc-mist);
	border-radius: var(--pc-radius-md);
	box-shadow: var(--pc-shadow-card);
	margin: 0 0 1.25rem;
	padding: 1.25rem;
}

.pc-partner-example img {
	display: block;
	margin: 0 auto;
	max-width: min(260px, 100%);
}

.pc-payment-note {
	background: color-mix(in srgb, var(--pc-lime) 22%, white);
	border-radius: var(--pc-radius-sm);
	padding: 1rem 1.1rem;
}

@media (max-width: 780px) {
	.pc-hero {
		padding: 2rem 1.25rem !important;
	}

	.pc-popular {
		padding: 2rem 1rem !important;
	}

	.pc-editorial-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.pc-breadcrumb { margin: 0 0 1rem; font-size: .9rem; color: var(--wp--preset--color--muted, #55706d); }
.pc-breadcrumb ol { display:flex; flex-wrap:wrap; gap:.35rem; list-style:none; margin:0; padding:0; }
.pc-breadcrumb li:not(:last-child)::after { content:'›'; margin-left:.35rem; color:#8aa09c; }
.pc-breadcrumb a { color:inherit; text-decoration:none; }
.pc-breadcrumb a:hover { text-decoration:underline; }
