/* Sérénité Boutique — s'appuie sur les variables du thème (--se-*) */

.seb { --seb-gap: clamp(1.5rem, 4vw, 3rem); }
.seb-center { text-align: center; }
.seb-muted { color: var(--se-text-light); font-size: .92rem; }
.seb-intro { max-width: 680px; margin: 0 auto 2rem; color: var(--se-text-light); }
.se-btn--small { padding: .55rem 1.2rem; font-size: .92rem; }
.se-btn--ghost { background: transparent; color: var(--se-brown); box-shadow: inset 0 0 0 2px var(--se-brown); }
.se-btn--ghost:hover { background: var(--se-brown); color: var(--se-white); }

.seb-nowrap { white-space: nowrap; }
.seb-crumbs { font-size: .85rem; color: var(--se-text-light); margin-bottom: 1rem; }
.seb-crumbs a { color: inherit; }
.seb-details summary h3 { display: inline; font-size: 1rem; font-family: 'Quicksand', sans-serif; margin: 0; }

/* ---------- Hero ---------- */
.seb-hero { padding-top: 2.5rem; }
.seb-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--seb-gap); align-items: start; }
.seb-hero__info h1 { margin-bottom: .75rem; }
.seb-hero__info .se-script { margin: 0 0 .25rem; }
.seb-lead { font-size: 1.12rem; }
.seb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; margin: 1.25rem 0 .5rem; }
.seb-price__amount { font-family: 'Playfair Display', serif; font-size: 2.3rem; font-weight: 600; color: var(--se-brown); line-height: 1; }
.seb-price__tax { font-size: .85rem; color: var(--se-text-light); }
.seb-hero__ship { margin-bottom: 1rem; }
.seb-hero__cta { margin: .5rem 0 1rem; }
.seb-hero__delay { font-size: .92rem; color: var(--se-text-light); background: var(--se-green-tint); border-radius: var(--se-radius); padding: .8rem 1rem; }
.seb-checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.seb-checks li { position: relative; padding-left: 1.7rem; margin-bottom: .35rem; }
.seb-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--se-green); font-weight: 700; }

.seb-gallery__main { border-radius: var(--se-radius); overflow: hidden; box-shadow: var(--se-shadow); background: var(--se-white); aspect-ratio: 4 / 5; }
.seb-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.seb-gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: .75rem; }
.seb-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; aspect-ratio: 1; }
.seb-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.seb-gallery__thumb.is-active, .seb-gallery__thumb:focus-visible { border-color: var(--se-brown); outline: none; }

/* ---------- Sections ---------- */
.seb-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--seb-gap); align-items: center; }
.seb-two__media img { border-radius: var(--se-radius); box-shadow: var(--se-shadow); }
.seb-list { padding-left: 1.2rem; }
.seb-list li { margin-bottom: .4rem; }
.seb-list li::marker { color: var(--se-mauve); }

