/*
Theme Name: Printy Room 3D
Theme URI: https://printyroom3d.fr
Author: Little Numerics
Author URI: https://littlenumerics.fr
Description: Thème bloc éditorial de Printy Room 3D (printyroom3d.fr / printyroom3d.com). Atelier créatif lumineux : blanc cassé, graphite, orange filament. Fonctionne seul ; les fonctions métier sont dans l'extension Printy Room Core.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: printyroom3d
*/

/* ============ Jetons ============ */
:root {
	--pr-bg: #FAF8F5;
	--pr-ink: #1F2328;
	--pr-orange: #FF6B35;
	--pr-orange-ink: #B83D12;
	--pr-blue: #2B59C3;
	--pr-beige: #F3EEE6;
	--pr-line: #E6E1DA;
	--pr-white: #FFFFFF;
	--pr-muted: #62666B;
	--pr-font-title: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
	--pr-font-text: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pr-site: 1320px;
	--pr-article: 1160px;
	--pr-read: 760px;
	--pr-side: 300px;
	--pr-gutter: 40px;
	--pr-pad: 40px;
	--pr-radius: 12px;
	--pr-radius-btn: 6px;
	--pr-section: 64px;
	/* Lignes de couches : motif discret (séparateurs). */
	--pr-layers: repeating-linear-gradient(to bottom, var(--pr-line) 0 1px, transparent 1px 5px);
}
@media (max-width: 781px) {
	:root { --pr-pad: 20px; --pr-gutter: 24px; --pr-section: 48px; }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--pr-bg);
	color: var(--pr-ink);
	font-family: var(--pr-font-text);
	font-size: 17px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--pr-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pr-blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--pr-font-title); color: var(--pr-ink); line-height: 1.2; letter-spacing: -0.01em; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-small-font-size { font-size: 0.875rem; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.pr-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pr-ink); color: #fff; padding: 10px 16px; border-radius: var(--pr-radius-btn); font-weight: 600; }
.pr-skip:focus { top: 12px; }

/* Boutons : orange, texte sombre (contraste AA). */
.pr-btn, .wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
	background: var(--pr-orange); color: var(--pr-ink);
	font: 600 15px/1.2 var(--pr-font-text);
	padding: 13px 22px; border: 2px solid var(--pr-orange); border-radius: var(--pr-radius-btn);
	text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.pr-btn:hover, .wp-element-button:hover, .wp-block-button__link:hover { background: #ff824f; border-color: #ff824f; color: var(--pr-ink); }
.pr-btn--ghost { background: transparent; border-color: var(--pr-ink); color: var(--pr-ink); }
.pr-btn--ghost:hover { background: var(--pr-ink); border-color: var(--pr-ink); color: #fff; }

/* ============ En-tête ============ */
.pr-header { background: var(--pr-bg); border-bottom: 1px solid var(--pr-line); position: relative; z-index: 20; }
.pr-header__bar {
	max-width: var(--pr-site); margin: 0 auto; padding: 18px var(--pr-pad);
	display: flex; align-items: center; gap: 28px;
}
.pr-header > *, .pr-header__bar > * { margin-block: 0 !important; }
.pr-logo { display: inline-flex; flex: none; line-height: 0; }
.pr-logo img { height: 46px; width: auto; }
.pr-nav { flex: 1; display: flex; justify-content: center; }
.pr-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.pr-nav__item { position: relative; display: flex; align-items: center; }
.pr-nav__link {
	color: var(--pr-ink); text-decoration: none; font: 500 14px/1 var(--pr-font-text);
	padding: 12px 10px; border-radius: var(--pr-radius-btn);
}
.pr-nav__link:hover { color: var(--pr-orange-ink); }
.has-sub > .pr-nav__link { padding-right: 2px; }
.pr-nav__sub-toggle {
	background: none; border: 0; color: var(--pr-ink); padding: 10px 6px; cursor: pointer; line-height: 0; border-radius: 4px;
}
.pr-nav__sub {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 250px;
	background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius);
	box-shadow: 0 12px 28px rgba(31, 35, 40, .08); display: none;
}
.pr-nav__sub a { display: block; padding: 8px 12px; color: var(--pr-ink); text-decoration: none; font-size: 14px; line-height: 1.4; border-radius: var(--pr-radius-btn); }
.pr-nav__sub a:hover { background: var(--pr-beige); }
.pr-nav__item.is-open > .pr-nav__sub { display: block; }
@media (hover: hover) and (min-width: 1100px) {
	.pr-nav__item:hover > .pr-nav__sub, .pr-nav__item:focus-within > .pr-nav__sub { display: block; }
}
.pr-nav__item.is-open > .pr-nav__sub-toggle svg { transform: rotate(180deg); }
.pr-header__search {
	flex: none; margin-left: auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
	color: var(--pr-ink); border: 1px solid var(--pr-line); border-radius: 50%; background: var(--pr-white);
}
.pr-header__search:hover { border-color: var(--pr-ink); }
.pr-menu-toggle {
	display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--pr-line);
	border-radius: var(--pr-radius-btn); padding: 9px 12px; font: 500 14px/1 var(--pr-font-text); color: var(--pr-ink); cursor: pointer;
}
.pr-burger, .pr-burger::before, .pr-burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.pr-burger::before, .pr-burger::after { content: ""; position: absolute; left: 0; }
.pr-burger::before { top: -5px; }
.pr-burger::after { top: 5px; }
@media (max-width: 1099px) {
	.pr-header__bar { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
	.pr-logo img { height: 38px; }
	.pr-menu-toggle { display: inline-flex; }
	.pr-menu-toggle ~ .pr-header__search { margin-left: 0; }
	.pr-nav { display: none; order: 3; flex-basis: 100%; justify-content: flex-start; }
	.pr-nav.is-open { display: block; }
	.pr-nav__list { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--pr-line); padding-top: 6px; }
	.pr-nav__item { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--pr-line); }
	.pr-nav__link { font-size: 16px; padding: 14px 0; flex: 1; }
	.pr-nav__sub-toggle { padding: 14px 10px; }
	.pr-nav__sub { position: static; display: none; flex-basis: 100%; border: 0; box-shadow: none; background: var(--pr-beige); margin: 0 0 12px; min-width: 0; }
}

