/* L'Esmella – formulaire de commande rapide (ambiance Marine & Or) */
.esm-wrap {
	--esm-bg: #F7F4EE; --esm-surface: #FFFFFF; --esm-ink: #0B2341; --esm-muted: #5E5446;
	--esm-line: #E6DFD3; --esm-field: #B9AC96; --esm-dark: #0B2341; --esm-on-dark: #F7F4EE;
	--esm-accent: #D9AE52; --esm-accent-ink: #0B2341; --esm-accent-deep: #A9802E; --esm-accent-soft: #FBF3E0;
	--esm-sale: #A8231B; --esm-save: #1E6A44;
	clear: both; margin: 18px 0 24px; color: var(--esm-ink);
}
.esm-wrap *, .esm-wrap *::before, .esm-wrap *::after { box-sizing: border-box; }
.esm-form, .esm-thanks { font-family: 'Cairo', system-ui, sans-serif; background: var(--esm-surface); border: 1px solid var(--esm-line); box-shadow: 0 18px 40px -24px rgba(11,35,65,.35); }
.esm-form { display: flex; flex-direction: column; text-align: right; }
.esm-head { background: var(--esm-dark); color: var(--esm-on-dark); padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.esm-head-title { font-size: 22px; font-weight: 800; }
.esm-badge { font-size: 13px; font-weight: 700; background: var(--esm-accent); color: var(--esm-accent-ink); padding: 4px 12px; }
.esm-body { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.esm-step { display: flex; flex-direction: column; gap: 10px; }
.esm-step-title { font-size: 16px; font-weight: 700; }
.esm-step-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.esm-guide { font-size: 13px; text-decoration: underline; color: var(--esm-muted); }

.esm-wrap button { font-family: inherit; color: var(--esm-ink); cursor: pointer; margin: 0; text-transform: none; letter-spacing: normal; line-height: 1.3; border-radius: 0; box-shadow: none; }
.esm-offer { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: right; width: 100%; border: 1px solid var(--esm-line); background: var(--esm-surface); }
.esm-offer:hover { border-color: var(--esm-field); background: var(--esm-surface); color: var(--esm-ink); }
.esm-offer[aria-pressed="true"] { border: 2px solid var(--esm-accent); background: var(--esm-accent-soft); padding: 13px 15px; }
.esm-radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--esm-field); background: var(--esm-surface); }
.esm-offer[aria-pressed="true"] .esm-radio { border: 6px solid var(--esm-ink); }
.esm-offer-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; }
.esm-offer-title { font-size: 17px; font-weight: 700; }
.esm-offer-unit { font-size: 13px; color: var(--esm-muted); }
.esm-offer-price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.esm-offer-amount { font-size: 19px; font-weight: 800; white-space: nowrap; }
.esm-save { font-size: 12px; font-weight: 700; background: var(--esm-save); color: #FFFFFF; padding: 2px 8px; white-space: nowrap; }
.esm-best { position: absolute; top: -11px; left: 14px; background: var(--esm-sale); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 2px 10px; }

.esm-piece { border: 1px solid var(--esm-line); background: var(--esm-bg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.esm-piece[hidden] { display: none; }
.esm-piece-title { font-size: 15px; font-weight: 700; }
.esm-piece-sum { font-weight: 400; color: var(--esm-muted); }
.esm-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.esm-line-label { font-size: 13px; width: 50px; }
.esm-color { width: 44px; height: 44px; border-radius: 50% !important; padding: 3px; background: transparent; border: 1px solid var(--esm-line); }
.esm-color:hover { background: transparent; }
.esm-color span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--esm-field); }
.esm-color[aria-checked="true"] { border: 2px solid var(--esm-ink); padding: 2px; }
.esm-size { min-width: 50px; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; background: var(--esm-surface); border: 1px solid var(--esm-field); }
.esm-size:hover { background: var(--esm-surface); color: var(--esm-ink); border-color: var(--esm-ink); }
.esm-size[aria-checked="true"] { background: var(--esm-ink); color: #FFFFFF; border-color: var(--esm-ink); }
.esm-color:disabled, .esm-size:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

.esm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.esm-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin: 0; }
.esm-grid input, .esm-grid select { height: 48px; padding: 0 12px; border: 1px solid var(--esm-field); background: var(--esm-surface); color: var(--esm-ink); font-family: inherit; font-size: 16px; font-weight: 400; border-radius: 0; width: 100%; margin: 0; box-shadow: none; }
.esm-grid input[type="tel"] { text-align: right; }
.esm-grid input:focus, .esm-grid select:focus { outline: 2px solid var(--esm-accent); outline-offset: 0; border-color: var(--esm-ink); }
.esm-grid .esm-invalid { border-color: var(--esm-sale); }
.esm-error { font-size: 14px; font-weight: 600; color: var(--esm-sale); }

.esm-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.esm-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: right; border: 1px solid var(--esm-field); background: var(--esm-surface); }
.esm-mode:hover { background: var(--esm-surface); color: var(--esm-ink); }
.esm-mode[aria-pressed="true"] { border: 2px solid var(--esm-ink); background: var(--esm-accent-soft); padding: 11px 13px; }
.esm-mode:disabled { opacity: .45; cursor: not-allowed; }
.esm-mode-title { font-weight: 700; font-size: 15px; }
.esm-mode-price { font-size: 13px; }

.esm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.esm-summary { background: var(--esm-bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.esm-summary > div { display: flex; justify-content: space-between; gap: 8px; }
.esm-sum-total { font-size: 22px; font-weight: 800; border-top: 1px solid var(--esm-line); padding-top: 8px; margin-top: 2px; }

.esm-wrap .esm-cta { min-height: 62px; border: 0; background: var(--esm-accent); color: var(--esm-accent-ink); font-size: 20px; font-weight: 800; box-shadow: 0 4px 0 var(--esm-accent-deep); width: 100%; padding: 10px 16px; }
.esm-wrap .esm-cta:hover { background: #E2BC68; color: var(--esm-accent-ink); }
.esm-wrap .esm-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--esm-accent-deep); }
.esm-wrap .esm-cta[disabled] { opacity: .7; cursor: wait; }
.esm-trust { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--esm-muted); }

.esm-thanks { border: 2px solid var(--esm-save); padding: 32px; display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: center; font-size: 16px; }
.esm-thanks[hidden] { display: none; }
.esm-thanks svg { color: var(--esm-save); }
.esm-thanks-title { font-size: 26px; font-weight: 800; }
.esm-thanks-sum { line-height: 1.7; color: var(--esm-muted); }

.esm-loop-btn { font-family: 'Cairo', system-ui, sans-serif; }

@media (max-width: 480px) {
	.esm-body { padding: 16px; }
	.esm-offer { padding: 12px; gap: 10px; }
	.esm-offer[aria-pressed="true"] { padding: 11px; }
	.esm-modes { grid-template-columns: 1fr; }
}
