/* Justaucorps loisir */
.sl-app {
  /* direction artistique Startner : ivoire, marine, violet, doré ; Jost et Cormorant Garamond */
  --sl-bg: #FFF7ED;
  --sl-ink: var(--stc-c-primary, #14213D);
  --sl-soft: #4E5470;
  --sl-line: #EEE5DA;
  --sl-accent: var(--stc-c-accent, #C8A96B);
  --sl-gold: linear-gradient(135deg, #C8A96B 0%, #E2CFA4 30%, #FFF7ED 52%, #EEE5F5 74%, #D4C5E8 100%);
  --sl-cta: linear-gradient(120deg, #14213D 0%, #2C2F6B 58%, #6A4FA0 100%);
  --sl-title: var(--stc-f-title, 'Cormorant Garamond', Georgia, serif);
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.9fr); gap: 24px;
  color: var(--sl-ink); font-family: var(--stc-f-btn, Jost, sans-serif); font-weight: 400; font-size: 15px; margin: 0 0 48px;
}
.sl-app *, .sl-app *::before { box-sizing: border-box; }
.sl-app button { font: inherit; color: inherit; cursor: pointer; }
.sl-stage { background: var(--sl-bg); border: 1px solid var(--sl-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; min-height: 520px; position: sticky; top: 16px; align-self: start; }
.sl-svgbox { flex: 1; display: flex; align-items: center; justify-content: center; }
.sl-svg { width: 100%; height: auto; max-height: 76vh; }
.sl-seams path { stroke: rgba(0, 0, 0, .18); stroke-width: 1; }
.sl-lbl { fill: var(--sl-soft); letter-spacing: .25em; font-family: inherit; }
.sl-sum { margin: 12px 0 0; text-align: center; color: var(--sl-soft); font-size: 13px; }

.sl-panel { border: 1px solid var(--sl-line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; min-height: 520px; }
.sl-steps { list-style: none; margin: 0; padding: 10px; display: flex; gap: 4px; border-bottom: 1px solid var(--sl-line); overflow-x: auto; }
.sl-steps button { border: 0; background: none; padding: 8px 10px; border-radius: 999px; white-space: nowrap; font-size: 13px; color: var(--sl-soft); display: flex; align-items: center; gap: 6px; }
.sl-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--sl-line); font-size: 12px; font-weight: 600; }
.sl-steps [aria-selected="true"] { color: var(--sl-ink); background: var(--sl-bg); }
.sl-steps [aria-selected="true"] b { background: var(--sl-ink); color: #fff; border-color: var(--sl-ink); }
.sl-body { padding: 18px 20px; flex: 1; overflow: auto; }
.sl-body h3 { margin: 0 0 6px; font-size: 20px; }
.sl-sub { margin: 14px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sl-soft); }
.sl-body > .sl-sub:first-of-type { text-transform: none; letter-spacing: 0; font-size: 14px; }
.sl-foot { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--sl-line); }
.sl-prev, .sl-next { border: 1px solid var(--sl-line); background: #fff; border-radius: 10px; padding: 10px 14px; }
.sl-cta { margin-left: auto; border: 0; background: var(--sl-cta); color: #fff !important; border-radius: 10px; padding: 11px 18px; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.sl-cta[disabled] { opacity: .6; }

.sl-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-seg button { border: 1px solid var(--sl-line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; }
.sl-seg [aria-pressed="true"] { background: var(--sl-ink); color: #fff; border-color: var(--sl-ink); }
.sl-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 12px 0; font-size: 13px; color: var(--sl-soft); }
.sl-color { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--sl-line); }
.sl-link { border: 0; background: none; text-decoration: underline; color: var(--sl-soft); font-size: 13px; }
.sl-ideas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sl-idea { height: 54px; border: 0; border-radius: 10px; position: relative; overflow: hidden; }
.sl-idea span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .88); font-size: 11px; padding: 2px; }
.sl-bases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sl-base { border: 1px solid var(--sl-line); background: #fff; border-radius: 12px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sl-base svg { height: 120px; width: auto; }
.sl-base[aria-pressed="true"], .sl-maq[aria-pressed="true"], .sl-font[aria-pressed="true"], .sl-motif[aria-pressed="true"], .sl-omotif[aria-pressed="true"], .sl-lmotif[aria-pressed="true"], .sl-zone[aria-pressed="true"] { border-color: var(--sl-ink); box-shadow: 0 0 0 1px var(--sl-ink); }
.sl-field { display: block; margin: 8px 0; }
.sl-field span { display: block; font-size: 13px; color: var(--sl-soft); margin-bottom: 4px; }
.sl-field input, .sl-field textarea { width: 100%; border: 1px solid var(--sl-line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; }
.sl-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sl-font { border: 1px solid var(--sl-line); background: #fff; border-radius: 10px; padding: 10px 8px; font-size: 20px; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sl-motifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 8px; }
.sl-motif, .sl-omotif, .sl-lmotif { border: 1px solid var(--sl-line); background: #fff; border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.sl-motif svg, .sl-omotif svg, .sl-lmotif svg { width: 48px; height: 48px; }
.sl-omotif .sl-none { width: 48px; height: 48px !important; border: 1px dashed var(--sl-line); border-radius: 6px; font-size: 10px; }
.sl-check { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: 14px; }
.sl-range { display: block; margin: 14px 0 4px; font-size: 13px; color: var(--sl-soft); }
.sl-range span { display: flex; justify-content: space-between; }
.sl-range input { width: 100%; accent-color: var(--sl-ink); }
.sl-btn { border: 1px solid var(--sl-ink); background: #fff; border-radius: 10px; padding: 10px 16px; }
.sl-status { font-size: 13px; color: var(--sl-soft); }
.sl-maqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sl-maq { border: 1px solid var(--sl-line); background: #fff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sl-maq svg { height: 120px; width: auto; }
.sl-maq b { font-size: 13px; font-weight: 600; }
.sl-maq small { color: var(--sl-soft); font-size: 11px; }
.sl-none { height: 120px; display: grid; place-items: center; color: var(--sl-soft); font-size: 12px; }
.sl-maq .sl-none + b { display: none; }
.sl-scolors { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sl-sc { border: 1px solid var(--sl-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.sl-scdot { width: 26px; height: 26px; padding: 0; }
.sl-sc[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sl-ink); }

.sl-pop { position: absolute; z-index: 30; width: 240px; background: #fff; border: 1px solid var(--sl-line); border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.sl-pop[hidden], .sl-dlg-wrap[hidden] { display: none; }
.sl-sw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sl-sw button { height: 32px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .1); }
.sl-custom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.sl-dlg-wrap { position: fixed; inset: 0; z-index: 1000; background: rgba(23, 20, 15, .45); display: grid; place-items: center; padding: 16px; }
.sl-dlg { position: relative; background: #fff; border-radius: 16px; padding: 24px; width: min(620px, 100%); max-height: 92vh; overflow: auto; }
.sl-dlg h2 { margin: 0 0 6px; font-size: 24px; }
.sl-x { position: absolute; right: 12px; top: 10px; border: 0; background: none; font-size: 26px; line-height: 1; }
.sl-recap { background: var(--sl-bg); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.sl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sl-err { color: #b3122e; font-size: 14px; min-height: 1em; }
.sl-dlg .sl-cta { width: 100%; margin: 6px 0 0; }

.sl-compos { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-compo { border: 1px dashed var(--sl-line); background: var(--sl-bg); border-radius: 999px; padding: 7px 12px; font-size: 13px; }
.sl-layers { display: flex; flex-direction: column; gap: 6px; }
.sl-layer { display: flex; align-items: stretch; border: 1px solid var(--sl-line); border-radius: 12px; overflow: hidden; }
.sl-layer[aria-current="true"] { border-color: var(--sl-ink); box-shadow: 0 0 0 1px var(--sl-ink); }
.sl-lsel { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: #fff; padding: 8px 10px; text-align: left; }
.sl-lsel i { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.sl-lsel b { font-size: 14px; font-weight: 600; }
.sl-lsel small { margin-left: auto; color: var(--sl-soft); font-size: 12px; }
.sl-ldel { border: 0; border-left: 1px solid var(--sl-line); background: #fff; width: 40px; font-size: 20px; color: var(--sl-soft); }
.sl-layers .sl-ladd { align-self: flex-start; }
.sl-edit { margin-top: 14px; padding-top: 4px; border-top: 1px solid var(--sl-line); }
.sl-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.sl-zone { border: 1px solid var(--sl-line); background: #fff; border-radius: 10px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--sl-ink); }
.sl-zone svg { width: 26px; height: 26px; color: var(--sl-accent); }

@media (max-width: 860px) {
  .sl-app { grid-template-columns: 1fr; gap: 12px; }
  .sl-stage { position: static; min-height: 0; padding: 10px; }
  .sl-svg { max-height: 52vh; }
  .sl-panel { min-height: 0; }
  .sl-ideas { grid-template-columns: repeat(4, 1fr); }
  .sl-bases, .sl-maqs { grid-template-columns: repeat(2, 1fr); }
  .sl-grid2 { grid-template-columns: 1fr; }
  .sl-foot { position: sticky; bottom: 0; background: #fff; border-radius: 0 0 14px 14px; }
}
.sl-motif > span:last-child, .sl-omotif > span:last-child, .sl-lmotif > span:last-child { font-size: 11px; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-zone span { font-size: 11px; line-height: 1.2; text-align: center; }
.sl-steps button { padding: 8px 8px; }

/* strass qui scintillent (aperçu) */
.sl-glint { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sl-twinkle 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sl-twinkle {
  0%, 62%, 100% { opacity: 0; transform: scale(.15) rotate(0deg); }
  74% { opacity: 1; transform: scale(1) rotate(25deg); }
  84% { opacity: .55; transform: scale(.7) rotate(40deg); }
  92% { opacity: 0; transform: scale(.3) rotate(50deg); }
}
/* strass réalistes : les facettes s'allument au passage de la lumière, quelques éclats en croix */
.sl-glints { pointer-events: none; }
.sg-fl { opacity: 0; animation: sg-flash 5s linear infinite; }
@keyframes sg-flash { 0%, 58%, 100% { opacity: 0; } 64% { opacity: .55; } 67% { opacity: 1; } 71% { opacity: .35; } 76% { opacity: 0; } }
.sg-x { opacity: 0; transform-box: view-box; transform-origin: 0 0; animation: sg-flare 5s ease-out infinite; }
@keyframes sg-flare { 0%, 62%, 100% { opacity: 0; transform: scale(.35) rotate(-6deg); } 67% { opacity: 1; transform: scale(1) rotate(0deg); } 72% { opacity: .5; transform: scale(.8) rotate(3deg); } 78% { opacity: 0; transform: scale(.5) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .sl-glint, .sg-fl, .sg-x { animation: none; } .sl-glint { opacity: .6; } }

/* ---------- habillage DA Startner ---------- */
body.page-sl-loisir #wrapper, body.page-sl-loisir #content-wrapper, body.page-sl-loisir #main { background: #FFF7ED; }
body.page-sl-loisir #wrapper { padding-top: 24px; }
body.page-sl-loisir .breadcrumb, body.page-sl-loisir nav.breadcrumb { background: transparent; }
body.page-sl-loisir .page-header h1, body.page-sl-loisir #main > .page-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-size: 56px; line-height: 1.02; color: #14213D; margin: 0 0 26px; text-transform: none; letter-spacing: 0;
}
body.page-sl-loisir .page-header h1::before {
  content: "L'atelier en ligne"; display: block; margin: 0 0 10px; font-family: Jost, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: #A8865A;
}
body.page-sl-loisir #main .page-content.card, body.page-sl-loisir #content.page-content { background: transparent; border: 0; box-shadow: none; padding: 0; }

.sl-stage {
  border: 3px solid transparent; border-radius: 32px; padding: 20px;
  background: linear-gradient(#FBF6EE, #FBF6EE) padding-box, var(--sl-gold) border-box;
  box-shadow: 0 18px 40px -22px rgba(20, 33, 61, .35);
}
.sl-sum { font-size: 13px; letter-spacing: .02em; }
.sl-panel { border: 0; border-radius: 32px; background: #fff; box-shadow: 0 18px 40px -22px rgba(20, 33, 61, .35); overflow: hidden; }
.sl-steps { padding: 12px; gap: 6px; border-bottom: 1px solid var(--sl-line); }
.sl-steps button { border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sl-soft); }
.sl-steps b { width: 24px; height: 24px; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #C8A96B, #E2CFA4, #D4C5E8) border-box; font-family: var(--sl-title); font-size: 14px; font-weight: 500; color: var(--sl-ink); }
.sl-steps [aria-selected="true"] { background: var(--sl-cta); color: #fff; }
.sl-steps [aria-selected="true"] b { background: #fff; border-color: #fff; color: var(--sl-ink); }
.sl-body { padding: 22px 24px; }
.sl-body h3 { font-family: var(--sl-title); font-weight: 500; font-size: 32px; line-height: 1.05; margin: 0 0 8px; }
.sl-sub { color: #A8865A; font-weight: 500; letter-spacing: .22em; font-size: 11px; }
.sl-body > .sl-sub:first-of-type { color: var(--sl-soft); font-weight: 300; font-size: 15px; letter-spacing: 0; text-transform: none; line-height: 1.55; }
.sl-foot { padding: 16px 24px; gap: 10px; background: #FFFCF7; }
.sl-prev, .sl-next { border-radius: 999px; border: 1px solid var(--sl-line); padding: 11px 18px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sl-prev:hover, .sl-next:hover { border-color: var(--sl-ink); }
.sl-cta { border-radius: 999px; background: var(--sl-cta); padding: 13px 22px; font-size: 12px; font-weight: 500; letter-spacing: .18em; box-shadow: 0 10px 24px -12px rgba(44, 47, 107, .7); transition: transform .2s ease, box-shadow .2s ease; }
.sl-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(106, 79, 160, .8); }
.sl-seg button { border-radius: 999px; padding: 8px 15px; font-size: 13px; }
.sl-seg [aria-pressed="true"] { background: var(--sl-ink); border-color: var(--sl-ink); }
.sl-color { box-shadow: 0 0 0 1px var(--sl-line), 0 4px 10px -6px rgba(20, 33, 61, .5); }
.sl-idea { border-radius: 14px; }
.sl-base, .sl-maq, .sl-font, .sl-motif, .sl-omotif, .sl-lmotif, .sl-zone, .sl-layer { border-radius: 16px; }
.sl-base[aria-pressed="true"], .sl-maq[aria-pressed="true"], .sl-font[aria-pressed="true"], .sl-motif[aria-pressed="true"], .sl-omotif[aria-pressed="true"], .sl-lmotif[aria-pressed="true"], .sl-zone[aria-pressed="true"], .sl-layer[aria-current="true"] {
  border-color: transparent; box-shadow: 0 0 0 2px var(--sl-ink), 0 10px 22px -14px rgba(20, 33, 61, .6);
}
.sl-zone svg { color: #A8865A; }
.sl-compo { border-style: solid; border-color: transparent; background: linear-gradient(#FFF7ED, #FFF7ED) padding-box, var(--sl-gold) border-box; border-width: 1px; font-weight: 500; }
.sl-compo:hover { background: linear-gradient(#fff, #fff) padding-box, var(--sl-gold) border-box; }
.sl-btn { border-radius: 999px; padding: 11px 20px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sl-range input { accent-color: #6A4FA0; }
.sl-field input, .sl-field textarea { border-radius: 14px; }
.sl-dlg { border-radius: 28px; }
.sl-dlg h2 { font-family: var(--sl-title); font-weight: 500; font-size: 36px; }
.sl-recap { border-radius: 16px; }
.sl-pop { border-radius: 18px; }
@media (max-width: 860px) {
  body.page-sl-loisir .page-header h1 { font-size: 38px; }
  .sl-stage, .sl-panel { border-radius: 24px; }
}
body.page-sl-loisir .breadcrumb__wrapper { background: transparent; }
/* import d'un dessin SVG */
.sl-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 10px 0 6px; padding: 22px 14px; border: 2px dashed #D9CDBB; border-radius: 20px; background: #FFFCF7; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.sl-drop b { font-weight: 500; font-size: 14px; }
.sl-drop span { font-size: 12px; color: var(--sl-soft); }
.sl-drop:hover, .sl-drop.is-over { border-color: #C8A96B; background: #FFF7ED; }

/* bouton Réinitialiser le dessin */
.sl-reset{display:block;margin:10px auto 0;background:transparent;border:1px solid rgba(20,33,61,.25);color:#14213D;border-radius:999px;padding:8px 18px;font:500 12px/1.2 Jost,sans-serif;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;transition:background .2s,color .2s}
.sl-reset:hover{background:#14213D;color:#fff}
.sl-reset.on{background:#b3261e;border-color:#b3261e;color:#fff}