/* ============ Mise en page ============ */
.pr-main { max-width: var(--pr-site); margin: 0 auto; padding: 0 var(--pr-pad) var(--pr-section); }
.pr-home-section, .pr-related { margin-top: var(--pr-section); }
.pr-section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin: 0 0 28px; padding-bottom: 14px; position: relative;
}
.pr-section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 11px; background: var(--pr-layers); }
.pr-section-title { font-size: 30px; font-weight: 600; margin: 0; }
.pr-section-more { font: 500 14px/1.4 var(--pr-font-text); color: var(--pr-orange-ink); text-decoration: none; white-space: nowrap; }
.pr-section-more:hover { text-decoration: underline; }
.pr-eyebrow, .pr-hero__kicker, .pr-beginner__kicker {
	font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--pr-orange-ink); margin: 0 0 10px;
}

/* ============ Accueil ============ */
.pr-hero { text-align: center; max-width: 820px; margin: 0 auto; padding: 72px 0 8px; }
.pr-hero__title { font-size: 52px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.02em; }
.pr-hero__lead { color: var(--pr-muted); font-size: 18px; margin: 0 auto 28px; max-width: 640px; }
.pr-search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.pr-search input[type="search"] {
	flex: 1; min-width: 0; font: 400 16px/1.4 var(--pr-font-text); color: var(--pr-ink);
	padding: 13px 16px; background: var(--pr-white); border: 1px solid #CFC8BE; border-radius: var(--pr-radius-btn);
}
.pr-search input[type="search"]::placeholder { color: #7A7E83; }
.pr-search input[type="search"]:focus { outline: 3px solid var(--pr-blue); outline-offset: 1px; border-color: var(--pr-blue); }

/* Cartes : épurées, sans ombre ni bordure épaisse, photo 4:5. */
.pr-grid { display: grid; gap: var(--pr-gutter) 32px; }
.pr-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pr-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1099px) { .pr-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pr-grid--3, .pr-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 540px) { .pr-grid--3, .pr-grid--4 { grid-template-columns: minmax(0, 1fr); } }
.pr-card { display: flex; flex-direction: column; min-width: 0; }
.pr-card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--pr-radius); background: var(--pr-beige); }
.pr-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.pr-card:hover .pr-card__img img { transform: scale(1.02); }
.pr-card__body { padding-top: 14px; }
.pr-card__cat {
	display: inline-block; font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .06em; text-transform: uppercase;
	color: var(--pr-orange-ink); text-decoration: none; margin-bottom: 6px;
}
.pr-card__cat:hover { text-decoration: underline; }
.pr-card__title { font-size: 22px; font-weight: 600; line-height: 1.25; margin: 0 0 8px; }
.pr-card__title a { color: var(--pr-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pr-card__title a:hover { text-decoration: underline; text-decoration-color: var(--pr-orange); text-decoration-thickness: 2px; }
.pr-card__excerpt { color: var(--pr-muted); font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.pr-card__meta { color: var(--pr-muted); font-size: 13px; line-height: 1.4; margin: 0; }

/* À la une : 1 grand + 2. */
.pr-featured__grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pr-card--large { grid-row: span 2; }
.pr-card--large .pr-card__img { aspect-ratio: 1160 / 705; }
.pr-card--large .pr-card__title { font-size: 32px; line-height: 1.15; }
.pr-card--row { flex-direction: row; gap: 18px; align-items: flex-start; }
.pr-card--row + .pr-card--row { padding-top: 28px; border-top: 1px solid var(--pr-line); }
.pr-card--row .pr-card__img { flex: 0 0 38%; }
.pr-card--row .pr-card__body { padding-top: 0; }
@media (max-width: 860px) {
	.pr-featured__grid { grid-template-columns: minmax(0, 1fr); }
	.pr-card--large .pr-card__title { font-size: 26px; }
}

/* Encart « Vous débutez ? ». */
.pr-beginner {
	margin-top: var(--pr-section); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
	background: var(--pr-beige); border-radius: var(--pr-radius); padding: 36px 40px; position: relative; overflow: hidden;
}
.pr-beginner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pr-orange); }
.pr-beginner__title { font-size: 30px; margin: 0 0 6px; }
.pr-beginner .pr-btn { flex: none; white-space: nowrap; }
.pr-beginner p:last-child { margin: 0; color: #4A4E53; }
@media (max-width: 781px) { .pr-beginner { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

.pr-newsletter { margin-top: var(--pr-section); text-align: center; background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); padding: 40px 24px; }
.pr-newsletter h2 { font-size: 30px; margin: 0 0 8px; }
.pr-newsletter p { color: var(--pr-muted); margin: 0 auto 20px; max-width: 520px; }

/* ============ Archives ============ */
.pr-archive-head { text-align: center; max-width: 760px; margin: 0 auto; padding: 48px 0 8px; }
.pr-archive-head .pr-breadcrumb ol { justify-content: center; }
.pr-archive-title { font-size: 44px; font-weight: 700; margin: 0 0 12px; }
.pr-archive-desc { color: var(--pr-muted); margin: 0 auto 20px; }
.pr-archive-desc p { margin: 0; }
.pr-archive-head .pr-search { margin-top: 20px; }
.pr-archive .pr-grid { margin-top: 40px; }
.pr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; }
.pr-chip {
	display: inline-block; padding: 7px 14px; border: 1px solid var(--pr-line); border-radius: 999px;
	background: var(--pr-white); color: var(--pr-ink); font: 500 14px/1.3 var(--pr-font-text); text-decoration: none;
}
.pr-chip:hover { border-color: var(--pr-ink); }
.pr-chip.is-active { background: var(--pr-ink); border-color: var(--pr-ink); color: #fff; }
.pr-empty { text-align: center; color: var(--pr-muted); padding: 48px 0; }
.pr-pagination { margin-top: 56px; }
.pr-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pr-pagination a, .pr-pagination span {
	display: inline-block; min-width: 42px; padding: 9px 13px; text-align: center; border-radius: var(--pr-radius-btn);
	border: 1px solid var(--pr-line); background: var(--pr-white); color: var(--pr-ink); text-decoration: none; font-size: 15px; line-height: 1.4;
}
.pr-pagination .current { background: var(--pr-ink); border-color: var(--pr-ink); color: #fff; }
.pr-pagination .dots { border: 0; background: none; }

/* ============ Article ============ */
.pr-breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; line-height: 1.5; color: var(--pr-muted); }
.pr-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #A3A7AC; }
.pr-breadcrumb a { color: var(--pr-muted); text-decoration: none; }
.pr-breadcrumb a:hover { color: var(--pr-ink); text-decoration: underline; }
.pr-breadcrumb [aria-current] { color: var(--pr-ink); }
.pr-article-head { max-width: 860px; margin: 0 auto; padding: 40px 0 28px; text-align: center; }
.pr-article-head .pr-breadcrumb ol { justify-content: center; }
.pr-pill {
	display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--pr-beige);
	color: var(--pr-orange-ink); font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.pr-pill:hover { background: #EDE5D9; }
.pr-sponsored-label { display: inline-block; margin: 10px 0 0 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--pr-ink); font: 600 12px/1.3 var(--pr-font-text); text-transform: uppercase; letter-spacing: .06em; }
.pr-article-title { font-size: 44px; font-weight: 700; line-height: 1.15; margin: 16px 0 14px; letter-spacing: -0.02em; }
.pr-article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 0; color: var(--pr-muted); font-size: 14px; line-height: 1.5; }
.pr-article-cover { max-width: var(--pr-article); margin: 0 auto; }
.pr-article-cover img { width: 100%; aspect-ratio: 1160 / 705; object-fit: cover; border-radius: var(--pr-radius); display: block; }
.pr-article-layout {
	max-width: var(--pr-article); margin: 48px auto 0; display: grid; grid-template-columns: minmax(0, var(--pr-read)) var(--pr-side);
	gap: var(--pr-gutter); justify-content: space-between; align-items: start;
}
.pr-article-body { min-width: 0; }
.pr-sidebar { align-self: stretch; }
.pr-sidebar__sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 1199px) {
	.pr-article-layout { grid-template-columns: minmax(0, 1fr); max-width: var(--pr-read); }
	.pr-sidebar { display: none; }
}
@media (max-width: 781px) {
	.pr-article-head { padding-top: 24px; }
	.pr-article-title { font-size: 32px; }
	.pr-article-cover { margin-left: calc(-1 * var(--pr-pad)); margin-right: calc(-1 * var(--pr-pad)); }
	.pr-article-cover img { border-radius: 0; }
	.pr-article-layout { margin-top: 32px; }
}

/* Barre latérale. */
.pr-side-box { background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); padding: 20px 22px; }
.pr-side-title { font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); margin: 0 0 12px; }
.pr-side-toc ol, .pr-side-list { list-style: none; margin: 0; padding: 0; }
.pr-side-toc li + li, .pr-side-list li + li { margin-top: 2px; }
.pr-side-toc a, .pr-side-list a {
	display: block; padding: 7px 10px 7px 12px; border-left: 2px solid transparent; color: var(--pr-ink);
	text-decoration: none; font-size: 14px; line-height: 1.45;
}
.pr-side-toc a:hover, .pr-side-list a:hover { color: var(--pr-orange-ink); }
.pr-side-toc a.is-active { border-left-color: var(--pr-orange); color: var(--pr-orange-ink); font-weight: 600; background: var(--pr-bg); }
.pr-side-list a { border-left: 0; padding-left: 0; font-family: var(--pr-font-title); font-weight: 600; font-size: 16px; }

