/* Mon Coach Tefila — guest.css — V4 « Warm Textile / Parchemin »
   Les fonts (Spectral / Inter / Frank Ruhl Libre / JetBrains Mono) sont déclarées
   dans tokens.css (self-hosted via R2). Pas de @import Google ici. */

@font-face {
  font-family: "TorahStam";
  src: url("/assets/ShlomoSemiStam.ttf") format("truetype");
  font-weight: normal; font-style: normal; font-display: swap;
}

:root {
  /* Identité — palette V4 « Warm Textile ». Marine identique au logo. */
  --blue:       #031f51;
  --blue-dark:  #010f2a;
  --blue-mid:   #0a2d6b;
  --blue-light: #5b6e9a;
  --cream:       #faf3e3;
  --cream-light: #f3ead4;
  --cream-card:  #fffdf6;
  --text:        #2a2417;
  --text-mid:    #6b5e44;
  --text-dim:    #9d8c6a;
  --border:      rgba(201,162,83,0.35);
  --border-strong: rgba(201,162,83,0.6);
  --gold:        #c9a253;
  --gold-light:  #e8d49a;
  --green:       #5a7a3a;
  --green-light: #eaf0dd;
  --r: 14px; --r-sm: 8px;
  /* Torah display */
  --torah-font: "TorahStam","SBL Hebrew","Frank Ruhl Libre",serif;
  --sheet-bg: #ede2c8; --sheet-border: #d9cba6;
  --meta-color: #9d8c6a;
  --pasuk-number-width: 42px; --pasuk-gap: 10px;
  --standard-font-size: 32px; --standard-line-height: 1.85;
  --shira-font-size: 32px; --shira-line-height: 1.65;
  --shira-col-gap: 64px; --shira-line-gap: 6px;
  --small-size: 13px;
}

*{box-sizing:border-box;margin:0;padding:0;}
body{background:var(--blue);color:var(--text);font-family:'Inter',sans-serif;font-weight:300;min-height:100vh;display:flex;flex-direction:column;font-size:18px;}

/* Loading */
#loading{position:fixed;inset:0;background:var(--blue-dark);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:999;gap:20px;}
#loading .logo-img{width:110px;height:110px;object-fit:contain;}
#loading .app-name{font-family:'Spectral',serif;font-size:30px;color:var(--cream);font-weight:700;}
#loading .spinner{width:42px;height:42px;border:3px solid rgba(245,238,224,.2);border-top-color:var(--cream);border-radius:50%;animation:spin .8s linear infinite;}
#loading .status{font-size:15px;color:rgba(245,238,224,.7);}
@keyframes spin{to{transform:rotate(360deg)}}
#loading.hidden{display:none!important;}

/* Header — même bleu exact que logo, zéro écart */
/* Sélecteur restreint à body > header pour ne pas cascader sur les sous-headers
   (.reader__head est un <header> HTML5 dans renderReader.js qui héritait du
   sticky/z-index et flottait au-dessus du vrai header principal). */
body > header{background:var(--blue);border-bottom:2px solid var(--gold);padding:0;flex-shrink:0;box-shadow:0 2px 12px rgba(1,15,42,.4);position:sticky;top:0;z-index:200;}
.hdr{max-width:1300px;margin:0 auto;display:flex;align-items:center;height:72px;}
.logo{display:flex;align-items:center;gap:0;cursor:pointer;text-decoration:none;}
.logo img{width:72px;height:72px;object-fit:contain;display:block;flex-shrink:0;}
.logo-text{font-family:'Spectral',serif;font-size:22px;color:var(--cream);font-weight:700;letter-spacing:.5px;padding-left:10px;}

