/* SL Ma Liste de Noël, v1.0.0 */
.slln {
	--slln-ink: #1F1530;
	--slln-violet: #2A0B47;
	--slln-violet-2: #4B0082;
	--slln-accent: #6B21A8;
	--slln-lilac: #F5F0FA;
	--slln-line: #E7DEF2;
	--slln-muted: #5B4A70;
	--slln-green: #15803D;
	--slln-green-2: #116632;
	--slln-yellow: #FFE07A;
	--slln-radius: 20px;
	color: var(--slln-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}
.slln *, .slln *::before, .slln *::after { box-sizing: border-box; }
.slln h2, .slln h3 { font-family: 'K2D', inherit; color: var(--slln-violet); margin: 0; letter-spacing: 0; text-transform: none; }
.slln p { margin: 0; }
.slln button { font-family: inherit; text-transform: none; letter-spacing: 0; margin: 0; }
.slln input[type=text], .slln input[type=email], .slln select {
	width: 100%; min-height: 48px; margin: 0; padding: 0 16px; border: 1.5px solid var(--slln-line); border-radius: 12px;
	background: #fff; font: inherit; font-size: 16px; color: var(--slln-ink); box-shadow: none;
}
.slln input:focus, .slln select:focus { outline: none; border-color: var(--slln-accent); box-shadow: 0 0 0 3px rgba(107, 33, 168, .15); }
.slln :focus-visible { outline: 3px solid rgba(107, 33, 168, .45); outline-offset: 2px; }
.slln-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slln-loading, .slln-muted { color: var(--slln-muted); font-size: 15px; }

/* En-tête */
.slln-head { display: flex; flex-direction: column; gap: 10px; margin: 0 0 28px; max-width: 760px; }
.slln-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slln-accent); }
.slln-title { font-size: 40px; line-height: 1.1; font-weight: 800; }
.slln-lead { font-size: 17px; color: #4A4458; }

/* Mise en page (s'adapte à la largeur du conteneur de la page, pas seulement de l'écran) */
#slln-app { container-type: inline-size; width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; }
.slln-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.slln-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.slln-side { position: sticky; top: 100px; }

/* Boutons */
.slln-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
	border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
	transition: background-color .15s, transform .15s;
}
.slln-btn:hover { text-decoration: none; }
.slln-btn:disabled { opacity: .45; cursor: not-allowed; }
.slln-btn-primary { background: var(--slln-green); color: #fff; width: 100%; }
.slln-btn-primary:hover:not(:disabled) { background: var(--slln-green-2); color: #fff; }
.slln-btn-dark { background: var(--slln-violet); color: #fff; }
.slln-btn-dark:hover:not(:disabled) { background: var(--slln-violet-2); color: #fff; }
.slln-btn-ghost { background: #fff; color: var(--slln-violet); border: 1.5px solid var(--slln-line); width: 100%; }
.slln-btn-ghost:hover:not(:disabled) { border-color: var(--slln-accent); color: var(--slln-violet); }
.slln-btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; background: var(--slln-violet); color: #fff; }
.slln-btn-small:hover { background: var(--slln-violet-2); color: #fff; }
.slln-link { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--slln-violet-2); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.slln-icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--slln-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.slln-icon:hover { background: var(--slln-lilac); color: var(--slln-violet); }

/* Carte personne */
.slln-person { background: #fff; border: 1.5px solid var(--slln-line); border-radius: var(--slln-radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 110px; }
.slln-ph { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.slln-pact { margin-left: auto; }
.slln-av { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; color: var(--slln-violet); flex: none; font-family: 'K2D', inherit; }
.slln-pinfo { flex: 1; min-width: 0; }
.slln-pname { font-size: 22px; line-height: 1.2; font-weight: 800; }
.slln-pmeta { font-size: 14px; color: var(--slln-muted); margin-top: 2px; }
.slln-pact { display: flex; align-items: center; gap: 2px; }
.slln-empty { padding: 4px 0; }

/* Articles choisis */
.slln-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.slln-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #F0EAF6; margin: 0; }
.slln-item:first-child { border-top: 0; }
.slln-item.is-off { opacity: .6; }
.slln-ithumb { flex: none; }
.slln-ithumb img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; display: block; background: var(--slln-lilac); }
.slln-iinfo { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slln-iname { color: var(--slln-ink); font-weight: 500; text-decoration: none; line-height: 1.35; }
.slln-iname:hover { color: var(--slln-violet-2); }
.slln-ivar { font-size: 13px; color: var(--slln-muted); }
.slln-select { min-height: 40px !important; font-size: 14px !important; width: auto !important; max-width: 100%; padding-right: 32px !important; }
.slln-iprice { font-family: 'K2D', inherit; font-weight: 800; font-size: 18px; color: var(--slln-violet); white-space: nowrap; }
.slln-inline-form { margin: 0; }

/* Suggestions */
.slln-sugg { background: var(--slln-lilac); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.slln-sugg.is-loading .slln-cards { opacity: .5; }
.slln-sugg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.slln-sugg-t { font-weight: 700; color: var(--slln-violet); }
.slln-sugg-act { display: flex; gap: 8px; }
.slln-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; transition: opacity .15s; }
.slln-card { background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.slln-card-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; background: var(--slln-lilac); }
.slln-card-name { color: var(--slln-ink); font-size: 14px; font-weight: 500; line-height: 1.35; text-decoration: none; flex: 1; }
.slln-card-name:hover { color: var(--slln-violet-2); }
.slln-card-price { font-family: 'K2D', inherit; font-weight: 800; font-size: 17px; color: var(--slln-violet); }
.slln-picked { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: #DDF3E2; color: #14532D; font-weight: 600; font-size: 14px; }
.slln-more { align-self: flex-start; background: none; border: 1.5px dashed #C9B8E0; border-radius: 999px; min-height: 44px; padding: 0 18px; color: var(--slln-violet-2); font-weight: 600; font-size: 14px; cursor: pointer; }

/* Formulaire personne */
.slln-addcard { background: #FBF9FE; border-style: dashed; border-color: #C9B8E0; }
.slln-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.slln-field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.slln-field > label, .slln-field > legend { font-weight: 600; font-size: 15px; color: var(--slln-violet); padding: 0; margin: 0 0 8px; }
.slln-field > label { margin: 0; }
.slln-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.slln-chip { position: relative; margin: 0; cursor: pointer; }
.slln-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slln-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--slln-line); background: #fff; font-size: 14px; font-weight: 600; color: var(--slln-violet); }
.slln-chip input:checked + span { background: var(--slln-violet); border-color: var(--slln-violet); color: #fff; }
.slln-chip input:focus-visible + span { outline: 3px solid rgba(107, 33, 168, .45); outline-offset: 2px; }
.slln-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.slln-addbtn { min-height: 64px; border-radius: var(--slln-radius); border: 1.5px dashed #C9B8E0; background: #FBF9FE; color: var(--slln-violet-2); font-weight: 700; font-size: 16px; cursor: pointer; }
.slln-addbtn:hover { border-color: var(--slln-accent); }

/* Récapitulatif */
.slln-sum { background: #fff; border: 1.5px solid var(--slln-line); border-radius: var(--slln-radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.slln-sum-t { font-size: 20px; font-weight: 800; }
.slln-sum-list { list-style: none; margin: 0; padding: 0; }
.slln-sum-list li { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F0EAF6; margin: 0; font-size: 15px; }
.slln-sum-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slln-sum-n { color: var(--slln-muted); font-size: 13px; }
.slln-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.slln-total b { font-family: 'K2D', inherit; font-size: 28px; font-weight: 800; color: var(--slln-violet); }
.slln-note { font-size: 13px; color: var(--slln-muted); }
.slln-cartform { margin: 0; }
.slln-save { border-top: 1px solid #F0EAF6; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.slln-save-t { font-weight: 700; color: var(--slln-violet); }
.slln-save-d { font-size: 14px; color: #4A4458; }
.slln-email { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.slln-msg { font-size: 14px; color: #14532D; background: #E9F7EE; border-radius: 10px; padding: 10px 12px; }
.slln-msg.is-err { color: #8A1C1C; background: #FCEBEB; }
.slln-sticky { display: none; }

/* Partage */
.slln-overlay { position: fixed; inset: 0; background: rgba(20, 8, 32, .55); z-index: 99998; }
.slln-modal { position: fixed; z-index: 99999; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(20, 8, 32, .3); }
.slln-modal-head { display: flex; justify-content: space-between; align-items: center; }
.slln-modal-head h3 { font-size: 22px; font-weight: 800; }
.slln-share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.slln-share .slln-btn { grid-column: 1 / -1; }
.slln-sbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 600; text-decoration: none; color: #fff; }
.slln-sbtn:hover { color: #fff; filter: brightness(1.08); }
.slln-sbtn.is-wa { background: #128C4B; }
.slln-sbtn.is-mail { background: var(--slln-violet); }
.slln-sbtn.is-fb { background: #1A5DC8; }
.slln-copy { display: flex; gap: 8px; }
.slln-copy input { flex: 1; min-width: 0; font-size: 14px !important; }

/* Bouton fiche produit */
.slln-pbtn-wrap { position: relative; margin: 12px 0 18px; }
.slln-pbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--slln-line); background: #fff; color: var(--slln-violet); font-weight: 600; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.slln-pbtn:hover { border-color: var(--slln-accent); }
.slln-pop { position: absolute; z-index: 50; left: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); background: #fff; border: 1.5px solid var(--slln-line); border-radius: 16px; padding: 16px; box-shadow: 0 16px 40px rgba(20, 8, 32, .18); display: flex; flex-direction: column; gap: 10px; }
.slln-pop form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.slln-pop-t { font-weight: 700; color: var(--slln-violet); }
.slln-radio { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; cursor: pointer; font-size: 15px; }
.slln-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--slln-accent); }
.slln-pop-act { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

/* Conteneur étroit */
@container (max-width: 860px) {
	.slln-layout { grid-template-columns: minmax(0, 1fr); }
	.slln-side { position: static; }
	.slln-title { font-size: 30px; }
}
@container (max-width: 560px) {
	.slln-person { padding: 16px; }
	.slln-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.slln-cards .slln-card:nth-child(3) { display: none; }
}

/* Mobile */
@media (max-width: 900px) {
	.slln-sticky { display: flex; position: fixed; z-index: 9990; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--slln-line); box-shadow: 0 -8px 24px rgba(20, 8, 32, .08); }
	.slln-sticky div { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--slln-muted); }
	.slln-sticky b { font-family: 'K2D', inherit; font-size: 20px; color: var(--slln-violet); }
	.slln-sticky .slln-cartform { flex: none; }
	.slln-sticky .slln-btn-primary { width: auto; min-height: 48px; }
	#slln-app { padding-bottom: 84px; }
}
@media (max-width: 600px) {
	.slln-share { grid-template-columns: minmax(0, 1fr); }
}
