/* PâtiSwap — Outils : tableaux de conversion (/outils/) et aide du calculateur (/calculateur/) */
.pso-tables, .pso-aide {
	--pso-amber: #9A690F;
	--pso-amber-dark: #885C09;
	--pso-ink: #1A0E00;
	--pso-text: #33240f;
	--pso-muted: #5a4a3a;
	--pso-cream: #FFF7F0;
	--pso-line: #F0D9BC;
	box-sizing: border-box;
	font-family: 'DM Sans', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
	color: var(--pso-text);
	max-width: 1120px;
	margin: 48px auto 32px;
	padding: 0 16px;
	line-height: 1.6;
}
.pso-tables *, .pso-aide * { box-sizing: border-box; }
.pso-tables a, .pso-aide a { color: var(--pso-amber-dark); text-decoration: underline; text-underline-offset: 2px; }
.pso-tables a:focus-visible, .pso-aide a:focus-visible, .pso-faq-item summary:focus-visible { outline: 3px solid var(--pso-amber); outline-offset: 2px; }
.pso-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;
}

/* ---------- Tableaux (/outils/) ---------- */
.pso-tables-title {
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif; font-size: 30px; font-weight: 600;
	color: var(--pso-ink); margin: 0 0 8px; text-align: center; line-height: 1.2;
}
.pso-tables-intro { text-align: center; color: var(--pso-muted); margin: 0 auto 24px; max-width: 640px; }
.pso-tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pso-tcard {
	background: #fff; border: 1px solid var(--pso-line); border-radius: 16px;
	box-shadow: 0 2px 10px rgba(26, 14, 0, .06); padding: 24px; min-width: 0; scroll-margin-top: 24px;
}
.pso-tcard--wide { grid-column: 1 / -1; }
.pso-tcard h3 {
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif; font-size: 22px; font-weight: 600;
	color: var(--pso-ink); margin: 0 0 12px; line-height: 1.25;
}
.pso-twrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pso-t { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.pso-t th, .pso-t td { padding: 9px 10px; border-bottom: 1px solid var(--pso-line); text-align: left; vertical-align: top; }
.pso-t thead th {
	color: var(--pso-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	background: var(--pso-cream); white-space: nowrap;
}
.pso-t tbody th { font-weight: 600; color: var(--pso-ink); }
.pso-t td { white-space: nowrap; }
.pso-t td:last-child { white-space: normal; }
.pso-t tbody tr:nth-child(even) { background: #fffcf8; }
.pso-tnote { font-size: 13px; color: var(--pso-muted); margin: 12px 0 0; }
@media (max-width: 800px) {
	.pso-tables-grid { grid-template-columns: 1fr; }
	.pso-tcard { padding: 18px 14px; }
	.pso-t { font-size: 14px; }
	.pso-t th, .pso-t td { padding: 8px 6px; }
	.pso-tables-title { font-size: 26px; }
}
.pso-conv-tablelink { margin-top: auto; font-size: 14px; font-weight: 700; }
.pso-conv-tablelink a { color: var(--pso-amber-dark, #885C09); }

/* ---------- Aide du calculateur (/calculateur/) ---------- */
.pso-aide > * { max-width: 780px; }
.pso-aide h2 {
	font-family: 'EB Garamond', Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 600;
	color: var(--pso-ink); margin: 40px 0 12px; line-height: 1.2;
}
.pso-aide h2:first-child { margin-top: 0; }
.pso-aide p { margin: 0 0 14px; font-size: 16px; }
.pso-steps { margin: 0 0 8px; padding-left: 1.4em; }
.pso-steps li { margin: 0 0 10px; font-size: 16px; }
.pso-steps li::marker { color: var(--pso-amber-dark); font-weight: 700; }
.pso-examples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pso-examples li {
	background: var(--pso-cream); border-left: 3px solid var(--pso-amber); border-radius: 10px;
	padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
}
.pso-ex-calc { font-size: 16px; color: var(--pso-ink); }
.pso-ex-links { font-size: 14px; }
.pso-faq { display: flex; flex-direction: column; gap: 10px; }
.pso-faq-item { background: #fff; border: 1px solid var(--pso-line); border-radius: 12px; padding: 0 16px; }
.pso-faq-item summary {
	cursor: pointer; font-weight: 700; color: var(--pso-ink); padding: 14px 24px 14px 0; position: relative;
	list-style: none; font-size: 16px;
}
.pso-faq-item summary::-webkit-details-marker { display: none; }
.pso-faq-item summary::after {
	content: '+'; position: absolute; right: 0; top: 12px; font-size: 20px; color: var(--pso-amber-dark); font-weight: 400;
}
.pso-faq-item[open] summary::after { content: '−'; }
.pso-faq-item p { margin: 0 0 14px; color: var(--pso-text); }
@media (max-width: 700px) {
	.pso-aide h2 { font-size: 24px; margin-top: 32px; }
}
