/* Jalon360 - demo publique « benchmark du parcours ». Feuille AUTONOME : n'altere aucun ecran de l'application.
   Couleurs reprises de la charte (app.css / theme.css). */
:root {
  --navy: #0E1B33; --navy-2: #16294A; --accent: #2F6FB3; --accent-2: #0E5C86; --accent-bg: #E4EEF9;
  --ink: #1B2430; --slate: #5B6472; --page: #F5F6F8; --card: #FFFFFF; --hgrey: #E1E4E9; --lgrey: #F1F2F5;
  --mint: #E8F5EE; --mint-ink: #1F6A45; --red: #A33B2A; --red-bg: #FBEAE6; --orange: #8A5A1E; --amber-bg: #FFF3DC;
  --gold: #C9962E; --violet: #6B3FA0; --violet-bg: #EFE7F8;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --radius: 14px; --shadow: 0 1px 2px rgba(14,27,51,.06), 0 8px 24px rgba(14,27,51,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0A1120; --navy-2: #111C33; --accent: #7DB2EA; --accent-2: #3A8FBF; --accent-bg: #1C2B45;
    --ink: #E6EBF4; --slate: #9AA7BB; --page: #0C1322; --card: #141D30; --hgrey: #2A3650; --lgrey: #1A2438;
    --mint: #12322A; --mint-ink: #6FD6A8; --red: #F0877A; --red-bg: #3B1C18; --orange: #E3A95C; --amber-bg: #35290F;
    --gold: #E7B24C; --violet: #C3B6EE; --violet-bg: #251F3D; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--page); min-height: 100vh; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }

/* ---- En-tete ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px 24px;
  background: color-mix(in srgb, var(--navy) 92%, transparent); backdrop-filter: blur(10px); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2F6FB3, #3A8FBF 60%, #6FD6A8); font-size: 13px; }
.brand small { font-weight: 500; opacity: .7; }
.top .spacer { flex: 1; }
.wallet { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.wallet .coin { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); }
.wallet .coin b { font-variant-numeric: tabular-nums; }
.wallet .bar { width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.wallet .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6FD6A8, #7DB2EA); transition: width .8s ease; }
.runs-dots { display: flex; gap: 4px; }
.runs-dots i { width: 9px; height: 9px; border-radius: 50%; background: #6FD6A8; }
.runs-dots i.used { background: rgba(255,255,255,.2); }
.top .who { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
  background: var(--accent-bg); color: var(--accent); flex: none; }
.top .avatar { background: rgba(255,255,255,.15); color: #fff; }
.linkbtn { background: none; border: 0; color: inherit; opacity: .75; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---- Boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--hgrey); background: var(--card); cursor: pointer; font-weight: 600; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; }
.btn.big { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 13px; }

/* ---- Accueil ---- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 24px 96px;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(111,214,168,.25), transparent 60%),
              radial-gradient(900px 500px at 0% 110%, rgba(125,178,234,.3), transparent 60%),
              linear-gradient(160deg, #0E1B33, #16294A 60%, #0E3A5C); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; mask-image: linear-gradient(transparent, #000 40%, transparent); pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 12px; letter-spacing: .6px; text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 58px); line-height: 1.05; margin: 16px 0; font-weight: 600; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7DB2EA, #6FD6A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; opacity: .85; max-width: 540px; }
.promise { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; opacity: .9; }
.promise li::before { content: "\2713"; color: #6FD6A8; margin-right: 6px; font-weight: 700; }
.login-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px; backdrop-filter: blur(6px); }
.login-card h2 { margin: 0 0 6px; font-size: 20px; }
.login-card p { margin: 0 0 18px; font-size: 14px; opacity: .8; }
.oauth { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; margin-bottom: 10px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2); background: #fff; color: #1B2430; font-weight: 600; cursor: pointer; transition: transform .12s; }
.oauth:hover { transform: translateY(-1px); }
.oauth svg { width: 20px; height: 20px; flex: none; }
.fine { font-size: 12px; opacity: .65; margin-top: 12px; }
.steps-preview { max-width: 1080px; margin: -56px auto 0; padding: 0 24px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sp { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sp b { display: block; font-size: 28px; font-family: var(--font-display); color: var(--accent); }
.sp span { font-size: 13px; color: var(--slate); }

/* ---- Espace de travail ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 24px 80px; }
.stepper { display: flex; gap: 0; margin-bottom: 26px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stepper .st { flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 14px; color: var(--slate); border-right: 1px solid var(--hgrey); position: relative; }
.stepper .st:last-child { border-right: 0; }
.stepper .st .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--lgrey); flex: none; }
.stepper .st.on { color: var(--ink); font-weight: 600; }
.stepper .st.on .n { background: var(--accent); color: #fff; }
.stepper .st.ok .n { background: var(--mint-ink); color: #fff; }
.stepper .st.ok .n::before { content: "\2713"; }
.stepper .st.ok .n span { display: none; }
.stepper .st.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #6FD6A8); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 18px; }
.card h2 { margin: 0 0 4px; font-size: 22px; }
.card .sub { color: var(--slate); margin: 0 0 18px; }
.guide { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--accent-bg); color: var(--ink); font-size: 14px; margin-bottom: 16px; }
.guide b { color: var(--accent); }
textarea.big { width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--hgrey); border-radius: 10px; padding: 14px; background: var(--card); line-height: 1.5; }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.drop { margin-top: 14px; border: 2px dashed var(--hgrey); border-radius: 12px; padding: 22px; text-align: center; color: var(--slate); cursor: pointer; transition: border-color .2s, background .2s; }
.drop.over { border-color: var(--accent); background: var(--accent-bg); }
.drop b { color: var(--accent); }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--lgrey); font-size: 13px; }
.chip button { border: 0; background: none; cursor: pointer; color: var(--slate); padding: 0 2px; }
.chip.busy { opacity: .6; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.row .spacer { flex: 1; }
.note { font-size: 12px; color: var(--slate); }
.history { display: grid; gap: 8px; }
.hist { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--lgrey); font-size: 14px; }
.hist .delta { margin-left: auto; font-weight: 700; color: var(--mint-ink); font-variant-numeric: tabular-nums; }

/* ---- Attente IA ---- */
.thinking { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 46px 20px; text-align: center; }
.orb { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(from 0deg, var(--accent), #6FD6A8, var(--violet), var(--accent));
  animation: spin 2.2s linear infinite; mask: radial-gradient(circle, transparent 52%, #000 54%); }
@keyframes spin { to { transform: rotate(360deg); } }
.thinking .phase { font-weight: 600; min-height: 24px; }
.thinking .meter { font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }

/* ---- Diagnostic ---- */
.diag { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; }
.gauge { position: relative; width: 220px; height: 220px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { stroke: var(--lgrey); }
.gauge .val { transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1), stroke .6s; }
.gauge .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .lbl b { display: block; font-size: 54px; line-height: 1; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.gauge .lbl span { font-size: 12px; color: var(--slate); text-transform: uppercase; letter-spacing: .5px; }
.verdict { font-family: var(--font-display); font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.axes { display: grid; gap: 10px; margin-top: 14px; }
.axis .h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; }
.axis .b { height: 8px; border-radius: 4px; background: var(--lgrey); overflow: hidden; margin: 4px 0 2px; }
.axis .b i { display: block; height: 100%; width: 0; border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.axis .c { font-size: 12px; color: var(--slate); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.cols h3 { margin: 0 0 8px; font-size: 15px; }
.cols ul { margin: 0; padding-left: 18px; }
.cols li { margin-bottom: 6px; font-size: 14px; }
.callout { margin-top: 18px; padding: 14px 16px; border-radius: 10px; border-left: 4px solid var(--violet); background: var(--violet-bg); font-size: 14px; }
.callout b { color: var(--violet); }

/* ---- Panel d'experts ---- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters button { border: 1px solid var(--hgrey); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.filters button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.progress { height: 6px; border-radius: 3px; background: var(--lgrey); overflow: hidden; margin: 6px 0 18px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6FD6A8); transition: width .4s; }
.expert { border: 1px solid var(--hgrey); border-radius: 12px; padding: 16px; margin-bottom: 14px; animation: rise .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.expert .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.expert .head .avatar { width: 40px; height: 40px; font-size: 14px; }
.expert .head b { display: block; }
.expert .head span { font-size: 13px; color: var(--slate); font-style: italic; }
.q { padding: 12px 0 4px; border-top: 1px solid var(--lgrey); }
.q .qt { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.q .why { font-size: 13px; color: var(--slate); margin: 4px 0 8px; }
.sev { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.sev.bloquant { background: var(--red-bg); color: var(--red); }
.sev.majeur { background: var(--amber-bg); color: var(--orange); }
.sev.mineur { background: var(--lgrey); color: var(--slate); }
.q textarea { width: 100%; min-height: 60px; border: 1px solid var(--hgrey); border-radius: 8px; padding: 8px 10px; background: var(--card); resize: vertical; }
.q .sugg { font-size: 12px; margin-top: 4px; }
.q.answered .qt::after { content: "\2713"; color: var(--mint-ink); margin-left: auto; }

/* ---- Version amelioree ---- */
.compare { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 10px 0 18px; flex-wrap: wrap; }
.compare .s { text-align: center; }
.compare .s b { display: block; font-family: var(--font-display); font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.compare .s span { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--slate); }
.compare .arrow { font-size: 34px; color: var(--slate); }
.compare .gain { padding: 8px 16px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: 18px; }
.changes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.changes div { padding: 12px 14px; border-radius: 10px; background: var(--mint); color: var(--ink); font-size: 14px; }
.changes div::before { content: "\2191 "; color: var(--mint-ink); font-weight: 700; }
.doc { border: 1px solid var(--hgrey); border-radius: 12px; padding: 22px 26px; max-height: 70vh; overflow: auto; background: var(--card); }
.doc h1 { font-family: var(--font-display); font-size: 30px; margin-top: 0; }
.doc h2 { font-size: 18px; margin-top: 22px; color: var(--accent); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--hgrey); padding: 6px 8px; text-align: left; }
.doc .caret { display: inline-block; width: 8px; height: 18px; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta { text-align: center; padding: 30px 20px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #0E1B33, #16294A 50%, #0E5C86); }
.cta h2 { font-family: var(--font-display); font-size: 30px; margin: 0 0 8px; }
.cta p { opacity: .85; margin: 0 0 18px; }
.cta .btn { background: #fff; color: #0E1B33; border: 0; }

/* ---- Fenetre de l'application (pas de dialogue natif) ---- */
.dlg-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(10,17,32,.55); padding: 16px; }
.dlg-panel { position: relative; width: min(460px, 100%); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.dlg-panel h3 { margin: 0 0 8px; }
.dlg-panel .x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--slate); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .hero { padding: 40px 16px 80px; }
  .hero-in, .diag, .cols, .changes { grid-template-columns: 1fr; }
  .steps-preview { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .wrap { padding: 20px 16px 60px; }
  .stepper .st .t { display: none; }
  .top { padding: 10px 16px; gap: 10px; }
  .top .who span, .brand small { display: none; }
  .gauge { margin: 0 auto; }
}

/* ---- 2e tour du panel (questions en vagues) ---- */
.wave2 { margin-top: 22px; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--accent); background: var(--accent-bg); animation: rise .5s both; }
.wave2 h3 { margin: 0 0 4px; color: var(--accent); }
.wave2 .expert { background: var(--card); }
.q .about { font-size: 12px; color: var(--violet); font-weight: 600; margin-bottom: 4px; }

/* ---- 5. Passer a l'action ---- */
.act h2 { margin-bottom: 4px; }
.act.invite { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--accent), #6FD6A8, var(--gold)) border-box; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; text-align: left; border: 1px solid var(--hgrey); border-radius: 12px; padding: 14px; background: var(--card); color: var(--ink);
  cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.tile.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); }
.tile .ic { font-size: 26px; }
.tile span { font-size: 13px; color: var(--slate); }
.tile em { margin-top: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.tile em.ok { color: var(--mint-ink); }
.sumline { font-size: 16px; margin: 0 0 8px; }
.mvpbar { height: 8px; border-radius: 4px; background: var(--lgrey); overflow: hidden; }
.mvpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width 1s; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.board .col { background: var(--lgrey); border-radius: 12px; padding: 10px; animation: rise .5s both; }
.board .colh { margin-bottom: 8px; }
.board .colh b { display: block; font-size: 14px; }
.board .colh span { display: block; font-size: 12px; color: var(--slate); }
.board .colh em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.story { background: var(--card); border-radius: 10px; padding: 10px; margin-top: 8px; box-shadow: 0 1px 2px rgba(14,27,51,.08); cursor: pointer; font-size: 13px; }
.story .sh { display: flex; align-items: center; gap: 6px; }
.story .code, .case .code { font-size: 11px; font-weight: 700; color: var(--slate); }
.story .pr { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--lgrey); color: var(--slate); }
.story .pr.must { background: var(--red-bg); color: var(--red); }
.story .pr.should { background: var(--amber-bg); color: var(--orange); }
.story .pts { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.story .stt { font-weight: 600; margin-top: 6px; }
.story .more { display: none; margin-top: 8px; color: var(--ink); }
.story.open .more { display: block; }
.story .more ul { padding-left: 16px; margin: 6px 0; }
.typebar { display: flex; gap: 3px; height: 26px; margin: 10px 0 4px; border-radius: 8px; overflow: hidden; }
.typebar i { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.ty-nominal { background: var(--accent); } .ty-limite { background: var(--gold); } .ty-erreur { background: var(--red); } .ty-droits { background: var(--violet); }
.case .ty { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; color: #fff; }
.covlist { display: grid; gap: 6px; }
.cov { display: grid; grid-template-columns: minmax(0, 2fr) 3fr 28px; gap: 10px; align-items: center; font-size: 13px; }
.cov span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov .bar { height: 10px; border-radius: 5px; background: var(--lgrey); overflow: hidden; }
.cov .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6FD6A8); transition: width 1s; }
.cov .bar i.zero { width: 100% !important; background: repeating-linear-gradient(45deg, var(--red-bg), var(--red-bg) 6px, transparent 6px, transparent 12px); }
.case { border-top: 1px solid var(--lgrey); padding: 8px 0; font-size: 14px; }
.case summary { display: flex; gap: 8px; align-items: center; cursor: pointer; flex-wrap: wrap; }
.case .ct { font-weight: 600; flex: 1; min-width: 160px; }
.tbc { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--amber-bg); color: var(--orange); }
.timeline { display: flex; gap: 4px; margin: 10px 0 16px; }
.timeline .ph { min-width: 70px; padding: 10px; border-radius: 10px; color: #fff; animation: grow .7s both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); opacity: 0; } }
.timeline .ph b { display: block; font-size: 14px; }
.timeline .ph span { font-size: 12px; opacity: .85; }
.ph0 { background: var(--accent); } .ph1 { background: var(--mint-ink); } .ph2 { background: var(--gold); } .ph3 { background: var(--violet); }
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.phc { border-radius: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--hgrey); border-top: 4px solid; font-size: 14px; }
.phc.ph0 { border-top-color: var(--accent); } .phc.ph1 { border-top-color: var(--mint-ink); } .phc.ph2 { border-top-color: var(--gold); } .phc.ph3 { border-top-color: var(--violet); }
.phc { background-color: var(--card); color: var(--ink); }
.phc h3 { margin: 0 0 4px; font-size: 16px; }
.phc ul { padding-left: 18px; margin: 6px 0; }
.phc .ms { margin: 6px 0 0; }
.monday { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--mint); }
.monday h3 { margin: 0 0 8px; }
.monday label { display: block; padding: 4px 0; cursor: pointer; }

@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .cov { grid-template-columns: 1fr 1fr 24px; }
  .timeline { flex-direction: column; }
}

/* Chiffre absent de la matiere fournie : a verifier (garde-fou visible) */
mark.unverified { background: var(--amber-bg); color: var(--orange); border-bottom: 2px dotted var(--orange); border-radius: 3px; padding: 0 2px; cursor: help; }

/* Telephone : l'en-tete (credit, parcours, compte, langue) debordait de l'ecran */
@media (max-width: 560px) {
  .top { gap: 8px; padding: 8px 12px; }
  .wallet { gap: 6px; }
  .wallet .bar, .wallet .coin > span, .top .who .avatar { display: none; }
  .wallet .coin { padding: 4px 8px; }
}

/* Compteurs des filtres du panel */
.filters .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--lgrey); color: var(--slate); }
.filters .cnt.f-open { background: var(--accent-bg); color: var(--accent); }
.filters .cnt.f-bloquant { background: var(--red-bg); color: var(--red); }
.filters .cnt.f-majeur { background: var(--amber-bg); color: var(--orange); }
.filters button.on .cnt { background: rgba(255,255,255,.25); color: #fff; }
