/* =========================================================================
   PâtiSwap — Guides. Mêmes jetons que la page d'accueil et les fiches
   (ambre / brun / crème, EB Garamond + DM Sans, rayon 16 px, pilules).
   Registre éditorial : plus d'air, titres plus grands, moins de cadres.
   ========================================================================= */
:root {
	--psg-amber: #9A690F;
	--psg-amber-dark: #885C09;
	--psg-brown: #291901;
	--psg-ink: #1A0E00;
	--psg-text: #33240f;
	--psg-muted: #5a4a3a;
	--psg-cream: #FFF7F0;
	--psg-peach: #FFE0C1;
	--psg-line: #F0D9BC;
	--psg-field: #d9c3a5;
	--psg-green: #2e7d32;
	--psg-green-bg: #e8f5e9;
	--psg-red: #b3261e;
	--psg-red-bg: #fdecea;
	--psg-radius: 16px;
	--psg-radius-sm: 10px;
	--psg-shadow: 0 2px 10px rgba(26, 14, 0, .06);
	--psg-shadow-lg: 0 14px 34px rgba(26, 14, 0, .14);
	--psg-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
	--psg-sans: 'DM Sans', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
	--psg-gutter: 24px;
}

.psg, .psg *, .psg-fiche-guides, .psg-fiche-guides *, .psg-editor-block * { box-sizing: border-box; }

.psg {
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	background: #fff;
	color: var(--psg-text);
	font-family: var(--psg-sans);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: clip;
}
.psg a { color: var(--psg-amber-dark); }
.psg img { max-width: 100%; height: auto; display: block; }
.psg p { margin: 0; }
.psg ul, .psg ol { margin: 0; padding: 0; }
.psg-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--psg-gutter); }

.psg-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.psg-icon { flex: 0 0 auto; }

/* ---------- Titres de section ---------- */
.psg .psg-section { padding: 72px 0; }
.psg .psg-section--tight { padding: 40px 0 8px; }
.psg .psg-section-title {
	margin: 0 0 24px;
	font-family: var(--psg-serif);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.15;
	color: var(--psg-ink);
	letter-spacing: -.005em;
}
.psg .psg-section-title--quiet {
	font-family: var(--psg-sans);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--psg-muted);
}
.psg-section-head { margin-bottom: 28px; }
.psg-section-head .psg-section-title { margin-bottom: 8px; }
.psg-section-sub { color: var(--psg-muted); font-size: 17px; max-width: 680px; }
.psg-section-more { margin-top: 24px !important; }
.psg-section-more a, .psg-door__all, .psg-fiche-guides__all a {
	display: inline-flex; align-items: center; gap: 6px;
	font-weight: 700; text-decoration: none; color: var(--psg-amber-dark);
}
.psg-section-more a:hover, .psg-door__all:hover, .psg-fiche-guides__all a:hover { text-decoration: underline; }
.psg-section-more .psg-icon, .psg-door__all .psg-icon { width: 18px; height: 18px; }
.psg-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--psg-amber-dark); margin-bottom: 10px !important;
}