/* ============ Texte de l'article (front + éditeur) ============ */
.pr-prose { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.pr-prose > * { margin-top: 0; margin-bottom: 0; }
.pr-prose > * + * { margin-top: 1.4em; }
.pr-prose strong { font-weight: 650; }
.pr-prose h2 { font-size: 30px; font-weight: 600; margin-top: 2.2em; margin-bottom: 0.2em; scroll-margin-top: 24px; }
.pr-prose h3 { font-size: 23px; font-weight: 600; margin-top: 1.9em; margin-bottom: 0.1em; scroll-margin-top: 24px; }
.pr-prose h4 { font-size: 19px; font-weight: 600; margin-top: 1.6em; }
.pr-prose h2 + *, .pr-prose h3 + * { margin-top: 0.7em; }
.pr-prose ul, .pr-prose ol { padding-left: 1.3em; }
.pr-prose .has-text-align-center + ul, .pr-prose ul.has-text-align-center { list-style-position: inside; padding-left: 0; }
.pr-prose li + li { margin-top: 0.35em; }
.pr-prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pr-orange); font-style: italic; }
.pr-prose hr { border: 0; height: 11px; background: var(--pr-layers); max-width: 120px; margin: 2.4em auto; }
.pr-prose code { font-size: .9em; background: var(--pr-beige); padding: .1em .35em; border-radius: 4px; }

