/* FESTIWORLD WAVE — feuille de style (mobile d'abord, clair/sombre) */
:root {
  --primary: #1e2a4a;
  --accent: #7c5cff;
  --bg: #f4f5fb;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --text: #1c2236;
  --muted: #6b7286;
  --border: #e6e8f0;
  --shadow: 0 1px 2px rgba(20, 24, 45, .04), 0 4px 16px rgba(20, 24, 45, .06);
  --radius: 14px;
  --green: #16a34a; --green-bg: #dcfce7;
  --red: #dc2626; --red-bg: #fee2e2;
  --amber: #d97706; --amber-bg: #fef3c7;
  --blue: #2563eb; --blue-bg: #dbeafe;
  --purple: #7c3aed; --purple-bg: #ede9fe;
  --teal: #0d9488; --teal-bg: #ccfbf1;
  --gray: #64748b; --gray-bg: #eef1f5;
  --sidebar-w: 260px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e1220;
  --surface: #161c2e;
  --surface-2: #1b2238;
  --text: #e6e9f3;
  --muted: #98a0b8;
  --border: #283150;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  --green-bg: rgba(22, 163, 74, .18); --red-bg: rgba(220, 38, 38, .18); --amber-bg: rgba(217, 119, 6, .2);
  --blue-bg: rgba(37, 99, 235, .2); --purple-bg: rgba(124, 58, 237, .22); --teal-bg: rgba(13, 148, 136, .2); --gray-bg: rgba(100, 116, 139, .2);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: .9375rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6rem; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }
.code-block { display: block; padding: .6rem; overflow-x: auto; word-break: break-all; }
.icon { flex-shrink: 0; vertical-align: -3px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .nowrap { white-space: nowrap; }
.c-green { color: var(--green); } .c-red { color: var(--red); } .c-amber { color: var(--amber); }
.row { display: flex; align-items: center; } .gap { gap: .5rem; } .wrap { flex-wrap: wrap; } .center { justify-content: center; } .grow { flex: 1; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* ----- Coque ----- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.content { padding: 1rem; width: 100%; max-width: 1280px; margin: 0 auto; flex: 1; }
.is-volunteer .content { padding-bottom: 6rem; max-width: 1100px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; padding: .6rem 1rem; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.top-search { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem; flex: 1; max-width: 420px; color: var(--muted); }
.top-search input { border: 0; background: transparent; padding: 0; outline: none; width: 100%; color: var(--text); }
.brand-inline { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); }
.brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.top-nav { display: flex; gap: .2rem; margin-left: 1rem; }
.top-nav a { padding: .45rem .75rem; border-radius: 999px; color: var(--muted); font-weight: 500; }
.top-nav a.active, .top-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.icon-btn.danger, .danger { color: var(--red); }
.dot { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.theme-light { display: none; } [data-theme="dark"] .theme-light { display: inline; } [data-theme="dark"] .theme-dark { display: none; }

.user-menu { position: relative; }
.user-menu summary, .dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; }
.user-menu summary::-webkit-details-marker, .dropdown summary::-webkit-details-marker { display: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; z-index: 50; }
.menu a, .menu button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .7rem; border-radius: 8px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu-head { padding: .5rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.menu-head small { display: block; color: var(--muted); }
.dropdown { position: relative; display: inline-block; }
.form-inline { display: flex; flex-direction: column; gap: .35rem; padding: .5rem .7rem; border-top: 1px solid var(--border); }

/* ----- Barre latérale ----- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--primary); color: #dfe4f5; overflow-y: auto; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; padding-bottom: 2rem; }
.sidebar.open { transform: none; }
.sidebar-backdrop { display: none; }
.sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 35; }
.sidebar-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1rem .8rem; }
.sidebar-brand strong { display: block; color: #fff; }
.sidebar-brand small { color: #aab3d1; font-size: .78rem; }
.sidebar .brand-logo { width: 40px; height: 40px; background: #fff; padding: 3px; }
.event-switch { padding: 0 1rem .6rem; }
.event-switch select { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .15); }
.event-switch option { color: #000; }
.side-nav { display: flex; flex-direction: column; padding: 0 .6rem; }
.nav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #8f99bd; padding: .9rem .6rem .3rem; }
.side-nav a { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 10px; color: #dfe4f5; font-weight: 500; }
.side-nav a:hover { background: rgba(255, 255, 255, .07); text-decoration: none; }
.side-nav a.active { background: var(--accent); color: #fff; }
.side-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 0 .45rem; }

/* ----- Navigation basse (bénévoles mobile) ----- */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border); padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--muted); padding: .35rem 0; border-radius: 10px; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:hover { text-decoration: none; }

@media (min-width: 1024px) {
  .is-staff .sidebar { transform: none; }
  .is-staff .shell { margin-left: var(--sidebar-w); }
  .is-staff .sidebar-backdrop { display: none !important; }
  .only-mobile { display: none !important; }
  .content { padding: 1.5rem 2rem; }
}
@media (max-width: 1023px) { .is-staff .only-desktop { display: none !important; } }
@media (min-width: 860px) { .is-volunteer .bottom-nav { display: none; } .is-volunteer .content { padding-bottom: 2rem; } }
@media (max-width: 859px) { .is-volunteer .only-desktop { display: none !important; } }

/* ----- Cartes et blocs ----- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; margin-bottom: 1rem; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; border-color: var(--accent); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: .4rem; }
.card.highlight { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.card.sensitive { border-color: color-mix(in srgb, var(--red) 35%, var(--border)); }
.card.dim { opacity: .65; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: .25rem; color: var(--muted); font-weight: 500; }
.grid-main { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.grid-main > .card { margin-bottom: 0; }
.grid-main + .grid-main, .grid-main + .card, .card + .grid-main { margin-top: 1rem; }
@media (min-width: 900px) { .grid-main { grid-template-columns: 1fr 1fr; } }
.empty, .empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.empty-icon { color: var(--amber); margin-bottom: .5rem; }
.empty-state h1 { font-size: 2.5rem; color: var(--text); }
.prose { max-width: 760px; }
.prose h3 { margin-top: 1.2rem; }

/* ----- Statistiques ----- */
.stats-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow); color: var(--text); }
a.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.2; }
.stat strong { font-size: 1.35rem; }
.stat-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.stat-icon.c-accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.stat-icon.c-green { background: var(--green-bg); color: var(--green); } .stat-icon.c-red { background: var(--red-bg); color: var(--red); }
.stat-icon.c-amber { background: var(--amber-bg); color: var(--amber); } .stat-icon.c-blue { background: var(--blue-bg); color: var(--blue); }
.stat-icon.c-purple { background: var(--purple-bg); color: var(--purple); } .stat-icon.c-teal { background: var(--teal-bg); color: var(--teal); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: .5rem; }
.mini-stats strong { display: block; font-size: 1.6rem; }
.mini-stats small { color: var(--muted); }

/* ----- Graphiques ----- */
.chart { min-height: 200px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--border); }
.chart-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.hbar-row { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: .6rem; align-items: center; margin-bottom: .45rem; font-size: .85rem; }
.hbar-track { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.hbar-track span { display: block; height: 100%; border-radius: 6px; }

/* ----- Formulaires ----- */
.form { display: flex; flex-direction: column; gap: .8rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; font-size: .9rem; }
label small { font-weight: 400; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .75rem; width: 100%; min-height: 42px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 20%, transparent); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); flex-shrink: 0; }
input[type="color"] { padding: .2rem; height: 42px; }
input[type="file"] { padding: .45rem; }
select[multiple] { min-height: 140px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.check { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 400; }
.check span { padding-top: 1px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .span-2 { grid-column: span 2; } .span-3, .span-4 { grid-column: 1 / -1; }
}
.grid-3 > div:last-child:has(> .btn), .grid-4 > div:last-child:has(> .btn) { display: flex; align-items: flex-end; }
.filters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: flex-end; }
.filters label { min-width: 150px; }
.filters .grow { flex: 1 1 220px; }
.filters .check { align-self: center; min-width: 0; }
.inline-filters { margin-bottom: .8rem; } .inline-filters select { max-width: 320px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.toolbar select { width: auto; }
.sticky-actions { position: sticky; bottom: .75rem; z-index: 5; display: flex; justify-content: flex-end; }
.is-volunteer .sticky-actions { bottom: 5rem; }
@media (min-width: 860px) { .is-volunteer .sticky-actions { bottom: .75rem; } }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 600; margin-top: .8rem; }
.small-form { gap: .5rem; padding-top: .5rem; }

/* ----- Boutons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; min-height: 42px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn-outline.danger, .btn-danger-outline { color: var(--red); border-color: var(--red); }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-sm { padding: .35rem .75rem; min-height: 34px; font-size: .85rem; }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; display: inline-flex; align-items: center; gap: .3rem; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg-radio label span { padding: .35rem .8rem; border-radius: 8px; color: var(--muted); font-weight: 500; display: block; cursor: pointer; }
.seg a.active, .seg-radio input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg-radio label { flex-direction: row; } .seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg.wrap { flex-wrap: wrap; }

/* ----- Badges, puces, avatars ----- */
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--green-bg); color: var(--green); } .badge-red { background: var(--red-bg); color: var(--red); }
.badge-amber { background: var(--amber-bg); color: var(--amber); } .badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-purple { background: var(--purple-bg); color: var(--purple); } .badge-teal { background: var(--teal-bg); color: var(--teal); }
.badge-gray { background: var(--gray-bg); color: var(--gray); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .78rem; }
.chip-check { flex-direction: row; font-weight: 400; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: .85rem; }
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); }
.avatar-initials { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); font-weight: 700; }
.avatar-xs { width: 22px; height: 22px; font-size: .6rem; } .avatar-sm { width: 34px; height: 34px; font-size: .78rem; }
.avatar-md { width: 44px; height: 44px; } .avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; } .avatar-xl { width: 104px; height: 104px; font-size: 2rem; }
.avatars { display: flex; gap: .25rem; margin: .4rem 0 .7rem; }
.dot-c { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); margin-right: .35rem; }
.progress { height: 8px; background: var(--surface-2); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.progress span { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 6px; }
.progress-card { display: grid; gap: .5rem; }
.progress-card small { display: block; }

/* ----- Alertes ----- */
.alert { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert span { flex: 1; }
.alert-success { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.alert-error { background: var(--red-bg); color: var(--red); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: color-mix(in srgb, var(--blue) 25%, transparent); }
.alert-close { background: none; border: 0; font-size: 1.2rem; line-height: 1; color: inherit; cursor: pointer; }
.proposals-bar { align-items: center; flex-wrap: wrap; }
.issue { font-size: .8rem; margin-top: .2rem; } .issue.hard { color: var(--red); } .issue.soft { color: var(--amber); }

/* ----- Tableaux ----- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table input { min-height: 36px; padding: .35rem .5rem; }
.table .w-xs { width: 70px; }
.table .actions { display: flex; gap: .2rem; justify-content: flex-end; }
.person { display: flex; align-items: center; gap: .6rem; }
.row-sensitive td { background: color-mix(in srgb, var(--red) 6%, transparent); }
@media (max-width: 700px) {
  .table-responsive thead { display: none; }
  .table-responsive tr { display: block; border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .table-responsive td { display: flex; justify-content: space-between; gap: .75rem; border: 0; padding: .25rem .2rem; }
  .table-responsive td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; }
  .table-responsive td.person::before { display: none; }
}
.pager { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: 1rem; }
.pager a, .pager span { padding: .3rem .65rem; border-radius: 8px; border: 1px solid var(--border); color: var(--text); }
.pager a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.dl { display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: .4rem .8rem; margin: 0; }
.dl dt { color: var(--muted); font-size: .85rem; } .dl dd { margin: 0; }

/* ----- Listes ----- */
.list-compact { list-style: none; margin: 0; padding: 0; }
.list-compact li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.list-compact li:last-child { border-bottom: 0; }
.list-compact li a { display: flex; flex-direction: column; color: var(--text); flex: 1; gap: .1rem; }
.list-compact li a:has(> .icon) { flex-direction: row; align-items: center; gap: .5rem; }
.list-compact li.unread a strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .4rem; vertical-align: 1px; }
.mission-list, .app-list, .avail-list, .alert-list, .att-list, .app-admin-list, .candidate-list { list-style: none; margin: 0; padding: 0; }
.mission-list li { display: flex; gap: .8rem; align-items: center; padding: .6rem; border-radius: 12px; border-left: 4px solid var(--c); background: var(--surface-2); margin-bottom: .5rem; }
.mission-date { text-align: center; min-width: 42px; } .mission-date strong { display: block; font-size: 1.3rem; line-height: 1; } .mission-date small { color: var(--muted); text-transform: uppercase; font-size: .7rem; }
.app-list li, .avail-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .7rem; border-radius: 10px; border-left: 4px solid var(--c, var(--border)); background: var(--surface-2); margin-bottom: .45rem; }
.alert-list li a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .7rem; border-left: 4px solid var(--c); background: var(--surface-2); border-radius: 10px; margin-bottom: .4rem; color: var(--text); }
.alert-list small { display: block; }
.app-admin-list li { border-left: 4px solid var(--c); background: var(--surface-2); border-radius: 12px; padding: .75rem; margin-bottom: .6rem; }
.app-main { display: flex; gap: .7rem; align-items: flex-start; }
.app-main > div:nth-of-type(1) { flex: 1; }
.app-status { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; text-align: right; }
.app-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .6rem; padding-left: 2.6rem; }
.app-actions details { flex-basis: 100%; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.bulk-bar select { width: auto; }
.att-list li { display: grid; gap: .6rem; padding: .75rem; border-left: 4px solid var(--c); background: var(--surface-2); border-radius: 12px; margin-bottom: .6rem; }
.att-person { display: flex; gap: .7rem; align-items: flex-start; }
.att-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
@media (min-width: 900px) { .att-list li { grid-template-columns: 1fr auto; } .att-correct { grid-column: 1 / -1; } }

/* ----- Espace bénévole ----- */
.welcome { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.welcome h1 { margin: 0; }
.welcome p { margin: 0; }
.profile-photo { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.profile-photo h1, .profile-photo h2 { margin: 0 0 .2rem; }
.info-card { display: flex; gap: 1rem; color: var(--text); }
.info-card .icon { color: var(--accent); }
.info-card ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.sector-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 1rem; }
@media (min-width: 720px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
.sector-grid .card { margin: 0; }
.sector-card { border-top: 5px solid var(--c); display: flex; flex-direction: column; gap: .4rem; }
.sector-card header { display: flex; align-items: center; gap: .55rem; }
.sector-card header h1, .sector-card header h2 { margin: 0; flex: 1; }
.sector-card header h2 a { color: var(--text); }
.sector-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.meta { margin: 0; display: grid; gap: .25rem; font-size: .88rem; }
.meta div { display: flex; gap: .45rem; align-items: flex-start; } .meta dt { color: var(--muted); } .meta dd { margin: 0; }
.shift-pick { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: .4rem; }
.shift-day { background: var(--surface-2); padding: .35rem .7rem; font-weight: 600; font-size: .8rem; }
.shift-opt { flex-direction: row; align-items: center; gap: .55rem; padding: .55rem .7rem; border-top: 1px solid var(--border); font-weight: 400; cursor: pointer; }
.shift-opt span { flex: 1; } .shift-opt small.ok { color: var(--green); } .shift-opt small.warn { color: var(--amber); }
.shift-opt.done { display: flex; justify-content: space-between; cursor: default; color: var(--muted); }
.shift-opt:has(input:checked) { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.apply-bar { position: sticky; bottom: 5rem; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow); padding: .7rem; }
.apply-bar input { flex: 1 1 200px; }
@media (min-width: 860px) { .apply-bar { bottom: 1rem; } }
.day-title { margin: 1.2rem 0 .6rem; font-size: 1rem; color: var(--muted); }
.mission { display: flex; gap: 1rem; border-left: 5px solid var(--c); align-items: flex-start; }
.mission-time { text-align: center; min-width: 52px; } .mission-time strong { display: block; font-size: 1.15rem; } .mission-time small { color: var(--muted); }
.mission-body { flex: 1; } .mission-body h3 { margin: 0 0 .15rem; }
.mission-cancel { position: relative; } .mission-cancel summary { list-style: none; } .mission-cancel form { position: absolute; right: 0; top: 100%; width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .7rem; box-shadow: var(--shadow); z-index: 5; }
.doc-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; } @media (min-width: 720px) { .doc-grid { grid-template-columns: 1fr 1fr; } }
.doc { display: flex; gap: .8rem; align-items: center; color: var(--text); margin: 0; } .doc > div { flex: 1; } .doc:hover { text-decoration: none; border-color: var(--accent); }
.doc-icon { color: var(--accent); }
.export-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; } @media (min-width: 720px) { .export-grid { grid-template-columns: repeat(2, 1fr); } } @media (min-width: 1100px) { .export-grid { grid-template-columns: repeat(3, 1fr); } }
.export-grid .card { margin: 0; }
.team { border: 1px solid var(--border); border-radius: 12px; padding: .8rem; margin-top: .8rem; }
.logo-preview { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; background: #fff; }

/* ----- Calendrier ----- */
.grid-cal { display: grid; gap: 1rem; } .grid-cal .card { margin: 0; }
@media (min-width: 1000px) { .grid-cal { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.grid-cal + .card { margin-top: 1rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.cal-head h2 { margin: 0; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--muted); text-transform: uppercase; padding: .2rem 0; }
.cal-day { min-height: 72px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); text-align: left; font: inherit; color: var(--text); cursor: pointer; overflow: hidden; }
.cal-week .cal-day { min-height: 150px; }
.cal-day:hover { border-color: var(--accent); }
.cal-day.out { opacity: .4; }
.cal-day.today .cal-num { background: var(--accent); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-day.event-day { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cal-day.selected { outline: 2px solid var(--accent); }
.cal-num { font-size: .8rem; font-weight: 600; }
.cal-slot { display: block; font-size: .64rem; line-height: 1.25; padding: 1px 4px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend .cal-slot, td .cal-slot { display: inline-block; font-size: .72rem; }
.s-available { background: var(--green-bg); color: var(--green); } .s-unavailable { background: var(--red-bg); color: var(--red); }
.s-conditional { background: var(--amber-bg); color: var(--amber); } .s-assigned { background: color-mix(in srgb, var(--c, var(--accent)) 22%, transparent); color: var(--text); border-left: 3px solid var(--c, var(--accent)); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.legend-ev { font-size: .72rem; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (max-width: 560px) { .cal-day { min-height: 54px; } .cal-day .cal-slot { font-size: 0; height: 6px; padding: 0; } .cal-week .cal-day .cal-slot { font-size: .6rem; height: auto; padding: 1px 3px; } }
.slots .slot-row { margin-bottom: .4rem; }
.repeat summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.repeat[open] { display: flex; flex-direction: column; gap: .6rem; }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: .8rem; align-items: center; }
.day-chip { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: .4rem .3rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .8rem; }
.day-chip small { color: var(--muted); text-transform: uppercase; font-size: .66rem; } .day-chip span { font-size: .7rem; color: var(--muted); }
.day-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); } .day-chip.active small, .day-chip.active span { color: #fff; }
.day-chip.setup { border-style: dashed; } .day-chip:hover { text-decoration: none; }
.day-strip .inline input { width: auto; }

/* ----- Planning ----- */
.tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tabs a { padding: .55rem .9rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--accent); border-color: var(--accent); } .tabs a:hover { text-decoration: none; color: var(--text); }
.planning-sector { border-left: 5px solid var(--c); }
.planning-sector h3 { display: flex; align-items: center; gap: .5rem; }
.shift-row { display: grid; gap: .5rem; padding: .7rem; border-radius: 12px; border: 1px dashed transparent; background: var(--surface-2); margin-bottom: .5rem; }
@media (min-width: 900px) { .shift-row { grid-template-columns: 300px 1fr; align-items: center; } }
.shift-row.understaffed { box-shadow: inset 3px 0 0 var(--red); }
.shift-row.drop-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface-2)); }
.shift-info { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.timebar { flex-basis: 100%; position: relative; height: 5px; background: var(--border); border-radius: 3px; }
.timebar span { position: absolute; top: 0; bottom: 0; background: var(--c); border-radius: 3px; }
.shift-people { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.person-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .25rem .2rem .2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; cursor: grab; }
.person-chip a { color: var(--text); }
.person-chip.proposed { border-style: dashed; border-color: var(--purple); background: var(--purple-bg); }
.person-chip.att-present { border-color: var(--green); } .person-chip.att-absent { border-color: var(--red); opacity: .7; } .person-chip.att-late { border-color: var(--amber); }
.person-chip.dragging { opacity: .4; }
.chip-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .25rem; }
.chip-x:hover { color: var(--red); }
.slot-empty { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed var(--border); }
.add-person { min-height: 30px; }
.matrix th, .matrix td { text-align: center; } .matrix th:first-child { text-align: left; white-space: nowrap; }
.matrix th.setup { opacity: .6; }
.cov { display: inline-block; min-width: 54px; padding: .25rem .4rem; border-radius: 8px; font-weight: 600; font-size: .82rem; color: var(--text); }
.cov-ok { background: var(--green-bg); } .cov-mid { background: var(--amber-bg); } .cov-low { background: var(--red-bg); }
.cov small { color: var(--purple); }
.dialog { border: 0; border-radius: 16px; padding: 1rem; width: min(560px, 94vw); max-height: 86vh; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(10, 14, 30, .5); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.dialog-head h2 { margin: 0; }
.candidate-list { margin: .6rem 0; max-height: 52vh; overflow-y: auto; }
.candidate-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 10px; border: 1px solid var(--border); margin-bottom: .35rem; cursor: pointer; border-left: 4px solid var(--green); }
.candidate-list li:hover { background: var(--surface-2); }
.candidate-list li.muted { border-left-color: var(--border); cursor: default; }
.candidate-list li.soft { border-left-color: var(--amber); } .candidate-list li.hard { border-left-color: var(--red); cursor: not-allowed; opacity: .65; }
.candidate-list li div { flex: 1; } .candidate-list small { display: block; }
.issues { padding-left: 1.1rem; color: var(--amber); }

/* ----- Badge ----- */
.badge-card { max-width: 340px; margin: 0 auto; background: #fff; color: #111; border-radius: 18px; overflow: hidden; text-align: center; box-shadow: var(--shadow); border: 1px solid #ddd; padding-bottom: 1rem; }
.badge-top { background: var(--primary); color: #fff; padding: .7rem; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; }
.badge-card h2 { margin: .5rem 0 .2rem; font-size: 1.5rem; } .badge-card h2 small { font-size: 1rem; font-weight: 500; }
.badge-role { display: inline-block; background: var(--accent); color: #fff; border-radius: 999px; padding: .2rem .8rem; font-weight: 600; font-size: .8rem; margin-bottom: .6rem; }
.badge-card .qr svg { width: 190px; height: 190px; }
.badge-card p { padding: 0 1rem; }
.badge-sheet { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.small-badge { max-width: none; } .small-badge .qr svg { width: 130px; height: 130px; }
.scan { text-align: center; max-width: 520px; margin: 0 auto; }
.scan-mission { border-left: 5px solid var(--c); background: var(--surface-2); border-radius: 12px; padding: .8rem; margin-top: .8rem; text-align: left; display: grid; gap: .4rem; }

/* ----- Authentification ----- */
.auth-page { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent), linear-gradient(160deg, var(--primary), #0b1020); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.auth-hero { text-align: center; color: #fff; margin-bottom: 1.2rem; }
.auth-hero h1 { margin: .5rem 0 0; font-size: 1.6rem; } .auth-hero p { color: #c9cfe6; margin: 0; }
.auth-logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 18px; padding: 6px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border-radius: 18px; padding: 1.5rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.auth-card h2 { margin-bottom: 1rem; }
.auth-links { text-align: center; margin: 1rem 0 0; font-size: .9rem; }
.auth-alt { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: grid; gap: .5rem; text-align: center; color: var(--muted); font-size: .9rem; }
.auth-foot { margin-top: 1rem; color: #aab3d1; font-size: .8rem; } .auth-foot a { color: #dfe4f5; }
.theme-float { position: fixed; top: 1rem; right: 1rem; color: #fff; }

/* ----- Rapports & impression ----- */
.report-page { background: #fff; color: #111; padding: 1.5rem; }
.report-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; border-bottom: 3px solid var(--primary); padding-bottom: .8rem; }
.report-head h1 { margin: 0; } .report-head p { margin: 0; color: #555; } .report-head .btn { margin-left: auto; }
.report-logo { width: 64px; height: 64px; object-fit: contain; }
.report-table th { background: #1e2a4a; color: #fff; } .report-table td, .report-table th { border: 1px solid #ddd; color: #111; }
@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .alert, .page-head .btn { display: none !important; }
  .is-staff .shell { margin: 0; } body { background: #fff; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; } .badge-card { break-inside: avoid; box-shadow: none; }
  .badge-top, .badge-role, .report-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ----- Créneaux structurés (fiche secteur) ----- */
.card-summary { cursor: pointer; list-style: none; }
.card-summary::-webkit-details-marker { display: none; }
.card-summary h2 { margin: 0; display: inline; }
details[open] > .card-summary { margin-bottom: 1rem; }
.add-shift-box, .bulk-box { margin: .4rem 0 1rem; }
.add-shift-box > summary, .bulk-box > summary { list-style: none; cursor: pointer; display: inline-flex; }
.add-shift-box[open] > form { margin-top: .8rem; padding: 1rem; border: 1px dashed var(--border); border-radius: 12px; }
.bulk-box[open] > div { margin-top: .6rem; padding: .8rem; border: 1px solid var(--border); border-radius: 12px; }
.bulk-box fieldset { display: flex; flex-direction: column; gap: .5rem; }
.shift-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.shift-list > li { border-left: 4px solid var(--c); background: var(--surface-2); border-radius: 10px; padding: .55rem .7rem; margin-bottom: .45rem; }
.shift-list > li.cancelled { opacity: .55; }
.shift-line { display: grid; grid-template-columns: auto 105px 1fr auto auto; gap: .6rem; align-items: center; }
.shift-time strong { display: block; } .shift-time small { margin-right: .3rem; }
.shift-cov { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.shift-line .actions { display: flex; gap: .1rem; }
.shift-edit { margin-top: .5rem; } .shift-edit > summary { cursor: pointer; }
.shift-edit[open] { display: flex; flex-direction: column; gap: .8rem; padding-top: .4rem; }
.danger-box { border: 1px solid color-mix(in srgb, var(--red) 35%, var(--border)); border-radius: 10px; padding: .7rem; }
@media (max-width: 720px) { .shift-line { grid-template-columns: auto 1fr; } .shift-cov, .shift-line .actions { grid-column: 2; justify-content: flex-start; } .shift-main { grid-column: 1 / -1; } }
.shift-cal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.shift-cal-day { background: var(--surface-2); border-radius: 10px; padding: .4rem; min-height: 120px; }
.shift-cal-day.setup { background: transparent; border: 1px dashed var(--border); }
.shift-cal-head { display: block; font-weight: 600; font-size: .8rem; margin-bottom: .35rem; color: var(--text); }
.shift-cal-item { display: block; border-left: 3px solid var(--c); background: var(--surface); border-radius: 6px; padding: .25rem .4rem; margin-bottom: .3rem; font-size: .75rem; color: var(--text); }
.shift-cal-item span, .shift-cal-item small { display: block; } .shift-cal-item.missing small { color: var(--red); font-weight: 600; }
.shift-cal-item.cancelled { opacity: .45; text-decoration: line-through; }

/* ----- Grille horaire du planning ----- */
.toolbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin-bottom: .6rem; }
.toolbar-row .inline-filters { margin: 0; align-items: center; }
.legend.small { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .8rem; }
.tl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .4rem .6rem .8rem; margin-bottom: 1rem; overflow-x: auto; }
.tl-head, .tl-row { display: grid; grid-template-columns: 230px minmax(640px, 1fr); gap: .5rem; align-items: stretch; }
.tl-head { position: sticky; top: 0; background: var(--surface); z-index: 2; height: 26px; }
.tl-scale { position: relative; }
.tl-scale span { position: absolute; transform: translateX(-50%); font-size: .7rem; color: var(--muted); top: 4px; }
.tl-sector { font-weight: 700; padding: .6rem 0 .2rem; display: flex; gap: .4rem; align-items: center; border-top: 1px solid var(--border); margin-top: .3rem; }
.tl-row { min-height: 44px; border-radius: 8px; }
.tl-row.drop-over { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.tl-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; padding: .3rem .2rem; border-radius: 8px; }
.tl-label:hover { background: var(--surface-2); }
.tl-label small { color: var(--muted); font-size: .75rem; }
.tl-track { position: relative; background: var(--surface-2); border-radius: 8px; min-height: 40px; }
.tl-track > i { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--border); }
.tl-block { position: absolute; top: 3px; bottom: 3px; min-height: 34px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; padding: 3px 4px; border-radius: 7px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-left: 4px solid var(--c); cursor: pointer; overflow: hidden; }
.tl-block:hover, .tl-block:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.tl-block.tl-low { background-image: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--red) 10%, transparent) 8px 16px); }
.tl-block .person-chip { padding: .05rem .4rem; font-size: .72rem; }
.tl-block .slot-empty { width: 18px; height: 18px; }
.cov-ok { background: var(--green-bg); } .cov-mid { background: var(--amber-bg); } .cov-low { background: var(--red-bg); }
.tl-label .cov { min-width: 0; font-size: .72rem; padding: .05rem .35rem; }
.person-chip.st-draft { border-style: dashed; border-color: var(--muted); }
.person-chip.st-proposed { border-style: dashed; border-color: var(--purple); background: var(--purple-bg); }
.person-chip.st-published { border-color: color-mix(in srgb, var(--green) 50%, var(--border)); }
.person-chip.declined { border-color: var(--red); background: var(--red-bg); text-decoration: line-through; }
.dialog-wide { width: min(860px, 96vw); }
.sp-stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: .6rem; }
.sp-stats div { text-align: center; } .sp-stats strong { display: block; font-size: 1.4rem; } .sp-stats small { color: var(--muted); }
.sp-assigned { list-style: none; padding: 0; margin: 0 0 1rem; }
.sp-assigned li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.sp-assigned select { width: auto; min-height: 32px; padding: .2rem .4rem; font-size: .8rem; }
.seg-wrap { flex-wrap: wrap; margin: .4rem 0; }
.seg button { background: none; border: 0; font: inherit; padding: .35rem .8rem; border-radius: 8px; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.w-search { max-width: 260px; }
.candidate-list li .btn { flex-shrink: 0; }
.link-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; border-left: 4px solid var(--c); background: var(--surface-2); border-radius: 10px; margin-bottom: .4rem; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.link-row small { display: block; }
@media (max-width: 700px) { .tl-head, .tl-row { grid-template-columns: 150px minmax(520px, 1fr); } }

/* ===== Phase 4 : grille par secteur, opérations en direct, contreparties ===== */
.w-full { width: 100%; } .w-sm { width: 9rem; } .num { text-align: right; font-variant-numeric: tabular-nums; }
.stats-3 { } @media (min-width: 900px) { .stats-grid.stats-3 { grid-template-columns: repeat(3, 1fr); } }
.badge-accent { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.seg-sm button { padding: .25rem .6rem; font-size: .8rem; }
.input-xl { font-size: 1.6rem; letter-spacing: .15em; text-transform: uppercase; font-family: ui-monospace, monospace; padding: .7rem 1rem; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
a.chip:hover { text-decoration: none; }
.tel { display: inline-flex; align-items: center; gap: .25rem; }

/* Grille ressources × jours */
.pg { display: grid; gap: 1rem; }
@media (min-width: 1100px) { .pg { grid-template-columns: 250px minmax(0, 1fr); align-items: start; } .pg-side { position: sticky; top: 1rem; } }
.pg-side { display: grid; gap: .6rem; }
.pg-sectors { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 60vh; overflow: auto; }
.pg-sectors a { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: .85rem; font-weight: 600; background: var(--surface); }
.pg-sectors a:hover { text-decoration: none; border-color: var(--c); }
.pg-sectors a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-sectors a.active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.pg-sectors .count, .ops-sector .count { font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); white-space: nowrap; }
.pg-main { min-width: 0; display: grid; gap: .8rem; }
.pg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; border-left: 6px solid var(--c); }
.pg-head h2 { margin: 0; }
.pg-kpis { display: flex; gap: 1.5rem; }
.pg-kpis small { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.pg-kpis strong { font-size: 1.4rem; }
.pg-scroll { overflow: auto; max-height: 75vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pg-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; }
.pg-table th, .pg-table td { border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); vertical-align: top; }
.pg-table thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); padding: .6rem; font-size: .8rem; text-align: left; min-width: 150px; }
.pg-table thead th a { display: block; color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .25rem; }
.pg-table thead th.setup { background: var(--surface-2); } .pg-table thead th.today { box-shadow: inset 0 -3px 0 var(--accent); }
.pg-table .cov { min-width: 0; font-size: .72rem; }
.pg-res { position: sticky; left: 0; z-index: 2; background: var(--surface); width: 270px; min-width: 270px; max-width: 270px; text-align: left; padding: .6rem; font-weight: 400; }
.pg-table thead .pg-res { z-index: 4; }
.pg-person { display: flex; gap: .6rem; } .pg-person > div { min-width: 0; display: grid; gap: .15rem; }
.pg-person a { color: var(--text); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pg-hours { display: flex; align-items: center; gap: .4rem; }
.pg-hours .bar { flex: 1; height: 5px; border-radius: 3px; background: var(--gray-bg); overflow: hidden; }
.pg-hours .bar i { display: block; height: 100%; background: var(--green); } .pg-hours .bar i.over { background: var(--red); }
.pg-hours small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.pg-cell { min-width: 150px; padding: .4rem; height: 1px; }
.pg-cell.av-available { background: color-mix(in srgb, var(--green) 7%, transparent); }
.pg-cell.av-partial, .pg-cell.av-conditional { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 9%, transparent) 0 8px, transparent 8px 16px); }
.pg-cell.av-unavailable { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--red) 8%, transparent) 0 6px, transparent 6px 12px); }
.pg-cell.drop-over { outline: 2px dashed var(--accent); outline-offset: -3px; }
.av-key { display: inline-block; padding: .1rem .5rem; border-radius: 6px; border: 1px solid var(--border); }
.av-key.av-available { background: color-mix(in srgb, var(--green) 14%, transparent); }
.av-key.av-partial { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 22%, transparent) 0 5px, transparent 5px 10px); }
.av-key.av-unavailable { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--red) 20%, transparent) 0 4px, transparent 4px 8px); }
.pg-card { display: grid; gap: .1rem; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 10px; padding: .45rem .55rem; margin-bottom: .35rem; cursor: pointer; box-shadow: var(--shadow); position: relative; }
.legend .pg-card { display: inline-block; width: auto; margin: 0; padding: .1rem .5rem; box-shadow: none; }
.pg-card strong { font-size: .85rem; } .pg-card small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pg-card .pg-dur { position: absolute; right: .45rem; top: .45rem; text-transform: none; }
.pg-card.st-draft { border-left-color: var(--muted); border-style: dashed; border-left-style: solid; }
.pg-card.st-proposed { border-left-color: var(--purple); background: var(--purple-bg); border-style: dashed; border-left-style: solid; }
.pg-card.declined { border-left-color: var(--red); background: var(--red-bg); }
.pg-card.declined strong { text-decoration: line-through; }
.pg-card.att-present { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--green) 40%, transparent); } .pg-card.att-absent { opacity: .6; }
.pg-card.dragging { opacity: .4; }
.pg-card:focus-visible, .pg-plus:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.pg-other { display: block; font-size: .7rem; color: var(--muted); background: var(--gray-bg); border-radius: 6px; padding: .15rem .4rem; margin-bottom: .3rem; }
.pg-plus { width: 100%; min-height: 2.2rem; border: 1.5px dashed var(--border); border-radius: 10px; background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.pg-plus:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.gd-list { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.gd-list .link-row { width: 100%; }
.gd-list button[disabled] { opacity: .5; cursor: not-allowed; }

/* Opérations en direct */
.ops-logo { width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 35%, transparent); }
.live-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .65rem; font-weight: 700; letter-spacing: .08em; padding: .2rem .55rem; border-radius: 999px; background: var(--green-bg); color: var(--green); vertical-align: middle; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.live-pill.off { background: var(--gray-bg); color: var(--gray); } .live-pill.off::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } }
.stat.stat-alert { border-color: var(--amber); background: var(--amber-bg); }
.ops-grid { display: grid; gap: 1rem; }
@media (min-width: 1000px) { .ops-grid { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.ops-sectors { display: grid; gap: .35rem; }
.ops-sector { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--border); color: var(--text); font-size: .85rem; font-weight: 600; }
.ops-sector > span:first-child { display: flex; align-items: center; gap: .45rem; }
.ops-sector.active { background: var(--accent); border-color: var(--accent); color: #fff; } .ops-sector.active .count { background: rgba(255, 255, 255, .2); color: #fff; }
.ops-sector:hover { text-decoration: none; }
.ops-filters { margin: .7rem 0; }
.ops-table tr.live-missing td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.ops-table tr.live-present td:first-child, .ops-table tr.live-late td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.ops-table td { vertical-align: middle; }
.incident-list { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .6rem; }
.incident-list li { border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .35rem; }
.incident-list li.sev-critical { border-left-color: var(--red); } .incident-list li.sev-high { border-left-color: var(--amber); } .incident-list li.sev-info { border-left-color: var(--gray); }
.incident-list li.resolved { opacity: .7; }
.qr-video { margin-top: .8rem; display: grid; gap: .5rem; } .qr-video video { width: 100%; max-height: 360px; border-radius: 12px; background: #000; object-fit: cover; }

/* Contreparties */
.redeem-result { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 1.2rem; }
.redeem-result.ok { background: var(--green-bg); color: var(--green); border: 2px solid var(--green); }
.redeem-result.ko { background: var(--red-bg); color: var(--red); border: 2px solid var(--red); }
.redeem-result div div { color: var(--text); font-size: 1rem; }
.voucher-grid, .shop-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.voucher { border: 2px dashed var(--accent); border-radius: 14px; padding: .8rem; text-align: center; display: grid; gap: .4rem; justify-items: center; }
.voucher.used { border-color: var(--border); opacity: .6; }
.voucher .qr svg, .order-qr .qr svg { width: 150px; height: 150px; }
.voucher code, .order-qr code { font-size: 1rem; letter-spacing: .12em; }
.shop-item { border: 1px solid var(--border); border-radius: 14px; padding: .9rem; display: grid; gap: .4rem; align-content: start; }
.shop-item h3 { margin: 0; font-size: 1rem; }
.shop-item .price { font-weight: 800; font-size: 1.2rem; color: var(--accent); }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.order-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: .6rem; }
.order-qr { text-align: center; }
.pg-add select { max-width: 380px; flex: 1; }
.ops-grid, .pg { grid-template-columns: minmax(0, 1fr); }
.ops-grid > *, .pg > * { min-width: 0; }
@media (min-width: 1000px) { .ops-grid { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 1100px) { .pg { grid-template-columns: 250px minmax(0, 1fr); } }
@media (max-width: 700px) { .ops-head .btn-lg { padding: .55rem .9rem; font-size: .95rem; } }

/* ===== Grille planning v2 (style Agendrix) ===== */
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
.pg-title { border-left: 5px solid var(--c); padding-left: .7rem; min-width: 180px; }
.pg-title h2 { margin: 0; font-size: 1.15rem; } .pg-title small { display: block; }
.pg-nav { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-inline: auto; }
.pg-range { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; font-size: .9rem; background: var(--surface-2); }
.pg-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pg-actions .pill { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: rgba(255, 255, 255, .3); font-size: .78rem; text-align: center; }
.pg-actions button[disabled] { opacity: .5; cursor: default; }
.pg-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; font-size: .88rem; color: var(--muted); }
.pg-stats strong { color: var(--text); margin-left: .2rem; } .pg-stats .c-red strong { color: var(--red); } .pg-stats .c-green strong { color: var(--green); }
.pg-stats .pg-add { margin-left: auto; }
.pg-empty { text-align: center; padding: 1.6rem; } .pg-empty h3 { margin-top: 0; }

.pg-scroll { max-height: 78vh; background: var(--surface); box-shadow: var(--shadow); }
.pg-table { font-size: .85rem; }
.pg-table th, .pg-table td { border-color: color-mix(in srgb, var(--border) 80%, transparent); }
.pg-table thead th.pg-day { min-width: 132px; padding: .55rem .6rem .45rem; position: sticky; top: 0; }
.pg-table thead th.pg-day a { text-transform: none; letter-spacing: 0; font-size: .92rem; margin: 0; }
.pg-table thead th.pg-day a span { color: var(--muted); font-weight: 500; }
.pg-table thead th.today a { color: var(--accent); }
.pg-cov { display: block; height: 3px; border-radius: 2px; margin-bottom: .35rem; background: var(--border); }
.pg-cov.ok { background: var(--green); } .pg-cov.mid { background: var(--amber); } .pg-cov.low { background: var(--red); }
.pg-res { width: 230px; min-width: 230px; max-width: 230px; }
.pg-person { align-items: center; }
.pg-person strong { font-size: .88rem; }
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pg-h { font-size: .72rem; font-weight: 700; padding: .05rem .4rem; border-radius: 6px; background: var(--green-bg); color: var(--green); }
.pg-h.over { background: var(--red-bg); color: var(--red); }
.pg-meta .badge { font-size: .65rem; padding: .05rem .35rem; }
.pg-tel { color: var(--muted); display: inline-flex; } .pg-tel:hover { color: var(--accent); }
.pg-cell { min-width: 132px; padding: .3rem; position: relative; }
.pg-table tbody tr:hover .pg-res, .pg-table tbody tr:hover .pg-cell:not(.av-available):not(.av-partial):not(.av-unavailable):not(.av-conditional) { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }
.pg-card { border: 1px solid var(--border); border-left: 4px solid var(--c, var(--green)); border-radius: 8px; padding: .35rem .45rem; margin-bottom: .3rem; box-shadow: 0 1px 2px rgba(20, 24, 45, .08); gap: 0; }
.pg-card strong { font-size: .82rem; font-variant-numeric: tabular-nums; }
.pg-card small { font-size: .7rem; text-transform: none; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-foot { display: flex; gap: .3rem; align-items: center; font-size: .66rem; color: var(--muted); }
.pg-tag { padding: 0 .3rem; border-radius: 4px; background: var(--gray-bg); text-transform: uppercase; letter-spacing: .03em; }
.pg-tag.ok { background: var(--green-bg); color: var(--green); }
.pg-card .pg-dur { display: none; }
.pg-card.st-draft { border-style: dashed; border-left-style: solid; background: var(--surface-2); }
.pg-card.st-proposed { background: var(--purple-bg); border-style: dashed; border-left-style: solid; border-left-color: var(--purple); }
.pg-card.declined { background: var(--red-bg); border-left-color: var(--red); }
.pg-card:hover { box-shadow: 0 3px 10px rgba(20, 24, 45, .15); }
.pg-card[draggable="true"] { cursor: grab; }
.pg-open-row th, .pg-open-row td { background: color-mix(in srgb, var(--amber) 6%, var(--surface)); }
.pg-open-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--amber-bg); color: var(--amber); flex-shrink: 0; }
.pg-open-row small { display: block; font-size: .7rem; }
.pg-card.pg-open { border-style: dashed; border-left-style: solid; background: var(--surface); }
.pg-missing { font-size: .66rem; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .03em; }
.pg-card.pg-open.under .pg-missing { color: var(--red); }
.pg-plus { min-height: 1.8rem; display: grid; place-items: center; }
@media (hover: hover) {
  .pg-plus { opacity: 0; transition: opacity .12s; }
  .pg-cell:hover .pg-plus, .pg-plus:focus-visible { opacity: 1; }
  .pg-cell:not(:has(.pg-card)):not(:has(.pg-other)) .pg-plus { min-height: 3.2rem; }
}
.pg-table.is-dragging .pg-plus { opacity: 0 !important; }
.pg-cell.drop-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)) !important; }
.pg-total { position: sticky; right: 0; z-index: 2; background: var(--surface); min-width: 78px; text-align: right; padding: .5rem .6rem; vertical-align: middle; border-left: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.pg-table thead .pg-total { z-index: 4; top: 0; }
.pg-table tfoot td, .pg-table tfoot th { position: sticky; bottom: 0; background: var(--surface-2); font-size: .78rem; padding: .45rem .6rem; z-index: 2; }
.pg-table tfoot tr:first-child td, .pg-table tfoot tr:first-child th { bottom: 2.1rem; }
.pg-table tfoot .pg-res { z-index: 3; font-weight: 600; }
.pg-obj { display: inline-block; padding: .1rem .45rem; border-radius: 6px; font-weight: 700; color: #fff; }
.pg-obj small { font-weight: 500; opacity: .9; }
.pg-obj.ok { background: var(--green); } .pg-obj.mid { background: var(--amber); } .pg-obj.low { background: var(--red); }
.legend .pg-card { border-left-color: var(--green); }
.legend .pg-card.pg-open { border-left-color: var(--amber); }
.pg-open-sum { display: none; font-size: .75rem; font-weight: 600; color: var(--amber); }
.pg-open-row.collapsed .pg-open-sum { display: block; }
.pg-open-row.collapsed .pg-card, .pg-open-row.collapsed .pg-plus { display: none; }
.pg-open-row [data-toggle-open] { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: .72rem; }
.gd-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: .8rem 0 .3rem; }
[data-gd-new] { border-top: 1px solid var(--border); margin-top: .6rem; }
.side-nav a.nav-primary { margin-top: .4rem; background: rgba(255, 255, 255, .1); font-weight: 700; }
.side-nav a.nav-primary.active { background: var(--accent); }
.nav-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: "▸"; font-size: .7rem; } .nav-group[open] > summary::after { content: "▾"; }
.nav-group { display: flex; flex-direction: column; }
.gd-list { max-height: 38vh; overflow-y: auto; }
[data-gd-new] { border-top: 0; margin-top: 0; border-bottom: 1px solid var(--border); padding-bottom: .4rem; }
.tabs { overflow: visible; }
.tabs-more summary { padding: .55rem .9rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-more summary.active { color: var(--accent); border-color: var(--accent); }
.tabs-more .menu { left: 0; right: auto; }
/* Places libres (bénévole) */
.slot-list { display: grid; gap: .5rem; }
.slot { flex-direction: row; align-items: center; gap: .8rem; padding: .7rem .8rem; border: 1px solid var(--border); border-left: 5px solid var(--c); border-radius: 12px; background: var(--surface); cursor: pointer; font-weight: 400; }
.slot:has(input:checked) { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: var(--accent); }
.slot.replacement { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 30%, transparent); }
.slot-time { text-align: center; min-width: 52px; } .slot-time strong { display: block; font-size: 1.05rem; } .slot-time small { color: var(--muted); }
.slot-body { flex: 1; display: grid; gap: .25rem; }
.pg-req { font-size: .66rem; font-weight: 700; color: var(--purple); }
/* Absences */
.abs-grid { display: grid; gap: 1rem; } @media (min-width: 1100px) { .abs-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.abs-grid > .card { margin: 0; min-width: 0; }
.abs-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; }
.abs-day { flex-direction: row; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 10px; padding: .45rem .6rem; cursor: pointer; font-weight: 400; }
.abs-day:has(input:checked) { border-color: var(--red); background: var(--red-bg); }
.abs-day span { display: grid; } .abs-day small { color: var(--muted); font-size: .7rem; }
.abs-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.abs-list li { border: 1px solid var(--border); border-left: 5px solid var(--blue); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .4rem; }
.abs-list li.prio-high { border-left-color: var(--red); } .abs-list li.prio-low { border-left-color: var(--gray); }
.abs-list li.closed { opacity: .65; }
.abs-list a { color: var(--text); }
.abs-detail { background: var(--surface-2); border-radius: 8px; padding: .5rem .7rem; margin: 0; }
.pg-absence { display: block; background: #334155; color: #fff; border-radius: 8px; padding: .4rem .5rem; font-size: .75rem; font-weight: 700; margin-bottom: .3rem; }
.pg-absence small { display: block; font-weight: 400; opacity: .8; }
.scan-alert { background: var(--red); color: #fff; border-radius: 12px; padding: .8rem; font-weight: 700; margin-top: .8rem; }
.scan-alert.soft { background: var(--amber-bg); color: var(--amber); }
.abs-self summary { cursor: pointer; list-style: none; } .abs-self summary::-webkit-details-marker { display: none; } .abs-self[open] summary { margin-bottom: .8rem; }
.install-box { display: flex; align-items: center; gap: .9rem; } .install-box > div { flex: 1; } .install-box img { border-radius: 12px; } .install-box p { margin: .2rem 0 0; }
/* Apéros & séances */
.brief-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 1rem 0; }
.brief-grid > .card { margin: 0; }
.brief-card { border-left: 6px solid var(--c); display: grid; gap: .7rem; align-content: start; }
.brief-card h2 { margin: 0; font-size: 1.15rem; }
.brief-kind { display: inline-flex; align-items: center; gap: .3rem; justify-self: start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.brief-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; color: var(--muted); }
.brief-meta li { display: flex; gap: .45rem; align-items: center; } .brief-meta .icon { color: var(--accent); }
.brief-progress { display: grid; gap: .3rem; }
.brief-list { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 65vh; overflow: auto; }
.brief-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .3rem; border-bottom: 1px solid var(--border); }
.brief-list li.is-present { background: color-mix(in srgb, var(--green) 7%, transparent); }
.team-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.team-rank li { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 10px; }
.team-rank .grow { display: grid; gap: .25rem; } .team-rank .progress span { background: var(--c); }
.rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gray-bg); }
.rank-1 { background: #fcd34d; color: #78350f; } .rank-2 { background: #e2e8f0; color: #334155; } .rank-3 { background: #fdba74; color: #7c2d12; }
.my-briefings { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.my-briefings li { border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 10px; padding: .6rem .7rem; }
.map-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: .8rem; }
.map-grid label { border: 1px solid var(--border); border-radius: 10px; padding: .5rem; gap: .2rem; }
tr.imp-error td { background: color-mix(in srgb, var(--red) 6%, transparent); }
tr.imp-duplicate td { background: color-mix(in srgb, var(--amber) 6%, transparent); }
/* Zones d'accès */
.zone-list { display: grid; gap: .5rem; } .zone-row { display: flex; align-items: center; gap: .6rem; padding: .5rem; border: 1px solid var(--border); border-radius: 10px; }
.zone-tag { display: inline-grid; place-items: center; min-width: 2.4rem; padding: .2rem .45rem; border-radius: 7px; background: var(--c); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em; }
.badge-zones { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: .2rem 1rem .6rem; }
.badge-zones .zone-tag { font-size: 1rem; min-width: 3rem; padding: .35rem .55rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.badge-meals { margin: .4rem 1rem; padding: .6rem; border-radius: 12px; background: #fef3c7; color: #78350f; text-align: left; font-size: .88rem; }
.badge-meals strong { font-size: 1.05rem; }
.badge-meals ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.access-result { border-radius: 14px; padding: 1rem; margin-top: .8rem; color: #fff; font-weight: 800; font-size: 1.3rem; }
.access-result.ok { background: var(--green); } .access-result.ko { background: var(--red); }
.access-result small { display: block; font-weight: 500; font-size: .9rem; }
/* Accueil bénévole */
.next-hero { border-left: 6px solid var(--c); display: grid; gap: .4rem; }
.next-hero h2 { margin: .1rem 0; font-size: 1.3rem; } .next-hero h2 small { font-size: .85rem; font-weight: 500; }
.next-when { display: flex; align-items: center; gap: .4rem; margin: 0; flex-wrap: wrap; } .next-when .icon { color: var(--accent); }
.next-notes { background: var(--surface-2); border-radius: 8px; padding: .5rem .6rem; margin: 0; }
.next-meal { background: var(--amber-bg); color: var(--amber); border-radius: 8px; padding: .45rem .6rem; margin: .2rem 0 0; font-weight: 600; font-size: .88rem; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.quick-actions a { display: grid; justify-items: center; gap: .3rem; padding: .7rem .3rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .78rem; font-weight: 600; text-align: center; box-shadow: var(--shadow); }
.quick-actions a .icon { color: var(--accent); } .quick-actions a:hover { text-decoration: none; border-color: var(--accent); }
.upper { text-transform: uppercase; letter-spacing: .06em; }
/* Tableau de bord du responsable */
.todo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 1rem; }
.todo { display: grid; gap: .1rem; padding: .8rem .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--green); color: var(--text); box-shadow: var(--shadow); }
.todo strong { font-size: 1.6rem; line-height: 1.1; } .todo span { font-size: .82rem; color: var(--muted); }
.todo.warn { border-left-color: var(--amber); } .todo.alert { border-left-color: var(--red); background: color-mix(in srgb, var(--red) 5%, var(--surface)); }
.todo:hover { text-decoration: none; border-color: var(--accent); }
.sector-live { display: grid; gap: .5rem; }
.sector-live-row { display: grid; gap: .2rem; padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--border); border-left: 5px solid var(--c); color: var(--text); }
.sector-live-row:hover { text-decoration: none; border-color: var(--accent); } .sector-live-row .progress span { background: var(--c); }
.team-list { list-style: none; margin: .6rem 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.team-list li { display: flex; align-items: center; gap: .5rem; padding: .45rem .2rem; border-bottom: 1px solid var(--border); }
.team-list a { color: var(--text); } .d-block { display: block; }
.icon-btn.wa { font-size: .7rem; font-weight: 800; color: #16a34a; }
/* Grille : ligne « À pourvoir » compacte et affichage mobile */
.pg-open-row .pg-card.pg-open { padding: .25rem .4rem; margin-bottom: .2rem; }
.pg-open-row .pg-card.pg-open small { display: none; }
.pg-open-row .pg-card.pg-open strong { font-size: .76rem; }
.pg-open-row .pg-card.pg-open .pg-missing { font-size: .62rem; }
@media (max-width: 700px) {
  .pg-res { width: 120px; min-width: 120px; max-width: 120px; padding: .4rem; }
  .pg-person .avatar, .pg-meta .badge, .pg-open-icon, .pg-open-row small.muted { display: none; }
  .pg-person strong { font-size: .78rem; }
  .pg-table thead th.pg-day, .pg-cell { min-width: 112px; }
  .pg-total { min-width: 54px; padding: .3rem; }
  .pg-scroll { max-height: 70vh; }
  .pg-side { display: none; }
  .pg-mobile-sector { display: block !important; }
}
.pg-mobile-sector { display: none; }
/* Consignes & briefing */
.notices-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-left: 6px solid var(--c); }
.notices-head h2 { margin: 0 .5rem 0 0; }
.notices-filters { flex-direction: column; align-items: stretch; } .notices-filters .chips { gap: .3rem; }
.notices-pinned { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 30%, transparent); align-items: center; }
.notice-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); margin-bottom: 1rem; }
.notice-grid > .card { margin: 0; }
.notice { display: grid; gap: .5rem; align-content: start; border-left: 5px solid var(--gray); }
.notice.lvl-critical { border-left-color: var(--red); } .notice.lvl-important { border-left-color: var(--amber); }
.notice.pinned { background: color-mix(in srgb, var(--amber) 5%, var(--surface)); }
.notice h3 { margin: .2rem 0 0; font-size: 1.05rem; } .notice p { margin: 0; }
.notice-foot { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: .5rem; }
.inline-form { display: inline; }
.print-notice { border-left: 5px solid #94a3b8; padding: .2rem .8rem; margin: 0 0 .8rem; break-inside: avoid; }
.print-notice.lvl-critical { border-left-color: #dc2626; } .print-notice.lvl-important { border-left-color: #d97706; }
.print-notice h2 { font-size: 1.05rem; margin: 0 0 .3rem; } .print-notice h2 small { font-weight: 400; color: #555; font-size: .8rem; }
@media (max-width: 420px) { .notice-grid { grid-template-columns: 1fr; } }
.quick-actions { grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); }
.notices-filters .grow { flex: none; }

/* Remplacements bouclés (correctif 13) */
.list-compact li.repl-item { flex-wrap: wrap; }
.repl-form { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.repl-form select { flex: 1 1 14rem; min-width: 0; }
.repl-form details.inline { flex-basis: 100%; }
.repl-form details.inline[open] { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding-top: .3rem; }
.repl-form details.inline input[name=reason] { flex: 1 1 12rem; min-width: 0; }

/* Cahier de passation */
.log-list { list-style: none; margin: 0; padding: 0; }
.log-entry { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.log-entry:last-child { border-bottom: 0; }
.log-entry p { margin: 0 0 .2rem; white-space: normal; overflow-wrap: anywhere; }
.log-entry.done p { text-decoration: line-through; color: var(--muted); }
.log-entry .grow { min-width: 0; }
.chips label.chip { cursor: pointer; }
.chips label.chip input { margin: 0 .2rem 0 0; }

/* Retours des bénévoles */
.fb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .8rem; margin-bottom: 1rem; }
.fb-stat { display: flex; flex-direction: column; gap: .15rem; margin: 0; }
.fb-stat strong { font-size: 1.5rem; }
.fb-sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .3rem; }
.feedback-card .stars { display: flex; gap: .3rem; flex-wrap: wrap; }
.feedback-card .stars label { border: 1px solid var(--border); border-radius: 8px; padding: .35rem .6rem; cursor: pointer; }
.feedback-card .stars label:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.feedback-card .stars input { position: absolute; opacity: 0; pointer-events: none; }
.feedback-card fieldset { border: 0; padding: 0; margin: 0 0 .6rem; }
.feedback-card legend { font-weight: 600; margin-bottom: .3rem; }
.quick-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.quick-actions a { padding: .6rem .15rem; font-size: .72rem; overflow-wrap: anywhere; }
.team-list li > a.row { justify-content: flex-start; min-width: 0; }

/* Copier / coller / supprimer rapidement les créneaux (correctif 14) */
.shift-cal-headrow { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin-bottom: .35rem; }
.shift-cal-headrow .shift-cal-head { margin: 0; }
.shift-cal-tools { display: inline-flex; gap: .2rem; align-items: center; }
.shift-cal-item { position: relative; display: block; }
.shift-cal-item > a { display: block; color: var(--text); padding-right: 1.2rem; }
.shift-cal-item > a:hover { text-decoration: none; }
.shift-cal-item .sc-check { position: absolute; top: .35rem; right: .35rem; margin: 0; }
.sc-actions { display: flex; gap: .2rem; margin-top: .25rem; opacity: .55; transition: opacity .15s; }
.shift-cal-item:hover .sc-actions, .shift-cal-item:focus-within .sc-actions { opacity: 1; }
@media (hover: none) { .sc-actions { opacity: 1; } }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 .3rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .72rem; font-weight: 700; cursor: pointer; line-height: 1; }
.mini-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.mini-btn.danger:hover { border-color: var(--red); color: var(--red); }
.mini-check { display: inline-flex; align-items: center; } .mini-check input { margin: 0; }
.paste-form { margin-top: .3rem; } .paste-btn { width: 100%; justify-content: center; border-style: dashed; }
.clip-src { outline: 2px dashed var(--accent); outline-offset: 1px; }
.clip-bar { position: sticky; top: .5rem; z-index: 5; }
.shift-line .actions { display: flex; gap: .25rem; align-items: center; }
.sc-actions form { display: contents; }
.sc-actions { flex-wrap: wrap; }
.sel-bar { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); z-index: 40; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.sel-bar[hidden] { display: none; }
.sel-bar input[type=date] { min-width: 0; }
.shift-line .actions form { display: contents; }
@media (max-width: 700px) { .sel-bar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); } }
.sel-bar label { display: flex; flex-direction: row; align-items: center; gap: .4rem; margin: 0; font-weight: 600; font-size: .85rem; }
.sel-bar input[type=date] { width: auto; padding: .3rem .5rem; }
@media (min-width: 1000px) { .sel-bar { left: calc(50% + var(--sidebar-w) / 2); max-width: calc(100vw - var(--sidebar-w) - 2rem); } }

