/* Mon parcours (anneau, calendrier, objectif), rappels et sous-titres. Chargé après styles.css. */

/* ── Anneau de la semaine ───────────────────────────── */
.pr-ring{ --size:64px; position:relative; flex:none; width:var(--size); height:var(--size); display:grid; place-items:center; }
.pr-ring svg{ position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.pr-ring circle{ fill:none; stroke-width:5.5; }
.pr-ring .trk{ stroke:var(--soft-2); }
.pr-ring .val{ stroke:var(--sage); stroke-linecap:round; transition:stroke-dasharray .8s var(--ease); }
.pr-ring.full .val{ stroke:var(--gold); }
[dir="rtl"] .pr-ring svg{ transform:rotate(-90deg) scaleY(-1); }
.pr-ring b{ position:relative; font-family:var(--serif); font-weight:500; font-size:calc(var(--size) * .3); color:var(--heading); line-height:1; display:flex; align-items:baseline; }
.pr-ring b small{ font-size:.55em; color:var(--muted); font-family:var(--sans); font-weight:600; }
.pr-ring b svg{ position:static; transform:none; width:calc(var(--size) * .38); height:calc(var(--size) * .38); color:var(--gold-text); }

/* ── Pastille sur l'accueil + lien dans le compte ───── */
.pr-chip, .pr-link{ display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--text); }
.pr-chip{ margin-top:14px; width:100%; max-width:560px; padding:10px 16px 10px 10px; padding-inline:10px 16px; border-radius:22px;
  background:var(--glass); border:1px solid var(--glass-brd); box-shadow:var(--shadow-sm); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  transition:transform .3s var(--ease), box-shadow .3s; }
.pr-chip:hover, .pr-link:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.pr-chip-txt{ display:flex; flex-direction:column; gap:2px; min-width:0; flex:1; }
.pr-chip-txt b{ font-weight:700; font-size:1rem; }
.pr-chip-txt small{ color:var(--muted); font-size:.88rem; line-height:1.4; }
.pr-chip-txt .kicker{ font-size:.78rem; }
.pr-chip-go{ color:var(--muted); display:grid; place-items:center; }
.pr-chip-go svg{ width:20px; height:20px; }
.pr-link{ padding:18px 22px; transition:transform .3s var(--ease), box-shadow .3s; }
.pr-link .pr-chip-txt b{ font-family:var(--serif); font-weight:500; font-size:1.25rem; color:var(--heading); }

/* ── Page « Mon parcours » ──────────────────────────── */
.practice .page-head{ margin-bottom:6px; }
.pr-goal{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:28px; align-items:center; }
.pr-week{ display:flex; align-items:center; gap:20px; }
.pr-big{ font-weight:700; font-size:1.1rem; }
.pr-soft{ color:var(--muted); font-size:.92rem; line-height:1.55; }
.pr-streak{ display:inline-flex; align-items:center; gap:8px; margin-top:10px; padding:6px 12px; border-radius:999px; background:var(--soft); color:var(--gold-text); font-weight:600; font-size:.88rem; }
.pr-streak svg{ width:16px; height:16px; flex:none; }
.pr-goal-set{ display:flex; flex-direction:column; gap:8px; padding-inline-start:28px; border-inline-start:1px solid var(--line); }
.pr-goal-set h3{ font-family:var(--serif); font-weight:500; font-size:1.1rem; color:var(--heading); }
.pr-days{ align-self:flex-start; flex-wrap:nowrap; }
.pr-days button{ min-width:38px; padding:0; }
@media (max-width:760px){
  .pr-goal{ grid-template-columns:1fr; gap:20px; }
  .pr-goal-set{ padding-inline-start:0; border-inline-start:0; border-top:1px solid var(--line); padding-top:18px; }
  .pr-days{ align-self:stretch; justify-content:space-between; }
  .pr-days button{ min-width:0; flex:1; padding:0; }
  .pr-chip{ padding:8px 12px 8px 8px; padding-inline:8px 12px; }
  .pr-link{ padding:16px 18px; }
}

