/* L'École de Do — espace prof (« Mon compte ») */
.ld-prof { background: #fff; border: 2px solid #7b5330; border-radius: 14px; padding: 18px 18px 8px; margin-bottom: 24px; color: #2b2118; }
.ld-prof__titre { margin: 0 0 12px; color: #553118; font-size: 1.25rem; }
.ld-prof__titre span { display: block; font-size: 0.85rem; font-weight: 400; color: #7a6a5a; }
.ld-prof__resume { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ld-prof__chiffre { background: #f9f2ea; border-radius: 10px; padding: 8px 12px; font-size: 0.9rem; }
.ld-prof__chiffre strong { font-size: 1.15rem; color: #553118; }
.ld-prof__chiffre--large { flex: 1 1 100%; }
.ld-prof__vide { color: #7a6a5a; }
.ld-prof__jour { margin: 16px 0 6px; font-size: 1rem; color: #7b5330; border-bottom: 1px solid #eadfce; padding-bottom: 4px; }
.ld-prof__liste { list-style: none; margin: 0; padding: 0; }
.ld-prof__cours { border-left: 4px solid #2c7a2c; background: #fbf8f4; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.ld-prof__cours--vide { border-left-color: #c9bcad; }
.ld-prof__cours--complet { border-left-color: #8c2411; }
.ld-prof__ligne { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ld-prof__heure { font-weight: 700; white-space: nowrap; }
.ld-prof__nom { flex: 1; min-width: 140px; }
.ld-prof__nom small { color: #7a6a5a; }
.ld-prof__compte { font-weight: 700; background: #2c7a2c; color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 0.9rem; white-space: nowrap; }
.ld-prof__cours--vide .ld-prof__compte { background: #c9bcad; }
.ld-prof__cours--complet .ld-prof__compte { background: #8c2411; }
.ld-prof__eleves { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ld-prof__eleves span { background: #fff; border: 1px solid #eadfce; border-radius: 999px; padding: 2px 9px; font-size: 0.85rem; }
.ld-prof__note { font-size: 0.82rem; color: #7a6a5a; margin-top: 5px; }

/* Historique des cours (mois repliables) — styles explicites pour ne pas dépendre du thème */
.ld-prof--historique { margin-top: 18px; }
.ld-prof__mois { border: 1px solid #e4d5c3; border-radius: 10px; margin: 0 0 10px; background: #fffdfa; overflow: hidden; }
.ld-prof__mois > summary { cursor: pointer; display: grid; grid-template-columns: 18px 1fr; align-items: center; column-gap: 8px; row-gap: 2px; padding: 12px 14px; margin: 0; list-style: none; background: none; border: 0; font-size: 1rem; line-height: 1.3; text-align: left; }
.ld-prof__mois > summary::-webkit-details-marker, .ld-prof__mois > summary::marker { display: none; content: ""; }
.ld-prof__mois > summary::before { content: "▸"; grid-row: 1 / span 2; color: #8c2411; font-size: 1rem; transition: transform .2s; justify-self: center; }
.ld-prof__mois[open] > summary::before { transform: rotate(90deg); }
.ld-prof__mois > summary::after { display: none !important; content: none !important; }
.ld-prof__mois > summary strong { grid-column: 2; color: #553118; font-size: 1.05rem; }
.ld-prof__mois > summary span { grid-column: 2; color: #7b5330; font-size: .88rem; }
.ld-prof__mois[open] > summary { border-bottom: 1px solid #efe4d6; }
.ld-prof__mois .ld-prof__liste { padding: 10px; margin: 0; }
.ld-prof__cours--passe { border-left-color: #7b5330; }
.ld-prof__cours--passe .ld-prof__ligne { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px; }
.ld-prof__cours--passe .ld-prof__heure { font-size: .9rem; color: #553118; }
.ld-prof__cours--passe .ld-prof__nom { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ld-prof__cours--passe .ld-prof__nom::first-letter { text-transform: uppercase; }
.ld-prof__cours--passe .ld-prof__compte { background: #7b5330; }
@media (max-width: 420px) {
  .ld-prof__cours--passe .ld-prof__ligne { grid-template-columns: 1fr auto; }
  .ld-prof__cours--passe .ld-prof__heure { grid-column: 1; }
  .ld-prof__cours--passe .ld-prof__compte { grid-column: 2; grid-row: 1 / span 2; }
  .ld-prof__cours--passe .ld-prof__nom { grid-column: 1; }
}

/* Rémunération */
.ld-prof--paie { margin-top: 18px; }
.ld-prof__mois > summary .ld-prof__total { color: #2c7a2c; }
.ld-prof__cours--passe .ld-prof__compte--euros { background: #2c7a2c; }
.ld-prof__total-mois { text-align: right; margin: 0; padding: 0 14px 12px; color: #553118; }

/* Annuler un cours / remplacements */
.ld-prof__annuler { margin-top: 8px; }
.ld-prof__annuler > summary { cursor: pointer; display: inline-block; color: #8c2411; font-weight: 700; font-size: .88rem; list-style: none; background: none; border: 0; padding: 0; }
.ld-prof__annuler > summary::-webkit-details-marker, .ld-prof__annuler > summary::marker { display: none; content: ""; }
.ld-prof__annuler > summary::after { display: none !important; content: none !important; }
.ld-prof__annuler[open] { background: #fff; border: 1px solid #eadfce; border-radius: 10px; padding: 10px 12px; }
.ld-prof__annuler label { display: block; margin: 8px 0; font-size: .9rem; font-weight: 600; color: #553118; }
.ld-prof__annuler label[hidden] { display: none; }
.ld-prof__annuler select, .ld-prof__annuler input, .ld-prof__annuler textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #d4b896; border-radius: 8px; font: inherit; font-weight: 400; }
.ld-prof .ld-prof__btn { all: unset; cursor: pointer; display: inline-block; background: #8c2411; color: #fff !important; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; text-decoration: none; }
.ld-prof .ld-prof__btn[disabled] { opacity: .6; }
.ld-prof .ld-prof__btn[hidden] { display: none; }
.ld-prof__rempl { margin-top: 6px; font-size: .88rem; color: #553118; }
.ld-prof__rempl--attente { background: #fff6e0; border-radius: 8px; padding: 6px 10px; }

/* Rubriques repliables (rémunération, historique) */
.ld-prof--paie, .ld-prof--historique { padding: 0; }
.ld-prof__bloc > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 18px; margin: 0; background: none; border: 0; }
.ld-prof__bloc > summary::-webkit-details-marker, .ld-prof__bloc > summary::marker { display: none; content: ""; }
.ld-prof__bloc > summary::after { content: "▸" !important; display: inline-block !important; margin-left: auto; color: #8c2411; font-size: 1.1rem; transition: transform .2s; }
.ld-prof__bloc[open] > summary::after { transform: rotate(90deg); }
.ld-prof__bloc > summary .ld-prof__titre { margin: 0; }
.ld-prof__bloc[open] { padding: 0 18px 8px; }
.ld-prof__bloc[open] > summary { padding-left: 0; padding-right: 0; }
.ld-prof__sans-rempl { border-top: 1px dashed #eadfce; padding-top: 8px; margin-top: 10px; }
.ld-prof .ld-prof__lien { all: unset; cursor: pointer; color: #8c2411; font-weight: 700; text-decoration: underline; }
.ld-prof .ld-prof__lien[hidden] { display: none; }

/* Prévision */
.ld-prof__prevu { color: #b26b00; font-style: normal; font-weight: 600; }
.ld-prof__cours--prevu { border-left-color: #e0a64a; border-left-style: dashed; background: #fffaf0; }
.ld-prof__cours--prevu .ld-prof__compte--euros { background: #e0a64a; }

/* Bilan des profs (Do) */
.ld-bilan__chiffres { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-bilan__chiffres > span { background: #fff; border: 1px solid #eadfce; border-radius: 999px; padding: 3px 10px; font-size: .85rem; color: #7b5330; }
.ld-bilan__chiffres b { color: #3b2414; font-size: .98rem; }
.ld-bilan__chiffres > span.ld-bilan__declarer { background: #3b2414; border-color: #3b2414; color: #f3e6d4; }
.ld-bilan__chiffres > span.ld-bilan__declarer b { color: #fff; }
.ld-bilan__declarer-detail { background: #fbf6ef; border-left: 3px solid #3b2414; padding: 8px 12px; }
.ld-bilan b.ld-bilan__plus, .ld-bilan td.ld-bilan__plus { color: #2c7a2c; }
.ld-bilan b.ld-bilan__moins, .ld-bilan td.ld-bilan__moins { color: #b3261e; }
.ld-bilan__mois > summary { row-gap: 6px; }
.ld-bilan__mois > summary strong { font-size: 1.15rem; }
.ld-bilan__profs { padding: 10px; display: grid; gap: 8px; }
.ld-bilan__prof { border: 1px solid #eadfce; border-left: 4px solid #7b5330; border-radius: 8px; background: #fbf8f4; }
.ld-bilan__prof > summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 10px 12px; margin: 0; background: none; border: 0; }
.ld-bilan__prof > summary::-webkit-details-marker, .ld-bilan__prof > summary::marker { display: none; content: ""; }
.ld-bilan__prof > summary::after { display: none !important; content: none !important; }
.ld-bilan__prof > summary strong { color: #553118; font-size: 1.02rem; }
.ld-bilan__prof > summary small { color: #7a6a5a; }
.ld-bilan__prof > summary .ld-bilan__chiffres { grid-column: 1 / -1; }
.ld-bilan__table { width: 100%; border-collapse: collapse; font-size: .86rem; background: #fff; }
.ld-bilan__table th, .ld-bilan__table td { padding: 6px 8px; border-top: 1px solid #f0e6d8; text-align: right; white-space: nowrap; }
.ld-bilan__table th:first-child, .ld-bilan__table td:first-child { text-align: left; white-space: normal; }
.ld-bilan__table th { color: #7b5330; font-weight: 700; background: #f9f2ea; }
.ld-bilan__table small { color: #7a6a5a; }
.ld-bilan__table tr.ld-bilan__prevu td { background: #fffaf0; font-style: italic; }
.ld-bilan__prof[open] { overflow-x: auto; }
