/* ==========================================================================
   Tableau de bord unique — Ville de Craponne + Espace culturel Eole
   Maquette CRÉA2LINE. Principe : une seule navigation, des libellés clairs,
   aucune notion technique visible.
   ========================================================================== */
:root {
  --f: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fc: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --bg: #F3F5F6; --card: #FFFFFF; --ink: #13222A; --ink-2: #4A5B64; --ink-3: #7A8A92; --line: #E1E7EA; --line-2: #CBD6DB;
  --brand: #062B3A; --brand-2: #074A63; --acc: #FDB913; --acc-ink: #1A1305; --hot: #E8724C;
  --ok: #1E7A4D; --ok-bg: #E7F5EE; --warn: #9A5B00; --warn-bg: #FFF3DA; --bad: #B23A2E; --bad-bg: #FBE9E7; --info-bg: #E6F1F6;
  --eole: #FAB40A; --eole-ink: #3A2A00;
  --r: 12px; --r-l: 18px;
  --sh: 0 1px 2px rgba(9, 30, 40, .05), 0 4px 16px rgba(9, 30, 40, .05);
  --sh-2: 0 18px 50px rgba(9, 30, 40, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.5 var(--f); color: var(--ink); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
a { color: var(--brand-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- barre du haut ---------- */
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; }
.top .in { display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 24px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 34px; }
.brand span { font: 600 13px/1.1 var(--fc); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 12px; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .1); border-radius: 99px; padding: 3px; }
.seg button { border: 0; background: transparent; color: rgba(255, 255, 255, .8); padding: 7px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--brand); }
.seg .d { width: 8px; height: 8px; border-radius: 50%; }
.top .sp { flex: 1; }
.tbtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; padding: 9px 13px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; position: relative; }
.tbtn:hover { background: rgba(255, 255, 255, .16); }
.tbtn .badge { position: absolute; top: -4px; right: -4px; background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.me .av { width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-weight: 800; }
.me small { display: block; color: rgba(255, 255, 255, .65); font-size: 12px; }

/* ---------- onglets : la seule navigation ---------- */
.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 62px; z-index: 40; }
.tabs .in { display: flex; gap: 2px; padding: 0 16px; max-width: 1440px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 15px 14px 13px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--acc); }
.tabs .cnt { background: var(--hot); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 6px; }
.tabs .plus { margin-left: auto; position: relative; display: flex; align-items: center; }