/* ── Calendrier ─────────────────────────────────────── */
.cal-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.cal-head h2{ margin:0; text-align:center; flex:1; }
.cal-head .ctl:disabled{ opacity:.35; cursor:default; transform:none; box-shadow:none; }
.cal-head, .cal-grid, .cal-legend{ max-width:460px; margin-inline:auto; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.cal-wd{ margin-bottom:6px; }
.cal-wd span{ text-align:center; color:var(--muted); font-size:.8rem; font-weight:700; }
.cal-cell{ position:relative; width:100%; max-width:50px; justify-self:center; aspect-ratio:1; display:grid; place-items:center; border-radius:50%; font-size:.95rem; font-weight:600; color:var(--text); }
.cal-cell i{ font-style:normal; position:relative; }
.cal-cell.done{ background:linear-gradient(135deg,var(--sage),var(--forest-2)); color:#fff; box-shadow:0 8px 18px -10px var(--accent-glow); }
[data-theme="dark"] .cal-cell.done{ background:linear-gradient(135deg,var(--gold-2),var(--gold)); color:#1c150c; }
.cal-cell.short{ background:var(--soft); box-shadow:inset 0 0 0 1.5px var(--sage-2); }
[data-theme="dark"] .cal-cell.short{ box-shadow:inset 0 0 0 1.5px rgba(201,168,106,.55); }
.cal-cell.today{ outline:2px solid var(--gold); outline-offset:2px; }
.cal-cell.future{ color:var(--muted); opacity:.45; }
.cal-legend{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin-top:18px; color:var(--muted); font-size:.85rem; }
.cal-legend span{ display:inline-flex; align-items:center; gap:7px; }
.cal-legend b{ margin-inline-start:auto; color:var(--gold-text); font-weight:700; }
.lg{ width:14px; height:14px; border-radius:50%; display:inline-block; }
.lg.done{ background:linear-gradient(135deg,var(--sage),var(--forest-2)); }
[data-theme="dark"] .lg.done{ background:linear-gradient(135deg,var(--gold-2),var(--gold)); }
.lg.short{ background:var(--soft); box-shadow:inset 0 0 0 1.5px var(--sage-2); }
.lg.today{ box-shadow:inset 0 0 0 2px var(--gold); }
@media (max-width:560px){ .cal-grid{ gap:4px; } .cal-cell{ font-size:.86rem; } .panel.cal{ padding:20px 14px; } }

/* ── Réglages : interrupteurs ───────────────────────── */
.pref-sw{ flex-wrap:nowrap; align-items:center; }
.pref-txt{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.pref-txt b{ display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.pref-txt b svg{ width:18px; height:18px; color:var(--gold-text); flex:none; }
.pref-txt small{ color:var(--muted); font-size:.86rem; line-height:1.5; }
.pref-note{ margin:0 0 4px; }
.switch{ position:relative; flex:none; width:52px; height:30px; border-radius:999px; background:var(--soft-2); border:1px solid var(--ctl-brd); transition:background .25s; }
.switch i{ position:absolute; top:3px; inset-inline-start:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,.25); transition:transform .25s var(--ease); }
.switch[aria-checked="true"]{ background:var(--accent); border-color:transparent; }
.switch[aria-checked="true"] i{ transform:translateX(22px); }
[dir="rtl"] .switch[aria-checked="true"] i{ transform:translateX(-22px); }
[data-theme="dark"] .switch i{ background:#f3ead8; }
.switch[aria-busy="true"]{ opacity:.6; }

/* ── Réglages : rythme des rappels ──────────────────── */
.pref-sw:has(+ .rem-rhythm){ border-bottom:0; padding-bottom:6px; }
.rem-rhythm{ flex-direction:column; align-items:stretch; gap:12px; padding-top:4px; }
.rem-opts-row{ display:flex; flex-direction:column; gap:7px; }
.rem-opts-k{ color:var(--muted); font-size:.82rem; font-weight:700; letter-spacing:.02em; }
.rem-opts{ display:flex; flex-wrap:wrap; gap:7px; }
.rem-opts button{ min-height:36px; padding:0 14px; border-radius:999px; font-size:.88rem; font-weight:600; color:var(--text);
  background:var(--ctl-bg); border:1px solid var(--ctl-brd); transition:background .2s, color .2s, box-shadow .2s; }
.rem-opts button:hover{ border-color:var(--accent); }
.rem-opts button[aria-pressed="true"]{ background:var(--accent); color:var(--accent-ink); border-color:transparent; box-shadow:0 6px 14px -8px var(--accent-glow); }

/* ── Sous-titres : repère dans le lecteur de démo ───── */
.demo-cc{ display:inline-flex; align-items:center; gap:7px; margin-top:6px; padding:5px 12px; border-radius:999px; background:rgba(255,255,255,.14); font-size:.86rem; font-weight:600; }
.demo-cc svg{ width:16px; height:16px; }

/* ── Invitation aux rappels ─────────────────────────── */
.pr-sheet-wrap{ position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(20,26,18,.38); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); opacity:0; transition:opacity .35s; }
.pr-sheet-wrap.in{ opacity:1; }
.pr-sheet{ width:100%; max-width:420px; text-align:center; padding:30px 26px 24px; border-radius:30px; background:var(--glass-strong);
  border:1px solid var(--glass-brd); box-shadow:var(--shadow-lg); transform:translateY(24px); transition:transform .45s var(--ease); }
.pr-sheet-wrap.in .pr-sheet{ transform:none; }
.pr-sheet img{ width:72px; height:72px; border-radius:50%; object-fit:cover; margin:0 auto 12px; display:block; box-shadow:0 0 0 4px var(--soft-2); }
.pr-sheet h2{ font-family:var(--serif); font-weight:500; font-size:1.45rem; color:var(--heading); margin-bottom:8px; }
.pr-sheet p{ color:var(--muted); line-height:1.6; }
.pr-sheet .tip{ text-align:start; }
.pr-sheet-btns{ display:flex; flex-direction:column; gap:10px; margin-top:20px; }
@media (max-width:760px){
  .pr-sheet-wrap{ align-items:flex-end; padding:0; }
  .pr-sheet{ max-width:none; border-radius:30px 30px 0 0; padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
}