/* ---------- Boutons, puces, champs ---------- */
.psg .psg-btn, .psg-fiche-guides .psg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px;
	border: 0; border-radius: 999px;
	background: var(--psg-amber); color: #fff !important;
	font-family: var(--psg-sans); font-size: 15px; font-weight: 700; line-height: 1.1;
	text-decoration: none !important; cursor: pointer;
	box-shadow: 0 3px 10px rgba(154, 105, 15, .25);
	transition: background-color .2s ease, transform .15s ease;
}
.psg .psg-btn:hover, .psg .psg-btn:focus { background: var(--psg-amber-dark); color: #fff; }
.psg .psg-btn:focus-visible { outline: 3px solid var(--psg-brown); outline-offset: 2px; }
.psg .psg-btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.psg .psg-btn--ghost { background: #fff; color: var(--psg-amber-dark) !important; border: 1.5px solid var(--psg-amber); box-shadow: none; }
.psg .psg-btn--ghost:hover, .psg .psg-btn--ghost:focus { background: var(--psg-cream); color: var(--psg-brown) !important; }
.psg .psg-btn--block { width: 100%; }

.psg .psg-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
	border-radius: 999px; border: 1px solid var(--psg-line); background: var(--psg-cream);
	color: var(--psg-brown); font-size: 14px; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease;
}
.psg .psg-chip:hover { background: var(--psg-peach); border-color: #e9c79f; }
.psg .psg-chip:focus-visible, .psg a:focus-visible, .psg summary:focus-visible, .psg button:focus-visible, .psg select:focus-visible, .psg input:focus-visible {
	outline: 3px solid var(--psg-amber); outline-offset: 2px;
}
.psg .psg-chip--dark {
	background: rgba(28, 16, 1, .55); border-color: rgba(255, 224, 193, .55); color: var(--psg-cream);
}
.psg .psg-chip--dark:hover, .psg .psg-chip--dark:focus-visible { background: var(--psg-cream); color: var(--psg-brown); }

.psg-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.psg-field label { font-size: 13px; font-weight: 600; color: var(--psg-brown); }
.psg .psg-field input, .psg .psg-field select {
	width: 100%; height: 46px; margin: 0; padding: 0 12px;
	border: 1.5px solid var(--psg-field); border-radius: var(--psg-radius-sm);
	background-color: #fff; color: var(--psg-brown); font-size: 16px; line-height: 1.2; box-shadow: none;
}
.psg .psg-field input:focus, .psg .psg-field select:focus { border-color: var(--psg-amber); }

.psg-pill {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.psg-pill--best { background: var(--psg-amber); color: #fff; }
.psg-tag {
	display: inline-block; padding: 2px 10px; border-radius: 999px;
	background: #f0ebe3; color: var(--psg-muted); font-size: 12px; font-weight: 600;
}

/* ---------- Badges ---------- */
.psg-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.psg .psg-badge {
	display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 12px;
	border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; text-decoration: none;
}
.psg .psg-badge .psg-icon { width: 15px; height: 15px; }
.psg .psg-badge--cat { border: 1.5px solid var(--psg-amber); color: var(--psg-amber-dark); background: #fff; }
.psg .psg-badge--cat:hover { background: var(--psg-cream); }
.psg-badge--fmt { background: var(--psg-peach); color: var(--psg-brown); }
.psg-badge--regime { background: var(--psg-green-bg); color: var(--psg-green); }
.psg-seal {
	display: inline-flex !important; align-items: center; gap: 6px; min-height: 30px; padding: 4px 14px 4px 10px;
	border-radius: 999px; background: var(--psg-brown); color: var(--psg-peach);
	font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.psg-seal .psg-icon { width: 18px; height: 18px; color: var(--psg-peach); }
.psg-seal--card { position: absolute; left: 12px; bottom: 12px; }

/* ---------- Hero de l'accueil des guides ---------- */
.psg-hero {
	position: relative;
	padding: 150px 0 72px;
	background:
		linear-gradient(180deg, rgba(26, 14, 0, .78), rgba(26, 14, 0, .70)),
		url('../../../uploads/2026/09/patiswap-hero-ingredients-v2.jpg') center / cover no-repeat,
		var(--psg-brown);
	color: var(--psg-cream);
	text-align: center;
}
.psg-hero__inner { max-width: 860px; }
.psg .psg-hero .psg-eyebrow { color: var(--psg-peach); }
.psg .psg-hero__title {
	margin: 0 0 14px; font-family: var(--psg-serif); font-weight: 600;
	font-size: 58px; line-height: 1.05; color: #fff; letter-spacing: -.01em;
}
.psg-hero__sub { font-size: 20px; color: rgba(255, 247, 240, .92); max-width: 640px; margin: 0 auto 30px !important; }
.psg-hero--compact { padding: 128px 0 40px; }
.psg-hero--compact .psg-hero__title { font-size: 40px; margin-bottom: 20px; }

.psg-examples { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px; }
.psg-examples__label { font-size: 14px; font-weight: 600; color: var(--psg-peach); }
.psg-examples__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.psg-examples__list li { margin: 0; }

/* ---------- Recherche (combobox) ---------- */
.psg-search { position: relative; max-width: 700px; margin: 0 auto; text-align: left; }
.psg-search__field {
	display: flex; align-items: center; gap: 6px;
	background: #fff; border: 1.5px solid var(--psg-line); border-radius: 999px;
	padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(26, 14, 0, .28);
}
.psg-search__field:focus-within { border-color: var(--psg-amber); outline: 3px solid var(--psg-peach); outline-offset: 2px; }
.psg-search__field > .psg-icon { color: var(--psg-muted); }
.psg .psg-search__input, .psg .psg-search__input:focus {
	flex: 1 1 auto; min-width: 0; height: auto; margin: 0;
	padding: 10px 4px !important; border: 0 !important; background: transparent !important;
	box-shadow: none !important; outline: none !important;
	color: var(--psg-brown); font-size: 17px; line-height: 1.4;
}
.psg-search__input::placeholder { color: #6b5a48; opacity: 1; }
.psg .psg-search__submit {
	flex: 0 0 auto; min-height: 46px; padding: 0 24px; margin: 0;
	border: 0; border-radius: 999px; background: var(--psg-amber); color: #fff;
	font-family: var(--psg-sans); font-size: 16px; font-weight: 700; line-height: 1; cursor: pointer;
}
.psg .psg-search__submit:hover, .psg .psg-search__submit:focus { background: var(--psg-amber-dark); color: #fff; }
.psg-search--page { margin: 24px 0 0; }
.psg-search--page .psg-search__field { box-shadow: var(--psg-shadow); }

.psg-search__list {
	position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 8px);
	max-height: min(420px, 60vh); overflow-y: auto; padding: 6px;
	background: #fff; border: 1px solid var(--psg-line); border-radius: 14px; box-shadow: var(--psg-shadow-lg);
	color: var(--psg-brown); text-align: left;
}
.psg-search__list[hidden] { display: none; }
.psg-search__group + .psg-search__group { border-top: 1px solid var(--psg-line); margin-top: 4px; padding-top: 4px; }
.psg-search__group-label { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--psg-muted); }
.psg-opt {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	padding: 10px 12px; border-radius: 10px; border-left: 3px solid transparent; cursor: pointer;
}
.psg-opt[aria-selected="true"], .psg-opt:hover { background: var(--psg-cream); border-left-color: var(--psg-amber); }
.psg-opt__name { font-weight: 600; color: var(--psg-ink); }
.psg-opt__meta { flex: 0 0 auto; font-size: 13px; color: var(--psg-muted); }
.psg-opt--action .psg-opt__name { color: var(--psg-amber-dark); }
.psg-opt--all .psg-opt__name { font-weight: 700; color: var(--psg-amber-dark); }

/* ---------- Portes d'entrée ---------- */
.psg-doors-section { background: var(--psg-cream); padding-top: 48px !important; }
.psg-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.psg-doors__tabs { display: none; }
.psg-door {
	display: flex; flex-direction: column; gap: 12px; min-width: 0;
	padding: 24px; background: #fff; border: 1px solid var(--psg-line); border-radius: var(--psg-radius);
	box-shadow: var(--psg-shadow);
}
.psg-door__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: var(--psg-peach); color: var(--psg-amber-dark);
}
.psg .psg-door__title { margin: 0; font-family: var(--psg-serif); font-size: 23px; font-weight: 600; line-height: 1.2; color: var(--psg-ink); }
.psg-door__text { font-size: 15px; color: var(--psg-muted); }
.psg-door__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.psg-door__chips li { margin: 0; }
.psg-door__all { margin-top: auto; padding-top: 4px; font-size: 15px; }

/* ---------- À la une ---------- */
.psg-featured__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.psg-featured__side { display: flex; flex-direction: column; gap: 24px; }

/* ---------- Cartes ---------- */
.psg-card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.psg-card__media {
	position: relative; overflow: hidden; border-radius: 14px; background: var(--psg-cream);
	aspect-ratio: 3 / 2;
}
.psg-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .35s ease; }
.psg-card:hover .psg-card__media img { transform: scale(1.03); }
.psg-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--psg-amber); }
.psg-card__placeholder .psg-icon { width: 40px; height: 40px; }
.psg-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.psg-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--psg-amber-dark); }
.psg .psg-card__title { margin: 0; font-family: var(--psg-serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--psg-ink); }
.psg .psg-card__link { color: inherit; text-decoration: none; }
.psg-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.psg-card:hover .psg-card__link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.psg-card:focus-within { outline: 3px solid var(--psg-amber); outline-offset: 6px; border-radius: 14px; }
.psg .psg-card__link:focus-visible { outline: none; }
.psg-card__excerpt {
	color: var(--psg-muted); font-size: 15px; line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.psg-card__meta { font-size: 13px; color: var(--psg-muted); }

.psg-card--feature .psg-card__media { aspect-ratio: 16 / 10; border-radius: 18px; }
.psg .psg-card--feature .psg-card__title { font-size: 34px; line-height: 1.12; }
.psg-card--feature .psg-card__excerpt { font-size: 17px; -webkit-line-clamp: 3; }

.psg-card--side, .psg-card--row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start; }
.psg-card--side .psg-card__media, .psg-card--row .psg-card__media { aspect-ratio: 4 / 3; border-radius: 12px; }
.psg .psg-card--side .psg-card__title, .psg-fiche-guides .psg-card--row .psg-card__title, .psg .psg-card--row .psg-card__title { font-size: 20px; }