/* Grille horaire : étirer / déplacer les créneaux (correctif 15) */
.tl-block[data-tl-shift] { cursor: grab; }
.tl-block[data-tl-shift] .person-chip { cursor: grab; }
.tl-handle { position: absolute; top: -1px; bottom: -1px; width: 10px; z-index: 2; cursor: ew-resize; touch-action: none; }
.tl-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 4px; height: 18px; transform: translate(-50%, -50%); border-radius: 2px; background: var(--c); opacity: 0; transition: opacity .15s; }
.tl-handle-start { left: 0; } .tl-handle-end { right: 0; }
.tl-block:hover .tl-handle::after, .tl-block:focus-visible .tl-handle::after, .tl-dragging .tl-handle::after { opacity: .9; }
@media (hover: none) { .tl-handle { width: 20px; } .tl-handle::after { opacity: .7; } }
.tl-time { position: absolute; bottom: 2px; right: 12px; padding: 1px 6px; border-radius: 6px; background: var(--text); color: var(--surface); font-size: .7rem; font-weight: 700; white-space: nowrap; pointer-events: none; display: none; z-index: 3; }
.tl-dragging { cursor: grabbing; box-shadow: 0 0 0 2px var(--accent), 0 6px 18px rgba(0,0,0,.15); z-index: 4; user-select: none; }
.tl-dragging .tl-time { display: block; }
.tl-busy { opacity: .6; pointer-events: none; }
.tl-saved { box-shadow: 0 0 0 2px var(--green); }
.tl-row { position: relative; }

/* Événements : carte par édition, ouverture des inscriptions guidée (correctif 15) */
.event-card { display: grid; gap: 1rem; }
.event-card.current { border-left: 4px solid var(--accent); }
.event-card.archived { opacity: .75; }
.event-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.event-top h2 { margin: 0 0 .2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: 1.25rem; }
.event-top h2 a { color: var(--text); }
.event-top p { margin: 0; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.event-kpis { display: flex; flex-wrap: wrap; gap: .5rem; }
.event-kpis > * { display: flex; flex-direction: column; align-items: center; min-width: 86px; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); }
.event-kpis strong { font-size: 1.25rem; } .event-kpis small { color: var(--muted); font-size: .72rem; text-align: center; }
.event-kpis a:hover { text-decoration: none; border-color: var(--accent); }
.reg-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.reg-box.reg-draft { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.reg-box.reg-open { background: var(--green-bg); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.reg-state { display: grid; gap: .3rem; max-width: 46rem; } .reg-state p { margin: 0; }
.badge-lg { font-size: .95rem; padding: .3rem .8rem; justify-self: start; }
.reg-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-lg { padding: .75rem 1.3rem; font-size: 1rem; }
.reg-check ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.reg-check li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.reg-check li > span:nth-child(2) { flex: 1 1 12rem; min-width: 0; }
.reg-check .tick { flex: none; }
.reg-box .badge-lg { background: var(--surface); }
.reg-check .tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: .8rem; }
.reg-check li.rc-ok .tick { background: var(--green-bg); color: var(--green); }
.reg-check li.rc-todo .tick { background: var(--amber-bg); color: var(--amber); }
.reg-check li.rc-todo > span:nth-child(2) { font-weight: 600; }
.share-link { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--border); }
.share-link input { flex: 1 1 18rem; min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; }
.event-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; padding-top: .8rem; border-top: 1px solid var(--border); }
.event-actions form { margin: 0; }
.inline-panel > summary { list-style: none; } .inline-panel > summary::-webkit-details-marker { display: none; }
.inline-panel[open] { flex-basis: 100%; order: 10; }
.inline-panel[open] > summary { margin-bottom: .5rem; }
.inline-panel .inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem; padding: .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.inline-panel .inline-form p { flex-basis: 100%; margin: 0; }
.danger-panel .inline-form { border-color: color-mix(in srgb, var(--red) 40%, transparent); background: var(--red-bg); }
/* Menus « ⋯ » dans un tableau : ne plus être coupés par le cadre */
.table-wrap:has(details.dropdown[open]), .card:has(> .table-wrap details.dropdown[open]) { overflow: visible; }

/* Création de créneaux : jours × plages (correctif 16) */
.add-shift-form { display: grid; gap: 1rem; margin-top: .8rem; }
.as-step { border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 0; min-width: 0; }
.as-step legend { font-weight: 700; padding: 0 .4rem; display: flex; align-items: center; gap: .4rem; }
.as-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .8rem; }
.as-days { display: flex; flex-wrap: wrap; gap: .4rem; }
.day-pick { display: flex; flex-direction: column; align-items: center; min-width: 62px; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; gap: 0; background: var(--surface); }
.day-pick input { position: absolute; opacity: 0; pointer-events: none; }
.day-pick small { text-transform: uppercase; font-size: .7rem; color: var(--muted); }
.day-pick.setup { border-style: dashed; }
.day-pick:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.day-pick:has(input:checked) small { color: #fff; }
.day-pick:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.as-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .6rem 0 .3rem; }
.as-quick .chip { cursor: pointer; font: inherit; font-size: .8rem; }
.as-slots { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: .3rem; }
.as-slot { display: flex; gap: .4rem; align-items: flex-end; padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.as-slot[hidden] { display: none; }
.as-slot label { margin: 0; } .as-slot input { width: 7.5rem; }
.as-submit { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.as-submit strong { font-size: 1rem; }
.as-slot input { width: 6.8rem; min-width: 0; }
@media (max-width: 600px) { .as-slot { flex: 1 1 100%; } .as-slot label { flex: 1; } .as-slot input { width: 100%; } }

/* Postes & sous-équipes (correctif 17) */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .8rem; margin: .6rem 0 1rem; }
.post-card { border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .3rem; align-content: start; background: var(--surface); }
.post-card h3 { margin: 0; font-size: 1rem; }
.post-card p { margin: 0; }
.post-missions { margin: .1rem 0; padding-left: 1.1rem; font-size: .85rem; }
.post-edit[open] { border-top: 1px dashed var(--border); padding-top: .5rem; }
.as-posts { display: grid; gap: .3rem; margin-bottom: .7rem; padding: .6rem .7rem; border-radius: 10px; background: var(--surface-2); }
.add-post > summary { list-style: none; } .add-post > summary::-webkit-details-marker { display: none; }
.add-post[open] > summary { margin-bottom: .6rem; }
.sector-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; margin: .6rem 0; }
.sector-lists h3 { margin: 0 0 .3rem; }
.sector-lists ul { margin: 0; padding-left: 1.1rem; }
.post-list { display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.post-list .post-card { border-left-color: var(--c); }
.day-group { border: 1px solid var(--border); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .4rem; }
.day-group > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.day-group[open] > summary { margin-bottom: .3rem; }

/* Audit mobile A→Z (correctif 18) */
/* Onglets : sur téléphone ils passent à la ligne au lieu d'être coupés hors de l'écran */
.tabs { flex-wrap: wrap; row-gap: 0; }
@media (max-width: 700px) { .tabs a, .tabs-more summary { padding: .5rem .65rem; } }
/* Cibles tactiles : au moins 40 px au doigt (recommandation WCAG 2.5.8 / Apple 44 px) */
@media (pointer: coarse) {
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
  .btn-sm, .icon-btn, .mini-btn { min-height: 40px; min-width: 40px; }
  .back, .card-head a.small, a.link, .link-row, details > summary { min-height: 40px; display: inline-flex; align-items: center; }
  .tabs a, .tabs-more summary { min-height: 44px; display: inline-flex; align-items: center; }
  .chip, .chip-check span { min-height: 36px; display: inline-flex; align-items: center; }
  .pg-plus { min-height: 32px; }
}

/* Sécurité des bénévoles (correctif 18) */
.emergency-card { border-left: 4px solid var(--red); }
.emergency-card h2 { color: var(--red); }
.emergency-official { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .4rem 0 .6rem; }
.emergency-official a { display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; border-radius: 10px; background: var(--red-bg); color: var(--red); text-decoration: none; min-height: 56px; justify-content: center; }
.emergency-official strong { font-size: 1.25rem; line-height: 1.1; }
.emergency-official span { font-size: .68rem; text-align: center; color: var(--text); }
.emergency-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .35rem; }
.emergency-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-block { width: 100%; justify-content: center; }
.report-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .5rem; }
.report-kinds label { border: 1px solid var(--border); border-radius: 12px; padding: .7rem; cursor: pointer; display: flex; flex-direction: column; gap: .2rem; }
.report-kinds label:has(input:checked) { border-color: var(--red); background: var(--red-bg); }
.report-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.report-kinds label:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--accent); }
.quick-actions a.qa-alert .icon { color: var(--red); }
.quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .quick-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sos-banner { display: flex; gap: .5rem; align-items: center; text-decoration: none; animation: sosPulse 2s ease-in-out infinite; }
@keyframes sosPulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .sos-banner { animation: none; } }
@media (pointer: coarse) {
  .link-btn, .card-head > a, .auth-foot a, footer a, .pg-table thead th a, .notices-head a[href^="tel:"], .week-grid a { min-height: 40px; display: inline-flex; align-items: center; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
}

/* Parcours du bénévole : premiers pas (correctif 19) */
.first-steps { border-top: 4px solid var(--accent); }
.first-steps h2 { font-size: 1.35rem; margin-bottom: .2rem; }
.fs-list { list-style: none; margin: .8rem 0 .4rem; padding: 0; display: grid; gap: .2rem; }
.fs-list li { display: flex; gap: .8rem; padding: .7rem .2rem; border-bottom: 1px solid var(--border); }
.fs-list li:last-child { border-bottom: 0; }
.fs-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; border: 2px solid var(--border); color: var(--muted); background: var(--surface); }
.fs-done .fs-num { background: var(--green); border-color: var(--green); color: #fff; }
.fs-current .fs-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.fs-current { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 12px; }
.fs-body { display: grid; gap: .35rem; min-width: 0; }
.fs-body strong { font-size: 1.05rem; }
.fs-body p { margin: 0; color: var(--text); }
.fs-done .fs-body p { color: var(--muted); }
.fs-done .fs-body strong { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.fs-body .btn { justify-self: start; }
.fs-wait .fs-num::after { content: "⏳"; font-size: .9rem; }
.fs-wait .fs-num { font-size: 0; }
.essential { border-top: 4px solid var(--accent); }
.essential fieldset { border: 0; padding: 0; margin: .6rem 0 0; }
.photo-hint { color: var(--amber); display: flex; gap: .3rem; align-items: flex-start; margin: .2rem 0 .5rem; }
.more-info > summary { cursor: pointer; list-style: none; display: grid; gap: .1rem; }
.more-info > summary::-webkit-details-marker { display: none; }
.more-info > summary h2 { margin: 0; }
.more-info > summary h2::after { content: " ▾"; color: var(--muted); font-size: .9em; }
.more-info[open] > summary { margin-bottom: .8rem; }
.more-info[open] > summary h2::after { content: " ▴"; }
.how-apply ol { margin: .4rem 0 0; padding-left: 1.2rem; display: grid; gap: .25rem; }
.interest { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; margin: .4rem 0; }
.interest span { display: grid; } .interest small { color: var(--muted); font-weight: 400; }
.interest:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.shift-choose { margin: .3rem 0 .5rem; }
.shift-choose > summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: .4rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.shift-choose .day-group { margin: .3rem 0; }
.quick-avail { padding: .8rem; margin-bottom: 1rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, transparent); display: grid; gap: .4rem; }
.quick-avail p { margin: 0; } .center { text-align: center; }

/* Taille du texte réglable (bénévoles seniors, malvoyants) */
html[data-text="l"] { font-size: 112.5%; }
html[data-text="xl"] { font-size: 125%; }
.text-size-btn span, .text-float span { font-weight: 800; font-size: 1rem; line-height: 1; }
.text-size-btn sup, .text-float sup { font-size: .65em; }
.text-float { position: fixed; top: 1rem; right: 3.8rem; color: #fff; }
html[data-text] .text-size-btn, html[data-text] .text-float { color: var(--accent); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 5.5rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--surface-2); color: var(--text); border-radius: 8px; padding: .45rem .6rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.reg-steps { list-style: none; counter-reset: rs; display: flex; gap: .3rem; padding: 0; margin: .3rem 0 .6rem; flex-wrap: wrap; }
.reg-steps li { counter-increment: rs; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .25rem; }
.reg-steps li::before { content: counter(rs); width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; }
.reg-steps li + li::after { content: ""; }
.reg-steps li.on { color: var(--text); font-weight: 700; }
.reg-steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.first-steps { overflow-wrap: anywhere; }
.fs-list li { min-width: 0; }
.fs-body .btn { white-space: normal; text-align: left; max-width: 100%; }

/* Planning : semaine lisible sans défiler, mode « Agrandir », agenda sur téléphone (correctif 20) */
.pg-days { display: flex; gap: .3rem; flex-wrap: wrap; }
.pg-days a { display: flex; flex-direction: column; align-items: center; min-width: 40px; padding: .25rem .35rem; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); line-height: 1.1; }
.pg-days a small { font-size: .65rem; color: var(--muted); text-transform: uppercase; }
.pg-days a.in { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: var(--accent); }
.pg-days a.setup { border-style: dashed; }
.pg-days a:hover { text-decoration: none; border-color: var(--accent); }
/* 7 jours ou moins : les colonnes se partagent la largeur au lieu de déborder */
.pg-table.pg-fit { width: 100%; table-layout: fixed; min-width: calc(200px + var(--ncols, 7) * 104px + 72px); }
.pg-table.pg-fit .pg-res { width: 200px; min-width: 0; max-width: none; }
.pg-table.pg-fit thead th.pg-day, .pg-table.pg-fit .pg-cell { min-width: 0; }
.pg-table.pg-fit .pg-total { width: 72px; }
.pg-table.pg-fit .pg-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-table.pg-fit .pg-card strong { font-size: .8rem; white-space: nowrap; letter-spacing: -.01em; }
.pg-table.pg-fit .pg-missing { font-size: .62rem; }
.pg-table.pg-fit .pg-card .pg-dur { display: none; }
@media (max-width: 1350px) { .pg-table.pg-fit .pg-res { width: 170px; } .pg-table.pg-fit { min-width: calc(170px + var(--ncols, 7) * 104px + 72px); } .pg-table.pg-fit .pg-person .avatar { display: none; } }
/* Agrandir : la liste des secteurs se replie, la grille prend toute la largeur */
html.pg-focus .pg { grid-template-columns: minmax(0, 1fr); }
html.pg-focus .pg-side { display: none; }
html.pg-focus .pg-mobile-sector { display: block; }
.pg-focus-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Téléphone : agenda jour par jour au lieu du grand tableau */
.pg-agenda { display: none; }
@media (max-width: 700px) {
  .pg-scroll, .pg main .legend, .pg-main > .legend, .pg-focus-btn, [data-grid-search] { display: none !important; }
  .pg-agenda { display: grid; gap: .5rem; }
}
.ag-day { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .5rem .7rem; }
.ag-day > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 44px; }
.ag-day > summary strong { font-size: 1.02rem; }
.ag-list { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .5rem; }
.ag-list li { border: 1px solid var(--border); border-left: 4px solid var(--c); border-radius: 10px; padding: .55rem .6rem; display: grid; gap: .4rem; }
.ag-head { display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; }
.ag-count { margin-left: auto; font-weight: 700; font-size: .8rem; padding: .05rem .45rem; border-radius: 6px; }
.ag-count.ok { background: var(--green-bg); color: var(--green); } .ag-count.low { background: var(--red-bg); color: var(--red); }
.ag-people { display: flex; flex-wrap: wrap; gap: .3rem; }
.ag-chip { font-size: .8rem; padding: .15rem .5rem; border-radius: 999px; background: var(--green-bg); color: var(--text); border: 1px solid transparent; }
.ag-chip.st-draft { background: var(--surface-2); border: 1px dashed var(--border); }
.ag-chip.st-proposed { background: var(--purple-bg); }
.ag-chip.declined { background: var(--red-bg); text-decoration: line-through; }
.ag-chip.here::before { content: "✓ "; color: var(--green); font-weight: 700; }
.ag-missing { font-size: .8rem; font-weight: 700; color: var(--red); padding: .15rem .5rem; border: 1px dashed var(--red); border-radius: 999px; }
.ag-list .btn { justify-self: start; }