/* Layout */
.app{flex:1;display:flex;max-width:1300px;margin:0 auto;width:100%;background-color:var(--cream);background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.13  0 0 0 0 0.08  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");}

/* Sidebar — même bleu exact que logo */
aside{width:300px;flex-shrink:0;background:var(--blue);padding:12px 0;position:sticky;top:72px;height:calc(100vh - 72px);overflow-y:auto;box-shadow:2px 0 10px rgba(1,15,42,.3);flex-shrink:0;align-self:flex-start;}

/* Boutons principaux (Tefila / Paracha / Haftara) :
   texte à gauche, grand logo à droite */
.sb-main{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:none;color:rgba(245,238,224,.88);font-family:'Inter',sans-serif;font-size:21px;font-weight:600;padding:12px 12px 12px 18px;cursor:pointer;transition:all .18s;border-left:3px solid transparent;gap:8px;white-space:nowrap;}
.sb-main:hover{color:var(--cream);background:rgba(245,238,224,.08);}
.sb-main.active{color:var(--cream);background:rgba(245,238,224,.13);border-left-color:var(--gold);}
.sb-main .sb-logo{width:36px;height:36px;object-fit:contain;opacity:.85;flex-shrink:0;background:transparent;}
.sb-main.active .sb-logo{opacity:1;}

/* Sous-boutons */
.sb-btn{display:flex;align-items:center;width:100%;background:none;border:none;color:rgba(245,238,224,.65);font-family:'Inter',sans-serif;font-size:16px;padding:9px 14px 9px 26px;cursor:pointer;transition:all .18s;border-left:3px solid transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sb-btn:hover{color:rgba(245,238,224,.9);background:rgba(245,238,224,.06);}
.sb-btn.active{color:var(--cream);background:rgba(245,238,224,.1);border-left-color:var(--gold-light);font-weight:600;}
.sb-div{height:1px;background:rgba(245,238,224,.12);margin:10px 18px;}

/* Main */
main{flex:1;padding:28px 32px 80px;min-width:0;}

/* Back button */
.back-btn{display:inline-flex;align-items:center;gap:8px;background:var(--blue);color:var(--cream);border:none;font-family:'Inter',sans-serif;font-size:16px;font-weight:600;padding:9px 18px;border-radius:var(--r-sm);cursor:pointer;transition:all .18s;margin-bottom:20px;}
.back-btn:hover{background:var(--blue-mid);transform:translateX(-2px);}

/* Titles */
.s-title{font-family:'Spectral',serif;font-size:30px;color:var(--blue);font-weight:700;margin-bottom:5px;}
.s-sub{color:var(--text-dim);font-size:16px;margin-bottom:24px;}
.p-title{font-family:'Spectral',serif;font-size:26px;color:var(--blue);font-weight:700;margin-bottom:4px;}
.p-ref{font-size:13px;color:var(--text-dim);text-transform:uppercase;letter-spacing:.5px;margin-bottom:22px;}

/* List */
.ls{display:flex;flex-direction:column;gap:10px;}
.bk{background:var(--cream-card);border:1.5px solid var(--border);border-radius:var(--r);padding:16px 20px;cursor:pointer;transition:all .18s;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 6px rgba(3,31,81,.06);}
.bk:hover{border-color:var(--blue);background:var(--cream-light);transform:translateX(3px);box-shadow:0 4px 14px rgba(3,31,81,.12);}
.bk-name{font-size:18px;font-weight:600;color:var(--text);}
.bk-sub{font-size:13px;color:var(--text-dim);margin-top:3px;}
.bk-arr{color:var(--blue);font-size:22px;}

/* Groupes d'offices (tefila/chabbat/autres) — séparateurs visuels liste centrale */
.office-group{display:flex;flex-direction:column;gap:10px;margin-bottom:18px;}
.office-group-title{
  font:600 13px/1 var(--mcbm-font-ui,Inter,system-ui);
  text-transform:uppercase;letter-spacing:.16em;
  color:var(--mcbm-gold-dark,#a17e30);
  padding:8px 0 4px;
  border-bottom:1px solid rgba(201,162,83,.35);
  margin-bottom:4px;
}
/* Mini-titre de groupe dans la sidebar bleue */
.sb-group-label{
  font:600 10px/1 var(--mcbm-font-ui,Inter,system-ui);
  text-transform:uppercase;letter-spacing:.18em;
  color:rgba(255,255,255,.55);
  padding:10px 14px 4px;
  margin-top:4px;
}

/* Cards */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;}
.card{background:var(--cream-card);border:1.5px solid var(--border);border-radius:var(--r);padding:14px 16px;cursor:pointer;transition:all .18s;position:relative;overflow:hidden;display:flex;flex-direction:column;min-height:90px;box-shadow:0 2px 6px rgba(3,31,81,.06);}
.card::after{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--blue),var(--blue-light));opacity:0;transition:opacity .18s;}
.card:hover:not(.unavailable){border-color:var(--blue);transform:translateY(-3px);box-shadow:0 6px 20px rgba(3,31,81,.15);}
.card:hover:not(.unavailable)::after{opacity:1;}
.card.checked{border-color:var(--green)!important;background:var(--green-light)!important;}
.card.checked::after{background:linear-gradient(90deg,var(--green),#4CAF50)!important;opacity:1!important;}
.card.unavailable{opacity:.45;cursor:not-allowed;pointer-events:none;filter:grayscale(.3);}
.check-btn{position:absolute;top:10px;right:10px;width:26px;height:26px;border:2px solid var(--border-strong);border-radius:50%;background:var(--cream-light);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .18s;z-index:10;pointer-events:all;}
.check-btn:hover{border-color:var(--blue);background:rgba(3,31,81,.1);}
.check-btn.checked{background:var(--green);border-color:var(--green);}
.check-btn.checked::after{content:'✓';color:white;font-size:14px;font-weight:700;line-height:1;}
.card-body{padding-right:30px;flex:1;display:flex;flex-direction:column;}
.card-name{font-size:15px;font-weight:600;color:var(--text);margin-bottom:6px;flex:1;line-height:1.4;}
.card-desc{font-size:12px;color:var(--text-dim);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:8px;}
.card-ref{font-size:11px;color:var(--blue);font-weight:600;letter-spacing:.4px;text-align:left;margin-top:auto;line-height:1.5;}
.unavailable-badge{font-size:10px;color:var(--text-dim);font-style:italic;margin-top:4px;}

/* Info pills */
.info-block{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap;}
.info-pill{background:var(--cream-light);border:1px solid var(--border);border-radius:20px;padding:5px 13px;font-size:13px;color:var(--text-mid);}
.info-pill strong{color:var(--blue);font-weight:600;}

/* Stats */
.stats-bar{display:flex;gap:12px;margin-bottom:18px;flex-wrap:wrap;}
.stat{background:var(--blue);border-radius:var(--r-sm);padding:10px 16px;display:flex;flex-direction:column;align-items:center;min-width:75px;flex-shrink:0;}
.stat-val{font-size:22px;font-weight:700;color:var(--cream);font-family:'Spectral',serif;line-height:1.2;}
.stat-lbl{font-size:11px;color:rgba(245,238,224,.75);text-transform:uppercase;letter-spacing:.5px;margin-top:3px;}

/* Toggle */
.toggle-bar{display:inline-flex;margin-bottom:18px;border:2px solid var(--blue);border-radius:var(--r-sm);overflow:hidden;}
.toggle-btn{background:none;border:none;color:var(--blue);font-family:'Inter',sans-serif;font-size:15px;font-weight:600;padding:9px 22px;cursor:pointer;transition:all .18s;}
.toggle-btn.active{background:var(--blue);color:var(--cream);}
.toggle-btn:hover:not(.active){background:rgba(3,31,81,.08);}

/* ══ TORAH DISPLAY (style Tikkun — ShlomoSemiStam) ══ */
.torah-page{
  direction:rtl;
  text-align:justify;
  text-justify:inter-word;
  max-width:100%;
  margin-bottom:18px;
  padding:28px 30px;
  background:var(--sheet-bg);
  color:#111;
  border:1px solid var(--sheet-border);
  border-radius:var(--r);
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  font-family:var(--torah-font);
}
.torah-subtitle{text-align:center;font-size:15px;color:var(--meta-color);margin-bottom:22px;font-family:'Inter',sans-serif;}
.torah-note{margin-top:20px;padding-top:14px;border-top:1px solid #d8c8a4;font-size:14px;color:var(--meta-color);}

/* Torah standard : lignes fixes, rendu Tikkun (pas de flux continu) */
.torah-pasuk { display: block; }
.torah-pasuk-number { display: none; }

.layout-standard .torah-content {
  display: block;
  width: 100%;
  direction: rtl;
  font-size: var(--standard-font-size);
  line-height: var(--standard-line-height);
  font-family: var(--torah-font);
  letter-spacing: .02em;
  word-spacing: .08em;
  text-align: right;
}

/* Chaque ligne = un bloc fixe, justifié individuellement */
.layout-standard .torah-text-line {
  display: block;
  white-space: nowrap;        /* empêche le navigateur de couper autrement */
  text-align: justify;
  text-align-last: justify;   /* force la justification même sur une seule ligne */
}

/* Dernière ligne d'un bloc : alignée à droite */
.layout-standard .torah-text-line:last-child {
  text-align-last: right;
}

.layout-standard .torah-text-line::after {
  content: "";
}

/* Numéros de passoukim masqués dans le rendu Torah */
.torah-page .vn { display: none; }
/* ID_058 — Masquage des numéros de passoukim sur TOUTES les téphilot
   (override les règles .heb-nikud .vn et .torah-block .vn plus bas) */
.heb-nikud .vn, .torah-block .vn { display: none !important; }
/* Numéros de passoukim : masqués dans le rendu Torah (géré dans le bloc standard) */

/* Layouts poétiques */
.layout-haazinou .torah-content,
.layout-shirat_hayam .torah-content{
  display:flex;flex-direction:column;gap:var(--shira-line-gap);
}
.layout-haazinou .torah-shira-line{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:var(--shira-col-gap);
  min-height:1.65em;
  font-size:var(--shira-font-size);
  line-height:var(--shira-line-height);
  white-space:nowrap;
  word-spacing:.12em;
  font-family:var(--torah-font);
  direction:rtl;
}
.layout-shirat_hayam .torah-shira-line{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  column-gap:32px;
  min-height:1.65em;
  font-size:var(--shira-font-size);
  line-height:var(--shira-line-height);
  white-space:nowrap;
  word-spacing:.12em;
  font-family:var(--torah-font);
  direction:rtl;
}
.torah-block{display:block;text-align:right;}
.torah-block.empty{visibility:hidden;}
.torah-block .vn{font-size:.48em;color:var(--meta-color);vertical-align:super;margin-inline:.2em;font-family:'Inter',sans-serif;font-weight:600;}

/* Révision (nikud) */
.heb-nikud{font-size:28px;line-height:2.2;direction:rtl;text-align:right;color:var(--text);font-family:'Times New Roman','David',serif;}
.heb-nikud .vn{font-size:.52em;color:var(--gold);vertical-align:super;margin-left:5px;font-weight:600;font-family:'Inter',sans-serif;}
.heb-block{background:var(--sheet-bg);border:1.5px solid var(--sheet-border);border-radius:var(--r);padding:26px 30px;margin-bottom:18px;box-shadow:0 2px 6px rgba(3,31,81,.06);}

/* Audio */
.audio-section{margin-bottom:18px;}
.audio-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px;}
.atab{background:none;border:1.5px solid var(--border);color:var(--text-mid);font-family:'Inter',sans-serif;font-size:13px;padding:6px 14px;border-radius:20px;cursor:pointer;transition:all .18s;}
.atab:hover{border-color:var(--blue);color:var(--blue);}
.atab.active{background:var(--blue);border-color:var(--blue);color:var(--cream);font-weight:600;}
.audio-wrap{background:var(--cream-card);border:1.5px solid var(--border);border-radius:var(--r);overflow:hidden;box-shadow:0 2px 6px rgba(3,31,81,.06);}
.audio-meta{display:flex;align-items:center;gap:14px;padding:12px 18px;border-bottom:1px solid var(--border);}
.audio-icon-img{width:38px;height:38px;object-fit:contain;flex-shrink:0;}
.audio-name{font-size:14px;font-weight:600;color:var(--text);}
.audio-role{font-size:12px;color:var(--text-dim);}
.drive-iframe{width:100%;height:70px;border:none;display:block;background:var(--cream-light);}

/* Explication / Résumé */
.expl-block{background:var(--cream-light);border:1.5px solid var(--border);border-left:4px solid var(--blue);border-radius:var(--r);padding:18px 22px;margin-bottom:18px;}
.expl-lbl{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--blue);font-weight:700;margin-bottom:8px;}
.expl-txt{font-size:16px;color:var(--text-mid);line-height:1.75;white-space:pre-line;}
.resume-block{background:var(--cream-card);border:1.5px solid var(--border);border-left:4px solid var(--gold);border-radius:var(--r);padding:16px 20px;margin-bottom:18px;}
.resume-lbl{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--gold);font-weight:700;margin-bottom:7px;}
.resume-txt{font-size:16px;color:var(--text-mid);line-height:1.7;}