/* Photos éditoriales : portrait 800×1000 sans recadrage, légende lisible. */
.pr-prose .wp-block-image { margin-top: 2em; margin-bottom: 0; }
.pr-prose .wp-block-image + * { margin-top: 2em; }
.pr-prose .wp-block-image img { border-radius: var(--pr-radius); display: block; height: auto; }
.pr-prose .wp-block-image.aligncenter, .pr-prose .wp-block-image.size-full { position: relative; margin-left: auto; margin-right: auto; }
.pr-prose .wp-block-image.aligncenter { display: table; }
.pr-prose .wp-block-image img[width="800"][height="1000"] { width: 600px; max-width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.pr-prose figcaption, .pr-prose .wp-element-caption {
	font-size: 13px; line-height: 1.5; color: var(--pr-muted); text-align: center; margin: 10px auto 0; max-width: 600px;
}
.pr-prose .wp-block-image.aligncenter > figcaption { display: table-caption; caption-side: bottom; }

/* Bouton « Épingler » au survol (lien simple, aucun script externe). */
.pr-pin {
	position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
	background: #E60023; color: #fff; font: 600 13px/1 var(--pr-font-text); padding: 9px 12px; border-radius: 999px;
	text-decoration: none; opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.pr-pin::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-3.6 19.3c-.1-.8-.2-2 0-2.9l1.2-5s-.3-.6-.3-1.5c0-1.4.8-2.5 1.8-2.5.9 0 1.3.6 1.3 1.4 0 .9-.5 2.1-.8 3.3-.2 1 .5 1.8 1.5 1.8 1.8 0 3.2-1.9 3.2-4.6 0-2.4-1.7-4.1-4.2-4.1-2.9 0-4.5 2.1-4.5 4.4 0 .9.3 1.8.8 2.3.1.1.1.2.1.3l-.3 1.2c0 .2-.2.2-.4.1-1.3-.6-2.1-2.5-2.1-4 0-3.3 2.4-6.3 6.9-6.3 3.6 0 6.4 2.6 6.4 6 0 3.6-2.3 6.5-5.4 6.5-1.1 0-2.1-.6-2.4-1.2l-.7 2.5c-.2.9-.9 2.1-1.3 2.8A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-3.6 19.3c-.1-.8-.2-2 0-2.9l1.2-5s-.3-.6-.3-1.5c0-1.4.8-2.5 1.8-2.5.9 0 1.3.6 1.3 1.4 0 .9-.5 2.1-.8 3.3-.2 1 .5 1.8 1.5 1.8 1.8 0 3.2-1.9 3.2-4.6 0-2.4-1.7-4.1-4.2-4.1-2.9 0-4.5 2.1-4.5 4.4 0 .9.3 1.8.8 2.3.1.1.1.2.1.3l-.3 1.2c0 .2-.2.2-.4.1-1.3-.6-2.1-2.5-2.1-4 0-3.3 2.4-6.3 6.9-6.3 3.6 0 6.4 2.6 6.4 6 0 3.6-2.3 6.5-5.4 6.5-1.1 0-2.1-.6-2.4-1.2l-.7 2.5c-.2.9-.9 2.1-1.3 2.8A10 10 0 1 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.wp-block-image:hover .pr-pin, .pr-pin:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .pr-pin { opacity: .92; transform: none; padding: 8px; font-size: 0; gap: 0; } .pr-pin::before { width: 16px; height: 16px; } }

/* Tableaux : défilement horizontal sur mobile, styles en ligne hérités neutralisés. */
.pr-prose .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2em; border: 1px solid var(--pr-line); border-radius: var(--pr-radius); background: var(--pr-white); }
.pr-prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px !important; line-height: 1.5; }
.pr-prose .wp-block-table th, .pr-prose .wp-block-table td {
	padding: 12px 14px !important; border: 0 !important; border-bottom: 1px solid var(--pr-line) !important;
	background: var(--pr-white) !important; color: var(--pr-ink) !important; text-align: left; vertical-align: top;
}
.pr-prose .wp-block-table thead th, .pr-prose .wp-block-table tbody th { background: var(--pr-beige) !important; font-weight: 600; }
.pr-prose .wp-block-table tr:last-child > * { border-bottom: 0 !important; }
.pr-prose .wp-block-table figcaption { padding: 0 14px 12px; }
@media (max-width: 781px) {
	.pr-prose .wp-block-table table { min-width: 560px; }
	.pr-prose .wp-block-table tbody th { min-width: 140px; }
}
.pr-prose .wp-block-table.pr-compare thead th { background: var(--pr-ink) !important; color: #fff !important; }

/* ============ Blocs éditoriaux (extension Printy Room Core) ============ */
.pr-prose .pr-toc, .pr-prose .pr-faq { background: var(--pr-beige); border-radius: var(--pr-radius); padding: 32px 36px; margin-top: 2.4em; text-align: center; }
.pr-toc__title { font: 600 20px/1.3 var(--pr-font-title); margin: 0 0 14px !important; }
.pr-toc__title::after { content: ""; display: block; width: 44px; height: 9px; margin: 10px auto 0; background: repeating-linear-gradient(to bottom, var(--pr-orange) 0 1.5px, transparent 1.5px 3.5px); }
.pr-prose .pr-toc ol { list-style: none; counter-reset: pr-toc; padding: 0; margin: 0; }
.pr-prose .pr-toc li { counter-increment: pr-toc; margin: 0; padding: 4px 0; line-height: 1.5; }
.pr-prose .pr-toc li::before { content: counter(pr-toc) ". "; font-family: var(--pr-font-title); font-weight: 700; color: var(--pr-orange-ink); }
.pr-prose .pr-toc a { color: var(--pr-ink); text-decoration: none; font-size: 16px; }
.pr-prose .pr-toc a:hover { color: var(--pr-blue); text-decoration: underline; }
.pr-prose .pr-faq h2 { margin: 0 0 8px; font-size: 30px; }
.pr-prose .pr-faq h2::after { content: ""; display: block; width: 44px; height: 9px; margin: 12px auto 4px; background: repeating-linear-gradient(to bottom, var(--pr-orange) 0 1.5px, transparent 1.5px 3.5px); }
.pr-prose .pr-faq h3 { font-size: 19px; margin: 1.6em 0 .4em; }
.pr-prose .pr-faq h3 + p { margin-top: 0; }
.pr-prose .pr-faq p { font-size: 16px; color: #3B3F44; margin: 0; }

.pr-prose .pr-encart { margin-top: 2.6em; background: var(--pr-beige); border-radius: var(--pr-radius); overflow: hidden; text-align: center; }
.pr-prose .pr-encart .wp-block-image { margin: 0; display: block; }
.pr-prose .pr-encart .wp-block-image img { width: 100%; aspect-ratio: 1160 / 705; object-fit: cover; border-radius: 0; }
.pr-prose .pr-encart .pr-pin { display: none; }
.pr-encart__body { padding: 28px 32px 32px; }
.pr-encart__body > * { margin: 0 auto; }
.pr-encart__kicker { font: 600 12px/1.3 var(--pr-font-text) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-orange-ink); margin-bottom: 8px !important; }
.pr-encart__title { font: 600 26px/1.25 var(--pr-font-title) !important; margin-bottom: 10px !important; }
.pr-encart__body p:not([class]) { color: #4A4E53; font-size: 16px; max-width: 520px; margin-bottom: 20px; }
.pr-encart .wp-block-buttons { justify-content: center; display: flex; }

.pr-model, .pr-printer { margin-top: 2em; background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); padding: 24px 28px; text-align: left; }
.pr-model__kicker, .pr-printer__kicker { font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--pr-orange-ink); margin: 0 0 4px; }
.pr-model__name, .pr-printer__name { font: 600 22px/1.25 var(--pr-font-title); margin: 0 0 8px; }
.pr-model__text, .pr-printer__text { font-size: 16px; color: #3B3F44; margin: 0 0 12px; }
.pr-spec, .pr-prose .pr-spec { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.pr-spec li { padding: 8px 0; border-top: 1px solid var(--pr-line); font-size: 15px; line-height: 1.5; margin: 0 !important; }
.pr-spec__label { color: var(--pr-muted); }
.pr-spec__value { font-weight: 600; }
.pr-model__cta, .pr-printer__cta { margin: 16px 0 0; }
@media (max-width: 540px) { .pr-spec, .pr-prose .pr-spec { grid-template-columns: minmax(0, 1fr); } .pr-model, .pr-printer { padding: 20px; } }

.pr-prose .pr-tip, .pr-prose .pr-warning { margin-top: 2em; border-radius: var(--pr-radius); padding: 20px 24px 20px 26px; text-align: left; position: relative; }
.pr-prose .pr-tip { background: var(--pr-beige); box-shadow: inset 4px 0 0 var(--pr-blue); }
.pr-prose .pr-warning { background: var(--pr-white); border: 1px solid var(--pr-line); box-shadow: inset 4px 0 0 var(--pr-orange); }
.pr-box__title { font: 600 15px/1.3 var(--pr-font-text) !important; letter-spacing: .02em; margin: 0 0 6px !important; display: flex; align-items: center; gap: 8px; }
.pr-tip .pr-box__title { color: var(--pr-blue); }
.pr-warning .pr-box__title { color: var(--pr-orange-ink); }
.pr-tip .pr-box__title::before, .pr-warning .pr-box__title::before {
	content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font: 700 12px/1 var(--pr-font-title); color: #fff; background: var(--pr-blue);
}
.pr-warning .pr-box__title::before { content: "!"; background: var(--pr-orange-ink); }
.pr-prose .pr-tip p, .pr-prose .pr-warning p { font-size: 16px; margin: 0; }
.pr-prose .pr-tip > * + *, .pr-prose .pr-warning > * + * { margin-top: .4em; }

.pr-prose .pr-sources { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--pr-line); font-size: 14px; text-align: left; }
.pr-prose .pr-sources ul { margin: 6px 0 0; padding-left: 1.1em; }
.pr-prose .pr-specs { list-style: none; max-width: 560px; margin-left: auto; margin-right: auto; padding: 18px 22px; background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); font-size: 15px; line-height: 1.6; text-align: left; }
.pr-prose .pr-specs li + li { margin-top: 6px; }
.pr-prose .pr-note { font-size: 15px; font-style: italic; color: #4A4E53; background: var(--pr-beige); border-radius: 8px; padding: 14px 18px; }
.pr-prose .wp-block-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pr-prose .pr-cta { margin: 0; }

.pr-disclosure { background: var(--pr-white); border: 1px dashed #CFC8BE; border-radius: 8px; padding: 12px 16px; font-size: 14px !important; line-height: 1.55; color: #4A4E53; text-align: left; }
.pr-disclosure__label { font-weight: 600; color: var(--pr-ink); margin-right: 4px; }
.pr-disclosure__label::after { content: " ·"; }

/* Compatibilité : anciens blocs HTML à styles en ligne (avant conversion, voir CONVERSION.md). */
.pr-prose [style*="Abril Fatface"], .pr-prose [style*="Lora"] { font-family: inherit !important; }
.pr-prose h2[style*="Abril Fatface"], .pr-prose h4[style*="Abril Fatface"], .pr-prose span[style*="Abril Fatface"][style*="26px"] { font-family: var(--pr-font-title) !important; font-weight: 600 !important; }
.pr-prose div[style*="#FAF6F1"], .pr-prose ul[style*="#FAF6F1"] { background: var(--pr-beige) !important; border-color: var(--pr-line) !important; border-radius: var(--pr-radius); }
.pr-prose div[style*="#dd9933"] { background: var(--pr-orange) !important; }
.pr-prose a[style*="background:#1a1a1a"] {
	background: var(--pr-orange) !important; color: var(--pr-ink) !important; border-radius: var(--pr-radius-btn) !important;
	font: 600 15px/1.2 var(--pr-font-text) !important; text-transform: none !important; letter-spacing: 0 !important; padding: 13px 22px !important;
}

/* Fin d'article : partage, auteur, publicité. */
.pr-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pr-line); }
.pr-share__label { width: 100%; text-align: center; font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); }
.pr-share .pr-btn { padding: 10px 18px; font-size: 14px; }
.pr-author { display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; background: var(--pr-white); border: 1px solid var(--pr-line); border-radius: var(--pr-radius); }
.pr-author__mark { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--pr-orange); color: var(--pr-ink); display: inline-flex; align-items: center; justify-content: center; font: 700 18px/1 var(--pr-font-title); }
.pr-author__name { font: 600 18px/1.3 var(--pr-font-title); margin: 0 0 4px; }
.pr-author__bio { font-size: 15px; line-height: 1.6; color: #4A4E53; margin: 0 0 6px; }
.pr-author__link { font-size: 14px; font-weight: 500; }
.pr-ad { margin: 2em auto; text-align: center; min-height: 280px; }
.pr-sidebar .pr-ad { min-height: 600px; margin: 0; }
.pr-ad__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--pr-muted); margin-bottom: 4px; }
.pr-ad--placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #CFC8BE; border-radius: var(--pr-radius); color: var(--pr-muted); font-size: 13px; }
.pr-related { max-width: var(--pr-article); margin-left: auto; margin-right: auto; }