/* Charte des bénévoles (correctif 22) */
.charter-text { line-height: 1.6; }
.charter-text h2 { font-size: 1.1rem; margin: 1.2rem 0 .5rem; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.charter-text ol, .charter-text ul { padding-left: 1.3rem; display: grid; gap: .45rem; }
.charter-sign { border-top: 4px solid var(--accent); }
.charter-agree { padding: .7rem; border: 2px solid var(--border); border-radius: 12px; }
.charter-agree:has(input:checked) { border-color: var(--green); background: var(--green-bg); }
.mt { margin-top: .8rem; }

/* Messagerie */
.chat-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.chat-list a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); min-height: 60px; }
.chat-list a:hover { text-decoration: none; border-color: var(--accent); }
.chat-list a.unread { border-left: 4px solid var(--accent); }
.chat-list a.unread strong { font-weight: 800; }
.chat-meta { display: grid; min-width: 0; flex: 1; } .chat-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-side { display: grid; justify-items: end; gap: .2rem; }
.chat-avatar.group { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c); flex: none; }
.chat-annonces { margin-bottom: .8rem; }
.chat-compose { border-left: 4px solid var(--c); }
.chat-people { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .4rem; }
.chat-people li { display: flex; align-items: center; gap: .6rem; }
.chat-people li > span { display: grid; flex: 1; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .6rem; border-bottom: 3px solid var(--c); margin-bottom: .6rem; }
.chat-head h1 { font-size: 1.2rem; margin: 0; }
.chat-members { margin-bottom: .5rem; }
.chat-thread { list-style: none; margin: 0; padding: .3rem 0 1rem; display: grid; gap: .55rem; }
.msg { display: grid; justify-items: start; max-width: 85%; }
.msg.mine { justify-self: end; justify-items: end; }
.msg-author { font-size: .75rem; font-weight: 700; color: var(--muted); margin: 0 .5rem .1rem; }
.msg-bubble { background: var(--surface); border: 1px solid var(--border); padding: .55rem .75rem; border-radius: 16px 16px 16px 4px; overflow-wrap: anywhere; }
.msg.mine .msg-bubble { background: var(--accent); color: #fff; border-color: var(--accent); border-radius: 16px 16px 4px 16px; }
.msg.deleted .msg-bubble { background: var(--surface-2); color: var(--muted); }
.msg-time { font-size: .7rem; color: var(--muted); margin: .1rem .5rem 0; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.msg-time form { display: inline; }
.chat-send { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); display: flex; gap: .5rem; align-items: flex-end; background: var(--bg); padding: .5rem 0; z-index: 5; }
@media (min-width: 900px) { .chat-send { bottom: 0; } }
.chat-send textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 22px; padding: .6rem .9rem; }
.chat-send .btn { border-radius: 22px; min-height: 44px; }
.chat-note { margin-bottom: 4rem; }
.bn-icon { position: relative; display: inline-flex; }
.bn-badge { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; border-radius: 999px; font-size: .62rem; font-weight: 800; padding: 0 .3rem; min-width: 16px; text-align: center; line-height: 16px; }
.chat-people .avatar, .chat-list .avatar { flex: none; }
.chat-compose .btn-block { white-space: normal; height: auto; min-height: 48px; text-align: center; line-height: 1.25; }
.msg.deleted .msg-bubble { border-color: var(--border); color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
/* Correctif 23 : délégations, programmateur */
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; align-items: end; }
.grid-form .span-all { grid-column: 1 / -1; }
.w-date { width: 9.5rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1rem; color: var(--text); display: grid; gap: .2rem; }
a.kpi:hover { text-decoration: none; border-color: var(--accent); }
.kpi strong { font-size: 1.6rem; line-height: 1.1; } .kpi.warn strong { color: var(--amber); } .kpi.bad strong { color: var(--red); } .kpi.ok strong { color: var(--green); }
.maintenance-banner { background: var(--amber-bg); color: var(--amber); padding: .5rem 1rem; text-align: center; font-weight: 700; }
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.role-matrix td.center { text-align: center; } .role-matrix .row-group th { background: var(--surface-2); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; } .role-matrix th[scope=row] code { font-size: .7rem; }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.mfa-qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; margin: .5rem 0; } .recovery-codes { display: inline-block; font-size: 1rem; letter-spacing: .05em; word-spacing: .4rem; margin: .3rem 0; } .steps-list { display: grid; gap: 1rem; padding-left: 1.2rem; }

/* Correctif 25 : inscription et premiers pas ludiques */
.btn-ghost { background: transparent; color: var(--accent); border-color: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.reg-hero { text-align: center; margin-bottom: .6rem; }
.reg-hero h2 { margin: .2rem 0; font-size: 1.5rem; }
.reg-confetti { font-size: 1.6rem; letter-spacing: .4rem; }
.reg-progress { display: flex; gap: .4rem; margin-bottom: .8rem; }
.reg-progress span { flex: 1; font-size: .78rem; font-weight: 700; color: var(--muted); padding-top: .45rem; border-top: 4px solid var(--border); }
.reg-progress span.on { color: var(--accent); border-color: var(--accent); }
.reg-step { border: 0; padding: 0; margin: 0; display: grid; gap: .9rem; }
.reg-legend { font-size: 1.15rem; font-weight: 800; margin-bottom: .2rem; padding: 0; }
.reg-hello { margin: -.3rem 0 0; font-weight: 700; color: var(--accent); font-size: 1.05rem; animation: pop .35s ease; }
.reg-birth { border: 0; padding: 0; margin: 0; }
.reg-birth legend { font-weight: 600; margin-bottom: .35rem; }
.reg-birth-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: .5rem; }
.reg-birth-row select, .reg-birth-row input { min-height: 48px; font-size: 1.05rem; }
.pw-rules { list-style: none; padding: 0; margin: -.4rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.pw-rules li { font-size: .85rem; padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pw-rules li::before { content: "○ "; }
.pw-rules li.ok { background: var(--green-bg); color: var(--green); font-weight: 700; }
.pw-rules li.ok::before { content: "✓ "; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reg-hello, .qbadge.won { animation: none !important; } }

.quest-head { display: flex; gap: 1rem; align-items: center; }
.quest-ring { --p: 0; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.quest-ring span { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.quest-level { margin: .1rem 0; font-weight: 700; color: var(--accent); }
.quest-badges { display: flex; gap: .45rem; flex-wrap: wrap; margin: .8rem 0 .2rem; }
.qbadge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--surface-2); filter: grayscale(1); opacity: .45; border: 2px dashed var(--border); }
.qbadge.won { filter: none; opacity: 1; border: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); animation: pop .4s ease; }
.quest .fs-num { font-size: 1.05rem; }
.fs-side { opacity: .95; }
.fs-side .fs-body strong::after { content: " · bonus"; font-weight: 600; font-size: .8rem; color: var(--muted); }
.fs-reward { font-weight: 600; color: var(--green); }
.fs-reward.muted { color: var(--muted); font-weight: 500; }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.fun-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .8rem 1.1rem; border-radius: 14px; font-weight: 700; z-index: 10000; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 92vw; text-align: center; transition: opacity .5s; }
.fun-toast.out { opacity: 0; }

