/*
Theme Name: Payart
Description: Thème sur mesure de l'entreprise Payart, plombier-chauffagiste à Rennes depuis 1947. Net, lisible et accessible.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: payart
License: GPL-2.0-or-later
Polices : Manrope et Atkinson Hyperlegible Next (SIL Open Font License 1.1).
*/

/* ---------- Polices (auto-hébergées) ---------- */
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("assets/fonts/atkinson-next.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("assets/fonts/atkinson-next-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Manrope";
	src: url("assets/fonts/manrope.woff2") format("woff2");
	font-weight: 500 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Repères ---------- */
:root {
	--navy: #0a2540;
	--blue: #0a6591;
	--blue-tint: #e6f1f7;
	--accent: #d4420f;
	--accent-text: #c93d0c;
	--accent-strong: #b8370a;
	--accent-tint: #fdece6;
	--accent-light: #ff9a70;
	--ink: #1d2b36;
	--muted: #51606d;
	--bg: #ffffff;
	--bg-alt: #f3f6f9;
	--line: #dfe5ea;
	--line-strong: #76848f;
	--on-dark: #ffffff;
	--on-dark-muted: #c5d3df;

	--font-text: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-title: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 73rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--space-section: clamp(3.5rem, 8vw, 6.5rem);
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(10, 37, 64, .05), 0 12px 32px rgba(10, 37, 64, .09);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.65;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img, picture { display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-title);
	font-weight: 800;
	line-height: 1.12;
	color: var(--navy);
	margin: 0 0 .6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
h4 { font-size: 1.125rem; font-weight: 700; }

p, ul, ol { margin: 0 0 1.1em; }

a {
	color: var(--blue);
	text-decoration: underline;
	text-decoration-thickness: .08em;
	text-underline-offset: .18em;
}
a:hover { color: var(--accent-text); text-decoration-thickness: .14em; }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 3px;
	border-radius: 4px;
}
main:focus { outline: none; }

::selection { background: var(--navy); color: #fff; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -5rem;
	z-index: 100;
	padding: .75rem 1.1rem;
	background: #fff;
	color: var(--navy);
	font-weight: 700;
	border: 2px solid var(--navy);
	border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; }

/* Surtitre : petite pastille */
.kicker {
	display: inline-block;
	margin: 0 0 1.1rem;
	padding: .3rem .85rem;
	background: var(--accent-tint);
	color: var(--accent-strong);
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
}

.lead { font-size: 1.25rem; line-height: 1.6; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 3.25rem;
	padding: .75rem 1.6rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-title);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { display: flex; width: 100%; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-weight: 700;
}
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Bandeau supérieur ---------- */
.topbar {
	background: var(--navy);
	color: var(--on-dark-muted);
	font-size: .95rem;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 2.75rem;
}
.topbar p { margin: 0; }
.topbar-hours, .topbar-phone {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}
.topbar-phone {
	min-height: 2.75rem;
	color: #fff;
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	white-space: nowrap;
}
.topbar-phone:hover { color: var(--accent-light); text-decoration: underline; }
.topbar :focus-visible { outline-color: #fff; }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: .75rem 2rem;
	padding-block: 1rem;
}

.brand {
	display: inline-flex;
	flex-direction: column;
	gap: .15rem;
	color: var(--navy);
	text-decoration: none;
}
a.brand:hover { color: var(--navy); }
.brand-name {
	font-family: var(--font-title);
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.045em;
}
.brand-name::after { content: "."; color: var(--accent); }
.brand-line { font-size: .86rem; color: var(--muted); line-height: 1.3; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 4.5rem; width: auto; }

.site-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0; padding: 0;
	list-style: none;
}
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .4rem .9rem;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: background-color .15s, color .15s;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--navy); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-strong); }

.nav-toggle {
	display: none;
	align-items: center;
	gap: .5rem;
	min-height: 2.75rem;
	padding: .4rem 1rem;
	background: #fff;
	color: var(--navy);
	border: 2px solid var(--line-strong);
	border-radius: 999px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.nav-toggle span { display: inline-flex; }
.nav-toggle-close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex !important; }

@media (max-width: 61.99rem) {
	.js .nav-toggle { display: inline-flex; }
	.site-nav { flex-basis: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: block; }
	.site-nav .menu { flex-direction: column; gap: .25rem; padding-top: .5rem; border-top: 1px solid var(--line); }
	.site-nav a { display: flex; min-height: 3.25rem; border-radius: var(--radius-sm); }
	.topbar-hours span { font-size: .85rem; }
}
@media (max-width: 34rem) {
	.topbar-hours .icon { display: none; }
	.brand-name { font-size: 1.7rem; }
	.brand-line { font-size: .78rem; }
}

