/* ============================================================
   ÉQUIPE DU JOUR — feuille de service (planner) et feuille de route
   de l'intervenant (lien public : convocation, puis direct le jour J).
   Préfixes : .wd-cr- (planner), .wd-cs- (feuille de l'intervenant).
   ============================================================ */

/* ── Formulaire d'étape : le 3ᵉ interrupteur (Coulisses) prend la ligne ── */
.wd-tlm-flags > .wd-tlm-flag:nth-child(3) { grid-column: 1 / -1; }

/* ── Feuille de service ── */
.wd-cr-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 22px; color: var(--ep-text-secondary); font-size: .9rem; }
.wd-cr-sum span { display: inline-flex; align-items: center; gap: 7px; }
.wd-cr-sum .ms { font-size: 18px; }
.wd-cr-sum .is-warn { color: var(--wd-st-danger); }

.wd-cr-card { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); background: #fff; overflow-x: auto; }
.wd-cr-grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.wd-cr-grid th, .wd-cr-grid td { border-bottom: 1px solid #F1EDE6; text-align: center; vertical-align: middle; padding: 0; }
.wd-cr-grid .sc { text-align: left; padding: 11px 14px 11px 22px; min-width: 300px; position: sticky; left: 0; background: #fff; z-index: 1; }
.wd-cr-grid .gs { box-shadow: inset 1px 0 0 #F1EDE6; }
.wd-cr-grid thead .grp th { font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ep-text-secondary); font-weight: 600; border-bottom: 0; padding: 16px 0 4px 12px; text-align: left; }
.wd-cr-grid thead .who th { padding: 6px 4px 10px; min-width: 76px; font-weight: 500; font-size: .76rem; }
.wd-cr-grid thead .who th.sc { vertical-align: bottom; font-weight: 600; font-size: .86rem; padding: 0 14px 12px 22px; }
.wd-cr-grid thead .who a { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--wd-onyx); text-decoration: none; border-radius: 10px; padding: 4px 2px; }
.wd-cr-grid thead .who a:hover { background: var(--wd-papier); }
.wd-cr-grid thead .who a span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wd-cr-av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .64rem; font-weight: 600; letter-spacing: .02em; background: #EFEAE2; color: var(--wd-onyx); flex: none; }
.wd-cr-av.is-team { background: var(--wd-onyx); color: #fff; }
.wd-cr-av.is-family { background: #fff; box-shadow: inset 0 0 0 1px var(--wd-hairline-2); }
.wd-cr-av--lg { width: 44px; height: 44px; font-size: .8rem; }

.wd-cr-grid tr.arr td { font-size: .78rem; color: var(--ep-text-secondary); font-variant-numeric: tabular-nums; background: var(--wd-papier); height: 40px; line-height: 1.3; }
.wd-cr-grid tr.arr td.sc { font-weight: 600; color: var(--wd-onyx); background: var(--wd-papier); }
.wd-cr-grid tr.arr td b { color: var(--wd-onyx); font-weight: 600; }
.wd-cr-grid tr.arr .is-in { color: var(--wd-st-ok); font-weight: 600; }

.wd-cr-grid .t { font-family: var(--wd-font-display); font-weight: 600; font-variant-numeric: tabular-nums; display: inline-block; width: 50px; }
.wd-cr-grid .tt { font-weight: 600; }
.wd-cr-grid .pl { display: block; font-size: .75rem; color: var(--ep-text-secondary); margin: 2px 0 0 50px; }
.wd-cr-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--wd-papier); color: var(--ep-text-secondary); white-space: nowrap; vertical-align: 1px; margin-left: 4px; }
.wd-cr-chip .ms { font-size: 14px; }
.wd-cr-chip.is-star { background: var(--wd-jaune-pale); color: #6B4F22; }
.wd-cr-chip.is-danger { background: var(--wd-st-danger-bg); color: var(--wd-st-danger); }
.wd-cr-grid tr.is-nolead td { background: #FDF7F5; }
.wd-cr-grid tr.is-nolead .wd-cr-nolead { display: inline-flex; }
.wd-cr-nolead { display: none; }

/* La case : un bouton de la taille d'un doigt, l'état se lit au rond */
.wd-cr-cell { width: 100%; height: 100%; min-height: 52px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 0; }
.wd-cr-cell:hover { background: #FAF8F4; }
.wd-cr-cell:focus-visible { outline: 2px solid var(--wd-onyx); outline-offset: -2px; }
.wd-cr-cell i { width: 15px; height: 15px; border-radius: 50%; display: block; transition: transform 120ms var(--wd-ease); }
.wd-cr-cell[data-state="with"] i { box-shadow: inset 0 0 0 2px var(--wd-hairline-2); }
.wd-cr-cell[data-state="lead"] i { background: var(--wd-onyx); }
.wd-cr-cell[data-state=""]:hover i { box-shadow: inset 0 0 0 1.5px #E7E2DA; }
.wd-cr-cell.is-clash i { box-shadow: inset 0 0 0 2px var(--wd-st-danger), 0 0 0 4px var(--wd-st-danger-bg); }
.wd-cr-cell[data-state="lead"].is-clash i { background: var(--wd-st-danger); }
.wd-cr-cell.is-busy i { transform: scale(.7); }
td:has(> form > .wd-cr-cell), td:has(> .wd-cr-cell) { height: 52px; }

.wd-cr-grid tr.foot td { height: 56px; border-bottom: 0; font-size: .74rem; color: var(--ep-text-secondary); line-height: 1.25; }
.wd-cr-grid tr.foot td.sc { font-weight: 600; color: var(--wd-onyx); font-size: .86rem; }
.wd-cr-grid tr.foot .ms { font-size: 19px; display: block; margin: 0 auto 2px; }
.wd-cr-grid tr.foot .is-read { color: var(--wd-st-ok); }
.wd-cr-grid tr.foot .is-wait { color: var(--wd-jaune); }
.wd-cr-mini { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--wd-hairline-2); background: #fff; color: var(--wd-onyx); font-weight: 500; font-size: .74rem; cursor: pointer; text-decoration: none; }
.wd-cr-mini:hover { background: var(--wd-papier); }
.wd-cr-mini.is-done { color: var(--wd-st-ok); border-color: #CFE5D6; background: var(--wd-st-ok-bg); }

.wd-cr-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: .8rem; color: var(--ep-text-secondary); padding: 14px 4px 0; }
.wd-cr-legend span { display: inline-flex; align-items: center; gap: 8px; }
.wd-cr-legend i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.wd-cr-legend .is-lead { background: var(--wd-onyx); }
.wd-cr-legend .is-with { box-shadow: inset 0 0 0 2px var(--wd-hairline-2); }
.wd-cr-legend .is-clash { box-shadow: inset 0 0 0 2px var(--wd-st-danger), 0 0 0 4px var(--wd-st-danger-bg); }

.wd-cr-empty { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); padding: 40px 28px; text-align: center; }
.wd-cr-empty h2 { font-size: 1.2rem; margin: 10px 0 6px; }
.wd-cr-empty p { color: var(--ep-text-secondary); max-width: 520px; margin: 0 auto 18px; }
.wd-cr-empty .ms { font-size: 34px; color: var(--ep-text-secondary); }

/* ── Ajouter des intervenants ── */
.wd-cr-pick { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); padding: 6px 20px 16px; margin-bottom: 24px; }
.wd-cr-pick h3 { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ep-text-secondary); font-weight: 600; margin: 18px 0 6px; }
.wd-cr-opt { display: grid; grid-template-columns: 22px 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; cursor: pointer; margin: 0 -8px; }
.wd-cr-opt:hover { background: var(--wd-papier); }
.wd-cr-opt b { display: block; font-size: .9rem; font-weight: 600; }
.wd-cr-opt small { color: var(--ep-text-secondary); font-size: .78rem; }
.wd-cr-opt input { width: 18px; height: 18px; accent-color: var(--wd-onyx); }
.wd-cr-form { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); padding: 20px; }
.wd-cr-form h2 { font-size: 1.02rem; margin: 0 0 14px; }
.wd-cr-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.wd-cr-kind { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.wd-cr-kind .form-check { margin: 0; padding: 0; }
.wd-cr-kind .form-check-input { display: none; }
.wd-cr-kind .form-check-label { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--wd-hairline-2); cursor: pointer; font-size: .86rem; font-weight: 500; }
.wd-cr-kind .form-check-input:checked + .form-check-label { background: var(--wd-onyx); color: #fff; border-color: var(--wd-onyx); }
.wd-cr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }

/* ── Fiche d'un intervenant ── */
.wd-cr-head { display: flex; align-items: center; gap: 14px; }
.wd-cr-head h1 { margin: 0; font-size: 1.6rem; }
.wd-cr-head p { margin: 2px 0 0; color: var(--ep-text-secondary); font-size: .9rem; }
.wd-cr-steps { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); padding: 6px 20px 10px; margin-top: 20px; }
.wd-cr-steps h2 { font-size: 1rem; margin: 14px 0 4px; }
.wd-cr-steps h2 small { color: var(--ep-text-secondary); font-weight: 500; font-size: .86rem; font-family: var(--wd-font-sans); }
.wd-cr-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #F1EDE6; }
.wd-cr-step:first-of-type { border-top: 0; }
.wd-cr-step .t { font-family: var(--wd-font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.wd-cr-step b { font-weight: 600; }
.wd-cr-step textarea { margin-top: 8px; font-size: .86rem; min-height: 40px; height: auto; field-sizing: content; resize: none; }
.wd-cr-link { border: 1px solid var(--wd-hairline); border-radius: var(--wd-r-card); padding: 18px; }
.wd-cr-link h2 { font-size: 1rem; margin: 0 0 4px; }
.wd-cr-link p { color: var(--ep-text-secondary); font-size: .84rem; margin: 0 0 12px; }
.wd-cr-link .wd-ev-btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.wd-cr-link form { margin: 0; }
.wd-cr-state { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ep-text-secondary); }
.wd-cr-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--wd-hairline-2); }
.wd-cr-state.is-read i { background: var(--wd-st-ok); }
.wd-cr-state.is-opened i, .wd-cr-state.is-sent i { background: var(--wd-jaune); }
.wd-cr-danger { background: none; border: 0; color: var(--wd-st-danger); font-size: .84rem; padding: 8px 0 0; }

