/* Version épurée de l'espace des clientes (MDB) — validée par Vanille le 21/10/2026.
   Deux polices : Advercase pour les titres de page (h1, h2), Figtree pour tout le reste.
   Les cartes de verre restent ; les boutons sont en verre (le jaune quitte les boutons) ;
   l'aura ne vit qu'en haut de l'écran. Tout est sous body.epure : l'app Mindset du Trader n'est pas touchée. */

body.epure { --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15.5px; line-height: 1.55; }
body.epure h3 { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
body.epure .eyebrow { font-family: var(--body); }

/* L'aura seulement en haut, le reste calme pour lire */
body.epure .aurora {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0, 0, 0, .35) 34%, transparent 55%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 16%, rgba(0, 0, 0, .35) 34%, transparent 55%);
}
html:has(body.epure) { background: var(--nuit); }
body.epure { background: radial-gradient(120% 60% at 50% 0%, #5a2520 0%, var(--nuit) 60%) var(--nuit); background-attachment: fixed; }

/* Étiquette : petites capitales en Figtree (remplace la police machine à écrire) */
body.epure .etiq { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Boutons en verre */
body.epure .cta {
  height: 56px; padding: 0 24px; justify-content: center;
  background: var(--glass-fill-on), rgba(250, 246, 236, .12); color: var(--creme);
  box-shadow: var(--glass-shadow-on);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  font-size: 16px;
}
body.epure .cta-dot, body.epure .cta-chev { display: none; }
body.epure .cta[disabled] { background: rgba(250, 246, 236, .08); color: var(--ink-mute); box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .12); }
body.epure .cta-bar { background: linear-gradient(to top, rgba(40, 12, 9, .85), rgba(40, 12, 9, 0)); }
.btn-verre {
  display: flex; align-items: center; justify-content: center; text-align: center; width: 100%;
  min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; text-decoration: none;
  background: var(--glass-fill-on), rgba(250, 246, 236, .12); color: var(--creme);
  box-shadow: var(--glass-shadow-on); font-weight: 600; font-size: 15.5px; line-height: 1.25;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), filter .2s;
}
.btn-verre:active { transform: scale(.97); filter: brightness(1.15); }
.btn-plein { display: block; width: 100%; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--oxblood); color: var(--creme); font-weight: 600; font-size: 15.5px; }
.ep-lien { background: none; border: 0; padding: 6px 0; color: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; justify-self: start; cursor: pointer; }
.ep-petit-lien { font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; opacity: .85; white-space: nowrap; }

/* Pastille « Mon compte » */
body.epure .topbar #compteBtn { margin-left: auto; font-weight: 600; font-size: 15px; }
body.epure .topbar .brand { display: none; }
body.epure .topbar { min-height: 44px; }

/* Barre d'onglets : trois onglets */
body.epure .ep-onglets { grid-template-columns: repeat(3, 1fr); }
body.epure .ep-onglets .tab { font-size: 11.5px; }
body.epure.avec-onglets .cta-bar { bottom: calc(76px + env(safe-area-inset-bottom)); background: none; }
body.epure.avec-onglets .app { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }

/* Cartes et lignes */
.ep-carte { display: grid; gap: 10px; border-radius: var(--r-lg); padding: 20px; margin-top: 22px; }
.ep-carte p { margin: 0; color: var(--ink-soft); }
.ep-titre-exo { font-size: 20px; line-height: 1.25; margin: 0; }
.ep-intro { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-fait { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--creme) !important; margin: 4px 0 0; }
.ep-fait svg { width: 18px; height: 18px; }
.ep-liste { display: grid; margin-top: 18px; }
.ep-liste-bas { margin-top: 26px; }
.ep-rangee {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%;
  padding: 14px 2px; border: 0; border-top: 1px solid rgba(250, 246, 236, .14); background: none; color: inherit;
  text-align: left; text-decoration: none; cursor: pointer;
}
.ep-liste > .ep-rangee:last-child { border-bottom: 1px solid rgba(250, 246, 236, .14); }
.ep-rangee b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.ep-rangee small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.ep-chev { flex: none; opacity: .7; display: grid; }
.ep-chev svg { width: 18px; height: 18px; }
.ep-dans { margin-top: 6px; }
.ep-dans > .ep-rangee:last-child { border-bottom: 0; }
.ep-details { display: block; cursor: default; }
.ep-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.ep-details > summary::-webkit-details-marker { display: none; }
.ep-details[open] > summary .ep-chev { transform: rotate(90deg); }
.ep-details > p, .ep-details > .rappel-choix, .ep-details > #rappelNotif { margin: 12px 0 2px; color: var(--ink-soft); font-size: 14px; }

