@charset "UTF-8";
/* PâtiSwap — calculateur de substitution. Palette et typographies du site
   (crème #FFF7F0, ambre #9A690F, brun #291901, pêche #F0D9BC, EB Garamond /
   DM Sans hérité du thème). */

.psc {
	--psc-ink: #291901;
	--psc-muted: #5f5247;
	--psc-amber: #9A690F;
	--psc-amber-dark: #7A520B;
	--psc-line: #F0D9BC;
	--psc-line-strong: #E3C9A8;
	--psc-cream: #FFF7F0;
	--psc-tint: #FFF1E0;
	--psc-serif: "EB Garamond", Georgia, "Times New Roman", serif;
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 0 40px;
	color: var(--psc-ink);
	font-size: 15px;
	line-height: 1.5;
}
.psc *, .psc *::before, .psc *::after { box-sizing: border-box; }

.psc .psc-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;
}

/* ---- En-tête ---- */
.psc .psc-head { text-align: center; max-width: 720px; margin: 4px auto 20px; }
.psc .psc-title {
	font-family: var(--psc-serif);
	font-size: 34px; line-height: 1.15; font-weight: 600;
	color: var(--psc-ink);
	margin: 0 0 8px;
}
.psc .psc-lead { font-size: 16px; line-height: 1.6; color: var(--psc-muted); margin: 0; }

.psc .psc-notice {
	margin: 0 auto 16px;
	padding: 10px 14px;
	background: var(--psc-tint);
	border: 1px solid var(--psc-line);
	border-left: 4px solid var(--psc-amber);
	border-radius: 10px;
	font-size: 14px;
}

/* ---- Grille : essentiels / résultat / options ---- */
.psc .psc-grid { display: grid; gap: 16px; margin: 0; }
.psc .psc-card {
	background: #fff;
	border: 1px solid var(--psc-line);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(26, 14, 0, 0.05);
	padding: 20px;
	min-width: 0;
}
.psc .psc-h2 {
	font-family: var(--psc-serif);
	font-size: 23px; line-height: 1.2; font-weight: 600;
	color: var(--psc-ink);
	margin: 0 0 14px;
}
.psc .psc-h2--small { font-size: 19px; margin-bottom: 4px; }

@media (min-width: 900px) {
	.psc .psc-grid {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		grid-template-areas: "ess res" "opt res";
		grid-template-rows: auto 1fr;
		align-items: start;
		gap: 20px 24px;
	}
	.psc .psc-essentials { grid-area: ess; }
	.psc .psc-options { grid-area: opt; }
	.psc .psc-result { grid-area: res; position: sticky; top: 24px; }
	.psc .psc-card { padding: 24px; }
}