/* ============ Pages ============ */
.pr-page { max-width: calc(var(--pr-read) + 2 * var(--pr-pad)); }
.pr-page > .pr-breadcrumb { padding-top: 40px; }
.pr-page-title { font-size: 44px; font-weight: 700; margin: 0 0 28px; letter-spacing: -0.02em; }
@media (max-width: 781px) { .pr-page-title, .pr-archive-title { font-size: 32px; } }
.pr-notice { padding: 14px 18px; border-radius: 8px; background: var(--pr-beige); }
.pr-notice--success { background: #E8F3EC; color: #1E5631; }
.pr-notice--error { background: #FBEAE5; color: #8A2A0E; }
.pr-form { display: grid; gap: 16px; margin-top: 1.5em; }
.pr-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.pr-form input[type="text"], .pr-form input[type="email"], .pr-form select, .pr-form textarea {
	font: 400 16px/1.5 var(--pr-font-text); color: var(--pr-ink); padding: 11px 14px; background: var(--pr-white);
	border: 1px solid #CFC8BE; border-radius: var(--pr-radius-btn); width: 100%;
}
.pr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .pr-form__row { grid-template-columns: 1fr; } }
.pr-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; }
.pr-check input { margin-top: 5px; }
.pr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pr-form .pr-btn { justify-self: start; }