/* Progression */
.ep-points { display: flex; flex-wrap: wrap; gap: 7px; }
.ep-points i { width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 246, 236, .25); }
.ep-points i.on { background: var(--creme); }
.ep-barre { height: 4px; border-radius: 4px; background: rgba(250, 246, 236, .18); overflow: hidden; }
.ep-barre i { display: block; height: 100%; background: var(--creme); border-radius: inherit; }
.ep-suivi-jours { display: grid; gap: 8px; margin-top: 18px; }

/* Mon suivi */
.ep-seance { gap: 12px; }
.ep-seance-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ep-seance-tete h3 { font-size: 17px; }
.ep-resume { font-size: 15px; line-height: 1.6; color: var(--ink-soft); max-height: 6.4em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.ep-resume.ouvert { max-height: none; -webkit-mask-image: none; mask-image: none; }
.ep-resume p { margin: 0; color: inherit; }
.ep-resume p + p { margin-top: 10px; }
.ep-finis summary { font-size: 13.5px; color: var(--ink-soft); cursor: pointer; padding: 6px 0; }

/* La page d'un exercice */
.ep-titre-page-exo { font-family: var(--body); font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -.005em; margin: 8px 0 0; }
.ep-intro-page { font-size: 16.5px; color: var(--ink-soft); margin: 16px 0 0; }
body.epure .note { margin-top: 18px; }
body.epure .note .note-title { font-family: var(--body); font-weight: 600; font-size: 15px; }
.ep-apres { margin-top: 16px; }
.ep-plus { margin-top: 26px; border-top: 1px solid rgba(250, 246, 236, .14); padding-top: 4px; display: grid; gap: 12px; }
.ep-plus > summary { padding: 12px 2px; color: var(--ink-soft); font-size: 14.5px; cursor: pointer; }
.ep-plus[open] { gap: 12px; }
.ep-plus .thread { margin-top: 0; }
.ep-plus textarea.input { min-height: 90px; }
.ep-sous-titre { font-size: 16px; margin: 14px 0 0; }

/* L'arche des respirations */
.ep-arche { display: grid; justify-items: center; gap: 12px; text-align: center; margin-top: 22px; padding: 30px 22px 22px; border-radius: 180px 180px var(--r-lg) var(--r-lg); }
.ep-arche p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.ep-arche-soleil { width: 128px; height: 128px; border-radius: 50%; margin: 6px 0;
  background: radial-gradient(circle, #E8321A 0%, #F15A2B 30%, #FFA53A 62%, rgba(201, 160, 142, .6) 80%, transparent 100%);
  animation: ep-souffle 10s ease-in-out infinite; }
@keyframes ep-souffle { 0%, 100% { transform: scale(.86); } 40% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .ep-arche-soleil { animation: none; } }

/* Une étape par écran */
.ep-etape-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
body.epure .ep-barre { margin-top: 10px; }
.ep-etape-titre { font-family: var(--body); font-weight: 500; font-size: 15px; color: var(--ink-soft); margin: 22px 0 0; }
.ep-etape { margin-top: 10px; display: grid; gap: 14px; }
.ep-grand-texte { font-size: 21px; line-height: 1.45; color: var(--creme); margin: 0; }
.ep-question { font-size: 21px; line-height: 1.4; color: var(--creme); margin: 6px 0 0; font-weight: 500; }
.ep-etape textarea.input { min-height: 150px; font-size: 16px; }

/* La fin */
.ep-fin { display: grid; gap: 16px; justify-items: start; margin-top: 18px; }
.ep-fin-coche { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-fill-on), rgba(250, 246, 236, .12); box-shadow: var(--glass-shadow-on); }
.ep-fin-coche svg { width: 26px; height: 26px; }
.ep-envoi { display: grid; gap: 12px; width: 100%; margin-top: 8px; }

/* La fenêtre « Ton résumé est arrivé » */
.ep-pop { position: fixed; inset: 0; z-index: 50; background: rgba(20, 6, 4, .6); display: grid; align-items: end; justify-items: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); animation: ep-fondu .25s ease-out; }
.ep-pop-carte { width: 100%; max-width: 480px; background: var(--creme); color: var(--oxblood); border-radius: 28px; padding: 24px 22px; display: grid; gap: 12px;
  animation: ep-monte .35s cubic-bezier(.2, .8, .2, 1); }