.psg-card--question {
	display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px;
	padding: 18px 4px; border-bottom: 1px solid var(--psg-line);
}
.psg .psg-card--question .psg-card__title { font-size: 21px; }
.psg-card__arrow { color: var(--psg-amber); transition: transform .2s ease; }
.psg-card--question:hover .psg-card__arrow { transform: translateX(4px); }
.psg-card--question:focus-within { outline-offset: 2px; }

.psg-grid { display: grid; gap: 40px 32px; }
.psg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.psg-grid--questions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--psg-line); }
.psg-grid--rows { grid-template-columns: 1fr; gap: 18px; }

/* ---------- Pourquoi / Testés / Tous ---------- */
.psg-why { background: var(--psg-cream); }
.psg-tested .psg-seal { margin-bottom: 12px; }
.psg-all { border-top: 1px solid var(--psg-line); scroll-margin-top: 24px; }
.psg-all__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 28px; }
.psg-all__head .psg-section-title { margin: 0; flex: 1 1 100%; }
.psg-catnav { flex: 1 1 auto; min-width: 0; }
.psg-catnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.psg-catnav li { margin: 0; }
.psg .psg-pill-link {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--psg-line); background: #fff; color: var(--psg-brown);
	font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.psg .psg-pill-link:hover { background: var(--psg-cream); }
.psg .psg-pill-link.is-current { background: var(--psg-brown); border-color: var(--psg-brown); color: var(--psg-cream); }

.psg-filters { position: relative; flex: 0 0 auto; }
.psg-filters__toggle {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px;
	border: 1.5px solid var(--psg-amber); border-radius: 999px; background: #fff;
	color: var(--psg-amber-dark); font-weight: 700; font-size: 14px; cursor: pointer; list-style: none;
}
.psg-filters__toggle::-webkit-details-marker { display: none; }
.psg-filters__toggle::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.psg-filters[open] .psg-filters__toggle::after { transform: rotate(-135deg) translateY(-2px); }
.psg-filters__count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--psg-amber); color: #fff; font-size: 12px; }
.psg-filters__form {
	display: grid; grid-template-columns: repeat(2, minmax(160px, 220px)) auto; gap: 12px; align-items: end;
	margin-top: 12px; padding: 16px; background: var(--psg-cream); border: 1px solid var(--psg-line); border-radius: var(--psg-radius);
}
.psg-filters__actions { display: flex; align-items: center; gap: 12px; }
.psg-filters__reset { font-size: 14px; font-weight: 600; }
.psg-active-filters { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -8px 0 24px !important; }
.psg-active-filters li { margin: 0; }
.psg-active-filters a {
	display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border-radius: 999px;
	background: var(--psg-peach); color: var(--psg-brown); font-weight: 600; font-size: 14px; text-decoration: none;
}
.psg-active-filters a:hover { background: #ffd2a6; }
.psg-all .psg-ings { margin: 0 0 36px; }
.psg-empty { color: var(--psg-muted); font-size: 16px; padding: 24px; background: var(--psg-cream); border-radius: var(--psg-radius); }

.psg-pagination { margin-top: 48px; }
.psg-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; }
.psg-pagination li { margin: 0; }
.psg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--psg-line); color: var(--psg-brown); text-decoration: none; font-weight: 600;
}
.psg-pagination .page-numbers.current { background: var(--psg-brown); color: var(--psg-cream); border-color: var(--psg-brown); }
.psg-pagination a.page-numbers:hover { background: var(--psg-cream); }

/* ---------- Résultats de recherche : ingrédients ---------- */
.psg-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.psg-quick__item {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0;
	padding: 12px 14px; background: #fff; border: 1px solid var(--psg-line); border-radius: 14px; box-shadow: var(--psg-shadow);
}
.psg-quick__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Passerelle outils ---------- */
.psg-bridge { background: var(--psg-cream); padding: 64px 0; }
.psg-bridge__grid, .psg-action__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.psg-action__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.psg .psg-bridge__item, .psg .psg-action__item {
	display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px;
	background: #fff; border: 1px solid var(--psg-line); border-radius: var(--psg-radius); box-shadow: var(--psg-shadow);
	color: var(--psg-brown); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.psg .psg-bridge__item:hover, .psg .psg-action__item:hover { border-color: var(--psg-amber); transform: translateY(-2px); }
.psg-bridge__item > .psg-icon, .psg-action__item > .psg-icon {
	width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--psg-peach); color: var(--psg-amber-dark);
}
.psg-bridge__item strong, .psg-action__item strong { display: block; font-size: 17px; color: var(--psg-ink); }
.psg-bridge__item span span, .psg-action__item span span { display: block; font-size: 14px; color: var(--psg-muted); margin-top: 2px; }
.psg-action__item { padding: 16px 18px !important; }
.psg-action__item strong { font-size: 15px; }

/* ---------- En-têtes de page (catégorie, recherche) ---------- */
.psg-pagehead { background: var(--psg-cream); padding: 40px 0 48px; border-bottom: 1px solid var(--psg-line); }
.psg .psg-pagehead__title { margin: 0; font-family: var(--psg-serif); font-size: 48px; font-weight: 600; line-height: 1.08; color: var(--psg-ink); }
.psg-pagehead__page { font-size: .6em; color: var(--psg-muted); }
.psg-pagehead__intro { margin-top: 14px !important; font-size: 19px; color: var(--psg-muted); max-width: 720px; }
.psg-pagehead .psg-search { margin-left: 0; }
.psg-archive__lead { margin-bottom: 48px; }
.psg-archive__lead .psg-card--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center; }

/* ---------- Fil d'Ariane ---------- */
.psg-breadcrumb { margin-bottom: 18px; font-size: 14px; }
.psg-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; gap: 4px; }
.psg-breadcrumb li { margin: 0; color: var(--psg-muted); }
.psg-breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--psg-amber); }
.psg-breadcrumb a { color: var(--psg-muted) !important; text-decoration: none; }
.psg-breadcrumb a:hover { color: var(--psg-amber-dark) !important; text-decoration: underline; }
.psg-breadcrumb [aria-current] { color: var(--psg-brown); }