@media (max-width: 991.98px) {
    .wd-cr-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .wd-cr-2 { grid-template-columns: 1fr; }
    .wd-cr-grid .sc { min-width: 200px; padding-left: 14px; }
}

/* ── Feuille de route du planner : retard annoncé ── */
.wd-rm-delay { position: relative; }
.wd-rm-delay > summary { list-style: none; cursor: pointer; }
.wd-rm-delay > summary::-webkit-details-marker { display: none; }
.wd-rm-delay-form { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(340px, 86vw); background: #fff; border: 1px solid var(--wd-hairline); border-radius: 16px; box-shadow: var(--wd-shadow-lift); padding: 16px; }
.wd-rm-delay-form label { font-weight: 600; font-size: .88rem; margin-bottom: 6px; display: block; }
.wd-rm-delay-form p { font-size: .8rem; color: var(--ep-text-secondary); margin: 12px 0 8px; }
.wd-rm-delay-mins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wd-rm-delay-mins button { height: 42px; border-radius: 10px; border: 1px solid var(--wd-hairline-2); background: #fff; font-weight: 600; font-size: .86rem; }
.wd-rm-delay-mins button:hover { background: var(--wd-onyx); color: #fff; border-color: var(--wd-onyx); }
.wd-rm-notice { display: flex; align-items: flex-start; gap: 12px; background: var(--wd-st-warn-bg); color: #5E4114; border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; font-size: .9rem; }
.wd-rm-notice > i { color: var(--wd-st-warn); font-size: 1.1rem; }
.wd-rm-notice p { margin: 0; flex: 1; }
.wd-rm-notice small { display: block; color: var(--wd-st-warn); font-size: .76rem; margin-top: 2px; }
.wd-rm-notice form { margin: 0; }
.wd-rm-notice button { background: none; border: 0; color: #5E4114; text-decoration: underline; font-size: .84rem; }
.wd-rm-planned { color: var(--wd-st-warn) !important; }

/* ============================================================
   FEUILLE DE ROUTE DE L'INTERVENANT (page publique, téléphone)
   ============================================================ */
/* app.css décale tout <body> de 56 px sur mobile pour la barre du planner : pas ici */
body:has(.wd-cs-body) { padding-top: 0; background: #fff; }
.wd-cs-body { background: #fff; color: var(--wd-onyx); font-family: var(--wd-font-sans); }
.wd-cs { max-width: 480px; margin: 0 auto; font-size: 15px; }
.wd-cs-top { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--wd-hairline); }
.wd-cs-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--wd-onyx); color: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 700; letter-spacing: .03em; overflow: hidden; flex: none; }
.wd-cs-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.wd-cs-top b { font-size: .88rem; font-weight: 600; }
.wd-cs-top .r { margin-left: auto; font-size: .76rem; color: var(--ep-text-secondary); display: inline-flex; align-items: center; gap: 7px; }
.wd-cs-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wd-st-ok); box-shadow: 0 0 0 4px var(--wd-st-ok-bg); display: inline-block; }
.wd-cs-wrap { padding: 22px 20px 28px; }
.wd-cs-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--wd-papier); color: var(--wd-onyx); font-size: .74rem; font-weight: 600; }
.wd-cs-pill .ms { font-size: 15px; }
.wd-cs-btn.is-preview { background: var(--wd-papier); color: var(--ep-text-secondary); border-color: var(--wd-hairline); cursor: default; }
.wd-cs-lbl { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ep-text-secondary); font-weight: 600; }
.wd-cs-big { font-family: var(--wd-font-display); font-size: 2.7rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.wd-cs-h2 { font-size: 1.02rem; font-weight: 600; margin: 30px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.wd-cs-h2 small { font-family: var(--wd-font-sans); font-weight: 500; color: var(--ep-text-secondary); font-size: .86rem; }
.wd-cs-card { border: 1px solid var(--wd-hairline); border-radius: 18px; padding: 18px; background: #fff; }
.wd-cs-btn { flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--wd-hairline-2); background: #fff; color: var(--wd-onyx); font-weight: 500; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; padding: 0 14px; }
.wd-cs-btn .ms { font-size: 19px; }
.wd-cs-btn--primary { background: var(--wd-onyx); color: #fff; border-color: var(--wd-onyx); }
.wd-cs-btn--done { color: var(--wd-st-ok); border-color: #CFE5D6; background: var(--wd-st-ok-bg); }

/* Le billet de convocation */
.wd-cs-ticket { background: var(--wd-onyx); color: #fff; border-radius: 20px; padding: 20px 20px 18px; position: relative; }
.wd-cs-ticket .wd-cs-lbl { color: rgba(255,255,255,.6); }
.wd-cs-ticket h1 { font-size: 1.35rem; font-weight: 600; margin: 4px 0 0; color: #fff; }
.wd-cs-ticket .row1 { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; }
.wd-cs-ticket .row1 small { display: block; font-size: .74rem; color: rgba(255,255,255,.6); margin-bottom: 4px; }
.wd-cs-ticket .pl { font-size: .86rem; text-align: right; line-height: 1.35; }
.wd-cs-perf { position: relative; height: 1px; margin: 18px -20px; background: repeating-linear-gradient(to right, rgba(255,255,255,.35) 0 6px, transparent 6px 12px); }
.wd-cs-perf::before, .wd-cs-perf::after { content: ''; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.wd-cs-perf::before { left: -9px; }
.wd-cs-perf::after { right: -9px; }
.wd-cs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .86rem; }
.wd-cs-mini small { display: block; font-size: .72rem; color: rgba(255,255,255,.6); }
.wd-cs-mini a { color: #fff; }

.wd-cs-know { list-style: none; padding: 0; margin: 0; }
.wd-cs-know li { display: flex; gap: 12px; padding: 10px 0; font-size: .9rem; line-height: 1.4; border-top: 1px solid #F1EDE6; }
.wd-cs-know li:first-child { border-top: 0; }
.wd-cs-know .ms { font-size: 20px; color: var(--ep-text-secondary); }

.wd-cs-list { list-style: none; margin: 0; padding: 0; }
.wd-cs-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 15px 0; border-top: 1px solid #F1EDE6; }
.wd-cs-list li:first-child { border-top: 0; }
.wd-cs-list .t { font-family: var(--wd-font-display); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; padding-top: 1px; }
.wd-cs-list .tt { font-weight: 600; font-size: .95rem; }
.wd-cs-list .pl { font-size: .8rem; color: var(--ep-text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 4px; }
.wd-cs-list .pl .ms { font-size: 15px; }
.wd-cs-list li.is-other { opacity: .5; }
.wd-cs-tag { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-top: 8px; margin-right: 4px; }
.wd-cs-tag--lead { background: var(--wd-onyx); color: #fff; }
.wd-cs-tag--with { box-shadow: inset 0 0 0 1px var(--wd-hairline-2); color: var(--ep-text-secondary); }
.wd-cs-tag--star { background: var(--wd-jaune-pale); color: #6B4F22; }
.wd-cs-tag--shift { background: var(--wd-st-warn-bg); color: var(--wd-st-warn); }
.wd-cs-note { margin-top: 9px; background: var(--wd-papier); border-radius: 10px; padding: 9px 11px; font-size: .84rem; display: flex; gap: 8px; line-height: 1.4; }
.wd-cs-note .ms { font-size: 16px; padding-top: 1px; }

.wd-cs-more { margin-top: 24px; border: 1px solid var(--wd-hairline); border-radius: 18px; }
.wd-cs-more > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 500; font-size: .9rem; cursor: pointer; }
.wd-cs-more > summary::-webkit-details-marker { display: none; }
.wd-cs-more[open] > summary .ms { transform: rotate(180deg); }
.wd-cs-more .wd-cs-list { padding: 0 18px 8px; }

.wd-cs-contacts .c { display: grid; grid-template-columns: 38px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #F1EDE6; }
.wd-cs-contacts .c:first-child { border-top: 0; }
.wd-cs-contacts b { display: block; font-size: .9rem; }
.wd-cs-contacts small { color: var(--ep-text-secondary); font-size: .78rem; }
.wd-cs-call { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--wd-hairline-2); display: grid; place-items: center; color: var(--wd-onyx); text-decoration: none; }
.wd-cs-call .ms { font-size: 20px; }

.wd-cs-ack { position: sticky; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); padding: 26px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
.wd-cs-ack form { margin: 0; }
.wd-cs-ack .wd-cs-btn { width: 100%; min-height: 52px; font-size: .95rem; }
.wd-cs-ack p { margin: 8px 0 0; text-align: center; font-size: .76rem; color: var(--ep-text-secondary); }
.wd-cs-foot { text-align: center; font-size: .74rem; color: var(--ep-text-secondary); margin-top: 34px; line-height: 1.6; }
.wd-cs-foot b { color: var(--wd-onyx); font-weight: 600; }

/* Le direct */
.wd-cs-alert { display: flex; gap: 10px; background: var(--wd-st-warn-bg); color: #5E4114; border-radius: 14px; padding: 12px 14px; font-size: .88rem; line-height: 1.4; }
.wd-cs-alert .ms { font-size: 20px; color: var(--wd-st-warn); }
.wd-cs-alert small { display: block; color: var(--wd-st-warn); font-size: .74rem; margin-top: 3px; }
.wd-cs-day { margin: 22px 0 6px; }
.wd-cs-day .bar { position: relative; height: 6px; border-radius: 99px; background: #EFEAE2; margin: 10px 0 8px; }
.wd-cs-day .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--wd-onyx); }
.wd-cs-day .bar b { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--wd-onyx); }
.wd-cs-day .lg { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ep-text-secondary); font-variant-numeric: tabular-nums; }
.wd-cs-now .wd-cs-lbl { display: flex; align-items: center; gap: 8px; }
.wd-cs-now h2 { font-size: 1.3rem; margin: 10px 0 2px; font-weight: 600; }
.wd-cs-now p { margin: 0; color: var(--ep-text-secondary); font-size: .86rem; }
.wd-cs-now .mine { margin-top: 8px; color: var(--wd-onyx); font-size: .88rem; }
.wd-cs-prog { height: 4px; border-radius: 99px; background: #EFEAE2; margin-top: 14px; overflow: hidden; }
.wd-cs-prog i { display: block; height: 100%; background: var(--wd-st-ok); }
.wd-cs-next { background: var(--wd-onyx); color: #fff; border-radius: 20px; padding: 20px; margin-top: 12px; }
.wd-cs-next .wd-cs-lbl { color: rgba(255,255,255,.6); }
.wd-cs-next .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; }
.wd-cs-next h2 { font-size: 1.3rem; margin: 0; font-weight: 600; color: #fff; }
.wd-cs-next .wd-cs-big { font-size: 2.2rem; }
.wd-cs-next .pl { font-size: .84rem; color: rgba(255,255,255,.7); margin-top: 6px; }
.wd-cs-next .note { margin-top: 14px; background: rgba(255,255,255,.09); border-radius: 12px; padding: 11px 13px; font-size: .88rem; line-height: 1.45; display: flex; gap: 9px; }
.wd-cs-next .note .ms { font-size: 18px; color: var(--wd-jaune); }
.wd-cs-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--wd-hairline); }
.wd-cs-bar form { flex: 1; display: flex; margin: 0; }
.wd-cs-bar form .wd-cs-btn { width: 100%; }
.wd-cs-sos { flex: 1; position: relative; display: flex; }
.wd-cs-sos > summary { list-style: none; width: 100%; }
.wd-cs-sos > summary::-webkit-details-marker { display: none; }
.wd-cs-sos-sheet { position: absolute; bottom: calc(100% + 10px); right: 0; width: min(320px, 88vw); background: #fff; border: 1px solid var(--wd-hairline); border-radius: 16px; box-shadow: var(--wd-shadow-lift); padding: 8px; }
.wd-cs-sos-sheet a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; color: var(--wd-onyx); text-decoration: none; font-weight: 500; }
.wd-cs-sos-sheet a:hover { background: var(--wd-papier); }
.wd-cs-sos-sheet small { display: block; color: var(--ep-text-secondary); font-weight: 400; }

/* ── Impression de la feuille de service : la grille seule, en paysage ── */
@media print {
    @page { size: landscape; margin: 10mm; }
    /* Rail, barre du haut, onglets, modales : tout ce qui n'est pas la page */
    body:has(.wd-cr-grid) > div > :not(.ep-main-content), .wd-cr .wd-ev-crumb, .wd-cr .wd-dossier-tabs, .wd-cr .wd-chapter-picker,
    .wd-cr .wd-ev-cover .wd-ev-btn, .wd-cr .wd-ev-cover .dropdown, .wd-cr .wd-ev-jchip,
    .wd-cr .wd-rp-head .acts, .wd-cr .wd-pg-issues, .wd-cr-legend, .wd-cr-grid tr.foot { display: none !important; }
    body:has(.wd-cr-grid) .ep-main-content { margin: 0 !important; padding: 0 !important; }
    .wd-cr-card { border: 0; overflow: visible; }
    .wd-cr-grid .sc { position: static; }
    .wd-cr-cell { min-height: 30px; }
}

/* ── Chapitre Programme : deux vues, une bascule ── */
.wd-pg-views { margin: 16px 0 18px; }
.wd-pg-views .seg a .ms { font-size: 17px; }