/* ---- Champs ---- */
.psc .psc-field { margin: 0 0 14px; min-width: 0; }
.psc fieldset.psc-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.psc .psc-label,
.psc legend.psc-label {
	display: block;
	font-size: 14px; font-weight: 700;
	color: var(--psc-ink);
	margin: 0 0 6px; padding: 0;
}
.psc .psc-input,
.psc .psc-select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px; /* évite le zoom automatique sur mobile */
	line-height: 1.3;
	color: var(--psc-ink);
	background-color: #fff;
	border: 1.5px solid var(--psc-line-strong);
	border-radius: 12px;
	box-shadow: none;
	margin: 0;
}
.psc .psc-input::placeholder { color: #6f6258; opacity: 1; }
.psc .psc-select {
	-webkit-appearance: none; appearance: none;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23291901' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	cursor: pointer;
	text-overflow: ellipsis;
}
.psc .psc-select:disabled { background-color: #FAF6F1; color: var(--psc-ink); opacity: 1; cursor: default; background-image: none; }
.psc .psc-input:focus,
.psc .psc-select:focus { border-color: var(--psc-amber); outline: none; }
.psc .psc-input:focus-visible,
.psc .psc-select:focus-visible { outline: 2.5px solid var(--psc-amber); outline-offset: 1px; }
.psc .psc-input[aria-invalid="true"] { border-color: #b3261e; }

.psc .psc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; }
.psc .psc-row .psc-field { margin-bottom: 0; }
.psc .psc-row + .psc-error, .psc .psc-row + .psc-error + .psc-hint { margin-top: 6px; }
.psc .psc-essentials .psc-row { margin-bottom: 4px; }

.psc .psc-hint { font-size: 13px; line-height: 1.45; color: var(--psc-muted); margin: 6px 0 0; }
.psc .psc-error { font-size: 13.5px; font-weight: 700; color: #b3261e; margin: 6px 0 0; }
.psc .psc-error::before { content: "\26A0\00A0"; }
.psc .psc-essentials > .psc-error, .psc .psc-essentials > .psc-hint { margin-bottom: 12px; }

/* ---- Combobox ingrédient ---- */
.psc .psc-combo { position: relative; }
.psc .psc-combo .psc-input { padding-right: 46px; }
.psc .psc-combo-clear {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; min-height: 0;
	display: flex; align-items: center; justify-content: center;
	padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: transparent; color: var(--psc-muted);
	font-size: 22px; line-height: 1;
	cursor: pointer; box-shadow: none;
}
.psc .psc-combo-clear:hover,
.psc .psc-combo-clear:focus { background: var(--psc-tint); color: var(--psc-ink); }
.psc .psc-combo-clear:focus-visible { outline: 2.5px solid var(--psc-amber); outline-offset: 0; }
.psc .psc-combo-list {
	position: absolute; z-index: 40;
	top: calc(100% + 4px); left: 0; right: 0;
	margin: 0; padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--psc-line-strong);
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(41, 25, 1, 0.14);
	max-height: 320px; overflow-y: auto;
}
.psc .psc-combo-list li { margin: 0; }
.psc .psc-combo-head {
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	color: #7a6a5c; padding: 6px 10px 4px;
}
.psc .psc-combo-opt {
	display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
	padding: 10px; border-radius: 8px;
	cursor: pointer; min-height: 44px;
}
.psc .psc-combo-opt:hover, .psc .psc-combo-opt.is-active { background: var(--psc-tint); }
.psc .psc-combo-opt.is-active { box-shadow: inset 3px 0 0 var(--psc-amber); }
.psc .psc-combo-name { font-weight: 600; }
.psc .psc-combo-meta { font-size: 12.5px; color: var(--psc-muted); text-align: right; flex-shrink: 0; }
.psc .psc-combo-none { padding: 12px 10px; color: var(--psc-muted); font-size: 14px; }

/* ---- Choix du mode ---- */
.psc .psc-mode { margin-top: 16px !important; }
.psc .psc-seg {
	display: flex;
	padding: 4px;
	background: var(--psc-cream);
	border: 1px solid var(--psc-line);
	border-radius: 999px;
}
.psc .psc-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.psc .psc-seg label {
	flex: 1 1 50%;
	display: flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 8px 12px;
	border-radius: 999px;
	font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center;
	color: var(--psc-ink);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	margin: 0;
}
.psc .psc-seg input:checked + label { background: var(--psc-amber); color: #fff; box-shadow: 0 2px 6px rgba(154, 105, 15, 0.3); }
.psc .psc-seg input:focus-visible + label { outline: 2.5px solid var(--psc-ink); outline-offset: 2px; }
.psc .psc-sub-wrap { margin-top: 10px; }

/* ---- Options (divulgation progressive) ---- */
.psc .psc-disclosure { border-top: 1px solid #F3E4D0; }
.psc .psc-disclosure:first-of-type { border-top: 0; }
.psc .psc-disclosure-btn {
	display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
	width: 100%; min-height: 50px;
	padding: 12px 2px; margin: 0;
	font: inherit; font-size: 15px; font-weight: 700; text-align: left; text-transform: none; letter-spacing: normal;
	color: var(--psc-ink);
	background: transparent;
	border: 0; border-radius: 8px; box-shadow: none;
	cursor: pointer;
}
.psc .psc-disclosure-btn:hover,
.psc .psc-disclosure-btn:focus,
.psc .psc-disclosure-btn:active { background: transparent; color: var(--psc-ink); box-shadow: none; }
.psc .psc-disclosure-btn:hover .psc-plus { background: var(--psc-tint); }
.psc .psc-disclosure-btn:focus-visible { outline: 2.5px solid var(--psc-amber); outline-offset: 2px; }
.psc .psc-plus {
	position: relative; flex: 0 0 26px;
	width: 26px; height: 26px;
	border: 1.5px solid var(--psc-amber); border-radius: 50%;
}
.psc .psc-plus::before, .psc .psc-plus::after {
	content: ""; position: absolute; left: 50%; top: 50%;
	width: 11px; height: 2px; margin: -1px 0 0 -5.5px;
	background: var(--psc-amber); border-radius: 2px;
	transition: transform 0.2s ease;
}
.psc .psc-plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .psc-plus::after { transform: rotate(0deg); }
.psc .psc-disclosure-val { font-weight: 500; color: var(--psc-amber-dark); }
.psc .psc-disclosure-panel { padding: 0 2px 16px; }
.psc .psc-row--portions .psc-label { font-weight: 600; }
.psc .psc-suffix { position: relative; }
.psc .psc-suffix .psc-input { padding-right: 52px; }
.psc .psc-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--psc-muted); font-size: 14px; pointer-events: none; }

.psc .psc-checks { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.psc .psc-check {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 8px 14px;
	border: 1.5px solid var(--psc-line-strong); border-radius: 999px;
	background: #fff;
	font-size: 14px; font-weight: 600;
	cursor: pointer; margin: 0;
}
.psc .psc-check input { accent-color: var(--psc-amber); width: 18px; height: 18px; margin: 0; }
.psc .psc-check:has(input:checked) { background: var(--psc-tint); border-color: var(--psc-amber); }
.psc .psc-check:has(input:focus-visible) { outline: 2.5px solid var(--psc-ink); outline-offset: 2px; }

.psc .psc-actions {
	display: flex; flex-wrap: wrap; gap: 4px 20px;
	margin-top: 4px; padding-top: 8px;
	border-top: 1px solid #F3E4D0;
}
.psc .psc-link-btn {
	display: inline-flex; align-items: center;
	min-height: 44px; padding: 6px 0; margin: 0;
	font: inherit; font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: normal;
	color: var(--psc-amber-dark);
	background: transparent; border: 0; box-shadow: none;
	text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer;
}
.psc .psc-link-btn:hover,
.psc .psc-link-btn:focus,
.psc .psc-link-btn:active { background: transparent; color: var(--psc-ink); box-shadow: none; }
.psc .psc-link-btn:focus-visible { outline: 2.5px solid var(--psc-amber); outline-offset: 2px; border-radius: 4px; }

/* ---- Résultat ---- */
.psc .psc-result {
	border: 1.5px solid #E6C58F;
	background: #FFFDF9;
	box-shadow: 0 6px 20px rgba(154, 105, 15, 0.10);
}
.psc .psc-result .psc-h2 { margin-bottom: 10px; }
.psc .psc-result h2:focus { outline: none; }
.psc .psc-result-body { min-height: 120px; }

.psc .psc-context {
	margin: 0 0 12px; padding: 10px 12px;
	background: var(--psc-cream); border-radius: 10px;
	font-size: 14px; line-height: 1.5;
}
.psc .psc-kicker {
	margin: 0;
	font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: #7a5a2a;
}
.psc .psc-from { margin: 2px 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.psc .psc-amounts { list-style: none; margin: 4px 0 16px; padding: 0; }
.psc .psc-amount {
	display: flex; align-items: baseline; gap: 10px;
	margin: 0; padding: 10px 0;
	border-bottom: 1px dashed var(--psc-line);
}
.psc .psc-amount:last-child { border-bottom: 0; }
.psc .psc-amount-plus { flex: 0 0 16px; font-size: 24px; font-weight: 700; color: var(--psc-amber); line-height: 1; }
.psc .psc-amount-body { min-width: 0; }
.psc .psc-amount-qty {
	font-family: var(--psc-serif);
	font-size: 27px; font-weight: 600; line-height: 1.15;
	color: var(--psc-ink);
}
.psc .psc-amount--main .psc-amount-qty { font-size: 34px; }
.psc .psc-amount-name { font-size: 17px; font-weight: 600; }
.psc .psc-amount-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--psc-muted); }

.psc .psc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.psc .psc-badge {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid transparent; border-radius: 999px;
	font-size: 12.5px; font-weight: 700; line-height: 1.45;
}
.psc .psc-badge--best { background: #FBEFD5; border-color: #EBCB8B; color: #5E3E06; }
.psc .psc-badge--ok { background: #E8F5E9; color: #1B5E20; }
.psc .psc-badge--no { background: #FDECEA; color: #9B1C1C; }
.psc .psc-badge--muted { background: #F3EEE8; color: var(--psc-muted); font-weight: 600; }

.psc .psc-facts { display: grid; gap: 8px; margin: 0 0 14px; }
.psc .psc-facts div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
.psc .psc-facts dt { font-size: 13px; font-weight: 700; color: var(--psc-muted); margin: 0; }
.psc .psc-facts dd { font-size: 14.5px; margin: 0; }

.psc .psc-block { margin: 0 0 10px; padding: 11px 14px; border-radius: 12px; border-left: 4px solid; font-size: 14.5px; line-height: 1.55; }
.psc .psc-block p, .psc .psc-block ul { margin: 0; }
.psc .psc-block ul { padding-left: 18px; }
.psc .psc-block-title {
	margin: 0 0 3px;
	font-family: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.4;
	color: inherit;
}
.psc .psc-block--adjust { background: #FFF6E6; border-color: var(--psc-amber); }
.psc .psc-block--adjust .psc-block-title { color: #6B4708; }
.psc .psc-block--tip { background: #EEF6EE; border-color: #2e7d32; }
.psc .psc-block--tip .psc-block-title { color: #1B5E20; }
.psc .psc-block--warn { background: #FDF0EE; border-color: #c62828; }
.psc .psc-block--warn .psc-block-title { color: #9B1C1C; }
.psc .psc-block--result { background: #F7F3EE; border-color: #B9A48C; }
.psc .psc-block--result .psc-block-title { color: var(--psc-muted); }

.psc .psc-links { margin-top: 14px; padding-top: 12px; border-top: 1px solid #F3E4D0; font-size: 14px; }
.psc .psc-links p { margin: 0 0 4px; }
.psc a { color: var(--psc-amber-dark); text-decoration: underline; text-underline-offset: 3px; }
.psc a:hover { color: var(--psc-ink); }
.psc a:focus-visible { outline: 2.5px solid var(--psc-amber); outline-offset: 2px; border-radius: 3px; }

.psc .psc-state { margin: 0 0 12px; }
.psc .psc-state p { margin: 0; }
.psc .psc-state-title { font-size: 17px; font-weight: 700; margin-bottom: 4px !important; }
.psc .psc-state--empty { color: var(--psc-muted); }
.psc .psc-state--empty .psc-state-title { color: var(--psc-ink); }
.psc .psc-state--info { padding: 12px 14px; background: var(--psc-cream); border-radius: 12px; }
.psc .psc-small { font-size: 13.5px; color: var(--psc-muted); margin: 8px 0 0; }
.psc .psc-empty { color: var(--psc-muted); }

/* ---- Alternatives (« Aidez-moi à choisir ») ---- */
.psc .psc-alt-intro { margin: 0 0 4px; font-size: 15px; }
.psc .psc-alts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.psc .psc-alts li { margin: 0; }
.psc .psc-alt {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 10px;
	width: 100%; margin: 0; padding: 12px 14px;
	font: inherit; text-align: left; text-transform: none; letter-spacing: normal; line-height: 1.4;
	color: var(--psc-ink);
	background: #fff;
	border: 1.5px solid var(--psc-line); border-radius: 14px;
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.psc .psc-alt:hover,
.psc .psc-alt:focus,
.psc .psc-alt:active { background: #fff; color: var(--psc-ink); border-color: var(--psc-amber); box-shadow: 0 4px 12px rgba(154, 105, 15, 0.14); }
.psc .psc-alt:focus-visible { outline: 2.5px solid var(--psc-ink); outline-offset: 2px; }
.psc .psc-alt > span { grid-column: 1; }
.psc .psc-alt-name { font-size: 16px; font-weight: 700; }
.psc .psc-alt-qty { font-family: var(--psc-serif); font-size: 20px; font-weight: 600; margin-top: 2px; }
.psc .psc-alt-qty--muted { font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--psc-muted); }
.psc .psc-alt-note { font-size: 13px; color: var(--psc-muted); margin-top: 2px; }
.psc .psc-alt .psc-badges { margin: 8px 0 0; }
.psc .psc-alt .psc-alt-go { grid-column: 2; grid-row: 1 / span 4; align-self: center; font-size: 20px; color: var(--psc-amber); }

/* ---- Mobile ---- */
@media (max-width: 899px) {
	.psc { padding-top: 0; }
	.psc .psc-head { margin-bottom: 14px; }
	.psc .psc-title { font-size: 27px; }
	.psc .psc-lead { font-size: 15px; }
	.psc .psc-grid { gap: 12px; }
	.psc .psc-card { padding: 16px; border-radius: 14px; }
	.psc .psc-h2 { font-size: 21px; margin-bottom: 10px; }
	.psc .psc-result-body { min-height: 0; }
}
@media (max-width: 480px) {
	.psc .psc-seg label { font-size: 13.5px; padding: 8px 8px; }
	.psc .psc-amount--main .psc-amount-qty { font-size: 29px; }
	.psc .psc-amount-qty { font-size: 24px; }
	.psc .psc-facts div { grid-template-columns: 1fr; gap: 0; }
	.psc .psc-combo-meta { display: none; }
	.psc .psc-from { font-size: 18px; }
}
/* ---- Aperçu du résultat (mobile, quand la carte résultat est hors écran) ---- */
.psc .psc-peek { display: none; }
@media (max-width: 899px) {
	.psc .psc-peek:not([hidden]) {
		position: fixed; z-index: 60;
		left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		display: flex; align-items: center; gap: 12px;
		min-height: 56px; margin: 0; padding: 10px 16px;
		font: inherit; text-align: left; text-transform: none; letter-spacing: normal;
		color: #fff; background: var(--psc-ink);
		border: 0; border-radius: 14px;
		box-shadow: 0 8px 24px rgba(26, 14, 0, 0.28);
		cursor: pointer;
	}
	.psc .psc-peek:hover, .psc .psc-peek:focus, .psc .psc-peek:active { color: #fff; background: #3a2508; }
	.psc .psc-peek:focus-visible { outline: 3px solid var(--psc-amber); outline-offset: 2px; }
	.psc .psc-peek-body { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
	.psc .psc-peek-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #F0D9BC; }
	.psc .psc-peek-text {
		font-size: 14.5px; font-weight: 700; line-height: 1.3;
		display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	}
	.psc .psc-peek-go { flex: 0 0 auto; font-size: 20px; color: #F0D9BC; }
	.psc.psc--peek { padding-bottom: 88px; }
	/* Compactage mobile : le résultat doit arriver vite */
	.psc .psc-lead { font-size: 14px; line-height: 1.5; }
	.psc .psc-essentials .psc-h2 { margin-bottom: 8px; }
	.psc .psc-field { margin-bottom: 12px; }
	.psc .psc-mode { margin-top: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.psc *, .psc *::before, .psc *::after { transition: none !important; }
}
