/* Science Labs Suivi de Colis : page de suivi (mobile d'abord, 2 colonnes dès 900 px). */

.slsc {
	--slsc-primary: #4A1062;
	--slsc-primary-2: #6B2E86;
	--slsc-lilac: #F5EEF8;
	--slsc-lilac-2: #EFE3F4;
	--slsc-green: #146B3A;
	--slsc-green-bg: #E8F4EC;
	--slsc-amber: #7A4A00;
	--slsc-amber-bg: #FFF3DC;
	--slsc-ink: #1E1524;
	--slsc-ink-2: #3B3245;
	--slsc-muted: #5E5568;
	--slsc-line: #E4DCE8;
	--slsc-line-2: #EEE8F1;
	--slsc-todo: #F1EDF3;
	color: var(--slsc-ink);
	max-width: 1180px;
	margin: 0 auto 48px;
	font-size: 15px;
	line-height: 1.5;
}
.slsc *, .slsc *::before, .slsc *::after { box-sizing: border-box; }
.slsc [hidden] { display: none !important; }
.slsc svg.slsc-ico { flex: none; }

.slsc-card {
	background: #fff;
	border: 1px solid var(--slsc-line);
	border-radius: 16px;
	padding: 20px;
}
.slsc-h3 {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 800;
	color: var(--slsc-ink);
	letter-spacing: 0;
	text-transform: none;
}
.slsc-kicker {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--slsc-muted);
}
.slsc-mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 17px;
	font-weight: 600;
	word-break: break-all;
}
.slsc-mono--sm { font-size: 15px; }

/* ---------- Formulaire ---------- */
.slsc--form { max-width: 760px; }
.slsc-form { padding: 28px; }
.slsc-form__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--slsc-primary); }
.slsc-form__intro { margin: 0 0 18px; color: var(--slsc-muted); }
.slsc-form__fields { display: grid; gap: 16px; margin-bottom: 20px; }
.slsc-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.slsc-field label { font-weight: 700; font-size: 14px; }
.slsc-field input {
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--slsc-line);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 16px;
	background: #fff;
	box-shadow: none;
	margin: 0;
}
.slsc-field input:focus { border-color: var(--slsc-primary); outline: 2px solid var(--slsc-lilac-2); }
.slsc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 640px) { .slsc-form__fields { grid-template-columns: 1fr 1fr; } }

.slsc-btn, .slsc .slsc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 26px;
	border: 0;
	border-radius: 10px;
	background: var(--slsc-primary);
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.2;
}
.slsc-btn:hover { background: #2E0A3D; }
.slsc-btn--block { width: 100%; }

/* ---------- En-tête de commande + onglets ---------- */
.slsc-top { margin-bottom: 14px; }
.slsc-top__title { font-size: 24px; font-weight: 800; color: var(--slsc-primary); line-height: 1.2; }
.slsc-top__meta { color: var(--slsc-muted); font-size: 14px; }

.slsc-tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	background: #EAE3EE;
	border-radius: 14px;
	margin-bottom: 16px;
	overflow-x: auto;
}
.slsc .slsc-tab {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 0 auto;
	justify-content: center;
	min-height: 44px;
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--slsc-ink-2);
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}
.slsc .slsc-tab[aria-selected="true"] { background: #fff; color: var(--slsc-ink); font-weight: 800; box-shadow: 0 1px 3px rgba(30, 21, 36, .12); }
.slsc-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--slsc-lilac); color: var(--slsc-primary); }
@media (max-width: 639px) {
	.slsc .slsc-tab { flex: 1 1 0; flex-direction: column; gap: 4px; padding: 8px 6px; white-space: normal; text-align: center; }
	.slsc-pill { font-size: 11px; padding: 2px 8px; line-height: 1.3; }
}
.slsc-pill--delivered { background: var(--slsc-green-bg); color: var(--slsc-green); }
.slsc-pill--issue { background: var(--slsc-amber-bg); color: var(--slsc-amber); }

/* ---------- Grille ---------- */
.slsc-grid { display: grid; gap: 16px; }
.slsc-main, .slsc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.slsc-only-desktop { display: none; }
@media (min-width: 900px) {
	.slsc-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
	.slsc-only-desktop { display: block; }
	.slsc-only-mobile { display: none; }
}

