/* =====================================================================
   L'ALCHIMIE DES CHAKRAS — design OCCULT (ivoire + or), comme Manifestation
   ===================================================================== */

:root {
  --bg:          #ede5d4;
  --bg-elev:     #f8f3e9;
  --surface:     #fcf8f0;
  --surface-2:   #ece2ce;
  --line:        rgba(80,64,32,.14);
  --line-strong: rgba(154,123,60,.34);

  --text:      #2b2620;
  --text-soft: #6a6252;
  --text-mut:  #9a917e;

  --gold:      #c5a059;
  --gold-2:    #a97f38;
  --gold-deep: #886225;
  --gold-glow: rgba(197,160,89,.30);

  --ok:    #5c8f5f;
  --watch: #c9932e;
  --prio:  #b4553a;

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:      0 22px 50px -24px rgba(90,68,24,.38);
  --shadow-soft: 0 10px 26px -14px rgba(90,68,24,.22);
  --ease: cubic-bezier(.16,.84,.44,1);

  --serif: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 800px at 50% -20%, rgba(197,160,89,.20), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(154,123,60,.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 100px);
  min-height: 100dvh;
}
.app.no-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 30px); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; font-size: inherit; }
::selection { background: var(--gold-glow); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.soft { color: var(--text-soft); }
.mut  { color: var(--text-mut); }
.small { font-size: 13px; }
.center { text-align: center; }
b, strong { font-weight: 600; }

/* ---------------------------------------------------------------- Header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.head .brand { font-family: var(--serif); font-size: 13px; letter-spacing: .18em; color: var(--gold-2); }
.profile-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; cursor: pointer;
  box-shadow: var(--shadow-soft); max-width: 60%;
}
.profile-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-pill::before { content: "◉"; color: var(--gold); font-size: 11px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-soft); cursor: pointer; background: none; border: 0; padding: 4px 0; }

.title-block { margin: 6px 0 20px; }
.title-block h1 { margin-top: 6px; }
.title-block p { margin-top: 8px; color: var(--text-soft); }

/* ---------------------------------------------------------------- Cards */
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-soft); margin-bottom: 14px;
}
.card.hero {
  background: linear-gradient(160deg, #fbf6ec, #f1e6cf);
  border-color: var(--line-strong); box-shadow: var(--shadow);
}
.card h2 + p, .card h3 + p { margin-top: 6px; }
.card p + p { margin-top: 8px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font-weight: 500; font-size: 15px; text-align: center; transition: transform .15s var(--ease), box-shadow .2s;
  background: linear-gradient(135deg, #d9b876, #a97f38); color: #fffaf0;
  box-shadow: 0 10px 22px -10px rgba(136,98,37,.6);
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.quiet { background: transparent; color: var(--gold-deep); border-color: transparent; box-shadow: none; padding: 10px 12px; }
.btn.danger { background: transparent; color: var(--prio); border-color: rgba(180,85,58,.35); box-shadow: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btns { display: flex; gap: 10px; margin-top: 16px; }
.btns > .btn { flex: 1; }

/* ---------------------------------------------------------------- Colonne des centres (accueil) */
.column { position: relative; padding-left: 0; }
.ch-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer;
  transition: transform .15s var(--ease), border-color .2s;
}
.ch-row:active { transform: scale(.99); }
.ch-row.is-prio { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.ch-row img { width: 46px; height: 46px; flex: none; }
.ch-row .nm { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.ch-row .sk { font-size: 12px; color: var(--text-mut); }
.ch-row .chev { color: var(--text-mut); font-size: 18px; }

.badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge.ok    { background: rgba(92,143,95,.13);  color: #3f6f43; }
.badge.watch { background: rgba(201,147,46,.16); color: #8a6214; }
.badge.prio  { background: rgba(180,85,58,.14);  color: #8f3c24; }
.badge.none  { background: var(--surface-2); color: var(--text-mut); }

/* Mini jauge manque / trop */
.duo { display: flex; align-items: center; gap: 4px; width: 92px; flex: none; }
.duo .half { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); position: relative; overflow: hidden; }
.duo .half i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.duo .half.l i { right: 0; }
.duo .half.r i { left: 0; }
.duo .mid { width: 2px; height: 13px; background: var(--line-strong); border-radius: 1px; }
.duo-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-mut); width: 92px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------------------------------------------------------------- Bilan */
.progress { display: flex; gap: 5px; margin: 4px 0 18px; }
.progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--surface-2); }
.progress span.on { background: var(--gold); }
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.step-head img { width: 64px; height: 64px; flex: none; }
.side-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.side-title .count { font-size: 12px; color: var(--text-mut); }
.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); margin-bottom: 7px; cursor: pointer;
  font-size: 14.5px; line-height: 1.45; transition: border-color .15s, background .15s;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  flex: none; width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  margin-top: 1px; display: grid; place-items: center; color: #fff; font-size: 13px; transition: all .15s;
}
.check.on { border-color: var(--gold); background: #fbf3e2; }
.check.on .box { background: var(--gold); border-color: var(--gold); }
.check.on .box::after { content: "✓"; }

.scale { margin-top: 6px; }
.scale-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale-track button {
  padding: 10px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; cursor: pointer; line-height: 1.2; color: var(--text-soft);
}
.scale-track button.on { background: var(--gold); border-color: var(--gold); color: #fffaf0; font-weight: 600; }
.scale-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mut); margin-top: 6px; }

textarea, input[type=text], input[type=date], select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 15px; line-height: 1.5; outline: none; resize: vertical;
}
textarea:focus, input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
textarea { min-height: 84px; }
label.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin: 14px 0 6px; }