/* ---------- Article ---------- */
.psg-article__header { background: var(--psg-cream); padding: 40px 0 44px; border-bottom: 1px solid var(--psg-line); }
.psg-wrap--article, .psg-article__layout { max-width: 1120px; }
.psg .psg-article__title {
	margin: 0 0 16px; max-width: 840px; font-family: var(--psg-serif); font-weight: 600;
	font-size: 48px; line-height: 1.1; color: var(--psg-ink); letter-spacing: -.01em;
}
.psg-article__lead { max-width: 760px; margin-bottom: 18px !important; font-size: 20px; line-height: 1.55; color: #4a3722; }
.psg-meta { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--psg-muted); }
.psg-meta > span + span::before { content: "·"; margin: 0 10px; color: var(--psg-amber); }
.psg-meta__author { font-weight: 600; color: var(--psg-brown); }

.psg-article__layout { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; gap: 64px; padding-top: 40px; padding-bottom: 24px; }
.psg-article__main { min-width: 0; }
.psg-article__aside { display: none; }
.psg-sticky { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .psg-sticky { top: 64px; }

.psg-article__figure { margin: 0 0 36px; }
.psg-article__figure img { width: 100%; max-height: 440px; object-fit: cover; border-radius: 18px; }
.psg-article__credit { margin-top: 8px; font-size: 12px; color: var(--psg-muted); }
.psg-article__credit a { color: var(--psg-muted) !important; }

/* Sommaire */
.psg-toc--aside .psg-toc__title { margin-bottom: 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--psg-muted); }
.psg-toc__list { list-style: none; border-left: 2px solid var(--psg-line); }
.psg-toc__list li { margin: 0; }
.psg .psg-toc__list a {
	display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
	font-size: 14px; line-height: 1.4; color: var(--psg-muted); text-decoration: none;
}
.psg .psg-toc__list a:hover { color: var(--psg-brown); }
.psg .psg-toc__list a.is-active { border-left-color: var(--psg-amber); color: var(--psg-ink); font-weight: 600; }
.psg-toc--inline { margin: 0 0 28px; border: 1px solid var(--psg-line); border-radius: 14px; background: #fff; }
.psg-toc--inline summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px;
	cursor: pointer; list-style: none; font-weight: 700; color: var(--psg-brown);
}
.psg-toc--inline summary::-webkit-details-marker { display: none; }
.psg-toc--inline summary::after { content: ""; width: 9px; height: 9px; border: solid var(--psg-amber); border-width: 0 2px 2px 0; transform: rotate(45deg); margin-left: 8px; }
.psg-toc--inline[open] summary::after { transform: rotate(-135deg); }
.psg-toc__count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--psg-muted); }
.psg-toc--inline nav { padding: 0 18px 14px; }

.psg-asidecard { padding: 18px; background: var(--psg-cream); border: 1px solid var(--psg-line); border-radius: var(--psg-radius); display: flex; flex-direction: column; gap: 10px; }
.psg-asidecard__title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--psg-ink); }
.psg-asidecard__title .psg-icon { color: var(--psg-amber); }
.psg-asidecard__link { font-size: 14px; font-weight: 600; text-align: center; }