/* Empty */
.empty{color:var(--text-dim);font-size:15px;padding:20px;background:var(--cream-light);border:1.5px dashed var(--border);border-radius:var(--r);text-align:center;margin-bottom:18px;}

/* View / Tab */
.view{display:none;}.view.active{display:block;}
.tab{display:none;}.tab.active{display:block;}

/* Footer */
footer{text-align:center;padding:14px;color:var(--text-dim);font-size:13px;border-top:1px solid var(--border);flex-shrink:0;}

/* Mobile nav */
.mob-nav{display:none;background:var(--blue);border-top:2px solid var(--gold);padding:4px 8px;gap:2px;position:fixed;bottom:0;left:0;right:0;z-index:100;}
.mob-btn{flex:1;background:none;border:none;color:rgba(245,238,224,.6);font-family:'Inter',sans-serif;font-size:13px;padding:5px 2px;border-radius:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;transition:all .18s;}
.mob-btn.active{color:var(--cream);}
.mob-btn img{width:30px;height:30px;object-fit:contain;opacity:.65;}
.mob-btn.active img{opacity:1;}

/* Responsive */
@media(max-width:750px){
  aside{display:none!important;}
  main{padding:18px 14px 80px;}
  .mob-nav{display:flex!important;}
  body{font-size:16px;}
  .logo img{width:56px;height:56px;}
  .hdr{height:56px;}
  aside{top:56px;height:calc(100vh - 56px);}
  .logo-text{font-size:17px;}
  .grid{grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px;}
  .s-title{font-size:24px;}
  :root{--standard-font-size:24px;--shira-font-size:22px;--shira-col-gap:20px;}
  .layout-haazinou .torah-shira-line,.layout-shirat_hayam .torah-shira-line{white-space:normal;}
  .layout-shirat_hayam .torah-shira-line{grid-template-columns:1fr;row-gap:4px;}
  .torah-page{padding:20px 14px;}
}


