/* Pépite · habillage « Jardin » : chargé après app.css (composants communs de Pépite), il en reprend
   l'aspect (crème, vert feuille, bords doux, boutons à socle) et ajoute jardin, parcelles, plantes.
   Jetons uniquement (theme.css) ; les couleurs fixes ne concernent que les illustrations. */

.pp-c-fr { --cs: var(--pp-fr-s); } .pp-c-ma { --cs: var(--pp-ma-s); } .pp-c-en { --cs: var(--pp-en-s); }
.pp-c-hi { --cs: var(--pp-hi-s); } .pp-c-ge { --cs: var(--pp-ge-s); } .pp-c-sc { --cs: var(--pp-sc-s); }

/* ---------- coquille du kit ---------- */
body { background: var(--kit-bg); }
.kit-title { font-weight: 700; font-size: 27px; letter-spacing: -.01em; line-height: 1.1; }
.kit-act, :root[data-theme="dark"] .kit-act { width: 48px; height: 48px; border-radius: 50%; background: var(--pp-leaf-soft); color: var(--pp-leaf-d); box-shadow: none; }
.kit-act:active { transform: scale(.96); box-shadow: none; }
.kit-tabs { border-top: 2px solid var(--kit-line); border-radius: 26px 26px 0 0; }
.kit-tab { font-weight: 700; color: var(--kit-muted); }
.kit-tab.is-on, :root[data-theme="dark"] .kit-tab.is-on { color: var(--pp-leaf-d); font-weight: 800; }
.kit-tab.is-on .kit-tab-pill, :root[data-theme="dark"] .kit-tab.is-on .kit-tab-pill { background: var(--pp-leaf-soft); color: var(--pp-leaf-d); }
.kit-group-title { font-weight: 700; font-size: 17px; color: var(--pp-leaf-d); letter-spacing: 0; }
.kit-row { font-weight: 700; }
.kit-row .kit-ic { color: var(--pp-leaf-d); }
.kit-seg { background: var(--pp-leaf-soft); border-radius: 18px; }
.kit-seg-opt { font-weight: 800; font-size: 15px; border-radius: 15px; min-height: 40px; }
.kit-seg-opt[aria-checked="true"] { background: var(--pp-leaf-d); color: var(--kit-accent-fg); box-shadow: none; }
.kit-toggle[aria-checked="true"], :root[data-theme="dark"] .kit-toggle[aria-checked="true"] { background: var(--pp-leaf-d); }
:root[data-theme="dark"] .kit-toggle[aria-checked="true"]::after { background: var(--kit-surface); }
.kit-sheet-title { font-weight: 700; }
.kit-btn { font-weight: 800; font-size: 18px; border-radius: 28px; }
.kit-btn-main { background: var(--pp-leaf-d); color: var(--kit-accent-fg); box-shadow: 0 4px 0 var(--pp-leaf-dd); }
.kit-btn-ghost { background: var(--kit-surface); color: var(--pp-leaf-d); border: 2px solid var(--pp-raised-line); box-shadow: none; }
.kit-stepper-btn { background: var(--pp-leaf-soft); color: var(--pp-leaf-d); }
.kit-chart-bar { fill: #A9CF9A; }
.kit-chart-bar.is-current { fill: var(--pp-leaf-d); }
.kit-chart-target, :root[data-theme="dark"] .kit-chart-target { fill: none; stroke: var(--pp-leaf-d); }
.kit-input { background: var(--kit-surface); }

/* ---------- briques ---------- */
.pp-sub { font-size: 15px; }
.pp-sec, .pp-card-title { font-weight: 700; letter-spacing: 0; }
.pp-sec { color: var(--pp-leaf-d); font-size: 19px; }
.pp-lab, :root[data-theme="dark"] .pp-lab { font-size: 14px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--pp-sun-d); }
.pp-st { width: 22px; height: 22px; }
.pp-st.is-on { fill: var(--pp-gold); stroke: var(--pp-gold-d); }
.pp-st.is-off { fill: none; stroke: var(--pp-star-off-line); }
.pp-stars { gap: 1px; flex: none; }
.pp-ic-gold, :root[data-theme="dark"] .pp-ic-gold { color: var(--pp-sun-d); }
.pp-flame, :root:not([data-theme="dark"]) .pp-flame { color: var(--pp-sun-d); }
.pp-chip { border-radius: 20px; font-weight: 800; font-size: 16px; border-color: var(--kit-line); background: var(--kit-surface); }
.pp-bar { height: 10px; border-radius: 5px; background: var(--kit-line); box-shadow: none; }
.pp-bar > i { border-radius: 5px; background: var(--c, var(--pp-leaf)); }
.pp-bar-lg { height: 16px; border-radius: 8px; }
.pp-bar-lg > i { border-radius: 8px; box-shadow: none; background: var(--pp-leaf); }
.pp-soil { display: block; height: 10px; border-radius: 5px; background: var(--kit-line); overflow: hidden; flex: 1; min-width: 0; }
.pp-soil > i { display: block; height: 100%; border-radius: 5px; background: var(--c, var(--pp-leaf)); }