.seb-candles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.seb-candle { background: var(--se-white); border: 1px solid var(--se-border); border-radius: var(--se-radius); overflow: hidden; display: flex; flex-direction: column; }
.seb-candle__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.seb-candle__body { padding: 1.25rem 1.25rem 1rem; }
.seb-candle h3 { margin-bottom: .2rem; }
.seb-candle h3 span { font-family: 'Quicksand', sans-serif; font-size: 1rem; color: var(--se-text-light); font-weight: 600; }
.seb-candle__tag { font-style: italic; color: var(--se-green); margin-bottom: .8rem; }
.seb-candle__specs { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin: 0 0 .8rem; font-size: .9rem; }
.seb-candle__specs dt { color: var(--se-text-light); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.seb-candle__specs dd { margin: 0; font-weight: 600; }
.seb-candle__notes { list-style: none; padding: .7rem 0 0; margin: 0; border-top: 1px dashed var(--se-border); font-size: .9rem; }
.seb-candle__notes li { margin-bottom: .2rem; }
.seb-candle__notes strong { color: var(--se-brown); }

.seb-prose ul { padding-left: 1.2rem; }
.seb-prose li { margin-bottom: .5rem; }
.seb-details { background: var(--se-cream); border: 1px solid var(--se-border); border-radius: var(--se-radius); padding: .2rem 1.2rem; margin: 1rem 0; }
.seb-details summary { cursor: pointer; font-weight: 700; color: var(--se-brown); padding: .8rem 0; list-style-position: outside; }
.seb-details[open] { padding-bottom: .8rem; }
.seb-warning { background: #fff4e5; border-left: 4px solid #c77d1a; border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: .95rem; }
.seb-warning p { margin: 0; }
.seb-docs { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.seb-docs a::before { content: "📄 "; }

.seb-table { width: 100%; border-collapse: collapse; background: var(--se-white); border-radius: var(--se-radius); overflow: hidden; }
.seb-table th, .seb-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--se-border); }
.seb-table thead th { background: var(--se-brown); color: var(--se-white); font-weight: 600; }

/* ---------- Commande ---------- */
.seb-order { scroll-margin-top: 90px; }
.seb-alert { border-radius: var(--se-radius); padding: .9rem 1.2rem; max-width: 980px; margin: 0 auto 1.5rem; }
.seb-alert--info { background: var(--se-mauve-tint); }
.seb-alert--test { background: #fff4e5; border: 1px dashed #c77d1a; font-size: .92rem; }

.seb-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: var(--seb-gap); align-items: start; max-width: 1080px; margin: 0 auto; }
.seb-step { border: 1px solid var(--se-border); background: var(--se-white); border-radius: var(--se-radius); padding: 1.25rem 1.5rem 1.5rem; margin: 0 0 1.5rem; min-width: 0; }
.seb-step legend, .seb-summary h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--se-brown); padding: 0; font-weight: 600; margin: 0 0 1rem; line-height: 1.3; }
/* Titre dans le cadre (et non à cheval sur la bordure) */
.seb-step legend { float: left; width: 100%; }
.seb-step legend + * { clear: both; }
.seb-step { padding-top: 1.5rem; }
.seb-step__num { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--se-brown); color: var(--se-white); font-family: 'Quicksand', sans-serif; font-size: .9rem; margin-right: .35rem; vertical-align: 2px; }