/* ---------------------------------------------------------------- Synthèse */
.prio-hero { display: flex; gap: 16px; align-items: center; }
.prio-hero img { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 8px 14px rgba(90,68,24,.25)); }
.legend-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; text-align: center; font-size: 11.5px; margin-top: 10px; }
.legend-grid div { padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.synth-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.synth-row:first-child { border-top: 0; }
.synth-row img { width: 34px; height: 34px; flex: none; }
.ressenti-tag { font-size: 11.5px; color: var(--text-mut); }
.note-quote { font-size: 13.5px; color: var(--text-soft); font-style: italic; border-left: 2px solid var(--gold); padding-left: 10px; margin-top: 6px; }

.practice dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin-top: 12px; }
.practice dd { margin-top: 3px; }
.levels { display: grid; gap: 8px; margin-top: 10px; }
.levels div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; }
.levels b { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 2px; }
.phrase { font-family: var(--serif); font-size: 16px; text-align: center; color: var(--gold-deep); padding: 14px 8px 4px; line-height: 1.4; }
.disclaimer { font-size: 12px; color: var(--text-mut); text-align: center; margin: 18px 6px 4px; line-height: 1.5; }

/* ---------------------------------------------------------------- Évolution */
.hist-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.hist-item:first-child { border-top: 0; }
.hist-item .date { font-size: 13px; color: var(--text-mut); }
.cmp-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row img { width: 34px; height: 34px; }
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: 42px 1fr 46px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-mut); }
.bar .tr { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 4px; }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; }
.delta-good { color: var(--ok); font-weight: 600; }
.delta-bad  { color: var(--prio); font-weight: 600; }
.chart { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--text-soft); margin-top: 8px; }
.chart-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 0; }

/* ---------------------------------------------------------------- 21 jours */
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 10px; }
.day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; font-size: 13px; font-weight: 500; cursor: pointer; position: relative;
}
.day.done { background: var(--gold); border-color: var(--gold); color: #fffaf0; }
.day.today { box-shadow: 0 0 0 2px var(--gold-deep); }
.day.sel { outline: 2px solid var(--text); outline-offset: 1px; }
.day i { position: absolute; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; }
.steps-list { counter-reset: s; list-style: none; }
.steps-list li { position: relative; padding: 10px 0 10px 38px; border-top: 1px solid var(--line); font-size: 14px; }
.steps-list li:first-child { border-top: 0; }
.steps-list li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--surface-2); color: var(--gold-deep); display: grid; place-items: center; font-size: 13px; font-weight: 600;
}
.steps-list b { display: block; }
.toggle-done { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-strong); cursor: pointer; font-weight: 500; }
.toggle-done .box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.toggle-done.on { background: #fbf3e2; border-color: var(--gold); }
.toggle-done.on .box { background: var(--gold); border-color: var(--gold); }
.toggle-done.on .box::after { content: "✓"; }

/* ---------------------------------------------------------------- Profils / réglages */
.prof { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.prof:first-child { border-top: 0; }
.prof .dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--gold); flex: none; }
.prof.on .dot { background: var(--gold); }
.icon-btn { background: none; border: 0; cursor: pointer; padding: 6px 8px; color: var(--text-mut); font-size: 15px; }