body.epure .ep-pop-carte .etiq { color: rgba(107, 43, 38, .75); }
.ep-pop-carte h2 { font-size: 30px; line-height: 1.05; color: var(--oxblood); }
.ep-pop-carte p { margin: 0; font-size: 15px; }
.ep-pop-carte .ep-lien { justify-self: center; color: var(--oxblood); }
@keyframes ep-fondu { from { opacity: 0; } }
@keyframes ep-monte { from { transform: translateY(30px); opacity: 0; } }

/* Mon compte */
.ep-email { font-size: 14px; color: var(--ink-mute); }

/* Ordinateur : pas d'onglets (le menu de gauche les remplace) */
@media (min-width: 960px) {
  body.epure .ep-onglets { display: none !important; }
  body.epure.avec-onglets .cta-bar { bottom: 0; }
  body.epure .shell:not(.out) #compteBtn { display: none; }
}

/* Réponses rapides : l'échelle de 1 à 10, la règle du jour */
.ep-echelle { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ep-n { height: 46px; border: 0; border-radius: 14px; font-size: 17px; font-weight: 600; color: var(--creme);
  background: var(--glass-fill), rgba(250, 246, 236, .06); box-shadow: var(--glass-shadow); font-variant-numeric: tabular-nums; }
.ep-n[aria-pressed="true"] { background: var(--creme); color: var(--oxblood); box-shadow: none; }
.ep-regle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep-regle label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.ep-regle .input { height: 52px; font-size: 18px; text-align: center; }

/* Le reset à un toucher (Mindset du Trader) */
.ep-reset { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 16px 18px; border: 0; border-radius: var(--r-lg); text-align: left; cursor: pointer;
  background: var(--glass-fill), rgba(250, 246, 236, .06); color: var(--creme); box-shadow: var(--glass-shadow); }
.ep-reset b { display: block; font-size: 16px; font-weight: 700; }
.ep-reset small { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }
.ep-reset:active { transform: scale(.98); }

/* ---------- Mindset du Trader : le même parcours, dans sa DA ----------
   Nuit et graphite, glacier pour l'action (un seul bouton plein par écran), pas de verre, pas de lueur,
   pas de capitales très espacées, Public Sans. */
body.epure.mdt { --body: "Public Sans", "GT America", "Helvetica Neue", Arial, sans-serif; background: var(--mdt-nuit); font-size: 15px; }
html:has(body.epure.mdt) { background: var(--mdt-nuit); }
body.epure.mdt h1, body.epure.mdt h2 { font-family: var(--title); font-weight: 700; letter-spacing: -.02em; }
body.epure.mdt .etiq { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--mdt-texte-2); }
body.epure.mdt .cta { background: var(--mdt-glacier); color: var(--mdt-nuit); border-radius: 14px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-weight: 700; }
body.epure.mdt .cta[disabled] { background: #2A3239; color: rgba(230, 234, 237, .4); box-shadow: none; }
body.epure.mdt .cta-bar { background: linear-gradient(to top, var(--mdt-nuit) 60%, rgba(16, 19, 22, 0)); }
body.epure.mdt.avec-onglets .cta-bar { background: none; }
body.epure.mdt .btn-verre { background: var(--mdt-glacier); color: var(--mdt-nuit); border-radius: 14px; box-shadow: none; font-weight: 700; }
body.epure.mdt .btn-plein { background: var(--mdt-glacier); color: var(--mdt-nuit); border-radius: 14px; font-weight: 700; }
body.epure.mdt .ep-lien, body.epure.mdt .ep-petit-lien { color: var(--mdt-glacier); }
body.epure.mdt .ep-rangee, body.epure.mdt .ep-liste > .ep-rangee:last-child, body.epure.mdt .ep-plus { border-color: var(--mdt-ligne); }
body.epure.mdt .ep-points i { background: rgba(230, 234, 237, .16); border-radius: 2px; }
body.epure.mdt .ep-points i.on, body.epure.mdt .ep-barre i { background: var(--mdt-glacier); }
body.epure.mdt .ep-fin-coche { background: var(--mdt-glacier); color: var(--mdt-nuit); box-shadow: none; }
body.epure.mdt .ep-arche { border-radius: 18px; }
body.epure.mdt .ep-arche-soleil { border-radius: 50%; background: radial-gradient(circle at 40% 38%, rgba(255, 138, 61, .85), rgba(255, 138, 61, 0) 46%), radial-gradient(circle at 60% 62%, var(--mdt-glacier), rgba(143, 214, 234, 0) 58%); }
body.epure.mdt .ep-pop { background: rgba(8, 10, 12, .7); }
body.epure.mdt .ep-pop-carte { background: var(--mdt-graphite); color: var(--mdt-texte); box-shadow: inset 0 0 0 1px var(--mdt-ligne); border-radius: 18px; }
body.epure.mdt .ep-pop-carte h2 { color: var(--mdt-texte); }
body.epure.mdt .ep-pop-carte .etiq { color: var(--mdt-texte-2); }
body.epure.mdt .ep-pop-carte .ep-lien { color: var(--mdt-glacier); }
body.epure.mdt .topbar #compteBtn { box-shadow: inset 0 0 0 1px var(--mdt-ligne) !important; border-radius: 12px; color: var(--mdt-texte); }
body.epure.mdt .tabbar { border-radius: 16px; }
body.epure.mdt .tab { border-radius: 12px; }
body.epure.mdt .tab[aria-current="page"] { color: var(--mdt-glacier); }
body.epure.mdt .ep-n { border-radius: 12px; background: var(--mdt-graphite); box-shadow: inset 0 0 0 1px var(--mdt-ligne); color: var(--mdt-texte); }
body.epure.mdt .ep-n[aria-pressed="true"] { background: var(--mdt-glacier); color: var(--mdt-nuit); }
body.epure.mdt .ep-reset { background: var(--mdt-graphite); box-shadow: inset 0 0 0 1px rgba(143, 214, 234, .45); color: var(--mdt-texte); border-radius: 16px; }
body.epure.mdt .ep-reset b { color: var(--mdt-glacier); }
body.epure.mdt .ep-resume { color: var(--mdt-texte-2); }
body.epure.mdt .ep-titre-page-exo { font-weight: 700; letter-spacing: -.02em; }

/* Mon carnet / Mes réponses : on voit ce qu'on a écrit, et ce qui part chez Vanille */
.ep-reponses { display: grid; gap: 12px; margin-top: 26px; }
.ep-page { display: grid; gap: 10px; padding: 14px 16px; border-radius: 18px; background: rgba(250, 246, 236, .05); box-shadow: inset 0 0 0 1px rgba(250, 246, 236, .1); }
.ep-page-date { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.ep-qr { display: grid; gap: 2px; }
.ep-qr .q { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.ep-qr .a { margin: 0; font-size: 15.5px; color: var(--creme); }
.ep-reponses .ep-finis { display: grid; gap: 10px; }
.ep-reponses .small.muted { margin: -4px 0 0; }

/* Les jours à cocher : des pastilles de taille fixe, pas des disques qui grossissent avec l'écran */
body.epure .days-grid { grid-template-columns: repeat(7, 40px); gap: 10px; justify-content: start; }
body.epure .days-grid .dot { width: 40px; height: 40px; aspect-ratio: auto; font-size: 13px; padding: 0; }

/* Trader : le choix sélectionné doit se voir (le verre MDT est forcé en graphite) */
body.epure.mdt .rappel-choix .btn-line.glass[aria-pressed="true"],
body.epure.mdt .chip.glass[aria-pressed="true"] { background: var(--mdt-glacier) !important; color: var(--mdt-nuit) !important; font-weight: 700; box-shadow: none !important; }
body.epure.mdt .rappel-choix .btn-line { height: 46px; }
body.epure.mdt .ep-page { background: var(--mdt-graphite); box-shadow: inset 0 0 0 1px var(--mdt-ligne); border-radius: 14px; }
body.epure.mdt .ep-qr .a { color: var(--mdt-texte); }
body.epure.mdt .days-grid .dot { border-radius: 10px; }