/* Texte courant */
.psg-prose { font-size: 18px; line-height: 1.72; color: var(--psg-text); }
.psg .psg-prose > * + * { margin-top: 1.1em; }
.psg .psg-prose p { margin: 0; }
.psg .psg-prose p + p { margin-top: 1.1em; }
.psg .psg-prose h2 {
	margin: 2.2em 0 .6em; font-family: var(--psg-serif); font-size: 32px; font-weight: 600; line-height: 1.18; color: var(--psg-ink);
	scroll-margin-top: 24px;
}
.psg .psg-prose h3 { margin: 1.8em 0 .4em; font-family: var(--psg-serif); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--psg-ink); }
.psg .psg-prose ul, .psg .psg-prose ol { padding-left: 1.3em; }
.psg .psg-prose li { margin: .35em 0; }
.psg .psg-prose a { color: var(--psg-amber-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.psg .psg-prose a:hover { color: var(--psg-brown); }
.psg .psg-prose strong { color: var(--psg-ink); }
.psg .psg-prose .psg-inlink { text-decoration-style: dotted; }
.psg .psg-prose > h2:first-child { margin-top: 0; }
.psg .psg-prose .wp-block-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.psg .psg-prose .wp-block-table td, .psg .psg-prose .wp-block-table th { border: 1px solid var(--psg-line); padding: 10px 12px; }

/* ---------- En bref ---------- */
.psg-enbref {
	margin: 0 0 32px; padding: 26px 28px; background: var(--psg-cream);
	border: 1px solid var(--psg-line); border-left: 5px solid var(--psg-amber); border-radius: var(--psg-radius);
}
.psg .psg-enbref__title {
	margin: 0 0 10px; font-family: var(--psg-sans); font-size: 13px; font-weight: 800; letter-spacing: .12em;
	text-transform: uppercase; color: var(--psg-amber-dark); line-height: 1.3;
}
.psg-enbref__text { font-size: 19px; line-height: 1.55; color: var(--psg-ink); font-weight: 500; }
.psg-enbref__label { margin-top: 18px !important; font-size: 14px; font-weight: 700; color: var(--psg-brown); }
.psg-enbref__list { list-style: none; margin-top: 8px !important; }
.psg-subline {
	display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; align-items: baseline; gap: 4px 14px;
	padding: 10px 0; border-top: 1px dashed #e8cfae; margin: 0;
}
.psg-subline:first-child { border-top: 0; }
.psg .psg-subline__name { font-weight: 700; color: var(--psg-ink); text-decoration: none; }
.psg .psg-subline__name:hover { text-decoration: underline; }
.psg-subline__qty { color: var(--psg-text); }
.psg-enbref__more { margin-top: 14px !important; font-size: 15px; font-weight: 600; }

/* Formulaire calculateur */
.psg-calc { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e8cfae; }
.psg-calc__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; font-weight: 700; color: var(--psg-ink); }
.psg-calc__title .psg-icon { color: var(--psg-amber); }
.psg-calc__fields { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(110px, 1.1fr) minmax(130px, 1.3fr) minmax(130px, 1.3fr); gap: 12px; align-items: end; }
.psg-calc__submit { grid-column: 1 / -1; display: flex; }
.psg-calc__more { display: none; }
.psg-calc-block { margin: 32px 0; padding: 24px; background: var(--psg-cream); border: 1px solid var(--psg-line); border-radius: var(--psg-radius); }
.psg-calc-block .psg-calc { margin: 0; padding: 0; border: 0; }

/* ---------- Tableaux de données ---------- */
.psg-subtable, .psg-verdict, .psg-compare { margin: 36px 0; }
.psg-subtable__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 14px; }
.psg-subtable__title { font-family: var(--psg-serif); font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--psg-ink); }
.psg-subtable__filter { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--psg-green-bg); color: var(--psg-green); font-size: 13px; font-weight: 700; }
.psg-subtable__filter .psg-icon { width: 14px; height: 14px; }
.psg-subtable__note { margin-top: 10px !important; font-size: 13px; color: var(--psg-muted); line-height: 1.5; }
.psg-table-wrap { border: 1px solid var(--psg-line); border-radius: 14px; overflow: hidden; background: #fff; }
.psg .psg-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.psg .psg-table th, .psg .psg-table td { padding: 13px 14px; border: 0; border-top: 1px solid var(--psg-line); text-align: left; vertical-align: top; }
.psg .psg-table thead th {
	border-top: 0; background: var(--psg-cream); font-size: 12px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--psg-muted); vertical-align: bottom;
}
.psg .psg-table tbody th { font-weight: 700; color: var(--psg-ink); }
.psg .psg-table tbody th a { color: var(--psg-ink); text-decoration: none; }
.psg .psg-table tbody th a:hover { text-decoration: underline; }
.psg .psg-table tr.is-best { background: #fffaf2; }
.psg .psg-table .psg-pill { margin-top: 4px; }
.psg .psg-link-calc {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px;
	border: 1.5px solid var(--psg-amber); color: var(--psg-amber-dark); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.psg .psg-link-calc:hover { background: var(--psg-cream); }
.psg-table__action { text-align: right !important; vertical-align: middle !important; }

.psg-state { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.psg-state--best { background: var(--psg-amber); color: #fff; }
.psg-state--ok { background: var(--psg-green-bg); color: var(--psg-green); }
.psg-state--no { background: var(--psg-red-bg); color: var(--psg-red); }
.psg-state--unknown, .psg-state--none { background: #f3efe9; color: #6b5a48; }
.psg .psg-table--verdict td { text-align: center; vertical-align: middle; }
.psg-verdict__why { margin-top: 14px; padding: 16px 18px; background: var(--psg-red-bg); border-radius: 12px; font-size: 15px; }
.psg-verdict__why-title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px !important; font-weight: 700; color: var(--psg-red); }
.psg-verdict__why ul { list-style: none; }
.psg-verdict__why li { margin: 6px 0; color: var(--psg-text); }

.psg-mini { display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; }
.psg-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.psg .psg-mini a { font-size: 15px; font-weight: 700; color: var(--psg-ink); text-decoration: none; }
.psg .psg-table--compare tbody th { width: 26%; font-weight: 600; color: var(--psg-muted); }
.psg .psg-table--compare thead th { vertical-align: middle; }
.psg-compare__verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.psg-compare__choice { padding: 16px 18px; background: var(--psg-cream); border-radius: 12px; border: 1px solid var(--psg-line); font-size: 15px; }
.psg-compare__choice-title { margin-bottom: 4px !important; font-weight: 700; color: var(--psg-ink); }

/* Tableau de substitution : colonnes resserrées, résultat groupé */
.psg .psg-table tbody th a { display: block; }
.psg .psg-table tbody th .psg-pill { display: inline-block; margin-top: 6px; }
.psg .psg-table__qty { font-weight: 700; color: var(--psg-ink); min-width: 96px; }
.psg-res { display: block; font-size: 14px; line-height: 1.45; }
.psg-res + .psg-res { margin-top: 4px; }
.psg-res__k { display: inline-block; min-width: 54px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--psg-muted); }

/* Verdict : première colonne fixe, défilement horizontal si besoin */
.psg-table-wrap--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.psg-table-wrap--scroll:focus-visible { outline: 3px solid var(--psg-amber); outline-offset: 2px; }
.psg .psg-table--verdict th[scope="row"], .psg .psg-table--verdict thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 150px; box-shadow: 1px 0 0 var(--psg-line); }
.psg .psg-table--verdict thead th:first-child { background: var(--psg-cream); }
.psg .psg-table--verdict thead th { white-space: nowrap; text-align: center; }
.psg .psg-table--verdict thead th:first-child { text-align: left; }
.psg-state--compact { padding: 2px 8px; font-size: 12px; }
.psg .psg-table--verdict th, .psg .psg-table--verdict td { padding: 11px 6px; }
.psg .psg-table--verdict th[scope="row"], .psg .psg-table--verdict thead th:first-child { padding-left: 14px; min-width: 132px; }
.psg .psg-table--verdict thead th { font-size: 11px; letter-spacing: .04em; }
.psg-verdict__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; font-size: 13px; color: var(--psg-muted); }
.psg-verdict__legend > span { display: inline-flex; align-items: center; gap: 6px; }

.psg-verdict__sum { display: none; }
.psg-res-wrap { display: block; }
.psg .psg-prose .psg-table a, .psg .psg-prose a.psg-link-calc, .psg .psg-prose a.psg-ing__name, .psg .psg-prose .psg-mini a, .psg .psg-prose a.psg-btn, .psg .psg-prose .psg-subline__name { text-decoration: none; }
.psg .psg-prose .psg-table a:hover, .psg .psg-prose .psg-subline__name:hover { text-decoration: underline; }

/* ---------- Expérience ---------- */
.psg-exp { margin: 40px 0; padding: 28px; border: 1px solid var(--psg-line); border-radius: 20px; background: linear-gradient(180deg, var(--psg-cream), #fff 40%); }
.psg .psg-exp__title { margin: 14px 0 16px; font-family: var(--psg-serif); font-size: 28px; font-weight: 600; color: var(--psg-ink); }
.psg-exp__label { margin-bottom: 4px !important; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--psg-muted); }
.psg-exp__protocol { margin-bottom: 18px; font-size: 15px; }
.psg-exp__note { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--psg-muted); }
.psg-exp__verdict { margin-top: 18px; padding: 16px 18px; background: var(--psg-brown); color: var(--psg-cream); border-radius: 12px; }
.psg-exp__verdict .psg-exp__label { color: var(--psg-peach); }
.psg-score { display: inline-flex; align-items: center; gap: 6px; }
.psg-score__bar { position: relative; width: 44px; height: 6px; border-radius: 3px; background: var(--psg-line); overflow: hidden; }
.psg-score__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--psg-score, 0) * 20%); background: var(--psg-amber); border-radius: 3px; }
.psg-score__val { font-weight: 700; font-size: 13px; }

