/*
Theme Name: Plazn Blog
Theme URI: https://blog.plazn.com
Author: Plazn
Description: Thème sur mesure du blog Plazn : léger, multilingue (Polylang), optimisé pour la lecture et le SEO.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: plazn
*/

/* ---------- Polices (hébergées localement) ---------- */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
	--bg: #FBFAF6;
	--surface: #FFFFFF;
	--ink: #0F1F1A;
	--ink-2: #3E4C47;
	--muted: #5C6B66;
	--line: #E3E7E3;
	--line-2: #CFD6D1;
	--green: #0E3B2E;
	--green-2: #0A2A20;
	--lime: #D9F26B;
	--lime-soft: #EAF7C4;
	--lime-ink: #2F4A0A;
	--on-green: #BFD3CB;
	--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--text: "Geist", "Inter var", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1200px;
	--r-sm: 12px;
	--r-md: 20px;
	--r-lg: 28px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pz-skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.pz-skip:focus { left: 8px; }
.pz-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pz-main { display: block; min-height: 50vh; }

/* ---------- Boutons, pastilles ---------- */
.pz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background-color .15s ease; }
.pz-btn:hover { transform: translateY(-1px); }
.pz-btn--dark { background: var(--green); color: #fff; }
.pz-btn--dark:hover { background: var(--green-2); color: #fff; }
.pz-btn--lime { background: var(--lime); color: var(--green); }
.pz-btn--lime:hover { color: var(--green); background: #CFEA55; }
.pz-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.pz-btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.pz-pill { display: inline-block; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; padding: 5px 12px; border-radius: 999px; }
.pz-pill--lime { background: var(--lime); color: var(--green); }
.pz-eyebrow { display: inline-block; margin: 0 0 20px; background: var(--lime-soft); color: var(--lime-ink); font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.pz-h2 { margin: 0 0 24px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }

/* ---------- En-tête ---------- */
.pz-header { background: var(--bg); }
.pz-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 16px; padding-bottom: 16px; }
.pz-logo { display: inline-flex; }
.pz-logo img { height: 52px; width: auto; display: block; }
.pz-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.pz-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.pz-nav a:hover, .pz-nav a[aria-current] { border-bottom-color: var(--lime); }
.pz-header__actions { display: flex; align-items: center; gap: 14px; }
.pz-lang { display: flex; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; font-size: 13px; font-weight: 600; }
.pz-lang a { text-decoration: none; color: var(--ink-2); padding: 6px 10px; border-radius: 7px; min-width: 34px; text-align: center; }
.pz-lang a.is-current { background: var(--green); color: #fff; }

/* ---------- Accueil : héros ---------- */
.pz-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.pz-hero__text { flex: 999 1 520px; min-width: 0; }
.pz-hero__title { margin: 0 0 20px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6.2vw, 80px); line-height: 1; letter-spacing: -0.035em; }
.pz-hero__lead { margin: 0 0 28px; font-size: 19px; color: var(--ink-2); max-width: 34ch; }
.pz-search { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.pz-search input { flex: 1 1 260px; min-width: 0; min-height: 52px; padding: 0 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); }
.pz-search .pz-btn { min-height: 52px; }
.pz-hero__card { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 30px; border-radius: var(--r-lg); background: var(--green); color: #fff; text-decoration: none; transition: transform .2s ease; }
.pz-hero__card:hover { color: #fff; transform: translateY(-2px); }
.pz-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--on-green); }
.pz-hero__card-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.02em; }
.pz-hero__points { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #DCE8E2; }
.pz-hero__points > span { display: flex; gap: 10px; align-items: flex-start; }
.pz-hero__points svg { flex: 0 0 auto; margin-top: 4px; }
.pz-hero__more { margin-top: 4px; font-weight: 600; color: var(--lime); }

/* ---------- Sections ---------- */
.pz-section { padding-top: 0; padding-bottom: 72px; }
.pz-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }

/* Guides essentiels (bento) */
.pz-bento { display: flex; flex-wrap: wrap; gap: 16px; }
.pz-bento > .pz-card--big { flex: 2 1 420px; min-width: 0; }
.pz-bento__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pz-bento__side .pz-card { flex: 1 1 auto; }

/* Cartes */
.pz-card { position: relative; display: flex; flex-direction: column; background: var(--tint, #F1F3EF); color: var(--ink, #0F1F1A); border-radius: 24px; overflow: hidden; transition: transform .2s ease; }
.pz-card:hover { transform: translateY(-2px); }
.pz-card__body { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.pz-card .pz-pill { align-self: flex-start; }
.pz-card__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.18; letter-spacing: -0.01em; }
.pz-card__title a { color: inherit; text-decoration: none; }
.pz-card__title a::after { content: ""; position: absolute; inset: 0; }
.pz-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.pz-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pz-card--big { background: var(--green); color: #fff; justify-content: space-between; min-height: 300px; }
.pz-card--big .pz-card__body { padding: 32px; height: 100%; justify-content: space-between; gap: 40px; }
.pz-card--big .pz-card__title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.pz-card__excerpt { margin: 0; color: var(--on-green); }
.pz-card--big.pz-card--img .pz-card__body { gap: 16px; }

/* Grille d'articles */
.pz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Thèmes */
.pz-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.pz-topic { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .2s ease; }
.pz-topic:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); }
.pz-topic__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: 16px; }
.pz-topic__name { font-family: var(--display); font-weight: 700; font-size: 21px; margin-bottom: 6px; }
.pz-topic__desc { color: var(--muted); font-size: 15px; }
.pz-topic__count { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--green); }

/* Derniers articles (lignes) */
.pz-rows { display: flex; flex-direction: column; }
.pz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 22px 0; border-bottom: 1.5px solid var(--line); color: var(--ink); text-decoration: none; }
.pz-row:hover { color: var(--green); }
.pz-row__date { flex: 0 0 140px; font-size: 14px; color: var(--muted); }
.pz-row__title { flex: 1 1 360px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }

