/*
Theme Name: Animal Plus
Theme URI: https://animal-plus.fr
Author: Animal Plus
Description: Thème sur mesure de l'association Animal Plus : protection, recueil et adoption des animaux.
Version: 1.0.1
Requires PHP: 8.0
Text Domain: animalplus
*/

:root {
	--ap-green: #17372B;
	--ap-green-deep: #10261E;
	--ap-accent: #B5501A;
	--ap-accent-soft: #F2A66B;
	--ap-ink: #1E2420;
	--ap-text: #3D4440;
	--ap-muted: #5A615C;
	--ap-sand: #F3F1EC;
	--ap-peach: #FBEDE3;
	--ap-line: #E4E1D9;
	--ap-photo: #CFC9BC;
	--ap-display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
	--ap-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
	--ap-wrap: 1280px;
	--ap-radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #FFFFFF;
	color: var(--ap-ink);
	font-family: var(--ap-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-green); }
a:hover { color: var(--ap-accent); }
h1, h2, h3, h4 { font-family: var(--ap-display); color: var(--ap-green); letter-spacing: -0.02em; line-height: 1.1; }
:focus-visible { outline: 3px solid var(--ap-accent); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; }

.ap-wrap { max-width: var(--ap-wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.ap-section { padding-top: 88px; padding-bottom: 88px; }
.ap-eyebrow { display: block; font-weight: 700; color: var(--ap-accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; margin-bottom: 12px; }
.ap-h2 { margin: 0; font-weight: 800; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.08; }
.ap-head { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.ap-head > div { max-width: 660px; }
.ap-more { font-weight: 700; text-decoration: none; }
.ap-more:hover { text-decoration: underline; }

.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.ap-btn--dark { background: var(--ap-green); color: #fff; }
.ap-btn--dark:hover { background: var(--ap-green-deep); color: #fff; }
.ap-btn--accent { background: var(--ap-accent); color: #fff; }
.ap-btn--accent:hover { background: #973F12; color: #fff; }
.ap-btn--ghost { border-color: var(--ap-green); color: var(--ap-green); background: transparent; }
.ap-btn--ghost:hover { background: var(--ap-green); color: #fff; }
.ap-btn--light { background: #fff; color: var(--ap-green); }

/* Top bar & header */
.ap-topbar { background: var(--ap-green); color: #E9EFEA; font-size: 14px; }
.ap-topbar .ap-wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.ap-topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.ap-topbar a:hover { color: var(--ap-accent-soft); }

.ap-header { background: #fff; border-bottom: 1px solid var(--ap-line); position: sticky; top: 0; z-index: 50; }
.ap-header .ap-wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.ap-brand { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ap-green); }
.ap-brand:hover { color: var(--ap-green); }
.ap-brand__name { display: block; font-family: var(--ap-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.05; }
.ap-brand__tag { display: block; font-size: 13px; color: var(--ap-muted); line-height: 1.2; }
.ap-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.ap-nav a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.ap-nav a:hover, .ap-nav .current-menu-item > a, .ap-nav .current-post-ancestor > a, .ap-nav .current-category-ancestor > a { border-bottom-color: var(--ap-accent); color: var(--ap-green); }
.ap-menu-toggle { display: none; background: none; border: 2px solid var(--ap-green); border-radius: 10px; min-width: 48px; min-height: 44px; color: var(--ap-green); cursor: pointer; }

/* Hero */
.ap-hero .ap-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 52px; padding-bottom: 72px; }
.ap-hero__text { flex: 1 1 460px; min-width: 0; }
.ap-hero h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.ap-hero p { margin: 0 0 28px; font-size: 20px; color: var(--ap-text); max-width: 34rem; }
.ap-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.ap-hero__media { flex: 1 1 520px; min-width: 0; position: relative; }
.ap-hero__media img { width: 100%; height: 520px; object-fit: cover; border-radius: 28px; }
.ap-hero__badge { position: absolute; left: -24px; bottom: 36px; background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 12px 32px rgba(23,55,43,.16); display: flex; gap: 14px; align-items: center; max-width: 300px; font-size: 15px; line-height: 1.35; }
.ap-hero__badge strong { display: block; font-size: 17px; color: var(--ap-green); }
.ap-icon-circle { width: 48px; height: 48px; border-radius: 999px; background: var(--ap-sand); display: inline-flex; align-items: center; justify-content: center; color: var(--ap-green); flex-shrink: 0; }

/* Pillars */
.ap-pillars { background: var(--ap-sand); }
.ap-pillars .ap-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.ap-pillar { display: flex; gap: 14px; align-items: flex-start; }
.ap-pillar strong { display: block; font-family: var(--ap-display); font-size: 22px; color: var(--ap-green); line-height: 1.2; }
.ap-pillar span { color: var(--ap-text); font-size: 16px; }
.ap-pillar .ap-icon-circle { background: #fff; }

/* Cards */
.ap-grid { display: grid; gap: 28px; }
.ap-grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ap-grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ap-card { display: flex; flex-direction: column; gap: 12px; }
.ap-card__img { display: block; border-radius: var(--ap-radius); overflow: hidden; background: var(--ap-photo); aspect-ratio: 3 / 2; }
.ap-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ap-card:hover .ap-card__img img { transform: scale(1.03); }
.ap-card h3 { margin: 0; font-size: 23px; line-height: 1.2; }
.ap-card h3 a { text-decoration: none; }
.ap-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ap-card p { margin: 0; color: var(--ap-text); }
.ap-cat { font-size: 13px; font-weight: 700; color: var(--ap-accent); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.ap-meta { font-size: 14px; color: var(--ap-muted); }

/* Dark band */
.ap-dark { background: var(--ap-green); color: #E9EFEA; }
.ap-dark .ap-h2 { color: #fff; }
.ap-dark .ap-eyebrow { color: var(--ap-accent-soft); }
.ap-dark .ap-more { color: #fff; }
.ap-dark .ap-tile { background: #fff; color: var(--ap-ink); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.ap-tile .ap-card__img { border-radius: 0; }
.ap-tile__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ap-tile h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.ap-tile h3 a { text-decoration: none; }
.ap-tile p { margin: 0; font-size: 15px; color: var(--ap-text); }
.ap-tile .ap-more { margin-top: auto; padding-top: 6px; font-size: 15px; }

/* Report block */
.ap-report { background: var(--ap-peach); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; }
.ap-report__text { flex: 1 1 480px; min-width: 0; }
.ap-report h2 { margin: 0 0 12px; font-weight: 800; font-size: clamp(28px, 3vw, 38px); }
.ap-report p { margin: 0; font-size: 18px; color: var(--ap-text); }
.ap-report__cta { flex: 0 1 360px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.ap-report__cta .ap-btn { border-radius: 14px; min-height: 58px; }
.ap-report__cta span { font-size: 15px; color: var(--ap-text); }

/* Act */
.ap-sand { background: var(--ap-sand); }
.ap-act { background: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.ap-act h3 { margin: 0; font-size: 24px; }
.ap-act p { margin: 0; color: var(--ap-text); }
.ap-act .ap-more { margin-top: auto; }

/* Footer */
.ap-footer { background: var(--ap-green-deep); color: #C9D3CC; font-size: 15px; }
.ap-footer a { color: #C9D3CC; text-decoration: none; }
.ap-footer a:hover { color: #fff; text-decoration: underline; }
.ap-footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding-top: 64px; padding-bottom: 40px; }
.ap-footer__about { flex: 1 1 280px; max-width: 380px; }
.ap-footer__about .ap-brand__name { color: #fff; margin-bottom: 10px; }
.ap-footer h2 { font-family: var(--ap-body); font-size: 15px; letter-spacing: 0; color: #fff; margin: 0 0 12px; }
.ap-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ap-footer__bottom { border-top: 1px solid #2A4639; padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.ap-footer__bottom ul { flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }

/* Page hero (archives, pages) */
.ap-pagehead { background: var(--ap-sand); }
.ap-pagehead .ap-wrap { padding-top: 56px; padding-bottom: 56px; }
.ap-pagehead h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4vw, 54px); }
.ap-pagehead p { margin: 14px 0 0; font-size: 19px; color: var(--ap-text); max-width: 46rem; }
.ap-crumbs { font-size: 14px; color: var(--ap-muted); margin-bottom: 14px; }
.ap-crumbs a { color: var(--ap-muted); }

/* Single */
.ap-article-head .ap-wrap { padding-top: 48px; padding-bottom: 32px; max-width: 980px; }
.ap-article-head h1 { margin: 10px 0 18px; font-weight: 800; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; }
.ap-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; color: var(--ap-muted); font-size: 15px; }
.ap-byline img { border-radius: 999px; width: 36px; height: 36px; }
.ap-byline strong { color: var(--ap-ink); }
.ap-article-cover { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.ap-article-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 24px; }
.ap-article-cover figcaption { font-size: 13px; color: var(--ap-muted); margin-top: 8px; }

.ap-prose { max-width: 740px; margin: 0 auto; padding: 48px 32px 24px; font-size: 19px; line-height: 1.72; color: #262C28; }
.ap-prose p, .ap-prose ul, .ap-prose ol, .ap-prose figure { margin: 0 0 1.1em; }
.ap-prose > p:first-child { font-size: 21px; line-height: 1.6; }
.ap-prose h2 { font-size: 31px; margin: 1.8em 0 .5em; }
.ap-prose h3 { font-size: 23px; margin: 1.5em 0 .45em; }
.ap-prose ul, .ap-prose ol { padding-left: 1.3em; }
.ap-prose li + li { margin-top: .45em; }
.ap-prose li::marker { color: var(--ap-accent); }
.ap-prose blockquote { margin: 1.8em 0; padding: 26px 30px; background: var(--ap-sand); border-radius: 16px; font-size: 18px; }
.ap-prose blockquote p + p { margin-top: .8em; }
.ap-prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ap-prose img { border-radius: 14px; }
.ap-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.ap-prose th, .ap-prose td { border-bottom: 1px solid var(--ap-line); padding: 10px 12px; text-align: left; }
.ap-prose #toc_container { background: var(--ap-sand); border: 0; border-radius: 14px; padding: 18px 22px; width: 100% !important; font-size: 16px; }

.ap-tags { max-width: 740px; margin: 0 auto; padding: 8px 32px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-tags a { background: var(--ap-sand); padding: 6px 14px; border-radius: 999px; font-size: 14px; text-decoration: none; }
.ap-author { max-width: 740px; margin: 40px auto 0; padding: 0 32px; }
.ap-author__box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border: 1px solid var(--ap-line); border-radius: 18px; }
.ap-author__box img { border-radius: 999px; flex-shrink: 0; }
.ap-author__box strong { font-family: var(--ap-display); font-size: 19px; color: var(--ap-green); }
.ap-author__box p { margin: 4px 0 0; font-size: 15px; color: var(--ap-text); }

/* Lists */
.ap-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 56px; }
.ap-pagination .page-numbers { min-width: 46px; min-height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--ap-line); text-decoration: none; font-weight: 600; }
.ap-pagination .current { background: var(--ap-green); color: #fff; border-color: var(--ap-green); }
.ap-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ap-chips a { padding: 9px 18px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ap-line); }
.ap-chips a:hover, .ap-chips a.is-active { background: var(--ap-green); color: #fff; border-color: var(--ap-green); }

.ap-search { display: flex; gap: 8px; flex-wrap: wrap; max-width: 520px; }
.ap-search input[type=search] { flex: 1 1 220px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ap-line); font: inherit; }
.ap-search button { min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--ap-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 900px) {
	.ap-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.ap-nav { display: none; width: 100%; }
	.ap-nav.is-open { display: block; }
	.ap-nav ul { flex-direction: column; gap: 0; }
	.ap-nav a { padding: 12px 0; display: block; border-bottom: 1px solid var(--ap-line); }
	.ap-header__cta { display: none; }
	.ap-header { position: static; }
}
@media (max-width: 640px) {
	.ap-wrap { padding-left: 16px; padding-right: 16px; }
	.ap-section { padding-top: 60px; padding-bottom: 60px; }
	.ap-hero__media img { height: 340px; }
	.ap-hero__badge { left: 12px; bottom: 12px; }
	.ap-report { padding: 30px 22px; }
	.ap-prose { padding: 32px 16px 16px; font-size: 18px; }
	.ap-article-cover { padding: 0 16px; }
	.ap-tags, .ap-author { padding-left: 16px; padding-right: 16px; }
	.ap-topbar__claim { display: none; }
}