.pp-btn {
  border-radius: 28px; font-weight: 800; font-size: 18px; letter-spacing: 0;
  background: var(--pp-leaf-d); color: var(--kit-accent-fg); box-shadow: 0 4px 0 var(--pp-leaf-dd);
}
.pp-btn .kit-ic { stroke-width: 2.4; }
.pp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pp-leaf-dd); }
.pp-btn-alt { background: var(--kit-surface); color: var(--pp-leaf-d); box-shadow: inset 0 0 0 2px var(--pp-raised-line); }
.pp-btn-alt:active { box-shadow: inset 0 0 0 2px var(--pp-raised-line); }
.pp-dot { background: var(--cs); color: var(--ct); box-shadow: none; border-radius: 14px; }
.pp-tag { font-weight: 800; border-radius: 14px; padding: 4px 10px; flex: none; }
.pp-tag .kit-ic { width: 16px; height: 16px; stroke-width: 2.4; }
.pp-tag.is-rev, :root[data-theme="dark"] .pp-tag.is-rev { background: var(--pp-sun-soft); color: var(--pp-sun-d); border: 0; }
.pp-tag.is-cur { background: var(--pp-leaf-soft); color: var(--pp-leaf-d); }
.pp-tag.is-lock { background: var(--pp-lock); color: var(--pp-lock-fg); }

/* plantes */
.pp-pl { flex: none; overflow: visible; }
.pp-pl.is-ghost { opacity: .3; filter: grayscale(1); }
.pp-bl { flex: none; width: 34px; height: 40px; }
.pp-plot-bg { fill: var(--pp-leaf-soft); }
.pp-plot.is-off .pp-plot-bg { fill: var(--pp-lock); stroke: var(--pp-raised-line); stroke-width: 2.5; stroke-dasharray: 5 4; }
.pp-plot.is-off g { opacity: .35; filter: grayscale(1); }
.pp-bl-sm { width: 34px; height: 40px; }
.pp-bl-lg { width: 60px; height: 70px; }
.pp-coin { width: 22px; height: 22px; }

/* sujet, carte « tuile » d'une matière */
.pp-mi { width: 40px; height: 40px; border-radius: 14px; background: var(--cs, var(--pp-leaf-soft)); color: var(--ct, var(--pp-leaf-d)); display: grid; place-items: center; flex: none; }
.pp-mi .kit-ic { width: 23px; height: 23px; }
.pp-mi.is-big { width: 52px; height: 52px; border-radius: 18px; background: var(--kit-surface); }