/* ---------- Bandeau principal (date + anneau) ---------- */
.slsc-hero {
	background: var(--slsc-primary);
	color: #fff;
	border-radius: 20px;
	padding: 20px 22px 22px;
}
.slsc-hero--delivered { background: var(--slsc-green); }
.slsc-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; opacity: .92; margin-bottom: 14px; }
.slsc-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; white-space: nowrap; }
.slsc-badge--estimate { background: #FFE7B8; color: #6B4100; }
.slsc-hero--issue .slsc-badge { background: #FFE7B8; color: #6B4100; }
.slsc-hero__body { display: flex; align-items: center; gap: 20px; }
.slsc-ring { width: 104px; height: 104px; flex: none; }
.slsc-ring__track { stroke: var(--slsc-primary-2); }
.slsc-ring__bar { stroke: #fff; }
.slsc-ring text { fill: #fff; font-size: 24px; font-weight: 800; font-family: inherit; }
.slsc-ring--done { border-radius: 50%; background: #fff; color: var(--slsc-green); display: flex; align-items: center; justify-content: center; }
.slsc-ring--done .slsc-ico { width: 46px; height: 46px; stroke-width: 2.6; }
.slsc-hero__label { font-size: 13px; opacity: .9; }
.slsc-hero__date { font-size: 30px; font-weight: 800; line-height: 1.1; margin: 2px 0 4px; }
.slsc-hero__status { font-size: 15px; font-weight: 700; }
@media (min-width: 900px) {
	.slsc-hero { padding: 26px 30px 28px; }
	.slsc-ring { width: 120px; height: 120px; }
	.slsc-hero__date { font-size: 36px; }
}

/* ---------- Étapes ---------- */
.slsc-steps {
	list-style: none;
	margin: 0;
	padding: 18px 12px 14px;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	background: #fff;
	border: 1px solid var(--slsc-line);
	border-radius: 16px;
	position: relative;
}
.slsc-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; margin: 0; }
.slsc-step + .slsc-step::before {
	content: "";
	position: absolute;
	top: 17px;
	right: 50%;
	width: 100%;
	height: 3px;
	background: repeating-linear-gradient(90deg, #CFC4D6 0 6px, transparent 6px 12px);
	z-index: 0;
}
.slsc-step.is-done::before,
.slsc-step.is-current::before { background: var(--slsc-primary); }
.slsc-step__dot {
	position: relative;
	z-index: 1;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--slsc-todo);
	color: #8C8296;
}
.slsc-step__dot .slsc-ico { width: 17px; height: 17px; }
.slsc-step.is-done .slsc-step__dot { background: var(--slsc-primary); color: #fff; }
.slsc-step.is-current .slsc-step__dot { background: #fff; color: var(--slsc-primary); border: 3px solid var(--slsc-primary); box-shadow: 0 0 0 4px var(--slsc-lilac-2); }
.slsc-step__label { font-size: 11px; color: var(--slsc-muted); line-height: 1.25; padding: 0 2px; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 420px) { .slsc-steps { padding: 16px 4px 12px; } .slsc-step__label { font-size: 10.5px; } }
.slsc-step.is-done .slsc-step__label { color: var(--slsc-ink); font-weight: 600; }
.slsc-step.is-current .slsc-step__label { color: var(--slsc-primary); font-weight: 800; }
@media (min-width: 640px) { .slsc-step__label { font-size: 13px; } }

/* ---------- Messages ---------- */
.slsc-notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--slsc-lilac);
	color: #2E2436;
	font-size: 14px;
}
.slsc-notice .slsc-ico { color: var(--slsc-primary); margin-top: 1px; }
.slsc-notice--warn { background: var(--slsc-amber-bg); color: #4D2F00; }
.slsc-notice--warn .slsc-ico { color: var(--slsc-amber); }
.slsc-form .slsc-notice { margin-bottom: 16px; }

/* ---------- Historique ---------- */
.slsc-events { list-style: none; margin: 0; padding: 0; }
.slsc-ev { display: flex; gap: 14px; position: relative; padding-bottom: 18px; margin: 0; }
.slsc-ev:last-child { padding-bottom: 0; }
.slsc-ev::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 18px;
	bottom: 0;
	width: 2px;
	background: var(--slsc-line);
}
.slsc-ev:last-child::before { display: none; }
.slsc-ev--planned::before { background: repeating-linear-gradient(180deg, #CFC4D6 0 5px, transparent 5px 10px); }
.slsc-ev__dot { width: 16px; height: 16px; flex: none; margin-top: 3px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.slsc-ev__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #A796B3; }
.slsc-ev--current .slsc-ev__dot::after { width: 16px; height: 16px; background: #fff; border: 4px solid var(--slsc-primary); }
.slsc-ev--issue .slsc-ev__dot::after { width: 16px; height: 16px; background: #fff; border: 4px solid var(--slsc-amber); }
.slsc-ev--planned .slsc-ev__dot::after { background: #fff; border: 2px solid #CFC4D6; }
.slsc-ev__title { font-size: 15px; font-weight: 500; }
.slsc-ev--current .slsc-ev__title { font-weight: 800; color: var(--slsc-primary); }
.slsc-ev--issue .slsc-ev__title { font-weight: 800; color: var(--slsc-amber); }
.slsc-ev--planned .slsc-ev__title { color: var(--slsc-ink-2); }
.slsc-ev__detail { font-size: 13px; color: var(--slsc-ink-2); }
.slsc-ev__meta { font-size: 13px; color: var(--slsc-muted); }
.slsc .slsc-more {
	margin: 14px 0 0;
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--slsc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--slsc-primary);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
}

/* ---------- Colonne droite ---------- */
.slsc-number__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slsc .slsc-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 12px;
	border: 0;
	border-radius: 10px;
	background: var(--slsc-lilac);
	color: var(--slsc-primary);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	flex: none;
}
.slsc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--slsc-primary); }
.slsc-link .slsc-ico { width: 15px; height: 15px; }
.slsc-number__lm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--slsc-line-2); }

.slsc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.slsc-item { display: flex; align-items: center; gap: 12px; margin: 0; }
.slsc-item img, .slsc-item__ph { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--slsc-lilac-2); }
.slsc-item__name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; }
.slsc-item__qty { font-size: 14px; color: var(--slsc-muted); }
.slsc-address { font-style: normal; font-size: 14px; line-height: 1.6; color: var(--slsc-ink-2); margin: 0; }
.slsc-help { background: var(--slsc-lilac); border-color: var(--slsc-lilac); }
.slsc-help__title { font-weight: 700; margin-bottom: 12px; }
.slsc-updated { font-size: 13px; color: var(--slsc-muted); margin: 14px 0 0; text-align: right; }