/* === Reliability / error states === */
.status.info{color:var(--text-mid);}
.status.error{color:#9d1c1c;font-weight:700;}
.fatal-box{
  margin-top:20px;
  max-width:520px;
  background:#fff7f7;
  border:1px solid #efc3c3;
  border-radius:18px;
  padding:22px 20px;
  box-shadow:0 10px 22px rgba(157,28,28,.08);
}
.fatal-title{font-size:22px;font-weight:800;color:#9d1c1c;margin-bottom:8px;}
.fatal-text{font-size:15px;line-height:1.6;color:#5f2b2b;margin-bottom:16px;}
.retry-btn{
  border:none;background:var(--blue);color:#fff;border-radius:999px;padding:12px 18px;
  font-family:'Inter',sans-serif;font-weight:700;cursor:pointer;
}
.retry-btn:hover{background:#052b6f;}

/* === STaM visual refinements === */
.torah-page{
  letter-spacing:.02em;
  word-spacing:.18em;
}
.torah-text-line,
.torah-shira-line,
.torah-block{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}
.layout-standard .torah-text-line{word-spacing:.18em;letter-spacing:.02em;}
.layout-haazinou .torah-shira-line,
.layout-shirat_hayam .torah-shira-line{word-spacing:.18em;letter-spacing:.018em;}
.torah-block{display:inline-block;}

/* Better empty state */
.empty{
  background:#fffdf7;border:1px dashed var(--border);border-radius:18px;padding:16px 18px;
  color:var(--text-mid);font-weight:600;
}

/* Mobile nav only on mobile, avoid duplicated navigation on desktop */
.mob-nav{display:none;}
@media (max-width:980px){
  .mob-nav{display:flex;}
}

/* ═══════════════════════════════════════════════
   PAGE OBJECTIF
═══════════════════════════════════════════════ */

/* Bannière accueil */
.obj-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: var(--cream);
  border-radius: var(--r);
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(3,31,81,.2);
}
.obj-banner-name {
  font-size: 22px;
  font-family: 'Spectral', serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.obj-banner-days {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-light);
  margin: 4px 0;
}
.obj-banner-progress {
  font-size: 15px;
  opacity: .85;
  margin-top: 6px;
}
.obj-progress-bar {
  height: 8px;
  background: rgba(245,238,224,.25);
  border-radius: 4px;
  margin-top: 10px;
  overflow: hidden;
}
.obj-progress-fill {
  height: 100%;
  background: var(--gold-light);
  border-radius: 4px;
  transition: width .4s ease;
}

/* Section */
.obj-section {
  background: var(--cream-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(3,31,81,.06);
}
.obj-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border);
}

/* Champs */
.obj-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.obj-field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.obj-field-row .obj-field { flex: 1; min-width: 180px; }
.obj-label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.obj-auto { font-size: 11px; font-weight: 400; color: var(--text-dim); }
.obj-input {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream-light);
  color: var(--text);
  outline: none;
  transition: border-color .18s;
  width: 100%;
}
.obj-input:focus { border-color: var(--blue); background: #fff; }
.obj-heb-date {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  direction: rtl;
  padding: 10px 14px;
  background: var(--cream-light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  min-height: 42px;
  display: flex;
  align-items: center;
}
.obj-hint {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: -6px;
  margin-bottom: 14px;
}

/* Accordéon */
.obj-accordion { margin-bottom: 8px; border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.obj-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream-light);
  border: none;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .18s;
  text-align: left;
}
.obj-acc-btn:hover { background: var(--cream); }
.obj-acc-btn.open { background: var(--blue); color: var(--cream); }
.obj-acc-arrow { transition: transform .18s; }
.obj-acc-btn.open .obj-acc-arrow { transform: rotate(180deg); }
.obj-acc-body {
  display: none;
  padding: 8px 12px 12px;
  background: var(--cream-card);
  max-height: 320px;
  overflow-y: auto;
}
.obj-acc-body.open { display: block; }

/* Checkbox passage */
.obj-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
  color: var(--text);
}
.obj-check-item:hover { background: var(--cream-light); }
.obj-check-item.selected {
  background: var(--blue);
  color: var(--cream);
  font-weight: 600;
}
.obj-check-item input[type=checkbox] {
  width: 17px; height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}
.obj-check-item.selected input[type=checkbox] {
  accent-color: var(--gold-light);
}

/* Bouton reset */
.obj-reset-btn {
  background: none;
  border: 1.5px solid #c0392b;
  color: #c0392b;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .18s;
}
.obj-reset-btn:hover { background: #c0392b; color: #fff; }

/* Card dans les objectifs BM (sélectionné) = fond bleu, texte crème */
.card.card-objectif {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: var(--cream) !important;
}
.card.card-objectif .card-name { color: var(--cream); }
.card.card-objectif .card-desc { color: rgba(245,238,224,.75); }
.card.card-objectif .card-ref  { color: var(--gold-light); }
.card.card-objectif::after {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 1;
}
.card.card-objectif .check-btn {
  border-color: rgba(245,238,224,.5);
  background: rgba(245,238,224,.1);
}
.card.card-objectif .check-btn:hover {
  background: rgba(245,238,224,.2);
}

/* ── Tikkun images ── */
.tikkun-img-container { display:flex; flex-direction:column; gap:12px; margin-bottom:18px; }
.tikkun-img { width:100%; height:auto; border:1px solid var(--sheet-border); border-radius:var(--r); box-shadow:0 2px 8px rgba(0,0,0,.1); }

/* ── Objectif extras ── */
.obj-radio-group { display:flex; gap:16px; padding:10px 0; }
.obj-radio { display:flex; align-items:center; gap:6px; font-size:15px; cursor:pointer; color:var(--text); }
.obj-radio input { accent-color:var(--blue); width:16px; height:16px; cursor:pointer; }

.obj-bm-info { background:var(--cream-light); border:1.5px solid var(--border); border-left:4px solid var(--gold); border-radius:var(--r); padding:14px 18px; margin-top:12px; display:flex; flex-direction:column; gap:10px; }
.obj-info-item { font-size:14px; color:var(--text-mid); line-height:1.6; }
.obj-info-item strong { color:var(--blue); }

/* ── Case coucher du soleil ── */
.obj-sunset-check {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; cursor: pointer;
  font-size: 14px; color: var(--text-mid);
}
.obj-sunset-check input {
  width: 16px; height: 16px;
  accent-color: var(--blue); cursor: pointer;
}

/* ── Version badge ── */
.version-badge {
  margin-left: auto;
  font-size: 11px;
  color: rgba(245,238,224,.35);
  font-family: 'Inter', sans-serif;
  padding-right: 16px;
  letter-spacing: .5px;
}

/* ── Sub-accordéon dans objectif ── */
.obj-sub-acc { margin-bottom: 4px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.obj-sub-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: var(--cream-light); border: none; padding: 9px 14px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: background .15s; text-align: left;
}
.obj-sub-btn:hover { background: var(--cream); }
.obj-sub-btn.open { background: rgba(3,31,81,.08); color: var(--blue); }
.obj-sub-body { display: none; padding: 4px 8px 8px; background: var(--cream-card); }
.obj-sub-body.open { display: block; }
.obj-badge {
  display: inline-block; background: var(--blue); color: var(--cream);
  font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px;
  margin-left: 6px; vertical-align: middle;
}

/* ── Popup bienvenue ── */
.welcome-popup {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 500;
  background: var(--blue);
  color: var(--cream);
  padding: 14px 24px 10px;
  border-radius: var(--r);
  box-shadow: 0 6px 30px rgba(1,15,42,.4);
  border-left: 4px solid var(--gold);
  min-width: 280px;
  max-width: 420px;
  text-align: center;
  opacity: 0;
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.welcome-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.welcome-text {
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  margin-bottom: 8px;
}
.welcome-bar {
  height: 3px;
  background: rgba(245,238,224,.2);
  border-radius: 2px;
  overflow: hidden;
}
.welcome-bar-fill {
  height: 100%;
  background: var(--gold-light);
  border-radius: 2px;
  width: 100%;
  transition: width linear;
}

/* ═══════════════════════════════════════════════
   PAGE INFO / REMERCIEMENTS
═══════════════════════════════════════════════ */
.info-hero {
  text-align: center;
  padding: 30px 20px 24px;
  margin-bottom: 20px;
}
.info-logo-main {
  width: 90px; height: 90px;
  object-fit: contain;
  margin-bottom: 12px;
}
.info-app-name {
  font-family: 'Spectral', serif;
  font-size: 28px; font-weight: 700;
  color: var(--blue); margin-bottom: 6px;
}
.info-tagline {
  font-size: 15px; color: var(--text-dim);
}

.info-card {
  background: var(--cream-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(3,31,81,.06);
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
.info-card p strong { color: var(--blue); }
.info-card-gold {
  border-color: var(--gold);
  border-left: 4px solid var(--gold);
}

.info-section-title {
  font-size: 17px; font-weight: 700;
  color: var(--blue); margin-bottom: 12px;
}
.info-card-gold .info-section-title { color: var(--gold); }

.info-logo-yaguel {
  max-width: 160px; max-height: 100px;
  object-fit: contain; margin: 0 auto;
}

.info-don-btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 3px 10px rgba(196,146,42,.35);
}
.info-don-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(196,146,42,.45);
}
.info-don-hint {
  font-size: 13px; color: var(--text-dim);
  text-align: center; margin-top: 12px;
}

/* ── Formulaire contact ── */
.obj-textarea {
  resize: vertical;
  min-height: 90px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
select.obj-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23031f51' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.contact-success {
  background: var(--green-light);
  border: 1.5px solid var(--green);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   SESSION BADGE (header)
═══════════════════════════════════════════════ */
.session-badge {
  margin-left: auto;
  margin-right: 10px;
  background: rgba(245,238,224,.07);
  border: 1px solid rgba(245,238,224,.15);
  color: rgba(245,238,224,.55);
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: .2px;
}
.session-badge:hover {
  background: rgba(245,238,224,.13);
  color: rgba(245,238,224,.85);
  border-color: rgba(245,238,224,.3);
}

/* Bouton reset en bas sidebar */
.sb-timer-reset {
  position: sticky;
  bottom: 0;
  padding: 10px 14px;
  background: var(--blue);
  border-top: 1px solid rgba(245,238,224,.12);
  margin-top: auto;
}
.sb-timer-reset { padding: 6px 14px 10px; }
.sb-reset-btn {
  width: 100%;
  background: none;
  border: none;
  color: rgba(245,238,224,.25);
  font-size: 13px;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .18s;
  text-align: center;
}
.sb-reset-btn:hover {
  color: rgba(245,238,224,.6);
  background: rgba(245,238,224,.05);
}

/* ═══════════════════════════════════════════════
   MODAL RESET CONFIRMATION
═══════════════════════════════════════════════ */
.reset-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 800;
}
.reset-modal-box {
  background: var(--cream-card);
  border-radius: var(--r);
  padding: 28px 32px;
  max-width: 340px; width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.reset-modal-icon  { font-size: 40px; margin-bottom: 10px; }
.reset-modal-title { font-size: 18px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.reset-modal-text  { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.reset-modal-btns  { display: flex; gap: 12px; justify-content: center; }
.reset-modal-cancel {
  background: var(--cream-light); border: 1.5px solid var(--border);
  color: var(--text-mid); font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; padding: 9px 20px;
  border-radius: var(--r-sm); cursor: pointer; transition: all .18s;
}
.reset-modal-cancel:hover { border-color: var(--blue); color: var(--blue); }
.reset-modal-confirm {
  background: #c0392b; border: none; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 700; padding: 9px 20px;
  border-radius: var(--r-sm); cursor: pointer; transition: all .18s;
}
.reset-modal-confirm:hover { background: #a93226; }

/* ═══════════════════════════════════════════════
   POPUP MOTIVATION (coin haut-droite / mobile bas)
═══════════════════════════════════════════════ */
.motiv-popup {
  position: fixed;
  top: 80px; right: 16px;
  z-index: 600;
  background: var(--blue);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: var(--r);
  box-shadow: 0 6px 28px rgba(1,15,42,.35);
  border-left: 4px solid var(--gold);
  max-width: 300px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.motiv-popup.show {
  opacity: 1;
  transform: translateX(0);
}
.motiv-icon { font-size: 28px; text-align: center; margin-bottom: 6px; }
.motiv-msg  { font-size: 14px; line-height: 1.5; }

/* ═══════════════════════════════════════════════
   CHECKBOX COULEUR — radio-style
═══════════════════════════════════════════════ */
/* Coché = vert, décoché = gris neutre */
.check-btn {
  border-color: #bbb !important;
  background: #f0f0f0 !important;
}
.check-btn.checked {
  background: var(--green) !important;
  border-color: var(--green) !important;
}
.check-btn:hover:not(.checked) {
  border-color: #999 !important;
  background: #e8e8e8 !important;
}

/* Mobile: popup motivation en bas */
@media (max-width: 750px) {
  .motiv-popup {
    top: auto;
    bottom: 75px;
    right: 10px;
    left: 10px;
    max-width: 100%;
    transform: translateY(20px);
  }
  .motiv-popup.show {
    transform: translateY(0);
  }
  .session-badge { font-size: 12px; padding: 4px 10px; }
}

.reset-modal-btn-soft {
  background: var(--cream-light); border: 1.5px solid var(--border);
  color: var(--text-mid); font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; padding: 8px 16px;
  border-radius: var(--r-sm); cursor: pointer; transition: all .18s; flex:1;
}
.reset-modal-btn-soft:hover { border-color: var(--blue); color: var(--blue); }

/* ── Audio R2 (HTML5 natif) ── */
.audio-r2 {
  width: 100%;
  display: block;
  background: var(--cream-light);
  border: none;
  padding: 8px 12px;
  border-radius: 0;
  accent-color: var(--blue);
}

/* ── Remerciements ── */
.info-merci-list {
  list-style: none; padding: 0; margin-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.info-merci-list li {
  font-size: 15px; color: var(--text-mid); line-height: 1.5;
  padding: 8px 12px; background: var(--cream-light);
  border-radius: var(--r-sm); border-left: 3px solid var(--gold);
}
.info-merci-list li strong { color: var(--blue); }

/* ── Cadeau ── */
.cadeau-points-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.cadeau-point-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 10px 14px; background: var(--cream-light);
  border-radius: var(--r-sm);
}
.cadeau-point-icon { font-size: 26px; flex-shrink: 0; }
.cadeau-point-desc { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.cadeau-score {
  font-size: 52px; font-weight: 700; color: var(--gold);
  font-family: 'Spectral', serif; margin: 10px 0;
}
.cadeau-score-detail { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* ── AB Player ── */
.ab-controls {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--cream-light);
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.ab-btn {
  background: var(--blue); color: var(--cream);
  border: none; font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 4px; cursor: pointer;
  transition: all .15s; font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 4px;
}
.ab-btn:hover { background: var(--blue-mid); }
.ab-btn.ab-reset { background: none; color: var(--text-dim); font-size: 16px; padding: 4px 8px; }
.ab-btn.ab-reset:hover { color: #c0392b; }
.ab-status { font-size: 12px; color: var(--text-dim); flex: 1; text-align: center; font-style: italic; }

/* Barre rouge sur audio natif */
audio.audio-r2 {
  width: 100%; display: block;
  background: var(--cream-light);
  padding: 8px 12px; accent-color: #c0392b;
}

/* ── Mini-player custom (buildNativePlayer) ────────────────────────────
   Remplace le <audio controls> natif qui cachait son ▶ sur mobile. */
.ap-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--cream-light);
  border-top: 1px solid var(--border);
}
.ap-play {
  flex: 0 0 auto;
  width: 42px; height: 38px;
  border-radius: 999px; border: 0;
  background: #c0392b; color: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .1s, background .15s;
}
.ap-play:hover  { background: #a32f23; }
.ap-play:active { transform: scale(.96); }
.ap-seek {
  flex: 1 1 auto; min-width: 0;
  height: 6px;
  -webkit-appearance: none; appearance: none;
  background: rgba(192,57,43,.18);
  border-radius: 999px; outline: none; cursor: pointer;
}
.ap-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #c0392b; cursor: pointer; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.ap-seek::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #c0392b; cursor: pointer; border: 2px solid #fff;
}
.ap-time {
  flex: 0 0 auto;
  font: 600 12px/1 'Inter', monospace;
  color: var(--text-mid); white-space: nowrap;
}

.obj-select-all-btn {
  background: var(--gold); color: #fff;
  border: none; font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  cursor: pointer; transition: all .15s;
}
.obj-select-all-btn:hover { background: var(--blue); }

/* T-005: Case à cocher bloc office */
.obj-block-check {
  display: flex; align-items: center;
  margin-right: 10px; cursor: pointer; flex-shrink: 0;
}
.obj-block-check input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--gold-light);
  cursor: pointer;
}

/* Bug fix: hover ton-sur-ton sidebar icons */
.sb-main:hover .sb-logo, .sb-main.active .sb-logo { opacity: 1; }
.sb-logo { opacity: 0.8; transition: opacity .18s; }

/* Bug fix: white bands - ensure no white backgrounds leak */
main { background: var(--cream); overflow-x: hidden; }
.tab { background: var(--cream); }
.view { background: var(--cream); }

/* Mobile nav icons - consistent sizing */
.mob-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Fix: sidebar icons transparent blend */
.sb-btn .sb-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  mix-blend-mode: normal;
}
.sb-main .sb-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: transparent !important;
}

/* 3 états couleurs cartes prières */
.card {
  background: var(--cream-card);
  border-left: 4px solid var(--border);
}
.card.card-objectif {
  background: rgba(3,31,81,.07);
  border-left: 4px solid var(--blue);
}
.card.card-objectif.checked {
  background: rgba(3,31,81,.07);
  border-left: 4px solid var(--green);
}
.card.card-objectif .check-btn {
  border-color: var(--blue);
  background: rgba(3,31,81,.12);
}
.card.card-objectif.checked .check-btn {
  background: var(--green);
  border-color: var(--green);
}

/* Fix logos background - ensure transparent blending */
.sb-main .sb-logo,
.sb-btn .sb-logo {
  background: transparent !important;
}

/* ── Écran d'accueil unifié ── */
#welcome-screen {
  position: fixed; inset: 0;
  background: var(--cream, #f5f0e8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.welcome-box {
  text-align: center;
  max-width: 380px;
  width: 100%;
}
.welcome-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.welcome-sub {
  color: #888;
  font-size: 0.9rem;
  margin: 8px 0 24px;
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: opacity 0.2s;
  width: 100%;
}
.btn-welcome:hover { opacity: 0.85; }
.btn-welcome-primary {
  background: #5c3d1e;
  color: #f5f0e8;
}
.btn-welcome-ghost {
  background: white;
  color: #5c3d1e;
  border: 2px solid #5c3d1e;
}
.btn-welcome-sub {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 3px;
}

/* ── Bouton connexion V2 dans header V1 ── */
.btn-v2-login {
  background: rgba(255,255,255,0.2);
  color: var(--cream, #f5f0e8);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-v2-login:hover { background: rgba(255,255,255,0.35); }

/* Texte hébreu continu — V1 */
.heb-nikud {
  white-space: normal !important;
  word-break: break-word;
  text-align: justify;
}
.heb-nikud span { display: inline !important; }
/* ID_058 — vn masqué partout (override la règle d'affichage historique) */
.heb-nikud .vn  { display: none !important; }
.heb-nikud br   { display: none !important; }
.heb-nikud div  { display: inline !important; }

/* B53 : Birkat sidebar aligné comme les autres */
#sb-birkat { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }

/* ════════════════════════════════════════════════════════════════════
   V4 — Timers retirés (mode invité) + ajustements responsive
════════════════════════════════════════════════════════════════════ */

/* Timers / sessions : ne plus afficher (badge header, reset sidebar, popups) */
#session-badge,
.session-badge,
.sb-timer-reset,
.sb-reset-btn,
.motiv-popup { display: none !important; }

/* Header mobile — éviter le titre « Mon Coach Tefila » sur 3 lignes */
@media (max-width: 560px) {
  .hdr { height: 60px; }
  .logo img { width: 52px; height: 52px; }
  .logo-text {
    font-size: 16px;
    line-height: 1.15;
    white-space: nowrap;
    padding-left: 8px;
  }
}
@media (max-width: 380px) {
  .logo-text { font-size: 14px; }
}

/* Note « à confirmer avec le Rav » sous la paracha (BM un Shabbat de fête) */
.paracha-rav-note {
  display: block;
  margin-top: 3px;
  font: italic 400 11px/1.35 'Inter', sans-serif;
  color: var(--gold);
}

/* ── Programme BM Guest (Phase A) ────────────────────────────────────── */
.prog-section { padding: 18px 0; }
.prog-header {
  background: var(--cream-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.prog-palier-title { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.prog-palier-badge {
  background: var(--blue);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font: 700 12.5px/1 'Inter', sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.prog-palier-label { font: 700 17px/1.25 'Spectral', serif; color: var(--blue); }
.prog-palier-desc  { font: 400 13.5px/1.45 'Inter', sans-serif; color: var(--text-mid); margin-bottom: 12px; }
.prog-progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.prog-progress-bar {
  flex: 1; height: 10px;
  background: rgba(201,162,83,.15);
  border-radius: 999px;
  overflow: hidden;
}
.prog-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transition: width .3s ease;
}
.prog-progress-text { font: 600 13px/1 'Inter', sans-serif; color: var(--blue); white-space: nowrap; }
.prog-global { font: 500 12.5px/1.4 'Inter', sans-serif; color: var(--text-mid); margin-top: 4px; }

.prog-items { display: flex; flex-direction: column; gap: 8px; }
.prog-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  transition: background .15s, border-color .15s;
}
.prog-item-done {
  background: rgba(90,122,58,.18);
  border-color: var(--green, #5a7a3a);
}
.prog-item-done .prog-item-label { color: var(--green, #5a7a3a); font-weight: 600; }
.prog-item-done .prog-cb { accent-color: var(--green, #5a7a3a); }
.prog-item-todo:hover { border-color: var(--gold); }
.prog-item-label { flex: 1; font: 500 14.5px/1.35 'Inter', sans-serif; color: var(--text); cursor: pointer; user-select: none; }
.prog-cb {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
  margin: 0;
}
.prog-btn-play {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 13px;
  cursor: pointer;
  transition: transform .1s, background .15s;
  padding: 0;
  text-decoration: none;
}
.prog-btn-play:hover  { background: var(--gold-light); }
.prog-btn-play:active { transform: scale(.94); }
.prog-btn-play-disabled {
  background: var(--border, #e4dccc);
  color: var(--text-mid, #8a8170);
  cursor: not-allowed;
  opacity: .55;
}

.prog-done { text-align: center; padding: 28px 20px; }
.prog-done h2 { font: 700 22px/1.2 'Spectral', serif; color: var(--green); margin-bottom: 8px; }
.prog-done p  { font: 400 14px/1.5 'Inter', sans-serif; color: var(--text); }
.prog-muted   { color: var(--text-mid); font-size: 13px; margin-top: 6px; }

/* ============================================================================
   MASQUAGE TEMPORAIRE SIDEBAR (mode Guest — décision Phase A Programme BM)
   Pour réactiver : supprimer ces 2 règles. HTML <aside id="sidebar"> conservé.
   ============================================================================ */
aside#sidebar { display: none !important; }
.app > main, .app > .main, .app > .content { width: 100%; }

/* ============================================================================
   BARRE DE NAVIGATION (mob-nav) visible PARTOUT — desktop + mobile.
   Override des règles précédentes qui la cachaient au-dessus de 980px.
   ============================================================================ */
.mob-nav { display: flex !important; }
main { padding-bottom: 90px; }