/* ---------- vue ---------- */
main { max-width: 1440px; margin: 0 auto; padding: 28px 24px 120px; }
.vh { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.vh h1 { font: 700 34px/1 var(--fc); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.vh p { margin: 6px 0 0; color: var(--ink-2); }
.vh .sp { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.card { background: var(--card); border-radius: var(--r-l); box-shadow: var(--sh); border: 1px solid var(--line); overflow: hidden; }
.card > header { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card > header h2 { font: 700 18px/1.1 var(--f); margin: 0; }
.card > header .sp { flex: 1; }
.card .bd { padding: 18px 20px; }
.muted { color: var(--ink-3); font-size: 14px; }

/* boutons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.pri:hover { background: var(--brand-2); }
.btn.acc { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* étiquettes */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.info { background: var(--info-bg); color: var(--brand-2); }
.tag.eole { background: #FFF2D1; color: #6B4A00; }
.tag.cine { background: #E3F2FD; color: #0B4F86; }
.tag.media { background: #EEF7DC; color: #3F5A10; }
.tag.grey { background: var(--bg); color: var(--ink-2); }

/* à traiter */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.todo .t { flex: 1; min-width: 0; }
.todo .t b { display: block; }
.todo .t span { font-size: 14px; color: var(--ink-2); }
.ic.warn { background: var(--warn-bg); color: var(--warn); } .ic.info { background: var(--info-bg); color: var(--brand-2); } .ic.hot { background: var(--bad-bg); color: var(--bad); } .ic.ok { background: var(--ok-bg); color: var(--ok); }

/* interrupteur */
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .tr { width: 44px; height: 26px; background: var(--line-2); border-radius: 99px; position: relative; transition: background .2s; flex: none; }
.sw .tr::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.sw input:checked + .tr { background: var(--ok); }
.sw input:checked + .tr::after { transform: translateX(18px); }
.sw input:focus-visible + .tr { outline: 3px solid var(--acc); outline-offset: 2px; }
.sw.mini .tr { width: 34px; height: 20px; } .sw.mini .tr::after { width: 14px; height: 14px; } .sw.mini input:checked + .tr::after { transform: translateX(14px); }

/* sites (pastilles cliquables) */
.sites { display: inline-flex; gap: 6px; }
.sbtn { border: 1.5px dashed var(--line-2); background: #fff; color: var(--ink-3); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.sbtn[aria-pressed="true"] { border-style: solid; }
.sbtn[data-s="ville"][aria-pressed="true"] { background: var(--info-bg); border-color: var(--brand-2); color: var(--brand-2); }
.sbtn[data-s="eole"][aria-pressed="true"] { background: #FFF2D1; border-color: var(--eole); color: #6B4A00; }

/* formulaires */
.f { display: grid; gap: 6px; margin-bottom: 14px; }
.f > label, .f > .lab { font-weight: 600; font-size: 14px; }
.f input[type="text"], .f input[type="email"], .f input[type="date"], .f input[type="time"], .f input[type="search"], .f select, .f textarea, .inp { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.f textarea { resize: vertical; min-height: 84px; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(7, 74, 99, .15); }
.f .help { font-size: 13px; color: var(--ink-3); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.checks input { width: 18px; height: 18px; accent-color: var(--brand-2); }
.counter { font-size: 12.5px; color: var(--ink-3); text-align: right; }

/* tableaux */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFC; position: sticky; top: 0; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #FAFCFD; }
.tbl .t b { display: block; }
.tbl .t span { font-size: 13px; color: var(--ink-3); }
.scroll { max-height: 560px; overflow: auto; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .inp { max-width: 300px; padding: 8px 12px; }
.toolbar select.inp { max-width: 200px; }

/* indicateurs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi b { display: block; font: 700 34px/1 var(--fc); }
.kpi span { font-size: 14px; color: var(--ink-2); }
.big { font: 700 44px/1 var(--fc); }
.spark { width: 100%; height: 70px; }
.health { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.health li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px; background: #FAFBFC; border: 1px solid var(--line); font-size: 14px; }
.health li b { display: block; font-size: 14.5px; }
.journal { list-style: none; margin: 0; padding: 0; }
.journal li { display: flex; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.journal li:last-child { border-bottom: 0; }
.journal time { color: var(--ink-3); font-size: 13px; white-space: nowrap; min-width: 92px; }

/* création rapide */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.quick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--sh); border-color: var(--line-2); }
.quick a span.ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.quick a small { font-weight: 500; color: var(--ink-3); font-size: 13px; }

/* tiroir latéral */
.drawer { position: fixed; inset: 0; z-index: 80; display: none; }
.drawer.on { display: block; }
.drawer .ov { position: absolute; inset: 0; background: rgba(6, 20, 28, .45); animation: fade .2s; }
.drawer .pn { position: absolute; right: 0; top: 0; bottom: 0; width: min(760px, 100%); background: #fff; box-shadow: var(--sh-2); display: flex; flex-direction: column; animation: slide .3s var(--ease); }
.drawer .pn > header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer .pn > header h2 { margin: 0; font: 700 24px/1 var(--fc); text-transform: uppercase; }
.drawer .pn .body { padding: 22px 24px; overflow: auto; flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.drawer .pn > footer { display: flex; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); background: #FAFBFC; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.prev-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh); }
.prev-card .vis { aspect-ratio: 4/3; }
.prev-card .vis svg, .prev-card .vis img { width: 100%; height: 100%; display: block; object-fit: cover; }
.prev-card .b { padding: 14px 16px 18px; }
.prev-card time { font-size: 13px; color: var(--ink-3); }
.prev-card h3 { margin: 4px 0 6px; font-size: 19px; line-height: 1.15; }
.prev-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.prev-lab { font: 700 12px/1 var(--fc); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }

/* carte (administration) */
.mapadm { display: grid; grid-template-columns: 1fr 400px; gap: 18px; align-items: start; }
#amap { height: 640px; border-radius: var(--r-l); border: 1px solid var(--line); box-shadow: var(--sh); z-index: 1; }
.mk { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .3); }
.mk span { transform: rotate(45deg); color: #fff; font: 700 12px/1 var(--f); }
.mk.new { animation: pop .6s var(--ease); box-shadow: 0 0 0 6px rgba(253, 185, 19, .45), 0 3px 10px rgba(0, 0, 0, .3); }
@keyframes pop { 0% { transform: rotate(-45deg) scale(.2); } 70% { transform: rotate(-45deg) scale(1.25); } }
.addr { position: relative; }
.addr ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; list-style: none; margin: 4px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-2); }
.addr li button { width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; display: flex; gap: 8px; align-items: center; }
.addr li button:hover, .addr li button:focus { background: var(--bg); }
.plist { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.plist .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.plist .n { flex: 1; min-width: 0; }
.plist .n small { display: block; color: var(--ink-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trv-box { padding: 12px; border-radius: 10px; background: #FDF0EA; border: 1px solid #F4C6B4; margin-bottom: 14px; }

/* alertes : aperçus */
.pv-flash { border-radius: 10px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; color: #fff; background: #B23A2E; font-size: 14.5px; }
.pv-flash[data-n="info"] { background: var(--brand-2); }
.pv-flash[data-n="evenement"] { background: var(--acc); color: var(--acc-ink); }
.pv-flash b { font: 700 12px/1 var(--fc); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.pv-site { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, #062B3A 0 54px, #F2F6F7 54px); padding: 66px 18px 18px; position: relative; min-height: 270px; }
.pv-site .bar { position: absolute; top: 16px; left: 18px; width: 90px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .25); }
.pv-modal { background: #fff; border-radius: 16px; box-shadow: var(--sh-2); max-width: 330px; margin: 6px auto 0; overflow: hidden; }
.pv-modal .band { height: 7px; background: linear-gradient(90deg, var(--acc), var(--hot)); }
.pv-modal .in { padding: 16px 18px 18px; }
.pv-modal h4 { margin: 0 0 6px; font: 700 22px/1.05 var(--fc); text-transform: uppercase; }
.pv-modal p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.pv-modal span { display: inline-block; background: var(--acc); color: var(--acc-ink); font-weight: 700; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; }
.state { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.state.on { background: var(--ok-bg); color: var(--ok); } .state.off { background: var(--bg); color: var(--ink-2); }

/* newsletter */
.niv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.niv-c { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 14px; line-height: 1.3; }
.niv-c input { position: absolute; opacity: 0; }
.niv-c .tag { align-self: start; }
.niv-c small { color: var(--ink-3); font-size: 12.5px; }
.niv-c.on { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.niv-c:has(input:focus-visible) { outline: 3px solid var(--acc); outline-offset: 2px; }
.pj { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pj li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.pj img { width: 44px; height: 34px; object-fit: cover; border-radius: 6px; }
.pj small { display: block; color: var(--ink-3); font-size: 12px; }
.pj button { margin-left: auto; border: 0; background: none; padding: 6px; border-radius: 8px; }
.tk { list-style: none; margin: 0; padding: 0; }
.tk li + li { border-top: 1px solid var(--line); }
.tk button { width: 100%; text-align: left; background: none; border: 0; padding: 14px 18px; display: grid; gap: 4px; font-size: 13.5px; }
.tk button:hover { background: var(--bg); }
.tk-h { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; font-size: 15px; }
.delais { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.delais li { display: grid; grid-template-columns: 40px 80px 1fr; gap: 10px; align-items: center; font-size: 14px; }
.delais small { color: var(--ink-3); }
.fil { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.fil li { padding: 12px 14px; border-radius: 14px; background: var(--bg); max-width: 92%; }
.fil li.c2l { background: #FDF1E8; justify-self: end; }
.fil li.auto { background: transparent; border: 1px dashed var(--line); font-size: 13.5px; }
.fil p { margin: 0 0 4px; }
.fil-h { display: flex; gap: 10px; justify-content: space-between; font-size: 13px; }
.fil-h time { color: var(--ink-3); }
.fil-pj { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--brand-2); }
@media (max-width: 640px) { .niv { grid-template-columns: 1fr; } }
.pops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pops li { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.pops-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; }
.pops-t b { font-size: 15.5px; }
.pops-t .tag { align-self: start; margin-top: 4px; }
.pops-a { display: flex; gap: 10px; align-items: center; flex: none; }
.fs { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 4px; margin: 0 0 14px; min-width: 0; }
.fs legend { padding: 0 6px; }
.cibles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }
.cibles label, .choix label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }
.choix { border-top: 1px dashed var(--line); padding: 10px 0; display: grid; gap: 6px; max-height: 230px; overflow: auto; }
.choix p { margin: 6px 0 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.choix input[type="search"] { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 4px; }
.resume { background: var(--info-bg, #EAF2F5); border-radius: 12px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; }
.warn-t { color: #A33A12; font-weight: 600; }
.conf { display: flex; gap: 10px; align-items: flex-start; background: #FFF4E0; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }
.conf .ico { color: #B26B00; flex: none; margin-top: 2px; }
#pp-del.arme { color: #A33A12; border-color: #A33A12; }
[aria-invalid="true"] { outline: 3px solid #E8724C !important; }
@media (max-width: 640px) { .pops li { flex-direction: column; align-items: stretch; } .cibles { grid-template-columns: 1fr; } }
.nlm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nlm-c { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; font-size: 13px; line-height: 1.25; transition: border-color .2s, box-shadow .2s; }
.nlm-c input { position: absolute; opacity: 0; }
.nlm-c b { font-size: 14px; }
.nlm-c span { color: var(--ink-3); font-size: 12.5px; }
.nlm-c.on { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 25%, transparent); }
.nlm-c:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.nlm-v { display: block; height: 58px; border-radius: 8px; margin-bottom: 6px; background: #E9EDEF; position: relative; overflow: hidden; }
.nlm-v::before, .nlm-v::after { content: ""; position: absolute; left: 8px; right: 8px; border-radius: 3px; }
.nlm-lettre { background: linear-gradient(#062B3A 0 40%, #fff 40%); } .nlm-lettre::before { top: 46%; height: 18px; background: #DCE5E9; } .nlm-lettre::after { top: 80%; height: 6px; right: 40%; background: #FDB913; }
.nlm-alerte { background: linear-gradient(#E8724C 0 16%, #fff 16%); } .nlm-alerte::before { top: 26%; height: 9px; right: 30%; background: #062B3A; } .nlm-alerte::after { top: 56%; height: 18px; background: #FFF4E0; border-left: 4px solid #FDB913; }
.nlm-invitation { background: linear-gradient(0deg, #062B3A 0 45%, #7FA6B4 100%); } .nlm-invitation::before { top: 50%; height: 9px; right: 45%; background: #fff; } .nlm-invitation::after { top: 74%; height: 7px; right: 60%; background: #FDB913; border-radius: 99px; }
.nlm-programme { background: #0E0A14; } .nlm-programme::before { top: 8px; height: 26px; background: linear-gradient(135deg, #3B1F4A, #FAB40A); } .nlm-programme::after { top: 40px; height: 6px; right: 50%; background: #FAB40A; }
.nlm-billetterie { background: linear-gradient(0deg, #0E0A14 0 40%, #6A4A2A 100%); } .nlm-billetterie::before { top: 44%; height: 7px; right: 55%; background: #2EA5F4; border-radius: 99px; } .nlm-billetterie::after { top: 64%; height: 10px; right: 25%; background: #fff; }
.nlm-famille { background: linear-gradient(#FAB40A 0 38%, #fff 38%); } .nlm-famille::before { top: 44%; height: 12px; border: 2px solid #2EA5F4; border-radius: 6px; } .nlm-famille::after { top: 72%; height: 12px; border: 2px solid #E8724C; border-radius: 6px; }
@media (max-width: 640px) { .nlm { grid-template-columns: 1fr; } .nlm-c { flex-direction: row; align-items: center; flex-wrap: wrap; } .nlm-v { width: 70px; height: 44px; margin: 0 8px 0 0; } }
.nlw { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; }
.mail { background: #E9EDEF; border-radius: var(--r-l); padding: 26px; border: 1px solid var(--line); }
.mail .chrome { background: #fff; border-radius: 12px 12px 0 0; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mail .chrome b { color: var(--ink); }
.mail .frame { background: #fff; border-radius: 0 0 12px 12px; max-height: 760px; overflow: auto; }
.pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pick label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.pick label:hover { background: #FAFBFC; }
.pick input { margin-top: 3px; accent-color: var(--brand-2); width: 16px; height: 16px; flex: none; }
.pick small { display: block; color: var(--ink-3); }
.auto { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); color: var(--brand-2); font-size: 14px; font-weight: 600; margin-bottom: 14px; }

/* imports */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.types button { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--r-l); padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s var(--ease); }
.types button:hover { transform: translateY(-2px); }
.types button[aria-pressed="true"] { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(7, 74, 99, .1); }
.types b { font-size: 16px; }
.types small { color: var(--ink-3); font-size: 13.5px; }
.types .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--info-bg); color: var(--brand-2); }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r-l); padding: 34px; text-align: center; background: #fff; transition: border-color .2s, background .2s; }
.phf { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.phf legend { padding: 0; }
.phlib { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.phlib label { position: relative; display: block; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; cursor: pointer; }
.phlib input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.phlib img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.phlib label:has(input:checked) { outline: 3px solid var(--acc); outline-offset: 1px; }
.phlib label:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.drop.over { border-color: var(--brand-2); background: var(--info-bg); }
.drop b { display: block; font-size: 17px; margin: 8px 0 4px; }
.steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.steps span b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: 13px; }
.steps span.on { color: var(--ink); } .steps span.on b { background: var(--brand); color: #fff; }
.steps i { width: 30px; height: 2px; background: var(--line); align-self: center; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-2), var(--ok)); transition: width .25s; }

/* équipe */
.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--line-2); }

/* aide / visite guidée */
.guide { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: 330px; background: #3B3636; color: #F7F1E8; border-radius: 18px; box-shadow: var(--sh-2); font-family: "Figtree", var(--f); overflow: hidden; }
.guide header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #E57834; color: #fff; }
.guide header b { flex: 1; }
.guide header button { background: rgba(255, 255, 255, .2); border: 0; color: #fff; border-radius: 8px; padding: 4px 8px; }
.guide ol { margin: 0; padding: 12px 16px 6px 36px; font-size: 14px; }
.guide li { margin-bottom: 9px; }
.guide li a { color: #FDB98A; }
.guide li.done { opacity: .55; text-decoration: line-through; }
.guide footer { padding: 4px 16px 14px; font-size: 12.5px; color: rgba(247, 241, 232, .7); display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.guide footer button { background: transparent; border: 1px solid rgba(247, 241, 232, .35); color: inherit; border-radius: 8px; padding: 5px 9px; font-size: 12.5px; }
.guide.min ol, .guide.min footer { display: none; }
.guide.min { width: auto; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 160%); visibility: hidden; z-index: 90; background: #13222A; color: #fff; padding: 13px 16px 13px 18px; border-radius: 14px; box-shadow: var(--sh-2); display: flex; gap: 14px; align-items: center; transition: transform .35s var(--ease); max-width: calc(100% - 32px); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }
.capture .guide { display: none; }
.toast a, .toast button { color: var(--acc); font-weight: 700; background: none; border: 0; text-decoration: underline; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); padding: 6px; width: 250px; z-index: 60; }
.menu a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.menu a:hover { background: var(--bg); }
.modal { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 32px)); box-shadow: var(--sh-2); }
.modal::backdrop { background: rgba(6, 20, 28, .45); }
.modal .in { padding: 22px 24px; }
.modal h2 { margin: 0 0 6px; font: 700 24px/1 var(--fc); text-transform: uppercase; }
.modal footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--line); background: #FAFBFC; }
.spin { width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.flash-in { animation: flin 1.2s var(--ease); }
@keyframes flin { 0% { background: #FFF6D6; } 100% { background: transparent; } }

@media (max-width: 1100px) {
  .c3, .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
  .mapadm, .nlw { grid-template-columns: 1fr; }
  .quick, .types, .kpis { grid-template-columns: repeat(2, 1fr); }
  .drawer .pn .body { grid-template-columns: 1fr; }
  .top .seg, .me div { display: none; }
}
@media (max-width: 640px) {
  .brand span { display: none; }
  .tbtn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main { padding: 18px 14px 120px; }
  .health { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .guide { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .guide.min { left: auto; }
  .guide.min header { padding: 10px 12px; }
}

/* ---------- sous-onglets (dans une page, pas un second menu) ---------- */
.sub { display: flex; gap: 6px; margin: -6px 0 20px; flex-wrap: wrap; }
.sub a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); display: inline-flex; gap: 8px; align-items: center; }
.sub a[aria-current="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.sub a .cnt { background: var(--hot); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 6px; }

/* ---------- calendrier éditorial ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: #EAEFF1; border-radius: 16px; padding: 10px; min-height: 260px; transition: background .2s; }
.col.over { background: #DCE9EF; outline: 2px dashed var(--brand-2); }
.col h3 { margin: 4px 6px 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.col h3 .n { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12px; }
.kc { background: #fff; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); cursor: grab; border-left: 4px solid var(--line-2); font-size: 14px; }
.kc:active { cursor: grabbing; }
.kc b { display: block; line-height: 1.25; margin-bottom: 6px; }
.kc .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: 12.5px; }
.kc[data-site="eole"] { border-left-color: var(--eole); } .kc[data-site="ville"] { border-left-color: var(--brand-2); }
.addidea { display: flex; gap: 6px; margin-top: 6px; } .addidea input { flex: 1; border: 1px dashed var(--line-2); border-radius: 10px; padding: 8px 10px; background: rgba(255, 255, 255, .6); font-size: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; }
.cal .dh { background: #FAFBFC; padding: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.cal .dc { background: #fff; min-height: 104px; padding: 6px; font-size: 12.5px; }
.cal .dc.today { background: #FFFBEE; }
.cal .dc .d { font-weight: 700; color: var(--ink-2); margin-bottom: 4px; display: block; }
.cal .it { display: block; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.it.a { background: var(--info-bg); color: var(--brand-2); } .it.e { background: #FFF2D1; color: #6B4A00; } .it.n { background: #F4E9FF; color: #5B2C8A; } .it.p { background: var(--bad-bg); color: var(--bad); }
.strat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.goal { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.goal .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .goal .bar i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.idea { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; } .idea:last-child { border-bottom: 0; }
.idea .t { flex: 1; } .idea .t span { display: block; color: var(--ink-3); font-size: 13px; }

/* ---------- éditeur d'article ---------- */
.ed-tools { display: flex; gap: 2px; border: 1.5px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 4px; background: #FAFBFC; flex-wrap: wrap; }
.ed-tools button { border: 0; background: none; padding: 6px 9px; border-radius: 6px; font-weight: 700; min-width: 32px; }
.ed-tools button:hover { background: var(--line); }
.ed { border: 1.5px solid var(--line-2); border-radius: 0 0 10px 10px; padding: 12px 14px; min-height: 160px; max-height: 320px; overflow: auto; background: #fff; }
.ed:focus { outline: 0; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(7, 74, 99, .15); }
.ed h2 { font-size: 19px; margin: 12px 0 6px; } .ed p { margin: 0 0 10px; }
.score { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 16px; }
.ring { width: 64px; height: 64px; flex: none; }
.checks-q { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.checks-q li { display: flex; gap: 8px; align-items: flex-start; } .checks-q li i { font-style: normal; font-weight: 800; width: 16px; flex: none; }
.checks-q li.ok i { color: var(--ok); } .checks-q li.ko i { color: var(--warn); }
.wf { display: flex; gap: 4px; flex-wrap: wrap; } .wf button { border: 1.5px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.wf button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-family: Arial, sans-serif; margin-top: 12px; }
.serp .u { font-size: 12.5px; color: #3c4043; } .serp .ti { color: #1a0dab; font-size: 18px; line-height: 1.3; margin: 2px 0; } .serp .ds { font-size: 13.5px; color: #4d5156; }

/* ---------- séances Eole ---------- */
.week { display: grid; grid-template-columns: 190px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); gap: 1px; font-size: 13px; }
.week > div { background: #fff; padding: 8px; }
.week .h { background: #FAFBFC; font-weight: 700; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.week .f { font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.week .f small { font-weight: 500; color: var(--ink-3); }
.week .s { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.week .s span { background: #E3F2FD; color: #0B4F86; border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.week .s span.off { background: var(--bg); color: var(--ink-3); text-decoration: line-through; }
.films-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.fset { border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 70px 1fr; overflow: hidden; background: #fff; }
.fset .aff svg { width: 100%; height: 100%; display: block; }
.fset .b { padding: 10px 12px; display: grid; gap: 7px; font-size: 13.5px; }
.fset .b b { font-size: 14.5px; }

/* ---------- statistiques ---------- */
.chart { width: 100%; height: 240px; }
.bars { display: grid; gap: 10px; }
.bars .r { display: grid; grid-template-columns: 140px 1fr 56px; gap: 10px; align-items: center; font-size: 14px; }
.bars .t { height: 12px; background: var(--bg); border-radius: 99px; overflow: hidden; } .bars .t i { display: block; height: 100%; border-radius: 99px; background: var(--brand-2); }
.legend { display: flex; gap: 16px; font-size: 13.5px; color: var(--ink-2); } .legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.delta { font-size: 13px; font-weight: 700; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.fl-list { list-style: none; margin: 0; padding: 0; }
.fl-list button { width: 100%; text-align: left; border: 0; background: none; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.fl-list button[aria-pressed="true"] { background: var(--info-bg); }
.fl-list button .n { margin-left: auto; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; } .checklist li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; } .checklist li .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
@media (max-width: 1100px) { .strat { grid-template-columns: 1fr; } .week { grid-template-columns: 130px repeat(7, minmax(70px, 1fr)); overflow-x: auto; } }

/* captures du mémoire : aucune animation figée à mi-course */
.capture *, .capture *::before, .capture *::after { transition: none !important; animation: none !important; }
