/* Parcours MDB de 12 semaines : la DA de l'espace épuré (verre, Advercase pour les titres, Figtree pour le reste). */

/* Cinq onglets, et le bouton Revenir à moi toujours visible */
body.parcours #onglets { display: none !important; }
.pc-onglets { grid-template-columns: repeat(4, 1fr) !important; }
.pc-onglets .tab { font-size: 12px; gap: 3px; }
.pc-onglets .tab span { white-space: nowrap; }
.pc-revenir-btn {
  display: flex; align-items: center; gap: 7px; height: 40px; margin-left: auto; padding: 0 14px 0 6px; border: 0; border-radius: 999px;
  background: var(--glass-fill-on), rgba(107, 43, 38, .45); color: var(--creme); font-weight: 600; font-size: 13.5px;
  box-shadow: var(--glass-shadow-on); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.pc-revenir-btn i { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #E8321A 0%, #FFA53A 55%, rgba(255, 165, 58, 0) 72%); animation: ep-souffle 10s ease-in-out infinite; }
body.parcours .topbar #compteBtn { margin-left: 10px; }
body.pc-ouverte .pc-revenir-btn, body:not(.parcours) .pc-revenir-btn { display: none; }
body.parcours.avec-onglets .app { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

/* Aujourd'hui */
.pc-repere-jour { margin: 6px 0 10px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.pc-jours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pc-jours span { display: grid; place-items: center; height: 34px; border-radius: 12px; font-size: 13px; background: rgba(250, 246, 236, .06); color: var(--ink-mute); }
.pc-jours span.passe { background: rgba(250, 246, 236, .14); color: var(--creme); }
.pc-jours span.auj { background: var(--creme); color: var(--nuit); font-weight: 700; }
.pc-c { margin-top: 16px; }
.pc-c .ep-lien { justify-self: center; }
.pc-nouveau { color: #FEF18E; font-weight: 700; }
.pc-geste p { font-size: 15px; }
.pc-entete { color: #FEF18E !important; font-weight: 600; }
.pc-avant { box-shadow: var(--glass-shadow-on), inset 0 0 0 1px rgba(254, 241, 142, .35); }
.pc-mot summary { font-size: 13.5px; color: var(--ink-soft); cursor: pointer; padding: 4px 0; }
.pc-mot p { margin: 6px 0 0 !important; }
.pc-rappels { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.pc-rappels span { flex: 1; font-weight: 600; }
.pc-test { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 14px; padding: 10px 12px; border-radius: 14px; background: rgba(254, 241, 142, .1); font-size: 13px; }
.pc-test input, .pc-test select { width: 64px; margin-left: 4px; padding: 4px 6px; border-radius: 8px; border: 1px solid rgba(250, 246, 236, .3); background: transparent; color: inherit; font: inherit; }
.pc-test select { width: auto; }

/* Mon parcours, Mes outils, Mes preuves */
.pc-semaine { border-top: 1px solid rgba(250, 246, 236, .14); }
.pc-semaine > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 2px; list-style: none; cursor: pointer; }
.pc-semaine > summary::-webkit-details-marker { display: none; }
.pc-semaine > summary b { display: block; font-weight: 500; font-size: 15.5px; }
.pc-semaine > summary small { display: block; font-size: 13px; color: var(--ink-soft); }
.pc-semaine[open] > summary .ep-chev { transform: rotate(90deg); }
.pc-avenir { opacity: .55; cursor: default; }
.pc-lettre-fermee .etiq { display: flex; gap: 6px; align-items: center; }
.pc-outil { cursor: default; }
.pc-outil-b { display: flex; gap: 6px; flex: none; }
.pc-preuve { display: block; cursor: default; }
.pc-preuve b { font-weight: 400; margin-top: 4px; }
.pc-preuve audio { width: 100%; margin-top: 8px; height: 36px; }

/* Mon soleil */
.pc-soleil { width: 100%; height: 100%; }
.pc-soleil.anime { animation: ep-souffle 10s ease-in-out infinite; }
.pc-soleil-grand { width: 220px; height: 220px; margin: 6px auto 0; }
.pc-courbe { width: 100%; height: auto; }

/* Revenir à moi */
.pc-numeros { display: grid; gap: 8px; }
.pc-numero { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(250, 246, 236, .08); color: inherit; text-decoration: none; }
.pc-numero b { font-size: 20px; font-weight: 700; min-width: 56px; }
.pc-numero span { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.pc-revenir { display: grid; justify-items: center; gap: 14px; text-align: center; margin-top: 28px; }
.pc-halo { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, #E8321A 0%, #F15A2B 30%, #FFA53A 60%, rgba(201, 160, 142, .5) 78%, transparent 100%); transform: scale(.86); }
.pc-halo.vit { animation: ep-souffle 10s ease-in-out infinite; }

/* Le jour 0 */
.pc-j0 { display: grid; gap: 14px; padding-top: 8px; }
.pc-j0 h1 { margin: 0; }
.pc-j0 .lead { margin: 0; }
.pc-accueil { justify-items: center; text-align: center; padding-top: 20px; }
.pc-accueil svg { width: 160px; height: 160px; }
.pc-secu { display: grid; gap: 8px; }
.pc-case { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(250, 246, 236, .07); cursor: pointer; }
.pc-case input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--creme); flex: none; }
.pc-reponse { padding: 4px 14px 10px; display: grid; gap: 10px; }
.pc-reponse p { margin: 0; font-size: 14.5px; color: var(--creme); }
.pc-interrupteur { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.pc-interrupteur b { display: block; font-weight: 600; }
.pc-interrupteur small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.pc-interrupteur input { width: 46px; height: 26px; flex: none; appearance: none; -webkit-appearance: none; border-radius: 999px; background: rgba(250, 246, 236, .2); position: relative; transition: background .2s; }
.pc-interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--creme); transition: transform .2s; }
.pc-interrupteur input:checked { background: rgba(254, 241, 142, .55); }
.pc-interrupteur input:checked::after { transform: translateX(20px); }
.pc-ol, .pc-ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.pc-phrase { font-size: 15.5px; color: var(--creme); min-height: 1.4em; margin: 4px 0; }

/* Puces (choix) */
.pc-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-puces.pc-col { display: grid; }
.pc-puce { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: rgba(250, 246, 236, .1); color: var(--creme); font: inherit; font-size: 14.5px; cursor: pointer; text-align: center; line-height: 1.3; }
.pc-col .pc-puce { justify-content: flex-start; text-align: left; border-radius: 16px; padding: 12px 16px; }
.pc-puce.on { background: var(--creme); color: var(--nuit); font-weight: 600; }
.pc-puce.juste { box-shadow: inset 0 0 0 1.5px #FEF18E; }
.pc-puce.enreg { background: #6B2B26; }

/* ================== La scène plein écran ================== */
body.pc-ouverte { overflow: hidden; }
.pc-scene { position: fixed; inset: 0; z-index: 900; display: grid; background: #2c0d0a; color: var(--creme); overflow: hidden; }
.pc-aura { position: absolute; inset: -10%; pointer-events: none; background: radial-gradient(110% 70% at 50% 0%, #8a3d33 0%, #6B2B26 38%, #3E140F 75%); }
.pc-aura i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: pc-derive 24s ease-in-out infinite alternate; }
.pc-aura i:nth-child(1) { width: 60vmax; height: 60vmax; left: -20vmax; top: -24vmax; background: #FFA53A; opacity: .28; }
.pc-aura i:nth-child(2) { width: 50vmax; height: 50vmax; right: -24vmax; top: 10vh; background: #A9BBD6; opacity: .12; animation-duration: 30s; }
.pc-aura i:nth-child(3) { width: 40vmax; height: 40vmax; left: 10vw; bottom: -26vmax; background: #3E140F; opacity: .8; animation-duration: 36s; }
@keyframes pc-derive { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
.pc-fermer { position: absolute; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(250, 246, 236, .12); color: var(--creme); font-size: 16px; cursor: pointer; }
.pc-corps { position: relative; z-index: 2; display: grid; grid-template-rows: auto 1fr; min-height: 0; overflow-y: auto; padding: max(70px, calc(env(safe-area-inset-top) + 56px)) 18px max(24px, env(safe-area-inset-bottom)); }
.pc-entre { animation: pc-entre .5s ease both; }
@keyframes pc-entre { from { opacity: 0; transform: translateY(8px); } }
.pc-milieu { grid-row: 2; display: grid; align-content: center; justify-items: center; gap: 16px; width: 100%; max-width: 460px; margin: 0 auto; text-align: center; }
.pc-carte { display: grid; gap: 14px; width: 100%; padding: 24px 20px; border-radius: var(--r-lg); text-align: left; }
.pc-carte > .btn-verre { margin-top: 4px; }
.pc-carte .ep-lien { justify-self: center; }
.pc-carte p { margin: 0; color: var(--ink-soft); }
.pc-q { font-family: var(--body); font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0; color: var(--creme); }
.pc-q2 { font-size: 16px; margin-top: 6px; }
.pc-grand { font-family: "Advercase", Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--creme) !important; margin: 0; text-align: center; }
.pc-moyen { font-size: 21px; }
.pc-ligne { font-size: 17px; line-height: 1.5; color: var(--creme) !important; }
.pc-consigne { text-align: center; padding: 34px 22px; }
.pc-minuteur { height: 3px; border-radius: 3px; background: rgba(250, 246, 236, .15); overflow: hidden; }
.pc-minuteur i { display: block; height: 100%; width: 100%; background: rgba(250, 246, 236, .7); transform-origin: left; animation: pc-minuteur linear both; }
@keyframes pc-minuteur { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pc-explique { color: var(--creme) !important; font-size: 15.5px; }

/* Le curseur de 0 à 10 */
.pc-curseur { display: grid; gap: 8px; }
.pc-val { font-family: "Advercase", Georgia, serif; font-size: 54px; line-height: 1; text-align: center; color: var(--creme); }
.pc-curseur input[type=range], .pc-mini input[type=range] { width: 100%; accent-color: #FEF18E; height: 32px; }
.pc-bornes { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-mute); }
.pc-mini { display: grid; gap: 2px; text-align: left; }
.pc-mini > span:first-child { font-size: 14.5px; color: var(--creme); }
.pc-mini-l { display: flex; gap: 10px; align-items: center; }
.pc-mini output { width: 22px; text-align: right; font-weight: 600; }

/* Lecteurs */
.pc-video { grid-row: 1 / span 2; position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; margin: calc(-1 * max(70px, calc(env(safe-area-inset-top) + 56px))) -18px 0; }
.pc-video video { width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.pc-video video::cue { font-family: Figtree, system-ui, sans-serif; font-weight: 600; background: rgba(20, 6, 4, .55); color: #FAF6EC; }
.pc-commandes { display: grid; grid-template-columns: 48px 64px 48px; gap: 22px; align-items: center; justify-content: center; }
.pc-commandes button { display: grid; place-items: center; height: 48px; border: 0; border-radius: 50%; background: rgba(250, 246, 236, .12); color: var(--creme); cursor: pointer; position: relative; }
.pc-commandes button small { position: absolute; font-size: 8.5px; font-weight: 700; }
.pc-commandes .pc-jouer { height: 64px; background: var(--glass-fill-on), rgba(250, 246, 236, .2); box-shadow: var(--glass-shadow-on); }
.pc-commandes button.on { background: var(--creme); color: var(--nuit); }
.pc-barre { width: min(320px, 80%); height: 3px; border-radius: 3px; background: rgba(250, 246, 236, .15); overflow: hidden; }
.pc-barre i { display: block; height: 100%; width: 0; background: var(--creme); }
.pc-barre-douce { opacity: .55; }
.pc-suite { color: var(--creme); }
.pc-audio .pc-halo { width: 190px; height: 190px; }
.pc-celebre { gap: 22px; }
.pc-celebre svg { width: 170px; height: 170px; }

/* Exercices écrits */
.pc-haut-ecrit { display: grid; gap: 8px; max-width: 460px; width: 100%; margin: 0 auto 14px; }
.pc-fil { height: 3px; border-radius: 3px; background: rgba(250, 246, 236, .15); overflow: hidden; }
.pc-fil i { display: block; height: 100%; background: var(--creme); }
.pc-ecrit { text-align: left; }
.pc-etape { font-size: 17px; line-height: 1.45; color: var(--creme) !important; }
.pc-ecrit textarea.input { min-height: 110px; width: 100%; }
.pc-debut { font-weight: 600; color: var(--creme) !important; }
.pc-repere { display: grid; gap: 4px; }
.pc-repere span { font-size: 13px; color: var(--ink-soft); }
.pc-silhouette { width: 100%; max-width: 210px; margin: 0 auto; }
.pc-silhouette svg { width: 100%; height: auto; display: block; }
.pc-point { fill: rgba(250, 246, 236, .08); stroke: rgba(250, 246, 236, .7); stroke-width: .8; cursor: pointer; transition: fill .2s; }
.pc-point.on { fill: #FFD36B; stroke: #FFD36B; filter: drop-shadow(0 0 3px rgba(217, 154, 60, .9)); }
.pc-compare { display: grid; gap: 6px; }
.pc-compare div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid rgba(250, 246, 236, .1); }
.pc-compare b { flex: none; }

/* La lettre et son sceau */
.pc-questions { display: grid; grid-template-columns: 32px 1fr 32px; gap: 6px; align-items: center; }
.pc-questions p { font-size: 14.5px; color: var(--creme) !important; text-align: center; }
.pc-q-nav { height: 32px; border: 0; border-radius: 50%; background: rgba(250, 246, 236, .1); color: var(--creme); font-size: 18px; cursor: pointer; }
.pc-lettre textarea.input { min-height: 240px; line-height: 1.55; }
.pc-outils-lettre { display: flex; gap: 8px; }
.pc-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-photos img { width: 64px; height: 84px; object-fit: cover; border-radius: 10px; }
.pc-sceau { gap: 20px; }
.pc-enveloppe { position: relative; width: 200px; height: 130px; border-radius: 10px; background: #FAF6EC; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.pc-enveloppe::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 58%); background: #efe6d2; border-radius: 10px 10px 0 0; }
.pc-cire { position: absolute; left: 50%; top: 52%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8a3d33, #6B2B26 55%, #3E140F); animation: pc-cire .9s cubic-bezier(.2, .8, .2, 1.2) both .3s; }
@keyframes pc-cire { from { transform: scale(2.2); opacity: 0; } }

/* Vitesse d'écoute */
.pc-commandes.pc-4 { grid-template-columns: 48px 64px 48px 48px; gap: 16px; }
.pc-commandes .pc-vitesse { font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; }

/* Audio illustré : ses mots à l'écran, la phrase clé en grand, le halo qui respire avec ses consignes */
.pc-illustre { align-content: space-between; min-height: 100%; gap: 14px; }
.pc-illustre .pc-halo { width: 130px; height: 130px; transition: transform 2s cubic-bezier(.4, 0, .2, 1), filter 2s, opacity 2s; }
.pc-halo[data-phase="inspire"] { transform: scale(1.08); transition-duration: 2s; }
.pc-halo[data-phase="encore"] { transform: scale(1.22); transition-duration: 1s; }
.pc-halo[data-phase="souffle"] { transform: scale(.72); filter: blur(6px); opacity: .7; transition-duration: 6s; }
.pc-titre-cle { min-height: 2.6em; display: grid; align-items: center; font-size: 30px; }
.pc-apparait { animation: pc-apparait 1.2s ease both; }
@keyframes pc-apparait { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
.pc-sous { min-height: 4.4em; margin: 0; font-weight: 600; font-size: 21px; line-height: 1.35; color: rgba(250, 246, 236, .55); text-align: center; }
.pc-sous span { transition: color .25s; }
.pc-sous span.dit { color: #FAF6EC; }
.pc-sous.cache { visibility: hidden; }

/* Sous-titres par-dessus la vidéo (zone sûre : au-dessus du tiers bas de l'image) */
.pc-video { position: relative; }
.pc-sous-video { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px; width: min(92%, 420px); min-height: 0; padding: 8px 14px; border-radius: 18px;
  background: rgba(30, 8, 6, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 18px; }
.pc-sous-video:empty { display: none; }

/* Mon parcours en entier : les mouvements, les semaines, ce qui est ouvert et ce qui arrive */
.pc-mvt { margin-top: 30px; }
.pc-mvt-t { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.pc-mvt-t i { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.pc-mvt-t b { display: block; font-family: "Advercase", Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.1; }
.pc-mvt-t small { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.pc-semaine.glass { border: 0; border-radius: 22px; margin-top: 10px; padding: 0 16px; }
.pc-semaine.glass > summary { padding: 16px 0; }
.pc-etat { display: block; font-size: 11.5px !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 3px; }
.pc-etat.cours { color: #FEF18E; }
.pc-etat.avenir { color: var(--ink-mute); }
.pc-items { display: grid; padding-bottom: 12px; }
.pc-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid rgba(250, 246, 236, .1); background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.pc-item.pc-ferme { opacity: .55; cursor: default; }
.pc-jr { flex: none; width: 74px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.pc-it { flex: 1; min-width: 0; }
.pc-it b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.pc-it small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
/* la version douce, proposée au moment de pratiquer */
.pc-doux { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: rgba(250, 246, 236, .06); font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); cursor: pointer; text-align: left; }
.pc-doux input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: #FEF18E; }
.pc-doux b { color: var(--creme); }

/* Le programme : une DA plus sobre que les consultations (oxblood foncé, presque uni, comme les vidéos) */
html:has(body.parcours) { background: #240a07; }
body.epure.parcours { background: linear-gradient(180deg, #4a1a14 0%, #36110d 55%, #240a07 100%) fixed; }
body.parcours .aurora { opacity: .18; }
/* les vidéos du jour : un bouton jaune qui respire */
.btn-video { background: #FEF18E !important; color: #3E140F !important; box-shadow: 0 0 0 0 rgba(254, 241, 142, .5); animation: pc-appel 2.8s ease-out infinite; }
@keyframes pc-appel { 0% { box-shadow: 0 0 0 0 rgba(254, 241, 142, .45); } 70% { box-shadow: 0 0 0 16px rgba(254, 241, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 241, 142, 0); } }
.pc-droits { margin: 34px 4px 6px; font-size: 12px; line-height: 1.5; color: var(--ink-mute); text-align: center; }
.pc-droits a { color: inherit; }
/* l'interrupteur Programme ⇄ Consultations, en haut */
.pc-mode { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px 0 14px; border: 0; border-radius: 999px; color: var(--creme); font: 600 13px/1 Figtree, system-ui, sans-serif;
  background: var(--glass-fill-on), rgba(250, 246, 236, .08); box-shadow: var(--glass-shadow-on); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); cursor: pointer; }
.pc-mode .piste { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(250, 246, 236, .22); transition: background .3s; }
.pc-mode .piste i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FAF6EC; box-shadow: 0 3px 8px rgba(20, 5, 3, .45); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pc-mode.on .piste { background: #FFB04A; }
.pc-mode.on .piste i { transform: translateX(18px); }
body.parcours .pc-revenir-btn { margin-left: auto; }
body:not(.parcours) .topbar .pc-mode + #compteBtn, body:not(.parcours) .topbar #compteBtn { margin-left: auto; }
@media (max-width: 380px) { .pc-revenir-btn { padding: 0 12px 0 6px; font-size: 12.5px; } .pc-mode { padding-left: 10px; font-size: 12px; } }

/* Les messages courts : au-dessus de tout (même d'une pratique ouverte), en entier, et lisibles */
.toast { z-index: 1000; border-radius: 18px; text-align: center; line-height: 1.4; width: auto; max-width: min(420px, calc(100% - 32px)); }
.pc-lire p { line-height: 1.55; }

/* L'exercice avec partage : photos ajoutées, puis envoi à Vanille */
.pc-fichier { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pc-vignettes { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-vignettes:empty { display: none; }
.pc-vignettes figure { position: relative; margin: 0; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; }
.pc-vignettes img { width: 100%; height: 100%; object-fit: cover; }
.pc-vignettes button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.btn-ecoute { margin-top: 6px; }
.pc-carte .btn-verre:disabled { opacity: .4; }
.pc-bienvenue a.btn-verre { display: flex; align-items: center; justify-content: center; text-decoration: none; width: 100%; }
a.btn-plein { display: flex; align-items: center; justify-content: center; text-decoration: none; }
/* Une précision de Vanille, affichée pendant l'audio (quand une phrase dite demande à être rectifiée) */
.pc-titre-cle.pc-precision { font-family: "Figtree", system-ui, sans-serif; font-size: 18px; line-height: 1.45; background: rgba(250,246,236,.1); border: 1px solid rgba(255,176,74,.45); border-radius: 16px; padding: 12px 16px; }

/* Petites animations des cartes (demande de Vanille du 01/11) */
/* Les trois respirations : inspire court par le nez, encore, puis une expiration plus longue par la bouche (cycle de 9 s) */
.pc-anim-souffle { margin: 4px 0 2px; }
.pc-as-barres { display: flex; gap: 6px; height: 14px; }
.pc-as-barres i { position: relative; border-radius: 8px; background: rgba(250,246,236,.14); overflow: hidden; }
.pc-as-barres i::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: 8px; }
.pc-as-barres .as-in { flex: 2; } .pc-as-barres .as-encore { flex: 1; } .pc-as-barres .as-out { flex: 6; }
.pc-as-barres .as-in::after, .pc-as-barres .as-encore::after { background: rgba(250,246,236,.75); }
.pc-as-barres .as-out::after { background: linear-gradient(90deg, #FFB04A, #FFD36B); }
.pc-as-barres .as-in::after { animation: as-in 9s linear infinite; }
.pc-as-barres .as-encore::after { animation: as-encore 9s linear infinite; }
.pc-as-barres .as-out::after { animation: as-out 9s linear infinite; }
@keyframes as-in { 0% { transform: scaleX(0); } 22% { transform: scaleX(1); } 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes as-encore { 0%, 22% { transform: scaleX(0); } 33% { transform: scaleX(1); } 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes as-out { 0%, 33% { transform: scaleX(0); } 92% { transform: scaleX(1); } 95% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.pc-as-legende { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft, rgba(250,246,236,.75)); }
.pc-as-legende span:last-child { color: #FFB04A; text-align: right; }
/* La lumière du matin : le soleil se lève derrière une fenêtre (cycle de 10 s) */
.pc-anim-lumiere { margin: 4px 0 2px; }
.al-ciel { position: relative; height: 86px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(169,187,214,.18), rgba(255,176,74,.12)); animation: al-ciel 10s ease-in-out infinite; }
.al-soleil { position: absolute; left: 50%; width: 46px; height: 46px; margin-left: -23px; bottom: -50px; border-radius: 50%; background: radial-gradient(circle, #FFE9A8 0%, #FFD36B 45%, #FFB04A 70%, rgba(255,176,74,0) 72%); box-shadow: 0 0 34px 10px rgba(255,211,107,.45); animation: al-soleil 10s ease-in-out infinite; }
.al-sol { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: rgba(62,20,15,.75); }
.al-fenetre { position: absolute; inset: 10px 30%; border: 2px solid rgba(250,246,236,.45); border-radius: 10px 10px 4px 4px; background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(250,246,236,.45) calc(50% - 1px), rgba(250,246,236,.45) calc(50% + 1px), transparent calc(50% + 1px)); }
@keyframes al-soleil { 0% { bottom: -50px; } 55% { bottom: 30px; } 85% { bottom: 30px; opacity: 1; } 100% { bottom: 30px; opacity: 0; } }
@keyframes al-ciel { 0% { filter: brightness(.7); } 55%, 90% { filter: brightness(1.25); } 100% { filter: brightness(.7); } }
@media (prefers-reduced-motion: reduce) { .pc-as-barres i::after, .al-soleil, .al-ciel { animation: none; } .pc-as-barres i::after { transform: scaleX(1); } .al-soleil { bottom: 30px; } }
.pc-encore { margin-top: 8px; } .pc-encore .etiq { margin: 0 0 8px 4px; }
.pc-sec { margin: 10px 0 2px 4px; }

/* Semaine 2 : l'échelle des états (la lumière en haut, l'ambre au milieu, la nuit en bas), le créneau, la descente */
.pc-barreau { gap: 12px; }
.pc-barreau i { flex: none; width: 34px; height: 8px; border-radius: 8px; }
.pc-barreau.b-securite i { background: linear-gradient(90deg, #FFD36B, #A9BBD6); box-shadow: 0 0 12px rgba(255, 211, 107, .55); }
.pc-barreau.b-mobilisee i { background: #D99A3C; box-shadow: 0 0 10px rgba(217, 154, 60, .5); }
.pc-barreau.b-affaissee i { background: #3E140F; box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .3); }
.pc-barreau.b-entre i { background: linear-gradient(90deg, #D99A3C, #3E140F); box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .2); }
.pc-etats { display: grid; gap: 8px; margin: 6px 0 2px; }
.pc-etats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pc-etats small { color: var(--ink-soft); }
.pc-etats b { font-weight: 600; white-space: nowrap; }
.pc-cr-note { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.pc-inq.barre { text-decoration: line-through; opacity: .55; }
.pc-descente { display: grid; gap: 10px; margin: 4px 0; padding-left: 20px; text-align: left; }
.pc-descente li span { display: block; font-size: 14px; }

/* Mes rendez-vous (23/11/2026) : une pastille par consultation incluse */
.pc-rdv-compte { display: flex; gap: 8px; margin: 6px 0 10px; }
.pc-rdv-compte i { width: 34px; height: 8px; border-radius: 8px; background: rgba(250, 246, 236, .18); }
.pc-rdv-compte i.prise { background: #FFB04A; }

/* ---------- Semaine 2 (ajout du 23/11) et semaine 3 : la silhouette qui montre les gestes ---------- */
/* L'élan : l'aura s'éclaire du bas vers le haut, de la nuit vers l'ambre puis l'or pâle (--elan de 0 à 1) */
.pc-scene.pc-elan-fond::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% calc(115% - var(--elan, 0) * 70%), rgba(255, 211, 107, calc(.12 + var(--elan, 0) * .38)) 0%, rgba(217, 154, 60, calc(.18 + var(--elan, 0) * .22)) 38%, rgba(24, 14, 30, .55) 78%);
  transition: background 1.2s linear; }
.pc-geste-ecran { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 8px 18px 0; position: relative; z-index: 1; }
.pc-geste-ecran .pc-grand { min-height: 2.5em; display: grid; place-items: center; }
.pc-geste-ecran .pc-minuteur { width: min(280px, 80%); }
.pc-fig { width: 150px; height: 230px; overflow: visible; }
.pc-fig g, .pc-fig path, .pc-fig circle { transform-box: view-box; }
.pc-fig .trait { fill: none; stroke: rgba(250, 246, 236, .92); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pc-fig .chaleur { fill: url(#pcChaleur); opacity: 0; transition: opacity 2.5s; }
.pc-fig .clarte { fill: url(#pcClarte); opacity: 0; transition: opacity 3s; }
.pc-fig .onde { fill: none; stroke: rgba(255, 211, 107, .8); stroke-width: 2; opacity: 0; transform-origin: 60px 66px; }
.pc-fig .poses, .pc-fig .frotte { display: none; }
.pc-fig[data-g="poses"] .libres, .pc-fig[data-g="frotter"] .libres .bras-d { display: none; }
.pc-fig[data-g="poses"] .poses { display: inline; }
.pc-fig[data-g="frotter"] .frotte { display: inline; animation: pc-frotte 1.1s ease-in-out infinite; }
.pc-fig[data-g="poses"] .chaleur { opacity: 1; animation: pc-chaleur 5s ease-in-out infinite; }
.pc-fig[data-g="lumiere"] .clarte { opacity: 1; }
.pc-fig .bras-g { transform-origin: 46px 56px; transition: transform .9s ease; }
.pc-fig .bras-d { transform-origin: 74px 56px; transition: transform .9s ease; }
.pc-fig .jambe-g { transform-origin: 52px 112px; }
.pc-fig .jambe-d { transform-origin: 68px 112px; }
.pc-fig .corps { transform-origin: 60px 190px; }
.pc-fig[data-g="lever"] .corps { animation: pc-lever 2.4s ease-out both; }
.pc-fig[data-g="etirer"] .bras-g { transform: rotate(150deg); }
.pc-fig[data-g="etirer"] .bras-d { transform: rotate(-150deg); }
.pc-fig[data-g="etirer"] .tete { animation: pc-baille 4s ease-in-out infinite; transform-origin: 60px 44px; }
.pc-fig[data-g="balancer"] .corps { animation: pc-balance 3s ease-in-out infinite; }
.pc-fig[data-g="lumiere"] .tete { transform: rotate(-12deg); transform-origin: 60px 44px; transition: transform 1.5s; }
.pc-fig[data-g="mains"] .bras-g, .pc-fig[data-g="mains"] .bras-d { animation: pc-secoue-mains .24s linear infinite; }
.pc-fig[data-g="bras"] .bras-g { animation: pc-secoue-bras-g .3s linear infinite; }
.pc-fig[data-g="bras"] .bras-d { animation: pc-secoue-bras-d .3s linear infinite; }
.pc-fig[data-g="jambe"] .jambe-g { animation: pc-secoue-jambe .3s linear infinite; }
.pc-fig[data-g="jambe2"] .jambe-d { animation: pc-secoue-jambe .3s linear infinite reverse; }
.pc-fig[data-g="bourdon"] .onde { animation: pc-onde 3s ease-out infinite; }
@keyframes pc-lever { from { transform: translateY(26px) scaleY(.86); } to { transform: none; } }
@keyframes pc-baille { 0%, 100% { transform: none; } 50% { transform: rotate(-10deg); } }
@keyframes pc-balance { 0%, 100% { transform: rotate(-4deg) translateX(-4px); } 50% { transform: rotate(4deg) translateX(4px); } }
@keyframes pc-frotte { 0%, 100% { transform: translate(0, -8px); } 50% { transform: translate(0, 10px); } }
@keyframes pc-chaleur { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes pc-secoue-mains { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pc-secoue-bras-g { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } }
@keyframes pc-secoue-bras-d { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(-10deg); } }
@keyframes pc-secoue-jambe { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(7deg); } }
@keyframes pc-onde { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.6); } }
/* en mouvement réduit, la silhouette reste immobile : seules les consignes changent */
@media (prefers-reduced-motion: reduce) { .pc-fig *, .pc-fig { animation: none !important; transition: none !important; } }
.pc-assez { opacity: 0; pointer-events: none; transition: opacity .6s; }
.pc-assez.on { opacity: 1; pointer-events: auto; }
.pc-geste-ecran .small { max-width: 320px; }

/* Ce que je porte : les listes, le tri ligne par ligne, le plus petit pas */
.pc-liste { display: grid; gap: 8px; }
.pc-liste .pc-l { display: flex; align-items: center; gap: 8px; }
.pc-liste .pc-l span { flex: 1; text-align: left; padding: 10px 12px; border-radius: 12px; background: rgba(250, 246, 236, .08); }
.pc-liste .pc-l button { border: 0; background: none; color: var(--ink-soft); font-size: 16px; padding: 6px; }
.pc-tri { display: grid; gap: 14px; text-align: left; }
.pc-tri .pc-tri-l > b { display: block; font-weight: 600; margin-bottom: 6px; }
.pc-tri .pc-puces { justify-content: flex-start; }
.pc-tri input { margin-top: 6px; }
.pc-pas-l { margin: 10px 0 2px; font-weight: 600; text-align: left; }

/* La fiche « Quand consulter » */
.pc-fiche { display: grid; gap: 10px; text-align: left; }
.pc-fiche > div { padding: 12px 14px; border-radius: 14px; background: rgba(250, 246, 236, .07); }
.pc-fiche small { display: block; color: var(--ink-soft); font-size: 13px; margin-bottom: 4px; }
.pc-fiche b { font-weight: 600; }

/* La carte des repas : ses heures */
.pc-heures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-heures label { display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-soft); text-align: left; }
.pc-geste-ecran .ep-lien { justify-self: center; }
.pc-heures { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; margin-top: 8px; }
.pc-heures input { width: 100%; min-width: 0; box-sizing: border-box; padding-left: 8px; padding-right: 8px; font-size: 15px; }
.pc-descente li > .pc-heures { min-width: 0; }
.pc-descente li { min-width: 0; } .pc-lire { min-width: 0; max-width: 100%; }

/* Exercices écrits : note vocale et photo du carnet sous chaque étape ; le tri en trois piles ; la frise des trois passages */
.pc-ajouts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.pc-ajouts .pc-puce { font-size: 13.5px; }
.pc-piles { display: grid; gap: 10px; text-align: left; }
.pc-pile { padding: 12px 14px; border-radius: 16px; background: rgba(250, 246, 236, .07); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.pc-pile > b { width: 100%; font-family: "Advercase", Georgia, serif; font-weight: 400; font-size: 20px; color: var(--creme); margin-bottom: 2px; }
.pc-pile span { padding: 6px 10px; border-radius: 999px; background: rgba(250, 246, 236, .12); font-size: 14px; }
.pc-pile span small { margin-left: 6px; color: var(--ink-soft); }
.pc-pile em { color: var(--ink-mute); font-size: 13.5px; }
.pc-frise { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 8px; text-align: center; }
.pc-frise::before { content: ""; position: absolute; left: 16%; right: 16%; top: 9px; height: 1px; background: linear-gradient(90deg, rgba(255, 211, 107, .2), rgba(255, 211, 107, .6), rgba(255, 211, 107, .2)); }
.pc-frise span { position: relative; display: grid; justify-items: center; gap: 6px; }
.pc-frise i { width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: rgba(250, 246, 236, .25); transition: all .6s; }
.pc-frise span.on i { width: 18px; height: 18px; margin-top: 0; background: #FFD36B; box-shadow: 0 0 14px rgba(255, 211, 107, .8); }
.pc-frise span.passe i { background: rgba(255, 211, 107, .55); }
.pc-frise small { font-size: 11.5px; line-height: 1.25; color: var(--ink-soft); }
.pc-frise span.on small { color: var(--creme); font-weight: 600; }

/* ---------- Une seule app, 4 onglets (maquette C, 26/11/2026) et corrections de l'audit du 25/11 ---------- */
/* La barre d'onglets plus opaque : le texte de la page ne passe plus dessous en transparence */
body.parcours .pc-onglets { background: rgba(40, 14, 11, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .1), 0 10px 30px rgba(0, 0, 0, .3); }
body.parcours .pc-onglets .tab[aria-current="page"] { color: var(--creme); }
/* Des textes à la taille des autres applications : 16 px pour lire, 13 à 14 px au plus petit */
body.parcours .small { font-size: 14px; }
body.parcours .etiq { font-size: 12.5px; }
body.parcours .pc-it small, body.parcours .ep-rangee small { font-size: 14px; }
body.parcours .pc-it b { font-size: 16px; }
body.parcours .pc-bornes { font-size: 13px; }
body.parcours .pc-q { font-size: 21px; }
body.parcours .pc-carte p, body.parcours .ep-carte p { font-size: 16px; }
body.parcours .pc-carte p.small, body.parcours .ep-carte p.small { font-size: 14px; }
/* Rien sous le bouton du bas */
body.avec-cta .app { padding-bottom: calc(150px + env(safe-area-inset-bottom)) !important; }
/* Le curseur sans valeur choisie d'avance : le point apparaît là où elle touche */
.pc-vierge::-webkit-slider-thumb { opacity: 0; }
.pc-vierge::-moz-range-thumb { opacity: 0; }
.pc-touche { text-align: center; margin: -4px 0 0; }
.pc-reglages-pratique { margin-top: 4px; }
.pc-reglages-pratique[open] { display: grid; gap: 10px; }
.pc-tout { display: block; margin: 8px auto 0; }
.pc-items-seul { margin: 10px 0 4px; }
.pc-items-seul .pc-item { border-top: 0; }
/* Le liseré des cartes qui viennent de vos séances (bleu MDB) */
.pc-lisere { box-shadow: inset 3px 0 0 #A9BBD6, var(--glass-shadow-on, 0 0 0 transparent); }
/* consultations (à part du programme, 30/11) : leur couleur, le bleu MDB */
.pc-consult > .etiq { color: #A9BBD6; }
.pc-consult .pc-item { box-shadow: inset 3px 0 0 #A9BBD6; padding-left: 12px; }
.pc-faits { margin-top: 6px; }
.pc-faits summary { cursor: pointer; padding: 10px 0; font-size: 14px; color: rgba(250, 246, 236, .7); }
.pc-vide { padding: 8px 0; }
/* Avec Vanille : les deux derniers messages */
.pc-bulles { display: grid; gap: 8px; margin: 4px 0 14px; }
.pc-bulle { margin: 0; max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.4; }
.pc-bulle small { display: block; margin-top: 4px; font-size: 12.5px; opacity: .65; }
.pc-bulle.vanille { background: rgba(250, 246, 236, .1); box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .12); border-bottom-left-radius: 6px; }
.pc-bulle.elle { margin-left: auto; background: #FAF6EC; color: #4A1712; border-bottom-right-radius: 6px; }
/* Mon soleil, en 3D : il tourne du doigt, une aura douce suit le doigt */
.pc-soleil-3d { position: relative; width: min(330px, 86vw); aspect-ratio: 1; margin: 6px auto 0; touch-action: none; }
.pc-soleil-3d > svg { width: 100%; height: 100%; }
.pc-soleil3d { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.pc-soleil-3d::before { content: ""; position: absolute; inset: -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 220, 160, .7), transparent), radial-gradient(1.2px 1.2px at 86% 16%, rgba(255, 220, 160, .6), transparent),
    radial-gradient(1.6px 1.6px at 92% 64%, rgba(255, 220, 160, .55), transparent), radial-gradient(1.2px 1.2px at 6% 70%, rgba(255, 220, 160, .6), transparent),
    radial-gradient(1px 1px at 30% 92%, rgba(255, 220, 160, .5), transparent), radial-gradient(1.3px 1.3px at 74% 94%, rgba(255, 220, 160, .5), transparent); }
.pc-aura-doigt { position: absolute; left: 0; top: 0; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 211, 107, .45), rgba(255, 165, 58, .15) 45%, transparent 70%); opacity: 0; transition: opacity .6s; }
.pc-aura-doigt.on { opacity: 1; transition: opacity .2s; }
.pc-soleil-aide { margin: 10px 0 0; text-align: center; font-size: 15px; color: rgba(255, 211, 160, .85); }
.pc-soleil-phrase { margin: 26px 0 14px; text-align: center; font-family: "Advercase", Georgia, serif; font-size: 27px; line-height: 1.12; color: var(--creme); }
.pc-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc-chiffres > div { display: grid; justify-items: center; gap: 4px; padding: 14px 6px; border-radius: 20px; }
.pc-chiffres b { font-family: "Advercase", Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1; color: #FFD36B; }
.pc-chiffres span { font-size: 14px; color: var(--ink-soft); }
.pc-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #FEF18E; color: #4A1712; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
.pc-curseur input.pc-vierge { accent-color: #3f3a3a; }