/* ---------- Encadrés ---------- */
.psg-callout { margin: 28px 0; padding: 18px 20px; border-radius: 14px; border-left: 4px solid; font-size: 16px; line-height: 1.6; }
.psg-callout__title { display: flex; align-items: center; gap: 8px; margin-bottom: 6px !important; font-weight: 700; }
.psg .psg-callout__body p + p { margin-top: .6em; }
.psg .psg-callout__body ul { padding-left: 1.2em; }
.psg-callout--eviter { background: var(--psg-red-bg); border-color: var(--psg-red); }
.psg-callout--eviter .psg-callout__title { color: var(--psg-red); }
.psg-callout--attention { background: #fff4e0; border-color: var(--psg-amber); }
.psg-callout--attention .psg-callout__title { color: var(--psg-amber-dark); }
.psg-callout--astuce { background: #eef7ee; border-color: var(--psg-green); }
.psg-callout--astuce .psg-callout__title { color: var(--psg-green); }
.psg-callout--science { background: var(--psg-cream); border-color: var(--psg-brown); }
.psg-callout--science .psg-callout__title { color: var(--psg-brown); }

/* ---------- Cartes ingrédients ---------- */
.psg-ings { margin: 48px 0 32px; }
.psg .psg-ings .psg-section-title, .psg .psg-action .psg-section-title, .psg .psg-related .psg-section-title { font-size: 26px; margin-bottom: 16px; }
.psg-ings__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; list-style: none; }
.psg-ing {
	position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px;
	background: #fff; border: 1px solid var(--psg-line); border-radius: 14px; box-shadow: var(--psg-shadow);
}
.psg-ing:hover { border-color: var(--psg-amber); }
.psg-ing__media { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--psg-cream); }
.psg-ing__media img { width: 56px; height: 56px !important; object-fit: cover; }
.psg-ing__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.psg .psg-ing__name { font-weight: 700; color: var(--psg-ink); text-decoration: none; line-height: 1.3; }
.psg-ing__name::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.psg-ing__meta { font-size: 13px; color: var(--psg-muted); }
.psg-ing__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.psg-ing:focus-within { outline: 3px solid var(--psg-amber); outline-offset: 2px; }
.psg .psg-ing__name:focus-visible { outline: none; }

.psg-action { margin: 40px 0; }
.psg-related { padding: 56px 0 72px; border-top: 1px solid var(--psg-line); margin-top: 32px; }

/* ---------- FAQ & sources ---------- */
.psg-faq { margin: 48px 0 24px; }
.psg .psg-faq h2 { margin: 0 0 12px; font-family: var(--psg-serif); font-size: 30px; font-weight: 600; color: var(--psg-ink); }
.psg-faq__item { border-bottom: 1px solid var(--psg-line); }
.psg-faq__item:first-of-type { border-top: 1px solid var(--psg-line); }
.psg-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 2px; cursor: pointer; list-style: none; }
.psg-faq__item summary::-webkit-details-marker { display: none; }
.psg .psg-faq__q { margin: 0 !important; font-family: var(--psg-sans) !important; font-size: 17px !important; font-weight: 700 !important; line-height: 1.4 !important; color: var(--psg-ink) !important; }
.psg-faq__icon { position: relative; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--psg-cream); border: 1px solid var(--psg-line); }
.psg-faq__icon::before, .psg-faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: var(--psg-amber-dark); transition: transform .2s ease; }
.psg-faq__icon::after { transform: rotate(90deg); }
.psg-faq__item[open] .psg-faq__icon::after { transform: rotate(0); }
.psg-faq__a { padding: 0 2px 18px; color: var(--psg-muted); font-size: 16px; }
.psg-sources { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--psg-line); font-size: 14px; color: var(--psg-muted); }
.psg .psg-sources h2 { margin: 0 0 8px; font-family: var(--psg-sans); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--psg-muted); }
.psg .psg-sources ol { padding-left: 1.2em; }
.psg .psg-sources li { margin: 4px 0; }
.psg .psg-sources a { color: var(--psg-muted); }

/* ---------- Divers ---------- */
.psg .psg-totop {
	position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 50%; background: var(--psg-brown); color: var(--psg-cream); text-decoration: none;
	box-shadow: 0 4px 14px rgba(26, 14, 0, .3); font-size: 18px;
}
.psg .psg-totop[hidden] { display: none; }

/* ---------- Fiche ingrédient : guides associés ---------- */
.psg-fiche-guides {
	margin: 0 0 20px; padding: 20px 24px; background: #fff; border: 1px solid var(--psg-line);
	border-radius: 16px; box-shadow: 0 2px 10px rgba(26, 14, 0, .05); font-family: var(--psg-sans);
}
.psg-fiche-guides h2 { margin: 0 0 6px !important; font-family: Georgia, 'Times New Roman', serif; font-size: 22px; color: var(--psg-ink); }
.psg-fiche-guides__intro { margin: 0 0 14px !important; font-size: 15px; color: var(--psg-muted); }
.psg-fiche-guides .psg-grid { display: grid; gap: 14px; }
.psg-fiche-guides .psg-card { position: relative; }
.psg-fiche-guides .psg-card--row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.psg-fiche-guides .psg-card__media { overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; background: var(--psg-cream); }
.psg-fiche-guides .psg-card__media img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.psg-fiche-guides .psg-card__body { display: flex; flex-direction: column; gap: 2px; }
.psg-fiche-guides .psg-card__kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--psg-amber-dark); margin: 0; }
.psg-fiche-guides .psg-card__title { margin: 0; font-family: var(--psg-serif); font-size: 19px; font-weight: 600; line-height: 1.25; }
.psg-fiche-guides .psg-card__link { color: var(--psg-ink) !important; text-decoration: none !important; }
.psg-fiche-guides .psg-card__link::after { content: ""; position: absolute; inset: 0; }
.psg-fiche-guides .psg-card:hover .psg-card__link { text-decoration: underline !important; }
.psg-fiche-guides .psg-card:focus-within { outline: 3px solid var(--psg-amber); outline-offset: 3px; border-radius: 10px; }
.psg-fiche-guides .psg-card__meta { margin: 0; font-size: 13px; color: var(--psg-muted); }
.psg-fiche-guides .psg-seal--card { display: none !important; }
.psg-fiche-guides__all { margin: 14px 0 0 !important; font-size: 15px; }
.psg-fiche-sublink { margin: -4px 0 10px !important; font-size: 14px; }
.psg-fiche-sublink a { color: var(--psg-amber-dark); font-weight: 600; text-decoration: none; }
.psg-fiche-sublink a:hover { text-decoration: underline; }

/* ---------- Éditeur ---------- */
.psg-editor-block { font-family: var(--psg-sans); }
.psg-editor-empty { padding: 16px; border: 1px dashed var(--psg-field); border-radius: 10px; color: var(--psg-muted); font-size: 14px; }

/* =========================================================================
   Grand écran : colonne latérale de l'article
   ========================================================================= */
@media (min-width: 1200px) {
	.psg-article__layout.has-toc, .psg-article__layout:has(.psg-article__aside) { grid-template-columns: minmax(0, 720px) 272px; }
	.psg-article__aside { display: block; }
	.psg-article__layout.has-toc .psg-toc--inline { display: none; }
}