/* ---------- accueil : jardin, mission, parcelles ---------- */
.pp-j-home { gap: 12px; }
.pp-garden-card { position: relative; border-radius: 30px 30px 18px 18px; overflow: hidden; border: 2px solid var(--pp-raised-line); line-height: 0; flex: none; }
.pp-garden { width: 100%; height: auto; display: block; aspect-ratio: 350 / 190; }
.pp-garden-card.is-sm { border-radius: 20px; margin-bottom: 6px; }
.pp-chip-over { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: var(--kit-surface); border-radius: 20px; padding: 5px 12px 5px 8px; font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--pp-leaf-d); }
.pp-j-mission { background: var(--pp-sun-soft); border: 2px solid var(--pp-sun-line); border-radius: 26px; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.pp-j-mission-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-streak { display: inline-flex; align-items: center; gap: 5px; background: var(--kit-surface); color: var(--pp-sun-d); font-weight: 800; font-size: 14px; border-radius: 16px; padding: 3px 10px 3px 8px; }
.pp-streak .kit-ic { width: 18px; height: 18px; }
.pp-j-mission h3 { font-family: var(--kit-font-display); font-size: 22px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.pp-j-mission .pp-sub { color: var(--pp-sun-ink); margin-bottom: 8px; }
.pp-mats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-mat { background: var(--kit-surface); border: 2px solid var(--kit-line); border-bottom: 5px solid var(--c); border-radius: 26px 26px 16px 16px; padding: 10px; display: flex; align-items: center; gap: 8px; min-height: 74px; color: var(--kit-fg); }
.pp-mat .pp-mi { width: 36px; height: 36px; border-radius: 13px; }
.pp-mat:active { transform: scale(.98); }
.pp-mat.is-soon { border-bottom-color: var(--kit-line); }
.pp-mt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-mt b { font-family: var(--kit-font-display); font-size: 15.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.pp-mb { display: flex; align-items: center; gap: 6px; }
.pp-mb em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--ct); flex: none; }

/* ---------- matières (liste) ---------- */
.pp-island-card { border-radius: 26px 26px 16px 16px; border-bottom: 5px solid var(--c); background: var(--kit-surface); }
.pp-island-card-tx b { font-weight: 700; font-size: 19px; }
.pp-island-card em { font-weight: 800; font-size: 16px; }
.pp-island-card.is-soon { border-bottom-color: var(--kit-line); }
.pp-island-card.is-soon .pp-dot { background: var(--pp-lock); color: var(--pp-lock-fg); box-shadow: none; }

/* ---------- matière : en-tête, domaines, chapitres ---------- */
.pp-j-hero { display: flex; align-items: center; gap: 12px; background: var(--cs); border-radius: 28px; padding: 0 16px 0 12px; min-height: 70px; }
.pp-j-hero > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pp-j-hero b { font-family: var(--kit-font-display); font-size: 19px; color: var(--ct); line-height: 1.2; }
.pp-j-hero .pp-soil { flex: none; }
.pp-j-hero-pl { align-self: flex-end; margin-bottom: -2px; }
.pp-dom-card { background: var(--kit-surface); border: 2px solid var(--kit-line); border-radius: 26px; padding: 8px 14px 2px; }
.pp-dom-card h4 { font-family: var(--kit-font-display); font-size: 15px; font-weight: 700; color: var(--pp-leaf-d); padding: 0 2px 2px; }
.pp-chap { display: flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; border-top: 2px solid var(--kit-line); padding: 4px 0; color: var(--kit-fg); text-align: left; background: none; }
.pp-dom-card h4 + .pp-chap { border-top: 0; }
.pp-cp { width: 44px; height: 44px; border-radius: 50%; background: var(--cs); display: grid; place-items: center; flex: none; padding-top: 4px; }
.pp-cp .kit-ic { width: 22px; height: 22px; }
.pp-chap.is-lock .pp-cp { background: var(--pp-lock); color: var(--pp-lock-fg); padding-top: 0; }
.pp-chap.is-rev .pp-cp { background: var(--pp-sun-soft); }
.pp-chap.is-cur .pp-cp { box-shadow: 0 0 0 3px var(--c); }
.pp-ct { flex: 1; min-width: 0; }
.pp-ct b { font-family: var(--kit-font-display); font-size: 17px; font-weight: 700; display: block; line-height: 1.15; }
.pp-ct span { font-size: 14px; color: var(--kit-muted); display: block; line-height: 1.25; }
.pp-chap.is-lock b { color: var(--pp-lock-fg); }
.pp-rev { border: 2px solid var(--kit-line); border-radius: 22px; }
.pp-revisions .pp-sec { color: var(--pp-leaf-d); }

/* ---------- partie ---------- */
.pp-prog { margin-top: 18px; }
.pp-prog b { font-weight: 700; color: var(--pp-leaf-d); }
.pp-prog .pp-bar-lg { overflow: visible; }
.pp-prog .pp-bar-lg > i { position: relative; min-width: 10px; }
.pp-prog .pp-bar-lg > i::after {
  content: ""; position: absolute; right: -13px; top: -24px; width: 26px; height: 34px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M30 78V50' stroke='%232F6A40' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3Cpath d='M30 56C17 57 11 47 13 38c11 0 17 8 17 18z' fill='%2362B06F'/%3E%3Cpath d='M30 50c11 0 17-7 17-15-10-1-17 6-17 15z' fill='%234E9A5E'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pp-hud .pp-chip:first-child { background: var(--pp-sky-soft); color: var(--pp-sky-d); border-color: transparent; font-family: var(--kit-font-display); font-size: 20px; }
.pp-hud .pp-chip:first-child .kit-ic { color: var(--pp-sky-d); }
.pp-timer > i { background: var(--pp-sun-d); }
.pp-bubble { border-radius: 20px 20px 20px 6px; font-weight: 600; }
.pp-listen { background: var(--kit-surface); border: 2px solid var(--pp-raised-line); box-shadow: none; color: var(--pp-leaf-d); font-weight: 800; border-radius: 20px; }
.pp-listen:active { transform: scale(.97); box-shadow: none; }
.pp-q { text-align: left; border-radius: 30px; border-bottom-width: 6px; border-bottom-color: var(--pp-raised-line); padding: 18px 20px 22px; }
.pp-q-k { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--kit-muted); }
.pp-q-s { font-family: var(--kit-font-display); font-weight: 600; font-size: 28px; line-height: 1.35; margin-top: 8px; }
.pp-q.is-eq { text-align: center; background: var(--cs); border-color: transparent; border-bottom-color: var(--c); }
.pp-q.is-eq .pp-q-k { color: var(--ct); font-weight: 800; }
.pp-q.is-eq .pp-q-s { font-weight: 800; }
.pp-slot { border-bottom-color: var(--pp-leaf); }
.pp-slot.is-ok { color: var(--pp-leaf-d); border-color: var(--pp-leaf-d); }
.pp-slot.is-fix { color: var(--pp-terra); border-color: var(--pp-terra); }

.pp-answers { gap: 10px; }
.pp-answers:not(.is-short) { grid-template-columns: 1fr; }
.pp-ans {
  min-height: 60px; margin-bottom: 0; border-radius: 22px; background: var(--kit-surface);
  border: 2px solid var(--pp-raised-line); border-bottom: 5px solid var(--pp-press); box-shadow: none;
  font-weight: 700; font-size: 25px; letter-spacing: 0;
}
.pp-answers.is-short .pp-ans { min-height: 94px; font-size: 42px; font-weight: 800; border-radius: 28px; }
.pp-ans:active { transform: translateY(2px); box-shadow: none; border-bottom-width: 3px; }
.pp-ans.is-ok { background: var(--pp-leaf-soft); border-color: var(--pp-leaf); border-bottom-color: var(--pp-leaf-d); color: var(--pp-leaf-d); box-shadow: none; }
.pp-ans.is-miss { border-style: dashed; border-bottom-width: 2px; transform: none; background: transparent; }
.pp-kbd { border-color: var(--pp-raised-line); }
.pp-input { background: var(--kit-surface); border: 2px solid var(--pp-raised-line); border-bottom-width: 5px; border-radius: 22px; font-weight: 700; }
.pp-input:focus { border-color: var(--pp-leaf); }
.is-right .pp-input { border-color: var(--pp-leaf); color: var(--pp-leaf-d); }
.pp-tile { background: var(--kit-surface); border: 2px solid var(--pp-raised-line); border-bottom-width: 5px; box-shadow: none; font-weight: 700; border-radius: 18px; }
.pp-tile small { background: var(--cs); color: var(--ct); }
.pp-tile.is-used { transform: none; }
.is-right .pp-tile.is-placed, .pp-tile.is-fix { background: var(--pp-leaf-soft); border-color: var(--pp-leaf); color: var(--pp-leaf-d); box-shadow: none; }
.pp-tile.is-fix small { background: var(--pp-leaf-d); color: var(--kit-accent-fg); }
.pp-order-line { border-color: var(--pp-raised-line); border-radius: 22px; }
.pp-calm { background: var(--pp-sky-soft); border: 0; color: var(--kit-fg); border-radius: 22px; }
.pp-calm .kit-ic { color: var(--pp-sky-d); }
.pp-calm b { color: var(--pp-sky-d); }

/* ---------- fin de partie ---------- */
.pp-reward-art { width: 100%; background: var(--pp-sun-soft); border: 2px solid var(--pp-sun-line); border-radius: 30px; overflow: hidden; line-height: 0; }
.pp-reward-art svg { width: 100%; height: 176px; display: block; }
.pp-halo { fill: #FFF3CF; }
:root[data-theme="dark"] .pp-halo { fill: #4C4226; }
.pp-win { gap: 2px; }
.pp-win .pp-stars3 { margin-top: 10px; }
.pp-stars3 .pp-st { width: 46px; height: 46px; }
.pp-stars3 .pp-st:nth-child(2) { width: 56px; height: 56px; margin-bottom: 6px; }
.pp-win h2 { font-weight: 800; font-size: 30px; color: var(--pp-leaf-d); letter-spacing: 0; margin-top: 4px; }
.pp-winline { font-size: 16px; color: var(--kit-fg); }
.pp-score b { font-weight: 800; }
.pp-reward-t { font-weight: 700; }
.pp-reward small { font-size: 14px; }
.pp-reward .pp-soil { margin-top: 8px; flex: none; }
.pp-err { background: var(--pp-sky-soft); border: 0; border-radius: 22px; }
.pp-err-ans b { color: var(--pp-leaf-d); font-family: var(--kit-font-display); font-weight: 800; font-size: 17px; }
.pp-noerr { background: var(--pp-leaf-soft); color: var(--pp-leaf-d); font-weight: 700; border: 0; }

/* ---------- progrès, moi ---------- */
.pp-weak em { font-weight: 800; }
.pp-me-name { font-weight: 800; color: var(--pp-leaf-d); }
.pp-costume { border-radius: 22px; }
.pp-costume b { font-weight: 700; }
.pp-costume.is-on, :root[data-theme="dark"] .pp-costume.is-on { border-color: var(--pp-leaf-d); box-shadow: 0 0 0 3px var(--pp-leaf-soft); }
.pp-blgrid .pp-bl { aspect-ratio: 60 / 70; }

/* ---------- espace parent ---------- */
.pp-gate-head .kit-ic { color: var(--pp-leaf-d); }
.pp-gate-q, .pp-timeline b { font-weight: 800; }
.pp-timeline b { color: var(--pp-leaf-d); }

/* ---------- onboarding ---------- */
.pp-onb-hero { background: linear-gradient(var(--pp-sky-soft) 0 62%, #9CCB86 62% 80%, #8B5E3C 80%); border-bottom: 0; align-items: end; padding-bottom: 6%; }
.pp-onb-body h1 { font-weight: 800; color: var(--pp-leaf-d); letter-spacing: 0; }
.pp-steps i.is-on { background: var(--pp-leaf-d); }

/* ---------- grand écran : rail · contenu · panneau ---------- */
@media (min-width: 900px) {
  .pp-shell { grid-template-columns: 250px minmax(0, 1fr) 330px; }
  .pp-rail { background: var(--kit-surface); padding: 20px 16px; gap: 6px; }
  .pp-side { background: var(--pp-panel); padding: 20px; gap: 12px; }
  .pp-logo { display: flex; align-items: center; gap: 8px; padding: 0 6px 10px; color: var(--pp-leaf-d); }
  .pp-logo b { font-family: var(--kit-font-display); font-size: 28px; font-weight: 800; }
  .pp-rl { display: flex; align-items: center; gap: 12px; min-height: 60px; border-radius: 22px; padding: 8px 12px 8px 8px; color: var(--kit-fg); }
  .pp-rl:hover { background: var(--pp-panel); }
  .pp-rl-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .pp-rl-tx b { font-family: var(--kit-font-display); font-size: 17px; font-weight: 700; line-height: 1.2; }
  .pp-rl-tx .pp-soil { flex: none; }
  .pp-rl.is-on { background: var(--cs, var(--pp-leaf-soft)); }
  .pp-rl.is-on .pp-mi { background: var(--kit-surface); }
  .pp-mi.is-home { background: var(--pp-leaf-soft); color: var(--pp-leaf-d); }
  .pp-rail-f { margin-top: auto; border-top: 2px solid var(--kit-line); padding: 14px 8px 2px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--kit-muted); min-height: 56px; }
  .pp-rail-f.is-on { color: var(--pp-leaf-d); }
  .pp-card { background: var(--kit-surface); border: 2px solid var(--kit-line); border-radius: 24px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
  .pp-card h4 { font-family: var(--kit-font-display); font-size: 17px; font-weight: 700; }
  .pp-card .pp-sub { font-size: 14px; }
  .pp-card .pp-btn { margin-top: 6px; min-height: 52px; }
  .pp-wkdots { display: flex; justify-content: space-between; }
  .pp-d { width: 36px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .pp-d span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--pp-well); }
  .pp-d.is-done span { background: var(--pp-leaf-d); color: var(--kit-accent-fg); }
  .pp-d.is-now span { background: transparent; border: 2px dashed var(--pp-leaf); }
  .pp-d .kit-ic { width: 18px; height: 18px; stroke-width: 3; }
  .pp-d small { font-size: 13px; font-weight: 800; color: var(--kit-muted); }
  .pp-stars-row { display: flex; align-items: center; gap: 10px; }
  .pp-coll { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .pp-coll .pp-bl { width: 100%; height: auto; aspect-ratio: 60 / 70; }
  /* partie au centre, en grand */
  .pp-q { padding: 28px 32px 32px; }
  .pp-q-s { font-size: 40px; }
  .pp-answers.is-three:not(.is-short), .pp-answers:not(.is-short):not(.is-long) { grid-template-columns: 1fr 1fr; }
  .pp-ans { min-height: 96px; font-size: 34px; }
  .pp-answers.is-short .pp-ans { min-height: 120px; font-size: 60px; }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .pp-shell { grid-template-columns: 220px minmax(0, 1fr) 280px; }
}