.pr-404 { text-align: center; max-width: 640px; margin: 0 auto; padding: 72px 0 24px; }
.pr-404__code { font: 700 120px/1 var(--pr-font-title); margin: 0; color: transparent; background: repeating-linear-gradient(to bottom, var(--pr-orange) 0 4px, transparent 4px 8px); -webkit-background-clip: text; background-clip: text; }
.pr-404 h1 { font-size: 44px; margin: 12px 0; }
.pr-404 p { color: var(--pr-muted); }
.pr-404 .pr-search { margin: 28px auto; }

/* ============ Pied de page ============ */
.pr-footer { background: var(--pr-ink); color: #D6D8DB; margin-top: 0; }
.pr-layers { height: 14px; background: repeating-linear-gradient(to bottom, var(--pr-orange) 0 2px, transparent 2px 5px); opacity: .9; }
.pr-footer__grid { max-width: var(--pr-site); margin: 0 auto; padding: 56px var(--pr-pad) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.pr-footer .pr-logo img { height: 40px; }
.pr-footer__tagline { font: 600 18px/1.4 var(--pr-font-title); color: #fff; margin: 16px 0 6px; }
.pr-footer p { font-size: 15px; line-height: 1.6; margin: 0; }
.pr-footer h2 { font: 600 12px/1.3 var(--pr-font-text); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 4px 0 14px; }
.pr-footer ul { list-style: none; margin: 0; padding: 0; }
.pr-footer li { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.pr-footer a { color: #D6D8DB; text-decoration: none; }
.pr-footer a:hover { color: #fff; text-decoration: underline; }
.pr-footer__bottom { max-width: var(--pr-site); margin: 0 auto; padding: 20px var(--pr-pad) 28px; border-top: 1px solid #3A3F45; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; }
.pr-footer__bottom p { font-size: 13px; }
.pr-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pr-footer__bottom li { margin: 0; font-size: 13px; }
.pr-footer a[href="https://littlenumerics.fr"] { color: #FF9C77; }
@media (max-width: 860px) { .pr-footer__grid { grid-template-columns: 1fr 1fr; } .pr-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 540px) { .pr-footer__grid { grid-template-columns: 1fr; } }

/* ============ Mobile ============ */
@media (max-width: 781px) {
	body, .pr-prose { font-size: 16px; }
	.pr-hero { padding-top: 44px; }
	.pr-hero__title { font-size: 36px; }
	.pr-hero__lead { font-size: 16px; }
	.pr-search { flex-direction: column; }
	.pr-section-title, .pr-beginner__title { font-size: 24px; }
	.pr-prose h2, .pr-prose .pr-faq h2 { font-size: 26px; }
	.pr-prose h3 { font-size: 21px; }
	.pr-prose .pr-toc, .pr-prose .pr-faq { padding: 26px 20px; }
	.pr-encart__body { padding: 22px 20px 26px; }
	.pr-encart__title { font-size: 22px !important; }
	.pr-card__title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