/* ---------------------------------------------------------------- Accès */
.gate { min-height: 88dvh; display: grid; place-items: center; text-align: center; }
.gate .inner { max-width: 420px; }
.gate .lotus { display: flex; justify-content: center; gap: 2px; margin-bottom: 22px; }
.gate .lotus img { width: 34px; height: 34px; }
.gate h1 { font-size: 24px; margin: 10px 0 12px; }
.gate p { color: var(--text-soft); }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 8px 10px calc(env(safe-area-inset-bottom) + 8px);
  background: rgba(248,243,233,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-around; }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 8px; color: var(--text-mut); font-size: 11px; min-width: 56px; }
.nav a .ni { font-size: 18px; line-height: 1.2; }
.nav a.on { color: var(--gold-deep); font-weight: 600; }
.nav.hidden { display: none; }

/* ---------------------------------------------------------------- Sheet + toast */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(43,38,32,.35); z-index: 40; display: none; align-items: flex-end; justify-content: center; }
.sheet-backdrop.open { display: flex; }
.sheet {
  width: 100%; max-width: var(--maxw); background: var(--bg-elev); border-radius: 24px 24px 0 0;
  padding: 10px 18px calc(env(safe-area-inset-bottom) + 22px); max-height: 85dvh; overflow: auto;
  animation: up .28s var(--ease);
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fbf6ec; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 50; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

.fade { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 380px) {
  h1 { font-size: 23px; }
  .duo, .duo-legend { width: 74px; }
  .scale-track button { font-size: 11px; }
}

/* =====================================================================
   v1.1 — profils, roue, balance, couleurs par centre, séance guidée
   ===================================================================== */
:root { --manque: #5a82b0; --trop: #d0703a; --cc: #c5a059; }

/* Qui est suivi, en haut à droite des écrans de détail */
.who { font-size: 12.5px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barre de profils */
.pbar { margin: -4px 0 16px; }
.pbar-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-mut); font-weight: 600; margin: 0 2px 7px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 14px; cursor: pointer; transition: all .15s var(--ease);
}
.chip .av, .prof .av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--gold-deep); flex: none;
}
.chip.on { background: linear-gradient(135deg, #d9b876, #a97f38); border-color: transparent; color: #fffaf0; font-weight: 500; box-shadow: 0 8px 18px -10px rgba(136,98,37,.7); }
.chip.on .av { background: rgba(255,250,240,.25); color: #fffaf0; }
.chip.add { border-style: dashed; border-color: var(--line-strong); color: var(--gold-deep); }
.chip.add .av { background: transparent; border: 1px dashed var(--line-strong); }
.prof .av { width: 34px; height: 34px; font-size: 14px; }
.prof.on .av { background: var(--gold); color: #fffaf0; }

/* Couleur du centre (--cc) appliquée à la page */
.tint .card.hero { background: linear-gradient(165deg, color-mix(in srgb, var(--cc) 13%, #fbf6ec), #f3e9d4 70%); border-color: color-mix(in srgb, var(--cc) 30%, transparent); }
.eyebrow.cc, .tint .practice dt { color: color-mix(in srgb, var(--cc) 72%, #2b2620); }
.tint .steps-list li::before { background: color-mix(in srgb, var(--cc) 16%, #f3ead7); color: color-mix(in srgb, var(--cc) 70%, #2b2620); }
.tint .phrase { color: color-mix(in srgb, var(--cc) 65%, #2b2620); }
.ch-row { border-left: 3px solid color-mix(in srgb, var(--cc) 70%, transparent); }

/* La roue */
.wheel { display: block; flex: none; overflow: visible; }
.center .wheel { margin: 0 auto; }
.prio-hero .wheel { margin: -6px -4px; }
.synth-row { color: inherit; }
.synth-row .wheel { margin: -4px -2px; }
.hist-item .wheel { margin: -4px 0; }
.wheels-cmp { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px 10px; margin-top: 14px; }
.wheels-cmp > div { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.wheels-cmp span { color: var(--text-mut); font-size: 13px; }

/* La balance manque / équilibre / trop */
.balance { position: relative; height: 22px; }
.bal-track { position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--manque), #c9d4df 30%, #e9dcbc 45%, #c5a059 50%, #e9dcbc 55%, #f0d2bd 70%, var(--trop)); }
.bal-track::after { content: ""; position: absolute; left: 50%; top: -5px; width: 2px; height: 18px; margin-left: -1px; background: rgba(43,38,32,.35); border-radius: 1px; }
.bal-mark { position: absolute; top: 2px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--text); border: 3px solid #fffaf0; box-shadow: 0 3px 8px rgba(43,38,32,.35); transition: left .4s var(--ease); }
.bal-mark.ress { background: #fffaf0; border: 3px solid var(--text); width: 16px; height: 16px; margin-left: -8px; top: 3px; }
.bal-legend { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 600; margin-top: 6px; color: var(--text-mut); }
.bal-key { display: flex; gap: 14px; font-size: 11.5px; color: var(--text-mut); margin-top: 6px; }
.bal-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.bal-key .k1 { background: var(--text); }
.bal-key .k2 { border: 2px solid var(--text); }

/* Verdict et ombre, en couleur */
.verdict { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); text-align: left; font-size: 14.5px; border-left: 4px solid var(--gold); background: rgba(255,250,240,.7); }
.verdict.manque { border-color: var(--manque); background: color-mix(in srgb, var(--manque) 10%, #fffaf0); }
.verdict.trop { border-color: var(--trop); background: color-mix(in srgb, var(--trop) 10%, #fffaf0); }
.shadow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.shadow { padding: 12px; border-radius: var(--radius-sm); font-size: 13.5px; border: 1px solid var(--line); background: var(--surface); border-top: 4px solid; }
.shadow b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.shadow.m { border-top-color: var(--manque); } .shadow.m b { color: var(--manque); }
.shadow.t { border-top-color: var(--trop); } .shadow.t b { color: var(--trop); }
.shadow.m.act { background: color-mix(in srgb, var(--manque) 12%, #fffaf0); border-color: color-mix(in srgb, var(--manque) 45%, transparent); border-top-color: var(--manque); }
.shadow.t.act { background: color-mix(in srgb, var(--trop) 12%, #fffaf0); border-color: color-mix(in srgb, var(--trop) 45%, transparent); border-top-color: var(--trop); }
@media (max-width: 380px) { .shadow-grid { grid-template-columns: 1fr; } }

/* Bilan : manque en froid, trop en chaud */
.side-title .sub { font-family: var(--sans); font-weight: 400; font-size: 12.5px; color: var(--text-mut); }
.card.side-m { border-top: 4px solid var(--manque); }
.card.side-t { border-top: 4px solid var(--trop); }
.side-m h3 { color: var(--manque); } .side-t h3 { color: var(--trop); }
.check.m.on { border-color: var(--manque); background: color-mix(in srgb, var(--manque) 9%, #fffaf0); }
.check.m.on .box { background: var(--manque); border-color: var(--manque); }
.check.t.on { border-color: var(--trop); background: color-mix(in srgb, var(--trop) 9%, #fffaf0); }
.check.t.on .box { background: var(--trop); border-color: var(--trop); }
.scale-track button.r0.on, .scale-track button.r1.on { background: var(--manque); border-color: var(--manque); }
.scale-track button.r3.on, .scale-track button.r4.on { background: var(--trop); border-color: var(--trop); }
.step-head .wheel { margin: -6px 0; }

/* Protocole */
.proto-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.proto-progress div { height: 100%; background: linear-gradient(90deg, #c0392b, #e07b24, #d4a514, #3f9a4f, #2f7fc1, #4b3f9e, #8a4fb0); border-radius: 3px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.pick a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; text-align: center; }
.pick img { width: 40px; height: 40px; }
.lotus-line { display: flex; justify-content: center; gap: 4px; margin: 6px 0 12px; }
.lotus-line img { width: 34px; height: 34px; }
.seance-dot { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold); font-size: 18px; }

/* Séance guidée */
.step-card { font-size: 15.5px; line-height: 1.6; }
.step-card p + p { margin-top: 8px; }
.big-son { font-family: var(--serif); font-size: 46px; text-align: center; color: color-mix(in srgb, var(--cc) 75%, #2b2620); letter-spacing: .06em; margin: 4px 0 2px; }
.caution { font-size: 13px; padding: 9px 12px; border-radius: 10px; background: #fbefe4; color: #8f3c24; margin-bottom: 10px; }
.med-soon { font-size: 13.5px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--cc) 10%, #fffaf0); border: 1px dashed color-mix(in srgb, var(--cc) 45%, transparent); color: var(--text-soft); }
.timer { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.tring-wrap { position: relative; width: 132px; height: 132px; flex: none; }
.tval { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 28px; font-variant-numeric: tabular-nums; }
.tbtns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tbtns .btn { padding: 11px 16px; font-size: 14px; }

/* Illustrations des mouvements */
.mvt-fig { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: 10px; margin: 0 0 12px; display: flex; justify-content: center; }
.mvt-fig img { max-width: 100%; max-height: 300px; height: auto; display: block; }
.mvt-item { padding: 14px 0; border-top: 1px solid var(--line); }
.mvt-item:first-of-type { border-top: 0; margin-top: 8px; }
.mvt-item h3 { margin-bottom: 4px; }

/* Cohérence cardiaque : la bulle monte (5 s) et redescend (5 s) */
.breath { position: relative; height: 210px; margin: -4px 0 12px; border-radius: var(--radius-sm);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cc) 10%, #fffaf0), #fbf6ec); overflow: hidden; }
.breath .bubble { position: absolute; left: 50%; bottom: 18px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffaf0, color-mix(in srgb, var(--cc) 55%, #fffaf0) 60%, color-mix(in srgb, var(--cc) 80%, #2b2620));
  box-shadow: 0 0 34px color-mix(in srgb, var(--cc) 45%, transparent);
  animation: breathe 10s ease-in-out infinite; animation-play-state: paused; }
.breath span { position: absolute; left: 16px; top: 50%; margin-top: -12px; font-family: var(--serif); font-size: 18px; letter-spacing: .08em;
  color: color-mix(in srgb, var(--cc) 70%, #2b2620); opacity: 0; animation: 10s linear infinite; animation-play-state: paused; }
.breath .in { animation-name: lblIn; }
.breath .out { animation-name: lblOut; }
.breath.run .bubble, .breath.run span { animation-play-state: running; }
.breath:not(.run) .in { opacity: .45; }
@keyframes breathe { 0% { transform: translateY(0) scale(.8); } 50% { transform: translateY(-92px) scale(1.18); } 100% { transform: translateY(0) scale(.8); } }
@keyframes lblIn { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lblOut { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Version découverte : contenus verrouillés */
.lockbox { position: relative; margin-bottom: 14px; border-radius: var(--radius); }
.lockbox > .lock-inner { filter: blur(7px) saturate(.7); opacity: .55; user-select: none; -webkit-user-select: none; pointer-events: none; }
.lockbox > .lock-inner > .card:last-child, .lockbox > .lock-inner > .column { margin-bottom: 0; }
.lock-over {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(237,229,212,.35); border: 1px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--gold-deep);
}
.lock-over .lk { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--bg-elev); box-shadow: var(--shadow-soft); }
.lock-page .lockbox { min-height: 70dvh; }
.lock-page .lock-over { justify-content: flex-start; padding-top: 28dvh; }
.lock-page .lock-over .lk { position: sticky; top: 30dvh; }
.btn.is-locked { background: var(--surface-2); color: var(--text-soft); box-shadow: none; border: 1px dashed var(--line-strong); }
.card.promo { display: flex; flex-direction: column; align-items: stretch; gap: 12px; border: 1px dashed var(--gold); background: linear-gradient(135deg, #fbf3e2, #f6ead2); }
.unlock-list { list-style: none; margin: 14px 0 16px; }
.unlock-list li { position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--line); font-size: 14px; }
.unlock-list li:first-child { border-top: 0; }
.unlock-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.nav a.lk .ni { opacity: .45; }
.nav a.lk .nl::after { content: " 🔒"; font-size: 9px; }

/* v1.3 */
.wheel-box { margin: 0 auto; }
.wheel-box .wheel { margin: 0 auto; }
.wheel-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-top: -6px; }
.bal-note { font-size: 13px; color: var(--text-soft); margin-top: 12px; line-height: 1.5; text-align: left; }
.regit ul { list-style: none; margin-top: 10px; }
.regit li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); font-size: 14px; }
.regit li:first-child { border-top: 0; }
.regit li::before { content: "◆"; position: absolute; left: 2px; top: 8px; font-size: 9px; color: color-mix(in srgb, var(--cc) 75%, #2b2620); }
.lock-over { padding: 18px 22px; text-align: center; }
.lock-over .lt { font-family: var(--serif); font-size: 17px; color: var(--text); }
.lock-over .lx { font-weight: 400; font-size: 13.5px; color: var(--text-soft); max-width: 300px; line-height: 1.45; }
.lock-over .lgo { margin-top: 4px; font-size: 12.5px; padding: 6px 14px; border-radius: 999px; background: var(--text); color: #f3e3bf; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; margin-bottom: 14px;
  border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--line-strong); font-size: 13px; line-height: 1.3; }
.btn-unlock { flex: none; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(135deg, #2b2620, #4a3f30); color: #f3e3bf; box-shadow: 0 8px 18px -10px rgba(43,38,32,.7); }
.lockbox { min-height: 210px; }
.lockbox > .lock-inner { min-height: 210px; }

/* Jung et archétypes */
.rich p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
.rich h3 { margin-top: 14px; }
.rich ul { margin: 8px 0 0 18px; font-size: 14px; }
.rich li { margin-top: 6px; }
.rich blockquote { margin-top: 10px; font-family: var(--serif); color: color-mix(in srgb, var(--cc) 65%, #2b2620); }
.rich .callout { margin-top: 12px; padding: 4px 14px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; }
.card.jung { border-top: 3px solid color-mix(in srgb, var(--cc) 55%, transparent); }
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; font-size: 14px; padding: 6px 0; list-style: none; }
details.more summary::after { content: " ›"; }
details.more[open] summary::after { content: " ⌄"; }

/* En-tête : les sept centres et la signature */
.top { text-align: center; margin: 4px 0 18px; }
.lotus-top { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.lotus-top img { width: 30px; height: 30px; display: block; transition: transform .2s var(--ease); }
.lotus-top a:active img { transform: scale(.9); }
.top .brand { font-family: var(--serif); font-size: 15px; letter-spacing: .2em; color: var(--text); }
.top .by { display: inline-block; margin-top: 3px; font-size: 12px; letter-spacing: .06em; color: var(--gold-2); }

/* Page « Aller plus loin » */
.plus-card { display: flex; align-items: center; gap: 14px; color: inherit; }
.plus-card img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.promo-hero { text-align: center; padding: 22px 18px 24px; border-radius: var(--radius); margin-bottom: 14px; color: #f3e3bf;
  background: radial-gradient(circle at 50% 0%, #3a2e1f, #15110c 75%); box-shadow: var(--shadow); }
.promo-hero img { width: 120px; height: auto; margin: 0 auto 6px; display: block; }
.promo-hero h1 { color: #f8efdc; margin-top: 4px; }
.promo-hero p { color: #cdbd9c; margin-top: 8px; font-size: 14px; }
.product-img { width: calc(100% + 36px); margin: -18px -18px 14px; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.product.ea { border-top: 3px solid var(--gold); }
.author { display: flex; gap: 14px; align-items: flex-start; }
.author img { width: 84px; height: 105px; object-fit: cover; border-radius: 12px; flex: none; }
.product.ea .product-img { background: #0d0a07; object-fit: contain; max-height: 380px; }
.product.video { border-top: 3px solid color-mix(in srgb, #8a4fb0 50%, var(--gold)); }
.nav a { min-width: 0; flex: 1; padding: 4px 2px; }
.nav a .nl { white-space: nowrap; font-size: 10.5px; }
.nav a.lk .nl::after { content: "🔒"; font-size: 8px; margin-left: 1px; }

/* Méditations */
.medit img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); display: block; background: #15110c; }
.medit-body { margin-top: 10px; }
.medit audio { width: 100%; margin-top: 10px; height: 40px; }
.medit .medit-soon { margin-top: 10px; }
.medit-card { padding: 12px; border-top: 3px solid var(--cc); }
.medit-card h3 { color: color-mix(in srgb, var(--cc) 70%, #2b2620); }
.medit-entry { display: flex; align-items: center; gap: 14px; color: inherit; }
.medit-entry img { width: 112px; height: 63px; object-fit: cover; border-radius: 10px; flex: none; }
a.lnk { color: var(--gold-deep); font-weight: 600; font-size: 13px; white-space: nowrap; }
