:root {
  --forest: #173f36;
  --forest-deep: #0f3029;
  --forest-mid: #28584a;
  --forest-soft: #e8f0eb;
  --cream: #f5f3ed;
  --paper: #fffefa;
  --ink: #20302c;
  --muted: #70807a;
  --line: #e3e8e4;
  --terracotta: #d16443;
  --terracotta-soft: #faebe5;
  --gold: #c99a48;
  --gold-soft: #f7f0df;
  --danger: #b84e3b;
  --shadow: 0 16px 46px rgba(34, 55, 48, .09);
}

* { box-sizing: border-box; }
html { background: var(--cream); color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
input, select, textarea { color: var(--ink); }
input::placeholder, textarea::placeholder { color: #9ca9a4; }
[hidden] { display: none !important; }
.app-shell { min-height: 100vh; }

.ui-icon { width: 26px; height: 26px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 9px; font-size: 15px; font-style: normal; font-weight: 700; line-height: 1; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 7px 22px; color: #fff; }
.brand-mark { position: relative; width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.26); border-radius: 16px 16px 16px 5px; background: linear-gradient(145deg,#346c59,#1e4d40); box-shadow: inset 0 1px rgba(255,255,255,.16); }
.brand-mark b { font-size: 12px; letter-spacing: .06em; }
.brand-mark i { position: absolute; right: 5px; bottom: 5px; width: 10px; height: 10px; border-radius: 10px 0 10px 0; background: #ddb367; transform: rotate(-7deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: #a9beb6; font-size: 9px; letter-spacing: .075em; text-transform: uppercase; }
.brand-light { padding: 0; }
.brand-light .brand-mark { background: rgba(255,255,255,.1); }
.brand-light small { color: rgba(255,255,255,.6); }

.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 278px; display: flex; flex-direction: column; padding: 25px 19px 18px; overflow-y: auto; color: #fff; background: var(--forest-deep); }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-eyebrow { display: block; padding: 0 11px 7px; color: #7f9a90; font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.bureau-eyebrow { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.main-nav a { position: relative; min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 6px 11px; border-radius: 12px; color: #b9c9c3; font-size: 12px; transition: color .2s, background .2s, transform .2s; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(2px); }
.main-nav a.active { color: #fff; background: #234f42; box-shadow: inset 3px 0 #d9ae63; }
.main-nav a .ui-icon { color: #91aba1; }
.main-nav a.active .ui-icon { color: #f2c879; background: rgba(242,200,121,.09); }
.main-nav em { width: 20px; height: 20px; display: grid; place-items: center; margin-left: auto; border-radius: 50%; color: #fff; background: var(--terracotta); font-size: 9px; font-style: normal; }
.sidebar-logout { display: flex; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid rgba(255,255,255,.09); color: #9fb4ac; font-size: 10px; }
.sidebar-logout:hover { color: #fff; }

.main-panel { min-height: 100vh; margin-left: 278px; }
.topbar { position: sticky; z-index: 35; top: 0; height: 73px; display: flex; justify-content: flex-end; align-items: center; padding: 0 42px; border-bottom: 1px solid rgba(220,226,221,.8); background: rgba(250,249,245,.9); backdrop-filter: blur(14px); }
.topbar-actions { display: flex; align-items: center; gap: 13px; }
.notification-button { position: relative; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; color: #60726b; background: #fff; }
.notification-button i { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; background: var(--terracotta); }
.profile-button { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#2f6453,#153f35); font-size: 11px; font-weight: 750; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 11px; }.profile-copy small { margin-top: 3px; color: #8a9893; font-size: 9px; }
.mobile-menu, .mobile-brand, .mobile-bottom-nav, .menu-scrim { display: none; }
.content-wrap { max-width: 1420px; margin: 0 auto; padding: 35px 42px 105px; }

.page-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.page-kicker span { width: 18px; height: 1px; background: var(--gold); }
.page-kicker p { margin: 0; color: #82908b; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.welcome-row, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.welcome-row h1, .section-heading h1 { margin: 0; color: #1b332d; font-size: clamp(27px, 3vw, 34px); line-height: 1.08; letter-spacing: -.045em; }
.welcome-row > div > p:last-child, .section-heading > div > p:last-child { max-width: 700px; margin: 8px 0 0; color: #788681; font-size: 12px; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 15px; border: 1px solid transparent; border-radius: 12px; font-size: 10px; font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--forest); box-shadow: 0 10px 24px rgba(23,63,54,.16); }
.button.accent { color: #fff; background: var(--terracotta); box-shadow: 0 10px 24px rgba(209,100,67,.2); }
.button.secondary { border-color: var(--line); color: var(--forest); background: #fff; }
.button.wide { width: 100%; }

.urgent-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid #f0d5cb; border-radius: 17px; background: linear-gradient(90deg,#fff7f3,#fffaf6); }
.urgent-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: var(--terracotta); background: var(--terracotta-soft); font-weight: 800; }
.urgent-banner small { display: block; margin-bottom: 3px; color: var(--terracotta); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.urgent-banner strong { font-size: 11px; }.urgent-banner p { margin: 4px 0 0; color: #806f69; font-size: 9px; }.urgent-banner a { color: var(--terracotta); font-size: 9px; font-weight: 750; }
.summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.summary-card, .panel, .standard-panel { border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 7px 25px rgba(45,68,60,.035); }
.summary-card { min-width: 0; padding: 17px 18px 14px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.soft-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--forest-soft); }
.soft-icon.gold { color: #9f752e; background: var(--gold-soft); }.soft-icon.terracotta { color: var(--terracotta); background: var(--terracotta-soft); }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 750; white-space: nowrap; }
.status.success { color: #2e705c; background: #e8f3ed; }.status.warning { color: #a36e22; background: #f8eed8; }.status.danger { color: #af4e39; background: #fbe8e3; }.status.neutral { color: #65736f; background: #edf1ef; }
.summary-card > small { display: block; color: #7a8983; font-size: 9px; }
.amount-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 5px; }.amount-row strong { font-size: 24px; letter-spacing: -.05em; }.amount-row span { color: #9a7468; font-size: 8px; text-align: right; }
.summary-card > a { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf0ee; color: #36584f; font-size: 9px; font-weight: 700; }
.date-lockup { display: flex; align-items: center; gap: 10px; margin-top: 6px; }.date-lockup > strong { color: #9b742f; font-size: 27px; line-height: 1; }.date-lockup span { padding-left: 10px; border-left: 1px solid #e8e3d6; }.date-lockup b, .date-lockup small { display: block; }.date-lockup b { font-size: 10px; }.date-lockup small { max-width: 190px; margin-top: 4px; color: #8b9792; font-size: 8px; }
.document-count { display: flex; align-items: center; gap: 12px; margin-top: 5px; }.document-count strong { font-size: 28px; }.document-count span { color: var(--muted); font-size: 9px; line-height: 1.4; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(285px,.8fr); gap: 16px; margin-top: 16px; }
.panel-title, .standard-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px 13px; }
.panel-title span, .standard-panel-head span, .table-toolbar > div > span { display: block; margin-bottom: 3px; color: #9a7a40; font-size: 7px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-title h2, .standard-panel-head h2, .table-toolbar h2 { margin: 0; font-size: 13px; }.panel-title a { color: #547068; font-size: 8px; font-weight: 700; }
.notice-list { padding: 0 10px 9px; }.notice-list article { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 11px 9px; border-top: 1px solid #edf0ee; }
.notice-thumb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #39715e; background: #e4f0ea; }.notice-thumb.urgent, .notice-thumb.securite { color: var(--terracotta); background: var(--terracotta-soft); }.notice-thumb.travaux { color: #9c742f; background: var(--gold-soft); }
.notice-meta { display: flex; gap: 9px; }.notice-meta span { color: #3d7160; font-size: 7px; font-weight: 800; text-transform: uppercase; }.notice-meta time { color: #98a39f; font-size: 7px; }
.notice-list h3 { margin: 4px 0 3px; font-size: 10px; }.notice-list p { margin: 0; color: #778680; font-size: 8px; line-height: 1.5; }
.timeline { padding: 2px 17px 14px; }.timeline > div { display: grid; grid-template-columns: 32px 13px 1fr; gap: 9px; min-height: 58px; }.timeline time { display: flex; flex-direction: column; align-items: center; color: #9c7631; font-size: 7px; font-weight: 750; }.timeline time b { font-size: 15px; }.timeline i { position: relative; width: 1px; height: 100%; background: #dfe6e2; }.timeline i:before { content: ""; position: absolute; top: 4px; left: -3px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: #6f9889; box-shadow: 0 0 0 1px #6f9889; }.timeline p { margin: 0; }.timeline strong, .timeline small { display: block; }.timeline strong { font-size: 9px; }.timeline small { margin-top: 4px; color: #8b9893; font-size: 8px; }
.bureau-pulse { display: grid; grid-template-columns: minmax(230px,1fr) repeat(3,130px); gap: 10px; align-items: center; margin-top: 16px; padding: 15px 18px; border-radius: 18px; color: #fff; background: linear-gradient(120deg,var(--forest-deep),var(--forest-mid)); }.bureau-pulse > div span { color: #c9d9d3; font-size: 8px; text-transform: uppercase; }.bureau-pulse h2 { margin: 4px 0 0; font-size: 14px; }.bureau-pulse > a { min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid rgba(255,255,255,.13); }.bureau-pulse a strong { font-size: 17px; }.bureau-pulse a small { color: #bdd0c8; font-size: 8px; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.news-card { min-height: 220px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }.news-card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 13px; color: var(--forest); background: var(--forest-soft); }.news-card-icon.urgent, .news-card-icon.securite { color: var(--terracotta); background: var(--terracotta-soft); }.news-card-icon.travaux { color: #9c742f; background: var(--gold-soft); }.news-meta { display: flex; gap: 9px; }.news-meta span { color: #477966; font-size: 7px; font-weight: 800; text-transform: uppercase; }.news-meta time { color: #9aa5a1; font-size: 7px; }.news-card h2 { margin: 8px 0; font-size: 15px; line-height: 1.25; }.news-card p { color: #6e7e78; font-size: 10px; line-height: 1.65; }.news-card > small { color: #9ba6a2; font-size: 8px; }
.dues-stack { display: grid; gap: 14px; margin-bottom: 16px; }.due-card { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }.due-card > div:first-child > small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }.due-card h2 { margin: 4px 0 3px; font-size: 25px; }.due-card p { margin: 0; color: var(--muted); font-size: 9px; }.due-progress { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 15px; }.due-progress span { color: var(--muted); font-size: 8px; }.due-progress span b { display: block; color: var(--ink); font-size: 12px; }.due-progress progress { grid-column: 1/-1; width: 100%; height: 6px; border: 0; border-radius: 6px; overflow: hidden; background: #e8ece9; }.due-progress progress::-webkit-progress-bar { background: #e8ece9; }.due-progress progress::-webkit-progress-value { background: var(--forest-mid); }.due-progress progress::-moz-progress-bar { background: var(--forest-mid); }.due-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }.due-card dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }.due-card dd { margin: 3px 0 0; font-size: 9px; }
.notification-list { padding: 0 18px 16px; }.notification-list article { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }.notification-list article > span { color: var(--forest); background: var(--forest-soft); }.notification-list strong { font-size: 10px; }.notification-list p { margin: 4px 0; color: var(--muted); font-size: 9px; line-height: 1.55; }.notification-list small { color: #96a09c; font-size: 8px; }
.two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.event-list, .document-list { padding: 0 16px 16px; }.event-list article { display: grid; grid-template-columns: 52px 1fr; gap: 13px; padding: 14px 2px; border-top: 1px solid var(--line); }.event-list time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 50px; border-radius: 13px; color: #9b742f; background: var(--gold-soft); }.event-list time b { font-size: 18px; }.event-list time span { font-size: 7px; }.event-list h3 { margin: 0 0 4px; font-size: 11px; }.event-list p { margin: 0 0 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }.event-list small { color: #8c9894; font-size: 8px; }.document-list a { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 11px; padding: 13px 2px; border-top: 1px solid var(--line); }.document-list a > span { color: var(--forest); background: var(--forest-soft); }.document-list strong, .document-list small { display: block; }.document-list strong { font-size: 10px; }.document-list small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.safety-callout { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid #f0d5cb; border-radius: 16px; background: #fff7f3; }.safety-callout > span { width: 62px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--terracotta); font-weight: 800; }.safety-callout strong { font-size: 10px; }.safety-callout p { margin: 4px 0 0; color: #806f69; font-size: 9px; }.report-list { padding: 0 18px 16px; }.report-list article { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }.report-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--terracotta); background: var(--terracotta-soft); }.report-meta { display: flex; gap: 10px; }.report-meta span { color: var(--terracotta); font-size: 7px; font-weight: 800; text-transform: uppercase; }.report-meta time { color: #98a39f; font-size: 7px; }.report-list p { margin: 5px 0; font-size: 10px; }.report-list small { color: var(--muted); font-size: 8px; }
.push-enrollment { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 10% 20%,#2d6655 0,transparent 35%), linear-gradient(135deg,#12372f,#1c4d40); box-shadow: 0 16px 36px rgba(18,55,47,.16); }.push-phone { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 15px; color: #173f36; background: #e0bb72; }.push-phone .ui-icon { font-size: 15px; }.push-copy small { color: #ddbd7c; font-size: 7px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.push-copy h2 { margin: 4px 0; color: #fff; font-size: 15px; }.push-copy > p { margin: 0; color: #bfd0ca; font-size: 9px; line-height: 1.5; }.push-copy .push-status { margin-top: 6px; color: #fff; font-weight: 700; }.push-status[data-state="success"] { color: #9de1bf; }.push-status[data-state="warning"] { color: #f4cd82; }.push-status[data-state="error"] { color: #ffb9a5; }.push-copy .ios-push-hint { margin-top: 8px; padding: 8px 10px; border-radius: 9px; color: #f7e5bd; background: rgba(255,255,255,.08); }.push-actions { display: flex; flex-direction: column; gap: 7px; }.push-actions .button { min-width: 154px; }.push-enrollment .button.primary { color: #173f36; background: #e0bb72; }.push-enrollment .button.secondary { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.07); }
.shared-alert-panel { margin-bottom: 16px; }.standard-panel-head .live-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 9px; border-radius: 99px; color: #a74732; background: #fff0eb; font-size: 7px; letter-spacing: .04em; }.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(192,91,66,.13); }.shared-alert-list { padding: 0 18px 16px; }.shared-alert-list article { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }.shared-alert-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--terracotta); }.shared-alert-list p { margin: 5px 0; font-size: 10px; line-height: 1.55; }.shared-alert-list small { color: var(--muted); font-size: 8px; }
.share-alert-option { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px; border: 1px solid #d4e4dc; border-radius: 13px; background: var(--forest-soft); }.share-alert-option input { width: 18px !important; height: 18px; margin-top: 1px; accent-color: var(--forest); }.share-alert-option span { display: grid; gap: 3px; }.share-alert-option strong { color: var(--forest); font-size: 10px; }.share-alert-option small { color: #5e746c !important; font-size: 8px !important; }
.profile-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; }.profile-hero { display: flex; align-items: center; gap: 17px; padding: 24px; border-radius: 20px; color: #fff; background: linear-gradient(140deg,var(--forest-deep),#2d6655); }.profile-avatar { width: 72px; height: 72px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(255,255,255,.1); font-size: 19px; font-weight: 800; }.profile-hero small { color: #b7cdc4; font-size: 8px; text-transform: uppercase; }.profile-hero h2 { margin: 5px 0 9px; font-size: 20px; }.profile-details { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }.profile-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 0 0 20px; }.profile-details dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }.profile-details dd { margin: 4px 0 0; font-size: 10px; font-weight: 650; }.profile-details p { margin: 15px 0 0; color: var(--muted); font-size: 9px; }.narrow-panel { width: min(620px,100%); padding: 24px; }

.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 16px; }.mini-stats article { display: flex; align-items: center; gap: 14px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }.mini-stats article > span { color: var(--forest); font-size: 22px; font-weight: 800; letter-spacing: -.04em; }.mini-stats p { margin: 0; font-size: 10px; font-weight: 700; }.mini-stats small { color: var(--muted); font-size: 8px; font-weight: 500; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 19px; }.search-field { display: flex; align-items: center; gap: 5px; min-width: 260px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.search-field input { width: 100%; padding: 9px 0; border: 0; outline: 0; background: transparent; font-size: 9px; }.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }table { width: 100%; border-collapse: collapse; }th { padding: 11px 13px; color: #83918c; background: #fafbf9; font-size: 7px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }td { padding: 12px 13px; border-top: 1px solid #edf0ee; font-size: 9px; white-space: nowrap; }tbody tr:hover { background: #fbfcfa; }.cell-stack, .cell-stack small { display: block; }.cell-stack small { margin-top: 3px; color: var(--muted); }.table-actions { display: flex; gap: 5px; }.tiny-button { min-height: 30px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: #fff; font-size: 8px; font-weight: 700; cursor: pointer; }.tiny-button:hover { border-color: #b7c8c1; background: var(--forest-soft); }
.admin-action-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 16px; }.admin-action-grid button { display: grid; grid-template-columns: 43px 1fr 28px; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; cursor: pointer; }.admin-action-grid button:hover { border-color: #bdcbc6; transform: translateY(-2px); }.admin-action-grid button > .ui-icon:first-child { width: 43px; height: 43px; color: var(--forest); background: var(--forest-soft); }.admin-action-grid strong, .admin-action-grid small { display: block; }.admin-action-grid strong { font-size: 10px; }.admin-action-grid small { margin-top: 4px; color: var(--muted); font-size: 8px; }.content-admin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }.compact-list { padding: 0 16px 15px; }.compact-list article { display: flex; align-items: center; gap: 10px; padding: 12px 1px; border-top: 1px solid var(--line); }.compact-list article > div { min-width: 0; }.compact-list strong, .compact-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.compact-list strong { font-size: 9px; }.compact-list small { margin-top: 4px; color: var(--muted); font-size: 7px; }.date-chip { min-width: 36px; color: #9b742f; font-size: 9px; font-weight: 800; }
.compact-list article > form { margin-left: auto; }.delete-content-button { width: 29px; height: 29px; border: 1px solid #f0cec5; border-radius: 9px; color: var(--danger); background: #fff7f4; font-size: 17px; line-height: 1; cursor: pointer; }.delete-content-button:hover { color: #fff; background: var(--danger); transform: translateY(-1px); }
.automation-health { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #ead9b7; border-radius: 17px; background: #fffaf0; }
.automation-health > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: #8b6527; background: var(--gold-soft); }
.automation-health.success { border-color: #cfe2d8; background: #f2f8f4; }
.automation-health.success > span { color: var(--forest); background: #deeee5; }
.automation-health small, .automation-health strong { display: block; }
.automation-health small { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.automation-health strong { margin-top: 2px; color: var(--forest); font-size: 17px; }
.automation-health p { margin: 4px 0 0; color: #61716b; font-size: 14px; line-height: 1.5; }
.smtp-settings-panel { margin-bottom: 16px; overflow: hidden; }
.smtp-settings-panel .standard-panel-head { gap: 15px; }
.smtp-status { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 11px; border-radius: 99px; font-size: 12px !important; font-weight: 800; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
.smtp-status i { width: 8px; height: 8px; border-radius: 50%; }
.smtp-status.success { color: #286550; background: #e6f2eb; }
.smtp-status.success i { background: #3c8a6e; box-shadow: 0 0 0 4px rgba(60,138,110,.13); }
.smtp-status.warning { color: #805f27; background: var(--gold-soft); }
.smtp-status.warning i { background: #bb8733; box-shadow: 0 0 0 4px rgba(187,135,51,.13); }
.smtp-settings-body { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(420px,1.25fr); gap: 22px; padding: 20px; border-top: 1px solid var(--line); }
.smtp-explanation { padding: 18px; border: 1px solid #d3e3db; border-radius: 16px; background: var(--forest-soft); }
.smtp-explanation strong { display: block; color: var(--forest); font-size: 18px; }
.smtp-explanation p { margin: 8px 0 12px; color: #587067; font-size: 15px; line-height: 1.6; }
.smtp-explanation small { display: block; color: #49645a; font-size: 13px; overflow-wrap: anywhere; }
.smtp-settings-form { padding: 2px; }
.smtp-admin-note { margin: 0; padding: 16px; border-radius: 14px; color: #6f603f; background: #fff8e9; font-size: 14px; line-height: 1.55; }
.mail-log-panel { margin-bottom: 16px; }
.mail-error-cell { max-width: 360px; color: #64736e; white-space: normal; overflow-wrap: anywhere; }
.rule-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 16px; }.rule-grid article { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }.rule-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--forest-soft); }.rule-grid strong, .rule-grid small { display: block; }.rule-grid strong { font-size: 10px; }.rule-grid small { margin-top: 4px; color: var(--muted); font-size: 8px; }.switch { position: relative; display: block; width: 38px; height: 22px; }.switch input { position: absolute; opacity: 0; }.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d4dad7; cursor: pointer; }.switch span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s; }.switch input:checked + span { background: var(--forest-mid); }.switch input:checked + span:after { transform: translateX(16px); }
.report-admin-grid { display: grid; gap: 13px; }.report-admin-grid > article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }.report-admin-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; }.report-admin-head small { color: var(--muted); font-size: 7px; }.report-admin-head h2 { margin: 4px 0 0; font-size: 12px; }.report-admin-grid > article > p { margin: 14px 0; color: #53655f; font-size: 10px; line-height: 1.6; }.report-foot { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 12px; border-top: 1px solid var(--line); }.report-foot > span { color: var(--muted); font-size: 8px; }.report-foot form { display: flex; align-items: center; gap: 6px; }.report-foot select { padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 8px; }

.form-stack { display: flex; flex-direction: column; gap: 13px; }.form-stack fieldset { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; }.form-stack legend { padding: 0 8px; color: var(--forest); font-size: 9px; font-weight: 800; }.form-stack label { display: flex; flex-direction: column; gap: 6px; color: #3f514b; font-size: 9px; font-weight: 700; }.form-stack input, .form-stack select, .form-stack textarea { width: 100%; padding: 10px 11px; border: 1px solid #dfe5e1; border-radius: 10px; outline: none; background: #fbfcfa; font-size: 10px; }.form-stack input:focus, .form-stack select:focus, .form-stack textarea:focus { border-color: #739588; box-shadow: 0 0 0 3px rgba(58,112,92,.09); }.form-stack textarea { resize: vertical; }.form-stack label small { color: var(--muted); font-size: 7px; font-weight: 500; line-height: 1.45; }.form-grid { display: grid; gap: 10px; }.form-grid.two { grid-template-columns: 1fr 1fr; }.form-grid.three { grid-template-columns: repeat(3,1fr); }
.modal { width: min(540px,calc(100% - 28px)); max-height: calc(100vh - 34px); padding: 27px; border: 0; border-radius: 23px; color: var(--ink); background: #fff; box-shadow: 0 30px 90px rgba(9,34,27,.34); }.modal-wide { width: min(780px,calc(100% - 28px)); }.modal::backdrop { background: rgba(14,39,32,.58); backdrop-filter: blur(5px); }.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }.modal-kicker { color: var(--terracotta); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.modal h2 { margin: 6px 0 7px; font-size: 22px; letter-spacing: -.035em; }.modal > p { margin: 0 0 18px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.flash { position: relative; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 15px; padding: 12px 42px 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); transition: opacity .4s; }.flash > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 11px; font-weight: 800; }.flash p { margin: 3px 0 0; font-size: 9px; line-height: 1.45; }.flash button { position: absolute; top: 8px; right: 9px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }.flash.success { border-color: #cde3d7; }.flash.success > span { color: #2e705c; background: #e8f3ed; }.flash.danger { border-color: #f0ccc2; }.flash.danger > span { color: var(--danger); background: var(--terracotta-soft); }.flash.warning { border-color: #ead9b7; }.flash.warning > span { color: #9b742f; background: var(--gold-soft); }.flash-fade { opacity: .35; }
.empty-state { margin: 0; padding: 24px; color: var(--muted); font-size: 10px; text-align: center; }.empty-copy { color: var(--muted); font-size: 9px; }

.login-body, .install-body { min-height: 100vh; background: #eef1ed; }.login-shell, .installer-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,.9fr) minmax(520px,1.1fr); }.login-visual, .installer-intro { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 44px clamp(35px,5vw,75px); overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 80%,#28594b 0,transparent 36%), linear-gradient(145deg,#0e3028,#173f36 65%,#225244); }.login-message, .installer-intro > div:nth-child(2) { position: relative; z-index: 2; max-width: 570px; }.eyebrow { display: inline-block; color: #e2bb72; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.login-message h1, .installer-intro h1 { max-width: 620px; margin: 12px 0 16px; font-size: clamp(34px,4.1vw,58px); line-height: 1.02; letter-spacing: -.055em; }.login-message p, .installer-intro > div:nth-child(2) > p { max-width: 520px; color: #b7cbc3; font-size: 13px; line-height: 1.7; }.avenues-list { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }.avenues-list span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 99px; color: #bbcec7; background: rgba(255,255,255,.05); font-size: 8px; }.leaf-art { position: absolute; right: -70px; bottom: -85px; width: 450px; height: 450px; opacity: .12; }.leaf-art i { position: absolute; bottom: 30px; left: 210px; width: 9px; height: 400px; border-radius: 10px; background: #edc578; transform-origin: bottom; }.leaf-art i:nth-child(1){transform:rotate(-55deg)}.leaf-art i:nth-child(2){transform:rotate(-23deg)}.leaf-art i:nth-child(3){transform:rotate(18deg)}.leaf-art i:nth-child(4){transform:rotate(52deg)}
.login-card-wrap { display: grid; place-items: center; padding: 40px; }.login-card { width: min(440px,100%); padding: 32px; border: 1px solid rgba(220,226,221,.9); border-radius: 26px; background: rgba(255,255,255,.92); box-shadow: 0 30px 80px rgba(32,55,46,.12); }.login-heading span, .installer-heading > span { color: #a07938; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.login-heading h2, .installer-heading h2 { margin: 7px 0; font-size: 27px; letter-spacing: -.045em; }.login-heading p, .installer-heading p { margin: 0 0 23px; color: var(--muted); font-size: 10px; line-height: 1.55; }.password-field { position: relative; display: block; }.password-field input { padding-right: 64px; }.password-field button { position: absolute; top: 50%; right: 8px; padding: 5px; border: 0; color: var(--forest); background: transparent; font-size: 8px; font-weight: 750; transform: translateY(-50%); cursor: pointer; }.login-help { display: flex; gap: 10px; margin-top: 17px; padding: 13px; border-radius: 13px; background: var(--forest-soft); }.login-help > span { color: var(--forest); }.login-help p { margin: 0; color: #5c7069; font-size: 8px; line-height: 1.55; }.login-help strong { color: var(--forest); }
.login-visual .login-message { margin: auto 0; }
.installer-shell { grid-template-columns: minmax(390px,.8fr) minmax(650px,1.2fr); }.installer-intro { position: sticky; top: 0; align-self: start; }.installer-points { position: relative; z-index: 2; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }.installer-points li { display: flex; align-items: center; gap: 9px; color: #c3d4cd; font-size: 10px; }.installer-points li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #173f36; background: #dfbd77; font-weight: 800; }.installer-card { width: min(780px,calc(100% - 50px)); align-self: center; justify-self: center; margin: 35px 0; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }.alert { margin-bottom: 17px; padding: 13px 15px; border-radius: 12px; font-size: 9px; line-height: 1.5; }.alert.danger { color: #874132; background: var(--terracotta-soft); }.alert ul { margin: 6px 0 0; padding-left: 18px; }.success-lockup { display: flex; align-items: center; gap: 14px; }.success-lockup > span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--forest); font-size: 20px; }.success-lockup small { color: #a07938; font-size: 8px; text-transform: uppercase; }.success-lockup h2 { margin: 5px 0 0; font-size: 24px; }.installer-card > p { color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 1120px) {
  .summary-grid, .news-grid, .content-admin-grid { grid-template-columns: repeat(2,1fr); }
  .summary-card:last-child { grid-column: 1/-1; }
  .admin-action-grid { grid-template-columns: 1fr; }
  .due-card { grid-template-columns: 1fr 1fr; }.due-card dl { grid-column: 1/-1; }
  .bureau-pulse { grid-template-columns: 1fr repeat(3,100px); }
  .login-shell, .installer-shell { grid-template-columns: minmax(340px,.8fr) minmax(480px,1.2fr); }
}

@media (max-width: 900px) {
  body { padding-bottom: 70px; }
  .sidebar { width: min(310px,86vw); transform: translateX(-105%); transition: transform .25s ease; }.menu-open .sidebar { transform: translateX(0); }
  .menu-scrim { position: fixed; z-index: 44; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(8,26,21,.5); transition: opacity .2s,visibility .2s; }.menu-open .menu-scrim { visibility: visible; opacity: 1; }
  .main-panel { margin-left: 0; }.topbar { justify-content: space-between; height: 64px; padding: 0 18px; }.mobile-menu { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }.mobile-brand { display: inline-flex; flex-direction: column; margin-right: auto; margin-left: 12px; color: var(--forest); font-size: 10px; font-weight: 850; }.mobile-brand span { color: var(--muted); font-size: 7px; font-weight: 600; }.profile-copy { display: none; }.content-wrap { padding: 25px 18px 90px; }
  .mobile-bottom-nav { position: fixed; z-index: 40; right: 10px; bottom: 9px; left: 10px; height: 60px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(220,226,221,.9); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 13px 35px rgba(24,55,45,.17); backdrop-filter: blur(12px); }.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #788681; font-size: 7px; }.mobile-bottom-nav a .ui-icon { width: 25px; height: 25px; }.mobile-bottom-nav a.active { color: var(--forest); }.mobile-bottom-nav a.active .ui-icon { color: var(--forest); background: var(--forest-soft); }
  .login-shell, .installer-shell { grid-template-columns: 1fr; }.login-visual, .installer-intro { min-height: 360px; padding: 30px; }.login-message h1, .installer-intro h1 { font-size: 40px; }.login-card-wrap { padding: 25px; }.installer-intro { position: relative; min-height: 430px; }.installer-card { width: calc(100% - 32px); }
  .smtp-settings-body { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .welcome-row, .section-heading { align-items: flex-start; flex-direction: column; }.welcome-row .button, .section-heading > .button, .section-heading > form, .section-heading > form .button { width: 100%; }
  .summary-grid, .dashboard-grid, .two-col-layout, .news-grid, .profile-layout, .mini-stats, .rule-grid, .content-admin-grid { grid-template-columns: 1fr; }.summary-card:last-child { grid-column: auto; }
  .bureau-pulse { grid-template-columns: 1fr 1fr 1fr; }.bureau-pulse > div { grid-column: 1/-1; }.bureau-pulse > a { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .due-card { grid-template-columns: 1fr; }.due-card dl { grid-column: auto; }.profile-details dl { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }.search-field { min-width: 0; width: 100%; }
  .admin-action-grid { grid-template-columns: 1fr; }.report-foot { align-items: flex-start; flex-direction: column; }.report-foot form { width: 100%; }.report-foot select { flex: 1; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }.modal { padding: 23px 19px; }
  .push-enrollment { grid-template-columns: 48px 1fr; }.push-actions { grid-column: 1/-1; flex-direction: row; }.push-actions .button { flex: 1; min-width: 0; }.shared-alert-list article { grid-template-columns: 40px 1fr; }.shared-alert-list article > .status { grid-column: 2; justify-self: start; }
  .installer-card { padding: 22px 18px; }.login-card { padding: 25px 20px; }.login-message h1, .installer-intro h1 { font-size: 34px; }
  .smtp-settings-panel .standard-panel-head { align-items: flex-start; flex-direction: column; }.smtp-settings-body { padding: 15px; }.smtp-status { white-space: normal; }
}

@media (max-width: 480px) {
  .content-wrap { padding-right: 13px; padding-left: 13px; }.topbar { padding: 0 13px; }.notification-button { display: none; }
  .urgent-banner { grid-template-columns: auto 1fr; }.urgent-banner a { grid-column: 2; }.safety-callout { align-items: flex-start; }
  .report-list article, .report-admin-head { grid-template-columns: 40px 1fr; }.report-list article > .status, .report-admin-head > .status { grid-column: 2; justify-self: start; }
  .profile-hero { align-items: flex-start; flex-direction: column; }.due-card dl { grid-template-columns: 1fr; }
}

/* Lisibilité renforcée : texte courant confortable et commandes faciles à toucher. */
body { font-size: 16px; line-height: 1.55; }
.brand strong { font-size: 18px; }
.brand small, .profile-copy small, .mobile-brand span { font-size: 12px; }
.profile-copy strong { font-size: 15px; }
.nav-eyebrow { font-size: 12px; }
.main-nav a { min-height: 48px; font-size: 15px; }
.main-nav em { width: 24px; height: 24px; font-size: 12px; }
.sidebar-logout { min-height: 48px; margin-top: auto; font-size: 15px; }
.avatar { font-size: 13px; }
.page-kicker p, .eyebrow { font-size: 13px; }
.welcome-row > div > p:last-child, .section-heading > div > p:last-child { font-size: 16px; }
.button { min-height: 48px; padding: 12px 17px; font-size: 15px; }
.urgent-banner small, .summary-card > small, .modal-kicker { font-size: 12px; }
.urgent-banner strong { font-size: 16px; }
.urgent-banner p, .urgent-banner a { font-size: 14px; }
.status { font-size: 12px; }
.amount-row span, .summary-card > a, .date-lockup small, .document-count span { font-size: 13px; }
.date-lockup b { font-size: 15px; }
.panel-title span, .standard-panel-head span, .table-toolbar > div > span { font-size: 12px; }
.panel-title h2, .standard-panel-head h2, .table-toolbar h2 { font-size: 18px; }
.panel-title a { font-size: 14px; }
.notice-meta span, .notice-meta time, .news-meta span, .news-meta time, .report-meta span, .report-meta time { font-size: 12px; }
.notice-list h3, .event-list h3, .document-list strong { font-size: 16px; }
.notice-list p, .news-card p, .event-list p { font-size: 15px; }
.timeline time, .event-list time span { font-size: 12px; }
.timeline strong { font-size: 15px; }
.timeline small, .news-card > small, .event-list small, .document-list small { font-size: 13px; }
.bureau-pulse > div span { font-size: 12px; }
.bureau-pulse h2 { font-size: 18px; }
.bureau-pulse a small { font-size: 13px; }
.news-card h2 { font-size: 19px; }
.due-card > div:first-child > small, .due-card p { font-size: 14px; }
.due-progress span, .due-card dt { font-size: 13px; }
.due-progress span b, .due-card dd { font-size: 15px; }
.notification-list strong { font-size: 15px; }
.notification-list p { font-size: 14px; }
.notification-list small { font-size: 13px; }
.safety-callout strong { font-size: 16px; }
.safety-callout p { font-size: 14px; }
.report-list p, .shared-alert-list p { font-size: 15px; }
.report-list small, .shared-alert-list small { font-size: 13px; }
.push-copy small, .standard-panel-head .live-chip { font-size: 12px; }
.push-copy h2 { font-size: 20px; }
.push-copy > p { font-size: 15px; }
.share-alert-option strong { font-size: 15px; }
.share-alert-option small { font-size: 13px !important; }
.profile-hero small, .profile-details dt { font-size: 13px; }
.profile-details dd { font-size: 15px; }
.profile-details p { font-size: 14px; }
.mini-stats p { font-size: 15px; }
.mini-stats small { font-size: 13px; }
.search-field input { min-height: 46px; font-size: 16px; }
th { font-size: 13px; }
td { font-size: 14px; }
.tiny-button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
.admin-action-grid strong, .rule-grid strong { font-size: 15px; }
.admin-action-grid small, .rule-grid small { font-size: 13px; }
.compact-list strong { font-size: 14px; }
.compact-list small { font-size: 12px; }
.date-chip { font-size: 13px; }
.delete-content-button { width: 44px; height: 44px; }
.report-admin-head small { font-size: 13px; }
.report-admin-head h2 { font-size: 19px; }
.report-admin-grid > article > p { font-size: 15px; }
.reporter-trace { display: grid; gap: 3px; margin-top: 14px; padding: 13px 15px; border: 1px solid #d7e4de; border-radius: 13px; background: var(--forest-soft); }
.reporter-trace strong { color: var(--forest); font-size: 16px; }
.reporter-trace span { color: #536b62; font-size: 14px; overflow-wrap: anywhere; }
.report-foot > span { font-size: 14px; }
.report-foot select { min-height: 44px; font-size: 15px; }
.form-stack legend { font-size: 14px; }
.form-stack label { font-size: 15px; }
.form-stack input, .form-stack select, .form-stack textarea { min-height: 48px; padding: 12px 13px; font-size: 16px; }
.form-stack label small { font-size: 13px; }
.modal-close { width: 44px; height: 44px; font-size: 22px; }
.modal > p { font-size: 15px; }
.flash p { font-size: 14px; }
.empty-state, .empty-copy { font-size: 15px; }
.login-heading span, .installer-heading > span { font-size: 13px; }
.login-heading p, .installer-heading p, .installer-card > p { font-size: 15px; }
.password-field button { min-height: 40px; font-size: 14px; }
.login-help p { font-size: 14px; }
.installer-points li { font-size: 15px; }
.alert { font-size: 14px; }
.success-lockup small { font-size: 13px; }
.mobile-brand { font-size: 14px; }

@media (max-width: 900px) {
  body { padding-bottom: 84px; }
  .mobile-menu, .notification-button { width: 44px; height: 44px; }
  .mobile-bottom-nav { height: 72px; }
  .mobile-bottom-nav a { gap: 3px; font-size: 12px; }
  .content-wrap { padding-bottom: 104px; }
}

/* Invitations personnelles, activation et installation de l’application. */
.login-body, .install-body { padding-bottom: 0; }
.invitation-card { width: min(560px,100%); }
.invitation-heading { margin-bottom: 18px; }
.invitation-identity { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px; border: 1px solid #d7e4de; border-radius: 15px; background: var(--forest-soft); }
.invitation-identity > span { color: var(--forest); background: #fff; }
.invitation-identity strong, .invitation-identity small { display: block; }
.invitation-identity strong { font-size: 16px; }
.invitation-identity small { margin-top: 3px; color: var(--muted); font-size: 14px; }
.invitation-activate-button { margin-top: 4px; }
.activation-install-status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.activation-install-status[data-state="success"], [data-install-status][data-state="success"] { color: #2e705c; }
.activation-install-status[data-state="warning"], [data-install-status][data-state="warning"] { color: #98671f; }
.invitation-expiry { margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; text-align: center; }
.invitation-state { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.invitation-state > span { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; color: #fff; background: var(--danger); font-size: 22px; font-weight: 800; }
.invitation-state.warning > span { background: #b77b27; }
.invitation-state small { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.invitation-state h2 { margin: 4px 0 0; font-size: 23px; }
.invitation-explanation { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.invitation-share-panel { margin-bottom: 17px; padding: 20px; border: 1px solid #cfe0d8; border-radius: 19px; background: linear-gradient(135deg,#edf5f0,#fffdf8); box-shadow: 0 12px 30px rgba(31,73,59,.07); }
.invitation-share-heading { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; margin-bottom: 15px; }
.invitation-share-heading small { color: #8c713f; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.invitation-share-heading h2 { margin: 3px 0 0; font-size: 20px; }
.invitation-share-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.invitation-share-panel > label { display: grid; gap: 7px; color: var(--forest); font-size: 14px; font-weight: 750; }
.invitation-share-panel input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cfdcd6; border-radius: 11px; outline: none; background: #fff; font-size: 15px; }
.invitation-share-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.invitation-share-panel > p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.invitation-button { border-color: #b8d2c7; color: #245a49; background: #edf5f0; }
.simple-check-option { min-height: 70px; display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 12px !important; padding: 13px 14px; border: 1px solid #d5e3dc; border-radius: 14px; background: var(--forest-soft); cursor: pointer; }
.simple-check-option input { width: 22px !important; height: 22px !important; min-height: 22px !important; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--forest); }
.simple-check-option span, .simple-check-option strong, .simple-check-option small { display: block; }
.simple-check-option strong { color: var(--forest); font-size: 16px; }
.simple-check-option small { margin-top: 4px; color: #5d716a !important; font-size: 14px !important; line-height: 1.5; }
.invitation-qr-print { display: grid; grid-template-columns: 174px minmax(0,1fr); align-items: center; gap: 20px; margin-top: 16px; padding: 18px; border: 1px solid #d5e2dc; border-radius: 17px; background: #fff; }
.invitation-qr { min-height: 160px; display: grid; place-items: center; padding: 8px; border: 1px solid #e5e9e6; border-radius: 12px; color: var(--muted); background: #fff; font-size: 13px; text-align: center; }
.invitation-qr svg { width: 100%; height: auto; display: block; }
.invitation-print-copy { min-width: 0; }
.invitation-print-copy > small, .invitation-print-copy > strong, .invitation-print-copy > span, .invitation-print-copy > em { display: block; }
.invitation-print-copy > small { color: #9b742f; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.invitation-print-copy > strong { margin: 5px 0; color: var(--forest); font-size: 20px; }
.invitation-print-copy > span { color: #53665f; font-size: 14px; overflow-wrap: anywhere; }
.invitation-print-copy > p { margin: 12px 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.invitation-print-copy > em { color: #80622d; font-size: 13px; font-style: normal; font-weight: 700; }
.edit-member-button { border-color: #d8c9aa; color: #7c5d28; background: #fffaf0; }
.admin-delete-note { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; padding: 15px 17px; border: 1px solid #efc7bd; border-radius: 16px; background: #fff7f4; }
.admin-delete-note > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: #fff; background: var(--danger); font-size: 19px; font-weight: 850; }
.admin-delete-note strong { color: #8f392b; font-size: 16px; }
.admin-delete-note p { margin: 3px 0 0; color: #78645f; font-size: 14px; line-height: 1.5; }
.delete-member-column, .delete-member-cell { text-align: center; }
.delete-member-cell form { margin: 0; }
.tiny-button.delete-member-button { min-width: 142px; border-color: var(--danger); color: #fff; background: var(--danger); box-shadow: 0 7px 18px rgba(184,78,59,.18); }
.tiny-button.delete-member-button:hover { border-color: #903829; color: #fff; background: #903829; transform: translateY(-1px); }
.protected-member-label { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 10px; border-radius: 9px; color: #6f7c77; background: #edf1ef; font-size: 13px; font-weight: 700; }
.table-actions { flex-wrap: wrap; min-width: 390px; }
.member-name { color: var(--forest); }
.member-contact-cell .cell-stack { max-width: 270px; overflow-wrap: anywhere; white-space: normal; }
.member-role-label { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border-radius: 9px; color: #4f625b; background: #f0f3f1; font-size: 13px; font-weight: 750; white-space: normal; }
.member-role-label.super-admin-role { color: #77551c; background: var(--gold-soft); }
.members-table .super-admin-row { background: #fffdf7; }
.form-submit-row { display: flex; flex-wrap: wrap; gap: 9px; }

.mobile-simple-menu { display: none; }
.install-onboarding { overflow: hidden; border: 1px solid #d8e2dc; border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.install-onboarding-hero { display: grid; grid-template-columns: 82px 1fr auto; align-items: center; gap: 19px; padding: 26px; color: #fff; background: radial-gradient(circle at 12% 35%,#36735f 0,transparent 28%), linear-gradient(135deg,#11362e,#1f5142); }
.install-app-icon { width: 78px; height: 78px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.install-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.onboarding-kicker { color: #e5c17c; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.install-onboarding-hero h2 { margin: 5px 0 7px; color: #fff; font-size: 26px; }
.install-onboarding-hero p { margin: 0; color: #c1d2cc; font-size: 15px; line-height: 1.55; }
.onboarding-checklist { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; padding: 24px; }
.onboarding-check { display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }
.onboarding-check > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--forest); font-size: 19px; font-weight: 850; }
.onboarding-check.done { border-color: #cfe1d8; background: #f4faf6; }
.onboarding-check.done > span { color: var(--forest); background: #dcece4; }
.onboarding-check small, .onboarding-check strong { display: block; }
.onboarding-check small { color: #9b742f; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.onboarding-check strong { margin-top: 3px; color: var(--forest); font-size: 19px; }
.onboarding-check p { margin: 7px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.onboarding-main-button { width: 100%; min-height: 58px; margin-top: 15px; font-size: 17px; }
.ios-install-guide, .browser-install-guide { margin: 0 24px 24px; padding: 20px; border: 1px solid #ead9b7; border-radius: 19px; color: #665d4e; background: #fffaf0; }
.install-guide-title { margin-bottom: 14px; }
.install-guide-title span, .install-guide-title strong { display: block; }
.install-guide-title span { color: #a47a32; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.install-guide-title strong, .browser-install-guide > strong { margin-top: 3px; color: #704e18; font-size: 20px; }
.ios-visual-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.ios-visual-steps article { display: grid; grid-template-columns: 48px 1fr; align-items: start; gap: 11px; padding: 15px; border: 1px solid #eadfca; border-radius: 15px; background: #fff; }
.ios-action-symbol { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: #1a5c9a; background: #eef6fd; font-size: 27px; font-weight: 700; }
.ios-action-symbol img { width: 100%; height: 100%; object-fit: cover; }
.ios-visual-steps small, .ios-visual-steps strong { display: block; }
.ios-visual-steps small { color: #9b742f; font-size: 12px; font-weight: 800; }
.ios-visual-steps strong { color: var(--forest); font-size: 16px; }
.ios-visual-steps p, .browser-install-guide p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.iphone-important { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; color: #684f28; background: #f7edda; font-size: 15px; line-height: 1.5; }
.onboarding-push-step { padding: 0 24px; }
.push-enrollment-onboarding { margin-bottom: 24px; }
.onboarding-finish { display: grid; justify-items: center; gap: 9px; padding: 0 24px 26px; text-align: center; }
.onboarding-finish .button { width: min(520px,100%); min-height: 58px; font-size: 17px; }
.onboarding-finish small { color: var(--muted); font-size: 13px; }
.profile-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.profile-password-note, .profile-install-note { margin-top: 4px; padding: 16px; border: 1px solid #d4e3dc; border-radius: 15px; background: var(--forest-soft); }
.profile-install-note { border-color: #ead9b7; background: #fffaf0; }
.profile-password-note strong, .profile-install-note strong { color: var(--forest); font-size: 16px; }
.profile-install-note strong { color: #805f27; }
.profile-password-note p, .profile-install-note p { margin: 5px 0 13px; }

@media (max-width: 900px) {
  .invitation-body { padding-bottom: 0; }
  .invitation-shell { grid-template-columns: 1fr; }
  .invitation-visual { min-height: 330px; }
  .onboarding-checklist { grid-template-columns: 1fr; }
  .ios-visual-steps { grid-template-columns: 1fr; }
  .profile-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .members-table-scroll { padding: 13px; overflow: visible; background: #f6f8f6; }
  .members-table, .members-table tbody, .members-table tr { display: block; width: 100%; }
  .members-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .members-table tbody { display: grid; gap: 14px; }
  .members-table tr { overflow: hidden; border: 1px solid #dce4df; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(35,65,55,.06); }
  .members-table td { width: 100%; display: grid; grid-template-columns: minmax(96px,35%) minmax(0,1fr); align-items: start; gap: 12px; padding: 11px 13px; border-top: 1px solid #e9eeeb; font-size: 15px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
  .members-table td:first-child { border-top: 0; background: #f4f8f5; }
  .members-table td::before { content: attr(data-label); color: #788781; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
  .members-table .member-contact-cell .cell-stack { max-width: none; min-width: 0; }
  .members-table .member-contact-cell small { margin-top: 5px; font-size: 13px; }
  .members-table .member-role-label { justify-self: start; }
  .members-table td.member-actions-cell, .members-table td.delete-member-cell { display: block; }
  .members-table td.member-actions-cell::before, .members-table td.delete-member-cell::before { display: block; margin-bottom: 9px; }
  .members-table .table-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .members-table .table-actions form { width: 100%; margin: 0; }
  .members-table .tiny-button, .members-table .tiny-button.delete-member-button, .members-table .protected-member-label { width: 100%; min-width: 0; justify-content: center; text-align: center; }
  .members-table .protected-member-label { display: flex; }
  .members-table .delete-member-cell { text-align: left; background: #fffaf8; }
}

@media (max-width: 600px) {
  .invitation-card-wrap { padding: 18px 14px; }
  .invitation-card { padding: 24px 18px; }
  .invitation-share-heading, .install-onboarding-hero { grid-template-columns: 58px 1fr; }
  .invitation-share-heading > .status, .install-onboarding-hero > .status { grid-column: 2; justify-self: start; }
  .invitation-share-actions, .form-submit-row { flex-direction: column; }
  .invitation-share-actions .button, .form-submit-row .button { width: 100%; }
  .invitation-qr-print { grid-template-columns: 1fr; text-align: center; }
  .invitation-qr { width: min(220px,100%); justify-self: center; }
  .admin-delete-note { align-items: flex-start; }
  .install-app-icon { width: 58px; height: 58px; border-radius: 17px; }
  .install-onboarding-hero { padding: 19px; }
  .install-onboarding-hero h2 { font-size: 21px; }
  .onboarding-checklist { padding: 14px; }
  .onboarding-check { grid-template-columns: 44px 1fr; padding: 16px; }
  .onboarding-check > span { width: 42px; height: 42px; }
  .ios-install-guide, .browser-install-guide { margin: 0 14px 14px; }
  .onboarding-push-step { padding: 0 14px; }
  .push-enrollment-onboarding { margin-bottom: 14px; }
  .onboarding-finish { padding: 0 14px 20px; }
}

@media (max-width: 480px) {
  .members-table-scroll { padding: 10px; }
  .members-table td { grid-template-columns: 92px minmax(0,1fr); padding: 10px 11px; }
  .members-table .table-actions { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .mobile-simple-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: -6px 0 20px; }
  .mobile-simple-menu a { min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 9px 26px rgba(35,65,55,.07); }
  .mobile-simple-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 15px; color: var(--forest); background: var(--forest-soft); }
  .mobile-simple-icon .ui-icon { font-size: 20px; }
  .mobile-simple-icon.dues { color: #8d682a; background: var(--gold-soft); }
  .mobile-simple-icon.alerts { color: #a94631; background: var(--terracotta-soft); }
  .mobile-simple-icon.documents { color: #315f82; background: #e9f2f8; }
  .mobile-simple-menu strong { color: var(--forest); font-size: 18px; }
  .mobile-simple-menu small { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }
  .push-actions, .push-enrollment-onboarding .push-actions { flex-direction: column; }
}

@media print {
  body.printing-invitation { padding: 0 !important; background: #fff !important; }
  body.printing-invitation * { visibility: hidden !important; }
  body.printing-invitation [data-invitation-print], body.printing-invitation [data-invitation-print] * { visibility: visible !important; }
  body.printing-invitation [data-invitation-print] { position: absolute; inset: 0 auto auto 0; width: 100%; grid-template-columns: 210px 1fr; padding: 28px; border: 0; color: #111; box-shadow: none; }
  body.printing-invitation [data-invitation-print]::before { content: "ASL Le Plan du Bois · Invitation à l’espace coloti"; visibility: visible !important; grid-column: 1/-1; margin-bottom: 22px; color: #173f36; font-size: 22px; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Version 1.6.1 — charte visuelle de la démonstration appliquée au portail réel. */
:root {
  --forest: #19382e;
  --forest-deep: #142d25;
  --forest-mid: #2d6654;
  --forest-soft: #dce9e1;
  --cream: #f5f2ea;
  --paper: #fffefa;
  --ink: #1c2924;
  --muted: #68766f;
  --line: #e4e6df;
  --terracotta: #c44f43;
  --terracotta-soft: #fbe7e4;
  --gold: #d3a84d;
  --gold-soft: #f7ebcf;
  --danger: #c44f43;
  --shadow: 0 18px 50px rgba(32,55,46,.08);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.55; text-rendering: optimizeLegibility; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(211,168,77,.5); outline-offset: 2px; }
.ui-icon { width: 24px; height: 24px; border-radius: 0; font-size: 0; }
.ui-icon svg { display: block; width: 21px; height: 21px; }

.sidebar { width: 278px; padding: 28px 20px 20px; overflow: hidden; background: linear-gradient(165deg,#142d25,#0e241d 72%); }
.brand { gap: 13px; padding: 0 8px; }
.brand-mark { width: 43px; height: 43px; border: 0; border-radius: 13px; color: #142d25; background: var(--gold); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { min-width: 0; }
.brand-copy strong { font-family: Georgia,"Times New Roman",serif; font-size: 19px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
.brand-copy small { margin-top: 1px; color: rgba(255,255,255,.58); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }
.brand-light .brand-mark { color: #142d25; background: var(--gold); }
.brand-light .brand-copy small { color: rgba(255,255,255,.64); }
.secure-pill { display: flex; align-items: center; gap: 8px; width: max-content; margin: 27px 8px 22px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.07); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.secure-pill i { width: 7px; height: 7px; border-radius: 50%; background: #edc766; box-shadow: 0 0 0 4px rgba(237,199,102,.13); }
.main-nav { min-height: 0; flex: 1; gap: 5px; padding-right: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-eyebrow { padding: 0 13px 7px; color: rgba(255,255,255,.42); font-size: 11px; letter-spacing: .12em; }
.bureau-eyebrow { margin-top: 18px; padding-top: 17px; }
.main-nav a { min-height: 49px; gap: 13px; padding: 0 13px; border-radius: 12px; color: rgba(255,255,255,.68); font-size: 15px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 var(--gold); }
.main-nav a .ui-icon { color: rgba(255,255,255,.58); background: transparent; }
.main-nav a.active .ui-icon { color: #f1cb73; background: transparent; }
.main-nav em { width: 23px; height: 23px; font-size: 11px; }
.sidebar-account { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin-top: 15px; padding: 17px 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-account .avatar { width: 39px; height: 39px; border-radius: 12px; color: #142d25; background: var(--gold); font-size: 13px; }
.sidebar-account strong, .sidebar-account small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { color: #fff; font-size: 14px; }
.sidebar-account small { margin-top: 1px; color: rgba(255,255,255,.55); font-size: 11px; }
.sidebar-account .sidebar-logout { min-height: 40px; margin: 0; padding: 8px; border: 0; border-radius: 10px; color: rgba(255,255,255,.58); }
.sidebar-account .sidebar-logout:hover { color: #fff; background: rgba(255,255,255,.08); }

.main-panel { margin-left: 278px; }
.topbar { height: 78px; justify-content: space-between; gap: 24px; padding: 0 38px; border-bottom: 1px solid rgba(28,41,36,.08); background: rgba(245,242,234,.9); backdrop-filter: blur(16px); }
.global-search { position: relative; width: min(430px,44vw); }
.search-box { display: flex; width: 100%; min-height: 46px; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid #dde0d8; border-radius: 13px; color: #819087; background: rgba(255,255,255,.75); }
.search-box .ui-icon { width: 22px; height: 22px; }
.search-box input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.search-box kbd { padding: 2px 7px; border: 1px solid #d9ddd5; border-radius: 6px; color: #98a29c; background: white; font-family: inherit; font-size: 11px; white-space: nowrap; }
.global-search-results { position: absolute; z-index: 80; top: calc(100% + 8px); left: 0; width: min(500px,calc(100vw - 30px)); max-height: min(520px,70vh); padding: 8px; overflow-y: auto; border: 1px solid #dce2dc; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(16,40,31,.18); }
.global-search-results a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; }
.global-search-results a:hover, .global-search-results a:focus-visible { background: #eef5f0; }
.global-search-results a > .ui-icon { color: #2d6654; }
.global-search-results strong, .global-search-results small { display: block; }
.global-search-results strong { font-size: 14px; }
.global-search-results small { color: var(--muted); font-size: 11px; }
.global-search-results > p { margin: 0; padding: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.topbar-actions { gap: 13px; }
.notification-button { width: 46px; height: 46px; border-color: #dfe2da; border-radius: 13px; color: var(--forest); background: rgba(255,255,255,.75); }
.notification-button b { position: absolute; top: -6px; right: -6px; display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid var(--cream); border-radius: 50%; color: #fff; background: var(--terracotta); font-size: 10px; }
.mode-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid #dfe2da; border-radius: 13px; background: rgba(255,255,255,.72); }
.mode-switch a { display: grid; min-height: 36px; place-items: center; padding: 0 14px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.mode-switch a.selected { color: #fff; background: var(--forest); box-shadow: 0 4px 10px rgba(25,56,46,.18); }
.current-space { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border: 1px solid #dfe2da; border-radius: 12px; color: var(--forest); background: rgba(255,255,255,.72); font-size: 13px; font-weight: 800; }
.profile-button .avatar { width: 42px; height: 42px; border-radius: 12px; color: #142d25; background: var(--gold); }
.profile-copy strong { font-size: 14px; }
.profile-copy small { color: var(--muted); font-size: 11px; }
.mobile-menu { color: var(--forest); }
.mobile-logo { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: #142d25; background: var(--gold); }
.mobile-logo svg { width: 22px; height: 22px; }

.content-wrap { width: min(1400px,100%); max-width: none; padding: 28px 38px 46px; }
.section-heading.page-heading { min-height: 88px; align-items: flex-end; margin-bottom: 29px; }
.eyebrow { display: block; color: #2d6654; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading.page-heading h1 { margin: 3px 0 4px; color: var(--ink); font-family: Georgia,"Times New Roman",serif; font-size: clamp(32px,3vw,45px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.section-heading.page-heading > div > p:last-child { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.page-action { flex: 0 0 auto; }
.button { min-height: 48px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 800; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: #245143; box-shadow: 0 7px 18px rgba(36,81,67,.16); }
.button.secondary { border-color: #d8ddd7; color: #245143; background: rgba(255,255,255,.78); }
.button.accent { background: var(--terracotta); box-shadow: 0 7px 18px rgba(196,79,67,.18); }
.panel, .standard-panel, .summary-card { border: 1px solid rgba(28,41,36,.07); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 28px rgba(32,55,46,.045); }

.home-dashboard { display: grid; gap: 22px; }
.welcome-card { position: relative; display: grid; min-height: 290px; grid-template-columns: minmax(0,1.2fr) .8fr; overflow: hidden; padding: 42px 44px; border-radius: 22px; color: #fff; background: linear-gradient(135deg,#19382e,#2d6754); box-shadow: var(--shadow); }
.welcome-copy { position: relative; z-index: 2; align-self: center; }
.soft-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.12); font-size: 12px; font-weight: 700; }
.soft-tag .ui-icon { width: 18px; height: 18px; }
.soft-tag .ui-icon svg { width: 17px; height: 17px; }
.welcome-card h2 { margin: 16px 0 12px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(34px,4vw,53px); font-weight: 500; letter-spacing: -.04em; line-height: 1.02; }
.welcome-card p { max-width: 610px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.welcome-card .button.primary { color: #142d25; background: var(--gold); box-shadow: none; }
.welcome-card .button.secondary { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.08); }
.trees-art { position: absolute; right: 0; bottom: -5px; width: 48%; height: 100%; opacity: .58; }
.trees-art svg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; }
.sun { position: absolute; top: 36px; right: 72px; width: 70px; height: 70px; border-radius: 50%; background: rgba(238,203,119,.55); box-shadow: 0 0 0 17px rgba(238,203,119,.06); }
.coloti-welcome { grid-template-columns: 1fr auto; align-items: center; }
.contribution-orbit { position: relative; z-index: 2; display: flex; width: 210px; height: 210px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.09); box-shadow: 0 0 0 15px rgba(255,255,255,.04); text-align: center; }
.contribution-orbit span { color: rgba(255,255,255,.7); font-size: 13px; }
.contribution-orbit strong { margin: 2px 0 5px; font-family: Georgia,serif; font-size: 43px; font-weight: 500; }
.contribution-orbit em { display: flex; align-items: center; gap: 5px; color: #d9f1df; font-size: 13px; font-style: normal; font-weight: 700; }
.contribution-orbit .ui-icon { width: 18px; height: 18px; }
.contribution-orbit .ui-icon svg { width: 17px; height: 17px; }

.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat-card { display: flex; min-width: 0; min-height: 132px; align-items: center; gap: 15px; padding: 21px; border: 1px solid rgba(28,41,36,.07); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 25px rgba(32,55,46,.04); }
.stat-card:hover { border-color: #ccd8d0; transform: translateY(-1px); }
.stat-icon, .activity-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 14px; }
.green { color: #2d6654; background-color: #dce9e1; }
.amber { color: #9b711a; background-color: var(--gold-soft); }
.blue { color: #4a7890; background-color: #e3eef3; }
.red { color: var(--terracotta); background-color: var(--terracotta-soft); }
.stat-card div { min-width: 0; }
.stat-card div > span { display: block; color: var(--muted); font-size: 13px; }
.stat-card strong { display: block; overflow: hidden; margin: -2px 0 -1px; font-family: Georgia,serif; font-size: 29px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.stat-card small { display: block; overflow: hidden; color: #849088; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); align-items: stretch; gap: 22px; }
.activity-panel, .agenda-panel { padding: 26px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h3 { margin: 2px 0 0; font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.text-link { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; color: #2d6654; font-size: 13px; font-weight: 800; white-space: nowrap; }
.text-link .ui-icon { width: 18px; height: 18px; }
.activity-list { display: grid; }
.activity-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid #eceee8; }
.activity-item:first-child { border-top: 0; }
.activity-icon { width: 39px; height: 39px; border-radius: 11px; }
.activity-item strong { display: block; font-size: 14px; }
.activity-item p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.activity-item time { color: #98a099; font-size: 11px; white-space: nowrap; }
.agenda-date { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.agenda-date strong { color: #245143; font-family: Georgia,serif; font-size: 62px; font-weight: 500; line-height: .9; }
.agenda-date span { color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .08em; line-height: 1.25; }
.agenda-date b { color: var(--muted); font-weight: 600; }
.agenda-panel h4 { margin: 21px 0 6px; font-family: Georgia,serif; font-size: 20px; font-weight: 500; }
.agenda-panel > p { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.agenda-panel > .button { width: 100%; margin-top: 22px; }
.agenda-empty { display: grid; min-height: 155px; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.agenda-empty > .ui-icon { width: 48px; height: 48px; margin-bottom: 8px; color: #2d6654; }
.agenda-empty > .ui-icon svg { width: 40px; height: 40px; }
.agenda-empty strong { color: var(--ink); font-family: Georgia,serif; font-size: 20px; }
.agenda-empty p { margin: 3px 0 0; font-size: 13px; }
.alert-strip { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid #efcac5; border-radius: 16px; background: #fff7f5; }
.alert-strip-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: var(--terracotta); background: var(--terracotta-soft); }
.alert-strip div span { display: block; color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.alert-strip div strong { display: block; font-size: 15px; }
.alert-strip div p { display: -webkit-box; overflow: hidden; margin: 1px 0 0; color: var(--muted); font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.alert-strip > a { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; color: var(--terracotta); font-size: 13px; font-weight: 800; white-space: nowrap; }
.install-banner { display: flex; align-items: center; gap: 18px; padding: 21px 24px; border-radius: 17px; background: #dce9e1; }
.install-icon { display: grid; width: 51px; height: 51px; flex: 0 0 auto; place-items: center; border-radius: 14px; color: #2d6654; background: white; }
.install-banner div { flex: 1; }
.install-banner strong { font-family: Georgia,serif; font-size: 20px; font-weight: 500; }
.install-banner p { margin: 1px 0 0; color: #536c60; font-size: 13px; }

/* Les pages métier gardent leurs formulaires réels avec la même présentation. */
.standard-panel-head, .panel-title { padding: 23px 25px 17px; }
.standard-panel-head span, .panel-title span, .table-toolbar > div > span { color: #2d6654; font-size: 11px; }
.standard-panel-head h2, .panel-title h2, .table-toolbar h2 { font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.panel-title a { font-size: 13px; }
.news-grid { gap: 18px; }
.news-card { min-height: 250px; padding: 24px; border-color: rgba(28,41,36,.07); box-shadow: 0 10px 28px rgba(32,55,46,.045); }
.news-card h2 { font-family: Georgia,serif; font-size: 23px; font-weight: 500; }
.news-card p { font-size: 15px; }
.news-card > small, .news-meta span, .news-meta time { font-size: 12px; }
.due-card { box-shadow: 0 10px 28px rgba(32,55,46,.045); }
.due-card h2, .profile-hero h2 { font-family: Georgia,serif; font-weight: 500; }
.profile-details, .profile-hero { box-shadow: 0 10px 28px rgba(32,55,46,.045); }
.mini-stats { gap: 16px; }
.mini-stats article { min-height: 112px; padding: 21px; box-shadow: 0 8px 25px rgba(32,55,46,.04); }
.mini-stats article > span { font-family: Georgia,serif; font-size: 29px; font-weight: 500; }
.table-toolbar { padding: 22px 25px; }
.search-field { min-width: 310px; min-height: 48px; }
th { padding: 13px 15px; background: #f4f5f1; }
td { padding: 14px 15px; }
.admin-action-grid { gap: 16px; }
.admin-action-grid button { min-height: 104px; padding: 19px; box-shadow: 0 8px 25px rgba(32,55,46,.04); }
.content-admin-grid { gap: 16px; }
.compact-list { padding: 0 22px 20px; }
.compact-list article { min-height: 68px; }
.modal { border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.28); }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome-card { grid-template-columns: 1fr .65fr; }
  .trees-art { width: 44%; }
  .global-search { width: min(340px,36vw); }
  .profile-copy { display: none; }
}

@media (max-width: 920px) {
  body { padding-bottom: 88px; font-size: 18px; }
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .main-panel { margin-left: 0; }
  .topbar { height: 70px; gap: 12px; padding: 0 20px; }
  .mobile-menu { display: grid; width: 44px; height: 44px; place-items: center; flex: 0 0 auto; border: 1px solid #dce0d8; border-radius: 11px; background: white; }
  .mobile-brand { display: flex; align-items: center; flex-direction: row; gap: 9px; margin-right: auto; margin-left: 0; color: var(--ink); font-family: Georgia,serif; font-size: 18px; }
  .mobile-brand strong { display: block; }
  .global-search { display: none; }
  .profile-button { display: none; }
  .content-wrap { padding: 24px 20px 112px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .mobile-bottom-nav { right: 12px; bottom: 12px; left: 12px; height: auto; display: grid; grid-template-columns: repeat(5,1fr); padding: 7px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; background: rgba(20,45,37,.96); box-shadow: 0 15px 45px rgba(12,37,28,.25); backdrop-filter: blur(12px); }
  .mobile-bottom-nav a { min-width: 0; min-height: 54px; gap: 2px; border-radius: 12px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 700; }
  .mobile-bottom-nav a .ui-icon { width: 25px; height: 25px; color: inherit; background: transparent; }
  .mobile-bottom-nav a.active { color: #f0ca72; background: rgba(255,255,255,.11); }
  .mobile-bottom-nav a.active .ui-icon { color: inherit; background: transparent; }
}

@media (max-width: 700px) {
  .topbar { padding: 0 14px; }
  .content-wrap { padding-right: 15px; padding-left: 15px; }
  .section-heading.page-heading { min-height: 0; align-items: stretch; flex-direction: column; gap: 15px; }
  .section-heading.page-heading h1 { font-size: 34px; }
  .section-heading.page-heading > div > p:last-child { font-size: 15px; }
  .page-action, .page-action .button, .page-action form, .page-action form .button { width: 100%; }
  .welcome-card, .coloti-welcome { min-height: auto; grid-template-columns: 1fr; padding: 29px 24px; }
  .welcome-card h2 { font-size: 38px; }
  .welcome-card p { font-size: 15px; }
  .trees-art { display: none; }
  .contribution-orbit { width: 170px; height: 170px; margin: 28px auto 4px; }
  .contribution-orbit strong { font-size: 36px; }
  .welcome-actions { display: grid; }
  .stats-grid, .news-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 112px; }
  .activity-panel, .agenda-panel { padding: 21px; }
  .activity-item { grid-template-columns: auto minmax(0,1fr); }
  .activity-item time { grid-column: 2; }
  .alert-strip { grid-template-columns: auto minmax(0,1fr); }
  .alert-strip > a { grid-column: 1/-1; justify-self: start; }
  .install-banner { align-items: flex-start; flex-wrap: wrap; }
  .install-banner .button { width: 100%; }
  .standard-panel-head, .panel-title { padding: 20px; }
  .standard-panel-head h2, .panel-title h2, .table-toolbar h2 { font-size: 21px; }
  .admin-action-grid button { min-height: 96px; }
  .mobile-simple-menu { display: none; }
}

@media (max-width: 540px) {
  .mode-switch { display: none; }
  .current-space { display: none; }
  .mobile-brand strong { display: none; }
  .notification-button { display: grid; }
  .mobile-bottom-nav { right: 8px; bottom: 8px; left: 8px; }
  .mobile-bottom-nav a { font-size: 9px; }
  .mobile-bottom-nav a .ui-icon { width: 23px; height: 23px; }
  .section-heading.page-heading h1 { font-size: 31px; }
  .welcome-card { padding: 25px 20px; }
  .welcome-card h2 { font-size: 34px; }
  .stat-card { padding: 18px; }
  .panel-heading { align-items: stretch; flex-direction: column; gap: 8px; }
  .text-link { min-height: 32px; }
  .alert-strip { padding: 18px; }
}

/* Version 1.6.2 — diffusion SMTP des actualités et des assemblées. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.email-feature-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #cfe1d8;
  border-radius: 16px;
  color: #244f42;
  background: #edf6f1;
}
.email-feature-note > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: var(--forest);
}
.email-feature-note > span .ui-icon { color: inherit; background: transparent; }
.email-feature-note strong { display: block; font-size: 16px; }
.email-feature-note p { margin: 2px 0 0; color: #587067; font-size: 14px; line-height: 1.5; }
.compact-list article { flex-wrap: wrap; }
.content-row-copy { flex: 1 1 145px; min-width: 0; }
.content-row-actions {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding-top: 3px;
}
.content-email-form {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
}
.content-email-form select {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  padding: 8px 34px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.email-content-button {
  display: inline-flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.email-content-button .ui-icon { width: 20px; height: 20px; color: inherit; background: transparent; }
.content-row-actions .delete-content-button {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-size: 22px;
}
.communication-email-box {
  border-color: #cfe1d8 !important;
  background: #f3f8f5;
}
.communication-email-toggle {
  display: grid !important;
  grid-template-columns: 24px minmax(0,1fr);
  align-items: start;
  gap: 11px !important;
  padding: 2px 0;
  cursor: pointer;
}
.form-stack .communication-email-toggle input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--forest);
}
.communication-email-toggle strong { display: block; color: var(--ink); font-size: 15px; }
.form-stack .communication-email-toggle small { display: block; margin-top: 3px; font-size: 13px; }

@media (max-width: 700px) {
  .email-feature-note { align-items: flex-start; padding: 15px; }
  .email-feature-note p { font-size: 13px; }
  .content-row-actions { align-items: stretch; flex-direction: column; }
  .content-email-form { width: 100%; }
  .content-row-actions > form:not(.content-email-form) { align-self: flex-end; }
}

@media (max-width: 430px) {
  .content-email-form { align-items: stretch; flex-direction: column; }
  .email-content-button { width: 100%; }
}

/* Version 1.6.3 — pièces jointes sécurisées et photos de signalement. */
.attachment-block {
  width: 100%;
  margin-top: 12px;
}
.attachment-gallery-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--forest);
  font-size: 14px;
}
.attachment-gallery-heading .ui-icon { width: 22px; height: 22px; color: inherit; background: transparent; }
.attachment-gallery-heading small { margin-left: auto; color: var(--muted); font-size: 13px; }
.attachment-gallery {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 9px;
  margin-top: 8px;
}
.attachment-entry {
  position: relative;
  min-width: 0;
}
.attachment-link {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  color: var(--ink);
  background: #f8faf8;
}
.attachment-link:hover { border-color: #a9c3b7; background: #eef6f1; transform: translateY(-1px); }
.attachment-link.image-preview img {
  width: 66px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: #e7ece9;
}
.attachment-file-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--forest);
  background: var(--forest-soft);
}
.attachment-copy { min-width: 0; }
.attachment-copy strong, .attachment-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-copy strong { font-size: 15px; }
.attachment-copy small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.attachment-delete-button {
  position: absolute;
  z-index: 2;
  top: -6px;
  right: -6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--danger);
  box-shadow: 0 5px 12px rgba(92,39,29,.22);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.attachment-upload-fieldset, .report-photo-fieldset { border-color: #d8c9aa !important; background: #fffaf0; }
.attachment-selection-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(145px,1fr));
  gap: 8px;
}
.attachment-selection-preview:empty { display: none; }
.attachment-selection-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0,1fr);
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid #dedfd8;
  border-radius: 11px;
  background: #fff;
}
.attachment-selection-item img, .attachment-selection-symbol {
  width: 48px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}
.attachment-selection-symbol {
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 10px;
  font-weight: 850;
}
.attachment-selection-item > span:last-child { min-width: 0; }
.attachment-selection-item strong, .attachment-selection-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-selection-item strong { font-size: 15px; }
.attachment-selection-item small { color: var(--muted); font-size: 13px; }
.attachment-selection-error { margin: 0; padding: 10px 12px; border-radius: 10px; color: #903829; background: #fff0ec; font-size: 15px; }
.attachment-add-panel {
  width: 100%;
  overflow: hidden;
  border: 1px dashed #bfd0c8;
  border-radius: 12px;
  background: #f8fbf9;
}
.attachment-add-panel summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.attachment-add-panel summary::-webkit-details-marker { display: none; }
.attachment-add-panel summary .ui-icon { width: 23px; height: 23px; }
.attachment-add-form { display: grid; gap: 10px; padding: 0 11px 12px; }
.attachment-add-form label { display: grid; gap: 5px; color: #44564f; font-size: 15px; font-weight: 750; }
.attachment-add-form input[type="file"] { width: 100%; min-height: 48px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.attachment-add-form small { color: var(--muted); font-size: 13px; line-height: 1.4; white-space: normal; }
.attachment-add-form .tiny-button { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.attachment-limit-note { width: 100%; color: var(--muted); font-size: 13px !important; white-space: normal !important; }
.news-card .attachment-block { margin: 15px 0; }
.news-card .attachment-gallery { grid-template-columns: 1fr; }
.event-list .attachment-block, .report-list .attachment-block, .shared-alert-list .attachment-block { margin-top: 10px; }
.report-admin-grid .attachment-block { margin: 3px 0 16px; }

@media (max-width: 600px) {
  .attachment-gallery, .attachment-selection-preview { grid-template-columns: 1fr; }
  .attachment-link { min-height: 72px; }
  .attachment-delete-button { width: 40px; height: 40px; }
}

/* Version 1.7.0 — récupération du mot de passe et bibliothèque documentaire. */
.login-help > div { min-width: 0; flex: 1; }
.forgot-password-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.forgot-password-link .ui-icon { width: 20px; height: 20px; color: inherit; background: transparent; }
.auth-back-button { margin-top: 10px; }
.auth-account-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 12px 13px;
  border-radius: 12px;
  color: #315f50;
  background: var(--forest-soft);
  font-size: 14px;
  line-height: 1.45;
}
.auth-account-note .ui-icon { flex: 0 0 auto; }

.meeting-library-panel { margin-bottom: 18px; }
.event-library-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 24px;
}
.document-total-chip {
  padding: 7px 11px;
  border-radius: 99px;
  color: var(--forest);
  background: var(--forest-soft);
  font-size: 13px;
  font-weight: 800;
}
.document-library-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.document-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.document-library-heading > div > span {
  color: #9b742f;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.document-library-heading h2 { margin: 5px 0 4px; font-size: 27px; }
.document-library-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.document-library-count {
  display: grid;
  min-width: 118px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 2px 9px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--forest);
  background: var(--forest-soft);
}
.document-library-count .ui-icon { grid-row: 1 / 3; }
.document-library-count strong { font-size: 23px; line-height: 1; }
.document-library-count small { font-size: 12px; }
.document-category-summary { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.document-category-summary span {
  padding: 7px 10px;
  border: 1px solid #dfe5e1;
  border-radius: 99px;
  color: #50645d;
  background: #f9fbfa;
  font-size: 13px;
  font-weight: 700;
}
.document-category-summary b { margin-left: 4px; color: var(--forest); }
.featured-document-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #c8dcd3;
  border-radius: 19px;
  background: linear-gradient(135deg,#eef7f2,#fffaf0);
}
.featured-document-card::after { position: absolute; right: -45px; bottom: -55px; width: 160px; height: 160px; border: 24px solid rgba(35,96,77,.06); border-radius: 50%; content: ""; }
.featured-document-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 28px rgba(25,56,46,.2);
}
.featured-document-icon .ui-icon { width: 30px; height: 30px; color: inherit; background: transparent; }
.featured-document-copy { position: relative; z-index: 1; min-width: 0; }
.featured-document-copy h3 { margin: 8px 0 6px; font-size: 24px; }
.featured-document-copy p { margin: 0 0 9px; color: #536b62; font-size: 15px; line-height: 1.55; }
.featured-document-copy small, .document-library-card > small { color: var(--muted); font-size: 13px; }
.document-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.document-card-tags span {
  padding: 5px 8px;
  border-radius: 99px;
  color: #8b692c;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.document-card-tags .private-document-tag { color: #7b483e; background: #fff0ec; }
.document-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.document-library-card {
  display: flex;
  min-width: 0;
  min-height: 235px;
  flex-direction: column;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.document-library-card:hover { border-color: #bdcfc7; box-shadow: 0 12px 28px rgba(30,66,53,.08); transform: translateY(-2px); }
.document-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.document-card-top > span { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 12px; color: var(--forest); background: var(--forest-soft); }
.document-library-card h3 { margin: 15px 0 7px; font-size: 19px; line-height: 1.25; }
.document-library-card p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.document-card-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 17px; }
.document-card-actions .button { min-height: 43px; padding: 0 14px; font-size: 14px; }
.document-card-actions .ui-icon { color: inherit; background: transparent; }
.document-admin-visibility { display: block; margin-top: 5px; color: #39715f; font-size: 11px; font-weight: 800; white-space: normal; }
.document-admin-visibility.private { color: #9b4f40; }
.document-admin-buttons { display: flex; align-items: center; gap: 6px; }
.document-admin-buttons .tiny-button { display: inline-flex; min-height: 40px; align-items: center; }
.document-admin-buttons form { display: flex; }

@media (max-width: 1100px) {
  .document-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .featured-document-card { grid-template-columns: auto minmax(0,1fr); }
  .featured-document-card > .document-card-actions { grid-column: 2; }
}

@media (max-width: 700px) {
  .event-library-list, .document-card-grid { grid-template-columns: 1fr; }
  .document-library-section { padding: 18px; }
  .document-library-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .document-library-count { width: 100%; }
  .featured-document-card { grid-template-columns: 1fr; padding: 20px; }
  .featured-document-card > .document-card-actions { grid-column: 1; }
  .featured-document-icon { width: 54px; height: 54px; }
  .document-card-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .document-card-actions .button { width: 100%; justify-content: center; }
  .document-admin-buttons { width: 100%; flex-wrap: wrap; }
  .document-admin-buttons .tiny-button { flex: 1; justify-content: center; }
}