/* Bandeau Plazn */
.pz-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--lime); }
.pz-cta-band > div { flex: 1 1 480px; min-width: 0; }
.pz-cta-band__title { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.03em; color: var(--green); }
.pz-cta-band__text { margin: 0; color: var(--lime-ink); font-size: 18px; }

/* ---------- Article ---------- */
.pz-article-hero { margin-top: 24px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--green); color: #fff; }
.pz-crumbs { font-size: 14px; color: var(--on-green); margin-bottom: 28px; }
.pz-crumbs a { color: var(--on-green); }
.pz-crumbs a:hover { color: #fff; }
.pz-article-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; font-size: 14px; color: var(--on-green); }
.pz-article-hero__title { margin: 0 0 18px; max-width: 20ch; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.03; letter-spacing: -0.035em; }
.pz-article-hero__dek { margin: 0 0 26px; max-width: 46ch; font-size: 20px; line-height: 1.5; color: #DCE8E2; }
.pz-article-hero__byline { margin: 0; font-size: 15px; color: var(--on-green); }
.pz-article-hero__byline strong { color: #fff; }
.pz-article-cover { margin: 24px 0 0; border-radius: var(--r-lg); overflow: hidden; }
.pz-article-cover img { display: block; width: 100%; height: auto; }

.pz-article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 72px; }
.pz-article-layout > .pz-prose { min-width: 0; max-width: 760px; }
.pz-article-aside { min-width: 0; display: flex; flex-direction: column; gap: 16px; order: -1; }
.pz-article-aside .pz-aside-cta, .pz-article-aside .pz-ad { display: none; }
@media (min-width: 1000px) {
	.pz-article-layout { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; align-items: start; gap: 48px; }
	.pz-article-aside { order: 0; position: sticky; top: 24px; }
	.pz-article-aside .pz-aside-cta, .pz-article-aside .pz-ad { display: block; }
}

.pz-toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.pz-toc__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pz-toc ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.5; }
.pz-toc li { padding: 5px 0; }
.pz-toc a { color: var(--ink); text-decoration: none; }
.pz-toc a:hover { color: var(--green); text-decoration: underline; }
.pz-aside-cta { background: var(--green); color: #fff; border-radius: var(--r-md); padding: 24px; }
.pz-aside-cta__title { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.pz-aside-cta__text { margin: 0 0 16px; font-size: 15px; color: var(--on-green); }

/* Typographie du contenu */
.pz-prose { font-size: 18px; line-height: 1.7; }
.pz-prose > * { margin-top: 0; margin-bottom: 1.1em; }
.pz-prose h2 { margin: 1.8em 0 .55em; font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.03em; scroll-margin-top: 24px; }
.pz-prose h3 { margin: 1.5em 0 .45em; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.25; }
.pz-prose h4 { margin: 1.3em 0 .4em; font-size: 18px; }
.pz-prose > h2:first-child, .pz-prose > h3:first-child { margin-top: 0; }
.pz-prose ul, .pz-prose ol { padding-left: 1.3em; }
.pz-prose li { margin-bottom: .45em; }
.pz-prose li::marker { color: var(--green); }
.pz-prose a { color: var(--green); text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pz-prose strong { font-weight: 600; }
.pz-prose blockquote { margin-left: 0; margin-right: 0; padding: 20px 24px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); font-size: 19px; }
.pz-prose blockquote p:last-child { margin-bottom: 0; }
.pz-prose img { border-radius: 16px; }
.pz-prose figure { margin-left: 0; margin-right: 0; }
.pz-prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.pz-prose hr { border: 0; border-top: 1.5px solid var(--line); margin: 2em 0; }
.pz-prose > p:first-of-type { font-size: 19px; }

/* Tableaux */
.pz-prose .wp-block-table, .pz-prose table { width: 100%; }
.pz-prose .wp-block-table { overflow-x: auto; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-md); }
.pz-prose table { border-collapse: collapse; font-size: 16px; }
.pz-prose th, .pz-prose td { text-align: left; padding: 14px 20px; border: 0; border-top: 1.5px solid var(--line); }
.pz-prose thead, .pz-prose .wp-block-table thead { border-bottom: 0; }
.pz-prose tfoot { border-top: 0; }
.pz-prose thead th { background: #F2F5F2; color: var(--ink-2); font-weight: 600; border-top: 0; }
.pz-prose tbody tr:first-child td { border-top: 0; }
.pz-prose thead + tbody tr:first-child td { border-top: 1.5px solid var(--line); }
.pz-prose td:last-child { font-weight: 600; }

/* Boutons de l'éditeur */
.pz-prose .wp-block-button__link { background: var(--green); color: #fff; border-radius: 14px; padding: 14px 22px; font-weight: 600; text-decoration: none; }
.pz-prose .wp-block-button__link:hover { background: var(--green-2); color: #fff; }

/* Styles de blocs : En bref, Check-list */
.pz-prose .is-style-pz-bref { background: var(--lime-soft); color: #1E3305; border-radius: var(--r-md); padding: 22px 26px; font-weight: 500; }
.pz-prose .is-style-pz-bref > :last-child { margin-bottom: 0; }
.pz-prose ul.is-style-pz-check { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pz-prose ul.is-style-pz-check li { position: relative; margin: 0; padding: 14px 18px 14px 58px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; }
.pz-prose ul.is-style-pz-check li::before { content: ""; position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; border-radius: 8px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230E3B2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center no-repeat; }

/* FAQ Rank Math */
.pz-prose .rank-math-list { display: flex; flex-direction: column; gap: 10px; }
.pz-prose .rank-math-list-item { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.pz-prose .rank-math-question { margin: 0 0 6px !important; font-family: var(--text) !important; font-size: 18px !important; font-weight: 600; letter-spacing: 0 !important; }
.pz-prose .rank-math-answer > :last-child { margin-bottom: 0; }

/* Encart Plazn dans l'article */
.pz-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 2em 0 !important; padding: 30px 32px; background: var(--lime); border-radius: 24px; }
.pz-inline-cta > div { flex: 1 1 320px; min-width: 0; }
.pz-inline-cta__title { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.12; letter-spacing: -0.02em; color: var(--green); }
.pz-inline-cta__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--lime-ink); }
.pz-prose .pz-inline-cta .pz-btn, .pz-prose .pz-inline-cta .pz-btn:hover { color: #fff; text-decoration: none; }

/* Publicité */
.pz-ad { margin: 2em 0; min-height: 90px; }
.pz-article-aside .pz-ad { margin: 0; }

/* ---------- Archives, pages ---------- */
.pz-archive-head { padding: 48px 0 32px; max-width: 760px; }
.pz-archive-head .pz-topic__icon { margin-bottom: 18px; }
.pz-archive-head__title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.pz-archive-head__desc { color: var(--ink-2); font-size: 19px; }
.pz-archive-head .pz-search { margin-top: 20px; }
.pz-404 { padding-bottom: 96px; }
.pz-404 .pz-btn { margin-top: 12px; }
.pz-prose--page { max-width: 760px; padding-bottom: 72px; }
.pz-empty { padding-bottom: 72px; color: var(--muted); }
.pz-pagination { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 72px; }
.pz-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pz-pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Pied de page ---------- */
.pz-footer { border-top: 1.5px solid var(--line); }
.pz-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.pz-footer__logo img { height: 40px; width: auto; display: block; }
.pz-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pz-footer__links a { color: var(--muted); }
.pz-footer__links a:hover { color: var(--green); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	body { font-size: 16px; }
	.pz-wrap { padding-left: 16px; padding-right: 16px; }
	.pz-header__inner { gap: 10px 12px; padding-top: 12px; padding-bottom: 8px; }
	.pz-logo img { height: 44px; }
	.pz-header__actions { gap: 8px; }
	.pz-nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 20px; padding-bottom: 4px; scrollbar-width: none; }
	.pz-nav::-webkit-scrollbar { display: none; }
	.pz-nav a { white-space: nowrap; }
	.pz-lang a { padding: 6px 8px; min-width: 30px; }
	.pz-btn--sm { padding: 0 14px; }
	.pz-hero { gap: 32px; padding-top: 24px; padding-bottom: 48px; }
	.pz-hero__lead { font-size: 17px; }
	.pz-hero__card { padding: 24px; }
	.pz-section { padding-bottom: 48px; }
	.pz-card--big { min-height: 0; }
	.pz-card--big .pz-card__body { padding: 26px; gap: 28px; }
	.pz-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pz-topic { padding: 18px; border-radius: 18px; }
	.pz-topic__icon { width: 38px; height: 38px; margin-bottom: 12px; }
	.pz-topic__name { font-size: 18px; }
	.pz-topic__desc { font-size: 14px; line-height: 1.45; }
	.pz-row__date { flex-basis: 100%; }
	.pz-row__title { flex-basis: 100%; font-size: 19px; }
	.pz-cta-band { border-radius: 24px; }
	.pz-article-hero { margin-top: 12px; border-radius: 24px; }
	.pz-article-hero__dek { font-size: 18px; }
	.pz-article-layout { padding-top: 32px; padding-bottom: 48px; gap: 32px; }
	.pz-prose { font-size: 17px; }
	.pz-inline-cta { padding: 24px; }
	.pz-prose th, .pz-prose td { padding: 12px 14px; }
}
@media (max-width: 370px) {
	.pz-header__actions .pz-btn--sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