.qp { max-width: 560px; margin: 0 auto; }
.qp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.qp-dots { display: flex; gap: .35rem; }
.qp-dots span { width: 28px; height: 6px; border-radius: 3px; background: var(--border); }
.qp-dots span.done { background: var(--green); } .qp-dots span.on { background: var(--accent); }
.qp-card { text-align: left; display: grid; gap: .8rem; }
.qp-card h1 { font-size: 1.4rem; margin: 0; }
.qp-emoji { font-size: 2.6rem; line-height: 1; }
.qp-form { display: grid; gap: .9rem; }
.qp-photo { display: flex; justify-content: center; }
.qp-file { cursor: pointer; min-height: 56px; }
.qp-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.qp-size input { position: absolute; opacity: 0; pointer-events: none; }
.qp-size span { display: grid; place-items: center; min-height: 64px; border: 2px solid var(--border); border-radius: 14px; font-weight: 800; font-size: 1.15rem; cursor: pointer; background: var(--surface); }
.qp-size input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.qp-size input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.qp-actions { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.qp-first .check { margin-top: .5rem; }
.qp-end { text-align: center; justify-items: center; }
.qp-check { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; text-align: left; }
.qp-check li { font-size: 1.02rem; }
/* Bouton « Enregistrer » collant : une barre pleine largeur, qui ne cache plus les champs sur téléphone */
@media (max-width: 859px) {
  .is-volunteer .sticky-actions { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); margin: 0 -1rem; padding: .6rem 1rem; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-top: 1px solid var(--border); }
  .is-volunteer .sticky-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
}
.qp-promo { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); } .qp-promo-emoji { font-size: 1.8rem; }
.reg-birth-row { grid-template-columns: minmax(84px, 1fr) 1.7fr minmax(92px, 1.1fr); }
.reg-birth-row select { padding-left: .5rem; padding-right: 1.6rem; }
.qbadge { opacity: .6; }
.reg-birth-row label { display: grid; gap: .2rem; margin: 0; }
.reg-mini { font-size: .8rem; color: var(--muted); font-weight: 600; }
html[data-text] .reg-birth-row { grid-template-columns: 1fr; }
/* Correctif 26 : note pour le bénévole, gestion du créneau depuis le panneau */
.sp-assigned li { display: block !important; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sp-note-line { margin-top: .3rem; }
.sp-note { color: var(--text); background: var(--amber-bg); padding: .1rem .4rem; border-radius: 6px; display: inline-block; margin-top: .2rem; }
.sp-note-box { margin-top: .4rem; display: grid; gap: .4rem; }
.sp-note-box textarea { width: 100%; }
.sp-manage { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: .7rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: .4rem 0 .8rem; }
.sp-manage form { margin: 0; }
.pg-note { display: block; font-size: .72rem; background: var(--amber-bg); color: var(--text); border-radius: 4px; padding: 0 .3rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vol-note { background: var(--amber-bg); border-radius: 10px; padding: .5rem .7rem; margin: .4rem 0; }
/* Disponibilités sur téléphone : la page ne doit jamais dépasser l'écran (sinon les boutons Modifier / Supprimer sortent à droite) */
.grid-cal { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .grid-cal { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.cal { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.grid-cal .btn { white-space: normal; height: auto; text-align: center; }
.list-compact li:has(.notif-del) { display: flex; align-items: flex-start; gap: .3rem; }
.list-compact li:has(.notif-del) > a { flex: 1; min-width: 0; }
.notif-del { margin: 0; flex: none; }
.fs-edit { display: inline-flex; align-items: center; gap: .3rem; font-size: .9rem; font-weight: 600; margin-top: .2rem; min-height: 32px; }
.avail-list li { flex-wrap: wrap; } .avail-list li > .row { flex-wrap: wrap; }

/* ---------- Correctif 28 : encadrement (responsable / adjoint) et grille du planning ---------- */
.pg-plus.pg-plus-big { min-height: 4.2rem; opacity: 1; border-width: 2px; border-color: color-mix(in srgb, var(--muted) 30%, transparent); background: color-mix(in srgb, var(--surface-2) 60%, transparent); font-size: 1.4rem; }
.pg-plus.pg-plus-big:hover { border-color: var(--accent); }
.pg-table.is-dragging .pg-plus.pg-plus-big { opacity: .35 !important; }
.pg-hbar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: .25rem 0 .2rem; max-width: 160px; }
.pg-hbar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.pg-hbar.near i { background: var(--amber); } .pg-hbar.over i { background: var(--red); width: 100% !important; }
.pg-age { font-size: .66rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 .35rem; }
.lead-badge { font-size: .62rem !important; text-transform: uppercase; letter-spacing: .03em; }
.lead-badge.lead-responsable, .pg-lead.lead-responsable small { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.lead-badge.lead-adjoint, .pg-lead.lead-adjoint small { background: var(--blue-bg, #e0edff); color: var(--blue, #2563eb); }
.lead-badge.lead-chef_poste, .pg-lead.lead-chef_poste small { background: var(--green-bg); color: var(--green); }
.pg-leads { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .25rem; }
.pg-lead { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; }
.pg-lead > span:not(.avatar) { display: inline-flex; align-items: center; gap: .3rem; }
.pg-lead small { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; border-radius: 5px; padding: .05rem .3rem; }
/* carte Encadrement du secteur */
.lead-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: .6rem 0 1rem; }
.lead-col { border: 1px solid var(--border); border-radius: 14px; padding: .8rem .9rem; background: var(--surface); border-top: 4px solid var(--accent); }
.lead-col.lead-adjoint { border-top-color: var(--blue, #2563eb); } .lead-col.lead-chef_poste { border-top-color: var(--green); }
.lead-col h3 { margin: 0; font-size: 1rem; } .lead-col > p { margin: .15rem 0 .5rem; }
.lead-person { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--border); }
.lead-person form { margin: 0 0 0 auto; }
.lead-who { display: flex; flex-direction: column; min-width: 0; } .lead-who small { line-height: 1.3; }
.lead-empty { margin: 0; padding: .7rem; border: 2px dashed var(--border); border-radius: 10px; text-align: center; color: var(--muted); font-weight: 600; }
.lead-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; padding: .8rem; border-radius: 12px; background: var(--surface-2); }
.lead-add-who { flex: 1 1 240px; } .lead-add-fn { border: 0; padding: 0; margin: 0; } .lead-add-fn legend { font-size: .85rem; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.lead-add .seg { flex-wrap: wrap; }
/* cartes Secteurs */
.sector-leads { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; min-height: 38px; }
.sl-person { display: inline-flex; align-items: center; gap: .4rem; }
.sl-person > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.15; }
.sl-person strong { font-size: .85rem; } .sl-person small { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.sl-person.lead-adjoint small { color: var(--blue, #2563eb); } .sl-person.lead-chef_poste small { color: var(--green); }
.sl-empty, .sl-add { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; border: 1.5px dashed var(--border); border-radius: 999px; padding: .3rem .7rem; color: var(--muted); }
.sl-empty:hover, .sl-add:hover { border-color: var(--accent); color: var(--accent); }
/* fenêtre d'affectation : onglets Mission / Absent */
.gd-tabs { display: flex; width: 100%; margin-bottom: .8rem; } .gd-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 600; }
[data-gd-pane="absent"] .btn { margin-top: .4rem; }

/* ---------- Correctif 29 : secteur convivial pour responsables et adjoints ---------- */
/* Safari (Mac, iPhone) ignore la mise en forme des listes déroulantes natives : on la redessine partout */
select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px; }
.event-switch select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px; }
/* avancement du secteur */
.sector-steps h2 { margin: 0; }
.ss-count { font-weight: 800; font-size: 1.1rem; color: var(--accent); }
.ss-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.ss-list a { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem .8rem; border-radius: 12px; border: 1px solid var(--border); color: var(--text); height: 100%; background: var(--surface); }
.ss-list a:hover { border-color: var(--accent); }
.ss-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border); }
.ss-list li.done .ss-dot { background: var(--green); border-color: var(--green); color: #fff; }
.ss-list li.warn .ss-dot { background: var(--amber); border-color: var(--amber); color: #fff; }
.ss-list li:not(.done):not(.warn):first-of-type .ss-dot, .ss-list li.done + li:not(.done):not(.warn) .ss-dot { border-color: var(--accent); color: var(--accent); }
.ss-txt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; } .ss-txt small { color: var(--muted); line-height: 1.3; }
.ss-bar { display: block; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-top: .2rem; } .ss-bar i { display: block; height: 100%; background: var(--green); }
/* formulaire de créneaux */
.as-slot { align-items: flex-end; }
.as-dur { font-size: .78rem; font-weight: 700; color: var(--accent); align-self: center; white-space: nowrap; padding-top: 1.4rem; }
.as-dur:empty { display: none; }
.chip small { font-weight: 400; opacity: .75; margin-left: .2rem; }
.chip.picked { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper input { text-align: center; font-weight: 800; font-size: 1.15rem; border-radius: 0; border-left: 0; border-right: 0; min-width: 0; }
.stepper-btn { flex: none; width: 46px; border: 1px solid var(--border); background: var(--surface-2); font-size: 1.3rem; font-weight: 700; color: var(--text); cursor: pointer; }
.stepper-btn:first-child { border-radius: 10px 0 0 10px; } .stepper-btn:last-child { border-radius: 0 10px 10px 0; }
.stepper-btn:hover { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.more-opts { border: 1px dashed var(--border); border-radius: 12px; padding: .6rem .8rem; }
.more-opts > summary { cursor: pointer; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; }
.more-opts > summary::-webkit-details-marker { display: none; }
.more-opts > summary::after { content: '▾'; margin-left: auto; color: var(--muted); } .more-opts[open] > summary::after { content: '▴'; }
.more-opts[open] > summary { margin-bottom: .7rem; }
.add-shift-form .as-submit { position: sticky; bottom: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); padding: .75rem .2rem; margin-top: .5rem; box-shadow: 0 -8px 16px -12px rgba(15, 23, 42, .25); }
.as-slot input[type="time"] { min-width: 7.2rem; }
/* débordements horizontaux relevés par le contrôle automatique (correctif 29) */
.table-wrap { position: relative; } /* le texte pour lecteurs d'écran des tableaux ne déborde plus de la page */
.btn { max-width: 100%; }
.btn > span, .btn { overflow-wrap: anywhere; }
.app-main > div:nth-of-type(1) { min-width: 0; }
@media (max-width: 600px) {
  .app-main { flex-wrap: wrap; }
  .app-status { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; gap: .5rem; padding-left: 2.6rem; }
}
/* barre du haut des bénévoles : nom du festival raccourci, menu qui défile au lieu de pousser les boutons hors de l'écran */
.brand-inline { min-width: 0; flex: 0 1 auto; }
.brand-inline span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }
.top-nav { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: thin; white-space: nowrap; }
.top-nav a { flex: none; }
.top-actions { flex: none; }

/* ---------- Correctif 30 : planning intelligent (conflits, filtres, recommandations expliquées) ---------- */
.pg-card.has-conflict { outline: 2px solid var(--red); outline-offset: -2px; background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.pg-conf { color: var(--red); font-weight: 800; }
.pg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .2rem 0 .6rem; }
.chip.chip-warn { border-color: var(--red); color: var(--red); }
.pg-table[data-filter]:not([data-filter="all"]) .pg-card:not(.match) { opacity: .18; }
.pg-table[data-filter]:not([data-filter="all"]) .pg-card.match { box-shadow: 0 0 0 2px var(--accent); }
.pg-table[data-filter]:not([data-filter="all"]) .pg-plus { visibility: hidden; }
.sp-why { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.sp-why li { font-size: .72rem; border-radius: 6px; padding: .05rem .4rem; background: var(--surface-2); border: 0 !important; display: inline-block !important; }
.sp-why li.plus { background: var(--green-bg); color: var(--green); } .sp-why li.minus { background: var(--amber-bg, #fef3c7); color: var(--amber); }
.sp-reco { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--accent); color: #fff; border-radius: 6px; padding: .05rem .35rem; margin-left: .3rem; }
.sp-score { font-size: .72rem; font-weight: 700; color: var(--muted); margin-left: .3rem; }
.sp-repl { margin-top: .4rem; padding: .5rem .6rem; border-radius: 10px; background: color-mix(in srgb, var(--red) 6%, var(--surface)); border: 1px dashed var(--red); }
.sp-repl form { display: inline; margin: 0; }
.sp-repl .btn { margin: .15rem .25rem 0 0; }

/* ---------- Correctif 31 : grille plus grande et lisible ---------- */
/* semaine : les 7 jours tiennent dans l'écran, les intitulés passent sur deux lignes au lieu d'être coupés */
.pg-table.pg-fit { min-width: calc(200px + var(--ncols, 7) * 112px + 64px); }
@media (max-width: 1350px) { .pg-table.pg-fit { min-width: calc(160px + var(--ncols, 7) * 104px + 60px); } .pg-table.pg-fit .pg-res { width: 160px; } .pg-table.pg-fit .pg-total { width: 60px; } }
.pg-table:not(.pg-fit) thead th.pg-day, .pg-table:not(.pg-fit) .pg-cell { min-width: 150px; }
.pg-table.pg-fit .pg-total { width: 64px; }
.pg-table.pg-fit .pg-card strong { font-size: .84rem; letter-spacing: -.01em; }
.pg-card { padding: .45rem .55rem; }
.pg-card strong, .pg-table.pg-fit .pg-card strong { font-size: .9rem; white-space: nowrap; }
.pg-card small, .pg-table.pg-fit .pg-card small { font-size: .78rem; white-space: normal; overflow: hidden; text-overflow: clip;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25; overflow-wrap: anywhere; }
.pg-card.has-conflict { padding-right: 1.6rem; }
.pg-conf { position: absolute; top: .35rem; right: .4rem; font-size: .95rem; line-height: 1; }
.pg-foot { font-size: .75rem; }

/* ---------- Correctif 32 : planning compact et apaisé ---------- */
/* toute la largeur de l'écran pour le planning */
.content:has(.pg) { max-width: none; }
/* cartes compactes : heure + durée sur la même ligne, intitulé en dessous */
.pg-card { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; row-gap: .05rem; padding: .3rem .45rem; margin-bottom: .25rem; border-radius: 7px; }
.pg-card strong, .pg-table.pg-fit .pg-card strong { font-size: .76rem; font-weight: 700; letter-spacing: -.01em; flex: 1 1 auto; }
.pg-card .pg-foot { margin-left: auto; font-size: .66rem; gap: .2rem; }
.pg-card small, .pg-table.pg-fit .pg-card small { flex-basis: 100%; font-size: .68rem; line-height: 1.2; -webkit-line-clamp: 2; color: var(--muted); }
.pg-card .pg-note, .pg-card .pg-missing, .pg-card .pg-req, .pg-card .pg-open-sum { flex-basis: 100%; }
.pg-missing { font-size: .6rem; }
.pg-req { font-size: .62rem; }
.pg-card.has-conflict { padding-right: 1.25rem; }
.pg-conf { top: .25rem; right: .3rem; font-size: .78rem; }
.pg-tag { font-size: .58rem; padding: 0 .25rem; }
/* en-têtes et colonne des personnes */
.pg-table { font-size: .8rem; }
.pg-table thead th.pg-day { padding: .45rem .5rem .35rem; }
.pg-table thead th.pg-day a { font-size: .8rem; }
.pg-person { gap: .45rem; }
.pg-person strong { font-size: .8rem; line-height: 1.2; }
.pg-person .avatar-sm { width: 28px; height: 28px; font-size: .66rem; }
.pg-meta { gap: .2rem; }
.pg-h { font-size: .66rem; padding: 0 .3rem; }
.pg-meta .badge, .lead-badge { font-size: .56rem !important; padding: 0 .3rem; }
.pg-age { font-size: .6rem; padding: 0 .3rem; }
.pg-res { padding: .45rem .5rem; }
.pg-cell { padding: .25rem; }
.pg-total { font-size: .78rem; }
.pg-table tfoot th, .pg-table tfoot td { font-size: .72rem; padding: .4rem .5rem; }
.pg-obj { font-size: .66rem; }
/* « + » plus discret */
.pg-plus.pg-plus-big { min-height: 2.4rem; font-size: 1rem; border-width: 1.5px; background: transparent; border-color: color-mix(in srgb, var(--muted) 22%, transparent); color: color-mix(in srgb, var(--muted) 70%, transparent); }
/* disponibilités : teintes légères au lieu de hachures marquées */
.pg-cell.av-available { background: color-mix(in srgb, var(--green) 4%, transparent); }
.pg-cell.av-partial, .pg-cell.av-conditional { background: color-mix(in srgb, var(--amber) 6%, transparent); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--amber) 45%, transparent); }
.pg-cell.av-unavailable { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--red) 5%, transparent) 0 5px, transparent 5px 10px); }
.av-key.av-partial { background: color-mix(in srgb, var(--amber) 14%, transparent); box-shadow: inset 3px 0 0 var(--amber); }
.pg-filters { margin: 0 0 .5rem; }
.pg-filters .chip { font-size: .74rem; padding: .2rem .6rem; }
/* en-tête du planning plus compact : la grille remonte */
.pg-mobile-sector { margin-bottom: .5rem; }
.pg-mobile-sector label { flex-direction: row; align-items: center; gap: .6rem; font-size: .85rem; }
.pg-mobile-sector select { max-width: 360px; min-height: 36px; padding-top: .35rem; padding-bottom: .35rem; }
.pg-toolbar { padding: .55rem .8rem; gap: .5rem .9rem; }
.pg-title h2 { font-size: 1.05rem; }
.pg-actions .btn, .pg-nav .btn { min-height: 34px; padding: .3rem .7rem; font-size: .8rem; }
.pg-actions input[type="search"] { min-height: 34px; padding: .3rem .6rem; font-size: .8rem; }
.pg-days a { min-width: 34px; padding: .15rem .3rem; border-radius: 8px; }
.pg-stats { font-size: .8rem; gap: .3rem 1rem; margin: .5rem 0 .3rem; }
.pg-stats .pg-add select { min-height: 34px; font-size: .8rem; padding-top: .3rem; padding-bottom: .3rem; }
.pg-stats .pg-add .btn { min-height: 34px; }
.pg-leads { font-size: .75rem; }

/* ---------- Correctif 34 : installer l'application sur le téléphone ---------- */
.install-page { max-width: 760px; margin: 0 auto; }
.auth-page .install-page { max-width: none; }
.install-hero { display: flex; gap: 1rem; align-items: flex-start; }
.install-hero img { border-radius: 18px; box-shadow: 0 6px 18px rgba(15, 23, 42, .18); flex: none; }
.install-hero h1 { margin: 0 0 .3rem; font-size: 1.35rem; }
.install-hero p { margin: 0 0 .5rem; }
.install-why { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .35rem; font-size: .9rem; }
.install-why li { display: flex; gap: .45rem; align-items: flex-start; } .install-why svg { color: var(--green); flex: none; margin-top: .15rem; }
.install-now { text-align: center; border: 2px solid var(--accent); }
.install-now .btn-lg { font-size: 1.05rem; padding: .75rem 1.4rem; }
.install-h { font-size: 1.05rem; margin: 1.2rem 0 .3rem; }
.install-os { padding: 0; overflow: hidden; }
.install-os > summary { cursor: pointer; padding: .9rem 1rem; display: flex; align-items: center; gap: .6rem; list-style: none; font-size: 1rem; }
.install-os > summary::-webkit-details-marker { display: none; }
.install-os > summary::after { content: '▾'; margin-left: auto; color: var(--muted); } .install-os[open] > summary::after { content: '▴'; }
.install-os > :not(summary) { margin: 0 1rem 1rem; }
.install-os.detected { border: 2px solid var(--accent); }
.install-os.detected > summary strong::after { content: ' · votre appareil'; font-weight: 600; color: var(--accent); font-size: .8rem; }
.install-os .steps li { margin-bottom: .45rem; }
.install-qr { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.install-qr .qr { background: #fff; padding: .5rem; border-radius: 10px; border: 1px solid var(--border); line-height: 0; }
.install-qr .qr svg { width: 150px; height: 150px; }
.install-qr > div:last-child { flex: 1 1 240px; }
.install-note { margin-top: 1rem; }
.auth-install { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem auto 0; padding: .55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 600; font-size: .9rem; border: 1px solid rgba(255, 255, 255, .25); }
.auth-install:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.install-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .install-box { flex-wrap: wrap; } .install-actions { width: 100%; justify-content: flex-start; } .install-hero { flex-direction: column; } }

/* ---------- Correctif 35 : bénévoles sur mobile — contacts, cartes, moins de clics ---------- */
/* boutons Appeler / WhatsApp : ronds, assez grands pour le doigt */
.ci { display: inline-flex; gap: .4rem; align-items: center; flex: none; vertical-align: middle; }
.ci-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff !important; text-decoration: none !important; box-shadow: 0 2px 6px rgba(15, 23, 42, .18); }
.ci-btn:active { transform: scale(.94); }
.ci-tel { background: #16a34a; } .ci-wa { background: #128c4a; }
.ci-wa-t { position: absolute; bottom: -3px; right: -5px; font-size: .5rem; font-weight: 800; background: #fff; color: #128c4a; border-radius: 6px; padding: 0 .2rem; line-height: 1.3; box-shadow: 0 0 0 1px #128c4a; }
.emergency-list { list-style: none; padding: 0; margin: .6rem 0; display: grid; gap: .1rem; }
.emergency-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--border); }
.emergency-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.emergency-list li small { color: var(--muted); font-size: .75rem; }
.next-lead { display: flex; align-items: center; gap: .5rem; } .next-lead > span { flex: 1; min-width: 0; }
/* cartes de mission */
.mission-leads { display: grid; gap: .35rem; margin: .4rem 0; }
.mission-leads .ml { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .3rem .5rem; border-radius: 10px; background: var(--surface-2); }
.mission-leads .ml > span:first-child { min-width: 0; }
.mission-leads > a { font-size: .8rem; }
.post-line .ci { margin-left: .3rem; }
.card.mission { border-radius: 16px; padding: .9rem; gap: .8rem; }
.card.mission h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.mission-time strong { font-size: 1.15rem; }
.respond { margin-top: .6rem; }
.respond .row { gap: .5rem; }
.respond .btn-sm { min-height: 40px; padding: .4rem .9rem; font-size: .88rem; }
.confirm-all { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 2px solid var(--accent); }
.confirm-all > div { display: flex; flex-direction: column; gap: .15rem; } .confirm-all .btn { flex: none; }
.abs-self > summary { display: flex; flex-direction: column; gap: .15rem; }
.abs-self > summary small { font-weight: 400; font-size: .8rem; }
.plan-tools { margin-top: -.2rem; }
/* carte « Installez l'application » */
.install-box { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .8rem; }
.install-box > div:not(.install-actions) { min-width: 0; }
@media (max-width: 600px) {
  .install-box { grid-template-columns: 48px 1fr; }
  .install-box .install-actions { grid-column: 1 / -1; width: auto; }
  .install-box .install-actions .btn { flex: 1; justify-content: center; }
  .confirm-all { flex-direction: column; align-items: stretch; } .confirm-all .btn { width: 100%; justify-content: center; }
  .card.mission { padding: .8rem; }
  .emergency-official a strong { font-size: 1.25rem; }
}
.late-box { margin-top: .7rem; padding: .6rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px dashed var(--amber); }
.late-box p { margin: 0 0 .4rem; }
.late-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; }
.late-form .chip { min-height: 38px; padding: .3rem .8rem; font-weight: 700; cursor: pointer; }
.ci-btn svg, .ci-btn .icon { color: #fff !important; stroke: #fff !important; }

/* ---------- Correctif 36 : bons repas offerts, disponibilités, Care, notifications ---------- */
.meal-list { list-style: none; padding: 0; margin: .4rem 0 .8rem; }
.meal-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem 0; border-top: 1px solid var(--border); }
.meal-list li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.meal-grant { display: grid; gap: .6rem; padding: .8rem; border-radius: 12px; background: var(--surface-2); }
.meal-grant h3 { margin: 0; font-size: 1rem; }
.meal-grant-row { display: flex; flex-wrap: wrap; gap: .7rem; } .meal-grant-row > label { flex: 1 1 150px; }
.inline-form { display: inline; margin: 0; }
.avail-card { display: grid; gap: .55rem; color: var(--text); text-decoration: none !important; }
.avail-card.avail-empty { border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.avail-card p { margin: 0; }
.avail-card .btn { justify-self: start; }
.avail-strip { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .15rem; scrollbar-width: none; }
.av-d { flex: 0 0 auto; width: 40px; padding: .25rem 0; border-radius: 10px; text-align: center; display: grid; line-height: 1.1; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.av-d small { font-size: .62rem; text-transform: uppercase; } .av-d b { font-size: .95rem; }
.av-d.av-yes { background: #dcfce7; border-color: #86efac; color: #166534; }
.av-d.av-part { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.av-d.av-no { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
[data-theme="dark"] .av-d.av-yes { background: #14532d; color: #dcfce7; } [data-theme="dark"] .av-d.av-part { background: #78350f; color: #fef3c7; } [data-theme="dark"] .av-d.av-no { background: #7f1d1d; color: #fee2e2; }
/* services à contacter (Care & Bobologie…) */
.svc-row { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .7rem; }
.svc-btn { flex: 1; display: flex; align-items: center; gap: .55rem; padding: .7rem .9rem; border-radius: 14px; background: var(--c, #e11d48); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 12px rgba(15, 23, 42, .15); }
.svc-btn svg { color: #fff !important; stroke: #fff !important; flex: none; }
.svc-chips { display: grid; gap: .5rem; margin-bottom: .8rem; }
.svc-card { border-top: 5px solid var(--c, #e11d48); } .svc-card h1 { margin: 0 0 .4rem; font-size: 1.35rem; display: flex; align-items: center; gap: .4rem; }
.svc-call { display: flex; align-items: center; gap: .6rem; margin: .5rem 0; }
.svc-urgent { color: var(--red); font-weight: 600; margin: .4rem 0 0; }
.chat-head .ci { margin-left: .3rem; }
.contact-svc { border: 1px dashed var(--border); border-radius: 12px; padding: .6rem .8rem; } .contact-svc legend { font-weight: 700; padding: 0 .3rem; }
.lead-col.lead-service { border-top-color: #e11d48; }
/* notifications sur le téléphone */
.push-card { border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.push-row { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.push-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.push-row p { margin: .15rem 0 0; }

/* Correctif 36 : en-tête de conversation sur petit écran */
@media (max-width: 560px) {
  .chat-head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: .5rem; row-gap: .4rem; }
  .chat-head > .grow { grid-column: 2 / -1; min-width: 0; }
  .chat-head h1 { font-size: 1.1rem; }
  .chat-head > .ci { grid-column: 2; margin-left: 0; }
  .chat-head > form { grid-column: 3; justify-self: start; }
  .chat-head > .ci + form, .chat-head > .grow + form { grid-row: 2; }
  .chat-head > .grow + form { grid-column: 2 / -1; }
}

/* Correctif 37 : bons repas midi / soir */
.stepper input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.meal-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.meal-tag.meal-midi { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.meal-tag.meal-midi::before { content: "☀"; }
.meal-tag.meal-soir { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.meal-tag.meal-soir::before { content: "☾"; }
[data-theme=dark] .meal-tag.meal-midi { background: #451a03; color: #fcd34d; border-color: #92400e; }
[data-theme=dark] .meal-tag.meal-soir { background: #1e1b4b; color: #c7d2fe; border-color: #3730a3; }
.meal-days { display: grid; gap: .6rem; margin: .4rem 0 .9rem; }
.meal-day { border: 1px solid var(--border); border-radius: 12px; padding: .55rem .75rem .2rem; }
.meal-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent); }
.meal-day-h { display: flex; align-items: center; gap: .4rem; }
.meal-days .meal-list { margin: .3rem 0 0; }
.meal-days .meal-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; }
.meal-days .meal-list li > span:first-child { display: inline-flex; flex-direction: row; }
.meal-info { display: flex; flex-wrap: wrap; gap: .1rem .5rem; min-width: 0; }
.meal-act { display: flex; align-items: center; gap: .4rem; }
.meal-act form { margin: 0; }
.meal-act .btn-sm { min-height: 36px; }
.meal-st-removed .meal-tag, .meal-st-removed .meal-info { opacity: .55; text-decoration: line-through; }
.meal-st-used .meal-info { opacity: .75; }
.meal-choice { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; min-width: 0; }
.meal-choice legend { padding: 0; margin-bottom: .3rem; font-weight: 600; font-size: .92rem; }
.meal-opt { position: relative; display: block; cursor: pointer; margin: 0; }
.meal-opt input { position: absolute; opacity: 0; inset: 0; }
.meal-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: .3rem .5rem; border: 2px solid var(--border); border-radius: 10px; background: var(--surface); text-align: center; line-height: 1.15; }
.meal-opt small { color: var(--muted); font-size: .78rem; }
.meal-opt.meal-midi input:checked + span { border-color: #f59e0b; background: #fef3c7; color: #92400e; }
.meal-opt.meal-soir input:checked + span { border-color: #6366f1; background: #e0e7ff; color: #3730a3; }
[data-theme=dark] .meal-opt.meal-midi input:checked + span { background: #451a03; color: #fcd34d; }
[data-theme=dark] .meal-opt.meal-soir input:checked + span { background: #1e1b4b; color: #c7d2fe; }
.meal-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.meal-opt.meal-midi strong::before { content: "☀ "; } .meal-opt.meal-soir strong::before { content: "☾ "; }
.meal-grant-row { align-items: flex-end; } .meal-grant-row > .meal-choice { flex: 1 1 220px; } .meal-grant-row > label:last-child { flex: 0 0 auto; }
@media (max-width: 560px) {
  .meal-days .meal-list li { grid-template-columns: auto 1fr; }
  .meal-days .meal-list li .meal-act { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Correctif 38 : liste des créneaux plus lisible (heures sur une ligne, « Modifier » en icône) */
.shift-line { grid-template-columns: auto max-content minmax(0, 1fr) auto auto; column-gap: .9rem; }
.shift-time { white-space: nowrap; display: flex; flex-direction: column; }
.shift-time strong { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.shift-time small { font-size: .8rem; }
.shift-main > strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.shift-edit:not([open]) { margin-top: 0; }
.shift-edit > summary { display: none; }
.shift-edit[open] { margin-top: .6rem; border-top: 1px dashed var(--border); padding-top: .7rem; }
.shift-line .actions .icon-btn[aria-expanded=true] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.shift-list > li { padding: .5rem .75rem; transition: box-shadow .15s; }
.shift-list > li:hover { box-shadow: 0 1px 6px rgba(15, 23, 42, .08); }
@media (max-width: 720px) {
  .shift-line { grid-template-columns: auto max-content minmax(0, 1fr); }
  .shift-main { grid-column: 3; }
  .shift-cov { grid-column: 2 / -1; }
  .shift-line .actions { grid-column: 2 / -1; }
}

/* Correctif 38 : transfert de secteur */
.member-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.member-list > li { border: 1px solid var(--border); border-radius: 12px; padding: .55rem .75rem; }
.member-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.member-row .btn { margin-left: auto; }
.transfer-box > summary { display: none; }
.transfer-box[open] { margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--border); }
.transfer-box .form { display: grid; gap: .6rem; }

/* Correctif 38 : accueil bénévole plus court et plus clair */
.quick-actions.qa-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem; }
.quick-actions.qa-4 a { padding: .7rem .2rem .6rem; font-size: .74rem; line-height: 1.2; }
.quick-actions.qa-4 a .icon { width: 24px; height: 24px; padding: 6px; box-sizing: content-box; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.quick-actions.qa-4 a.qa-alert .icon { background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.missions-card .card-head h2 { display: flex; align-items: center; gap: .4rem; }
.mission-stats { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .7rem; }
.mission-stats span { padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); font-size: .82rem; color: var(--muted); }
.mission-stats strong { color: var(--text); }
.home-more .card-head h2 { display: flex; align-items: center; gap: .4rem; font-size: 1.05rem; }
/* Accueil : les cartes respirent un peu plus et les titres sont plus nets */
.welcome h1 { letter-spacing: -.01em; }
.card > h2, .card-head h2 { letter-spacing: -.005em; }
.mission-leads { gap: .25rem; }
.mission-leads .ml { padding: .2rem .25rem .2rem .55rem; }
.ml-who { display: flex; align-items: baseline; gap: .35rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-who small { color: var(--muted); font-size: .74rem; }
.mission-leads .ci-btn { width: 34px; height: 34px; }
.mission-leads .ci { gap: .3rem; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .5rem 0; border-top: 1px solid var(--border); }
.history-list li:first-child { border-top: 0; }
.next-lead .ml-who { flex: 1 1 auto; }
.next-lead .ml-who strong { font-size: 1rem; }

/* Correctif 39 : planning libre — outils sur chaque carte, horaire libre, dupliquer */
.pg-cw { position: relative; }
.pg-cw > .pg-card { width: 100%; }
.pg-tools { position: absolute; top: -12px; right: 6px; z-index: 3; display: none; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(15, 23, 42, .14); }
.pg-tools button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; }
.pg-tools button:hover, .pg-tools button:focus-visible { background: var(--surface-2); color: var(--accent); }
.pg-tools button.danger:hover, .pg-tools button.danger:focus-visible { background: var(--red-bg, #fee2e2); color: var(--red); }
.pg-cw:hover .pg-tools, .pg-cw:focus-within .pg-tools { display: flex; }
.is-dragging .pg-tools { display: none !important; }
@media (hover: none) { .pg-tools { display: flex; position: static; box-shadow: none; border: 0; background: transparent; justify-content: flex-end; padding: 2px 0 0; } }
.gd-free { display: grid; gap: .75rem; margin-bottom: .6rem; }
.gd-hours { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }
.gd-hours label { flex: 0 1 140px; }
.gd-hours input[type=time] { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-hours > span[aria-hidden] { padding-bottom: .7rem; color: var(--muted); }
.gd-dur { padding-bottom: .75rem; }
.gd-presets { display: flex; flex-wrap: wrap; gap: .35rem; }
.gd-presets .chip { border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; padding: .3rem .7rem; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.gd-presets .chip.active, .gd-presets .chip:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.gd-days { border: 0; padding: 0; margin: 0; min-width: 0; }
.gd-days legend { font-weight: 600; margin-bottom: .35rem; padding: 0; }
.day-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.day-chip { position: relative; margin: 0; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; inset: 0; }
.day-chip span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: .3rem .35rem; border: 2px solid var(--border); border-radius: 10px; font-weight: 700; line-height: 1.1; background: var(--surface); }
.day-chip small { font-weight: 500; font-size: .7rem; color: var(--muted); text-transform: capitalize; }
.day-chip input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.day-chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.day-chip input:disabled + span { opacity: .4; cursor: not-allowed; }
.day-chip.is-source span { border-style: dashed; }
.gd-more summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.gd-more[open] { display: grid; gap: .5rem; }
.btn-block { width: 100%; justify-content: center; }
#grid-dialog, #dup-dialog, #hours-dialog { width: min(560px, 94vw); }
.gd-days legend [data-gd-alldays] { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 0 .3rem; cursor: pointer; text-decoration: underline; }
.pg-who { display: inline-flex; }
.pg-who a { padding: .25rem .65rem; font-size: .82rem; text-decoration: none; }

/* Correctif 40 : icônes Appeler / WhatsApp toujours parfaitement rondes (Samsung, iPhone, grand texte) */
.ci { display: inline-flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: .45rem; }
.ci-btn { flex: 0 0 auto !important; box-sizing: border-box !important; width: 42px !important; height: 42px !important; min-width: 42px !important; min-height: 42px !important; max-width: 42px !important; max-height: 42px !important;
  padding: 0 !important; margin: 0 !important; aspect-ratio: 1 / 1; border-radius: 50% !important; line-height: 0 !important; overflow: visible; }
.ci-btn > svg, .ci-btn > .icon { width: 20px !important; height: 20px !important; flex: none; }
.ci-wa-t { line-height: 1.25 !important; font-size: 9px !important; bottom: -4px; right: -6px; }
.mission-leads .ci-btn { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; max-width: 38px !important; max-height: 38px !important; }
/* nom à gauche, icônes à droite, jamais en dessous */
.emergency-list li, .next-lead, .mission-leads .ml { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .6rem; }
.next-lead { grid-template-columns: auto minmax(0, 1fr) auto !important; }
.emergency-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.emergency-list li > span:first-child strong { display: block; line-height: 1.25; }
.svc-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; align-items: center; }
.svc-btn { min-width: 0; }
/* Grille du planning : total d'heures sur une ligne */
.pg-total, .pg-total strong, .pg-h, .pg-foot > span:first-child, .pg-table tfoot td { white-space: nowrap; }
.pg-total { min-width: 72px; }
/* Correctif 40 : carte « Besoin d'aide ? » */
.help-card h2 { display: flex; align-items: center; gap: .4rem; }
.help-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.help-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .7rem .2rem; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; min-height: 56px; }
.help-list li:first-child a { border-top: 0; }
.help-list a:active { background: var(--surface-2); }
.help-list strong { display: block; }
.help-list small { color: var(--muted); }
.help-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); flex: none; }
.help-list li:first-child .help-ico { background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); }
/* Correctif 40 : texte agrandi (A+) et grands réglages de police des téléphones : rien ne dépasse de l'écran */
.card .btn, .next-card .btn, .alert .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.card, .next-card, main { min-width: 0; }
.quick-actions a span { overflow-wrap: normal; word-break: normal; hyphens: manual; }
html[data-text] .quick-actions.qa-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-text] .quick-actions.qa-4 a { flex-direction: row; justify-content: flex-start; gap: .55rem; padding: .7rem .7rem; font-size: .9rem; text-align: left; }
@media (max-width: 360px) { .quick-actions.qa-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick-actions.qa-4 a { flex-direction: row; justify-content: flex-start; gap: .5rem; padding: .65rem; text-align: left; } }
html[data-text] .ci-btn { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; max-width: 44px !important; max-height: 44px !important; }
html[data-text] .next-lead { grid-template-columns: minmax(0, 1fr) auto !important; }
html[data-text] .next-lead > .icon { display: none; }
html[data-text] .ml-who { flex-direction: column; align-items: flex-start; gap: 0; white-space: normal; }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats-grid.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { min-width: 0; } .stat > div { min-width: 0; overflow-wrap: anywhere; }
/* Grand texte (A+) : une colonne seulement sur téléphone ; 2 colonnes sur tablette, 3 sur grand écran (avant : une carte par ligne partout) */
html[data-text] .stats-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { html[data-text] .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { html[data-text] .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-head { flex-wrap: wrap; row-gap: .3rem; }
.card-head .badge { white-space: normal; }
.seg.seg-radio { flex-wrap: wrap; max-width: 100%; }
.seg.seg-radio label { flex: 1 1 auto; min-width: 0; }
.seg.seg-radio label span { text-align: center; white-space: normal; }
html[data-text] .emergency-official { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emergency-official span { overflow-wrap: anywhere; }
.help-list small { line-height: 1.35; display: block; }

/* Correctif 41 : note et lieu de la mission */
.mission-loc { display: flex; align-items: center; gap: .35rem; margin: .25rem 0; color: var(--text); }
.mission-loc .icon { color: var(--accent); flex: none; }
.mission-note { margin: .45rem 0; padding: .55rem .7rem; border-radius: 10px; background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.mission-note p { margin: .15rem 0 0; font-size: .95rem; line-height: 1.4; }
.mission-note-h { display: flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.mission-note-me { background: #eef2ff; border-color: #a5b4fc; color: #312e81; }
[data-theme=dark] .mission-note { background: #3a2a06; border-color: #92400e; color: #fde68a; }
[data-theme=dark] .mission-note-me { background: #1e1b4b; border-color: #4338ca; color: #c7d2fe; }
.next-instr summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.pg-loc, .pg-snote { display: block; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-snote { color: #92400e; }
#info-dialog { width: min(560px, 94vw); }
#info-dialog .form { display: grid; gap: .7rem; }
#info-dialog label > .icon { vertical-align: -3px; color: var(--accent); }
.pg-day { position: relative; }
.pg-day-msg { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .15rem; padding: .1rem .35rem; border-radius: 999px; font-size: .72rem; color: var(--muted); background: var(--surface-2); text-decoration: none; }
.pg-day-msg:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.lbl-ic { display: inline-flex; align-items: center; gap: .35rem; }
.lbl-ic .icon { color: var(--accent); flex: none; }

/* Correctif 42 : fenêtre d'un créneau, lisible et calme */
#shift-dialog .dialog-head h2 { font-size: 1.35rem; line-height: 1.2; }
[data-sp-sub] { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; font-size: .95rem; color: var(--muted); margin-top: .2rem; }
[data-sp-sub] strong { color: var(--text); font-variant-numeric: tabular-nums; }
.sp-dot { opacity: .5; }
.sp-loc { margin-left: .2rem; padding: .1rem .5rem; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.sp-stats { display: block !important; margin: .8rem 0 .4rem; }
.sp-cov { display: grid; gap: .35rem; padding: .75rem .9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.sp-cov-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: 1rem; }
.sp-cov-top strong { font-size: 1.35rem; }
.sp-cov-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.sp-cov-bar span { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.sp-cov-bar.low span { background: #f59e0b; }
.sp-state { font-size: .82rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.sp-state.ok { background: var(--green-bg, #dcfce7); color: var(--green); }
.sp-state.miss { background: #fef3c7; color: #92400e; }
.sp-h { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.sp-people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 14px; overflow: visible; background: var(--surface); }
.sp-people > li { padding: .6rem .75rem; border-top: 1px solid var(--border); }
.sp-people > li:first-child { border-top: 0; }
.sp-people > li.is-declined { background: #fff7f7; }
[data-theme=dark] .sp-people > li.is-declined { background: #2a1416; }
.sp-p-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; }
.sp-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.sp-p-txt { min-width: 0; display: grid; gap: .2rem; }
.sp-p-txt > a { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1rem; }
.sp-p-txt > a:hover { color: var(--accent); text-decoration: underline; }
.sp-tags { display: flex; flex-wrap: wrap; gap: .25rem; }
.sp-tag { font-size: .72rem; font-weight: 600; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.sp-tag.t-green { background: #dcfce7; color: #166534; } .sp-tag.t-teal { background: #ccfbf1; color: #115e59; } .sp-tag.t-red { background: #fee2e2; color: #991b1b; }
.sp-tag.t-purple { background: #ede9fe; color: #5b21b6; } .sp-tag.t-amber { background: #fef3c7; color: #92400e; cursor: help; }
.sp-pnote { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sp-menu { position: relative; }
.sp-menu > summary { list-style: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; line-height: 1; cursor: pointer; color: var(--muted); border: 1px solid var(--border); background: var(--surface); }
.sp-menu > summary::-webkit-details-marker { display: none; }
.sp-menu[open] > summary, .sp-menu > summary:hover { color: var(--accent); border-color: var(--accent); }
.sp-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; padding: .35rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(15, 23, 42, .18); display: grid; gap: .15rem; }
.sp-menu-pop > button { text-align: left; border: 0; background: none; padding: .55rem .65rem; border-radius: 8px; font: inherit; color: var(--text); cursor: pointer; }
.sp-menu-pop > button:hover { background: var(--surface-2); }
.sp-menu-pop > button.danger { color: var(--red); }
.sp-menu-pop > button.danger:hover { background: #fee2e2; }
.sp-move { display: grid; gap: .25rem; padding: .45rem .65rem; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: .1rem 0; }
.sp-move select { font-size: .9rem; }
.sp-note-box { margin: .55rem 0 0 2.95rem; display: grid; gap: .4rem; }
.sp-repl { margin: .55rem 0 0 2.95rem; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.sp-repl form { margin: 0; }
.sp-repl-btn { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: .25rem .7rem; font: inherit; font-weight: 600; cursor: pointer; }
.sp-repl-btn:hover { background: var(--accent); color: #fff; }
.sp-empty { color: var(--muted); padding: .9rem; text-align: center; }
.sp-manage { display: flex !important; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .9rem 0; padding-top: .8rem; border-top: 1px solid var(--border); }
.sp-manage[hidden] { display: none !important; }
.sp-manage > form { margin: 0 0 0 auto; }
.sp-danger-link { border: 0; background: none; color: var(--red); font: inherit; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .2rem; text-decoration: underline; text-underline-offset: 3px; }
.sp-danger-link .icon { width: 15px; height: 15px; }
@media (max-width: 600px) { .sp-manage > form { margin-left: 0; width: 100%; } .sp-note-box, .sp-repl { margin-left: 0; } }
.sp-stats .sp-cov, .sp-stats .sp-cov * { text-align: left; }
.sp-stats .sp-cov-top > span { display: inline; }
.sp-stats .sp-cov-top strong { display: inline; font-size: 1.35rem; margin-right: .15rem; }
.sp-stats .sp-cov > small { display: block; }
.sp-state.over { background: #e0e7ff; color: #3730a3; }
.sp-manage { justify-content: flex-start !important; } .sp-manage > .btn { flex: 0 0 auto; }
/* Correctif 43 : gros plannings */
.pg-open-more { display: block; font-size: .78rem; font-weight: 600; padding: .3rem .2rem; }
.pg-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem .2rem; }
.pg-qform { display: inline-flex; margin: 0; }
.offline-note { position: sticky; top: 0; z-index: 60; padding: .6rem 1rem; background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; font-weight: 600; text-align: center; font-size: .92rem; }
.offline-note.is-back { background: #dcfce7; color: #166534; border-color: #86efac; cursor: pointer; }

/* ===== Correctif 44 — grille planning : lisibilité, densité, légende, états ===== */
.pg-viewbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; margin: .2rem 0 .6rem; }
.pg-density button { border: 0; background: none; font: inherit; font-size: .85rem; padding: .35rem .8rem; border-radius: 8px; color: var(--muted); cursor: pointer; min-height: 36px; }
.pg-density button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.pg-legend { flex: 1 1 320px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pg-legend summary { cursor: pointer; padding: .45rem .7rem; font-size: .88rem; font-weight: 600; display: flex; gap: .4rem; align-items: center; min-height: 36px; }
.pg-legend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1.2rem; padding: .2rem .8rem .8rem; font-size: .85rem; }
.pg-legend-grid > div { display: grid; gap: .35rem; align-content: start; }
.lg-item { display: flex; gap: .45rem; align-items: center; flex-wrap: nowrap; line-height: 1.35; }
.lg-card { display: inline-block; width: 26px; height: 16px; border-radius: 4px; border: 1px solid var(--border); border-left: 4px solid var(--green); background: var(--surface); flex: none; }
.lg-card.st-draft { border-style: dashed; border-left-style: solid; background: var(--surface-2); }
.lg-card.st-proposed { border-style: dashed; border-left-style: solid; border-left-color: var(--purple); background: var(--purple-bg); }
.lg-card.lg-open { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--surface)); }
.lg-warn { color: var(--red); font-weight: 700; }
.lg-bar { display: inline-block; width: 26px; height: 4px; border-radius: 2px; background: var(--red); }
.pg-hint { margin-top: .6rem; }

/* Étiquettes : texte foncé sur fond clair (contraste ≥ 4,5:1), jamais la couleur seule */
.pg-table .pg-tag { color: var(--text); background: var(--gray-bg); text-transform: none; letter-spacing: 0; font-weight: 600; border-radius: 4px; padding: 0 .3rem; white-space: nowrap; }
.pg-table .pg-tag.ok { background: var(--green-bg); color: var(--text); }
.pg-table .pg-tag.t-proposed { background: var(--purple-bg); color: var(--text); }
.pg-table .pg-tag.t-declined { background: var(--red-bg); color: var(--text); }
.pg-table .pg-h { color: var(--text); background: var(--green-bg); }
.pg-table .pg-h.over { color: var(--text); background: var(--red-bg); }
.pg-table .pg-unpub { font-weight: 500; }
.pg-table .pg-card.att-absent { opacity: 1; background: var(--surface-2); }
.pg-table .pg-card.declined { border-left-style: dashed; }

/* Confortable (par défaut) : lisible sans dézoomer */
.pg-table:not(.pg-compact) .pg-card { padding: .3rem .45rem; }
.pg-table:not(.pg-compact) .pg-card strong { font-size: .84rem; }
.pg-table:not(.pg-compact) .pg-card small { font-size: .75rem; color: var(--muted); }
.pg-table:not(.pg-compact) .pg-card .pg-foot, .pg-table:not(.pg-compact) .pg-foot { font-size: .72rem; flex-wrap: wrap; row-gap: .1rem; }
.pg-table:not(.pg-compact) .pg-tag { font-size: .68rem; }
.pg-table:not(.pg-compact) .pg-loc, .pg-table:not(.pg-compact) .pg-snote, .pg-table:not(.pg-compact) .pg-note { font-size: .72rem; }
.pg-table:not(.pg-compact) .pg-h { font-size: .72rem; padding: 0 .35rem; }
.pg-table:not(.pg-compact) .pg-age { font-size: .68rem; }
.pg-table:not(.pg-compact) .pg-missing { font-size: .68rem; }
.pg-table:not(.pg-compact) .pg-other { font-size: .72rem; color: var(--text); }
.pg-table:not(.pg-compact) .pg-person strong { font-size: .84rem; }
.pg-table:not(.pg-compact) .pg-open-row .pg-card.pg-open strong { font-size: .8rem; }
.pg-table:not(.pg-compact) .pg-open-row .pg-card.pg-open .pg-missing { font-size: .66rem; }
.pg-table:not(.pg-compact) .pg-tools button { min-width: 28px; min-height: 28px; }

/* Compact : plus de lignes à l'écran, tailles minimales tenues */
.pg-table.pg-compact .pg-card { padding: .2rem .4rem; margin-bottom: .2rem; }
.pg-table.pg-compact .pg-card strong { font-size: .76rem; }
.pg-table.pg-compact .pg-card small { font-size: .68rem; }
.pg-table.pg-compact .pg-loc, .pg-table.pg-compact .pg-snote, .pg-table.pg-compact .pg-note { display: none; }
.pg-table.pg-compact .pg-foot, .pg-table.pg-compact .pg-tag, .pg-table.pg-compact .pg-h, .pg-table.pg-compact .pg-age, .pg-table.pg-compact .pg-missing, .pg-table.pg-compact .pg-other { font-size: .66rem; }
.pg-table.pg-compact .pg-unpub { display: none; }

/* Enregistrement en cours / échec (glisser-déposer, actions rapides) */
.pg-card.is-saving { opacity: .55; pointer-events: none; position: relative; }
.pg-card.is-saving::after { content: ""; position: absolute; right: .4rem; bottom: .4rem; width: 12px; height: 12px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: pgspin .8s linear infinite; }
.pg-cell.is-saving { outline: 2px dashed var(--accent); outline-offset: -3px; }
.pg-table.is-busy [draggable="true"] { cursor: progress; }
@keyframes pgspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pg-card.is-saving::after { animation: none; } }
.pg-toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 90; background: var(--text); color: var(--surface); padding: .7rem 1rem; border-radius: 10px; box-shadow: var(--shadow); font-size: .92rem; max-width: min(92vw, 560px); }
.pg-toast.err { background: var(--red); color: #fff; }
.pg-legend .pg-tag { color: var(--text); background: var(--gray-bg); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .78rem; border-radius: 4px; padding: 0 .3rem; white-space: nowrap; flex: none; }
.pg-legend .pg-tag.ok { background: var(--green-bg); } .pg-legend .pg-tag.t-declined { background: var(--red-bg); }
.pg-legend .av-key { flex: none; }

/* ===== Correctif 45 — portail bénévole mobile ===== */
.notice-strip { display: flex; gap: .7rem; align-items: center; padding: .75rem .9rem; margin-bottom: 1rem; border-radius: 12px; background: var(--amber-bg); color: var(--text); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); text-decoration: none; }
.notice-strip:hover { text-decoration: none; }
.notice-strip > span { flex: 1; display: grid; gap: .1rem; } .notice-strip small { color: var(--muted); font-size: .82rem; }
.notice-strip > svg:first-child { color: var(--amber); flex: none; }

.nm-card { border-left: 5px solid var(--c, var(--accent)); padding: 1rem 1rem .9rem; display: grid; gap: .45rem; }
.nm-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.nm-kicker { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.nm-date { margin: 0; font-weight: 600; font-size: .95rem; }
.nm-time { margin: 0; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.nm-time small { font-size: .82rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.nm-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.nm-title small { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.nm-place { display: flex; gap: .55rem; align-items: center; margin: .1rem 0; padding: .55rem .7rem; border-radius: 10px; background: var(--surface-2); }
.nm-place > svg { color: var(--accent); flex: none; }
.nm-place span { display: grid; } .nm-place small { font-size: .72rem; color: var(--muted); } .nm-place strong { font-size: 1rem; }
.nm-notes { border: 1px solid var(--border); border-radius: 10px; padding: .1rem .7rem; }
.nm-notes summary { cursor: pointer; padding: .5rem 0; font-weight: 600; font-size: .9rem; display: flex; gap: .4rem; align-items: center; min-height: 40px; }
.nm-notes .mission-note { margin: 0 0 .6rem; }
.mission-note-sector { background: var(--surface-2); }
.nm-actions { display: grid; grid-template-columns: 2fr 1fr; gap: .5rem; margin-top: .2rem; }
.nm-actions .btn { justify-content: center; min-height: 46px; }
.nm-confirm { margin: 0; } .btn-block { width: 100%; justify-content: center; }

.ms-states { display: flex; flex-wrap: wrap; gap: .35rem; }
.ms { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: 999px; background: var(--gray-bg); color: var(--text); }
.ms-ok { background: var(--green-bg); } .ms-warn { background: var(--amber-bg); } .ms-todo { background: var(--blue-bg); } .ms-muted { background: transparent; border: 1px solid var(--border); color: var(--muted); }

.contact-sheet { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.contact-sheet summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; min-height: 44px; font-weight: 600; font-size: .92rem; }
.contact-sheet summary::-webkit-details-marker { display: none; }
.contact-sheet summary small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.contact-sheet summary::after { content: "▾"; color: var(--muted); } .contact-sheet[open] summary::after { content: "▴"; }
.contact-sheet ul { list-style: none; margin: 0; padding: 0 .7rem; }
.contact-sheet li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.cs-who { display: grid; } .cs-who small { color: var(--muted); font-size: .78rem; }
.cs-actions { display: flex; gap: .4rem; } .cs-actions .btn { min-height: 40px; }
.cs-chat { display: flex; gap: .4rem; align-items: center; padding: .6rem .7rem; border-top: 1px solid var(--border); font-size: .88rem; }

.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.home-tiles a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; padding: .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; min-height: 64px; }
.home-tiles a:hover { text-decoration: none; border-color: var(--accent); }
.home-tiles .ht-ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.home-tiles strong { font-size: .9rem; line-height: 1.2; } .home-tiles small { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.home-tiles .ht-alert .ht-ico { background: var(--red-bg); color: var(--red); }
@media (min-width: 700px) { .home-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hours-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 .6rem; }
.hours-sum div { background: var(--surface-2); border-radius: 10px; padding: .45rem .55rem; }
.hours-sum dt { font-size: .74rem; color: var(--muted); } .hours-sum dd { margin: 0; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.hours-card .small { margin: 0; }

.mday { margin: 0 0 1.1rem; }
.missions-card .mday { margin: .8rem 0 0; }
.mday-head h3 { margin: 0; font-size: 1rem; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.mday-sum { margin: .1rem 0 .45rem; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; } .mday-sum strong { color: var(--text); }
.mday-long { display: flex; gap: .4rem; align-items: flex-start; margin: 0 0 .45rem; padding: .45rem .6rem; border-radius: 8px; background: var(--blue-bg); font-size: .84rem; }
.mday-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.mday-item { display: grid; grid-template-columns: 3.4rem 1fr; gap: .2rem .6rem; padding: .6rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c, var(--accent)); scroll-margin-top: 80px; }
.mday-compact .mday-item { grid-template-columns: 3.2rem 1fr auto; padding: .5rem .6rem; background: var(--surface-2); }
.mday-item.is-declined { opacity: .75; border-left-style: dashed; } .mday-item.is-declined .mday-title { text-decoration: line-through; }
.mday-time { display: grid; align-content: start; font-variant-numeric: tabular-nums; } .mday-time strong { font-size: 1rem; } .mday-time small { color: var(--muted); font-size: .82rem; }
.mday-body { display: grid; gap: .2rem; min-width: 0; }
.mday-title { font-size: .95rem; line-height: 1.25; } .mday-meta { font-size: .8rem; color: var(--muted); }
.mday-place { font-size: .85rem; font-weight: 600; display: flex; gap: .25rem; align-items: center; } .mday-place svg { color: var(--accent); flex: none; }
.mday-info { font-size: .78rem; color: var(--muted); display: flex; gap: .25rem; align-items: center; }
.mday-st { align-self: start; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--blue-bg); white-space: nowrap; }
.mday-st.ok { background: var(--green-bg); } .mday-st.warn { background: var(--amber-bg); }
.mday-more { grid-column: 1 / -1; display: grid; gap: .5rem; margin-top: .3rem; }
.mday-more .mission-note { margin: 0; }
.mday-gap { list-style: none; text-align: center; font-size: .76rem; color: var(--muted); padding: .25rem 0; position: relative; }
.mday-gap::before { content: ""; position: absolute; left: 1.7rem; top: 0; bottom: 0; border-left: 2px dotted var(--border); }
.mday-gap.overlap { color: var(--text); background: var(--amber-bg); border-radius: 8px; margin: .3rem 0; padding: .35rem .5rem; } .mday-gap.overlap::before { display: none; }
.mday-list > .mday-item + .mday-item { margin-top: .45rem; }

.past-list { list-style: none; margin: 0; padding: 0; }
.past-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.past-list li:first-child { border-top: 0; } .past-list li > span:first-child { display: grid; min-width: 0; }
.past-h { display: grid; justify-items: end; gap: .15rem; font-variant-numeric: tabular-nums; }

/* Navigation basse : zones de sécurité iOS / Android, contenu jamais masqué */
.is-volunteer .content { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
.bottom-nav { padding-left: max(.2rem, env(safe-area-inset-left, 0px)); padding-right: max(.2rem, env(safe-area-inset-right, 0px)); }
.bottom-nav a { min-height: 48px; justify-content: center; }
@media (min-width: 860px) { .is-volunteer .content { padding-bottom: 2rem; } }
/* correctif 45 : carte plus compacte */
.nm-card { gap: .4rem; }
.nm-kicker { text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; color: var(--text); }
.nm-kicker::first-line { color: var(--text); }
.nm-time { font-size: 1.35rem; }
.nm-place { padding: .45rem .6rem; }
.nm-card .ms-states { flex-wrap: nowrap; overflow: hidden; }
.nm-card .ms, .mday .ms { font-size: .74rem; padding: .12rem .45rem; white-space: nowrap; }
.nm-notes summary { min-height: 38px; padding: .35rem 0; font-size: .86rem; }
.contact-sheet summary { font-size: .88rem; min-height: 42px; }
.contact-sheet summary > span { white-space: nowrap; }
.home-tiles a { padding: .6rem; column-gap: .5rem; min-height: 58px; }
.home-tiles .ht-ico { width: 34px; height: 34px; }
.home-tiles strong { font-size: .86rem; } .home-tiles small { font-size: .74rem; }
@media (max-width: 360px) { .nm-card .ms-states { flex-wrap: wrap; } .contact-sheet summary small { display: none; } }
.nm-card { grid-template-columns: minmax(0, 1fr); } .nm-card > * { min-width: 0; }

/* ===== Correctif 46 — Absences ===== */
.ab-head { align-items: flex-end; }
.ab-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.ab-kpi { display: flex; align-items: baseline; gap: .55rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; min-width: 0; }
a.ab-kpi:hover { border-color: var(--accent); text-decoration: none; }
.ab-kpi-n { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ab-kpi > span:last-child { font-size: .85rem; color: var(--muted); line-height: 1.2; }
.ab-kpi.is-warn { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.ab-kpi.is-alert { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
@media (max-width: 700px) { .ab-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ab-layout { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .ab-layout { grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); } .ab-form { position: sticky; top: 76px; } }
.ab-layout > .card { margin: 0; min-width: 0; }
.ab-reg-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.ab-reg-top h2 { margin: 0; }
.ab-reg-top .seg a small { opacity: .7; margin-left: .15rem; font-variant-numeric: tabular-nums; }
.ab-reg-top .seg a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.ab-filters { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .8rem; }
.ab-filters label { margin: 0; }
.ab-filters select, .ab-filters input { min-height: 38px; padding-top: .3rem; padding-bottom: .3rem; font-size: .9rem; }
.ab-search { flex: 1 1 220px; position: relative; display: flex; align-items: center; }
.ab-search > svg { position: absolute; left: .65rem; color: var(--muted); pointer-events: none; }
.ab-search input { width: 100%; padding-left: 2.1rem; }

.ab-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.ab-empty > svg { color: var(--green); } .ab-empty p { margin: .3rem 0; } .ab-empty strong { color: var(--text); }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ab-item { border: 1px solid var(--border); border-radius: 14px; padding: .8rem .9rem; display: grid; gap: .5rem; background: var(--surface); transition: border-color .15s; }
.ab-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.ab-item.is-urgent { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); box-shadow: inset 4px 0 0 var(--red); }
.ab-item.is-closed { background: var(--surface-2); }
.ab-item.is-closed .ab-who strong, .ab-item.is-closed .ab-days li { color: var(--muted); }
.ab-main { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.ab-who { display: flex; gap: .6rem; align-items: center; color: var(--text); text-decoration: none; min-width: 0; }
.ab-who:hover strong { text-decoration: underline; }
.ab-who > span { display: grid; min-width: 0; } .ab-who strong { font-size: 1rem; }
.ab-who small { font-size: .76rem; color: var(--muted); }
.ab-status { flex: none; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.ab-status.on { background: var(--amber-bg); color: var(--text); } .ab-status.off { background: var(--green-bg); color: var(--text); }
.ab-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.ab-days li { font-size: .8rem; font-weight: 600; padding: .15rem .5rem; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.ab-days li.is-today { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 50%, transparent); }
.ab-days li.is-past { opacity: .6; }
.ab-facts { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ab-handling { font-size: .82rem; color: var(--muted); }
.ab-detail { margin: 0; background: var(--surface-2); border-radius: 8px; padding: .55rem .7rem; font-size: .9rem; display: flex; gap: .4rem; align-items: flex-start; }
.ab-actions { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding-top: .45rem; border-top: 1px solid var(--border); }
.ab-actions form { margin: 0; }
.ab-del { margin-left: auto; }
.ab-del > summary { list-style: none; } .ab-del > summary::-webkit-details-marker { display: none; }
.ab-del-btn { color: var(--red) !important; }
.ab-del[open] { flex-basis: 100%; margin-left: 0; }
.ab-del[open] > summary { display: none; }
.ab-del-box { margin-top: .2rem; border: 1px solid color-mix(in srgb, var(--red) 40%, var(--border)); background: var(--red-bg); border-radius: 10px; padding: .7rem .8rem; display: grid; gap: .5rem; }
.ab-del-box p { margin: 0; }
.ab-purge { margin: .9rem 0 0; text-align: right; } .ab-purge .btn { color: var(--red); }

.ab-steps { display: grid; gap: .9rem; }
.ab-step { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; }
.ab-step > div { min-width: 0; display: grid; gap: .6rem; }
.ab-step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-top: .1rem; }
.ab-form .abs-days { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.ab-form .abs-day { padding: .35rem .5rem; gap: .35rem; }
.ab-form .abs-day strong { font-size: .85rem; }
.ab-handle { border: 0; padding: 0; margin: 0; display: grid; gap: .35rem; }
.ab-handle legend { font-weight: 600; margin-bottom: .3rem; font-size: .92rem; }
.ab-radio { display: flex !important; flex-direction: row !important; gap: .55rem; align-items: flex-start; padding: .5rem .65rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; margin: 0; }
.ab-radio:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.ab-radio input { margin-top: .2rem; } .ab-radio span { display: grid; } .ab-radio small { color: var(--muted); font-size: .78rem; font-weight: 400; }

/* ===== Correctif 46 — Tableau de bord ===== */
.db-top { display: grid; gap: .75rem; margin-bottom: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .db-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .db-cover { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .db-top { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .db-cover { grid-column: auto; } }
.db-cover { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-width: 0; }
.db-cover:hover { text-decoration: none; border-color: var(--accent); }
.db-ring { --clr: var(--accent); flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--clr) calc(var(--p) * 1%), var(--surface-2) 0); }
.db-ring::before { content: ""; grid-area: 1 / 1; width: 72px; height: 72px; border-radius: 50%; background: var(--surface); }
.db-ring strong { grid-area: 1 / 1; font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; } .db-ring strong small { font-size: .8rem; margin-left: 1px; }
.db-low .db-ring { --clr: var(--red); } .db-mid .db-ring { --clr: var(--amber); } .db-ok .db-ring { --clr: var(--green); }
.db-cover-txt { display: grid; gap: .15rem; min-width: 0; }
.db-cover-txt > small { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.db-cover-txt > strong { font-size: 1.15rem; line-height: 1.25; }
.db-cover-sub { font-size: .9rem; color: var(--muted); } .db-cover-sub b { color: var(--red); font-size: 1.05rem; }
.db-ok .db-cover-sub b { color: var(--text); }
.db-kpi { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-content: center; padding: .95rem 1rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-width: 0; }
a.db-kpi:hover { text-decoration: none; border-color: var(--accent); }
.db-kpi-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; align-self: center; }
.db-kpi small { color: var(--muted); font-size: .8rem; line-height: 1.25; }
.db-kpi strong { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.db-kpi strong .muted { font-size: .9rem; font-weight: 600; }
.db-kpi-ico.c-green { background: var(--green-bg); color: var(--green); } .db-kpi-ico.c-teal { background: color-mix(in srgb, var(--teal, #0d9488) 14%, transparent); color: var(--teal, #0d9488); } .db-kpi-ico.c-purple { background: var(--purple-bg); color: var(--purple); }
.db-todo h2 { display: flex; align-items: center; gap: .45rem; margin-bottom: .5rem; }
.db-todo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.db-todo li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.db-todo li:first-child { border-top: 0; }
.db-todo-t { flex: 1; min-width: 0; } .db-todo-t strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.db-todo-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.db-todo-ico.c-amber { background: var(--amber-bg); color: var(--amber); } .db-todo-ico.c-purple { background: var(--purple-bg); color: var(--purple); } .db-todo-ico.c-red { background: var(--red-bg); color: var(--red); } .db-todo-ico.c-blue { background: var(--blue-bg); color: var(--blue); }
.db-allgood { display: flex; gap: .5rem; align-items: center; margin: 0; color: var(--green); font-weight: 600; }
html[data-text] .db-top { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { html[data-text] .db-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } html[data-text] .db-cover { grid-column: 1 / -1; } }

/* ===== Correctif 46 — Messagerie ===== */
.chat-search { position: relative; display: flex; align-items: center; margin: 0 0 .7rem; }
.chat-search > svg { position: absolute; left: .75rem; color: var(--muted); pointer-events: none; }
.chat-search input { width: 100%; padding-left: 2.3rem; border-radius: 999px; min-height: 44px; }
.chat-list a { border-radius: 14px; padding: .75rem .9rem; }
.chat-list a.unread { border-left-width: 1px; border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.chat-list a.unread small.muted:first-of-type { color: var(--text); }
.chat-kind { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 0 .3rem; margin-right: .35rem; vertical-align: middle; }
.chat-thread { gap: .2rem; }
.chat-day { list-style: none; display: flex; justify-content: center; margin: .9rem 0 .5rem; position: sticky; top: 64px; z-index: 2; pointer-events: none; }
.chat-day span { font-size: .74rem; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .7rem; box-shadow: var(--shadow); }
.msg { margin-top: .45rem; }
.msg.cont { margin-top: 0; }
.msg.cont .msg-bubble { border-top-left-radius: 6px; }
.msg.mine.cont .msg-bubble { border-top-right-radius: 6px; border-top-left-radius: 16px; }
.msg-bubble { line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg-time { opacity: .85; }
.msg-seen { display: none; color: var(--accent); font-weight: 700; }
.msg.mine.seen:not(:has(~ .msg.mine.seen)) .msg-seen { display: inline; }
.chat-quick { display: flex; gap: .35rem; overflow-x: auto; padding: .4rem 0 .3rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chat-quick::-webkit-scrollbar { display: none; }
.chat-quick .chip { flex: none; white-space: nowrap; min-height: 36px; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; color: var(--text); }
.chat-quick .chip:hover { border-color: var(--accent); }
.chat-send { box-shadow: 0 -6px 16px rgba(0,0,0,.04); }
.ab-search, .chat-search { flex-direction: row !important; position: relative; }
.ab-search > svg, .chat-search > svg { top: 50%; transform: translateY(-50%); z-index: 1; }

/* ===== Correctif 47 — Bénévoles ===== */
.vl-quick { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.vl-qf { display: flex; align-items: baseline; gap: .4rem; padding: .5rem .85rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .9rem; }
.vl-qf strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.vl-qf:hover { text-decoration: none; border-color: var(--accent); }
.vl-qf.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.vl-qf.warn:not(.on) strong { color: var(--red); }
.vl-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin: 0 0 1rem; }
.vl-filters > label { margin: 0; }
.vl-filters select, .vl-filters input { min-height: 44px; }
.vl-search { flex: 1 1 280px; position: relative; display: flex !important; flex-direction: row !important; align-items: center; }
.vl-search > svg { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 1; }
.vl-search input { width: 100%; padding-left: 2.5rem; border-radius: 12px; }
.vl-more { position: relative; }
.vl-more > summary { list-style: none; min-height: 44px; } .vl-more > summary::-webkit-details-marker { display: none; }
.vl-more-box { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(92vw, 560px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
@media (max-width: 600px) { .vl-more-box { position: static; grid-template-columns: 1fr; width: 100%; margin-top: .5rem; } .vl-more { flex-basis: 100%; } }
.vl-card { padding: 0; overflow: hidden; }
.vl-count { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.vl-count .check { margin: 0; }
.vl-list { list-style: none; margin: 0; padding: 0; }
.vl-row { display: grid; grid-template-columns: auto minmax(220px, 1.3fr) minmax(0, 1.6fr) 110px auto; gap: .8rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--border); transition: background .12s; }
.vl-row:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.vl-row.is-picked { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.vl-row.is-off { opacity: .55; }
.vl-pick { margin: 0; display: grid; place-items: center; width: 28px; height: 28px; cursor: pointer; }
.vl-pick input { width: 18px; height: 18px; }
.vl-who { display: flex; gap: .7rem; align-items: center; color: var(--text); text-decoration: none; min-width: 0; }
.vl-who:hover strong { color: var(--accent); }
.vl-who > span { display: grid; gap: .1rem; min-width: 0; }
.vl-who strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-who small { font-size: .8rem; color: var(--muted); }
.vl-minor { color: var(--amber); font-weight: 700; }
.vl-roles { display: flex; flex-wrap: wrap; gap: .25rem; } .vl-roles span { font-size: .7rem; font-weight: 600; padding: 0 .4rem; border-radius: 4px; background: var(--purple-bg); color: var(--text); }
.vl-sectors { display: flex; flex-wrap: wrap; gap: .3rem; min-width: 0; }
.vl-sec { font-size: .8rem; font-weight: 600; padding: .15rem .55rem .15rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: var(--text); display: inline-flex; align-items: center; gap: .3rem; }
.vl-sec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.vl-sec.wait { background: transparent; border-style: dashed; color: var(--muted); }
.vl-none { font-size: .8rem; color: var(--red); font-weight: 600; }
.vl-hours { display: grid; text-align: right; font-variant-numeric: tabular-nums; } .vl-hours small { font-size: .74rem; color: var(--muted); }
.vl-contact { display: flex; align-items: center; gap: .3rem; justify-content: flex-end; }
.vl-contact .icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); background: var(--surface); }
.vl-contact .icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.vl-st { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; background: var(--green-bg); color: var(--text); margin-left: .2rem; white-space: nowrap; }
.vl-st.st-invited { background: var(--blue-bg); } .vl-st.st-disabled { background: var(--gray-bg); }
@media (max-width: 900px) {
  .vl-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pick who contact" ". sec hours"; row-gap: .4rem; }
  .vl-pick { grid-area: pick; } .vl-who { grid-area: who; } .vl-sectors { grid-area: sec; } .vl-hours { grid-area: hours; } .vl-contact { grid-area: contact; }
  .vl-row:not(:has(.vl-pick)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who contact" "sec hours"; }
  .vl-st { display: none; }
}
.vl-card .pager { padding: .8rem 1rem; }
.vl-bulk { position: sticky; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 30; margin: .8rem auto 0; max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 16px; background: var(--text); color: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.vl-bulk[hidden] { display: none; }
.vl-bulk > span { font-size: .95rem; }
.vl-bulk-sel { flex: 1 1 200px; margin: 0; } .vl-bulk-sel select { width: 100%; min-height: 42px; }
.vl-bulk .btn-ghost { color: var(--surface); }
@media (max-width: 860px) { .is-staff .vl-bulk { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }

/* ===== Correctif 47 — Messagerie ===== */
.chat-page { max-width: 860px; margin: 0 auto; }
.chat-tops { display: grid; gap: .5rem; margin: 0 0 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chat-top { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.chat-top:hover { text-decoration: none; border-color: var(--accent); }
.chat-top > span:nth-child(2) { flex: 1; display: grid; min-width: 0; } .chat-top small { color: var(--muted); font-size: .8rem; }
.chat-top > svg:last-child { color: var(--muted); }
.chat-top-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); flex: none; }
.chat-top-ico.svc { background: color-mix(in srgb, var(--c, var(--red)) 15%, transparent); color: var(--c, var(--red)); }
.chat-listcard { padding: .5rem; }
.chat-list { gap: 0; margin: 0; }
.chat-list a { border: 0; border-radius: 12px; padding: .65rem .7rem; background: transparent; min-height: 64px; }
.chat-list a:hover { background: var(--surface-2); }
.chat-list a.unread { border: 0; background: transparent; }
.chat-list a.unread .chat-meta small { color: var(--text); font-weight: 600; }
.chat-list a.current { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.chat-list .avatar, .chat-list .chat-avatar.group { width: 46px; height: 46px; flex: none; }
.chat-title { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.chat-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.chat-kind { flex: none; margin: 0; }
.chat-meta small { color: var(--muted); font-size: .86rem; }
.chat-side small { font-size: .75rem; color: var(--muted); }
.chat-list a.unread .chat-side small { color: var(--accent); font-weight: 700; }
.chat-unread { min-width: 22px; height: 22px; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; display: inline-grid; place-items: center; }
.chat-quiet { margin-top: .4rem; border-top: 1px solid var(--border); padding-top: .3rem; }
.chat-quiet > summary { cursor: pointer; padding: .55rem .7rem; font-size: .86rem; font-weight: 600; color: var(--muted); list-style: none; }
.chat-quiet > summary::before { content: "▸ "; } .chat-quiet[open] > summary::before { content: "▾ "; }
.chat-list-quiet a { min-height: 52px; } .chat-list-quiet .avatar, .chat-list-quiet .chat-avatar.group { width: 36px; height: 36px; }
.chat-hint { color: var(--muted); padding: .4rem .7rem; }
.chat-search { margin: .2rem .2rem .5rem; }
/* Conversation */
.chat-aside { display: none; }
.chat-head .ci-btn { width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; }
.chat-head .ci-btn svg { width: 17px; height: 17px; }
.chat-head .ci-wa { display: none; }
.chat-head { border-bottom-width: 1px; border-bottom-color: var(--border); }
@media (min-width: 1000px) {
  .chat-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 120px); min-height: 520px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
  .chat-aside { display: flex; flex-direction: column; border-right: 1px solid var(--border); overflow-y: auto; padding: .5rem; background: var(--surface); }
  .chat-aside-head { display: flex; justify-content: space-between; align-items: center; padding: .4rem .5rem .6rem; font-size: 1.1rem; }
  .chat-main { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
  .chat-main > .chat-head { padding: .7rem 1rem; margin: 0; background: var(--surface); }
  .chat-main > .chat-head > a.icon-btn { display: none; }
  .chat-main > .chat-members { margin: 0; padding: .3rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
  .chat-scroll { flex: 1; overflow-y: auto; padding: 0 1.2rem; }
  .chat-day { top: 0; }
  .chat-main > .chat-quick { padding: .5rem 1rem .2rem; }
  .chat-main > .chat-send { position: static; padding: .5rem 1rem .7rem; background: var(--bg); box-shadow: none; }
  .chat-main > .chat-note { margin: 0; padding: 0 1rem .6rem; }
  .msg { max-width: 70%; }
}

/* ===== Correctif 47 — Absences : choix des jours en pastilles ===== */
.ab-form .abs-days, .abs-self .abs-days { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .35rem; }
.ab-form .abs-day, .abs-self .abs-day { position: relative; display: grid !important; place-items: center; text-align: center; padding: .45rem .2rem; border-radius: 12px; min-height: 58px; }
.ab-form .abs-day input, .abs-self .abs-day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ab-form .abs-day span, .abs-self .abs-day span { display: grid; justify-items: center; line-height: 1.15; pointer-events: none; }
.ab-form .abs-day strong, .abs-self .abs-day strong { font-size: .85rem; }
.ab-form .abs-day:has(input:checked), .abs-self .abs-day:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.ab-form .abs-day:has(input:checked) small, .abs-self .abs-day:has(input:checked) small { color: #fff; opacity: .85; }
.ab-form .abs-day:has(input:focus-visible), .abs-self .abs-day:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.my-abs ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.my-abs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: 10px; background: var(--amber-bg); }
.my-abs h2 { display: flex; gap: .4rem; align-items: center; margin: 0; }
.ab-days-inline { display: flex; flex-wrap: wrap; gap: .3rem; } .ab-days-inline span { font-weight: 700; font-size: .85rem; background: var(--surface); border-radius: 6px; padding: .1rem .45rem; }

/* ===== Correctif 47 — Tableau de bord : barres lisibles ===== */
.db-cols { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 1000px) { .db-cols { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.db-cols > .card { margin: 0; }
.db-cols .card-head { align-items: baseline; gap: .5rem; justify-content: flex-start; }
.db-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.db-bar { display: grid; grid-template-columns: minmax(110px, 190px) minmax(60px, 1fr) 104px; gap: .7rem; align-items: center; }
.db-bar-l { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: .45rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-bar-l i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.db-bar-t { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.db-bar-t > span { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.db-mid .db-bar-t > span { background: var(--amber); } .db-low .db-bar-t > span { background: var(--red); }
.db-bar-n { display: grid; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.15; }
.db-bar-n strong { font-size: .95rem; } .db-bar-n small { font-size: .74rem; color: var(--muted); }
.db-low .db-bar-n small { color: var(--red); font-weight: 600; }
@media (max-width: 560px) { .db-bar { grid-template-columns: minmax(0, 1fr) 90px; } .db-bar-t { grid-column: 1 / -1; grid-row: 2; } }
.db-more > summary { cursor: pointer; font-weight: 600; display: flex; gap: .4rem; align-items: center; list-style: none; }
.db-more[open] > summary { margin-bottom: .8rem; }
.db-more h3 { font-size: .95rem; margin: 0 0 .5rem; }
.chat-empty { text-align: center; padding: 3rem 1rem !important; font-size: .95rem; }
.chat-empty::before { content: "💬"; display: block; font-size: 2.2rem; margin-bottom: .4rem; }

/* ===== Correctif 48 — Absences : déclaration à gauche, registre à droite ===== */
@media (min-width: 1100px) { .ab-layout { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.65fr); } }
.ab-form { border-top: 4px solid var(--accent); }
.ab-form h2 { display: flex; align-items: center; gap: .5rem; }
.ab-register .ab-empty { padding: 3.5rem 1rem; }
.ab-register .ab-empty > svg { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: var(--green-bg); }
.ab-kpi { position: relative; overflow: hidden; padding: .9rem 1rem; }
.ab-kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--border); }
.ab-kpi.is-warn::after { background: var(--amber); } .ab-kpi.is-alert::after { background: var(--red); }
.vl-add { position: relative; display: inline-block; }
.vl-add > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 600; color: var(--accent); padding: .15rem .5rem; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.vl-add > summary::-webkit-details-marker { display: none; }
.vl-add > summary:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.vl-add-pop { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: 260px; display: grid; gap: .5rem; padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.vl-add-pop label { margin: 0; display: grid; gap: .3rem; }
.add-sector { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.add-sector label { flex: 1 1 220px; margin: 0; } .add-sector label > span { display: flex; gap: .3rem; align-items: center; font-weight: 600; }
.vl-sec em { font-style: normal; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--accent); margin-left: .15rem; }
/* Messagerie : accueil en deux colonnes sur ordinateur */
.chat-page:has(.chat-home) { max-width: none; }
.chat-aside-home { display: block; }
.chat-welcome { display: none; }
@media (max-width: 999px) { .chat-home { display: block; } .chat-aside-home { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .5rem; } }
@media (min-width: 1000px) {
  .chat-home { height: calc(100vh - 290px); min-height: 460px; }
  .chat-welcome { display: grid; place-items: center; text-align: center; padding: 2rem; }
  .chat-welcome-in { max-width: 380px; display: grid; justify-items: center; gap: .6rem; }
  .chat-welcome-in h2 { margin: 0; }
  .chat-welcome-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
}

/* ===== Correctif 48 — finition graphique commune ===== */
:root { --shadow: 0 1px 2px rgba(20, 24, 45, .04), 0 6px 24px rgba(20, 24, 45, .06); --radius: 16px; --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-weight: 700; letter-spacing: -.01em; }
.page-head { margin-bottom: 1.25rem; align-items: flex-end; }
.page-head p.muted { margin: .2rem 0 0; font-size: .95rem; }
.card { border-color: color-mix(in srgb, var(--border) 80%, transparent); }
.card > h2:first-child, .card-head h2 { font-size: 1.05rem; }
.btn { font-weight: 600; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-danger) { box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 12px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--ring); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input, select, textarea { transition: border-color .15s, box-shadow .15s; }
.badge { font-weight: 700; letter-spacing: .01em; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, transparent); }
.empty { padding: 2.5rem 1rem; }
/* Cartes secteur */
.sector-card { border-top-width: 0; position: relative; padding-top: 1.3rem; transition: box-shadow .15s, transform .15s; }
.sector-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--c); }
.sector-card:hover { box-shadow: 0 10px 30px rgba(20, 24, 45, .10); transform: translateY(-1px); }
.sector-card .progress { height: 8px; border-radius: 999px; }
.sector-card .sc-people dd { font-size: 1rem; }
.sector-card .c-green { color: var(--green); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .btn, .sector-card { transition: none; } .sector-card:hover { transform: none; } }

/* ===== Correctif 49 — Bénévoles ===== */
.vl-card { overflow: visible; }  /* avant : la fenêtre « + Secteur » de la dernière ligne était coupée */
.vl-card > .vl-count { border-radius: var(--radius) var(--radius) 0 0; }
.vl-list > .vl-row:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.vl-add.up .vl-add-pop { top: auto; bottom: calc(100% + 6px); }
.vl-add[open] > summary { background: var(--accent); color: #fff; border-style: solid; }
.vl-qf.muted:not(.on) { color: var(--muted); border-style: dashed; }
.vl-filters select[name=tri] { min-width: 200px; }
.vl-analysis { padding: 0; }
.vl-analysis > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; }
.vl-analysis > summary::-webkit-details-marker { display: none; }
.vl-analysis > summary::after { content: "▾"; margin-left: auto; color: var(--muted); } .vl-analysis[open] > summary::after { content: "▴"; }
.vl-analysis > summary > svg { color: var(--accent); }
.vl-an-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; padding: 0 1rem .8rem; }
.vl-an-kpis > div { background: var(--surface-2); border-radius: 12px; padding: .7rem .8rem; display: grid; }
.vl-an-kpis strong { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; } .vl-an-kpis small { color: var(--muted); font-size: .8rem; }
.vl-an-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; padding: .4rem 1rem 1rem; border-top: 1px solid var(--border); }
.vl-an-cols h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .6rem 0 .5rem; }
.vl-an-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.vl-an-bars li { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(60px, 1.4fr) 32px; gap: .5rem; align-items: center; font-size: .86rem; }
.vl-an-bars li > span:first-child { display: flex; align-items: center; gap: .35rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-an-bars .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.vl-an-t { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; } .vl-an-t > i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--accent)); }
.vl-an-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.vl-an-top { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .9rem; } .vl-an-top li { display: flex; justify-content: space-between; gap: .5rem; } .vl-an-top b { font-variant-numeric: tabular-nums; }
.vl-bulk-sep { width: 1px; align-self: stretch; background: color-mix(in srgb, var(--surface) 30%, transparent); }
.vl-bulk-rel { margin: 0; color: var(--surface); } .vl-bulk-rel span { color: var(--surface); }
.vl-bulk .vl-bulk-arch { background: transparent; color: var(--surface); border-color: color-mix(in srgb, var(--surface) 50%, transparent); }
.vl-row.is-arch { opacity: .7; }
.vl-st.st-archived { background: var(--gray-bg); }
.arch-box { position: relative; display: inline-block; } .arch-box > summary { list-style: none; } .arch-box > summary::-webkit-details-marker { display: none; }
.arch-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(90vw, 340px); display: grid; gap: .5rem; padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.arch-pop p { margin: 0; }
.vol-archived-note { display: flex; gap: .5rem; align-items: center; }

/* ===== Correctif 50 — Espace bénévole : en-tête, équipe, raccourcis, barre du bas ===== */
.vh-hero { position: relative; overflow: hidden; margin: -.25rem 0 1rem; padding: 1.1rem 1.1rem 1rem; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 55%, #ffb36b) 0%, transparent 55%), linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #1e2a4a));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.vh-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.vh-top { display: flex; align-items: center; gap: .8rem; }
.vh-top .avatar { width: 56px; height: 56px; border: 3px solid rgba(255,255,255,.5); font-size: 1.2rem; flex: none; }
.vh-hello p { margin: 0; opacity: .85; font-size: .95rem; } .vh-hello h1 { margin: 0; color: #fff; font-size: 1.7rem; }
.vh-ev { margin: .7rem 0 .8rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .95rem; }
.vh-j { background: rgba(255,255,255,.22); border-radius: 999px; padding: .15rem .6rem; font-weight: 800; font-size: .85rem; backdrop-filter: blur(4px); }
.vh-j.live { background: #fff; color: var(--accent); }
.vh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; position: relative; z-index: 1; }
.vh-stats a { display: grid; gap: .05rem; padding: .55rem .6rem; border-radius: 14px; background: rgba(255,255,255,.16); color: #fff; text-decoration: none; backdrop-filter: blur(6px); }
.vh-stats a:hover { background: rgba(255,255,255,.24); text-decoration: none; }
.vh-stats strong { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.vh-stats small { font-size: .74rem; opacity: .9; line-height: 1.2; }
/* Avec vous sur cette mission */
.nm-team { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.nm-team-av { display: flex; flex: none; }
.nm-team-av i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; background: var(--accent); border: 2px solid var(--surface); margin-left: -8px; }
.nm-team-av i:first-child { margin-left: 0; }
.nm-team-av i:nth-child(2) { background: #f97316; } .nm-team-av i:nth-child(3) { background: #0ea5e9; } .nm-team-av i:nth-child(4) { background: #16a34a; } .nm-team-av i:nth-child(5) { background: var(--muted); }
.nm-team > span:last-child { display: grid; min-width: 0; } .nm-team small { font-size: .74rem; color: var(--muted); } .nm-team strong { font-size: .9rem; line-height: 1.3; }
/* Carte prochaine mission : plus douce */
.nm-card { border-left: 0; border-radius: 20px; position: relative; overflow: hidden; padding-left: 1.2rem; }
.nm-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--accent)); }
/* Raccourcis : icônes en couleur */
.home-tiles a { border-radius: 16px; box-shadow: 0 1px 2px rgba(20,24,45,.04); transition: transform .12s, box-shadow .12s; }
.home-tiles a:active { transform: scale(.98); }
.home-tiles a:nth-child(1) .ht-ico { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.home-tiles a:nth-child(2) .ht-ico { background: var(--blue-bg); color: var(--blue); }
.home-tiles a:nth-child(3) .ht-ico { background: var(--green-bg); color: var(--green); }
.home-tiles a:nth-child(4) .ht-ico { background: var(--purple-bg); color: var(--purple); }
.home-tiles a:nth-child(5) .ht-ico { background: var(--amber-bg); color: var(--amber); }
.home-tiles .ht-ico { width: 40px; height: 40px; border-radius: 12px; }
/* Barre du bas : pastille sur l'onglet actif */
.bottom-nav { backdrop-filter: saturate(160%) blur(12px); background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 -6px 20px rgba(20,24,45,.06); }
.bottom-nav a { position: relative; font-weight: 600; }
.bottom-nav a > svg, .bottom-nav a .bn-icon { padding: 3px 14px; border-radius: 999px; box-sizing: content-box; transition: background .15s; }
.bottom-nav a.active > svg, .bottom-nav a.active .bn-icon { background: color-mix(in srgb, var(--accent) 14%, transparent); }
/* Bandeaux d'information plus discrets */
.is-volunteer .alert { border-radius: 16px; }
.is-volunteer .card { border-radius: 20px; }
.mday-team { margin: 0; display: flex; gap: .35rem; align-items: flex-start; font-size: .85rem; color: var(--muted); } .mday-team strong { color: var(--text); font-weight: 600; } .mday-team svg { flex: none; margin-top: 2px; color: var(--accent); }

/* ===== Correctif 51 — Missions en boîtes qui s'ouvrent et se ferment ===== */
.mday-item, .mday-compact .mday-item { display: block; padding: 0; overflow: hidden; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c, var(--accent)); box-shadow: 0 1px 2px rgba(20,24,45,.04); }
.mbox > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3.3rem minmax(0, 1fr) auto 20px; gap: .2rem .6rem; align-items: center; padding: .7rem .75rem; min-height: 64px; -webkit-tap-highlight-color: transparent; }
.mbox > summary::-webkit-details-marker { display: none; }
.mbox > summary:hover { background: color-mix(in srgb, var(--c, var(--accent)) 5%, var(--surface)); }
.mbox > summary:focus-visible { box-shadow: inset var(--ring); }
.mbox .mday-body { display: grid; gap: .1rem; min-width: 0; }
.mbox .mday-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbox .mday-st { align-self: center; }
.mday-flag { display: inline-flex; align-items: center; gap: .15rem; color: var(--amber); font-weight: 700; }
.mbox-chev { color: var(--muted); display: grid; place-items: center; transition: transform .2s ease; }
.mbox[open] .mbox-chev { transform: rotate(90deg); color: var(--accent); }
.mbox[open] > summary { border-bottom: 1px dashed var(--border); background: color-mix(in srgb, var(--c, var(--accent)) 6%, var(--surface)); }
.mbox-in { display: grid; gap: .6rem; padding: .75rem .8rem .9rem; animation: mboxIn .18s ease-out; }
.mbox-in > .mday-place { margin: 0; display: flex; gap: .5rem; align-items: center; padding: .5rem .65rem; border-radius: 10px; background: var(--surface-2); }
.mbox-in > .mday-place span { display: grid; } .mbox-in > .mday-place small { font-size: .72rem; color: var(--muted); font-weight: 400; } .mbox-in > .mday-place strong { font-size: .95rem; }
.mbox-in .mday-more { margin: 0; }
.mbox-in > .btn { justify-self: start; }
.mday-item.is-declined .mbox > summary { opacity: .75; }
.mbox-tools { text-align: right; font-size: .88rem; color: var(--muted); margin: 0 0 .4rem; }
.mbox-tools .link-btn { min-height: 36px; font-weight: 600; }
@keyframes mboxIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mbox-in { animation: none; } .mbox-chev { transition: none; } }
@media (max-width: 360px) { .mbox > summary { grid-template-columns: 3rem minmax(0, 1fr) 18px; } .mbox .mday-st { grid-column: 2; justify-self: start; } .mbox-chev { grid-row: 1; grid-column: 3; } }

/* ===== Correctif 52 — Barre du bas : badge au centre, compteurs, clavier ===== */
.bottom-nav { align-items: end; padding-top: .3rem; padding-bottom: max(.35rem, env(safe-area-inset-bottom, 0px)); overflow: visible; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); transition: transform .2s ease; }
.bottom-nav a { font-size: .72rem; gap: 3px; min-height: 52px; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.bottom-nav a > svg { padding: 0; }
.bottom-nav a .bn-icon { padding: 4px 16px; border-radius: 999px; display: inline-flex; }
.bottom-nav a.active { color: var(--accent); }
.bottom-nav a:active .bn-icon { transform: scale(.92); }
.bn-badge.bn-todo { background: var(--amber); }
/* Badge : bouton rond au centre, toujours à portée du pouce */
.bottom-nav a.bn-main { position: relative; color: var(--text); }
.bn-fab { width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #ffb36b), var(--accent)); border: 4px solid var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .12s ease; }
.bottom-nav a.bn-main:active .bn-fab { transform: scale(.93); }
.bottom-nav a.bn-main.active { color: var(--accent); }
.bottom-nav a.bn-main.active .bn-fab { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent), 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
/* Clavier ouvert (saisie d'un message, d'un formulaire) : la barre se retire pour ne pas cacher le champ */
body.kb-open .bottom-nav { transform: translateY(110%); }
body.kb-open .chat-send { bottom: 0; }
@media (prefers-reduced-motion: reduce) { .bottom-nav, .bn-fab { transition: none; } }
/* Fin de page de l'accueil */
.vh-end { text-align: center; padding: 1.2rem .5rem .4rem; color: var(--muted); font-size: .9rem; display: grid; gap: .5rem; justify-items: center; }
.vh-end p { margin: 0; }
.vh-end .link-btn { min-height: 40px; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.vh-end .link-btn svg { transform: rotate(-90deg); }

/* ===== Correctif 53 — Copyright, mode Jour J ===== */
.site-copy { margin: 2rem 0 .5rem; text-align: center; font-size: .78rem; color: var(--muted); letter-spacing: .01em; }
.auth-copy { margin-top: .8rem; }
@media print { .site-copy { display: block !important; } }
.nm-card.is-today { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, var(--accent)) 45%, transparent), var(--shadow); }
.jj-band { margin: -.2rem 0 .3rem; padding: .7rem .8rem; border-radius: 14px; display: grid; gap: .35rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface))); }
.jj-tag { justify-self: start; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--c, var(--accent)); border-radius: 999px; padding: .12rem .55rem; animation: jjPulse 2s ease-in-out infinite; }
.jj-count { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.jj-band small { color: var(--muted); font-size: .85rem; }
.jj-prog { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); overflow: hidden; } .jj-prog i { display: block; height: 100%; background: var(--c, var(--accent)); border-radius: 999px; }
.nm-card.is-today .nm-actions .btn:first-child { min-height: 56px; font-size: 1.05rem; }
@keyframes jjPulse { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .jj-tag { animation: none; } }
.thanks-card { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; margin: 0 0 1rem; border-radius: 18px; background: linear-gradient(135deg, var(--green-bg), color-mix(in srgb, var(--accent) 10%, var(--surface))); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.thanks-card > span { font-size: 1.8rem; } .thanks-card div { display: grid; } .thanks-card small { color: var(--muted); }
.auth-copy { color: rgba(255,255,255,.72); }

/* ===== Correctif 54 — Fiche bénévole ===== */
.vp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.2rem; align-items: center; padding: 1.3rem 1.4rem; position: relative; overflow: visible;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 55%); }
.vp-photo { position: relative; }
.vp-photo .avatar { width: 104px; height: 104px; font-size: 2rem; border: 4px solid var(--surface); box-shadow: 0 6px 18px rgba(20,24,45,.12); }
.vp-photo form { margin: 0; }
.vp-photo-btn { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid var(--surface); cursor: pointer; }
.vp-photo-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vp-photo [data-photo-status] { position: absolute; top: 100%; left: 0; width: 160px; margin: .2rem 0 0; }
.vp-id h1 { margin: 0 0 .25rem; font-size: 1.7rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.vp-sub { margin: 0 0 .45rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.vp-role { font-size: .74rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--purple-bg); color: var(--text); }
.vp-contact { margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.vp-contact a { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: .9rem; text-decoration: none; }
.vp-contact a:hover { border-color: var(--accent); color: var(--accent); }
.vp-meta { margin: 0; font-size: .84rem; color: var(--muted); }
.vp-actions { display: flex; flex-direction: column; gap: .45rem; align-items: stretch; align-self: start; }
.vp-actions form { margin: 0; } .vp-actions .btn { width: 100%; justify-content: center; }
.vp-more { position: relative; } .vp-more > summary { list-style: none; width: 100%; justify-content: center; } .vp-more > summary::-webkit-details-marker { display: none; }
.vp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 280px; display: grid; gap: 2px; padding: .4rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(20,24,45,.18); }
.vp-menu form { margin: 0; } .vp-menu > * { width: 100%; }
.vp-mi { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; text-decoration: none; min-height: 40px; }
.vp-mi:hover { background: var(--surface-2); text-decoration: none; }
.vp-mi svg { color: var(--muted); flex: none; }
.vp-menu .arch-box { display: block; } .vp-menu .arch-pop { position: static; width: auto; box-shadow: none; margin: .2rem .3rem .4rem; }
@media (max-width: 900px) { .vp-head { grid-template-columns: auto minmax(0, 1fr); } .vp-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .vp-actions > * { flex: 1 1 160px; } .vp-menu { left: 0; right: auto; } }
@media (max-width: 560px) { .vp-head { grid-template-columns: 1fr; justify-items: start; } .vp-photo .avatar { width: 84px; height: 84px; } }
.vp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1rem; }
@media (max-width: 900px) { .vp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vp-kpis > div { display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; align-items: center; padding: .85rem .95rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.vp-kpis > div.is-warn { border-color: color-mix(in srgb, var(--amber) 50%, var(--border)); }
.vp-k-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.vp-k-ico.c-blue { background: var(--blue-bg); color: var(--blue); } .vp-k-ico.c-green { background: var(--green-bg); color: var(--green); } .vp-k-ico.c-purple { background: var(--purple-bg); color: var(--purple); } .vp-k-ico.c-amber { background: var(--amber-bg); color: var(--amber); }
.vp-kpis strong { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; } .vp-kpis small { font-size: .78rem; color: var(--muted); line-height: 1.25; }
.vp-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .vp-grid { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }
.vp-main, .vp-side { display: grid; gap: 1rem; min-width: 0; } .vp-main > .card, .vp-side > .card, .vp-main > details.card { margin: 0; }
.vp-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.vp-mlist li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--border); border-left: 4px solid var(--c); }
.vp-mlist li.is-declined { opacity: .65; }
.vp-mdate { display: grid; justify-items: center; line-height: 1.05; padding: .3rem 0; border-radius: 10px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
.vp-mdate strong { font-size: 1.25rem; } .vp-mdate small { font-size: .7rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.vp-mbody { display: grid; min-width: 0; } .vp-mbody strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vp-mbody small { color: var(--muted); font-size: .82rem; }
.vp-pct { font-weight: 800; font-size: 1.1rem; color: var(--amber); } .vp-pct.ok { color: var(--green); }
.vp-bar { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .1rem 0 .7rem; } .vp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--green)); border-radius: 999px; }
.vp-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .6rem; }
.vp-checks li { display: flex; align-items: center; gap: .4rem; font-size: .88rem; }
.vp-checks li > span:first-child { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.vp-checks li.ok > span:first-child { background: var(--green-bg); color: var(--green); } .vp-checks li.no { color: var(--muted); } .vp-checks li.no > span:first-child { background: var(--amber-bg); color: var(--amber); }
.vp-dl { grid-template-columns: minmax(110px, auto) 1fr; }
.vp-missing { margin: .6rem 0 0; padding-top: .5rem; border-top: 1px dashed var(--border); }
.vp-avail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .35rem; }
.vp-avail li { display: grid; justify-items: center; padding: .4rem .2rem; border-radius: 10px; border: 1px solid var(--border); text-align: center; line-height: 1.2; }
.vp-avail li strong { font-size: .82rem; } .vp-avail li small { font-size: .72rem; color: var(--muted); }
.vp-avail li.av-available { background: var(--green-bg); border-color: transparent; } .vp-avail li.av-partial, .vp-avail li.av-conditional { background: var(--amber-bg); border-color: transparent; } .vp-avail li.av-unavailable { background: var(--red-bg); border-color: transparent; text-decoration: line-through; }
.vp-hist > summary { list-style: none; cursor: pointer; } .vp-hist > summary::-webkit-details-marker { display: none; }
.vp-hist > summary h2 { margin: 0; display: flex; gap: .4rem; align-items: center; } .vp-hist > summary h2::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: .9rem; }
.vp-hist[open] > summary { margin-bottom: .8rem; }
.c-red { color: var(--red); }

/* ===== Correctif 55 — Retirer d'un secteur ===== */
.vl-sec.has-x { padding-right: .2rem; }
.vl-sec-x { border: 0; background: transparent; color: var(--muted); font-size: 1rem; line-height: 1; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; margin-left: .1rem; }
.vl-sec-x:hover, .vl-sec-x:focus-visible { background: var(--red-bg); color: var(--red); }
.rm-box { position: relative; display: inline-block; }
.rm-box > summary { list-style: none; } .rm-box > summary::-webkit-details-marker { display: none; }
.rm-btn { color: var(--red) !important; }
.rm-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(88vw, 340px); display: grid; gap: .5rem; padding: .8rem; background: var(--surface); border: 1px solid color-mix(in srgb, var(--red) 35%, var(--border)); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.rm-pop p { margin: 0; } .rm-pop .check { margin: 0; }
.rm-lead { margin-left: auto; }
.member-row { flex-wrap: wrap; }

/* Correctif 56 : planning — périmètre du responsable, couverture */
.pg-scope{display:flex;gap:.5rem;align-items:flex-start;margin:0 0 .75rem;padding:.55rem .8rem;border-radius:10px;background:var(--blue-50,#eff6ff);color:var(--blue-800,#1e3a8a);border:1px solid rgba(37,99,235,.18);font-size:.85rem;line-height:1.4}
.pg-scope svg{flex:none;margin-top:.15rem}
[data-theme=dark] .pg-scope{background:rgba(37,99,235,.14);color:#bfdbfe;border-color:rgba(147,197,253,.25)}
.pg-cov{display:inline-flex;align-items:center;gap:.35rem}
.pg-cov-bar{display:inline-block;width:70px;height:6px;border-radius:99px;background:var(--border,#e5e7eb);overflow:hidden;vertical-align:middle}
.pg-cov-bar b{display:block;height:100%;border-radius:99px;background:#16a34a}
.pg-cov-bar.mid b{background:#f59e0b}.pg-cov-bar.low b{background:#dc2626}

/* Correctif 57 : menu de gauche regroupé en sous-menus repliables */
.side-nav { gap: 1px; padding-bottom: 1rem; }
.side-nav a { padding: .48rem .7rem; font-size: .92rem; }
.side-nav a .grow { flex: 1; min-width: 0; }
.nav-group { margin-top: .15rem; }
.nav-group > summary { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; margin-top: .2rem; border-radius: 10px; color: #aeb7d6; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; user-select: none; }
.nav-group > summary::after { content: none !important; }
.nav-group > summary:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-group > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-group > summary svg { opacity: .8; }
.nav-group .nav-chev { display: inline-flex; transition: transform .18s ease; opacity: .7; }
.nav-group[open] > summary .nav-chev { transform: rotate(90deg); }
.nav-group[open] .nav-gcount { display: none; }
.nav-group .nav-sub { display: flex; flex-direction: column; gap: 1px; margin: .1rem 0 .3rem .85rem; padding-left: .45rem; border-left: 1px solid rgba(255,255,255,.12); }
.nav-group .nav-sub a { font-size: .89rem; padding: .42rem .6rem; }
.nav-group .nav-sub a svg { width: 16px; height: 16px; }
.nav-fold { margin: .6rem .7rem 0; align-self: flex-start; background: none; border: 0; color: #8f99bd; font-size: .75rem; cursor: pointer; padding: .2rem 0; }
.nav-fold:hover { color: #fff; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .nav-group .nav-chev { transition: none; } }

/* Correctif 57 : page « Secteurs du festival » */
.sx-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 1rem; }
.sx-kpi { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border-radius: var(--radius); background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); color: var(--text); }
a.sx-kpi:hover { text-decoration: none; border-color: var(--accent); }
.sx-kpi strong { font-size: 1.55rem; line-height: 1.1; }
.sx-kpi strong small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.sx-k-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.sx-k-sub { font-size: .8rem; color: var(--muted); }
.sx-kpi.is-alert { border-color: rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .05); }
.sx-kpi.is-alert strong { color: var(--red, #dc2626); }
.sx-kpi.is-warn { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); }
.sx-bar { display: block; width: 100%; height: 8px; border-radius: 99px; background: var(--border, #e5e7eb); overflow: hidden; }
.sx-bar.thin { height: 5px; }
.sx-bar b { display: block; height: 100%; border-radius: 99px; background: #16a34a; min-width: 2px; }
.sx-bar.mid b { background: #f59e0b; } .sx-bar.low b { background: #dc2626; }
.sx-table .sx-bar { display: inline-block; width: 80px; vertical-align: middle; }

.sx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem .8rem; margin-bottom: 1rem; position: sticky; top: .5rem; z-index: 5; }
.sx-search { flex: 1 1 220px; min-width: 180px; }
.sx-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.sx-chips .chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sx-n { opacity: .75; font-size: .78em; }
.sx-sort select { min-width: 200px; }

.sx-card { gap: .7rem; }
.sx-card header h2 { font-size: 1.15rem; }
.sx-metric { display: flex; flex-direction: column; gap: .3rem; }
.sx-m-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: .92rem; }
.sx-m-top strong { font-size: 1.1rem; }
.sx-m-label { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .82rem; font-weight: 600; }
.sx-pill { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.sx-pill.red { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.sx-pill.green { background: rgba(22, 163, 74, .12); color: #15803d; }
.sx-pill.gray { background: var(--border, #eef0f4); color: var(--muted); }
a.sx-pill:hover { text-decoration: none; filter: brightness(.95); }
.sx-facts { display: flex; flex-direction: column; gap: .25rem; font-size: .84rem; }
.sx-fact { display: inline-flex; align-items: center; gap: .4rem; }
a.sx-fact.is-alert { color: #b91c1c; font-weight: 700; }
.sx-actions { display: flex; gap: .4rem; margin-top: auto; }
.sx-actions .btn-ghost { margin-left: auto; }
.sx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: .45rem; vertical-align: middle; }
.sx-table td.num, .sx-table th.num { text-align: right; white-space: nowrap; }
.sx-table tr.dim { opacity: .6; }
.sx-table-wrap { overflow-x: auto; padding: 0; }
.sx-legend { margin-top: .5rem; }
[data-theme=dark] .sx-pill.red { color: #fca5a5; } [data-theme=dark] .sx-pill.green { color: #86efac; }
@media (max-width: 700px) { .sx-tools { position: static; } .sx-sort select { min-width: 0; width: 100%; } .sx-sort { flex: 1 1 100%; } }
@media (max-width: 700px) { .sx-kpis { grid-template-columns: 1fr 1fr; gap: .5rem; } .sx-kpi { padding: .7rem .75rem; } .sx-kpi strong { font-size: 1.3rem; } .sx-k-sub { font-size: .74rem; } }

/* Correctif 58 : candidatures — une carte par bénévole */
.ca-kpis { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: .9rem; }
.ca-kpi { display: flex; flex-direction: column; gap: .1rem; padding: .8rem .95rem; border-radius: var(--radius); background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); color: var(--text); }
a.ca-kpi:hover { text-decoration: none; border-color: var(--accent); }
.ca-kpi strong { font-size: 1.6rem; line-height: 1.1; }
.ca-kpi span { font-weight: 600; font-size: .86rem; }
.ca-kpi small { color: var(--muted); font-size: .76rem; }
.ca-kpi.is-main { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.ca-kpi.is-alert { border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.05); } .ca-kpi.is-alert strong { color: #dc2626; }
.ca-kpi.is-warn { border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.06); }
.ca-tabs { display: flex; flex-wrap: wrap; gap: .3rem; border-bottom: 1px solid var(--border, #e5e7eb); margin-bottom: .8rem; }
.ca-tabs a { padding: .5rem .8rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 600; font-size: .9rem; margin-bottom: -1px; }
.ca-tabs a:hover { color: var(--text); text-decoration: none; }
.ca-tabs a.active { color: var(--accent); border-color: var(--accent); }
.ca-n { display: inline-block; min-width: 1.4em; padding: 0 .35rem; border-radius: 99px; background: var(--border, #eef0f4); color: var(--text); font-size: .75rem; text-align: center; }
.ca-tabs a.active .ca-n { background: var(--accent); color: #fff; }
.ca-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem .8rem; margin-bottom: .8rem; }
.ca-filters .grow { flex: 1 1 220px; } .ca-filters .grow input { width: 100%; }
.ca-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .55rem .8rem; margin-bottom: .8rem; position: sticky; top: .5rem; z-index: 6; }
.ca-bulk.has-sel { border-color: var(--accent); box-shadow: 0 6px 20px rgba(20,24,45,.10); }
.ca-sel { font-weight: 600; color: var(--accent); flex: 1; }
.ca-person { padding: 0; overflow: hidden; margin-bottom: .9rem; }
.ca-person.is-late { box-shadow: inset 4px 0 0 #dc2626; }
.ca-head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; flex-wrap: wrap; }
.ca-pick { width: 18px; height: 18px; flex: none; }
.ca-who { flex: 1; min-width: 220px; }
.ca-name { font-weight: 700; font-size: 1.08rem; }
.ca-facts { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.ca-facts span { display: inline-flex; align-items: center; gap: .3rem; }
.ca-person-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.ca-msg { margin: 0 1rem .6rem; padding: .5rem .75rem; border-radius: 10px; background: var(--surface-2, #f6f7fb); font-style: italic; font-size: .88rem; display: flex; gap: .45rem; align-items: flex-start; }
.ca-msg svg { flex: none; margin-top: .15rem; opacity: .6; }
.ca-slots { margin: 0; padding: 0 .6rem .6rem; display: flex; flex-direction: column; gap: .45rem; }
.ca-slot { padding: .6rem .7rem !important; }
.ca-slot.is-done { opacity: .72; }
.ca-slot-main { display: flex; align-items: flex-start; gap: .7rem; }
.ca-slot-main > input, .ca-box-ph { width: 18px; height: 18px; flex: none; margin-top: .7rem; }
.ca-date { flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); padding: .25rem 0; line-height: 1.05; }
.ca-date span, .ca-date small { display: block; font-size: .66rem; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.ca-date strong { display: block; font-size: 1.25rem; color: var(--c, var(--text)); }
.ca-date.is-any { display: grid; place-items: center; height: 52px; color: var(--muted); }
.ca-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.ca-sector { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.ca-fill { display: flex; align-items: center; gap: .5rem; } .ca-fill .sx-bar { width: 90px; flex: none; }
.ca-fill small { color: var(--muted); font-size: .78rem; } .ca-fill.is-full small { color: #b45309; font-weight: 600; }
.ca-actions { margin-top: .5rem; padding-left: calc(18px + 52px + 1.4rem); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.ca-more summary { display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; }
.ca-more[open] { flex-basis: 100%; }
.ca-empty { text-align: center; padding: 2rem 1rem; } .ca-empty svg { color: #16a34a; }
.ca-legend { margin-top: .6rem; }
@media (max-width: 700px) {
  .ca-kpis { grid-template-columns: 1fr 1fr; } .ca-kpi strong { font-size: 1.3rem; }
  .ca-actions { padding-left: 0; } .ca-actions .btn { flex: 1 1 auto; }
  .ca-bulk { position: static; } .ca-who { min-width: 0; }
  .ca-person-actions { width: 100%; } .ca-person-actions .btn { flex: 1; }
}
.ca-bulk select { width: auto; min-width: 220px; flex: 0 1 auto; }
.ca-bulk .check { margin: 0; }
@media (max-width: 700px) {
  .ca-kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .3rem; }
  .ca-kpi { flex: 0 0 62%; scroll-snap-align: start; }
  .ca-tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .ca-bulk select { min-width: 0; flex: 1; }
}
@media (max-width: 700px) {
  .ca-slot-main { flex-wrap: wrap; gap: .55rem; }
  .ca-slot-main .ca-date { width: 46px; }
  .ca-slot-main .ca-what { flex: 1 1 calc(100% - 18px - 46px - 1.2rem); }
  .ca-slot-main .app-status { flex-basis: 100%; display: flex; flex-direction: row; align-items: center; gap: .5rem; padding-left: calc(18px + .55rem); text-align: left; }
  .ca-fill .sx-bar { width: 60px; }
  .ca-filters label { flex: 1 1 100%; } .ca-filters label select { width: 100%; } .ca-filters .btn { width: 100%; justify-content: center; }
  .ca-bulk select { flex: 1 1 60%; } .ca-bulk .check { flex: 1 1 100%; }
  .ca-head { align-items: flex-start; }
}
@media (max-width: 700px) { .ca-slot-main .ca-what { flex: 1 1 0; min-width: 0; } }

/* Correctif 59 : disponibilités — frise horaire et tableau des jours */
.av-days { display: flex; gap: .45rem; overflow-x: auto; padding: .1rem .1rem .5rem; margin-bottom: .9rem; scroll-snap-type: x proximity; }
.av-day { flex: 0 0 auto; width: 68px; display: grid; justify-items: center; gap: .15rem; padding: .5rem .3rem .45rem; border-radius: 14px; border: 1px solid var(--border, #e5e7eb); background: var(--card, #fff); color: var(--text); scroll-snap-align: start; transition: border-color .15s, transform .15s; }
.av-day:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.av-day small { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.av-day strong { font-size: .95rem; }
.av-day-bar { position: relative; width: 30px; height: 34px; border-radius: 6px; background: var(--surface-2, #f1f3f8); overflow: hidden; margin: .1rem 0; }
.av-day-bar i, .av-day-bar b { position: absolute; left: 0; right: 0; bottom: 0; }
.av-day-bar i { background: rgba(22, 163, 74, .45); } .av-day-bar b { background: #2563eb; opacity: .75; }
.av-day-n { font-weight: 700; font-size: .85rem; }
.av-day.is-setup { border-style: dashed; }
.av-day.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(20,24,45,.15); }
.av-day.active small { color: rgba(255,255,255,.85); }
.av-day.active .av-day-bar { background: rgba(255,255,255,.25); }
.av-day.active .av-day-bar i { background: rgba(255,255,255,.75); } .av-day.active .av-day-bar b { background: #1e3a8a; opacity: .9; }

.av-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-bottom: .9rem; }
.av-kpi { display: flex; flex-direction: column; padding: .7rem .8rem; border-radius: var(--radius); background: var(--card, #fff); border: 1px solid var(--border, #e5e7eb); color: var(--text); border-top: 4px solid var(--tone); }
.av-kpi:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(20,24,45,.08); }
.av-kpi.active { outline: 2px solid var(--tone); outline-offset: -1px; background: color-mix(in srgb, var(--tone) 7%, var(--card, #fff)); }
.av-kpi strong { font-size: 1.5rem; line-height: 1.1; } .av-kpi span { font-weight: 600; font-size: .85rem; } .av-kpi small { color: var(--muted); font-size: .74rem; }
.tone-green { --tone: #16a34a; } .tone-main { --tone: var(--accent); } .tone-blue { --tone: #2563eb; } .tone-amber { --tone: #f59e0b; } .tone-red { --tone: #dc2626; } .tone-gray { --tone: #9ca3af; }

.av-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .65rem .8rem; margin-bottom: .9rem; position: sticky; top: .5rem; z-index: 6; }
.av-search { flex: 1 1 240px; display: flex; align-items: center; gap: .4rem; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 0 .6rem; background: var(--surface, #fff); }
.av-search input { border: 0; outline: 0; background: transparent; width: 100%; padding: .5rem 0; box-shadow: none; }
.av-search svg { color: var(--muted); flex: none; }

.av-board, .av-week { padding: 0; overflow: hidden; }
.av-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem .6rem; }
.av-board-head h2 { margin: 0; font-size: 1.1rem; }
.av-legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .78rem; color: var(--muted); }
.av-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.av-legend .lg { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.av-legend .lg.av { background: #bbf7d0; border: 1px solid #22c55e; } .lg.co { background: #fde68a; border: 1px solid #f59e0b; }
.av-legend .lg.un { background: repeating-linear-gradient(45deg, #fecaca 0 3px, #fff 3px 6px); border: 1px solid #ef4444; } .lg.mi, .lg.pl { background: #1e3a8a; }

.av-row { display: grid; grid-template-columns: minmax(200px, 270px) 1fr 150px; align-items: center; gap: .8rem; padding: .45rem 1rem; }
.av-list { list-style: none; margin: 0; padding: 0 0 .4rem; }
.av-list .av-row { border-top: 1px solid var(--border, #eef0f4); }
.av-list .av-row:hover { background: var(--surface-2, #f7f8fc); }
.av-who { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.av-id { min-width: 0; } .av-id a { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-secs { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .1rem; }
.av-sec { font-size: .68rem; padding: 0 .4rem; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); white-space: nowrap; }
.av-sec.wait { border-style: dashed; opacity: .8; }
.av-track { position: relative; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / var(--hcols, 18) - 1px), var(--border, #eef0f4) calc(100% / var(--hcols, 18) - 1px) calc(100% / var(--hcols, 18))), var(--surface-2, #f7f8fc); }
.av-band { position: absolute; top: 3px; bottom: 3px; border-radius: 6px; font-size: .72rem; font-weight: 600; display: flex; align-items: center; padding: 0 .4rem; overflow: hidden; white-space: nowrap; }
.av-band.b-available { background: #bbf7d0; border: 1px solid #22c55e; color: #14532d; }
.av-band.b-conditional { background: #fde68a; border: 1px solid #f59e0b; color: #78350f; }
.av-band.b-unavailable { background: repeating-linear-gradient(45deg, #fecaca 0 4px, #fff5f5 4px 8px); border: 1px solid #ef4444; color: #7f1d1d; }
.av-mission { position: absolute; bottom: 1px; height: 7px; border-radius: 4px; background: #1e3a8a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.av-track > .av-none { position: absolute; inset: 0; display: flex; align-items: center; padding-left: .6rem; font-size: .76rem; color: var(--muted); font-style: italic; }
.av-side { display: flex; align-items: center; gap: .4rem; justify-content: flex-end; }
.av-tag { display: inline-flex; align-items: center; gap: .25rem; font-size: .74rem; font-weight: 700; padding: .12rem .5rem; border-radius: 99px; white-space: nowrap; }
.av-tag.placed { background: rgba(37,99,235,.12); color: #1d4ed8; } .av-tag.free { background: rgba(22,163,74,.13); color: #15803d; }
.av-tag.unavailable { background: rgba(220,38,38,.1); color: #b91c1c; } .av-tag.none { background: var(--surface-2, #f1f3f8); color: var(--muted); } .av-tag.conditional { background: rgba(245,158,11,.15); color: #92400e; }
.av-note { position: relative; color: #b45309; cursor: help; display: inline-flex; }
.av-note-txt { display: none; position: absolute; right: 0; top: 120%; z-index: 20; width: 240px; padding: .5rem .6rem; border-radius: 8px; background: var(--primary, #14213d); color: #fff; font-size: .78rem; line-height: 1.35; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.av-note:hover .av-note-txt, .av-note:focus .av-note-txt { display: block; }
.av-cover-row { padding-top: .2rem; padding-bottom: 0; }
.av-cover { height: 54px; background: transparent; }
.av-col { position: absolute; bottom: 0; top: 0; display: flex; justify-content: center; }
.av-col i, .av-col b { position: absolute; bottom: 0; left: 12%; right: 12%; border-radius: 4px 4px 0 0; }
.av-col i { background: rgba(22,163,74,.35); } .av-col b { background: #2563eb; opacity: .75; }
.av-col em { position: absolute; top: -2px; font-style: normal; font-size: .64rem; color: var(--muted); }
.av-cover-row .av-who { flex-direction: column; align-items: flex-start; gap: 0; font-size: .82rem; }
.av-scale { padding-top: 0; padding-bottom: .3rem; }
.av-scale .av-track { height: 16px; background: none; }
.av-scale .av-track span { position: absolute; transform: translateX(-50%); font-size: .68rem; color: var(--muted); }
.av-noresult { padding: .8rem 1rem; }
.av-empty { text-align: center; padding: 2rem 1rem; } .av-empty svg { color: var(--muted); }

.av-week-wrap { overflow: auto; max-height: 75vh; }
.av-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .8rem; }
.av-matrix th, .av-matrix td { padding: .3rem .35rem; text-align: center; border-bottom: 1px solid var(--border, #eef0f4); white-space: nowrap; }
.av-matrix thead th { position: sticky; top: 0; z-index: 2; background: var(--card, #fff); font-size: .74rem; }
.av-matrix thead th a { color: var(--text); display: block; } .av-matrix thead th small { display: block; color: var(--muted); text-transform: uppercase; font-size: .62rem; }
.av-matrix thead th.is-today { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.av-matrix thead th.is-setup { background: repeating-linear-gradient(45deg, var(--card, #fff) 0 6px, var(--surface-2, #f4f5f9) 6px 12px); }
.av-mx-name { position: sticky; left: 0; z-index: 1; background: var(--card, #fff); text-align: left !important; min-width: 170px; font-weight: 600; }
.av-matrix thead .av-mx-name { z-index: 3; }
.av-matrix td { position: relative; min-width: 54px; }
.av-matrix td span { display: block; border-radius: 6px; padding: .3rem .2rem; font-weight: 600; font-size: .72rem; min-height: 1.5rem; }
.av-matrix td.c-available span { background: #bbf7d0; color: #14532d; }
.av-matrix td.c-conditional span { background: #fde68a; color: #78350f; }
.av-matrix td.c-unavailable span { background: repeating-linear-gradient(45deg, #fecaca 0 4px, #fff5f5 4px 8px); color: #b91c1c; }
.av-matrix td.c-none span { background: var(--surface-2, #f6f7fb); }
.av-matrix td.is-today { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.av-pl { position: absolute; right: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #1e3a8a; box-shadow: 0 0 0 2px #fff; }
.av-mx-n { font-size: .9rem; }
.av-matrix tbody tr:hover th, .av-matrix tbody tr:hover td { background-color: var(--surface-2, #f7f8fc); }
[data-theme=dark] .av-band.b-available, [data-theme=dark] .av-matrix td.c-available span { background: rgba(34,197,94,.3); color: #dcfce7; }
[data-theme=dark] .av-band.b-conditional, [data-theme=dark] .av-matrix td.c-conditional span { background: rgba(245,158,11,.3); color: #fef3c7; }
@media (max-width: 1100px) { .av-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .av-kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .av-kpi { flex: 0 0 44%; scroll-snap-align: start; }
  .av-tools { position: static; }
  .av-row { grid-template-columns: 1fr auto; gap: .35rem .6rem; }
  .av-row .av-track { grid-column: 1 / -1; grid-row: 2; }
  .av-cover-row .av-who, .av-scale .av-who, .av-scale .av-side, .av-cover-row .av-side { display: none; }
  .av-cover-row, .av-scale { grid-template-columns: 1fr; }
  .av-cover-row .av-track, .av-scale .av-track { grid-column: 1; grid-row: 1; }
  .av-band { font-size: .66rem; }
}
.av-tools label.av-search { display: flex; flex-direction: row; align-items: center; gap: .45rem; margin: 0; }
.av-tools label.av-search input { margin: 0; min-height: 0; }
.av-tools label { margin: 0; }

/* Correctif 60 : grille du planning plus lisible (cartes compactes, cases vides discrètes, colonnes nettes) */
.pg-table tbody tr > * { border-bottom: 1px solid var(--border); }
.pg-table tbody tr:not(.pg-open-row):nth-child(odd) .pg-res { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.pg-cell { vertical-align: top; border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.pg-card { gap: 0; padding: .3rem .45rem .32rem; margin-bottom: .25rem; border-radius: 7px; }
.pg-card .pg-l1 { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem; }
.pg-card .pg-l1 strong { font-size: .86rem; }
.pg-card .pg-hrs { font-style: normal; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-card small { margin-top: .05rem; }
.pg-foot:empty { display: none; }
.pg-foot { margin-top: .15rem; }
/* case vide : plus de grands cadres pointillés partout, juste un « + » discret qui s'affirme au survol */
.pg-plus.pg-plus-big { min-height: 2.2rem; border-color: transparent; background: transparent; color: color-mix(in srgb, var(--muted) 45%, transparent); font-size: .95rem; }
.pg-cell:hover .pg-plus.pg-plus-big, .pg-plus.pg-plus-big:focus-visible { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
@media (hover: none) { .pg-plus.pg-plus-big { border-color: color-mix(in srgb, var(--muted) 20%, transparent); } }
/* en-têtes de jours : jour en petit, date en grand */
.pg-table thead th.pg-day a { display: flex; align-items: baseline; gap: .3rem; font-size: 1.05rem; }
.pg-table thead th.pg-day a span { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.pg-table thead th.today { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
/* personne : heures « en tout » lisibles */
.pg-h { white-space: nowrap; }
/* garde-fou : ligne incomplète réparée */
.pg-cell.pg-broken { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--amber) 8%, transparent) 0 6px, transparent 6px 12px); }
.pg-broken-link { display: block; font-size: .78rem; font-weight: 700; color: #92400e; padding: .35rem; }
.pg-card .pg-l1 { width: 100%; }
.pg-card { justify-items: stretch; }

/* Correctif 61 : outils (dupliquer / supprimer) aussi sur les créneaux « À pourvoir » */
.pg-open-row .pg-cw { margin-bottom: .25rem; }
.pg-open-row .pg-cw > .pg-card { margin-bottom: 0; }
.pg-tools-open { top: -10px; }

/* Correctif 62 : lieu sur chaque carte, filtre « Lieu », grille plus compacte (façon Agendrix) */
.pg-card .pg-loc { display: flex; align-items: center; gap: .25rem; margin-top: .12rem; font-size: .72rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; }
.pg-card .pg-loc svg { flex: none; color: var(--accent); }
.pg-card .pg-loc.is-sector { font-weight: 500; color: var(--muted); }
.pg-card .pg-loc.is-sector svg { color: var(--muted); }
.pg-card .pg-loc.is-missing { font-weight: 600; color: var(--accent); opacity: .55; border-radius: 6px; padding: 0 .2rem; margin-left: -.2rem; cursor: pointer; }
.pg-card:hover .pg-loc.is-missing, .pg-card .pg-loc.is-missing:hover { opacity: 1; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.pg-locfilter { display: inline-flex; flex-direction: row; align-items: center; gap: .3rem; margin-left: .3rem; font-weight: 500; }
.pg-locfilter select { padding: .2rem 1.6rem .2rem .5rem; font-size: .8rem; min-height: 0; border-radius: 99px; width: auto; }
.pg-table .pg-card.loc-off { opacity: .14; }
.pg-table.loc-filtered .pg-plus { visibility: hidden; }
/* colonne des personnes : nom sur une ligne, puces regroupées (lignes moins hautes) */
.pg-res .pg-person > div { min-width: 0; }
.pg-res .pg-person strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-res .pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .3rem; margin-top: .15rem; }
.pg-res .pg-meta .badge, .pg-res .pg-age, .pg-res .pg-h { font-size: .68rem; padding: .05rem .4rem; }
.pg-res .pg-tel { padding: 0 .1rem; }
/* ligne « À pourvoir » vide : une fine bande « Tout est pourvu » */
.pg-open-row.is-empty .pg-cell { padding-top: .15rem; padding-bottom: .15rem; }
.pg-open-row.is-empty .pg-res small { font-size: .72rem; }
.pg-open-icon.is-ok { background: rgba(22, 163, 74, .14); color: #15803d; }
.pg-open-row.is-empty .pg-plus-create { min-height: 1.6rem; }
.pg-card .pg-loc { justify-content: flex-start; padding-left: 0; }

/* Correctif 63 : le lieu reste visible sur les cartes, même en affichage « Compact » */
.pg-table.pg-compact .pg-card .pg-loc { display: flex; font-size: .68rem; margin-top: 0; }
.pg-table.pg-compact .pg-card .pg-loc.is-missing { display: none; }

/* Correctif 63 : fenêtre « créneau » redessinée */
.sp2 { padding: 0; overflow: hidden; max-width: 760px; }
.sp2[open] { display: flex; flex-direction: column; }
.sp2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.25rem .95rem; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 16%, var(--surface)), var(--surface) 70%); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 3; }
.sp2-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c, var(--accent)); }
.sp2-head { position: relative; }
.sp2-head-main { min-width: 0; }
.sp2-sector { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--c, var(--accent)) 75%, var(--text)); margin-bottom: .1rem; }
.sp2-head h2 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.sp2-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.sp2-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .6rem; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--text); }
.sp2-chip.strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.sp2-chip.loc { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.sp2-chip.missing { color: var(--accent); border-style: dashed; cursor: pointer; font: inherit; font-size: .82rem; }
.sp2-body { padding: 1rem 1.25rem 1.25rem; overflow: auto; display: flex; flex-direction: column; gap: 1rem; }
.sp2-cov { margin: 0; padding: .75rem .9rem; }
.sp2-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0; padding: 0; border: 0; }
.sp2-actions form { margin: 0 0 0 auto; }
.sp2-actions .btn.danger { color: #b91c1c; border-color: rgba(220,38,38,.35); }
.sp2-actions .btn.danger:hover { background: rgba(220,38,38,.06); }
.sp2-sec { border-top: 1px solid var(--border); padding-top: .9rem; }
.sp2-h { display: inline-flex; align-items: center; gap: .4rem; font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.sp2-count { color: var(--muted); font-weight: 600; }
.sp2-team .sp-p-main { align-items: center; }
.sp2-team .avatar { flex: none; }
.sp2-call { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); text-decoration: none; }
.sp2-call:hover { background: var(--surface-2); text-decoration: none; }
.sp-pnote b { font-weight: 600; }
.sp2-add > summary { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; cursor: pointer; list-style: none; }
.sp2-add > summary::-webkit-details-marker { display: none; }
.sp2-add > summary .sp2-h { margin: 0; }
.sp2-add > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.sp2-add:not([open]) > summary::after { transform: rotate(-90deg); }
.sp2-add-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin: .7rem 0 .5rem; }
.sp2-add-tools .w-search { flex: 1 1 180px; max-width: 260px; }
.sp2-cands { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: 0; list-style: none; max-height: 52vh; overflow: auto; }
.sp2-cand { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem .7rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.sp2-cand.reco { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: inset 3px 0 0 var(--accent); }
.sp2-cand.hard { opacity: .62; background: var(--surface-2); }
.sp2-cand .avatar { flex: none; }
.sp2-cand > .btn, .sp2-no { margin-left: auto; flex: none; align-self: center; }
.sp2-no { font-size: .78rem; color: #b91c1c; font-weight: 600; }
.sp2-cand-txt { flex: 1; min-width: 0; }
.sp2-cand-name { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.sp2-tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; align-items: center; }
.sp2-tags .badge { font-size: .7rem; }
.sp2-hours { font-size: .74rem; color: var(--muted); }
.sp2-why { margin-top: .3rem; font-size: .8rem; }
.sp2-why summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .78rem; }
.sp2-why ul { margin: .3rem 0 0; padding-left: 1rem; }
.sp2-why li.hard { color: #b91c1c; } .sp2-why li.soft, .sp2-why li.minus { color: #92400e; } .sp2-why li.plus { color: #15803d; }
.sp2-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: .45rem; background: #16a34a; }
.sp2-dot.soft { background: #f59e0b; } .sp2-dot.hard { background: #dc2626; }
.sp2-legend .sp2-dot { margin: 0 .2rem 0 .5rem; vertical-align: middle; }
.sp2-none { padding: .8rem; color: var(--muted); font-size: .88rem; }
@media (max-width: 640px) {
  .sp2-head { padding: .9rem 1rem .8rem; } .sp2-body { padding: .8rem 1rem 1rem; }
  .sp2-actions form { margin-left: 0; } .sp2-actions .btn { flex: 1 1 auto; }
  .sp2-cand { flex-wrap: wrap; } .sp2-cand > .btn { width: 100%; }
}
.sp2-team .sp-p-main { grid-template-columns: auto minmax(0, 1fr) auto auto; }

/* Correctif 63 : fenêtre « + » (ajouter une mission / une absence) plus claire */
.gd2 { width: min(560px, 96vw); padding: 0; overflow: hidden; }
.gd2 .dialog-head { margin: 0; padding: 1.05rem 1.2rem .9rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 75%); border-bottom: 1px solid var(--border); }
.gd2 .dialog-head h2 { font-size: 1.25rem; }
.gd2 > .gd-tabs { margin: 1rem 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; border-radius: 14px; }
.gd2 > .gd-tabs button { justify-content: center; padding: .55rem .6rem; font-weight: 700; border-radius: 10px; }
.gd2 [data-gd-pane] { padding: 1rem 1.2rem 1.2rem; }
.gd2 .gd-free { gap: .85rem; }
.gd2 .gd-lbl { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gd2 .gd-hours { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: end; gap: .5rem; }
.gd2 .gd-hours input { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.gd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.gd2 .gd-go { margin-top: .2rem; }
.gd-abs-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .8rem; }
.gd-abs-k { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .9rem .5rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: center; font-size: .88rem; }
.gd-abs-k span { font-size: 1.5rem; line-height: 1; }
.gd-abs-k:hover { text-decoration: none; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.gd-abs-k.sick:hover { border-color: #dc2626; background: rgba(220,38,38,.05); }
@media (max-width: 520px) { .gd-grid2, .gd-abs-kinds { grid-template-columns: 1fr; } .gd2 .gd-hours { grid-template-columns: 1fr auto 1fr; } .gd2 .gd-hours .gd-dur { grid-column: 1 / -1; } }

/* Correctif 64 : e-mails du planning décidés par le responsable */
.pub-mail { display: inline-flex; flex-direction: row; align-items: center; gap: .3rem; margin: 0 .4rem 0 0; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pub-mail input { margin: 0; }
.an-banner { display: flex; align-items: center; gap: .6rem; color: var(--text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); }
.an-banner:hover { text-decoration: none; border-color: var(--accent); }
.an-banner > span:first-of-type { flex: 1; }
.an-how { display: flex; gap: .9rem; align-items: flex-start; }
.an-how-i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.an-how p { margin: 0 0 .35rem; }
.an-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .9rem; margin-bottom: .7rem; }
.an-sum { font-weight: 600; color: var(--muted); }
.an-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.an-person { padding: .8rem 1rem; }
.an-head { display: flex; flex-direction: row; align-items: center; gap: .6rem; margin: 0; cursor: pointer; }
.an-head input { width: 18px; height: 18px; flex: none; }
.an-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.an-items { margin: .5rem 0 0 1.9rem; padding: 0; display: grid; gap: .45rem; }
.an-items li { display: grid; gap: .1rem; padding-left: .3rem; }
.an-items li span { font-size: .9rem; }
.an-send { margin-top: .8rem; display: grid; gap: .6rem; position: sticky; bottom: .5rem; box-shadow: 0 -6px 24px rgba(20,24,45,.08); }
.an-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.an-empty { text-align: center; padding: 2rem 1rem; } .an-empty svg { color: #16a34a; }
@media (max-width: 640px) { .an-actions .btn { width: 100%; justify-content: center; } .an-items { margin-left: .4rem; } }
.an-banner .btn { flex: none; }

/* Correctif 65 : noms qui sortaient de la colonne des personnes, « Période » coupé */
.pg-table .pg-res { overflow: hidden; }
.pg-res .pg-person > div { min-width: 0; max-width: 100%; overflow: hidden; }
.pg-res .pg-person strong { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: clip; }
.pg-res .pg-person strong a, .pg-res .pg-person > div > a { display: block; overflow-wrap: anywhere; }
.pg-res .pg-meta { max-width: 100%; }
.pg-table.pg-fit .pg-total { width: 84px; }
.pg-table.pg-fit { min-width: calc(200px + var(--ncols, 7) * 112px + 84px); }
@media (max-width: 1350px) { .pg-table.pg-fit { min-width: calc(160px + var(--ncols, 7) * 104px + 80px); } .pg-table.pg-fit .pg-total { width: 80px; } }
.pg-table thead .pg-total { font-size: .8rem; white-space: nowrap; overflow: visible; text-overflow: clip; padding-left: .4rem; padding-right: .5rem; }
/* cartes dans des colonnes étroites : rien ne dépasse */
.pg-card { overflow: hidden; min-width: 0; }
.pg-card .pg-l1 { flex-wrap: wrap; column-gap: .3rem; row-gap: 0; }
.pg-card .pg-l1 strong { min-width: 0; }
.pg-card .pg-loc { min-width: 0; max-width: 100%; }
.pg-card .pg-loc .pg-loc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-card small { overflow-wrap: anywhere; }
.pg-req, .pg-missing { overflow-wrap: anywhere; }

/* Correctif 66 : sous-secteurs (zones de travail) dans le planning */
.pg-card .pg-team { display: inline-block; max-width: 100%; margin-bottom: .12rem; padding: 0 .35rem; border-radius: 5px; font-size: .64rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: color-mix(in srgb, var(--c, var(--accent)) 80%, #000); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-teams { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .5rem 0 .2rem; }
.pg-teams-l { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pg-tchip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; cursor: pointer; }
.pg-tchip:hover { border-color: var(--accent); }
.pg-tchip.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.pg-tchip em { font-style: normal; font-size: .72rem; }
.pg-tmiss { color: #b91c1c; font-weight: 700; } .pg-tok { color: #15803d; font-weight: 800; } .pg-tnone { color: var(--muted); }
.pg-tbar { display: inline-block; width: 38px; height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; }
.pg-tbar b { display: block; height: 100%; background: #16a34a; } .pg-tbar.mid b { background: #f59e0b; } .pg-tbar.low b { background: #dc2626; }
.pg-tmanage { display: inline-flex; align-items: center; gap: .2rem; margin-left: .2rem; }
.pg-table .pg-card.team-off { opacity: .14; }
.pg-table.team-filtered .pg-plus { visibility: hidden; }
.sp2-chip.team { font-weight: 700; background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); }
.tm-body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .8rem; }
.tm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.tm-list li { display: flex; flex-direction: column; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 10px; }
.cs-teams .chips { margin-top: .35rem; }
.pg-teams .pg-tmanage { border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--border)); border-radius: 10px; padding: .3rem .6rem; background: transparent; color: var(--accent); font-weight: 600; text-decoration: none; }
.pg-teams .pg-tmanage:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }

/* Correctif 67 : droit « Créneaux » des responsables */
.lr-banner { display: flex; gap: .75rem; align-items: flex-start; }
.lr-banner > div { flex: 1; min-width: 0; }
.lr-banner p { margin: .2rem 0 .5rem; }
.lr-form { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.lr-list { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.lr-list .check { margin: 0; }
.lr-self { display: flex; gap: .6rem; align-items: center; }

/* Correctif 68 : inscription accompagnée par Wavi, mots de passe enregistrables */
.reg-hero h2 { font-size: 1.55rem; }
.wavi { display: flex; align-items: flex-end; gap: .6rem; margin: .2rem 0 .9rem; }
.wavi-face { flex: none; width: 58px; height: 58px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); transform-origin: 50% 90%; }
.wavi-body { fill: var(--accent); }
.wavi-eye { fill: #fff; } .wavi-glint { fill: #1b1e3a; }
.wavi-mouth { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.wavi-cheek { fill: #fff; opacity: .28; }
.wavi-bubble { position: relative; flex: 1; min-width: 0; margin: 0 0 .5rem; padding: .7rem .85rem; border-radius: 16px 16px 16px 4px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-weight: 600; font-size: .98rem; line-height: 1.4; }
.wavi.is-talk .wavi-bubble, .wavi.is-happy .wavi-bubble, .wavi.is-party .wavi-bubble, .wavi.is-oops .wavi-bubble { animation: pop .3s ease; }
.wavi.is-happy .wavi-face { animation: wavi-hop .6s ease; }
.wavi.is-party .wavi-face { animation: wavi-hop .5s ease 3; }
.wavi.is-oops .wavi-face { animation: wavi-tilt .5s ease; }
.wavi.is-oops .wavi-bubble { background: var(--amber-bg); border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.wavi.is-oops .wavi-mouth { d: path("M26 47c4-3 8-3 12 0"); }
@keyframes wavi-hop { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-10px) rotate(-6deg); } 70% { transform: translateY(0) rotate(4deg); } }
@keyframes wavi-tilt { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } }
.reg-track { margin-bottom: .9rem; }
.reg-track-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: .4rem; }
.reg-track-bar span { display: block; height: 100%; width: 17%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #ffb000)); transition: width .5s cubic-bezier(.3, 1.4, .5, 1); }
.reg-track .reg-progress { margin: 0; }
.reg-track .reg-progress span { border-top: 0; padding-top: 0; text-align: center; }
.reg-shake { animation: reg-shake .45s ease; border-color: var(--amber) !important; }
@keyframes reg-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.reg-ok { margin: -.5rem 0 0; color: var(--green); font-weight: 700; animation: pop .3s ease; }
.reg-fix { margin: -.5rem 0 0; padding: .5rem .7rem; border-radius: 10px; background: var(--amber-bg); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-weight: 600; }
.reg-perks { display: grid; gap: .4rem; }
.reg-perks span { padding: .55rem .75rem; border-radius: 12px; background: var(--surface-2); font-size: .92rem; }
.pw-meter { display: flex; align-items: center; gap: .6rem; margin-top: -.4rem; }
.pw-meter-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pw-meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--red, #d33); transition: width .35s ease, background .35s ease; }
.pw-meter[data-lvl="2"] .pw-meter-bar span { background: var(--amber); }
.pw-meter[data-lvl="3"] .pw-meter-bar span, .pw-meter[data-lvl="4"] .pw-meter-bar span { background: var(--green); }
.pw-meter-label { font-size: .88rem; font-weight: 700; white-space: nowrap; }
.reg-dice { justify-self: start; }
.reg-save { display: grid; gap: .2rem; padding: .7rem .85rem; border-radius: 12px; background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); font-size: .92rem; }
.reg-save strong { color: var(--green); }
.reg-helpline { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.reg-faq { display: grid; gap: .4rem; }
.reg-faq details { border: 1px solid var(--border); border-radius: 12px; padding: .6rem .8rem; background: var(--surface); }
.reg-faq summary { cursor: pointer; font-weight: 700; }
.reg-faq p { margin: .5rem 0 0; }
.reg-contact { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.reg-contact strong { flex-basis: 100%; }
.login-save { margin: .8rem 0 0; text-align: center; }
@media (prefers-reduced-motion: reduce) { .wavi-face, .wavi-bubble, .reg-shake, .reg-track-bar span { animation: none !important; transition: none !important; } }
.reg-wizard, .reg-step { min-width: 0; min-inline-size: 0; max-width: 100%; }
.reg-step { grid-template-columns: minmax(0, 1fr); }
.reg-dice { white-space: normal; text-align: left; max-width: 100%; height: auto; }
.pw-meter-label { white-space: normal; flex: 0 1 auto; min-width: 0; text-align: right; }
.pw-meter-bar { min-width: 4rem; }

/* Correctif 69 : « Planning rapide » au téléphone pour les responsables */
.tr { max-width: 720px; margin: 0 auto; padding-bottom: 6rem; }
.tr-top { position: sticky; top: 0; z-index: 20; background: var(--bg); margin: -.5rem -1rem .5rem; padding: .5rem 1rem .4rem; border-bottom: 1px solid var(--border); }
.tr-title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.tr-title h1 { font-size: 1.3rem; margin: 0; }
.tr-full { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.tr-sector { margin: .4rem 0 0; } .tr-sector select { width: 100%; min-height: 44px; font-weight: 700; font-size: 1rem; }
.tr-sector-one { margin: .2rem 0 0; font-weight: 700; display: flex; align-items: center; gap: .4rem; } .tr-sector-one .dot { width: 10px; height: 10px; border-radius: 50%; }
.tr-days { display: flex; gap: .4rem; overflow-x: auto; padding: .5rem 0 .2rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tr-days::-webkit-scrollbar { display: none; }
.tr-day { flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 1px; min-width: 52px; padding: .35rem .3rem .4rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; }
.tr-day small { font-size: .72rem; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.tr-day strong { font-size: 1.15rem; line-height: 1.1; }
.tr-day.today small { color: var(--accent); }
.tr-day.on { background: var(--accent); border-color: var(--accent); color: #fff; } .tr-day.on small { color: rgba(255, 255, 255, .85); }
.tr-cov { width: 18px; height: 4px; border-radius: 4px; background: var(--border); }
.tr-cov.ok { background: var(--green); } .tr-cov.mid { background: var(--amber); } .tr-cov.low { background: var(--red); } .tr-cov.none { opacity: .3; }
.tr-day.on .tr-cov { box-shadow: 0 0 0 1.5px #fff; }
.tr-date { font-size: 1.1rem; margin: .6rem 0 .4rem; }
.tr-filters { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: .6rem; scrollbar-width: none; }
.tr-filters a { flex: none; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; gap: .35rem; }
.tr-filters a b { font-weight: 800; }
.tr-filters a.warn b { color: var(--red); }
.tr-filters a.on { background: var(--text); color: var(--bg); border-color: var(--text); } .tr-filters a.on b { color: inherit; }
.tr-publish { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding: .7rem .8rem; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: .7rem; }
.tr-publish > span { display: grid; } .tr-publish small { color: var(--muted); }
.tr-publish form { display: flex; align-items: center; gap: .5rem; }
.tr-mail { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; flex-direction: row; margin: 0; }
.tr-empty { text-align: center; padding: 2rem 1rem; border: 2px dashed var(--border); border-radius: 16px; }
.tr-list { display: grid; gap: .7rem; }
.tr-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .75rem .8rem .5rem; box-shadow: var(--shadow); border-left: 5px solid var(--green); scroll-margin-top: 11rem; }
.tr-card.is-open { border-left-color: var(--red); }
.tr-card.flash-ok { animation: tr-flash 1.4s ease; }
@keyframes tr-flash { 0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 45%, transparent); } 100% { box-shadow: var(--shadow); } }
.tr-card-head { display: flex; align-items: center; gap: .5rem; }
.tr-time { flex: 1; min-width: 0; display: grid; }
.tr-time strong { font-size: 1.25rem; letter-spacing: -.01em; }
.tr-time small { color: var(--muted); font-size: .8rem; }
.tr-count { font-weight: 800; padding: .2rem .55rem; border-radius: 999px; font-size: .95rem; }
.tr-count.low { background: var(--red-bg); color: var(--red); } .tr-count.ok { background: var(--green-bg); color: var(--green); }
.tr-more { border: 0; background: var(--surface-2); color: var(--text); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; flex: none; }
.tr-what { margin: .3rem 0 .4rem; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.tr-loc { display: inline-flex; align-items: center; gap: .2rem; font-weight: 500; color: var(--muted); font-size: .88rem; }
.tr-bar { display: block; height: 5px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin-bottom: .3rem; }
.tr-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.tr-card.is-open .tr-bar span { background: var(--amber); }
.tr-people { list-style: none; margin: 0; padding: 0; }
.tr-people > li { display: flex; align-items: center; gap: .3rem; border-top: 1px solid var(--border); }
.tr-person { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .3rem 0; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tr-person:disabled { cursor: default; opacity: 1; }
.tr-name { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: .25rem .4rem; align-items: center; overflow-wrap: anywhere; }
.tr-name .tag { font-style: normal; font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tr-name .tag-draft { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.tr-name .tag-red { background: var(--red-bg); color: var(--red); } .tr-name .tag-green { background: var(--green-bg); color: var(--green); }
.tr-people li.is-declined .tr-name > :first-child, .tr-people li.is-absent .tr-name { text-decoration: none; }
.tr-chev { color: var(--muted); flex: none; }
.tr-call { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.tr-add-row { border-top: 1px dashed var(--border) !important; }
.tr-add { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .4rem; background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.tr-add.is-missing { color: var(--red); }
span.tr-add { cursor: default; }
.tr-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 30; height: 60px; padding: 0 1.2rem 0 1rem; border-radius: 30px; border: 0; background: var(--accent); color: #fff; font: inherit; font-weight: 800; display: flex; align-items: center; gap: .35rem; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; }
.tr-sheet { border: 0; padding: .4rem 1rem calc(1rem + env(safe-area-inset-bottom)); width: 100%; max-width: 640px; max-height: 88vh; margin: auto auto 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); overflow-y: auto; transition: transform .2s ease; }
.tr-sheet[open] { animation: tr-up .25s cubic-bezier(.2, .9, .3, 1); display: grid; gap: .8rem; }
.tr-sheet::backdrop { background: rgba(10, 14, 30, .45); }
@keyframes tr-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
.tr-grab { width: 44px; height: 5px; border-radius: 5px; background: var(--border); margin: .2rem auto 0; }
.tr-sheet-head { display: flex; align-items: center; gap: .7rem; }
.tr-sheet-head > div { flex: 1; min-width: 0; }
.tr-sheet-head h2 { margin: 0; font-size: 1.15rem; }
.tr-sheet-head p { margin: .1rem 0 0; }
.tr-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tr-quick .btn { min-height: 48px; justify-content: center; }
.tr-sec { display: grid; gap: .5rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.tr-sec h3 { margin: 0; font-size: .95rem; display: flex; align-items: center; gap: .35rem; }
.tr-times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .5rem; }
.tr-times > span { padding-bottom: .8rem; color: var(--muted); }
.tr-times input { min-height: 52px; font-size: 1.25rem; font-weight: 700; text-align: center; width: 100%; }
.tr-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.tr-presets .chip { min-height: 40px; padding: .3rem .7rem; font-weight: 700; }
.tr-presets .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.tr-choices { display: grid; gap: .4rem; }
.tr-choice { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; width: 100%; min-height: 48px; padding: .5rem .7rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tr-choice span { margin-left: auto; font-size: .8rem; font-weight: 700; }
.tr-choice .free { color: var(--green); } .tr-choice .full { color: var(--muted); }
.btn-danger-soft { background: var(--red-bg); color: var(--red); border: 0; min-height: 48px; justify-content: center; }
.tr-search { display: flex; align-items: center; gap: .4rem; padding: 0 .7rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.tr-search input { border: 0; background: none; min-height: 48px; flex: 1; font-size: 1rem; box-shadow: none; padding: 0; }
.tr-search input:focus { outline: none; }
.tr-cands, .tr-pool { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.tr-pool { max-height: 34vh; overflow-y: auto; }
.tr-cand, .tr-pool button { width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 54px; padding: .35rem .6rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.tr-pool button { min-height: 48px; font-weight: 600; }
.tr-pool button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.tr-cand-txt { flex: 1; min-width: 0; display: grid; } .tr-cand-txt small { color: var(--muted); font-size: .8rem; }
.tr-cand-add { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.2rem; }
.tr-cand.is-warn .tr-cand-add { background: var(--amber); }
.tr-cand.is-blocked { opacity: .55; cursor: not-allowed; }
.tr-cands-sep { padding: .4rem .2rem 0; }
.tr-chosen { margin: 0; padding: .5rem .7rem; border-radius: 10px; background: var(--green-bg); color: var(--green); }
.tr-seg { display: flex; width: 100%; } .tr-seg button { flex: 1; min-height: 42px; font-weight: 700; }
.tr-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tr-places { display: flex; align-items: center; gap: .6rem; }
.tr-places > span { flex: 1; font-weight: 600; }
.tr-places output, .tr-places input { min-width: 3.5rem; text-align: center; font-size: 1.4rem; font-weight: 800; }
.tr-places input { width: 5rem; min-height: 48px; }
.tr-step { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.tr-daychips { display: flex; flex-wrap: wrap; gap: .35rem; }
.tr-daychips label { margin: 0; flex-direction: row; }
.tr-daychips input { position: absolute; opacity: 0; }
.tr-daychips span { display: inline-block; padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; cursor: pointer; min-height: 40px; }
.tr-daychips input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.tr-daychips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.tr-issues { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.tr-toast { position: fixed; left: 50%; bottom: calc(9.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000; max-width: min(92vw, 520px); padding: .7rem 1rem; border-radius: 14px; background: #14532d; color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); text-align: center; }
.tr-toast.bad { background: #7f1d1d; }
.is-busy { opacity: .6; pointer-events: none; }
@media (min-width: 900px) { .tr-sheet { margin: auto; border-radius: 22px; } .tr-fab { bottom: 2rem; } .tr-top { margin: 0 0 .5rem; border-radius: 0 0 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .tr-sheet[open], .tr-card.flash-ok { animation: none; } }
/* Correctif 69 : barre du bas des responsables (téléphone et tablette) */
.staff-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: .7rem; font-weight: 600; color: var(--muted); background: none; border: 0; min-height: 48px; cursor: pointer; }
.staff-nav button .bn-icon { padding: 3px 14px; border-radius: 999px; box-sizing: content-box; }
@media (max-width: 1023px) { .is-staff .content { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 1024px) { .staff-nav { display: none; } .tr-fab { bottom: 2rem; } }
@media print { .staff-nav, .tr-fab { display: none !important; } }
.tr-entry { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; margin-bottom: .8rem; border-radius: 16px; background: var(--accent); color: #fff; text-decoration: none; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.tr-entry > span { flex: 1; display: grid; } .tr-entry small { opacity: .9; font-size: .82rem; }
.tr-entry:hover { text-decoration: none; color: #fff; }
@media (min-width: 1024px) { .tr-entry { display: none; } }
.staff-nav > a, .staff-nav > button { align-self: stretch; justify-content: center; padding: .35rem 0; margin: 0; line-height: 1.2; }
.tr-search { flex-direction: row !important; margin: 0; }
.tr-search svg { flex: none; color: var(--muted); }
.tr-chosen { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1.05rem; }
.tr-chosen .link { font-weight: 700; }
.tr-top { position: static; border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.tr-days { position: sticky; top: var(--tb-h, 62px); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); margin: 0 -1rem; padding: .5rem 1rem; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .tr-days { margin: 0; border-radius: 0 0 12px 12px; } }
.tr-add { justify-content: flex-start; padding-left: .2rem; }

/* Correctif 70 : en-tête de la grille plus lisible, appel aux renforts, vérification avant publication */
.pg-qform { display: inline-flex; align-items: center; gap: .3rem; padding-left: .55rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pg-qform svg { color: var(--muted); flex: none; }
.pg-qform input { border: 0; box-shadow: none; background: none; min-width: 9rem; }
.pg-qform input:focus { outline: none; }
.pg-qform:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pg-published { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; color: var(--green); padding: .35rem .7rem; border-radius: 999px; background: var(--green-bg); white-space: nowrap; }
.pg-reinforce { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); color: var(--red); }
.pg-addbox { position: relative; margin-left: auto; }
.pg-addbox > summary { list-style: none; cursor: pointer; } .pg-addbox > summary::-webkit-details-marker { display: none; }
.pg-addbox[open] > summary { background: var(--surface-2); }
.pg-addbox .pg-add { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 25; width: min(360px, 90vw); display: grid; gap: .45rem; padding: .8rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.pg-addbox .pg-add p { margin: 0; }
.pg-addbox .pg-add select, .pg-addbox .pg-add input[type=search] { width: 100%; margin: 0 !important; }
.chip.is-zero { opacity: .5; }
.chip.is-zero:hover, .chip.is-zero.active { opacity: 1; }
.pg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pg-filters .pg-viewbar { margin: 0 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: 0; border: 0; background: none; }
.pg-filters .pg-legend { position: relative; }
.pg-filters .pg-legend > summary { padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); white-space: nowrap; }
.pg-filters .pg-legend[open] .pg-legend-grid { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 25; width: min(820px, 92vw); padding: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.pg-tdup { font-weight: 800; color: var(--amber); font-size: .8em; }
.pg-tdup-warn { font-size: .82rem; font-weight: 700; color: var(--amber); padding: .3rem .6rem; border-radius: 999px; background: var(--amber-bg); white-space: nowrap; }
.rf-body { display: grid; gap: .7rem; }
.rf-scope { width: 100%; display: flex; } .rf-scope button { flex: 1; }
.rf-slots { border: 1px solid var(--border); border-radius: 12px; padding: .5rem .7rem .7rem; margin: 0; max-height: 42vh; overflow-y: auto; }
.rf-slots legend { font-weight: 700; padding: 0 .3rem; }
.rf-slot { display: flex; align-items: flex-start; gap: .55rem; flex-direction: row; padding: .45rem .2rem; border-bottom: 1px solid var(--border); margin: 0; cursor: pointer; }
.rf-slot:last-child { border-bottom: 0; }
.rf-slot input { margin-top: .25rem; }
.rf-slot span { display: grid; } .rf-slot small { color: var(--muted); }
.rf-slot.is-none { opacity: .55; }
.rf-who { margin: 0; padding: .55rem .7rem; border-radius: 10px; background: var(--surface-2); }
.pc-kpis { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.pc-kpis > span { padding: .4rem .75rem; border-radius: 999px; background: var(--surface-2); font-size: .92rem; }
.pc-k-warn { background: var(--amber-bg) !important; color: var(--amber); } .pc-k-ok { background: var(--green-bg) !important; color: var(--green); }
.pc-list { display: grid; gap: .5rem; max-height: 50vh; overflow-y: auto; padding-right: .2rem; }
.pc-person { border: 1px solid var(--border); border-radius: 12px; padding: .55rem .75rem; }
.pc-person.has-alert { border-color: color-mix(in srgb, var(--amber) 50%, var(--border)); background: color-mix(in srgb, var(--amber-bg) 40%, var(--surface)); }
.pc-person h3 { margin: 0 0 .25rem; font-size: .98rem; } .pc-person h3 small { color: var(--muted); font-weight: 500; }
.pc-person ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; }
.pc-person li { font-size: .9rem; }
.pc-when { font-weight: 700; }
.pc-auto { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--accent); }
.pc-alerts { display: block; color: var(--amber); font-weight: 600; font-size: .85rem; }
.pc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.pc-foot .check { margin: 0; }
#reinforce-dialog, #pubcheck-dialog { overflow-y: auto; max-height: 92vh; }
#reinforce-dialog .rf-body { padding: 1rem 1.2rem 1.2rem; }
#reinforce-dialog .rf-slots { max-height: 32vh; }
#pubcheck-dialog .pc-kpis, #pubcheck-dialog .pc-filter, #pubcheck-dialog .pc-list { margin-left: 1.2rem; margin-right: 1.2rem; }
#pubcheck-dialog .pc-kpis { margin-top: 1rem; }
#pubcheck-dialog .pc-foot { padding: .8rem 1.2rem 1.1rem; margin-top: .8rem; }
.pg-filters .pg-viewbar { flex-wrap: nowrap; flex: none; }
.pg-filters .pg-legend { flex: none; border: 0; background: none; }
.pg-filters .pg-legend > summary { min-height: 32px; font-size: .82rem; }
.pg-filters .pg-density button { padding: .25rem .6rem; font-size: .82rem; }

/* Correctif 71 : fiche bénévole */
.vp-hint { margin: -.2rem 0 .5rem; }
.vp-mlist li.is-open { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s; }
.vp-mlist li.is-open:hover, .vp-mlist li.is-open:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--accent)) 45%, var(--border)); outline: none; }
.vp-mgo { color: var(--muted); display: inline-flex; order: 9; }
.vp-suggest .card-head { flex-wrap: wrap; gap: .3rem .8rem; }
.vp-sglist { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .45rem; }
.vp-sglist li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1px solid var(--border); border-left: 4px solid var(--c, var(--accent)); border-radius: 12px; }
.vp-sgbody { flex: 1; min-width: 0; display: grid; }
.vp-sgbody small { color: var(--muted); }
.vp-sgok, .vp-sgwarn { font-style: normal; font-size: .8rem; font-weight: 700; }
.vp-sgok { color: var(--green); } .vp-sgwarn { color: var(--amber); }
.meal-grant-box { margin-top: .7rem; }
.meal-grant-box > summary { list-style: none; display: inline-flex; } .meal-grant-box > summary::-webkit-details-marker { display: none; }
.meal-grant-box[open] > summary { margin-bottom: .6rem; }
.vp-hist .card-head { flex-wrap: wrap; gap: .3rem .8rem; }
.vp-hlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.vp-hlist li { position: relative; display: flex; align-items: center; gap: .3rem; border: 1px solid var(--border); border-left: 4px solid var(--c, var(--border)); border-radius: 12px; background: var(--surface); }
.vp-hlist li.is-more { display: none; }
.vp-hlist li.is-cancel { opacity: .65; }
.vp-hmain { flex: 1; min-width: 0; display: grid; grid-template-columns: 7.2rem 1fr auto; align-items: center; gap: .7rem; padding: .5rem .7rem; background: none; border: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 12px; }
.vp-hmain:disabled { cursor: default; }
.vp-hmain:not(:disabled):hover { background: var(--surface-2); }
.vp-hdate, .vp-hwhat { display: grid; min-width: 0; } .vp-hdate small, .vp-hwhat small { color: var(--muted); }
.vp-hwhat strong, .vp-hwhat small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-hst { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-end; align-items: center; }
.vp-hmenu { position: relative; flex: none; margin-right: .3rem; }
.vp-hmenu > summary { list-style: none; cursor: pointer; } .vp-hmenu > summary::-webkit-details-marker { display: none; }
.vp-hmenu-pop { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 30; width: 260px; padding: .35rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.vp-hmenu-pop form { margin: 0; }
.vp-hmenu-pop button { width: 100%; display: flex; align-items: flex-start; gap: .5rem; padding: .55rem .6rem; border: 0; background: none; border-radius: 8px; font: inherit; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.vp-hmenu-pop button span { display: grid; } .vp-hmenu-pop button small { font-weight: 400; color: var(--muted); }
.vp-hmenu-pop button:hover { background: var(--surface-2); }
.vp-hmenu-pop button.danger { color: var(--red); }
.vp-hall { margin-top: .5rem; }
@media (max-width: 640px) { .vp-hmain { grid-template-columns: 1fr; gap: .2rem; } .vp-hst { justify-content: flex-start; } }
.vp-checks-box > summary { cursor: pointer; color: var(--green); font-weight: 700; margin-top: .5rem; }
.vp-checks-box[open] > summary { margin-bottom: .5rem; }
.vp-notes .card-head { align-items: center; }
.vp-nlist { list-style: none; margin: 0 0 .7rem; padding: 0; display: grid; gap: .45rem; }
.vp-nlist li { padding: .55rem .7rem; border-radius: 12px; background: var(--surface-2); }
.vp-nlist li.is-pinned { background: color-mix(in srgb, var(--amber-bg) 70%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); }
.vp-nlist p { margin: 0 0 .25rem; white-space: pre-line; }
.vp-nmeta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--muted); }
.vp-nact { display: flex; gap: .6rem; margin: 0; }
.link-btn.danger { color: var(--red); }
.vp-nform { display: grid; gap: .4rem; }
.vp-nform textarea { width: 100%; }
.vp-avail + h3, .vp-avail ~ h3 { margin-top: 1rem; }
/* Fenêtre « détail de la mission » */
.vm-dialog { width: min(640px, 96vw); max-height: 92vh; overflow-y: auto; }
.vm-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding: 1.1rem 1.2rem 1rem; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--accent)) 22%, var(--surface)), var(--surface) 80%); border-bottom: 1px solid var(--border); border-top: 6px solid var(--c, var(--accent)); }
.vm-hero h2 { margin: .1rem 0; font-size: 1.4rem; }
.vm-kicker { margin: 0; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.vm-sub { margin: 0; color: var(--muted); font-weight: 600; }
.vm-body { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .9rem; }
.vm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vm-kpis > div { display: grid; gap: .1rem; padding: .6rem .7rem; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.vm-kpis small { color: var(--muted); font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
.vm-kpis strong { font-size: 1.05rem; overflow-wrap: anywhere; } .vm-kpis span, .vm-kpis a { font-size: .82rem; }
@media (max-width: 520px) { .vm-kpis { grid-template-columns: 1fr 1fr; } .vm-kpis > div:last-child { grid-column: 1 / -1; } }
.vm-sec h3 { margin: 0 0 .4rem; font-size: .98rem; } .vm-sec h3 small { color: var(--muted); font-weight: 600; margin-left: .2rem; }
.vm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.vm-people li { display: flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 10px; background: var(--surface-2); }
.vm-pn { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; font-weight: 600; }
.vm-pn small { flex-basis: 100%; color: var(--muted); font-weight: 400; }
.vm-pn .tag { font-style: normal; font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 999px; background: var(--surface); color: var(--muted); }
.vm-pn .tag-red { background: var(--red-bg); color: var(--red); } .vm-pn .tag-green { background: var(--green-bg); color: var(--green); }
.vm-call { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-bg); text-decoration: none; }
.vm-day { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.vm-day li { padding: .35rem .6rem; border-left: 4px solid var(--c, var(--border)); border-radius: 6px; background: var(--surface-2); font-size: .92rem; }
.vm-day li.is-cur { background: color-mix(in srgb, var(--c, var(--accent)) 14%, var(--surface)); font-weight: 600; }
.vm-day em { font-style: normal; color: var(--accent); font-size: .8rem; }
.vm-override { color: var(--amber); margin: 0; }
.vm-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.vp-mlist li.is-open { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
/* Correctif 71 : côté bénévole, « votre équipe ce jour-là » */
.crew { display: grid; gap: .35rem; padding: .6rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.crew-h { margin: 0; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .3rem; } .crew-h small { color: var(--muted); font-weight: 500; }
.crew-list { list-style: none; margin: 0 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crew-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem .2rem .2rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: .88rem; }
.crew-list .avatar-sm { width: 26px; height: 26px; font-size: .66rem; }
.crew-more li { border-radius: 12px; } .crew-more li > span:last-child { display: grid; line-height: 1.15; } .crew-more small { font-weight: 400; color: var(--muted); font-size: .74rem; }
.crew-map { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin: .2rem 0; }
.mday-map { display: block; font-size: .85rem; font-weight: 600; margin-top: .1rem; }
.vp-hlist li:focus-within, .vp-hlist li:has(.vp-hmenu[open]) { z-index: 8; }
.vp-hmenu[open] > summary { background: var(--surface-2); border-radius: 10px; }
.vp-hlist li.is-cancel { opacity: 1; } .vp-hlist li.is-cancel .vp-hmain { opacity: .6; }

/* Correctif 72 : questions d'engagement (inscription, profil) */
.eg { display: grid; gap: .9rem; }
.eg-q { border: 1px solid var(--border); border-radius: 14px; padding: .7rem .85rem .85rem; margin: 0; background: var(--surface); min-width: 0; }
.eg-q legend { font-weight: 800; padding: 0 .3rem; font-size: 1rem; }
.eg-req { color: var(--red); margin-left: .1rem; }
.eg-help { display: flex; gap: .4rem; align-items: flex-start; margin: 0 0 .55rem; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.eg-help svg { flex: none; margin-top: .15rem; }
.eg-opts { display: grid; gap: .45rem; }
.eg-yn { grid-template-columns: 1fr 1fr; }
.eg-opt { margin: 0; flex-direction: row; position: relative; }
.eg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.eg-opt > span { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 52px; padding: .55rem .75rem; border: 2px solid var(--border); border-radius: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.eg-opt > span i { font-style: normal; font-size: 1.25rem; }
.eg-opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.eg-opt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.eg-opt input[type=checkbox] + span::after, .eg-opt input[type=radio] + span::after { content: ""; margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none; }
.eg-opt input[type=checkbox] + span::after { border-radius: 6px; }
.eg-opt input:checked + span::after { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.eg-attest { display: grid; gap: .45rem; }
.eg-check { margin: 0; flex-direction: row; display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .7rem; border-radius: 12px; background: var(--surface-2); cursor: pointer; font-weight: 500; }
.eg-check input { width: 22px; height: 22px; flex: none; margin-top: .1rem; accent-color: var(--accent); }
.eg-check > span { display: flex; gap: .45rem; } .eg-check i { font-style: normal; }
.eg-check:has(input:checked) { background: var(--green-bg); }
.eg-done { margin: 0; display: flex; gap: .45rem; padding: .5rem .7rem; border-radius: 12px; background: var(--green-bg); }
.eg-done i { font-style: normal; } .eg-done small { display: block; color: var(--green); font-weight: 700; }
.eg-card.is-todo { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); }
.eg-nudge { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--text); border: 2px solid color-mix(in srgb, var(--amber) 50%, var(--border)); background: color-mix(in srgb, var(--amber-bg) 60%, var(--surface)); }
.eg-nudge > span:nth-child(2) { flex: 1; display: grid; } .eg-nudge small { color: var(--muted); }
.eg-nudge-ic { font-size: 1.8rem; }
.eg-nudge:hover { text-decoration: none; }
@media (max-width: 420px) { .eg-yn { grid-template-columns: 1fr; } }

/* Correctif 73 : Candidatures — bannière « tout est traité », chiffres colorés, « Où recruter ? », « Dernières décisions » */
.ca-zen { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding: 1.2rem 1.3rem; margin-bottom: 1rem; border-radius: 18px; background: linear-gradient(120deg, var(--green-bg), color-mix(in srgb, var(--accent) 8%, var(--surface)) 70%); border: 1px solid color-mix(in srgb, var(--green) 25%, transparent); }
.ca-zen-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--green); box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 25%, transparent); animation: pop .5s ease; flex: none; }
.ca-zen-txt { flex: 1 1 280px; min-width: 0; }
.ca-zen-txt h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.ca-zen-txt p { margin: 0; }
.ca-zen-todo { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem !important; }
.ca-zen-todo a { padding: .25rem .65rem; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .88rem; text-decoration: none; border: 1px solid var(--border); }
.ca-zen-act { display: flex; flex-wrap: wrap; gap: .5rem; }
.ca-kpi { position: relative; padding-left: 3.4rem; min-height: 86px; justify-content: center; transition: transform .12s, box-shadow .12s, border-color .12s; }
.ca-ki { position: absolute; left: .85rem; top: .9rem; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-style: normal; background: var(--surface-2); color: var(--muted); }
.ca-kpi strong { font-size: 1.6rem; line-height: 1; }
.k-main .ca-ki { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.k-new .ca-ki { background: #e0f2fe; color: #0369a1; }
.k-late .ca-ki { background: var(--red-bg); color: var(--red); }
.k-wait .ca-ki { background: var(--amber-bg); color: var(--amber); }
.k-place .ca-ki { background: var(--green-bg); color: var(--green); }
.ca-kpi.is-zero { background: transparent; box-shadow: none; }
.ca-kpi.is-zero strong { color: var(--muted); }
.ca-kpi.is-zero .ca-ki { filter: grayscale(1); opacity: .6; }
a.ca-kpi:not(.is-zero):hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ca-kpi.is-main { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.ca-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; align-items: start; }
.ca-insights .card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ca-insights h2 { margin: 0; font-size: 1.08rem; }
.ca-nlist, .ca-tl { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.ca-nlist li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto auto; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 12px; background: var(--surface-2); }
.ca-nname { display: flex; align-items: center; gap: .4rem; min-width: 0; } .ca-nname strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-nname .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.ca-nbar { height: 8px; border-radius: 99px; background: var(--surface); overflow: hidden; } .ca-nbar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.ca-nnum { display: grid; text-align: right; line-height: 1.2; font-size: .9rem; } .ca-nopen { color: var(--amber); font-weight: 700; }
@media (max-width: 560px) { .ca-nlist li { grid-template-columns: 1fr auto; } .ca-nbar { grid-column: 1 / -1; order: 3; } }
.ca-tl li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; }
.ca-tl li > span:last-child { display: grid; } .ca-tl small { font-size: .78rem; }
.ca-tl-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--surface-2); }
.t-ok .ca-tl-dot { background: var(--green-bg); color: var(--green); } .t-no .ca-tl-dot { background: var(--red-bg); color: var(--red); } .t-wait .ca-tl-dot { background: var(--amber-bg); color: var(--amber); }

/* Correctif 73 : messagerie — pastilles de groupe, épinglées, tuiles « Démarrer », tableau d'accueil */
.chat-avatar.gi { font-weight: 800; font-size: .8rem; letter-spacing: .02em; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: color-mix(in srgb, var(--c) 75%, #000); border: 2px solid color-mix(in srgb, var(--c) 35%, transparent); }
.chat-list li { position: relative; }
.chat-list li > a { padding-right: 2.4rem; }
.chat-pin { position: absolute; right: .35rem; top: .35rem; width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: .8rem; opacity: 0; filter: grayscale(1); transition: opacity .15s; }
.chat-list li:hover .chat-pin, .chat-pin:focus-visible, .chat-pin.on { opacity: 1; }
.chat-pin.on { filter: none; }
@media (hover: none) { .chat-pin { opacity: .45; } .chat-pin.on { opacity: 1; } }
.chat-list .chat-side { margin-right: .2rem; }
.chat-sec-h { margin: .2rem .2rem .35rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chat-list-pins:empty { display: none; }
.chat-list-pins { margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px dashed var(--border); }
.chat-quiet > summary { display: flex; align-items: center; gap: .4rem; }
.chat-quiet-n { font-size: .75rem; padding: .05rem .45rem; border-radius: 999px; background: var(--surface-2); }
.chat-tiles { list-style: none; margin: .3rem 0 .6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .45rem; }
.chat-tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .7rem .4rem; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.2; min-height: 92px; justify-content: center; transition: transform .12s, border-color .12s, box-shadow .12s; }
.chat-tile:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); box-shadow: var(--shadow); }
.chat-tile span:last-child { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chat-tile .chat-avatar.group, .chat-tile .avatar { width: 42px; height: 42px; }
@media (min-width: 900px) { .chat-welcome { place-items: start stretch !important; text-align: left !important; padding: 1.4rem 1.6rem !important; overflow-y: auto; } }
.chat-hub { display: grid; gap: .8rem; width: 100%; max-width: 760px; margin: 0 auto; }
.chat-hub-hello { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: 18px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 75%); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.chat-hub-hello > div { flex: 1; min-width: 200px; } .chat-hub-hello h2 { margin: 0; font-size: 1.25rem; } .chat-hub-hello p { margin: .15rem 0 0; }
.chat-hub-hello .chat-welcome-ico { width: 56px; height: 56px; flex: none; }
.chat-hub-h { margin: .3rem 0 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chat-hub-recent { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .55rem; }
.chat-hub-card { display: grid; gap: .2rem; padding: .75rem .85rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c); color: var(--text); min-width: 0; }
.chat-hub-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.chat-hub-card small { color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.chat-hub-card em { font-style: normal; font-size: .75rem; color: var(--muted); }
.chat-hub-card.unread em { color: var(--accent); font-weight: 700; }
.chat-hub-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .5rem; }
.chat-hub-g { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.chat-hub-g:hover { text-decoration: none; border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.chat-hub-g > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .chat-hub-g strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chat-hub-g small { color: var(--muted); font-size: .76rem; }
.chat-hub-tip { margin: .2rem 0 0; }
@media (min-width: 900px) { .chat-home .chat-aside .chat-quiet { display: none; } .chat-home .chat-aside .chat-hint { font-size: .85rem; } }
.ca-tl li > span:last-child { display: block; min-width: 0; } .ca-tl small { display: block; }
.chat-page > p.small.muted:last-of-type { margin-top: .8rem; }

/* Correctif 74 : centre de contrôle en 12 cases (retour à la présentation lisible) */
@media (min-width: 900px) { .db-classic.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.db-classic .stat { transition: transform .12s, box-shadow .12s, border-color .12s; }
.db-classic a.stat:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.db-classic .stat > div { flex: 1; }
.db-classic .stat strong { display: block; line-height: 1.15; margin-top: .1rem; }
.db-classic .stat strong small { display: inline; font-size: .72rem; font-weight: 600; }
.db-classic .stat-warn { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); background: color-mix(in srgb, var(--amber-bg) 45%, var(--surface)); }
.db-classic .stat-bad { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); background: color-mix(in srgb, var(--red-bg) 40%, var(--surface)); }
.db-classic .stat-bad strong { color: var(--red); }
.db-classic .stat-good strong { color: var(--green); }
.stat-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: .35rem; }
.stat-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--amber) 50%, var(--green)); background-size: 300% 100%; background-position: 0 0; }

/* Correctif 76 : disponibilités dans la grille — sobre, intégré à la case */
.pg-plus.pg-plus-av { display: grid; place-items: center; gap: .15rem; text-align: center; min-height: 4.2rem; font-size: inherit; border-style: solid; border-width: 1px; border-color: transparent; background: transparent; color: var(--muted); position: relative; overflow: hidden; }
.pg-avtxt { display: grid; gap: .05rem; line-height: 1.2; transition: opacity .15s, transform .15s; }
.pg-avtxt b { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pg-avtxt small { font-size: .82rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.pg-plus-av.is-ok .pg-avtxt b { color: var(--green); }
.pg-plus-av.is-cond .pg-avtxt b { color: var(--amber); }
.pg-plus-av.is-no .pg-avtxt b { color: color-mix(in srgb, var(--red) 75%, var(--muted)); }
.pg-plus-av.is-full .pg-avtxt b, .pg-plus-av.is-full .pg-avtxt small { color: var(--muted); }
.pg-avgo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .3rem; font-weight: 700; font-size: .85rem; color: var(--accent); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.pg-plus-av:hover, .pg-plus-av:focus-visible { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.pg-plus-av:hover .pg-avtxt, .pg-plus-av:focus-visible .pg-avtxt { opacity: 0; transform: translateY(-4px); }
.pg-plus-av:hover .pg-avgo, .pg-plus-av:focus-visible .pg-avgo { opacity: 1; transform: none; }
@media (hover: none) { .pg-avgo { display: none; } }
.pg-freeline { display: block; width: 100%; margin: .15rem 0 0; padding: .15rem .3rem; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .74rem; font-weight: 600; color: var(--green); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-freeline::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: .35rem; vertical-align: middle; opacity: .8; }
.pg-freeline.is-cond { color: var(--amber); }
.pg-freeline:hover, .pg-freeline:focus-visible { background: color-mix(in srgb, var(--green) 10%, transparent); outline: none; }
.pg-table.pg-compact .pg-plus-av { min-height: 2.6rem; } .pg-table.pg-compact .pg-avtxt b { display: none; }
@media print { .pg-freeline, .pg-avtxt, .pg-avgo { display: none !important; } }
/* fenêtre « + » : encadré sobre */
.gd-av { display: grid; gap: .45rem; padding: .65rem .8rem; border-radius: 12px; font-size: .88rem; margin-bottom: .7rem; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-left: 4px solid var(--muted); }
.gd-av.is-ok { border-left-color: var(--green); } .gd-av.is-cond { border-left-color: var(--amber); } .gd-av.is-no { border-left-color: var(--red); } .gd-av.is-none { color: var(--muted); }
.gd-av em { font-style: normal; color: var(--muted); }
.gd-av-f { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; } .gd-av-f small { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: .15rem; }
.gd-freechip { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.gd-freechip:hover { border-color: var(--green); }
.gd-freechip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.gd-avcheck { margin: .35rem 0 .2rem; font-size: .84rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.gd-avcheck::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.gd-avcheck.is-ok { color: var(--green); } .gd-avcheck.is-bad { color: var(--amber); } .gd-avcheck.is-unk { color: var(--muted); }
.day-chip.av-ok > span, .day-chip.av-cond > span, .day-chip.av-no > span, .day-chip.av-full > span { position: relative; }
.day-chip.av-ok > span::after, .day-chip.av-cond > span::after, .day-chip.av-no > span::after, .day-chip.av-full > span::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; }
.day-chip.av-ok > span::after { background: var(--green); } .day-chip.av-cond > span::after { background: var(--amber); } .day-chip.av-no > span::after { background: var(--red); } .day-chip.av-full > span::after { background: var(--border); }
/* Correctif 77 : fenêtres « + » (et autres gd2) toujours entières sur un portable — défilement interne, en-tête et bouton fixes */
.dialog.gd2 { max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.gd2 > .dialog-head { position: sticky; top: 0; z-index: 4; background-color: var(--surface); }
.gd2 .gd-go { position: sticky; bottom: 0; z-index: 3; box-shadow: 0 -14px 18px -6px var(--surface), 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.gd2 .gd-free { padding-bottom: .1rem; }
@media (max-height: 820px) and (min-width: 521px) {
  .gd2 .dialog-head { padding: .7rem 1.1rem .6rem; } .gd2 .dialog-head h2 { font-size: 1.1rem; }
  .gd2 > .gd-tabs { margin: .6rem 1.1rem 0; } .gd2 > .gd-tabs button { padding: .4rem .5rem; }
  .gd2 [data-gd-pane] { padding: .7rem 1.1rem .9rem; } .gd2 .gd-free { gap: .55rem; }
  .gd2 .gd-hours input { font-size: 1.05rem; padding-block: .45rem; }
  .gd2 .gd-av { padding: .5rem .7rem; margin-bottom: .2rem; }
  .gd2 .day-chip > span { padding-block: .25rem; }
  .gd2 textarea[name="notes"] { min-height: 2.4rem; }
  .gd2 .gd-go { padding-block: .65rem; }
}
.gd2 > .gd-tabs { width: auto; box-sizing: border-box; }
/* Correctif 78 : fenêtre « + » en trois zones — en-tête fixe, contenu qui défile, bouton fixe (tous navigateurs, Safari compris) */
.dialog.gd3 { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden; scrollbar-gutter: auto; }
.dialog.gd3[open] { display: flex; flex-direction: column; }
.gd3 > .dialog-head { position: static; flex: none; }
.gd3 > .gd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.gd3 .gd-body > .gd-tabs { margin: 1rem 1.2rem 0; display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; border-radius: 14px; width: auto; box-sizing: border-box; }
.gd3 .gd-body > .gd-tabs[hidden] { display: none; }
.gd3 .gd-body > .gd-tabs button { justify-content: center; padding: .55rem .6rem; font-weight: 700; border-radius: 10px; }
.gd3 > .gd-foot { flex: none; padding: .75rem 1.2rem .9rem; border-top: 1px solid var(--border); background: var(--surface); }
.gd3 > .gd-foot[hidden] { display: none; }
.gd3 .gd-go { position: static; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .2rem .5rem; margin: 0; }
.gd3 .gd-sum { flex-basis: 100%; text-align: center; font-size: .8rem; font-weight: 600; opacity: .85; font-variant-numeric: tabular-nums; }
.gd3 .gd-sum:empty { display: none; }
/* horaires habituels : ceux qui tombent dans ses heures libres sont mis en avant */
.gd-presets .chip.is-fit { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.gd-presets .chip.is-fit::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: .35rem; vertical-align: middle; }
.gd-presets .chip.is-out { opacity: .5; }
.gd-presets .chip.is-out:hover, .gd-presets .chip.is-out.active { opacity: 1; }
@media (max-height: 820px) and (min-width: 521px) {
  .gd3 .gd-body > .gd-tabs { margin: .6rem 1.1rem 0; } .gd3 .gd-body > .gd-tabs button { padding: .4rem .5rem; }
  .gd3 > .gd-foot { padding: .55rem 1.1rem .65rem; }
}
@media (max-width: 520px) { .gd3 > .gd-foot { padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); } }
/* Correctif 79 : ascenseur toujours visible dans les fenêtres (Mac compris) + repère « Suite ↓ » */
.gd3 > .gd-body, .dialog.gd2:not(.gd3) { scrollbar-gutter: stable; }
.gd3 > .gd-body::-webkit-scrollbar, .dialog.gd2:not(.gd3)::-webkit-scrollbar { width: 12px; }
.gd3 > .gd-body::-webkit-scrollbar-track, .dialog.gd2:not(.gd3)::-webkit-scrollbar-track { background: var(--surface-2); border-left: 1px solid var(--border); }
.gd3 > .gd-body::-webkit-scrollbar-thumb, .dialog.gd2:not(.gd3)::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, var(--muted)); border-radius: 8px; border: 3px solid var(--surface-2); min-height: 40px; }
.gd3 > .gd-body::-webkit-scrollbar-thumb:hover, .dialog.gd2:not(.gd3)::-webkit-scrollbar-thumb:hover { background: var(--accent); }
@supports (-moz-appearance: none) { .gd3 > .gd-body, .dialog.gd2:not(.gd3) { scrollbar-width: auto; scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--muted)) var(--surface-2); } }
.gd3 > .gd-foot { position: relative; }
.gd-more { position: absolute; left: 50%; top: 0; transform: translate(-50%, calc(-100% - 8px)); z-index: 5; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .8rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); cursor: pointer; animation: gd-bob 1.6s ease-in-out infinite; }
.gd-more[hidden] { display: none; }
.gd-more:hover { border-color: var(--accent); color: var(--accent); }
@keyframes gd-bob { 0%, 100% { transform: translate(-50%, calc(-100% - 8px)); } 50% { transform: translate(-50%, calc(-100% - 4px)); } }
@media (prefers-reduced-motion: reduce) { .gd-more { animation: none; } }
.site-ver { opacity: .7; font-variant-numeric: tabular-nums; }
/* Correctif 81 : disponibilités en transparence — un filigrane qui s'efface derrière les vraies missions */
.pg-plus.pg-plus-av .pg-avtxt { opacity: .42; transition: opacity .15s, transform .15s; }
.pg-plus.pg-plus-av .pg-avtxt b { font-weight: 700; }
.pg-plus.pg-plus-av .pg-avtxt small { font-weight: 500; color: var(--text); }
.pg-plus.pg-plus-av.is-no .pg-avtxt, .pg-plus.pg-plus-av.is-full .pg-avtxt { opacity: .34; }
.pg-plus.pg-plus-av:focus-visible .pg-avtxt { opacity: 0; }
@media (hover: none) { .pg-plus.pg-plus-av .pg-avtxt { opacity: .55; } }
.pg-freeline { opacity: .5; font-weight: 500; transition: opacity .15s, background .15s; }
.pg-freeline:hover, .pg-freeline:focus-visible { opacity: 1; }
td.pg-cell:hover .pg-plus.pg-plus-av:not(:hover) .pg-avtxt { opacity: .6; }
@media print { .pg-plus.pg-plus-av .pg-avtxt { opacity: 1; } }

/* ===== Correctif 85 : check-lists, questions, matériel, covoiturage, objets trouvés ===== */
.linklike { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; }
.linklike.danger { color: var(--red); }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .6rem; color: var(--muted); }
/* Check-lists */
.cl-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-bottom: 1.2rem; }
.cl-card h3 { margin: .3rem 0 .5rem; }
.cl-items { margin: .4rem 0 0; padding-left: 1.3rem; display: grid; gap: .25rem; }
.cl-items .is-critical { font-weight: 600; }
.cl-track { display: grid; gap: .5rem; }
.cl-shift { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cl-shift > summary { display: grid; grid-template-columns: 1fr minmax(80px, 160px) auto; align-items: center; gap: .8rem; padding: .65rem .9rem; cursor: pointer; list-style: none; }
.cl-shift > summary::-webkit-details-marker { display: none; }
.cl-shift.is-alert { border-color: var(--red); background: var(--red-bg); }
.cl-shift > :not(summary) { padding: 0 .9rem .7rem; }
.cl-bar { height: 8px; border-radius: 99px; background: var(--gray-bg); overflow: hidden; }
.cl-bar i { display: block; height: 100%; background: var(--green); border-radius: inherit; transition: width .3s; }
.cl-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.cl-sub { margin: .4rem 0 .2rem; font-weight: 600; font-size: .9rem; }
.cl-done { margin: 0; padding: 0; list-style: none; display: grid; gap: .2rem; font-size: .9rem; }
.cl-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; background: var(--c, var(--primary)); margin-right: .4rem; vertical-align: -.05rem; }
.cl-link { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; padding: .5rem .75rem; border-radius: 10px; background: var(--blue-bg); color: var(--blue); font-weight: 600; text-decoration: none; }
.cl-link .cl-link-n { margin-left: auto; font-variant-numeric: tabular-nums; }
.cl-link .cl-link-n.ok { color: var(--green); }
.cl-run-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .45rem; }
.cl-tick { width: 100%; display: flex; align-items: flex-start; gap: .75rem; text-align: left; padding: .75rem .85rem; min-height: 52px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.cl-tick:hover { border-color: var(--primary); }
.cl-tick.is-critical { border-left: 4px solid var(--red); }
.cl-box { flex: 0 0 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); display: grid; place-items: center; color: transparent; }
.cl-tick.is-done { background: var(--green-bg); border-color: var(--green); }
.cl-tick.is-done .cl-box { background: var(--green); border-color: var(--green); color: #fff; }
.cl-tick.is-done .cl-lab > :first-child { text-decoration: none; }
.cl-lab { display: grid; gap: .15rem; }
.cl-lab small { color: var(--muted); }
/* Questions personnalisées */
.cq-block { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--border); }
fieldset.cq { border: 0; padding: 0; margin: 0 0 .9rem; }
fieldset.cq legend { font-weight: 600; margin-bottom: .35rem; }
.cq-opts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.cq-remind { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-bottom: 1rem; }
.q-list { display: grid; gap: .8rem; margin-bottom: 1.2rem; }
.q-card h3 { margin: .45rem 0 .2rem; }
.q-card.is-off { opacity: .62; }
.q-stats { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.q-stats li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .88rem; }
.q-stats i { display: block; height: 10px; border-radius: 99px; background: var(--primary); min-width: 4px; }
.q-stats b { text-align: right; font-variant-numeric: tabular-nums; }
/* Matériel */
.eq-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.eq-stat { display: grid; min-width: 110px; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; }
.eq-stat b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.eq-stat span { color: var(--muted); font-size: .85rem; }
.eq-stat.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.eq-stat.is-late b { color: var(--red); }
.eq-stat.is-issue b { color: var(--amber); }
.eq-list { display: grid; gap: .5rem; margin-bottom: 1.2rem; }
.eq-item { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scroll-margin-top: 80px; }
.eq-item.is-out { border-left: 4px solid var(--blue); }
.eq-item.is-late { border-left-color: var(--red); background: var(--red-bg); }
.eq-item.is-issue { opacity: .75; }
.eq-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-bg); color: var(--blue); }
.eq-name { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.eq-code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; padding: .05rem .4rem; border-radius: 6px; background: var(--gray-bg); }
.eq-holder { margin: .25rem 0 0; font-size: .9rem; }
.eq-late { color: var(--red); font-weight: 700; }
.eq-actions { display: grid; justify-items: end; gap: .3rem; }
.eq-lend, .eq-ret { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.eq-lend input[name="person"] { width: 200px; }
.eq-lend input[type="time"] { width: 110px; }
.eq-more summary { cursor: pointer; color: var(--muted); }
.eq-more[open] { display: grid; gap: .3rem; }
.eq-links { display: flex; gap: .8rem; align-items: center; }
.eq-hist { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: .9rem; }
.eq-held ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.eq-held .is-late { color: var(--red); }
@media (max-width: 720px) {
  .eq-item { grid-template-columns: auto 1fr; }
  .eq-actions { grid-column: 1 / -1; justify-items: stretch; }
  .eq-lend, .eq-ret { justify-content: flex-start; }
  .eq-lend input[name="person"] { flex: 1 1 100%; width: auto; }
  .cl-shift > summary { grid-template-columns: 1fr auto; }
  .cl-shift .cl-bar { grid-column: 1 / -1; grid-row: 2; }
}
/* Covoiturage */
.rd-list { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.rd-card { display: grid; grid-template-columns: 84px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); scroll-margin-top: 80px; }
.rd-when { display: grid; justify-items: center; padding: .4rem; border-radius: 10px; background: var(--blue-bg); color: var(--blue); text-align: center; }
.rd-when b { font-size: .8rem; }
.rd-when span { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rd-route { margin: 0 0 .2rem; font-weight: 600; }
.rd-card p { margin: 0; }
.rd-act { display: grid; justify-items: end; gap: .3rem; }
.rd-ask { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.rd-ask input { width: 190px; }
.rd-own { padding: .7rem 0; border-top: 1px solid var(--border); }
.rd-own:first-of-type { border-top: 0; }
.rd-reqs { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .35rem; }
.rd-req { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 10px; background: var(--surface-2); }
.rd-req.is-accepted { background: var(--green-bg); }
.rd-tel { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; white-space: nowrap; }
.rd-confirmed { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
@media (max-width: 720px) {
  .rd-card { grid-template-columns: 70px 1fr; }
  .rd-act { grid-column: 1 / -1; justify-items: stretch; }
  .rd-ask { justify-content: flex-start; }
  .rd-ask input { flex: 1; width: auto; }
}
/* Objets trouvés */
.lf-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 1.2rem; }
.lf-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; display: grid; grid-template-rows: 150px 1fr; scroll-margin-top: 80px; }
.lf-photo { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.lf-photo img { width: 100%; height: 150px; object-fit: cover; }
.lf-body { padding: .7rem .85rem; display: grid; gap: .3rem; align-content: start; }
.lf-body p { margin: 0; }
.lf-ret { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
.lf-ret input { flex: 1 1 140px; }
.lf-lostrow { padding: .7rem 0; border-top: 1px solid var(--border); }
.lf-lostrow:first-of-type { border-top: 0; }
.lf-lostrow p { margin: .15rem 0; }
.lf-matches { margin-top: .4rem; padding: .5rem .7rem; border-radius: 10px; background: var(--amber-bg); display: grid; gap: .4rem; }
.lf-match { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.lf-match img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.lf-match span { flex: 1; min-width: 140px; }
.toolbar.tb85 { flex-wrap: wrap; }
.toolbar.tb85 input[type="search"] { flex: 1 1 240px; width: auto; min-width: 0; }
.toolbar.tb85 select, .toolbar.tb85 input[type="date"] { flex: 0 1 auto; width: auto; }
.cl-shift > summary > .badge { justify-self: start; grid-column: 1 / -1; }

/* ===== Correctif 86 ===== */
/* Pages publiques : A+ et thème restent en haut, sur le fond sombre, sans recouvrir le formulaire quand on défile */
.auth-page .text-float, .auth-page .theme-float { position: absolute; z-index: 5; }
/* Assistant d'inscription : le message « il manque… » s'affiche juste au-dessus du bouton */
.reg-miss { margin: .2rem 0 .6rem; padding: .65rem .85rem; border-radius: 12px; background: var(--amber-bg); color: var(--text); font-weight: 600; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); }
.reg-miss::before { content: "⚠️ "; }
/* Bannière de notification (application ouverte) */
.fw-alert { position: fixed; z-index: 3000; left: 50%; top: calc(env(safe-area-inset-top, 0px) + .6rem); transform: translateX(-50%); width: min(560px, calc(100vw - 1.2rem));
  display: flex; align-items: stretch; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.28); border: 2px solid var(--primary);
  animation: fwAlertIn .35s cubic-bezier(.2,.9,.3,1.2); overflow: hidden; }
.fw-alert.is-loud { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--surface)); animation: fwAlertIn .35s cubic-bezier(.2,.9,.3,1.2), fwAlertPulse 1.2s ease-in-out .4s 3; }
.fw-alert.out { opacity: 0; transform: translate(-50%, -20px); transition: .3s; }
.fw-alert-main { flex: 1; display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; color: inherit; text-decoration: none; min-width: 0; }
.fw-alert-ico { font-size: 1.7rem; line-height: 1; }
.fw-alert-txt { display: grid; gap: .1rem; min-width: 0; }
.fw-alert-txt strong { font-size: 1.02rem; }
.fw-alert-txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fw-alert-x { border: 0; background: transparent; color: var(--muted); font-size: 1.6rem; padding: 0 .9rem; cursor: pointer; min-width: 48px; }
@keyframes fwAlertIn { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fwAlertPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 30%, transparent), 0 14px 40px rgba(0,0,0,.28); } }
@media (prefers-reduced-motion: reduce) { .fw-alert, .fw-alert.is-loud { animation: none; } }
/* Réglages des alertes */
.ap-toggles { display: grid; gap: .5rem; margin: .7rem 0; }
.ap-switch { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.ap-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-track { flex: 0 0 46px; height: 28px; border-radius: 99px; background: var(--gray-bg); position: relative; transition: background .2s; border: 1px solid var(--border); }
.ap-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.ap-switch input:checked + .ap-track { background: var(--green); }
.ap-switch input:checked + .ap-track::after { transform: translateX(18px); }
.ap-switch input:focus-visible + .ap-track { outline: 3px solid var(--primary); outline-offset: 2px; }
.ap-switch span:last-child { display: grid; }
.ap-switch small { color: var(--muted); }
.ap-level { margin-top: 1rem; padding-top: .8rem; border-top: 1px dashed var(--border); display: grid; gap: .4rem; justify-items: start; }
.ap-ios { margin-top: .8rem; }
/* Inscription sans e-mail */
.reg-nomail { padding: .7rem .8rem; border-radius: 12px; background: var(--blue-bg); margin-bottom: .6rem; }
.reg-invited { margin: .5rem 0 0; padding: .5rem .8rem; border-radius: 99px; background: var(--amber-bg); display: inline-block; font-weight: 600; }
.nomail-box { padding: .7rem .8rem; border: 1px dashed var(--border); border-radius: 12px; display: grid; gap: .4rem; grid-column: 1 / -1; }
.nomail-box p { margin: 0; }
/* Bravos */
.kd-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .8rem; }
.kd-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 99px; background: var(--amber-bg); font-size: .92rem; }
.kd-badge i { font-style: normal; font-weight: 800; color: var(--primary); }
.kd-emo { font-size: 1.35rem; line-height: 1; }
.kd-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.kd-feed li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: start; padding: .6rem .7rem; border-radius: 12px; background: var(--surface-2); }
.kd-feed p { margin: .2rem 0 0; font-style: italic; }
.kd-pick { border: 0; padding: 0; margin: 0 0 .7rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .45rem; }
.kd-pick legend { font-weight: 600; margin-bottom: .4rem; }
.kd-opt input { position: absolute; opacity: 0; }
.kd-opt > span { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; min-height: 48px; }
.kd-opt input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); font-weight: 600; }
.kd-opt input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.kd-top, .kd-sent { margin: .3rem 0 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
/* Invitez vos amis */
.iv-row { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.iv-qr { background: #fff; padding: .6rem; border-radius: 12px; border: 1px solid var(--border); line-height: 0; }
.iv-qr svg { width: 150px; height: 150px; }
.iv-main { display: grid; gap: .6rem; min-width: 0; }
.iv-main input[readonly] { font-family: ui-monospace, Menlo, monospace; font-size: .9rem; }
.iv-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.iv-friends { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
@media (max-width: 640px) { .iv-row { grid-template-columns: 1fr; justify-items: center; } .iv-main { width: 100%; } .iv-btns .btn { flex: 1 1 45%; justify-content: center; } }
/* FAQ */
.faq-search { display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 1rem; }
.faq-search input { border: 0; background: transparent; flex: 1; min-height: 50px; font-size: 1rem; box-shadow: none; }
.faq-group { margin-bottom: 1.2rem; }
.faq-group h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: .4rem; }
.faq-item > summary { padding: .85rem 1rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: .6rem; min-height: 48px; align-items: center; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); }
.faq-item[open] > summary::after { content: "–"; }
.faq-a { padding: 0 1rem .9rem; line-height: 1.55; }
.faq-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.faq-mine p { margin: 0 0 .3rem; }
.faq-answer { padding: .6rem .8rem; border-radius: 10px; background: var(--green-bg); }
.faq-q { padding: .8rem 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.faq-q:first-of-type { border-top: 0; }
.faq-row { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--border); }
.faq-row.is-off { opacity: .6; }
.faq-cat { font-size: .95rem; margin: .9rem 0 .2rem; color: var(--muted); }
/* Pauses */
.br-box { margin: .7rem 0; padding: .7rem .85rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.br-box.is-on { background: var(--amber-bg); border-color: var(--amber); }
.br-box p { margin: 0 0 .5rem; }
.br-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.br-form .chip { min-height: 44px; padding: 0 .9rem; }
.br-live { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.br-live li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; background: var(--amber-bg); }
.br-live li.is-over { background: var(--red-bg); border-left: 4px solid var(--red); }
.br-over { color: var(--red); font-weight: 700; }
.alert-prefs label.ap-switch { display: flex; flex-direction: row; align-items: center; gap: .8rem; font-weight: 400; margin: 0; }
.alert-prefs .ap-track { display: block; width: 46px; min-width: 46px; height: 28px; box-sizing: border-box; }
.alert-prefs .ap-switch > span:last-child { display: grid; gap: .1rem; flex: 1; }
label.faq-search { flex-direction: row; align-items: center; gap: .5rem; font-weight: 400; }

/* ===== Correctif 87 : candidatures repensées ===== */
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
/* Entonnoir */
.ca-funnel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 0 0 1rem; }
.cf-step { position: relative; display: grid; gap: .05rem; padding: .85rem 1rem .85rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cf-step:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 4px 14px rgba(20,24,45,.06); }
.cf-step b { font-size: 1.75rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cf-step span { font-weight: 600; }
.cf-step small { color: var(--muted); font-size: .8rem; }
.cf-step small em { font-style: normal; font-weight: 600; }
.cf-step:not(:last-child)::after { content: ""; position: absolute; right: -.55rem; top: 50%; width: .6rem; height: .6rem; border-top: 2px solid var(--border); border-right: 2px solid var(--border); transform: translateY(-50%) rotate(45deg); background: transparent; z-index: 1; }
.cf-step.is-hot { border-color: color-mix(in srgb, var(--amber) 60%, var(--border)); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); }
.cf-step.is-hot b { color: var(--amber); }
.cf-step.cf-placed b { color: var(--green); }
.cf-step.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 760px) { .ca-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cf-step:nth-child(2)::after { display: none; } .cf-step b { font-size: 1.45rem; } }
/* Par secteur */
.ca-board { padding: 0; margin-bottom: 1rem; overflow: hidden; }
.ca-board > summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; }
.ca-board > summary::-webkit-details-marker { display: none; }
.ca-board > summary h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: .45rem; }
.ca-board > summary::after { content: "▾"; color: var(--muted); }
.ca-board[open] > summary::after { content: "▴"; }
.cb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: 0; padding: 0 1.1rem .5rem; color: var(--muted); }
.cb-legend span { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: -.55rem; vertical-align: -1px; }
.k-placed { background: var(--green); } .k-toplace { background: var(--blue, #3b82f6); } .k-todo { background: var(--amber); background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255,255,255,.35) 4px 8px); } .k-gap { background: var(--gray-bg); border: 1px dashed var(--border); }
.cb-list { list-style: none; margin: 0; padding: 0 .6rem .6rem; display: grid; gap: .25rem; }
.cb-list li { display: grid; grid-template-columns: minmax(130px, 200px) minmax(120px, 1fr) minmax(170px, 1.3fr) auto; gap: .8rem; align-items: center; padding: .55rem .55rem; border-radius: 10px; }
.cb-list li:hover { background: var(--surface-2); }
.cb-name { display: flex; align-items: center; gap: .45rem; color: var(--text); text-decoration: none; min-width: 0; }
.cb-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-name .dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.cb-bar { display: flex; height: 12px; border-radius: 99px; background: var(--gray-bg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cb-bar i { display: block; height: 100%; }
.cb-nums { display: grid; gap: .05rem; font-size: .9rem; }
.cb-nums small { color: var(--muted); }
@media (max-width: 760px) { .cb-list li { grid-template-columns: 1fr auto; } .cb-bar, .cb-nums { grid-column: 1 / -1; } .cb-list li > :last-child { grid-row: 1; grid-column: 2; } }
.ca-tabs .ca-tab-minor { margin-left: auto; font-weight: 500; font-size: .82rem; }
/* Filtres */
.ca-filters { background: transparent; padding: 0; border: 0; box-shadow: none; }
.ca-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ca-flags .chip { text-decoration: none; }
.ca-flags .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 640px) { .sr-only-sm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
/* File + fiche */
.ca-work { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1rem; }
.ca-list { position: sticky; top: .75rem; max-height: calc(100vh - 1.5rem); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overscroll-behavior: contain; }
.ca-list-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .8rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; flex-wrap: wrap; }
.ca-list-head .check { margin: 0; }
.ca-queue { list-style: none; margin: 0; padding: .3rem; display: grid; gap: .15rem; }
.ca-q { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .5rem; padding: .25rem .35rem .25rem .45rem; border-radius: 12px; border: 1px solid transparent; }
.ca-q > input, .ca-q > .ca-box-ph { margin-top: .85rem; width: 18px; height: 18px; }
.ca-q:hover { background: var(--surface-2); }
.ca-q.is-sel { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ca-q.is-late .ca-q-link::before { content: ""; position: absolute; left: -.55rem; top: .55rem; bottom: .55rem; width: 3px; border-radius: 3px; background: var(--red); }
.ca-q-link { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: start; padding: .45rem .2rem; color: var(--text); text-decoration: none; min-width: 0; }
.ca-q-link:hover { text-decoration: none; }
.ca-q-main { display: grid; gap: .2rem; min-width: 0; }
.ca-q-name strong { font-size: .95rem; }
.ca-q-name .badge { font-size: .68rem; }
.ca-q-sectors { display: flex; flex-wrap: wrap; gap: .25rem; }
.ca-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .45rem; border-radius: 99px; font-size: .74rem; background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.ca-chip i { width: .45rem; height: .45rem; border-radius: 50%; background: var(--c); }
.ca-chip.st-refused, .ca-chip.st-cancelled { opacity: .55; text-decoration: line-through; }
.ca-chip.st-accepted, .ca-chip.st-confirmed { font-weight: 600; }
.ca-q-msg { font-size: .8rem; color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ca-q-meta { display: grid; justify-items: end; gap: .15rem; text-align: right; white-space: nowrap; }
.ca-q-count { font-size: .72rem; font-weight: 700; padding: .08rem .45rem; border-radius: 99px; background: var(--amber-bg); color: var(--text); }
.ca-list .ca-bulk { position: sticky; bottom: 0; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--accent); background: var(--surface); box-shadow: 0 -6px 18px rgba(20,24,45,.10); padding: .6rem .8rem; z-index: 2; }
.ca-list .ca-bulk select { min-width: 0; flex: 1 1 160px; }
.ca-list .ca-sel { font-weight: 700; width: 100%; }
.ca-list .pager { padding: .4rem .6rem; }
.ca-detail { min-width: 0; scroll-margin-top: .75rem; transition: opacity .15s; }
.ca-detail.is-loading { opacity: .45; }
.ca-panel { margin: 0; scroll-margin-top: .75rem; }
.cp-nav { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cp-back { display: none; align-items: center; gap: .2rem; }
.cp-pos { margin-right: auto; }
.cp-arrows { display: flex; gap: .2rem; }
.cp-head { align-items: flex-start; }
.cp-name { margin: 0; font-size: 1.3rem; }
.cp-name:focus { outline: none; }
.cp-tags { margin: .2rem 0 .3rem; }
.cp-contact { display: flex; flex-wrap: wrap; gap: .35rem; margin-left: auto; }
.cp-note { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.cp-decide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 1rem 0; }
.cp-decide-head h3 { margin: 0; font-size: 1rem; }
.cp-ok { font-size: .8rem; color: var(--green); font-weight: 600; margin-top: .15rem; }
.cp-pop { position: relative; display: inline-block; }
.cp-pop > summary { list-style: none; cursor: pointer; }
.cp-pop > summary::-webkit-details-marker { display: none; }
.cp-pop-body { position: absolute; z-index: 20; right: 0; top: calc(100% + .35rem); width: min(320px, 82vw); display: grid; gap: .5rem; padding: .8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 36px rgba(20,24,45,.18); }
.cp-pop-body label { font-size: .85rem; }
.cp-done { margin: 0 1rem .6rem; }
.cp-done summary { cursor: pointer; color: var(--muted); }
.cp-done-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; font-size: .88rem; }
.cp-done-list .dot-c { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c); margin-right: .35rem; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; padding: .8rem 1rem 1rem; border-top: 1px solid var(--border); background: var(--surface-2); }
.cp-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .75rem .85rem; min-width: 0; }
.cp-block h3 { margin: 0 0 .5rem; font-size: .92rem; display: flex; align-items: center; gap: .35rem; }
.cp-days { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.cp-days li { display: grid; justify-items: center; min-width: 40px; padding: .25rem .2rem; border-radius: 9px; font-size: .72rem; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.cp-days li b { font-size: .95rem; color: var(--text); }
.cp-days li small { font-size: .62rem; }
.cp-days .d-yes, .cp-legend .d-yes { background: var(--green-bg); border-color: var(--green); }
.cp-days .d-part, .cp-legend .d-part { background: var(--amber-bg); border-color: var(--amber); }
.cp-days .d-no, .cp-legend .d-no { background: var(--red-bg); border-color: var(--red); }
.cp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: .5rem 0 0; }
.cp-legend span { display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; border: 1px solid; margin-right: -.45rem; }
.cp-dl { margin: 0; display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: .3rem .7rem; font-size: .88rem; }
.cp-dl dt { color: var(--muted); }
.cp-dl dd { margin: 0; overflow-wrap: anywhere; }
.ca-recent { padding: 0; }
.ca-recent > summary { padding: .85rem 1.1rem; cursor: pointer; list-style: none; }
.ca-recent > summary::-webkit-details-marker { display: none; }
.ca-recent > summary h2 { margin: 0; font-size: 1.05rem; display: inline; }
.ca-recent .ca-tl { padding: 0 1.1rem 1rem; }
/* Téléphone et tablette : la file, puis la fiche (avec « Retour à la liste ») */
@media (max-width: 999px) {
  .ca-work { grid-template-columns: 1fr; }
  .ca-list { position: static; max-height: none; }
  .ca-work.has-sel .ca-list { display: none; }
  .ca-work:not(.has-sel) .ca-detail { display: none; }
  .cp-back { display: inline-flex; }
  .cp-contact { margin-left: 0; width: 100%; }
  .cp-contact .btn { flex: 1 1 auto; justify-content: center; }
  .ca-actions .btn, .ca-actions .cp-pop > summary { min-height: 44px; }
  .cp-pop-body { left: 0; right: auto; }
}
.cp-place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; padding: .5rem .7rem; border-radius: 10px; background: var(--amber-bg); }
/* Fiche : boutons de décision sur une ligne, alignés sous le texte (pas de case à cocher dans la fiche) */
.ca-panel .ca-actions { padding-left: calc(52px + .7rem); margin-top: .55rem; }
.ca-panel .app-actions details.cp-pop { flex-basis: auto; }
.ca-panel .app-actions details.ca-more { flex-basis: 100%; }
.ca-panel .ca-slots { padding: .2rem .4rem .4rem; }
@media (min-width: 1000px) and (max-width: 1399px) { .ca-work { grid-template-columns: minmax(270px, 330px) minmax(0, 1fr); } }
@media (max-width: 520px) { .ca-panel .ca-actions { padding-left: 0; } }
.ca-person.ca-panel { overflow: visible; }
.ca-panel .ca-slot .cp-pop-body { left: 0; right: auto; }
.ca-panel .cp-decide-head .cp-pop-body { right: 0; left: auto; }
@media (max-width: 999px) {
  body:has(.ca-work.has-sel) .ca-funnel, body:has(.ca-work.has-sel) .ca-board, body:has(.ca-work.has-sel) .ca-filters,
  body:has(.ca-work.has-sel) .ca-tabs, body:has(.ca-work.has-sel) .ca-recent, body:has(.ca-work.has-sel) .ca-legend { display: none; }
}