/* ---------- Accueil : ouverture ---------- */
.hero {
	background: linear-gradient(180deg, var(--accent-tint) 0%, #fff 100%);
	padding-block: clamp(2.5rem, 6vw, 5.5rem);
	overflow-x: clip;
}
.hero-grid {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: center;
}
.hero h1 { margin-bottom: .5em; }
.hero h1 .hl { color: var(--accent-text); }
.hero .kicker { background: #fff; }
.hero .lead { max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-media { position: relative; margin-bottom: 1.75rem; }
.hero-media::before {
	content: "";
	position: absolute;
	inset: .75rem -.75rem -.75rem .75rem;
	background: var(--accent);
	border-radius: 24px;
}
.hero-media picture { position: relative; }
.hero-media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: var(--shadow);
}
.hero-badge {
	position: absolute;
	left: 1rem; bottom: -1.75rem;
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0;
	padding: .9rem 1.25rem;
	background: var(--navy);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	line-height: 1.3;
}
.hero-badge strong {
	font-family: var(--font-title);
	font-size: 2.1rem;
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
	color: var(--accent-light);
}
.hero-badge span { font-size: .95rem; font-weight: 600; color: #fff; }

@media (min-width: 60rem) {
	.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
	.hero-badge { left: -1.5rem; }
	.hero-media::before { inset: 1.25rem -1.25rem -1.25rem 1.25rem; }
}
@media (max-width: 34rem) {
	.hero-actions .btn { width: 100%; }
	.hero-media img, .hero-media::before { border-radius: var(--radius); }
}

/* ---------- Accueil : repères ---------- */
.facts { background: #fff; padding-block: clamp(1rem, 3vw, 2rem); }
.facts-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0; padding: 0;
	list-style: none;
}
.facts-list li {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.25rem 1.25rem 1.35rem;
	background: var(--bg-alt);
	border-radius: var(--radius);
}
.facts-list strong {
	font-family: var(--font-title);
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
	color: var(--navy);
}
.facts-list span { font-size: .98rem; color: var(--muted); line-height: 1.4; }
.facts-list sup { line-height: 0; }
.facts-list li:first-child { background: var(--accent); }
.facts-list li:first-child strong, .facts-list li:first-child span { color: #fff; }
.facts-list li:nth-child(2) { background: var(--accent-tint); }
@media (min-width: 56rem) {
	.facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > :last-child { margin-bottom: 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { background: rgba(255, 255, 255, .12); color: #fff; }
.section-dark a { color: #fff; }
.section-dark a:hover { color: var(--accent-light); }
.section-dark :focus-visible { outline-color: #fff; }
.section-dark p { color: var(--on-dark-muted); }

/* Cartes des métiers */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
	gap: 1.25rem;
	margin: 0; padding: 0;
	list-style: none;
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.75rem 1.5rem 1.5rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-top: 4px solid var(--accent);
	transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover, .card:focus-within { border-color: transparent; border-top-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem; height: 3.5rem;
	margin-bottom: 1.25rem;
	background: var(--accent-tint);
	color: var(--accent-strong);
	border-radius: 14px;
	transition: background-color .15s, color .15s;
}
.card:hover .card-icon, .card:focus-within .card-icon { background: var(--accent); color: #fff; }
.card h3 { margin-bottom: .5rem; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card h3 a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.card p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.card-more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin-top: auto;
	color: var(--accent-text);
	font-weight: 700;
}
.card-more .icon { transition: transform .15s; }
.card:hover .card-more .icon { transform: translateX(3px); }

/* Histoire */
.history-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); }
.history-grid .section-head { margin-bottom: 0; }
@media (min-width: 60rem) {
	.history-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
	.history-grid .section-head { position: sticky; top: 2rem; }
}
.timeline {
	margin: 0; padding: 0;
	list-style: none;
	border-left: 2px solid rgba(255, 255, 255, .22);
}
.timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 4.8rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0 0 2rem 1.75rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
	content: "";
	position: absolute;
	left: -8px; top: .45rem;
	width: 14px; height: 14px;
	background: var(--accent-light);
	border: 3px solid var(--navy);
	border-radius: 50%;
}
.timeline-year {
	font-family: var(--font-title);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.25;
	color: var(--accent-light);
}
.timeline h3 { margin: .15rem 0 .3rem; font-size: 1.2rem; }
.timeline p { margin: 0; }

/* Rénovation : avant / après */
.reno-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .reno-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.checks { margin: 1.5rem 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: .5rem 0 .5rem 2.5rem; }
.checks li::before {
	content: "";
	position: absolute;
	left: 0; top: .6rem;
	width: 1.6rem; height: 1.6rem;
	background: var(--accent);
	border-radius: 50%;
}
.checks li::after {
	content: "";
	position: absolute;
	left: .5rem; top: 1.08rem;
	width: .62rem; height: .34rem;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg);
}

.before-after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.before-after figure { position: relative; margin: 0; }
.before-after figure:last-child { margin-top: 2.5rem; }
.before-after img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.before-after figcaption { position: absolute; left: .75rem; top: .75rem; margin: 0; }
.tag {
	display: inline-block;
	padding: .25rem .8rem;
	background: #fff;
	color: var(--navy);
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 700;
	line-height: 1.4;
}
.tag-accent { background: var(--accent); color: #fff; }

/* Secteur */
.zone-grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.zone-grid .section-head { margin-bottom: 0; }
@media (min-width: 60rem) { .zone-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.chips li {
	padding: .7rem 1.4rem;
	font-family: var(--font-title);
	font-size: 1.15rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 600;
	color: var(--navy);
	box-shadow: 0 1px 2px rgba(10, 37, 64, .05);
}
.chips li::before {
	content: "";
	display: inline-block;
	width: .55rem; height: .55rem;
	margin-right: .6rem;
	background: var(--accent);
	border-radius: 50%;
	vertical-align: .1em;
}
.chips .chip-more::before { display: none; }
.chips .chip-more { background: transparent; border-color: transparent; box-shadow: none; font-weight: 400; color: var(--muted); }

/* ---------- Appel à contact ---------- */
.cta-band { background: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: var(--wrap);
	padding: clamp(1.75rem, 5vw, 3.25rem);
	background: var(--accent);
	color: #fff;
	border-radius: 24px;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.2rem; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band :focus-visible { outline-color: #fff; }
@media (max-width: 78rem) { .cta-inner { margin-inline: var(--gutter); width: auto; border-radius: var(--radius); } }

/* ---------- Pages intérieures ---------- */
.page-head { background: var(--navy); color: #fff; padding-block: clamp(2rem, 5vw, 3.75rem); }
.page-head h1 { margin: 0; color: #fff; }
.page-head h1::after {
	content: "";
	display: block;
	width: 4.5rem; height: 6px;
	margin-top: 1.1rem;
	background: var(--accent-light);
	border-radius: 999px;
}
.page-head a { color: #fff; }
.page-head a:hover { color: var(--accent-light); }
.page-head :focus-visible { outline-color: #fff; }

.breadcrumb { margin-bottom: 1rem; font-size: .95rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--on-dark-muted); }
.breadcrumb [aria-current] { color: var(--on-dark-muted); }

.page-grid { display: grid; gap: 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 60rem) {
	.page-grid { grid-template-columns: minmax(0, 1fr) 21.5rem; gap: 4rem; align-items: start; }
	.aside { position: sticky; top: 1.5rem; }
}
.page-narrow { max-width: calc(46rem + 2 * var(--gutter)); padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { border-radius: var(--radius); }

.entry-content { max-width: 44rem; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content h2:empty, .entry-content h3:empty, .entry-content p:empty { display: none; }
.entry-content ul, .entry-content ol { padding-left: 0; list-style: none; }
.entry-content ol { counter-reset: etape; }
.entry-content li { position: relative; padding-left: 1.6rem; margin-bottom: .6em; }
.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: .1rem; top: .58em;
	width: .5rem; height: .5rem;
	background: var(--accent);
	border-radius: 50%;
}
.entry-content ol > li { counter-increment: etape; padding-left: 2rem; }
.entry-content ol > li::before { content: counter(etape) "."; position: absolute; left: 0; font-weight: 700; color: var(--accent-text); }
.entry-content strong { color: var(--navy); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 1.25rem 1.5rem; background: var(--bg-alt); border-radius: var(--radius); font-size: 1.2rem; }
.entry-content blockquote > :last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
.entry-content th, .entry-content td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { color: var(--navy); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.entry-content sup { line-height: 0; }

.alignleft { float: left; margin: .4rem 1.75rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.75rem; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; margin-top: .4rem; }
.wp-caption img { width: 100%; }
.wp-caption-text, .wp-element-caption, figcaption { margin: .5rem 0 0; font-size: .95rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 34rem) {
	.alignleft, .alignright { float: none; margin: 1.25rem 0; }
}

/* Encadré latéral */
.aside-card {
	padding: 1.75rem 1.5rem;
	background: var(--bg-alt);
	border-top: 5px solid var(--accent);
	border-radius: var(--radius);
}
.aside-card h2, .aside-nav h2 { font-size: 1.35rem; }
.aside-card > p { font-size: 1.02rem; color: var(--muted); }
.aside-list, .footer-list { margin: 0 0 1.4rem; padding: 0; list-style: none; }
.aside-list li, .footer-list li { display: flex; align-items: flex-start; gap: .7rem; padding: .45rem 0; line-height: 1.45; }
.aside-list .icon, .footer-list .icon { margin-top: .2rem; color: var(--accent-text); }
.aside-list a { font-family: var(--font-title); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.aside-card > :last-child { margin-bottom: 0; }

.aside-nav { margin-top: 2rem; padding-inline: .25rem; }
.aside-nav ul { margin: 0; padding: 0; list-style: none; }
.aside-nav li + li { border-top: 1px solid var(--line); }
.aside-nav a { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; padding: .5rem 0; color: var(--navy); font-weight: 600; text-decoration: none; }
.aside-nav a:hover { color: var(--blue); text-decoration: underline; }
.aside-nav .icon { color: var(--accent-text); }

/* Listes (recherche, 404) */
.post-list, .link-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.post-list li { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.link-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Formulaires (Contact Form 7) ---------- */
.wpcf7 { margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--bg-alt); border-radius: var(--radius); }
.wpcf7 form > div, .wpcf7 form > p { margin: 0 0 1.25rem; }
.wpcf7 label { display: block; font-weight: 700; color: var(--navy); }
.wpcf7 .hint { font-weight: 400; color: var(--muted); }
.wpcf7 label + br { display: none; }
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7-form-control-wrap { display: block; margin-top: .4rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], select, textarea {
	display: block;
	width: 100%;
	min-height: 3.1rem;
	padding: .7rem .95rem;
	background: #fff;
	color: var(--ink);
	border: 2px solid var(--line-strong);
	border-radius: var(--radius-sm);
	font: inherit;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--navy); }
.wpcf7 input[type="submit"], button[type="submit"], input[type="submit"] {
	display: inline-flex;
	min-height: 3.25rem;
	padding: .75rem 1.8rem;
	background: var(--accent);
	color: #fff;
	border: 2px solid var(--accent);
	border-radius: 999px;
	font-family: var(--font-title);
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--navy); border-color: var(--navy); }
.wpcf7-not-valid { border-color: #a4161a !important; }
.wpcf7-not-valid-tip { display: block; margin-top: .35rem; color: #a4161a; font-size: 1rem; font-weight: 700; }
.wpcf7 form .wpcf7-response-output { margin: 1rem 0 0; padding: .9rem 1.1rem; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #1d6b3a; background: #eaf5ee; color: #14502b; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #a4161a; background: #fbeceb; color: #7d1014; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: 1.02rem; border-top: 6px solid var(--accent); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer :focus-visible { outline-color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1.2fr 1fr; gap: 3rem; } }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-name::after { color: var(--accent-light); }
.site-footer .brand-line { color: var(--on-dark-muted); }
.footer-about p { max-width: 24rem; margin: 0; }
.footer-title { margin-bottom: 1rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.footer-list { margin-bottom: 0; }
.footer-list .icon { color: var(--accent-light); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-legal a { display: inline-flex; align-items: center; min-height: 2.5rem; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem 2rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: .95rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }

/* ---------- Préférences et impression ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.card:hover, .card:focus-within, .btn:active { transform: none; }
}
@media (forced-colors: active) {
	.btn, .card, .aside-card, .chips li, .facts-list li, .hero-badge, .cta-inner { border: 2px solid; }
}
@media print {
	.topbar, .site-nav, .nav-toggle, .cta-band, .aside-nav, .skip-link { display: none !important; }
	body { background: #fff; font-size: 11pt; }
	.section-dark, .site-footer { background: #fff; color: #000; }
	.section-dark h2, .section-dark h3, .section-dark p, .site-footer a { color: #000; }
}
