/* Police Inter hébergée sur le site (licence SIL OFL 1.1, assets/inter-licence-OFL.txt) : aucune requête vers Google */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(inter-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(inter-latin.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Couleurs du logo : bleu marine et gris */
  --navy: #072854;
  --navy-2: #123c70;
  --logo-gris: #838383;
  --accent: #072854;
  --accent-hover: #1d5296;
  --accent-soft: #e4ebf5;
  --pin: #1d6fb8; /* repère des acteurs prioritaires */
  /* Rouge réservé aux signaux négatifs (défavorable, opposant…) */
  --red: #d8232a;
  --red-dark: #b01b21;
  --ink: #111827;
  --muted: #5b6474;
  --bg: #f3f4f6;
  --card: #ffffff;
  --line: #e2e5ea;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* App bar */
.appbar { background: #fff; color: var(--navy); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.appbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }
.brand img { display: block; height: 30px; width: auto; }
.menu { display: flex; gap: 4px; }
.menu a { text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--muted); padding: 21px 12px 18px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.menu a:hover { color: var(--navy); }
.menu a.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* Dashboard header */
.dashboard, .section-page { padding: 28px 0 56px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.eyebrow { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.dash-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.demo-flag { background: var(--amber-bg); color: var(--amber); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* KPIs */

/* Modules */


.events li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.events li:first-child { padding-top: 0; }
.events li:last-child { border-bottom: 0; }
.date-block { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 0; line-height: 1.1; }
.date-block .d { display: block; font-weight: 800; font-size: 1.15rem; }
.date-block .m { display: block; font-size: .68rem; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.events strong { display: block; font-size: .92rem; }
.type { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 3px; margin-bottom: 3px; background: #eef1f6; color: var(--navy-2); }

.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.counts li { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.counts strong { display: block; font-size: 1.5rem; font-weight: 800; }
.counts span { font-size: .82rem; color: var(--muted); }

.briefs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.briefs li:first-child { padding-top: 0; }
.briefs li:last-child { border-bottom: 0; }
.briefs .meta { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.briefs strong { font-size: .93rem; }

/* Profil client et filtres */
.profile { margin-bottom: 20px; }
.profile-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.profile-select { display: flex; align-items: center; gap: 10px; }
.profile-select span, .filters-panel legend { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.profile-select select { font: 600 .92rem "Inter", sans-serif; padding: 8px 34px 8px 12px; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23072854' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; color: var(--ink); max-width: 100%; }
.btn-filters { font: 600 .88rem "Inter", sans-serif; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.btn-filters:hover, .btn-filters[aria-expanded="true"] { border-color: var(--navy); }
.btn-filters .count:not(:empty) { background: var(--accent); color: #fff; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: inline-grid; place-items: center; padding: 0 6px; }
.profile-summary { font-size: .85rem; color: var(--muted); }
.legende-prio { display: inline-flex; align-items: center; gap: 1px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); white-space: nowrap; }
.legende-prio .star { font-size: 1rem; }

.filters-panel { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; box-shadow: var(--shadow); }
.filters-panel[hidden] { display: none; }
.filters-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters-panel legend { margin-bottom: 8px; padding: 0; }
.filters-panel legend small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.f-sujets { grid-column: 1 / -1; }
.sujet-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 20px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .87rem; padding: 3px 0; cursor: pointer; }
.check input { accent-color: var(--navy); width: 15px; height: 15px; margin: 0; }
.group-head { font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.canton-chips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.chip { font: 700 .72rem "Inter", sans-serif; padding: 6px 0; border: 1px solid var(--line); background: #fff; border-radius: 3px; cursor: pointer; color: var(--navy-2); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; }
.segmented button { font: 500 .85rem "Inter", sans-serif; padding: 7px 14px; border: 0; background: #fff; cursor: pointer; color: var(--ink); }
.segmented button + button { border-left: 1px solid var(--line); }
.segmented button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.prio:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.filters-actions { grid-column: 1 / -1; display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.btn-link { background: none; border: 0; padding: 0; font: 600 .85rem "Inter", sans-serif; color: var(--accent); cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-link[hidden] { display: none; }
.star { display: inline-block; width: 1em; height: 1em; flex: none; margin-right: .22em; vertical-align: -.12em; border-radius: 50%; background: var(--pin) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4.5l-4 4l-4 1.5l-1.5 1.5l7 7l1.5-1.5l1.5-4l4-4'/%3E%3Cpath d='M9 15l-4.5 4.5'/%3E%3Cpath d='M14.5 4l5.5 5.5'/%3E%3C/svg%3E") center / 66% no-repeat; }
.btn-filters svg { width: 16px; height: 16px; }
.btn-filters[hidden] { display: none; }

/* Fiche « Mon profil » */
.profile-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 20px 50px rgba(14, 26, 43, .35); color: var(--ink); }
.profile-dialog::backdrop { background: rgba(14, 26, 43, .55); }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 3px solid var(--accent); background: var(--navy); color: #fff; }
.dialog-head .eyebrow { color: #aab6c8; }
.dialog-head h2 { font-size: 1.4rem; font-weight: 800; }
.dialog-meta { font-size: .82rem; color: #c9d1dd; margin-top: 4px; }
.dialog-close { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; align-self: flex-start; }
.dialog-body { padding: 20px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.p-block { min-width: 0; }
.p-wide { grid-column: 1 / -1; }
.p-block h3 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.p-block h3 span { background: var(--navy); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .7rem; letter-spacing: 0; }
.p-dossiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.p-dossiers > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.p-dossiers h4 { font-size: .85rem; margin: 0 0 6px; }
.p-dossiers li { font-size: .85rem; padding: 2px 0 2px 14px; position: relative; }
.p-dossiers li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--accent); }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.p-tags li { font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #eef1f6; color: var(--navy-2); }
.p-tags li.all, .all { background: none; padding: 0; font-weight: 500; color: var(--muted); font-style: italic; }
.dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--bg); border-top: 1px solid var(--line); }
.dialog-foot p { font-size: .85rem; color: var(--muted); max-width: 420px; }
.btn-primary { background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; padding: 9px 16px; border-radius: var(--radius); }
.btn-primary:hover { background: var(--accent-hover); }

.detail { display: block; font-size: .8rem; color: var(--muted); }
.empty { color: var(--muted); font-size: .9rem; font-style: italic; padding: 8px 0; border: 0 !important; display: block !important; }

/* Annuaire */
.people li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.people strong { font-size: 1.04rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #eef1f6; color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.influence { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; }
.influence-forte { background: var(--accent-soft); color: var(--navy); }
.influence-moyenne { background: var(--amber-bg); color: var(--amber); }
.influence-faible { background: #eef1f6; color: var(--muted); }
.influence-non-evaluee { background: #fff; color: var(--muted); border: 1px dashed #c4cbd6; }

/* Cartographie (aperçu) */

/* Panels */
.panel { padding: 20px; }
.panel-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }

/* Pages de rubrique */
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.section-page h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; margin-bottom: 6px; }
.lead { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.build-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 18px; margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.build-banner span { color: var(--muted); font-size: .92rem; }
.build-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.feature-list li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; background: var(--accent); }
.question-list { counter-reset: q; }
.question-list li { counter-increment: q; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); position: relative; }
.question-list li:last-child { border-bottom: 0; }
.question-list li::before { content: counter(q); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* Page texte (mentions légales) */
.page { max-width: 760px; padding: 36px 0 64px; }
.page h1 { font-size: 2rem; margin-bottom: 8px; }
.page h2 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.page p { margin-bottom: 1em; }
.demo-note { font-size: .82rem; color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d1dd; padding: 22px 0; font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }

/* Annuaire */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: .8rem; margin-top: 8px; }
.actor-link { text-decoration: none; }
.actor-link:hover { color: var(--accent); text-decoration: underline; }
.annuaire-page .dash-head .lead { margin: 4px 0 0; }
.annuaire { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.ann-list { padding: 14px; position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
.search { font: inherit; font-size: .9rem; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.search:focus { outline: 2px solid var(--navy); outline-offset: 0; }
.ann-count { font-size: .78rem; color: var(--muted); margin: 10px 2px 6px; }
.ann-results { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.ann-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; }
.ann-item:hover { background: var(--bg); }
.ann-item.selected { background: #eef1f6; border-color: #d3d9e3; box-shadow: inset 3px 0 0 var(--accent); }
.ann-main { min-width: 0; }
.ann-main strong { display: block; font-size: 1.06rem; }

.fiche { padding: 24px; min-width: 0; }
.fiche-warning { background: var(--amber-bg); color: var(--amber); font-size: .85rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 16px; }
.fiche-head { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; flex: none; }
.fiche-head h2 { font-size: 2rem; font-weight: 800; }
.fiche-sub { color: var(--muted); margin-top: 2px; }
.fiche-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: .8rem; }
.badge-prio { background: #fff6dc; color: #8a6400; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; }

.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.fiche-block { padding: 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.fiche-wide { grid-column: 1 / -1; }
.fiche-block h3, .fiche-section h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fiche-block dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: .92rem; }
.fiche-block dt { color: var(--muted); font-size: .85rem; }
.fiche-block dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fiche-block dd a { color: var(--navy); }
.comm li { padding: 2px 0; }
.comm abbr { font-weight: 700; text-decoration: none; }
.comm .muted { display: block; font-size: .8rem; }
.liens { width: 100%; border-collapse: collapse; font-size: .9rem; }
.liens th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 0 10px 6px 0; border-bottom: 1px solid var(--line); }
.liens td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

.fiche-section { padding: 22px 0 6px; border-bottom: 1px solid var(--line); }
.fiche-section:last-of-type { border-bottom: 0; }
.count-pill { background: var(--navy); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .7rem; letter-spacing: 0; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pos { border: 1px solid var(--line); border-left: 4px solid #c4cbd6; border-radius: var(--radius); padding: 12px 14px; }
.pos header { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; margin-bottom: 6px; }
.pos-dossier { grid-column: 1 / -1; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pos h4 { font-size: .95rem; margin: 0; }
.pos p { font-size: .88rem; }
.pos-source { color: var(--muted); font-size: .76rem !important; margin-top: 6px; }
.pos-pill { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; white-space: nowrap; background: #eef1f6; color: var(--muted); }
.pos-favorable { border-left-color: #15803d; }
.pos-favorable .pos-pill { background: #e7f6ec; color: #15803d; }
.pos-nuancee { border-left-color: #d97706; }
.pos-nuancee .pos-pill { background: var(--amber-bg); color: var(--amber); }
.pos-defavorable { border-left-color: var(--red); }
.pos-defavorable .pos-pill { background: #fde8e8; color: var(--red-dark); }

.fiche-sub-block { margin: 18px 0 14px; background: var(--bg); border-radius: var(--radius); padding: 14px 16px; }
.fiche-sub-block h4 { font-size: .85rem; margin: 0 0 8px; }
.briefings-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.briefings-list li:last-child { border-bottom: 0; }
.briefings-list .meta { font-size: .75rem; color: var(--muted); display: flex; gap: 6px; }
.briefings-list a { text-decoration: none; font-size: .92rem; }
.briefings-list a:hover strong { color: var(--accent); }
.agenda-list li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.agenda-list li:last-child { border-bottom: 0; }
.agenda-list strong { display: block; font-size: .92rem; }
.fiche-section .btn-link, .fiche-sub-block .btn-link { margin: 8px 0 6px; }
.back-to-list { display: none; margin-top: 12px; }

/* Briefings */
.head-actions[hidden] { display: none; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.head-actions .btn-filters { text-decoration: none; color: var(--ink); }
.avatar-sm { width: 26px; height: 26px; font-size: .68rem; display: inline-grid; vertical-align: middle; margin-right: 7px; }
.br-item { display: block; padding: 10px 10px; border-radius: var(--radius); text-decoration: none; border: 1px solid transparent; }
.br-item:hover { background: var(--bg); }
.br-item.selected { background: #eef1f6; border-color: #d3d9e3; box-shadow: inset 3px 0 0 var(--accent); }
.br-item .meta { display: block; font-size: .72rem; color: var(--muted); }
.br-item strong { display: block; font-size: .9rem; margin: 2px 0 6px; line-height: 1.35; }
.br-item-acteur { font-size: .96rem; color: var(--navy-2); font-weight: 700; }
.br-tools { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.briefing .br-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.briefing .br-head h2 { font-size: 1.55rem; font-weight: 800; margin: 2px 0 6px; line-height: 1.25; }
.br-meta { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.br-acteur { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.br-acteur:hover { border-color: var(--navy); }
.br-acteur strong { display: block; font-size: 1.12rem; }
.br-acteur .detail { font-size: .78rem; }
.br-body { max-width: 760px; }
.br-section { padding: 18px 0 4px; }
.br-section h3 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.br-section p, .br-section li { font-size: .96rem; line-height: 1.6; }
.br-section p + p { margin-top: 8px; }
.br-section ul { list-style: none; padding: 0; }
.br-section ul li, .br-section .puce { position: relative; padding-left: 18px; margin: 4px 0; }
.br-section ul li::before, .br-section .puce::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; background: var(--accent); }
.br-enBref { background: #f6f7f9; border-left: 4px solid var(--navy); padding: 14px 18px; margin-top: 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.br-enBref p { font-size: 1.02rem; font-weight: 500; }
.br-recommandations { background: #fff8f1; border-left: 4px solid var(--accent); padding: 14px 18px; margin-top: 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.br-allies ul li { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; }
.br-allies ul li::before { display: none; }
.br-allies ul li strong { font-size: 1.06rem; }
.nom-acteur { font-size: 1.06rem; }
.br-allies ul li p { font-size: .88rem; color: var(--muted); margin: 2px 0 0; }
.br-allies a { color: var(--navy); }
.role { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; border-radius: 3px; text-align: center; align-self: start; }
.role-allie { background: #e7f6ec; color: #15803d; }
.role-opposant { background: #fde8e8; color: var(--red-dark); }
.role-cite { background: #eef1f6; color: var(--muted); }
.br-sources p { font-size: .85rem; color: var(--muted); }
.statut { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; }
.statut-brouillon { background: #eef1f6; color: var(--muted); }
.statut-relu { background: var(--amber-bg); color: var(--amber); }
.statut-publie { background: #e7f6ec; color: #15803d; }

/* Éditeur de briefings */
.ed-etat { font-size: .82rem; color: var(--muted); margin: -8px 0 14px; }
.ed-etat.alerte { color: var(--red-dark); font-weight: 600; }
.ed-conflit { background: var(--amber-bg); color: #78350f; border-radius: var(--radius); padding: 10px 14px; margin: -4px 0 14px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ed-conflit[hidden] { display: none; }
.editeur { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.ed-list { padding: 14px; position: sticky; top: 76px; max-height: calc(100vh - 92px); display: flex; flex-direction: column; }
.ed-items { overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.ed-item { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 1px solid transparent; border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
.ed-item:hover { background: var(--bg); }
.ed-item.selected { background: #eef1f6; border-color: #d3d9e3; box-shadow: inset 3px 0 0 var(--accent); }
.ed-item strong { display: block; font-size: .88rem; margin: 4px 0 2px; line-height: 1.3; }
.ed-list-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.ed-list-actions label.btn-link { cursor: pointer; }
.ed-main { padding: 0; overflow: hidden; }
.ed-tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--bg); }
.ed-tabs button { font: 600 .88rem "Inter", sans-serif; padding: 12px 18px; border: 0; background: none; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.ed-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); background: var(--card); }
.ed-form, .ed-apercu { padding: 22px 24px; }
.ed-form[hidden], .ed-apercu[hidden] { display: none; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; margin-bottom: 8px; }
.ed-wide { grid-column: 1 / -1; }
.ed-form label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.ed-form input, .ed-form select, .ed-form textarea { font: inherit; font-size: .92rem; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.ed-form textarea { resize: vertical; line-height: 1.5; }
.ed-form input:focus, .ed-form select:focus, .ed-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: transparent; }
.ed-texte { margin-top: 16px; }
.aide { font-weight: 400; color: var(--muted); font-size: .78rem; }
.ed-allies { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px 10px; margin: 18px 0 0; }
.ed-allies legend { font-size: .8rem; font-weight: 700; padding: 0 6px; }
.allie-row { display: grid; grid-template-columns: 1.4fr 110px 2fr 32px; gap: 8px; margin: 8px 0; align-items: center; }
.allie-row { align-items: start; }
.allie-qui { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.allie-qui input[hidden] { display: none; }
.btn-icone { width: 32px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.btn-icone:hover { color: var(--accent); border-color: var(--accent); }
.ed-danger { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
button.btn-primary { border: 0; cursor: pointer; font-family: inherit; }

/* Agenda */
.ag-toolbar { padding: 14px 16px; margin-bottom: 18px; }
.ag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-row .segmented { margin-bottom: 0; }
.segmented[hidden] { display: none; }
.ag-search { flex: 1 1 220px; width: auto; }
.ag-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip-type { font: 500 .78rem "Inter", sans-serif; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #9aa3b2); }
.chip-type[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.ag-toolbar .ann-count { margin: 10px 0 0; }
.t0 { --c: #1d4ed8; } .t1 { --c: #0e7490; } .t2 { --c: #b45309; } .t3 { --c: #7c3aed; } .t4 { --c: #d8232a; }
.t5 { --c: #15803d; } .t6 { --c: #be185d; } .t7 { --c: #4d7c0f; } .t8 { --c: #64748b; }
.type.t0, .type.t1, .type.t2, .type.t3, .type.t4, .type.t5, .type.t6, .type.t7, .type.t8 { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.ag-jour { margin-bottom: 22px; }
.ag-jour h2 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--navy); }
.ag-jour h2::first-letter { text-transform: uppercase; }
.ag-jour h2 .auj { background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 3px; margin-right: 4px; letter-spacing: .04em; }
.ev { display: grid; grid-template-columns: 76px 1fr; gap: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--navy)); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.ev.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-time { font-weight: 800; font-size: 1.05rem; line-height: 1.2; padding-top: 8px; }
.ev-time span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.ev-sujet { font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.ev h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.ev .detail a { color: var(--navy); }
.ev-acteurs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; align-items: center; }
.ev-activite { border-top: 1px solid var(--line); padding-top: 10px; }
.ev-activite > .muted { display: block; font-size: .78rem; margin-top: 4px; }
.ev-chip .avatar-sm { width: 34px; height: 34px; font-size: .8rem; margin-right: 9px; }
.ev-chip { display: inline-flex; align-items: center; font-size: 1.2rem; font-weight: 700; text-decoration: none; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.ev-chip:hover { border-color: var(--navy); }
.ev-chip.cache { display: none; }
.ev-acteurs.tout .ev-chip.cache { display: inline-flex; }
.ag-vide { padding: 24px; text-align: center; }
.cal { padding: 14px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav h2 { font-size: 1.1rem; text-transform: capitalize; }
.cal-grille { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-jour { font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.cal-case { min-height: 104px; padding: 4px 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-case.hors { background: #fafbfc; }
.cal-case.hors .cal-num { color: #b8bfca; }
.cal-case.auj { background: #fff7f7; }
.cal-case.auj .cal-num { background: var(--accent); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.cal-num { font-size: .78rem; font-weight: 700; }
.cal-ev { font-size: .72rem; line-height: 1.25; padding: 2px 5px; border-radius: 3px; text-decoration: none; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { filter: brightness(.95); }
.cal-plus { font-size: .7rem; color: var(--muted); padding-left: 4px; }

/* Cartographie */
.ca-choix { padding: 28px; text-align: center; }
.ca-choix h2 { font-size: 1.25rem; margin-bottom: 6px; }
.ca-choix p { color: var(--muted); margin-bottom: 16px; }
.ca-clients { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ca-base { padding: 14px 18px; margin-bottom: 16px; font-size: .88rem; }
.ca-enjeux { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; color: var(--muted); }
.ca-base .fiche-warning { margin: 10px 0 0; }
.ca-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-bottom: 18px; }
.ca-carte { padding: 12px; overflow-x: auto; }
.matrice { width: 100%; min-width: 760px; height: auto; display: block; }
.matrice .case { stroke: #fff; stroke-width: 2; }
.matrice .zone { font: 700 10px "Inter", sans-serif; text-transform: uppercase; letter-spacing: .06em; fill: #8a93a3; }
.matrice .axe-x { font: 700 13px "Inter", sans-serif; text-anchor: middle; }
.matrice .axe-y { font: 700 12px "Inter", sans-serif; text-anchor: end; fill: var(--muted); dominant-baseline: middle; }
.matrice .axe-y.titre { dominant-baseline: auto; }
.matrice .axe-legende { font: 600 11px "Inter", sans-serif; fill: var(--muted); }
.matrice .axe-legende.fin { text-anchor: end; }
.bulle { cursor: pointer; }
.bulle circle { stroke: #fff; stroke-width: 2; transition: stroke-width .15s; }
.bulle circle.non-eval { stroke: #6b7280; stroke-dasharray: 3 3; stroke-width: 1.5; }
.bulle circle.halo { fill: none; stroke: var(--pin); stroke-width: 2.5; }
.bulle:hover circle:not(.halo), .bulle:focus circle:not(.halo) { stroke: var(--navy); stroke-width: 3; outline: none; }
.bulle.sel circle:not(.halo) { stroke: var(--navy); stroke-width: 4; }
.bulle .ini { font: 800 12px "Inter", sans-serif; text-anchor: middle; fill: var(--navy); pointer-events: none; }
.bulle .ini.clair { fill: #fff; }
.bulle .nom { font: 800 15px "Inter", sans-serif; text-anchor: middle; fill: var(--ink); }
.ca-legende { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .78rem; color: var(--muted); padding: 8px 4px 2px; align-items: center; }
.ca-legende span { display: inline-flex; align-items: center; gap: 4px; }
.lg-b { display: inline-block; border-radius: 50%; background: #a3acb9; }
.lg-halo { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--pin); }
.lg-dash { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed #6b7280; }
.ca-qualifier { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ca-qualifier .ev-chip { font-size: .9rem; }
.ca-qualifier .ev-chip.sel { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.ca-detail { padding: 20px; position: sticky; top: 76px; }
.ca-detail h2 { font-size: 1.5rem; font-weight: 800; }
.ca-detail h3 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.ca-scores { display: grid; gap: 8px; margin-top: 14px; }
.ca-scores > div { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: baseline; padding: 8px 10px; background: var(--bg); border-radius: var(--radius); }
.ca-scores span { font-size: .78rem; color: var(--muted); }
.ca-scores strong { font-size: .95rem; text-align: right; }
.ca-scores em { grid-column: 1 / -1; font-size: .74rem; color: var(--muted); font-style: normal; }
.pill-al { color: var(--c); }
.ca-strat { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.ca-strat p { font-size: .85rem; margin-top: 6px; }
.strat { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 3px; background: #eef1f6; color: var(--navy); }
.strat-mobiliser { background: #dcf3e4; color: #166534; }
.strat-convaincre { background: #fff0c9; color: #92400e; }
.strat-contrer { background: #fde1e1; color: #991b1b; }
.strat-activer { background: #ecf7f0; color: #15803d; }
.strat-informer { background: #eef1f6; color: #475569; }
.strat-surveiller { background: #fbeeee; color: #b91c1c; }
.strat-a-qualifier { background: #fff; color: var(--muted); border: 1px dashed #c4cbd6; }
.ca-raisons li { font-size: .85rem; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ca-raisons .v { font-size: .66rem; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; margin-left: 4px; }
.v1 { background: #e7f6ec; color: #15803d; } .v-1 { background: #fde8e8; color: var(--red-dark); } .v0 { background: #eef1f6; color: var(--muted); }
.ca-note { font-size: .85rem; margin-top: 12px; padding: 8px 10px; background: #fffbea; border-radius: var(--radius); }
.ca-ajuster { margin-top: 14px; padding: 12px; border: 2px dashed var(--accent); border-radius: var(--radius); display: grid; gap: 10px; }
.ca-ajuster h3 { margin: 0; color: var(--accent); }
.ca-ajuster label { display: grid; gap: 4px; font-size: .78rem; font-weight: 700; }
.ca-ajuster select, .ca-ajuster textarea { font: inherit; font-weight: 400; font-size: .88rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--radius); }
.ca-liens { margin-top: 14px; font-size: .88rem; font-weight: 600; }
.ca-liens a { color: var(--accent); }
.ca-strategies { padding: 18px 20px; }
.ca-groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px 22px; }
.ca-groupe h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ca-groupe > p { font-size: .8rem; margin-bottom: 6px; }
.ca-groupe li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ca-groupe li a { font-weight: 700; font-size: 1rem; text-decoration: none; }
.ca-groupe li a:hover { color: var(--accent); }
.ca-groupe li .muted { display: block; font-size: .76rem; }

.ca-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; background: var(--bg); }
.ca-badge:hover { border-color: var(--navy); }
.p-positions li { font-size: .88rem; padding: 4px 0; }
.p-positions .v { font-size: .66rem; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }

/* Cartographie : relations et intérêts */
.ca-vues { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.ca-vues .segmented { margin: 0; }
.matrice .rel { fill: none; stroke: #4b5b74; opacity: .55; }
.matrice .rel.lie { stroke: var(--navy); opacity: 1; }
.matrice .rel.estompe { opacity: .14; }
.matrice .mk path { fill: #4b5b74; }
.matrice .mk.lie path { fill: var(--navy); }
.lg-fleche { display: inline-block; width: 22px; height: 0; border-top: 2px solid #4b5b74; position: relative; margin-right: 2px; }
.lg-fleche::after { content: ""; position: absolute; right: -2px; top: -5px; border: 4px solid transparent; border-left: 6px solid #4b5b74; }
.ca-interets { padding: 14px; min-width: 0; }
.ca-int-aide { font-size: .8rem; margin-bottom: 10px; }
.ca-int-scroll { overflow-x: auto; }
.ca-int { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .85rem; }
.ca-int thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); text-align: center; padding: 4px; vertical-align: bottom; min-width: 96px; }
.ca-int thead th:first-child { text-align: left; }
.ca-int tbody th { text-align: left; padding: 6px 8px; white-space: nowrap; }
.ca-int tbody th a { font-weight: 800; font-size: 1.02rem; text-decoration: none; }
.ca-int tbody th a:hover { color: var(--accent); }
.ca-int tbody th .muted { display: block; font-size: .72rem; font-weight: 500; }
.ca-int tr.sel th { box-shadow: inset 3px 0 0 var(--accent); }
.int { text-align: center; padding: 8px 4px; border-radius: 4px; font-weight: 700; font-size: .78rem; }
.int span:first-child { display: block; }
.int-eleve, .int-l.int-eleve { background: #072854; color: #fff; }
.int-moyen, .int-l.int-moyen { background: #5b6f8f; color: #fff; }
.int-faible, .int-l.int-faible { background: #d5dbe5; color: var(--navy); }
.int-aucun, .int-l.int-aucun { background: #f3f4f6; color: #9aa3b2; }
.int-l { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: .72rem; font-weight: 700; }
.sens { font-size: .8rem; }
.sens.s1 { color: #4ade80; } .sens.s-1 { color: #f87171; } .sens.s0 { color: #cbd5e1; }
.int-faible .sens.s1, .int-aucun .sens.s1 { color: #15803d; }
.int-faible .sens.s-1, .int-aucun .sens.s-1 { color: #c0262d; }
.int-faible .sens.s0, .int-aucun .sens.s0 { color: #64748b; }
.ca-int-barres li { display: grid; grid-template-columns: 1fr 52px 54px; gap: 8px; align-items: center; padding: 4px 0; font-size: .82rem; }
.ca-int-barres .niv { font-weight: 700; text-align: right; }
.jauge { display: flex; gap: 3px; }
.jauge i { flex: 1; height: 8px; border-radius: 2px; background: #e5e8ee; }
.j-faible i:nth-child(1), .j-moyen i:nth-child(-n+2), .j-eleve i { background: var(--navy); }
.rel-titre { font-size: .76rem; font-weight: 700; color: var(--muted); margin: 6px 0 2px; }
.ca-rels li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ca-rels li a { font-weight: 800; color: var(--ink); }
.ca-rels li p { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.rel-tag { font-size: .68rem; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: #eef1f6; color: var(--navy-2); white-space: nowrap; }
.rel-tag.f-forte { background: var(--navy); color: #fff; }
.ca-leviers { padding: 18px 20px; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ca-leviers ul { margin-top: 8px; }
.ca-leviers li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ca-leviers .lev { display: block; font-size: 1rem; }
.ca-leviers .lev a { font-weight: 800; text-decoration: none; }
.ca-leviers .lev a:hover { color: var(--accent); }
.ca-leviers .fl { color: var(--accent); font-weight: 800; margin: 0 4px; }
.ca-leviers li .muted { display: block; font-size: .78rem; margin-top: 2px; }

.pos-interet { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin: 0 0 6px; }
.pos-interet .jauge { width: 54px; }
.pos-interet strong { color: var(--ink); }
.fiche-reseau { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ca-detail .fiche-reseau { grid-template-columns: 1fr; }


/* =======================================================================
   Tableau de bord (inspiré des tableaux de bord de veille politique)
   Grille : fil d'actualité à gauche, bandeau et cartes par rubrique à droite
   ======================================================================= */
.dashboard #profile-zone { margin-bottom: 18px; }
.db-grid {
  display: grid; gap: 18px;
  grid-template-columns: minmax(290px, 350px) 1fr 1fr;
  grid-template-areas:
    "fil hero hero"
    "fil brief carto"
    "fil pos pos"
    "ann agenda agenda"
    "conseil conseil conseil";
}
.db-hero { grid-area: hero; } .db-fil { grid-area: fil; } .db-briefings { grid-area: brief; }
.db-carto { grid-area: carto; } .db-positions { grid-area: pos; } .db-annuaire { grid-area: ann; }
.db-agenda { grid-area: agenda; } .db-conseil { grid-area: conseil; }
.db-grid > * { min-width: 0; }

/* Bandeau d'accueil */
.db-hero {
  display: grid; grid-template-columns: 1fr minmax(260px, 46%); gap: 24px;
  background: linear-gradient(125deg, var(--navy) 0%, #0d3566 60%, #16467f 100%);
  color: #fff; border-radius: var(--radius); padding: 26px 28px; position: relative; overflow: hidden;
  border-bottom: 3px solid var(--accent);
}
.db-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
}
.db-hero-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.db-hero h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -.01em; text-wrap: balance; }
.db-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: #c6d1e1; }
.db-hero-meta span:first-child::first-letter { text-transform: uppercase; }
.db-demo { align-self: flex-start; margin-top: 4px; }
.db-session { margin-top: auto; padding-top: 18px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #dbe3ee; display: flex; align-items: center; gap: 8px; }
.db-dot { width: 8px; height: 8px; border-radius: 50%; background: #8c9ab0; flex: none; }
.db-dot-on { background: #34c26b; box-shadow: 0 0 0 3px rgba(52,194,107,.25); }
.db-kpis { display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.db-kpi {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 14px 10px; text-decoration: none; color: #fff; border-radius: 4px; transition: background .15s;
}
.db-kpi:nth-child(1), .db-kpi:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.18); }
.db-kpi:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.18); }
.db-kpi:hover { background: rgba(255,255,255,.07); }
.db-kpi:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.db-kpi-val { font-size: 2.3rem; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.db-kpi-lbl { font-size: .82rem; color: #dbe3ee; }
.db-kpi-sub { font-size: .72rem; color: #9fb0c7; }

/* Cartes */
.db-card {
  background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.08);
  border: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column;
}
.db-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.db-ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.db-head h2 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.db-badge {
  margin-left: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.db-badge[hidden] { display: none; }
.db-voir {
  margin-top: auto; align-self: flex-end; padding-top: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.db-voir::after { content: " ›"; font-size: .95rem; }
.db-voir:hover { color: var(--accent); }
.db-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.db-sep { opacity: .6; }
.db-pill { background: var(--accent); color: #fff; border-radius: 3px; padding: 1px 6px; letter-spacing: .08em; }
.db-quand { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.db-quand-inline { color: var(--accent); }
.db-vide { color: var(--muted); font-size: .9rem; font-style: italic; padding: 6px 0; }
.db-extrait { color: #3b4454; font-size: .9rem; line-height: 1.55; margin-top: 6px; }

/* Fil d'actualité */
.db-feed { flex: 1 1 0; min-height: 260px; overflow-y: auto; margin-right: -8px; padding-right: 8px; }
.db-feed li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.db-feed li:last-child { border-bottom: 0; }
.db-titre { font-size: .93rem; color: var(--ink); text-decoration: none; line-height: 1.4; }
.db-titre:hover { color: var(--accent); }
.db-fil-sujet { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }

/* Briefings */
.db-une-titre { display: block; font-size: 1.12rem; font-weight: 500; line-height: 1.35; color: var(--ink); text-decoration: none; margin: 2px 0 6px; text-wrap: balance; }
.db-une-titre:hover { color: var(--accent); }
.db-acteur { font-size: .85rem; }
.db-acteur .nom-acteur { font-weight: 700; }
.db-mini { margin-top: 14px; border-top: 1px solid var(--line); }
.db-mini li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.db-mini li:last-child { border-bottom: 0; }
.db-mini a { color: var(--ink); text-decoration: none; }
.db-mini a:hover { color: var(--accent); text-decoration: underline; }

/* Cartographie */
.db-carte { display: block; border-radius: 4px; }
.db-carte:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.db-carte svg { width: 100%; height: auto; display: block; }
.db-carte:hover .db-pt circle { stroke: var(--accent); }
.db-ax { font: 600 9.5px "Inter", system-ui, sans-serif; fill: var(--muted); }
.db-z-m2 { fill: #fbe1e1; } .db-z-m1 { fill: #fdeeee; } .db-z-0 { fill: #fff5dc; } .db-z-p1 { fill: #e6f5eb; } .db-z-p2 { fill: #d5efdd; }
.db-pt circle { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.db-pt-prio circle { stroke: var(--pin); stroke-width: 2.5; }
.db-pt text { font: 700 8.5px "Inter", system-ui, sans-serif; fill: #fff; }
.db-strats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.db-strats li { display: flex; align-items: center; gap: 6px; }
.db-strat-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.db-carto-intro { color: #3b4454; font-size: .9rem; margin-bottom: 14px; }
.db-choix { display: grid; gap: 8px; }
.db-choix-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit;
  background: #f7f8fa; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; cursor: pointer; color: var(--ink);
}
.db-choix-btn span { font-size: .78rem; color: var(--muted); }
.db-choix-btn:hover { border-color: var(--navy); background: #fff; }
.db-choix-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Prises de position */
.db-pos-corps { min-height: 118px; }
.db-pos-titre { font-size: 1.15rem; line-height: 1.4; margin: 2px 0 2px; }
.db-pos-titre .nom-acteur { font-weight: 700; }
.db-pos-badge { display: inline-block; vertical-align: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 3px; padding: 2px 7px; margin-left: 4px; }
.db-pos-favorable { background: #dcf3e4; color: #166534; }
.db-pos-defavorable { background: #fde1e1; color: #991b1b; }
.db-pos-nuancee { background: #fff0c9; color: #92400e; }
.db-pos-enjeu { font-size: .95rem; color: #3b4454; font-weight: 400; }
.db-source { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.db-dots { display: flex; gap: 8px; margin-top: 14px; }
.db-dot-btn { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #cfd5de; cursor: pointer; }
.db-dot-btn[aria-pressed="true"] { background: var(--accent); box-shadow: 0 0 0 3px rgba(7,40,84,.18); }
.db-dot-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Annuaire */
.db-sous { font-size: .95rem; font-weight: 500; margin: 2px 0 6px; }
.db-sous + .db-ann, .db-ann + .db-sous { margin-top: 0; }
.db-ann { margin-bottom: 14px; }
.db-ann a {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "nom inf" "det inf"; column-gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.db-ann li:last-child a { border-bottom: 0; }
.db-ann-nom { grid-area: nom; font-weight: 600; }
.db-ann-detail { grid-area: det; font-size: .78rem; color: var(--muted); }
.db-ann .influence { grid-area: inf; align-self: center; }
.db-ann a:hover .db-ann-nom { color: var(--accent); }

/* Agenda */
.db-cal-wrap { display: grid; grid-template-columns: minmax(250px, 1fr) 1.15fr; gap: 26px; }
.db-cal-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 1rem; }
.db-cal-tete span::first-letter { text-transform: uppercase; }
.db-nav { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; }
.db-nav:hover { background: #eef1f6; color: var(--ink); }
.db-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 2px; text-align: center; }
.db-cal-j { font-size: .64rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 4px 0; }
.db-jour-btn {
  position: relative; justify-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent;
  background: none; font: inherit; font-size: .8rem; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
}
.db-jour-btn:hover { background: #eef1f6; }
.db-jour-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.db-hors { color: #b3bac6; }
.db-evt::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.db-auj { border-color: var(--accent); font-weight: 700; }
.db-sel { background: var(--navy) !important; color: #fff; }
.db-sel::after { background: #fff; }
.db-jour-titre { font-size: 1rem; font-weight: 500; padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
.db-jour-titre::first-letter { text-transform: uppercase; }
.db-jour-liste { max-height: 360px; overflow-y: auto; }
.db-jour-liste li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.db-jour-liste li:last-child { border-bottom: 0; }
.db-jour-liste li.db-vide-li { display: block; }
.db-ag-acteur { font-size: 1.05rem; font-weight: 700; }
.db-cal-resume { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.db-cal-resume ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 6px; }
.db-cal-resume li { display: flex; justify-content: space-between; font-size: .84rem; border-bottom: 1px solid var(--line); padding: 4px 0; }
.db-suite-titre { margin-top: 14px; font-size: .9rem; border-bottom-width: 1px; }
.db-ag-petit { font-size: .95rem; }
.db-ag-titre { font-size: .9rem; color: #3b4454; text-decoration: none; }
.db-ag-titre:hover { color: var(--accent); text-decoration: underline; }

/* Interlocuteur */
.db-conseil-corps { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
#db-conseiller { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
#db-conseiller span { color: var(--muted); font-size: .8rem; }
#db-conseiller a { color: var(--accent); font-size: .85rem; }
.db-liens { display: flex; flex-wrap: wrap; gap: 6px 0; }
.db-liens a { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0 12px; border-left: 1px solid var(--line); }
.db-liens a:first-child { border-left: 0; padding-left: 0; }
.db-liens a:hover { color: var(--accent); }


/* =======================================================================
   Pages de rubrique : même identité que le tableau de bord
   (bandeau marine, cartes blanches, titres de section espacés)
   ======================================================================= */
main.dashboard > .dash-head {
  position: relative; overflow: hidden; align-items: center; gap: 16px 24px;
  background: linear-gradient(125deg, var(--navy) 0%, #0d3566 60%, #16467f 100%);
  color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 18px;
  border-bottom: 3px solid var(--logo-gris);
}
main.dashboard > .dash-head::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.07), transparent 70%);
}
main.dashboard > .dash-head > * { position: relative; z-index: 1; min-width: 0; }
main.dashboard > .dash-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 300; letter-spacing: -.01em; color: #fff; margin: 0; text-wrap: balance; }
main.dashboard > .dash-head .lead { color: #c6d1e1; font-size: .98rem; max-width: 68ch; margin: 6px 0 0; }
main.dashboard > .dash-head .btn-filters { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: #fff; }
main.dashboard > .dash-head .btn-filters:hover { background: rgba(255,255,255,.16); border-color: #fff; }
main.dashboard > .dash-head .btn-filters[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
main.dashboard > .dash-head .btn-filters .muted { color: #9fb0c7; }
main.dashboard > .dash-head .btn-filters[aria-pressed="true"] .muted { color: var(--muted); }
main.dashboard > .dash-head .btn-primary { background: #fff; color: var(--navy); }
main.dashboard > .dash-head .btn-primary:hover { background: #e4ebf5; }
main.dashboard > .dash-head .btn-filters:focus-visible, main.dashboard > .dash-head .btn-primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.breadcrumb a:hover { color: var(--navy); }

/* Cartes */
.panel { border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* Titres de section */
.panel-title, .fiche-block h3, .fiche-section h3, .br-section h3, .ca-detail h3, .p-block h3, .ag-jour h2 {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; color: var(--ink);
}
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: 0; vertical-align: 1px; margin-left: 6px; }


/* =======================================================================
   Sobriété façon presse professionnelle : cartes blanches nettes,
   séparations par filets, étiquettes en texte (pas d'encadrés teintés)
   ======================================================================= */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.08); }

/* Étiquettes : texte en couleur précédé d'une pastille, sans fond */
.strat, .influence, .pos-pill, .role, .statut, .db-pos-badge, .ca-raisons .v, .p-positions .v {
  background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0;
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: .08em; white-space: nowrap;
}
.strat::before, .influence::before, .pos-pill::before, .role::before, .statut::before, .db-pos-badge::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.strat { font-size: .7rem; font-weight: 700; }
.strat-mobiliser { color: #166534; } .strat-convaincre { color: #a15c07; } .strat-contrer { color: #b91c1c; }
.strat-activer { color: #15803d; } .strat-informer { color: #475569; } .strat-surveiller { color: #b45309; }
.strat-a-qualifier, .influence-non-evaluee { color: var(--muted); }
.strat-a-qualifier::before, .influence-non-evaluee::before { background: none; border: 1.5px dashed currentColor; width: 6px; height: 6px; }
.influence-forte { color: var(--navy); } .influence-moyenne { color: #a15c07; } .influence-faible { color: var(--muted); }
.ca-raisons .v, .p-positions .v { margin-left: 6px; }
.type, .type.t0, .type.t1, .type.t2, .type.t3, .type.t4, .type.t5, .type.t6, .type.t7, .type.t8 {
  background: none; padding: 0; border-radius: 0; letter-spacing: .1em; color: var(--c, var(--navy-2));
}
.ev-sujet { border: 0; padding: 0; border-radius: 0; }
.ev-sujet::before { content: "· "; }

/* Sélection dans les listes : fond gris, sans barre de couleur */
.ann-item.selected, .br-item.selected { background: #eef1f6; border-color: transparent; box-shadow: none; }
.ann-item.selected .nom, .br-item.selected strong { color: var(--navy); }

/* Briefing : « En bref » et recommandations sans encadré */
.br-enBref, .br-recommandations { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 4px; margin-top: 18px; }
.br-enBref { border-top: 0; margin-top: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.br-enBref p { font-size: 1.04rem; font-weight: 500; line-height: 1.65; color: var(--ink); letter-spacing: -.003em; }
.br-enBref p + p { margin-top: 6px; }

/* Fiche annuaire : positions séparées par des filets */
.pos-grid { gap: 0 28px; }
.pos { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 10px; }

/* Cartographie : panneau de détail sans pavés gris */
.ca-scores { gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.ca-scores > div { background: none; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ca-strat { border: 0; padding: 12px 0 0; margin-top: 0; }
.ca-note { background: none; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; }
.ca-groupes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ca-leviers { gap: 32px; }

/* Agenda : cartes d'engagement sans barre latérale colorée */
.ev { border-left: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.06); }

.badge-prio { background: none; padding: 0; color: var(--pin); letter-spacing: .08em; }
.fiche-sub-block { background: none; border-radius: 0; border-top: 1px solid var(--line); padding: 16px 0 4px; }
.fiche-sub-block h4 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rel-tag, .rel-tag.f-forte { background: none; padding: 0; border-radius: 0; color: var(--muted); font-weight: 600; }
.rel-tag.f-forte { color: var(--navy); }
.pill-al { color: color-mix(in srgb, var(--c) 72%, #000); }

/* Briefing, alliés et opposants : rôle en gris, noms à taille de texte */
.br-allies .role, .br-allies .role-allie, .br-allies .role-opposant, .br-allies .role-cite { color: var(--muted); padding-top: 3px !important; }
.br-allies .role::before { display: none; }
.br-allies ul li strong { font-size: .95rem; font-weight: 600; }
.br-allies ul li .muted { font-size: .85rem; }
.br-allies ul li { grid-template-columns: 96px 1fr; padding: 10px 0; }
.br-allies ul li strong a { text-decoration: none; color: var(--navy); }
.br-allies ul li strong a:hover { text-decoration: underline; }
.br-allies ul li:last-child { border-bottom: 0; }

/* « Mon profil », acteurs prioritaires : même style que les noms des briefings */
.people li { padding: 10px 0; }
.people strong { font-size: .95rem; font-weight: 600; }
.people strong a { color: var(--navy); text-decoration: none; }
.people strong a:hover { text-decoration: underline; }
.people .detail { display: block; font-size: .85rem; color: var(--muted); margin-top: 1px; }

/* « Mon profil » : sections séparées par des filets, positions en tableau aéré */
.dialog-body { row-gap: 0; }
.dialog-body > .p-block { padding: 18px 0; }
.dialog-body > .p-block:not(:first-child) { border-top: 1px solid var(--line); }
.p-positions li { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 4px 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.p-positions li:last-child { border-bottom: 0; }
.p-pos-sujet { font-weight: 600; color: var(--ink); }
.p-pos-sens { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.p-pos-enjeu { display: block; color: var(--ink); }

/* Page de connexion */
.page-connexion { background: var(--bg); }
.cx { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.cx-carte { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.08); padding: 30px 30px 22px; }
.cx-logo { display: block; height: 34px; width: auto; }
.cx-sous { font-size: .8rem; color: var(--muted); margin: 6px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cx-etape { display: grid; gap: 14px; }
.cx-etape h1 { font-size: 1.25rem; font-weight: 500; }
.cx-etape p, .cx-liste { font-size: .88rem; color: #3b4454; line-height: 1.55; margin: 0; }
.cx-liste { padding-left: 18px; display: grid; gap: 4px; }
.cx-etape label { display: grid; gap: 5px; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cx-etape input { font: 400 .95rem "Inter", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.cx-etape input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
#cx-code, #cx-code-enrol { font-size: 1.3rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.cx-bouton { margin-top: 4px; padding: 11px 16px; background: var(--navy); color: #fff; border: 0; border-radius: var(--radius); cursor: pointer; font: 700 .72rem "Inter", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.cx-bouton:hover { background: var(--navy-2); }
.cx-bouton:disabled { opacity: .6; cursor: wait; }
.cx-bouton:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-qr { justify-self: center; border: 1px solid var(--line); border-radius: 4px; }
.cx-secret code { font-size: .82rem; background: #f4f6fa; padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.cx-erreur { margin-top: 14px; font-size: .86rem; color: var(--red-dark); }
.cx-lien { background: none; border: 0; padding: 0; font: 500 .8rem "Inter", system-ui, sans-serif; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.cx-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; margin: 0; padding: 14px 18px 14px 36px; background: var(--bg); border-radius: var(--radius); font: 500 .95rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; user-select: all; }
.cx-etape label.cx-case { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.cx-case input { width: auto; }
.cx-bouton:disabled { opacity: .45; cursor: not-allowed; }
.cx-info { margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid var(--navy); background: var(--bg); font-size: .86rem; line-height: 1.5; }
.cx-info[hidden] { display: none; }
.cx-retour-site { display: inline-block; margin-top: 22px; }
.cx-retour-site[hidden] { display: none; }
.cx-note { font-size: .78rem !important; color: var(--muted) !important; }
.cx-secondaire { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.cx-secondaire h2 { font-size: 1.05rem; font-weight: 500; }
.cx-pied { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.cx-pied a { color: var(--muted); }

@media (max-width: 560px) { .p-positions li { grid-template-columns: 1fr; } }

/* Cartographie, stratégie recommandée : une ligne par stratégie, sans couleurs */
.ca-groupes { display: block; }
.ca-groupe { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.35fr); gap: 4px 28px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.ca-groupe h3 { margin: 0; gap: 10px; }
.ca-groupe h3 .strat { color: var(--ink); font-size: .7rem; letter-spacing: .12em; }
.ca-groupe h3 .strat::before { display: none; }
.ca-groupe h3 .muted { font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.ca-groupe > p { font-size: .88rem !important; line-height: 1.5; margin: 0 !important; }
.ca-groupe ul { margin: 0; }
.ca-groupe li { padding: 0 0 10px; border-bottom: 0; }
.ca-groupe li:last-child { padding-bottom: 0; }
.ca-groupe li a { font-size: .95rem !important; font-weight: 600 !important; color: var(--navy); }
.ca-groupe li a:hover { text-decoration: underline; }
.ca-groupe li .muted { font-size: .82rem !important; margin-top: 1px; }
@media (max-width: 760px) { .ca-groupe { grid-template-columns: 1fr; gap: 6px; } }

/* Cartographie, leviers et risques : même typographie que la stratégie recommandée */
.ca-leviers > div > p, .ca-leviers > div > .muted { font-size: .88rem; line-height: 1.5; }
.ca-leviers ul { margin-top: 10px; border-top: 1px solid var(--line); }
.ca-leviers li { padding: 12px 0; }
.ca-leviers li:last-child { border-bottom: 0; }
.ca-leviers .lev { font-size: .95rem; }
.ca-leviers .lev a { font-weight: 600; color: var(--navy); }
.ca-leviers .lev a:hover { text-decoration: underline; color: var(--navy); }
.ca-leviers .fl { color: var(--muted); font-weight: 400; margin: 0 6px; }
.ca-leviers li .muted { font-size: .82rem; margin-top: 2px; }

/* Réseau d'influence (fiche annuaire et cartographie) : même typographie que les autres listes d'acteurs */
.rel-titre { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; }
.ca-rels li { padding: 9px 0; }
.ca-rels li:last-child { border-bottom: 0; }
.ca-rels li > a { font-size: .95rem; font-weight: 600; color: var(--navy); text-decoration: none; margin-right: 6px; }
.ca-rels li > a:hover { text-decoration: underline; }
.ca-rels .rel-tag { font-size: .78rem; font-weight: 500; }
.ca-rels li p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.ca-liens { margin-top: 14px; }
.ca-liens a { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.ca-liens a:hover { color: var(--accent-hover); }

/* Cartographie, panneau de détail : une seule échelle de texte, sans couleurs d'accent */
.ca-scores > div { grid-template-columns: 1fr auto; padding: 11px 0; }
.ca-scores span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ca-scores strong, .ca-scores strong.pill-al { font-size: .8rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.ca-scores strong::first-letter, .ca-scores em::first-letter { text-transform: uppercase; }
.ca-scores > div { align-items: baseline; }
.ca-scores em { font-size: .78rem; margin-top: 2px; }
.ca-detail .ca-strat .strat { color: var(--ink); font-size: .7rem; letter-spacing: .12em; }
.ca-detail .ca-strat .strat::before { display: none; }
.ca-detail .ca-strat p { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.ca-raisons li { font-size: .88rem; line-height: 1.5; padding: 8px 0; }
.ca-raisons li strong { font-weight: 600; }
.ca-raisons .v, .ca-raisons .v.v1, .ca-raisons .v.v-1, .ca-raisons .v.v0 { color: var(--muted); font-size: .62rem; letter-spacing: .1em; }
.ca-int-barres li { font-size: .85rem; }
.ca-int-barres .niv { font-weight: 600; font-size: .82rem; }

/* Panneau de détail : chaque partie séparée par un filet et un espace */
.ca-detail > h3 { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px !important; margin-bottom: 10px !important; }
.ca-detail .ca-strat { padding: 14px 0 0; }
.ca-raisons li:last-child { border-bottom: 0; padding-bottom: 0; }
.ca-int-barres li { padding: 5px 0; }

/* Barre « Profil client » : une seule barre blanche, commandes en texte séparées par des filets */
.profile-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.06);
  padding: 4px 6px 4px 18px; gap: 0; min-height: 50px;
}
.profile-bar .profile-select { gap: 12px; padding-right: 8px; }
.profile-bar .profile-select span { font-size: .66rem; letter-spacing: .12em; }
.profile-bar .profile-select select {
  border: 0; background-color: transparent; font-weight: 600; font-size: .9rem; color: var(--navy);
  padding: 8px 30px 8px 4px; background-position: right 8px center; cursor: pointer;
}
.profile-bar .profile-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.profile-bar .btn-filters {
  border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none;
  font-weight: 500; font-size: .86rem; color: var(--ink); padding: 8px 18px; min-height: 30px;
}
.profile-bar .btn-filters:hover, .profile-bar .btn-filters[aria-expanded="true"] { color: var(--accent-hover); border-color: var(--line); }
.profile-bar .btn-filters svg { width: 15px; height: 15px; color: var(--muted); }
.profile-bar .btn-filters .count:not(:empty) { min-width: 18px; height: 18px; font-size: .66rem; padding: 0 5px; }
.profile-bar .profile-summary { flex: 1 1 280px; min-width: 0; text-align: right; padding: 8px 12px 8px 18px; border-left: 1px solid var(--line); font-size: .8rem; }
.profile-bar .legende-prio { margin-left: 12px; padding-left: 0; border-left: 0; }
@media (max-width: 760px) {
  .profile-bar { padding: 8px 12px; row-gap: 4px; }
  .profile-bar .profile-select { width: 100%; justify-content: space-between; }
  .profile-bar .btn-filters:first-of-type { border-left: 0; padding-left: 0; }
  .profile-bar .profile-summary { text-align: left; margin-left: 0; width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 8px 0 4px; }
}

/* =======================================================================
   Règle d'ensemble : les étiquettes en texte sont grises, sans pastille.
   La couleur est réservée aux graphiques (carte, carte miniature, calendrier).
   ======================================================================= */
.strat, .strat-mobiliser, .strat-convaincre, .strat-contrer, .strat-activer, .strat-informer, .strat-surveiller, .strat-a-qualifier,
.influence, .influence-forte, .influence-moyenne, .influence-faible, .influence-non-evaluee,
.pos-pill, .pos-favorable .pos-pill, .pos-defavorable .pos-pill, .pos-nuancee .pos-pill, .pos-inconnue .pos-pill,
.role, .role-allie, .role-opposant, .role-cite,
.statut, .statut-brouillon, .statut-relu, .statut-publie,
.db-pos-badge, .db-pos-favorable, .db-pos-defavorable, .db-pos-nuancee,
.badge-prio, .ca-raisons .v, .p-positions .v {
  color: var(--muted) !important; background: none !important; border: 0 !important; padding: 0 !important;
}
.strat::before, .influence::before, .pos-pill::before, .role::before, .statut::before, .db-pos-badge::before { display: none !important; }
.type, .type.t0, .type.t1, .type.t2, .type.t3, .type.t4, .type.t5, .type.t6, .type.t7, .type.t8 { color: var(--muted) !important; }
.db-strats .strat, .ca-groupe h3 .strat, .ca-detail .ca-strat .strat { color: var(--ink) !important; }

/* Fiche de l'annuaire : en-tête moins massif, lien vers la cartographie en texte simple */
.fiche-head h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
.ca-badge { background: none; border: 0; border-radius: 0; padding: 0; margin-top: 10px; font-size: .85rem; color: var(--muted); text-decoration: none; }
.ca-badge .strat { color: var(--ink) !important; margin: 0 2px; }
.ca-badge:hover { color: var(--accent-hover); text-decoration: underline; }

/* Fiche annuaire, positionnement : plus d'air entre et dans les colonnes */
.pos-grid { gap: 8px 44px; }
.pos { padding: 18px 0 16px; }
.pos header { gap: 4px 14px; margin-bottom: 10px; }
.pos h4 { font-size: .98rem; line-height: 1.35; }
.pos-interet { margin: 0 0 10px; }
.pos p { line-height: 1.6; }
.pos-source { margin-top: 10px; line-height: 1.5; }
.pos-grid + p, .pos-grid + .muted { margin-top: 14px; }

/* Positionnement : étiquette de position sur la ligne du domaine, et rangées alignées
   d'une colonne à l'autre (titre, intérêt, résumé, source, historique) */
.pos header { grid-template-columns: 1fr auto; align-items: baseline; }
.pos-dossier { grid-column: 1; grid-row: 1; }
.pos header .pos-pill { grid-column: 2; grid-row: 1; }
.pos header h4 { grid-column: 1 / -1; grid-row: 2; }
@supports (grid-template-rows: subgrid) {
  .pos-grid { row-gap: 0; }
  .pos { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; align-content: start; }
  .pos > * { margin: 0 !important; }
}

/* Réseau d'influence : une seule liste, sens de la relation dans une colonne à gauche */
.reseau-liste li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.rel-sens { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.reseau-liste li > div > a { font-size: .95rem; font-weight: 600; color: var(--navy); text-decoration: none; margin-right: 6px; }
.reseau-liste li > div > a:hover { text-decoration: underline; }
.ca-detail .reseau-liste li { grid-template-columns: 1fr; gap: 2px; }
@media (max-width: 560px) { .reseau-liste li { grid-template-columns: 1fr; gap: 2px; } }

/* =======================================================================
   Graisse : le gras est réservé aux petites capitales des titres de section.
   Titres, noms et valeurs passent en demi-graisse légère (500), le texte en normal.
   ======================================================================= */
strong, b { font-weight: 600; }
.pos h4, .briefings-list strong, .br-item strong, .db-une-titre, .db-mini strong,
.pos-interet strong, .ca-int-barres .niv, .ca-scores strong, .ca-scores strong.pill-al,
.ca-raisons li strong, .p-pos-sujet, .p-dossiers h4, .fiche-block dd strong, .ca-base strong,
.br-allies ul li strong, .people strong, .ca-groupe li a, .ca-leviers .lev a, .reseau-liste li > div > a, .ca-rels li > a,
.db-ann-nom, .db-acteur .nom-acteur, .db-pos-titre .nom-acteur, .db-ag-acteur, .nom-acteur, .ann-item strong,
.br-item-acteur, .ca-int tbody th a, .btn-link, .db-titre, .ev h3, .db-strat-n {
  font-weight: 500 !important;
}
.pos h4 { font-size: 1rem; }
.ann-item strong, .ann-item .nom { font-weight: 600 !important; }
.ev-chip { font-weight: 600 !important; }

/* Annuaire : recherche détaillée */
.ann-avance-champs { display: grid; gap: 10px; padding: 4px 2px 14px; }
.ann-avance-champs label { display: grid; gap: 3px; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ann-avance-champs select, .ann-avance-champs input {
  font: 400 .86rem "Inter", system-ui, sans-serif; color: var(--ink); text-transform: none; letter-spacing: 0;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); width: 100%; min-width: 0;
}
.ann-avance-champs select:focus, .ann-avance-champs input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.ann-avance-champs .btn-link { justify-self: start; font-size: .8rem; }

/* Annuaire : répertoire affiché à l'arrivée, avant le choix d'un acteur */
.rep-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rep-head h2 { font-size: 1.35rem; font-weight: 600; }
.rep-head p { font-size: .88rem; margin-top: 4px; }
.rep-groupe { padding: 20px 0 6px; }
.rep-groupe h3 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.rep-liste a {
  display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) minmax(70px, .8fr) 90px; gap: 2px 18px; align-items: baseline;
  padding: 11px 6px; margin: 0 -6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 3px;
}
.rep-liste li:last-child a { border-bottom: 0; }
.rep-liste a:hover { background: #f4f6fa; }
.rep-liste a:hover .rep-nom { color: var(--accent-hover); }
.rep-liste a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rep-nom { font-size: .95rem; font-weight: 500; color: var(--navy); }
.rep-fonction, .rep-lieu { font-size: .84rem; color: var(--muted); }
.rep-liste .influence { justify-self: end; }
.fiche-retour { margin: 0 0 14px; }
.fiche-retour a { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.fiche-retour a:hover { color: var(--accent-hover); }
.fiche-retour { display: flex; justify-content: space-between; gap: 16px; }
.fiche-retour a.fiche-modifier { color: var(--navy); }
@media (max-width: 760px) {
  .rep-liste a { grid-template-columns: 1fr auto; }
  .rep-fonction, .rep-lieu { grid-column: 1 / -1; }
  .rep-liste .influence { grid-column: 2; grid-row: 1; }
}

/* Répertoire : un filet au-dessus et au-dessous de chaque acteur, même seul dans son groupe */
.rep-liste a { border-bottom: 0; border-top: 1px solid var(--line); }
.rep-liste li:last-child a { border-bottom: 1px solid var(--line); }
.rep-groupe h3 { margin-bottom: 10px; }
@media (min-width: 901px) { .annuaire > .fiche:has(.rep-head) { min-height: 0; } }

/* Annuaire : la colonne de gauche devient le panneau de recherche */
.ann-recherche { padding: 18px 18px 14px; }
.ann-recherche-titre { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.ann-recherche .ann-avance-champs { padding: 14px 0 6px; margin-top: 14px; border-top: 1px solid var(--line); }
.ann-recherche .ann-count { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
@media (min-width: 901px) { .ann-recherche { max-height: none; overflow: visible; } }

/* Annuaire : recherche en barre horizontale au-dessus du répertoire ou de la fiche */
body[data-page="annuaire"] .annuaire { grid-template-columns: 1fr; gap: 18px; }
.ann-recherche { position: static; max-height: none; padding: 18px 22px 16px; }
.ann-recherche-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ann-recherche-tete .ann-recherche-titre { margin: 0; }
.ann-recherche .ann-recherche-tete .ann-count { margin: 0; padding: 0; border: 0; }
.ann-recherche .ann-avance-champs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; align-items: end;
  margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line);
}
.ann-champ-libre { grid-column: span 2; }
.ann-champ-libre .search { font-size: .86rem; padding: 7px 10px; }
.ann-recherche .ann-avance-champs .btn-link { grid-column: -2 / -1; justify-self: end; align-self: center; }
@media (max-width: 1000px) { .ann-recherche .ann-avance-champs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .ann-recherche .ann-avance-champs { grid-template-columns: 1fr; }
  .ann-champ-libre { grid-column: auto; }
  .ann-recherche .ann-avance-champs .btn-link { grid-column: auto; justify-self: start; }
}

/* Jauge d'intérêt : trois barres fines et croissantes, comme un indicateur de signal */
.jauge { display: inline-flex; align-items: flex-end; gap: 2px; width: auto !important; height: 12px; vertical-align: -1px; }
.jauge i { flex: none; width: 4px; border-radius: 1px; background: #d9dee6; }
.jauge i:nth-child(1) { height: 5px; }
.jauge i:nth-child(2) { height: 8.5px; }
.jauge i:nth-child(3) { height: 12px; }
.j-faible i:nth-child(1), .j-moyen i:nth-child(-n+2), .j-eleve i { background: var(--navy); }
.pos-interet { gap: 7px; }
.ca-int-barres li { grid-template-columns: 1fr auto 56px; gap: 10px; }
.ca-int-barres .niv { text-align: left; }

/* Bandeau des rubriques : commandes réservées à LBF Impact en lien discret, pas en bouton encadré */
main.dashboard > .dash-head .btn-filters {
  background: none; border: 0; border-radius: 0; padding: 6px 0; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
main.dashboard > .dash-head .btn-filters::before {
  content: ""; width: 13px; height: 13px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
main.dashboard > .dash-head .btn-filters .muted { color: #9fb0c7; font-weight: 500; letter-spacing: .06em; text-transform: none; font-size: .78rem; }
main.dashboard > .dash-head .btn-filters:hover { background: none; border-color: #fff; }
main.dashboard > .dash-head .btn-filters[aria-pressed="true"] { background: none; color: #fff; border-bottom: 2px solid #fff; }
main.dashboard > .dash-head .btn-filters[aria-pressed="true"] .muted { color: #c6d1e1; }
main.dashboard > .dash-head .btn-primary { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 9px 16px; border-radius: 3px; }

/* Mention « Données d'exemple » retirée de l'affichage */
.demo-flag { display: none !important; }

/* Agenda : événements de groupe (chambre, commission) */
.ev-groupe { font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.ev-groupe + .ev-groupe::before, .ev-chip + .ev-groupe::before { content: "·"; margin-right: 12px; color: var(--muted); font-weight: 400; }
.ev-concernes { margin: 8px 0 0 !important; gap: 4px 12px !important; align-items: baseline; font-size: .82rem; }
.ev-concernes-lib { color: var(--muted); }
.ag-jour .ev-chip.ev-chip-petit, .ev-chip.ev-chip-petit { font-size: .84rem !important; font-weight: 500 !important; color: var(--navy); padding: 0; border: 0; }
.ev-concernes .btn-link { font-size: .8rem; }

/* Briefings : index (briefing à la une + liste) puis article en pleine largeur */
.br-page { display: grid; gap: 18px; }
.br-index { padding: 28px 32px 18px; }
.br-une { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.br-une-kicker, .br-l-kicker { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.br-une-date { color: var(--navy); margin-right: 10px; }
.br-une h2 { font-size: 1.6rem; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; margin: 8px 0 8px; max-width: 30ch; text-wrap: balance; }
.br-une h2 a { color: var(--ink); text-decoration: none; }
.br-une h2 a:hover { color: var(--accent-hover); }
.br-une-acteur { font-size: .9rem; font-weight: 500; color: var(--navy); }
.br-une-acteur span { color: var(--muted); font-weight: 400; }
.br-une-bref { font-size: 1rem; line-height: 1.65; color: #2c3442; margin-top: 12px; max-width: 70ch; }
.br-une-lire { display: inline-block; margin-top: 14px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.br-une-lire::after { content: " ›"; font-size: .95rem; }
.br-une-lire:hover { color: var(--accent-hover); }
.br-index-titre { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 24px 0 8px; }
.br-index-liste a {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(120px, 200px); gap: 4px 24px; align-items: baseline;
  padding: 14px 6px; margin: 0 -6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); border-radius: 3px;
}
.br-index-liste li:last-child a { border-bottom: 1px solid var(--line); }
.br-index-liste a:hover { background: #f4f6fa; }
.br-index-liste a:hover .br-l-titre { color: var(--accent-hover); }
.br-index-liste a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.br-l-date { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.br-l-titre { display: block; font-size: 1rem; font-weight: 500; line-height: 1.4; margin-top: 3px; }
.br-l-acteur { font-size: .86rem; font-weight: 500; color: var(--navy); text-align: right; }

.br-article { padding: 22px 32px 36px; min-height: 0 !important; }
.br-tools { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.br-retour, .br-imprimer { font: 700 .7rem "Inter", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.br-retour:hover, .br-imprimer:hover { color: var(--accent-hover); }
.br-lecture { max-width: 760px; margin: 0 auto; }
.br-lecture .br-head h2 { font-size: 2rem; font-weight: 500 !important; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.br-lecture .br-section p, .br-lecture .br-section li { font-size: 1rem; line-height: 1.7; }
@media (max-width: 760px) {
  .br-index, .br-article { padding: 20px 16px; }
  .br-une h2 { font-size: 1.3rem; }
  .br-index-liste a { grid-template-columns: 1fr; }
  .br-l-acteur { text-align: left; }
  .br-lecture .br-head h2 { font-size: 1.5rem; }
}
.br-page > [hidden] { display: none !important; }
.br-lecture .br-acteur { border: 0; border-radius: 0; padding: 0; background: none; margin-top: 14px; }
.br-lecture .br-acteur strong { font-weight: 500; color: var(--navy); }
@media print { .br-index, #br-list { display: none !important; } .br-article { padding: 0; } }
/* Export PDF d'un briefing : en-tête et pied réservés à l'impression */
.br-print-tete, .br-print-pied { display: none; }
@page { size: A4; margin: 16mm 17mm 18mm; }
@page { @bottom-right { content: counter(page) " / " counter(pages); font: 500 8pt "Inter", sans-serif; color: #838383; } }
@media print {
  .br-tools { display: none !important; }
  main.container { width: 100%; margin: 0; padding: 0; }
  .br-print-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid #072854; }
  .br-print-tete img { height: 26px; width: auto; }
  .br-print-tete div { text-align: right; font-size: 8.5pt; line-height: 1.45; color: #5b6474; }
  .br-print-tete strong { display: block; font-size: 8pt; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #072854; }
  .br-lecture { font-size: 10.5pt; }
  .br-lecture h2, .br-lecture h3 { break-after: avoid; }
  .br-lecture section, .br-lecture li, .br-lecture tr { break-inside: avoid; }
  .br-print-pied { display: block; margin-top: 26px; padding-top: 8px; border-top: 1px solid #d6dae1; font-size: 7.5pt; line-height: 1.5; color: #838383; }
}

/* Briefing à la une : texte et points clés à gauche, repères à droite */
.br-une { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; }
.br-une-corps { min-width: 0; }
.br-index-titre.br-une-titre { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.br-une-sous { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 20px 0 8px; }
.br-une-points { margin: 0; padding: 0; }
.br-une-points li { position: relative; padding: 0 0 6px 16px; font-size: .95rem; line-height: 1.6; color: #2c3442; max-width: 70ch; }
.br-une-points li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; background: var(--navy); }
.br-une-pied { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 18px; }
.br-une-pied .br-une-lire { margin: 0; }
.br-une-pied > span { font-size: .8rem; color: var(--muted); }
.br-une-fiche { border-left: 1px solid var(--line); padding-left: 28px; align-self: start; }
.br-une-fiche dl { margin: 0; }
.br-une-fiche dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.br-une-fiche dl > div:first-child { padding-top: 2px; }
.br-une-fiche dl > div:last-child { border-bottom: 0; }
.br-une-fiche dt { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.br-une-fiche dd { margin: 0; display: grid; gap: 2px; }
.br-une-fiche dd strong { font-size: .9rem; font-weight: 500; color: var(--ink); }
.br-une-fiche dd span { font-size: .8rem; color: var(--muted); }
@media (max-width: 900px) {
  .br-une { grid-template-columns: 1fr; }
  .br-une-fiche { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
}

/* Répertoire : l'intitulé de section se distingue des lignes (trait marine, espace au-dessus) */
.rep-groupe { padding: 30px 0 4px; }
.rep-groupe:first-of-type { padding-top: 22px; }
.rep-groupe h3 { margin: 0 !important; padding-bottom: 9px; border-bottom: 2px solid var(--navy); }
.rep-liste li:first-child a { border-top: 0; }

/* Pas de bulles d'initiales : le nom suffit (une photo pourra les remplacer plus tard) */
.avatar, .avatar-sm, .avatar-lg { display: none !important; }
.people li { grid-template-columns: 1fr auto; }
.ag-jour .ev-chip, .ev-chip { font-weight: 500 !important; }
.ag-jour .ev-chip { font-size: 1.08rem; }
.ev-groupe { font-weight: 500; font-size: 1.08rem; }
.ca-qualifier .ev-chip { border: 0; padding: 0; font-size: .92rem; color: var(--navy); }
.ca-qualifier .ev-chip.sel { box-shadow: none; text-decoration: underline; }
.fiche-head { gap: 0; }

/* Résumé des filtres : légende de l'épingle alignée sur la ligne du texte */
.legende-prio { display: inline-flex; align-items: baseline; vertical-align: baseline; }
.legende-prio .star { align-self: center; vertical-align: 0; margin-right: 5px; position: relative; top: 1px; }
.profile-bar .profile-summary { line-height: 1.5; }

/* Sélecteur de client : même graisse et même taille que les commandes voisines */
.profile-bar .profile-select select { font-weight: 500 !important; font-size: .86rem !important; color: var(--ink) !important; }

/* Carte Cartographie du tableau de bord : stratégies en phrases */
.db-strats { display: block !important; margin-top: 12px; border-top: 1px solid var(--line); }
.db-strats li { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.db-strats li:last-child { border-bottom: 0; }
.db-strat-l { font-size: .88rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.db-strat-d { font-size: .8rem; color: var(--muted); text-align: right; }

/* Bandeau d'accueil : composition « suisse » — salutation en haut, une rangée de quatre
   indicateurs alignés à gauche, séparés par des filets, libellé au-dessus du chiffre */
.db-hero { grid-template-columns: 1fr !important; gap: 0 !important; padding: 30px 34px 26px !important; }
.db-hero-main { display: grid !important; grid-template-columns: 1fr auto; align-items: end; gap: 6px 24px; }
.db-hero h1 { grid-column: 1; font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.db-hero-meta { grid-column: 1; grid-row: 2; }
.db-session { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0 !important; padding: 0 0 4px !important; }
.db-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; margin-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.db-kpi { align-items: flex-start !important; text-align: left !important; justify-content: flex-start !important; padding: 16px 20px 4px !important; border: 0 !important; border-left: 1px solid rgba(255,255,255,.22) !important; border-radius: 0 !important; }
.db-kpi:first-child { border-left: 0 !important; padding-left: 0 !important; }
.db-kpi:hover { background: none !important; }
.db-kpi:hover .db-kpi-lbl { color: #fff; }
.db-kpi-lbl { order: -1; font-size: .64rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #aab8cc !important; }
.db-kpi-val { font-size: 2.5rem !important; font-weight: 300; line-height: 1.05; margin: 6px 0 4px; }
.db-kpi-sub { font-size: .76rem !important; color: #9fb0c7 !important; }
.db-kpi::after { content: "→"; margin-top: auto; padding-top: 10px; font-size: .8rem; color: rgba(255,255,255,.35); transition: color .15s, transform .15s; }
.db-kpi:hover::after { color: #fff; transform: translateX(3px); }
@media (max-width: 900px) {
  .db-hero-main { grid-template-columns: 1fr; }
  .db-session { grid-column: 1; grid-row: auto; padding-top: 10px !important; }
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .db-kpi:nth-child(3) { border-left: 0 !important; padding-left: 0 !important; }
  .db-kpi:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22) !important; }
}
@media (prefers-reduced-motion: reduce) { .db-kpi::after { transition: none; } }

/* Bandeaux en bleu acier intermédiaire : ni le marine foncé, ni un fond pâle */
.db-hero, main.dashboard > .dash-head {
  background: var(--navy) !important; color: #fff !important;
  border: 0; border-bottom: 3px solid var(--logo-gris) !important;
}
.db-hero::after, main.dashboard > .dash-head::after { display: none; }
.db-hero h1, main.dashboard > .dash-head h1 { color: #fff !important; }
.db-hero-meta, main.dashboard > .dash-head .lead { color: #fff !important; }
.db-session { color: #fff !important; }
.db-dot { background: #b8c7d9; }
.db-kpis { border-top-color: rgba(255,255,255,.4) !important; }
.db-kpi { color: #fff !important; border-left-color: rgba(255,255,255,.4) !important; }
.db-kpi:nth-child(n+3) { border-top-color: rgba(255,255,255,.4) !important; }
.db-kpi-lbl { color: #fff !important; }
.db-kpi:hover .db-kpi-lbl { color: #fff !important; }
.db-kpi-sub { color: #fff !important; opacity: .9; }
.db-kpi::after { color: #fff; opacity: .7; }
.db-kpi:hover::after { color: #fff; }
main.dashboard > .dash-head .btn-primary { background: #fff !important; color: var(--navy) !important; }
main.dashboard > .dash-head .btn-primary:hover { background: #e4ebf5 !important; }
main.dashboard > .dash-head .btn-filters .muted { color: #fff !important; opacity: .85; }

/* Cartographie, base de calcul : intitulé, note et tableau des positions du client */
.ca-base { padding: 18px 22px 8px !important; }
.ca-base-tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ca-base-titre { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.ca-base-note { font-size: .8rem; color: var(--muted); }
.ca-base .ca-enjeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.ca-base .ca-enjeux li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.ca-enj-sujet { font-weight: 500; color: var(--ink); }
.ca-enj-pos { color: #3b4454; font-weight: 400; }
.ca-enj-sens { font-weight: 700; }
.ca-enj-sens { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }

/* Cartographie sans client : choix structuré du profil et clé de lecture */
.ca-choix { padding: 24px 28px !important; text-align: left !important; }
.ca-choix .ca-base-titre { font-size: .74rem !important; margin: 0 !important; }
.ca-detail .fiche-sub { font-size: .88rem; }
.ca-choix-intro { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ca-choix-intro p { font-size: .9rem; color: var(--muted); margin-top: 6px; max-width: 70ch; }
.ca-choix-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 28px; margin: 0 0 8px; padding: 0; list-style: none; }
.ca-choix-liste button { display: grid; gap: 3px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; cursor: pointer; font: inherit; color: var(--ink); }
.ca-choix-nom { font-size: 1.02rem; font-weight: 500; color: var(--navy); }
.ca-choix-det { font-size: .82rem; color: var(--muted); }
.ca-choix-ouvrir { margin-top: 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.ca-choix-ouvrir::after { content: " ›"; }
.ca-choix-liste button:hover .ca-choix-nom, .ca-choix-liste button:hover .ca-choix-ouvrir { color: var(--accent-hover); }
.ca-choix-liste button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ca-lecture { margin-top: 22px; }
.ca-lecture dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 28px; margin: 10px 0 0; border-top: 1px solid var(--line); }
.ca-lecture dl > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ca-lecture dt { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ca-lecture dd { margin: 0; font-size: .86rem; color: #3b4454; line-height: 1.5; }

/* Cartographie avec client : synthèse dans le panneau tant qu'aucun acteur n'est choisi */
.ca-detail h2 { font-weight: 500 !important; }
.ca-synth { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ca-synth li { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.ca-synth li a { font-weight: 500; color: var(--navy); text-decoration: none; }
.ca-synth li a:hover { text-decoration: underline; }
.ca-synth .muted { font-size: .78rem; }
.ca-synth-aide { margin-top: 14px; font-size: .82rem; color: var(--muted); }

/* Cartographie : leviers et risques en tableaux pleine largeur */
.ca-leviers { display: block !important; padding: 18px 22px 10px !important; }
.lr-bloc + .lr-bloc { margin-top: 26px; }
.lr-scroll { overflow-x: auto; }
.lr-table { width: 100%; border-collapse: collapse; font-size: .88rem; table-layout: fixed; }
.lr-table th:nth-child(1), .lr-table th:nth-child(3) { width: 20%; }
.lr-table th:nth-child(2) { width: 32px; }
.lr-table th:nth-child(4) { width: 20%; }
.lr-table th { text-align: left; font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 8px 0; border-bottom: 1px solid var(--line); }
.lr-table td { vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.lr-table tr:last-child td { border-bottom: 0; }
.lr-nom a { font-weight: 500; color: var(--navy); text-decoration: none; }
.lr-nom a:hover { text-decoration: underline; }
.lr-sous { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.lr-rel { color: var(--ink); }
.lr-fl { color: var(--muted); width: 24px; }
.lr-note { color: #3b4454; line-height: 1.5; }
@media (max-width: 760px) {
  .lr-table thead { display: none; }
  .lr-table tr { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lr-table td { border: 0; padding: 0; }
  .lr-table td:nth-child(4), .lr-note { grid-column: 1 / -1; width: auto; }
}

/* Mode serveur : menu du compte, commandes réservées à l'équipe masquées pour les clients */
.menu-sep { width: 1px; height: 18px; background: var(--line); margin: 0 6px; align-self: center; }
.menu-compte { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-deconnexion { background: none; border: 0; font: inherit; font-size: .88rem; font-weight: 500; color: var(--muted); padding: 21px 12px 18px; cursor: pointer; }
.menu-deconnexion:hover { color: var(--navy); }
/* Outils de modification : réservés aux administrateurs connectés (le serveur refuse de toute façon toute modification d'un autre compte) */
body:not(.role-admin) .equipe-seulement { display: none !important; }
@media (max-width: 900px) {
  .menu-sep { display: none; }
  .menu-deconnexion { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
}

/* Étapes de connexion masquées : l'attribut hidden doit l'emporter sur display */
.cx-etape[hidden] { display: none !important; }

/* Espace d'administration */
.ad-onglets { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow-x: auto; }
.ad-onglets button { white-space: nowrap; }
.ad-aide { color: var(--muted); font-size: .88rem; max-width: 90ch; margin: 0 0 14px; }
.ad-bloc { padding: 18px 22px; margin-bottom: 20px; }
.ad-bloc .ed-form { padding: 0; }
.ad-recherche { font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.ad-recherche:focus, .ad-filtre-acteurs:focus { outline: 2px solid var(--navy); border-color: transparent; }
.ed-item .muted { display: block; font-size: .78rem; }
.ad-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.ad-supprimer { color: var(--red-dark); }
.ad-json { margin-top: 18px; }
.ad-json summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ad-json textarea { margin-top: 8px; font-family: ui-monospace, Menlo, Consolas, monospace !important; font-size: .8rem !important; }
.ad-grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.ad-repetable .ad-lignes { display: grid; gap: 12px; margin-bottom: 10px; }
.ad-repetable > .aide { margin: 0 0 10px; }
.ad-ligne { display: grid; grid-template-columns: 2fr 2fr 1fr 1.6fr auto; gap: 10px 12px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; }
.ad-ligne-pos { grid-template-columns: 2.2fr 1.2fr 1.2fr 1fr auto; }
.ad-ligne-pos .ad-pos-resume { grid-column: 1 / 4; }
.ad-ligne-pos .ad-pos-source { grid-column: 4 / 6; }
.ad-ligne-pos .ad-pos-hist { grid-column: 1 / -1; margin: -2px 0 0; }
.ad-ligne-pos .ad-retirer { grid-column: 5; grid-row: 1; }
.ed-form .ad-ligne label { font-size: .74rem; }
.ad-retirer { color: var(--red-dark); font-size: .78rem; padding-bottom: 9px; }
@media (max-width: 900px) {
  .ad-grille-3, .ad-ligne, .ad-ligne-pos { grid-template-columns: 1fr; }
  .ad-ligne-pos .ad-pos-resume, .ad-ligne-pos .ad-pos-source, .ad-ligne-pos .ad-retirer { grid-column: 1; grid-row: auto; }
}
.ad-cases .checks { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ad-sujets .aide { margin: 0 0 10px; }
.ad-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px 24px; }
.ad-sujet { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-sujet .check { flex: 1; min-width: 0; }
.ed-form .ad-sujet select { width: auto; padding: 3px 6px; font-size: .8rem; }
.ed-form .ad-acteurs input[type="search"] { margin-bottom: 8px; }
.ad-liste-acteurs { max-height: 260px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.ad-liste-acteurs .check[hidden] { display: none; }
.ad-liste-acteurs .muted { font-size: .78rem; }
.ed-form .check { font-weight: 400; flex-direction: row; font-size: .86rem; }
.ed-form .check input { width: auto; }
.ad-provisoire { border: 1px solid var(--line); border-left: 3px solid var(--navy); background: var(--card); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .9rem; }
.ad-mdp { margin: 8px 0; }
.ad-mdp code { font-size: 1.15rem; letter-spacing: .06em; background: var(--bg); padding: 4px 10px; border-radius: 4px; user-select: all; }
.ad-table-zone { overflow-x: auto; }
.ad-table { table-layout: auto; min-width: 720px; }
.ad-table th:nth-child(n) { width: auto; }
.ad-table td strong { display: block; font-weight: 600; }
.ad-table td .muted { display: block; font-size: .8rem; }
.ad-boutons { white-space: nowrap; }
.ad-boutons .btn-link { margin-right: 12px; }
.ad-journal td { font-size: .84rem; }
.ad-guide .panel-title { margin-top: 22px; }
.ad-guide .panel-title:first-child { margin-top: 4px; }
.ad-guide ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; margin-top: 8px; }
.ad-guide li { font-size: .92rem; line-height: 1.6; max-width: 90ch; }
.ad-aide a { color: var(--navy); }
.ad-table-lectures td:first-child { width: 42%; }
.ad-table-lectures td:first-child .muted:first-child { font-size: .74rem; }
.ad-lu { font-variant-numeric: tabular-nums; font-weight: 600; width: 80px; }
.ad-lectures { display: grid; gap: 6px; font-size: .86rem; }
.ad-lectures strong { display: inline; font-weight: 600; margin-right: 8px; }
.ad-lecteur { display: inline-block; margin-right: 12px; }
.ad-table .ad-lecteur .muted { display: inline; font-size: .76rem; margin-left: 4px; }
.ad-parl-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.ad-parl-tete .ad-aide { margin: 6px 0 0; }
.ad-parl-tete .btn-primary { flex-shrink: 0; }
.ad-parl-liste { margin: 6px 0 10px; display: grid; gap: 4px; font-size: .9rem; }
.ad-parl-liste strong { font-weight: 600; display: inline-block; min-width: 2.2em; }
.ad-parlement details { margin-top: 8px; font-size: .86rem; }
.ad-parlement summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.ad-noms { margin-top: 6px; color: var(--muted); line-height: 1.6; max-height: 160px; overflow-y: auto; }
@media (max-width: 700px) { .ad-parl-tete { flex-direction: column; } }
@media (max-width: 900px) {
  .admin-page .editeur { grid-template-columns: 1fr; }
  .admin-page .ed-list { position: static; max-height: 340px; }
  .admin-page .ed-grid { grid-template-columns: 1fr; }
}

/* Historique des positions (fiche d'un acteur) */
.pos-hist { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .84rem; }
.pos-hist summary { cursor: pointer; color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.4; }
.pos-hist ol { margin: 10px 0 0; display: grid; gap: 10px; }
.pos-hist li { padding-left: 10px; border-left: 2px solid var(--line); }
.pos-hist-date { color: var(--muted); font-size: .74rem; }
.pos-hist-sens { margin-left: 8px; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pos-hist-texte { display: block; margin-top: 2px; line-height: 1.45; }

/* Page d'aide */
.aide-menu { display: flex; }
.aide-corps { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.aide-sommaire { position: sticky; top: 84px; }
.aide-sommaire ol { display: grid; gap: 2px; margin-top: 6px; }
.aide-sommaire a { display: block; padding: 5px 0; font-size: .88rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.aide-sommaire a:hover { color: var(--navy); }
.aide-texte { padding: 8px 32px 28px; }
.aide-texte section { padding: 22px 0 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.aide-texte section:last-child { border-bottom: 0; }
.aide-texte h2 { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.aide-texte p, .aide-texte li { font-size: .94rem; line-height: 1.65; max-width: 75ch; }
.aide-texte p + p, .aide-texte p + ul, .aide-texte p + ol, .aide-texte ul + p, .aide-texte ol + p, .aide-texte table + p, .aide-texte p + table { margin-top: 10px; }
.aide-texte ol, .aide-texte ul { padding-left: 20px; }
.aide-texte ol { list-style: decimal; }
.aide-texte ul { list-style: disc; }
.aide-texte strong { font-weight: 600; }
.aide-texte a { color: var(--navy); }
.aide-table { table-layout: auto; max-width: 75ch; }
.aide-table th { width: 120px; font-size: .7rem !important; vertical-align: top; padding-top: 12px !important; color: var(--navy) !important; }
.aide-table td { font-size: .9rem; }
@media (max-width: 900px) {
  .aide-corps { grid-template-columns: 1fr; }
  .aide-sommaire { position: static; }
  .aide-texte { padding: 4px 18px 20px; }
}

/* Colonnes de même hauteur : plus de grands vides à côté d'une colonne courte */

/* Agenda, vue mois : sobre, comme le calendrier du tableau de bord */
.cal-nav h2 { font-weight: 500; }
.cal-jour { background: none; font-size: .64rem; letter-spacing: .08em; text-align: center; }
.cal-case.auj { background: #f4f6fa; }
.cal-case.auj .cal-num { background: none; color: var(--navy); border: 1.5px solid var(--navy); }
.cal-ev { background: none; border-left: 0; padding: 1px 2px; color: var(--ink); }
.cal-ev::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 5px; vertical-align: 1px; }
.cal-ev:hover { filter: none; color: var(--accent-hover); text-decoration: underline; }
.cal-ev b, .cal-ev strong { font-weight: 700; color: var(--muted); }

/* Agenda (rubrique) : une carte par jour, engagements en lignes séparées
   par des filets, comme l'agenda du tableau de bord */
.ag-jour { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(16,24,40,.08); padding: 18px 22px 4px; margin-bottom: 16px; }
.ag-jour h2 { font-size: 1.02rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink); border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin: 0; }
.ag-jour h2 .auj { background: none; color: var(--accent); padding: 0; border-radius: 0; margin-right: 8px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px; }
.ag-jour h2 .auj::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.ag-jour .ev { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 0; margin: 0; grid-template-columns: 72px 1fr; gap: 14px; }
.ag-jour .ev:last-child { border-bottom: 0; }
.ag-jour .ev.selected { outline: 0; background: #f4f6fa; margin: 0 -22px; padding: 16px 22px; }
.ag-jour .ev-time { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 9px; font-variant-numeric: tabular-nums; }
.ag-jour .ev-time span { font-size: .7rem; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.ag-jour .ev-acteurs { gap: 4px 18px; margin: 0 0 6px; }
.ag-jour .ev-chip { border: 0; padding: 0; border-radius: 0; background: none; font-size: 1.15rem; color: var(--ink); }
.ag-jour .ev-chip .avatar-sm { width: 28px; height: 28px; font-size: .72rem; margin-right: 8px; }
.ag-jour .ev-chip:hover { color: var(--accent-hover); text-decoration: underline; }
.ag-jour .ev-activite { border-top: 0; padding-top: 0; }
.ag-jour .ev-tags { gap: 4px 6px; margin-bottom: 2px; }
.ag-jour .ev-tags .type { font-size: .66rem; letter-spacing: .1em; margin: 0; }
.ag-jour .ev-sujet { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ag-jour .ev h3 { font-size: .98rem; font-weight: 500; color: #2c3442; margin: 2px 0 2px; }
.ag-jour .ev .detail, .ag-jour .ev-activite > .muted { font-size: .8rem; }
@media (max-width: 760px) {
  .ag-jour { padding: 16px 16px 2px; }
  .ag-jour .ev { grid-template-columns: 1fr; gap: 2px; }
  .ag-jour .ev.selected { margin: 0 -16px; padding: 16px; }
  .ag-jour .ev-time { padding-top: 0; }
}

@media (min-width: 901px) {
  .ca-grid { align-items: stretch; }
  .ca-grid > .ca-detail { position: relative; top: auto; contain: size; overflow-y: auto; min-height: 520px; }
  .annuaire > .fiche { min-height: calc(100vh - 92px); }
}

@media (max-width: 1100px) {
  .db-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "hero hero" "brief carto" "pos pos" "fil ann" "agenda agenda" "conseil conseil";
  }
  .db-feed { flex: none; max-height: 520px; }
}
@media (max-width: 760px) {
  .db-grid { grid-template-columns: 1fr; grid-template-areas: "hero" "brief" "carto" "agenda" "pos" "fil" "ann" "conseil"; gap: 14px; }
  .db-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .db-kpi-val { font-size: 1.9rem; }
  .db-card { padding: 18px 16px; }
  .db-cal-wrap { grid-template-columns: 1fr; gap: 18px; }
  .db-feed li, .db-mini li { grid-template-columns: 62px 1fr; }
}
@media (max-width: 760px) { main.dashboard > .dash-head { padding: 22px 18px; } }
@media (prefers-reduced-motion: reduce) { .db-kpi, .db-card * { transition: none !important; } }

@media print {
  .appbar, .site-footer, #profile-zone, .ann-list, .breadcrumb, .dash-head, .br-tools, .back-to-list, .fiche-warning { display: none !important; }
  body { background: #fff; }
  .annuaire { display: block; }
  .fiche { border: 0; box-shadow: none; padding: 0; }
  .br-enBref, .br-recommandations { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
}
@media (max-width: 900px) {
  .build-grid, .filters-panel, .dialog-body, .annuaire, .editeur, .ca-grid { grid-template-columns: 1fr; }
  .ca-detail { position: static; }
  .ca-leviers, .fiche-reseau { grid-template-columns: 1fr; }
  .ed-list { position: static; max-height: 360px; }
  .ed-grid { grid-template-columns: 1fr 1fr; }
  .ann-list { position: static; max-height: 420px; }
  .back-to-list { display: block; }
  .sujet-groups { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 0 16px 8px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(16, 24, 40, .08); }
  .menu.open { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
  .menu a.active { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .canton-chips { grid-template-columns: repeat(7, 1fr); }
  .fiche { padding: 18px; }
  .ed-grid { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 1fr; gap: 4px; }
  .ev-time { display: flex; gap: 6px; align-items: baseline; }
  .cal-case { min-height: 64px; }
  .cal-ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; background: var(--c); }
  .cal-ev b { display: none; }
  .allie-row { grid-template-columns: 1fr 32px; }
  .allie-row > * { grid-column: 1; }
  .allie-row .btn-icone { grid-column: 2; grid-row: 1; }
  .ed-form, .ed-apercu { padding: 16px; }
  .fiche-grid { grid-template-columns: 1fr; }
  .fiche-block dl { grid-template-columns: 1fr; gap: 2px; }
  .fiche-block dd { margin-bottom: 8px; }
  .liens thead { display: none; }
  .liens td { display: block; padding: 2px 0; border: 0; }
  .liens tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .fiche-head { gap: 12px; }
  .avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }
  .profile-select { flex-wrap: wrap; width: 100%; }
  .profile-select select { width: 100%; }
}
