/* Sofiane Checkout — refonte style Shopify : épuré, typographie système, bordures fines. */

.sc-checkout-wrap {
	--sc-ink: var(--sc-text, #1a1a1a);
	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 20px 90px;
	color: var(--sc-ink);
	font-family: var(--sc-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.sc-checkout-wrap *,
.sc-checkout-wrap *::before,
.sc-checkout-wrap *::after { box-sizing: border-box; }

/* Fil d'Ariane */
.sc-breadcrumb {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: #707070;
	margin: 0 0 26px;
	flex-wrap: wrap;
}
.sc-breadcrumb .sc-crumb { color: #707070; }
.sc-breadcrumb .sc-crumb.is-active { color: var(--sc-accent, #1a1a1a); font-weight: 600; }
.sc-breadcrumb .sc-sep { color: #c0c0c0; font-size: 11px; }

.sc-checkout-grid {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 56px;
	align-items: start;
}
@media (max-width: 880px) {
	.sc-checkout-grid { grid-template-columns: 1fr; gap: 30px; }
	.sc-col-summary { order: -1; }
}

/* Header */
.sc-header { margin-bottom: 22px; }
.sc-logo { max-height: 44px; width: auto; margin-bottom: 14px; }
.sc-checkout-title { font-size: 21px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }

/* Express checkout — cartouches */
.sc-express-wrap { margin-bottom: 8px; }
.sc-express-label { text-align: center; font-size: 12px; color: #888; margin: 0 0 10px; font-weight: 500; }
#sc-express-checkout { min-height: 0; }
#sc-express-checkout .sc-pr-tile { border-radius: var(--sc-radius, 8px); overflow: hidden; }

.sc-divider {
	text-align: center;
	position: relative;
	margin: 22px 0;
	color: #9a9a9a;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.sc-divider::before {
	content: "";
	position: absolute;
	top: 50%; left: 0; right: 0;
	height: 1px;
	background: var(--sc-border, #e2e2e2);
}
.sc-divider span { background: var(--sc-bg, #fff); padding: 0 14px; position: relative; }

/* Sections */
.sc-section { margin-bottom: 26px; }
.sc-section-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0 0 14px;
}
.sc-section-title { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sc-section-aux { font-size: 13px; color: #707070; }
.sc-section-aux a { color: var(--sc-accent, #5b51f5); text-decoration: none; }

/* Champs — bordure fine façon Shopify */
.sc-field { margin-bottom: 12px; position: relative; }
.sc-field label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #4a4a4a;
}
.sc-field input,
.sc-field select,
.sc-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-size: 15px;
	border: 1px solid var(--sc-border, #d9d9d9);
	border-radius: var(--sc-radius, 8px);
	background: #fff;
	color: var(--sc-ink);
	transition: border-color .12s, box-shadow .12s;
	font-family: inherit;
	line-height: 1.3;
}
.sc-field input::placeholder,
.sc-field textarea::placeholder { color: #9a9a9a; }
.sc-field input:focus,
.sc-field select:focus,
.sc-field textarea:focus {
	outline: none;
	border-color: var(--sc-accent, #5b51f5);
	box-shadow: 0 0 0 1px var(--sc-accent, #5b51f5);
}
.sc-field input.sc-error,
.sc-field select.sc-error { border-color: #e02424; box-shadow: 0 0 0 1px #e02424; }

.sc-row { display: flex; gap: 12px; }
.sc-half { flex: 1; }
@media (max-width: 480px) { .sc-row { flex-direction: column; gap: 0; } }

/* Bundles — paliers de quantité */
.sc-bundles { margin: 4px 0 26px; }
.sc-bundle-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.sc-bundle-tier {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1.5px solid var(--sc-border, #d9d9d9);
	border-radius: var(--sc-radius, 8px);
	padding: 14px 16px;
	cursor: pointer;
	margin-bottom: 10px;
	transition: border-color .12s, background .12s;
	position: relative;
}
.sc-bundle-tier:hover { border-color: #b5b5b5; }
.sc-bundle-tier.is-selected {
	border-color: var(--sc-accent, #5b51f5);
	background: color-mix(in srgb, var(--sc-accent, #5b51f5) 5%, #fff);
	box-shadow: 0 0 0 1px var(--sc-accent, #5b51f5);
}
.sc-bundle-radio {
	width: 20px; height: 20px;
	border: 2px solid #c4c4c4;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	transition: border-color .12s;
}
.sc-bundle-tier.is-selected .sc-bundle-radio { border-color: var(--sc-accent, #5b51f5); }
.sc-bundle-tier.is-selected .sc-bundle-radio::after {
	content: ""; position: absolute; inset: 3px;
	background: var(--sc-accent, #5b51f5); border-radius: 50%;
}
.sc-bundle-info { flex: 1; }
.sc-bundle-qty { font-size: 15px; font-weight: 600; }
.sc-bundle-sub { font-size: 13px; color: #707070; }
.sc-bundle-pricing { text-align: right; }
.sc-bundle-price { font-size: 16px; font-weight: 700; }
.sc-bundle-compare { font-size: 13px; color: #9a9a9a; text-decoration: line-through; margin-right: 6px; }
.sc-bundle-badge {
	position: absolute; top: -9px; right: 14px;
	background: var(--sc-accent, #5b51f5); color: #fff;
	font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
	text-transform: uppercase; letter-spacing: 0.03em;
}

/* Order bumps */
.sc-bumps { margin: 4px 0 26px; }
.sc-bump {
	display: block;
	border: 1.5px dashed var(--sc-accent, #5b51f5);
	border-radius: var(--sc-radius, 8px);
	padding: 14px;
	cursor: pointer;
	margin-bottom: 10px;
	background: color-mix(in srgb, var(--sc-accent, #5b51f5) 4%, #fff);
	transition: background .12s;
}
.sc-bump.sc-bump-active { background: color-mix(in srgb, var(--sc-accent, #5b51f5) 10%, #fff); }
.sc-bump-input { margin-right: 10px; transform: scale(1.25); vertical-align: top; margin-top: 3px; accent-color: var(--sc-accent, #5b51f5); }
.sc-bump-body { display: inline-flex; gap: 12px; align-items: flex-start; width: calc(100% - 30px); }
.sc-bump-img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.sc-bump-text { display: flex; flex-direction: column; }
.sc-bump-headline { font-size: 14px; font-weight: 700; }
.sc-bump-desc { font-size: 13px; color: #666; margin: 2px 0; }
.sc-bump-price { font-size: 14px; font-weight: 700; color: var(--sc-accent, #5b51f5); }

/* Paiement */
#sc-payment-element { margin-top: 4px; }
.sc-payment-message {
	display: none;
	background: #fdecec;
	color: #c81e1e;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-top: 10px;
}

/* Bouton */
.sc-submit {
	width: 100%;
	padding: 16px;
	background: var(--sc-btn, #5b51f5);
	color: var(--sc-btn-text, #fff);
	border: none;
	border-radius: var(--sc-radius, 8px);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
	transition: filter .12s, transform .05s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: inherit;
}
.sc-submit:hover { filter: brightness(0.94); }
.sc-submit:active { transform: translateY(1px); }
.sc-submit:disabled { cursor: not-allowed; opacity: .85; }
.sc-spinner {
	width: 17px; height: 17px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sc-spin .7s linear infinite;
}
@keyframes sc-spin { to { transform: rotate(360deg); } }

.sc-guarantee { text-align: center; font-size: 13px; color: #707070; margin-top: 14px; }

/* Récap */
.sc-summary {
	background: #fafafa;
	border: 1px solid var(--sc-border, #e6e6e6);
	border-radius: var(--sc-radius, 8px);
	padding: 24px;
	position: sticky;
	top: 24px;
}
.sc-summary-items { margin-bottom: 18px; }
.sc-summary-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sc-summary-thumb { position: relative; flex-shrink: 0; }
.sc-summary-thumb img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; border: 1px solid var(--sc-border, #e2e2e2); display: block; }
.sc-qty-badge {
	position: absolute; top: -8px; right: -8px;
	background: #6b7280; color: #fff;
	font-size: 11px; font-weight: 600;
	min-width: 20px; height: 20px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	padding: 0 5px;
}
.sc-summary-name { flex: 1; font-size: 14px; }
.sc-summary-price { font-size: 14px; font-weight: 500; white-space: nowrap; }
.sc-summary-discount { padding: 12px 0; border-top: 1px solid var(--sc-border, #e6e6e6); }
.sc-summary-totals { border-top: 1px solid var(--sc-border, #e6e6e6); padding-top: 16px; }
.sc-summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 9px; color: #4a4a4a; }
.sc-summary-total { font-size: 19px; font-weight: 700; margin-top: 8px; color: var(--sc-ink); }
.sc-summary-total .sc-cur { font-size: 12px; color: #888; font-weight: 500; }

/* Code promo */
.sc-coupon { display: flex; gap: 8px; margin-bottom: 18px; }
.sc-coupon input { flex: 1; padding: 11px 12px; border: 1px solid var(--sc-border, #d9d9d9); border-radius: var(--sc-radius, 8px); font-size: 14px; }
.sc-coupon button { padding: 0 18px; background: #e9e9e9; border: none; border-radius: var(--sc-radius, 8px); font-weight: 600; cursor: pointer; color: #555; }

/* Trust blocks */
.sc-trust-block { margin: 14px 0; }
.sc-trust-review {
	background: #fff;
	border: 1px solid var(--sc-border, #e6e6e6);
	border-radius: var(--sc-radius, 8px);
	padding: 14px 16px;
}
.sc-stars { color: #f5a623; font-size: 15px; letter-spacing: 1px; }
.sc-review-text { font-size: 14px; font-style: italic; margin: 6px 0; color: #444; }
.sc-review-author { font-size: 13px; color: #888; font-weight: 600; }
.sc-trust-img { max-width: 100%; height: auto; border-radius: var(--sc-radius, 8px); display: block; }
.sc-trust-title { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.sc-trust-block p { font-size: 14px; color: #555; margin: 4px 0; line-height: 1.5; }

/* Panier vide */
.sc-empty { text-align: center; padding: 60px 20px; }
.sc-btn-secondary {
	display: inline-block;
	margin-top: 14px;
	padding: 12px 22px;
	background: var(--sc-btn, #5b51f5);
	color: var(--sc-btn-text, #fff);
	border-radius: var(--sc-radius, 8px);
	text-decoration: none;
	font-weight: 600;
}

/* Résumé commande (thank you page / shortcode Divi) */
.sc-order-summary {
	max-width: 640px;
	border: 1px solid var(--sc-border, #e6e6e6);
	border-radius: 10px;
	padding: 26px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sc-os-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.sc-os-check { width: 42px; height: 42px; border-radius: 50%; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.sc-os-title { font-size: 18px; font-weight: 700; margin: 0; }
.sc-os-sub { font-size: 13px; color: #707070; margin: 2px 0 0; }
.sc-os-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; }
.sc-os-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.sc-os-line img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; }
.sc-os-line-name { flex: 1; font-size: 14px; }
.sc-os-totals { margin-top: 14px; border-top: 1px solid var(--sc-border, #e6e6e6); padding-top: 14px; }
.sc-os-total { font-weight: 700; font-size: 17px; }