.seb-field { margin-bottom: 1rem; min-width: 0; }
.seb-field label, .seb-label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.seb-opt { font-weight: 500; color: var(--se-text-light); }
.seb-field input[type="text"], .seb-field input[type="email"], .seb-field input[type="tel"] {
	width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid #cdbf9d; border-radius: 10px; background: #fffdf7; color: var(--se-text);
}
.seb-field input:focus { outline: 2px solid var(--se-brown); outline-offset: 1px; border-color: var(--se-brown); }
.seb-field input[aria-invalid="true"] { border-color: #b3261e; background: #fff6f5; }
.seb-hint { font-size: .82rem; color: var(--se-text-light); margin: .3rem 0 0; }
.seb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.seb-grid--search { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
.seb-grid--search .se-btn { margin-bottom: 1rem; white-space: nowrap; }

.seb-segment { display: inline-flex; background: var(--se-cream); border: 1px solid var(--se-border); border-radius: var(--se-radius-pill); padding: 4px; }
.seb-segment label { margin: 0; padding: .45rem 1.2rem; border-radius: var(--se-radius-pill); cursor: pointer; font-weight: 600; }
.seb-segment input { position: absolute; opacity: 0; pointer-events: none; }
.seb-segment label:has(input:checked) { background: var(--se-brown); color: var(--se-white); }
.seb-segment label:has(input:focus-visible) { outline: 2px solid var(--se-brown); outline-offset: 2px; }

.seb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.seb-mode { position: relative; display: block; border: 2px solid var(--se-border); border-radius: var(--se-radius); padding: .9rem 1rem; cursor: pointer; background: #fffdf7; }
.seb-mode input { position: absolute; opacity: 0; pointer-events: none; }
.seb-mode:has(input:checked) { border-color: var(--se-brown); background: var(--se-cream); box-shadow: inset 0 0 0 1px var(--se-brown); }
.seb-mode:has(input:focus-visible) { outline: 2px dashed var(--se-brown); outline-offset: -7px; }
.seb-mode:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.seb-mode__title { display: block; font-weight: 700; }
.seb-mode__price { display: block; font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--se-brown); }
.seb-mode__desc { display: block; font-size: .82rem; color: var(--se-text-light); }

.seb-relay__map { width: 100%; height: 720px; border-radius: var(--se-radius); overflow: hidden; border: 1px solid var(--se-border); margin-bottom: 1rem; }
.seb-relay__list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.seb-relay__list button { width: 100%; text-align: left; font: inherit; background: #fffdf7; border: 1px solid var(--se-border); border-radius: 10px; padding: .7rem .9rem; cursor: pointer; }
.seb-relay__list button:hover, .seb-relay__list button[aria-pressed="true"] { border-color: var(--se-brown); background: var(--se-cream); }
.seb-relay__chosen { background: var(--se-green-tint); border-radius: 10px; padding: .8rem 1rem; font-size: .95rem; }

.seb-summary { position: sticky; top: 100px; background: var(--se-white); border: 1px solid var(--se-border); border-radius: var(--se-radius); padding: 1.25rem 1.5rem 1.5rem; box-shadow: var(--se-shadow); }
.seb-summary__lines { width: 100%; border-collapse: collapse; font-size: .97rem; }
.seb-summary__lines td { padding: .5rem 0; border-bottom: 1px solid var(--se-border); vertical-align: top; }
.seb-summary__lines td:last-child { text-align: right; white-space: nowrap; padding-left: .75rem; }
.seb-summary__total td { font-weight: 700; font-size: 1.1rem; color: var(--se-brown); border-bottom: none; }
.seb-summary__tax { font-size: .78rem; color: var(--se-text-light); margin: 0 0 .8rem; }
.seb-summary__dest { font-size: .9rem; background: var(--se-cream); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .6rem; }
.seb-summary__dest:empty { display: none; }
.seb-summary__dest a { font-size: .85rem; }
.seb-summary__delay { font-size: .85rem; color: var(--se-text-light); }
.seb-summary__notice { font-size: .78rem; color: var(--se-text-light); line-height: 1.5; }
.seb-summary__secure { font-size: .8rem; color: var(--se-text-light); margin: .8rem 0 0; text-align: center; }
.seb-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; margin: 1rem 0 .4rem; cursor: pointer; }
.seb-check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--se-brown); flex: none; }
.seb-submit, .seb-relay__search { font-family: inherit; }
.seb-submit { width: 100%; margin-top: .6rem; padding: 1rem 1.2rem; font-size: 1.02rem; }
.seb-submit[disabled] { opacity: .65; cursor: progress; transform: none; }
.seb-error { color: #b3261e; font-size: .85rem; margin: .3rem 0 0; }
.seb-error--global { text-align: center; margin-top: .8rem; }
.seb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Confirmation ---------- */
.seb-confirm { background: var(--se-white); border: 1px solid var(--se-border); border-radius: var(--se-radius); padding: 2rem; box-shadow: var(--se-shadow); }
.seb-confirm__number { font-size: 1.15rem; }

/* ---------- Pages légales ---------- */
.se-legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.se-legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1.5rem; background: var(--se-white); }
.se-legal th, .se-legal td { border: 1px solid var(--se-border); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.se-legal th { background: var(--se-cream); }
.se-legal__updated { color: var(--se-text-light); margin: .5rem 0 0; }
.se-legal__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.se-legal__actions .se-btn, .se-legal .se-btn { text-decoration: none; }
.se-legal__form { border: 1px dashed var(--se-border); border-radius: var(--se-radius); padding: 1rem 1.25rem; background: var(--se-white); }
.se-legal__defs { padding-left: 1.2rem; }

@media print {
	.se-header, .se-footer, .se-legal__actions, .cmplz-cookiebanner, #cmplz-manage-consent { display: none !important; }
	body { background: #fff !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.seb-form { grid-template-columns: 1fr; }
	.seb-summary { position: static; }
}
@media (max-width: 900px) {
	.seb-hero__grid, .seb-two { grid-template-columns: 1fr; }
	.seb-candles { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
	.seb-step, .seb-summary { padding: 1rem; }
	.seb-modes, .seb-grid { grid-template-columns: 1fr; }
	.seb-grid--search { grid-template-columns: 1fr 1fr; }
	.seb-grid--search .se-btn { grid-column: 1 / -1; }
	.seb-gallery__thumbs { grid-template-columns: repeat(6, minmax(44px, 1fr)); overflow-x: auto; }
	.seb-relay__map { height: 640px; }
}