/* =========================================================================
   Tablette
   ========================================================================= */
@media (max-width: 1199px) {
	.psg-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psg-featured__grid { grid-template-columns: 1fr; gap: 32px; }
	.psg-featured__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.psg-featured__side .psg-card--side { display: flex; flex-direction: column; gap: 12px; }
	.psg-featured__side .psg-card--side .psg-card__media { aspect-ratio: 3 / 2; }
	.psg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.psg .psg-hero__title { font-size: 48px; }
	.psg .psg-article__title { font-size: 42px; }
	.psg-action__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Mobile (pas une réduction : ordre, densité et interactions revus)
   ========================================================================= */
@media (max-width: 767px) {
	:root { --psg-gutter: 16px; }
	.psg { font-size: 16px; }
	.psg .psg-section { padding: 44px 0; }
	.psg .psg-section-title { font-size: 27px; margin-bottom: 18px; }
	.psg-section-sub { font-size: 16px; }

	.psg-hero { padding: 162px 0 36px; }
	.psg .psg-hero__title { font-size: 36px; margin-bottom: 10px; }
	.psg-hero__sub { font-size: 17px; margin-bottom: 20px !important; }
	.psg-hero--compact { padding: 158px 0 28px; }
	.psg .psg-section-title--quiet { font-size: 12px; margin-bottom: 14px; }
	.psg-hero--compact .psg-hero__title { font-size: 30px; }
	.psg-examples { display: block; margin-top: 16px; }
	.psg-examples__label { display: block; margin-bottom: 8px; font-size: 13px; }
	.psg .psg-examples__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 calc(-1 * var(--psg-gutter)) !important; padding-left: var(--psg-gutter); padding-right: var(--psg-gutter); scroll-snap-type: x proximity; }
	.psg-examples__list::-webkit-scrollbar { display: none; }
	.psg-examples__list li { flex: 0 0 auto; scroll-snap-align: start; }
	.psg-search__field { padding: 5px 5px 5px 14px; }
	.psg .psg-search__input, .psg .psg-search__input:focus { font-size: 16px; }
	.psg .psg-search__submit { min-height: 44px; padding: 0 16px; font-size: 15px; }

	/* Portes : onglets + puces (~200 px au lieu de 4 cartes empilées) */
	.psg-doors-section { padding-top: 32px !important; padding-bottom: 32px !important; }
	.psg-doors { grid-template-columns: 1fr; gap: 12px; }
	.psg-doors.is-tabbed .psg-doors__tabs {
		display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--psg-gutter));
		padding: 2px var(--psg-gutter) 6px;
	}
	.psg-doors.is-tabbed .psg-doors__tabs::-webkit-scrollbar { display: none; }
	.psg .psg-doors__tabs button,
	.psg .psg-doors__tabs button:hover,
	.psg .psg-doors__tabs button:focus {
		flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; padding: 0 16px;
		border: 1px solid var(--psg-line); border-radius: 999px; background: #fff; color: var(--psg-brown);
		font-family: var(--psg-sans); font-size: 15px; font-weight: 700; line-height: 1; box-shadow: none;
	}
	.psg .psg-doors__tabs button .psg-icon { width: 18px; height: 18px; color: var(--psg-amber); }
	.psg .psg-doors__tabs button[aria-selected="true"] { background: var(--psg-brown); border-color: var(--psg-brown); color: var(--psg-cream); }
	.psg .psg-doors__tabs button[aria-selected="true"] .psg-icon { color: var(--psg-peach); }
	.psg-doors.is-tabbed .psg-door { padding: 18px; gap: 10px; }
	.psg-doors.is-tabbed .psg-door__icon { display: none; }
	.psg-doors.is-tabbed .psg-door[hidden] { display: none; }
	.psg .psg-door__title { font-size: 20px; }
	.psg-door__text { font-size: 14px; }

	.psg .psg-card--feature .psg-card__title { font-size: 26px; }
	.psg-card--feature .psg-card__excerpt { font-size: 16px; }
	.psg-featured__side { grid-template-columns: 1fr; gap: 16px; }
	.psg-featured__side .psg-card--side { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
	.psg-featured__side .psg-card--side .psg-card__media { aspect-ratio: 1; }
	.psg .psg-card--side .psg-card__title, .psg .psg-card--row .psg-card__title { font-size: 18px; }

	.psg-grid--3 { grid-template-columns: 1fr; gap: 18px; }
	.psg-grid--list .psg-card--default { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
	.psg-grid--list .psg-card--default .psg-card__media { aspect-ratio: 1; border-radius: 12px; }
	.psg .psg-grid--list .psg-card--default .psg-card__title { font-size: 19px; }
	.psg-grid--list .psg-card--default .psg-card__excerpt { display: none; }
	.psg-grid--list .psg-card--default .psg-card__kicker { font-size: 11px; }
	.psg-grid--questions { grid-template-columns: 1fr; }
	.psg .psg-card--question .psg-card__title { font-size: 19px; }
	.psg-grid--scroll { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--psg-gutter)); padding: 0 var(--psg-gutter) 8px; }
	.psg-grid--scroll > * { flex: 0 0 78%; scroll-snap-align: start; }

	.psg-all__head { gap: 12px; }
	.psg-catnav { flex: 1 1 100%; }
	.psg .psg-catnav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--psg-gutter)); padding: 2px var(--psg-gutter) 6px; }
	.psg-catnav ul::-webkit-scrollbar { display: none; }
	.psg-filters { flex: 1 1 100%; }
	.psg-filters__form { grid-template-columns: 1fr 1fr; }
	.psg-filters__actions { grid-column: 1 / -1; }

	.psg-quick { grid-template-columns: 1fr; }
	.psg-quick__actions { width: 100%; }
	.psg-quick__actions .psg-btn { flex: 1 1 0; }
	.psg-bridge { padding: 44px 0; }
	.psg-bridge__grid { grid-template-columns: 1fr; gap: 12px; }
	.psg .psg-bridge__item { padding: 16px; }

	.psg-pagehead { padding: 24px 0 32px; }
	.psg .psg-pagehead__title { font-size: 32px; }
	.psg-pagehead__intro { font-size: 17px; }
	.psg-archive__lead .psg-card--feature { display: flex; gap: 14px; }

	/* Fil d'Ariane réduit à un lien retour */
	.psg-breadcrumb li { display: none; }
	.psg-breadcrumb li.psg-breadcrumb__parent { display: block; }
	.psg-breadcrumb li.psg-breadcrumb__parent::before { content: "‹"; margin: 0 6px 0 0; }
	.psg-breadcrumb a { display: inline-flex; min-height: 32px; align-items: center; font-weight: 600; }

	/* Article */
	.psg-article__header { padding: 20px 0 26px; }
	.psg-badges { margin-bottom: 12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.psg-badges::-webkit-scrollbar { display: none; }
	.psg .psg-badge, .psg-badges .psg-seal { flex: 0 0 auto; }
	.psg .psg-article__title { font-size: 30px; line-height: 1.15; margin-bottom: 12px; }
	.psg-article__lead { font-size: 17px; margin-bottom: 12px !important; }
	.psg-meta { font-size: 13px; }
	.psg-meta__author { display: none; }
	.psg-meta > .psg-meta__date::before { display: none; }
	.psg-article__layout { padding-top: 20px; }
	.psg-prose { font-size: 17px; line-height: 1.7; }
	.psg .psg-prose h2 { font-size: 26px; }
	.psg .psg-prose h3 { font-size: 21px; }
	.psg-article__figure { margin-bottom: 24px; }
	.psg-article__figure img { max-height: 260px; border-radius: 14px; }

	.psg-enbref { padding: 18px 16px 18px 18px; border-left-width: 4px; margin-bottom: 20px; }
	.psg-enbref__text { font-size: 17px; }
	.psg-subline { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; }
	.psg-subline__qty { grid-column: 2; grid-row: 1; font-size: 15px; font-weight: 700; text-align: right; }
	.psg-subline .psg-pill { grid-column: 1; grid-row: 2; justify-self: start; }
	.psg-calc__fields { grid-template-columns: 1fr 1.2fr; }
	.psg-calc.is-compact .psg-field--opt { display: none; }
	.psg-calc.is-compact.is-open .psg-field--opt { display: flex; }
	.psg .psg-calc__more {
		display: inline-flex; grid-column: 1 / -1; align-items: center; justify-content: flex-start; gap: 6px; min-height: 40px; margin: 0; padding: 0;
		border: 0; background: none !important; color: var(--psg-amber-dark) !important; font-family: var(--psg-sans); font-size: 14px; font-weight: 700; box-shadow: none; cursor: pointer;
	}
	.psg-calc__more::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
	.psg-calc.is-open .psg-calc__more::after { transform: rotate(-135deg); }
	.psg-calc__submit .psg-btn { width: 100%; min-height: 48px; }

	/* Tableaux -> cartes empilées (une par substitut) */
	.psg-table-wrap { border: 0; border-radius: 0; overflow: visible; background: transparent; }
	.psg .psg-table--subs thead, .psg .psg-table--verdict thead, .psg .psg-table--exp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.psg .psg-table--subs tbody tr, .psg .psg-table--verdict tbody tr, .psg .psg-table--exp tbody tr {
		display: block; margin: 0 0 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--psg-line); border-radius: 14px;
	}
	.psg .psg-table--subs tr.is-best { background: #fffaf2; border-color: #e7c48f; }
	.psg .psg-table--subs tbody th, .psg .psg-table--verdict tbody th, .psg .psg-table--exp tbody th { display: block; padding: 0 0 8px; border: 0; font-size: 17px; }
	.psg .psg-table--subs td, .psg .psg-table--verdict td, .psg .psg-table--exp td {
		display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; padding: 6px 0; border: 0; border-top: 1px dashed var(--psg-line); text-align: left !important;
	}
	.psg .psg-table--subs td::before, .psg .psg-table--verdict td::before, .psg .psg-table--exp td::before {
		content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--psg-muted); padding-top: 2px;
	}
	.psg-table-wrap--scroll { overflow: visible; }
	.psg .psg-table td .psg-state { justify-self: start; }
	.psg .psg-table--verdict td:not(.psg-verdict__sum) { display: none; }
	.psg .psg-table--verdict td.psg-verdict__sum { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 0; border: 0; }
	.psg .psg-table--verdict td.psg-verdict__sum::before { display: none; }
	.psg-vsum { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
	.psg-vsum__k { flex: 0 0 94px; }
	.psg-vsum__k .psg-state { width: 100%; justify-content: flex-start; }
	.psg .psg-table--verdict th[scope="row"] { position: static; box-shadow: none; background: transparent; }
	.psg .psg-table--verdict td { text-align: left !important; }
	.psg .psg-table__qty { min-width: 0; }
	.psg .psg-table--subs td.psg-table__action { display: block; padding-top: 10px; }
	.psg .psg-table--subs td.psg-table__action::before { display: none; }
	.psg .psg-table--subs td.psg-table__action:empty { display: none; }
	.psg .psg-link-calc { width: 100%; justify-content: center; min-height: 42px; }
	.psg .psg-table--compare { font-size: 14px; }
	.psg .psg-table--compare th, .psg .psg-table--compare td { padding: 10px 8px; word-break: break-word; }
	.psg .psg-table--compare tbody th { width: 30%; }
	.psg-table-wrap:has(.psg-table--compare) { border: 1px solid var(--psg-line); border-radius: 12px; overflow: hidden; background: #fff; }
	.psg-mini { flex-direction: column; align-items: flex-start; gap: 4px; }
	.psg-mini img { width: 32px; height: 32px; }
	.psg .psg-mini a { font-size: 14px; }
	.psg-compare__verdict { grid-template-columns: 1fr; }
	.psg-subtable__title { font-size: 21px; }
	.psg-exp { padding: 18px 16px; }

	.psg-ings__list { grid-template-columns: 1fr; gap: 8px; }
	.psg .psg-ings .psg-section-title, .psg .psg-action .psg-section-title, .psg .psg-related .psg-section-title { font-size: 23px; }
	.psg-related { padding: 40px 0 56px; }
	.psg-related .psg-grid--3 .psg-card--default { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	.psg-related .psg-grid--3 .psg-card--default .psg-card__media { aspect-ratio: 1; border-radius: 12px; }
	.psg-related .psg-grid--3 .psg-card--default .psg-card__excerpt { display: none; }
	.psg .psg-related .psg-card__title { font-size: 19px; }
	.psg .psg-faq h2 { font-size: 26px; }
	.psg .psg-faq__q { font-size: 16px !important; }

	.psg-fiche-guides { padding: 16px; }
	.psg-fiche-guides .psg-card--row { grid-template-columns: 80px minmax(0, 1fr); }
	.psg-fiche-guides .psg-card__title { font-size: 17px; }
}

@media (max-width: 400px) {
	.psg-search__field > .psg-icon { display: none; }
	.psg .psg-search__submit { padding: 0 14px; }
	.psg .psg-hero__title { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.psg *, .psg-fiche-guides * { transition: none !important; animation: none !important; }
	.psg-card:hover .psg-card__media img { transform: none; }
}
