/* =====================================================================
   Abou Kano – Registre des biens
   Direction : instrument de relevé topographique, de nuit.
   Lagune profonde + orange ivoirien, courbes de niveau, silhouettes de parcelles.
   ===================================================================== */


@font-face { font-family: "Geist"; font-weight: 300; font-display: swap; src: url("../vendor/fonts/geist-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../vendor/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("../vendor/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("../vendor/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../vendor/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

.akb-app {
	--ink: #071E28;
	--deep: #0C2A37;
	--deep-2: #12384A;
	--deep-3: #184659;
	--line: rgba(140, 205, 214, .16);
	--line-2: rgba(140, 205, 214, .28);
	--text: #E4EFEC;
	--muted: #8DA9B0;
	--orange: #FF8A1E;
	--orange-ink: #1C0F02;
	--green: #2FD08A;
	--amber: #F7C948;
	--red: #FF6B6B;
	--cyan: #4FD8E8;
	--glass: rgba(9, 34, 46, .78);
	--display: "Geist", "Segoe UI", system-ui, sans-serif;
	--mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
	--body: "Geist", "Segoe UI", system-ui, sans-serif;
	--rail: 248px;
	--bar: 64px;
	--r-lg: 18px;
	--r-md: 12px;
	--r-sm: 8px;

	margin: 0;
	background: var(--ink);
	color: var(--text);
	font: 400 15px/1.55 var(--body);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
.akb-app *, .akb-app *::before, .akb-app *::after { box-sizing: border-box; }
/* Réinitialisations sans spécificité : elles ne doivent jamais écraser un composant. */
:where(.akb-app) a { color: inherit; }
:where(.akb-app) img { max-width: 100%; height: auto; display: block; }
:where(.akb-app) :where(h1, h2, h3) { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--text); }
:where(.akb-app) p { margin: 0; }
:where(.akb-app) button { font: inherit; color: inherit; }
.akb-app :focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.akb-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.akb-skip { position: absolute; left: -999px; top: 8px; z-index: 9999; background: var(--orange); color: var(--orange-ink) !important; padding: 8px 14px; border-radius: 8px; }
.akb-skip:focus { left: 8px; }
.akb-muted { color: var(--muted); font-weight: 400; }
.akb-app [hidden] { display: none !important; }

/* ---------- Coquille ---------- */

.akb-shell { min-height: 100vh; }
.akb-main { margin-left: var(--rail); padding: 32px clamp(16px, 3vw, 40px) 64px; min-height: 100vh; }
.akb-app--guest .akb-main { margin-left: 0; padding: 0; }

.akb-nav {
	position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 1000;
	display: flex; flex-direction: column; gap: 28px;
	padding: 22px 14px; background: var(--ink); border-right: 1px solid var(--line);
}
.akb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0 8px; }
.akb-brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--orange); background: rgba(255, 138, 30, .1); border: 1px solid rgba(255, 138, 30, .35); flex: none; }
.akb-brand__mark svg { width: 26px; height: 26px; }
.akb-brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.akb-brand__text strong { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.akb-brand__text span { color: var(--muted); font-size: .8rem; }

.akb-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.akb-nav__list a {
	display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-md);
	text-decoration: none; color: var(--muted); font-weight: 500; position: relative;
	transition: background-color .15s, color .15s;
}
.akb-nav__list a:hover { background: var(--deep); color: var(--text); }
.akb-nav__list a[aria-current="page"] { background: var(--deep-2); color: var(--text); }
.akb-nav__list a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.akb-nav__add { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.akb-nav__add a { color: var(--orange); }
.akb-nav__admin { margin-top: 4px; }
.akb-ico { width: 20px; height: 20px; flex: none; }

.akb-nav__user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.akb-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-2); font-family: var(--display); font-weight: 600; color: var(--orange); flex: none; }
.akb-nav__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.akb-nav__logout { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.akb-nav__logout:hover { background: var(--deep); color: var(--red); }

/* ---------- Boutons, champs ---------- */

.akb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2);
	background: var(--deep-2); color: var(--text); text-decoration: none; cursor: pointer;
	font-weight: 500; font-size: .92rem; line-height: 1.2; white-space: nowrap;
	transition: background-color .15s, border-color .15s, transform .1s;
}
.akb-btn:hover { background: var(--deep-3); border-color: var(--muted); }
.akb-btn:active { transform: translateY(1px); }
.akb-btn .akb-ico { width: 18px; height: 18px; }
.akb-btn--primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink) !important; font-weight: 600; }
.akb-btn--primary:hover { background: #FF9C3F; border-color: #FF9C3F; }
.akb-btn--block { width: 100%; padding: 14px; font-size: 1rem; }
.akb-link { background: none; border: 0; padding: 0; color: var(--orange); text-decoration: none; font-weight: 500; font-size: .9rem; cursor: pointer; }
.akb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.akb-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 14px; }
.akb-back::before { content: ""; width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.akb-back:hover { color: var(--text); }
.akb-back--btn { background: none; border: 0; padding: 0; cursor: pointer; }

:where(.akb-app) :where(input[type="text"], input[type="search"], input[type="password"], select) {
	width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line-2);
	border-radius: var(--r-sm); padding: 10px 12px; font: 400 .95rem/1.3 var(--body); min-height: 42px;
}
:where(.akb-app) select {
	appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238DA9B0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
:where(.akb-app) :where(input, select):focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 138, 30, .2); }
.akb-app ::placeholder { color: #5F7D85; }
.akb-field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.akb-field > span { font-size: .78rem; color: var(--muted); }

/* ---------- Panneaux ---------- */

.akb-panel { background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.akb-panel > h2, .akb-panel__head h2 { font-size: 1.05rem; }
.akb-panel > h2 { margin-bottom: 14px; }
.akb-panel h3 { font-size: .9rem; color: var(--muted); font-weight: 500; margin: 18px 0 10px; }
.akb-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.akb-empty { color: var(--muted); }

.akb-frame { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.akb-frame::before, .akb-frame::after {
	content: ""; position: absolute; width: 18px; height: 18px; z-index: 500; pointer-events: none;
	border: 2px solid var(--orange);
}
.akb-frame::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.akb-frame::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ---------- Silhouettes de parcelles ---------- */

.akb-shape { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; background: rgba(140, 205, 214, .06); color: var(--muted); }
.akb-shape svg { width: 100%; height: 100%; }
.akb-shape--lg { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); }

/* ---------- Connexion ---------- */

.akb-login { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); min-height: 100vh; }
.akb-login__field { position: relative; overflow: hidden; background: var(--ink); }
.akb-contours { position: absolute; inset: 0; display: block; }
.akb-login__reticle { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); }
.akb-login__reticle::before, .akb-login__reticle::after { content: ""; position: absolute; background: rgba(255, 138, 30, .7); }
.akb-login__reticle::before { left: 50%; top: -30px; bottom: -30px; width: 1px; }
.akb-login__reticle::after { top: 50%; left: -30px; right: -30px; height: 1px; }
.akb-login__reticle span { position: absolute; inset: 0; border: 1px solid rgba(255, 138, 30, .7); border-radius: 50%; }
.akb-login__reticle span::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--orange); border-radius: 50%; animation: akb-ping 3.2s ease-out infinite; }
.akb-login__coords { position: absolute; left: calc(50% + 72px); top: calc(50% + 66px); font: 600 .95rem var(--display); color: var(--orange); letter-spacing: .04em; white-space: pre; font-variant-numeric: tabular-nums; }
.akb-login__panel { background: var(--deep); border-left: 1px solid var(--line); padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.akb-login__panel > * { width: 100%; max-width: 400px; }
.akb-login__brand { display: flex; align-items: center; gap: 12px; font: 700 1.05rem var(--display); margin-bottom: 44px; }
.akb-login h1 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; font-weight: 700; margin-bottom: 14px; }
.akb-login__lede { color: var(--muted); margin-bottom: 28px; max-width: 36ch; }
.akb-form label { display: block; font-size: .85rem; color: var(--muted); margin: 16px 0 6px; }
.akb-form input[type="text"], .akb-form input[type="password"] { min-height: 48px; font-size: 1rem; }
.akb-pwd { position: relative; }
.akb-pwd input { padding-right: 88px; }
.akb-pwd__toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; border-radius: 6px; border: 0; background: var(--deep-2); color: var(--muted); cursor: pointer; font-size: .82rem; }
.akb-check { display: flex !important; align-items: center; gap: 10px; color: var(--text) !important; margin: 18px 0 22px !important; cursor: pointer; }
.akb-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.akb-alert { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .45); color: #FFC9C9; padding: 12px 14px; border-radius: var(--r-sm); margin-bottom: 8px; }
.akb-login__lost { display: inline-block; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.akb-login__legal { margin-top: auto; padding-top: 40px; color: #5F7D85; font-size: .8rem; }

/* ---------- Tableau de bord ---------- */

.akb-hero { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, #0A2632, var(--ink)); min-height: 280px; display: flex; align-items: flex-end; margin-bottom: 20px; }
.akb-hero .akb-contours { opacity: .9; }
.akb-hero__inner { position: relative; padding: clamp(24px, 4vw, 44px); max-width: 980px; }
.akb-hero__hello { color: var(--muted); margin-bottom: 10px; }
.akb-hero__statement { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.2; font-weight: 500; max-width: 26ch; }
.akb-num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; border-bottom: 2px solid var(--orange); padding-bottom: .02em; }
.akb-hero__sub { color: var(--muted); margin-top: 16px; max-width: 60ch; }
.akb-hero .akb-btn { margin-top: 20px; }

.akb-dash { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; }
.akb-dash__map { grid-column: span 8; grid-row: span 2; display: flex; flex-direction: column; }
.akb-dash__map .akb-frame { flex: 1; display: flex; min-height: 420px; }
.akb-dash__map .akb-map--overview { flex: 1; height: auto; min-height: 420px; }
.akb-dash__types, .akb-dash__regions { grid-column: span 4; }
.akb-dash__recent { grid-column: span 8; }
.akb-dash__todo { grid-column: span 4; }
.akb-map--overview { height: 460px; }

.akb-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.akb-bars a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm); text-decoration: none; }
.akb-bars a:hover { background: var(--deep-2); }
.akb-bars__label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.akb-bars__label i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.akb-bars__value { font: 600 .95rem var(--display); font-variant-numeric: tabular-nums; }
.akb-bars__track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(140, 205, 214, .1); overflow: hidden; }
.akb-bars__track span { display: block; height: 100%; border-radius: 4px; background: var(--orange); }
.akb-bars--count .akb-bars__track span { background: var(--cyan); }

.akb-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.akb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-md); text-decoration: none; }
.akb-row:hover { background: var(--deep-2); }
.akb-row__main { display: flex; flex-direction: column; min-width: 0; }
.akb-row__main strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-row__main span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-row__value { font: 600 .95rem var(--display); font-variant-numeric: tabular-nums; }

.akb-todo { list-style: none; margin: 0; padding: 0; }
.akb-todo li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.akb-todo li:last-child { border-bottom: 0; }
.akb-todo a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-todo a:hover { color: var(--orange); }
.akb-todo span { color: var(--amber); font-size: .82rem; white-space: nowrap; }

/* ---------- En-tête de page ---------- */

.akb-pagehead { margin-bottom: 22px; }
.akb-pagehead h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
.akb-pagehead__kind { color: var(--orange); font-size: .88rem; margin-bottom: 4px; }
.akb-pagehead__desc { color: var(--muted); margin-top: 8px; max-width: 70ch; }

/* ---------- Liste ---------- */

.akb-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-lg); }
.akb-toolbar__search, .akb-sheet__search { position: relative; }
.akb-toolbar__search { flex: 2 1 240px; }
.akb-sheet__search { flex: none; }
.akb-toolbar__search .akb-ico, .akb-sheet__search .akb-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.akb-toolbar__search input, .akb-sheet__search input { padding-left: 40px; min-height: 44px; }
.akb-toolbar .akb-field { flex: 1 1 130px; min-width: 130px; }
.akb-listapp__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 2px 14px; }
.akb-count { color: var(--muted); font-size: .9rem; }

.akb-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.akb-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--deep); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s; }
.akb-card:hover { border-color: var(--line-2); }
.akb-card:hover h3 { color: var(--orange); }
.akb-card__media { aspect-ratio: 16 / 10; background: var(--ink); position: relative; overflow: hidden; }
.akb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.akb-card__blueprint {
	position: absolute; inset: 0; display: grid; place-items: center;
	background-image:
		linear-gradient(rgba(140, 205, 214, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(140, 205, 214, .07) 1px, transparent 1px);
	background-size: 22px 22px;
}
.akb-card__blueprint svg { width: 58%; height: 78%; }
.akb-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.akb-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.akb-card__top .akb-shape { width: 30px; height: 30px; border-radius: 8px; }
.akb-card h3 { font-size: 1.08rem; line-height: 1.25; transition: color .15s; }
.akb-card__place { color: var(--muted); font-size: .88rem; }
.akb-card__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.akb-card__foot strong { font: 700 1.05rem var(--display); font-variant-numeric: tabular-nums; margin-right: auto; }
.akb-ref { font: 600 .8rem var(--display); color: var(--orange); letter-spacing: .03em; }
.akb-tag, .akb-tags li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; background: rgba(140, 205, 214, .08); border: 1px solid var(--line); color: var(--text); }
.akb-tag[style*="--c"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.akb-tag--warn { color: var(--amber); border-color: rgba(247, 201, 72, .4); background: rgba(247, 201, 72, .08); }
.akb-emptycard { grid-column: 1 / -1; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-lg); display: grid; justify-items: center; gap: 10px; }
.akb-emptycard p:first-child { font: 600 1.15rem var(--display); }

/* ---------- Carte plein écran ---------- */

.akb-app--fullmap .akb-main { padding: 0; min-height: 0; height: 100vh; height: 100dvh; }
.akb-mapapp { position: relative; height: 100%; overflow: hidden; }
.akb-map--full { position: absolute; inset: 0; }

.akb-sheet {
	position: absolute; z-index: 1100; top: 16px; left: 16px; bottom: 16px; width: 344px;
	display: flex; flex-direction: column; gap: 12px; padding: 14px;
	background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-lg);
	-webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.akb-sheet__handle { display: none; }
.akb-sheet__body { flex: 1; overflow: auto; margin: 0 -14px -14px; padding: 0 14px 14px; scrollbar-width: thin; scrollbar-color: var(--deep-3) transparent; }
.akb-sheet__search input { background: rgba(7, 30, 40, .8); }
.akb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.akb-chip {
	display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
	border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .84rem; color: var(--muted);
	transition: background-color .15s, color .15s, border-color .15s;
}
.akb-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.akb-chip:hover { color: var(--text); }
.akb-chip[aria-pressed="true"] { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.akb-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.akb-filters .akb-field { min-width: 0; }
.akb-sheet .akb-count { margin-bottom: 6px; }
.akb-results { list-style: none; margin: 0 -6px; padding: 0; }
.akb-result { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 6px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; }
.akb-result:hover { background: rgba(140, 205, 214, .08); }
.akb-result .akb-shape { width: 36px; height: 36px; }
.akb-result__main { display: flex; flex-direction: column; min-width: 0; }
.akb-result__main strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-result__main span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-result__value { font: 600 .88rem var(--display); font-variant-numeric: tabular-nums; }
.akb-result__value em { font: 400 .78rem var(--body); color: var(--amber); }

.akb-sheet__detail h2 { font-size: 1.35rem; line-height: 1.2; margin: 4px 0 4px; }
.akb-detail__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); margin-bottom: 14px; }
.akb-detail__shape { height: 150px; display: grid; place-items: center; border-radius: var(--r-md); margin-bottom: 14px; background-image: linear-gradient(rgba(140, 205, 214, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 205, 214, .07) 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); }
.akb-detail__shape svg { height: 80%; }
.akb-detail__place { color: var(--muted); }
.akb-detail__facts { margin: 16px 0; display: grid; gap: 8px; }
.akb-detail__facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.akb-detail__facts dt { color: var(--muted); }
.akb-detail__facts dd { margin: 0; text-align: right; font-weight: 500; }
.akb-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.akb-detail__actions .akb-btn--primary { flex: 1; }

.akb-maptools { position: absolute; z-index: 800; top: 16px; right: 16px; display: flex; gap: 8px; align-items: center; }
.akb-seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.akb-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; cursor: pointer; font-size: .85rem; color: var(--muted); }
.akb-seg button:hover { color: var(--text); }
.akb-seg button[aria-pressed="true"] { background: var(--orange); color: var(--orange-ink); font-weight: 600; }
.akb-seg--frame { position: absolute; z-index: 600; top: 12px; right: 12px; }
.akb-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line-2); cursor: pointer; color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.akb-iconbtn:hover { border-color: var(--orange); color: var(--orange); }

.akb-readout {
	position: absolute; z-index: 600; right: 64px; bottom: 16px; padding: 6px 10px; border-radius: 8px;
	background: var(--glass); border: 1px solid var(--line); font: 600 .8rem var(--display); color: var(--orange);
	font-variant-numeric: tabular-nums; letter-spacing: .03em; white-space: pre; pointer-events: none;
	opacity: 0; transition: opacity .2s;
}
.akb-readout.is-on { opacity: 1; }
.akb-frame .akb-readout { right: 56px; bottom: 12px; }
.akb-mapapp .leaflet-bottom.leaflet-left { left: 372px; }

/* ---------- Fiche ---------- */

.akb-fiche__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 24px; align-items: end; margin-bottom: 22px; }
.akb-fiche__head .akb-back { grid-column: 1 / -1; margin-bottom: 0; }
.akb-fiche__title { display: flex; gap: 18px; align-items: center; min-width: 0; }
.akb-fiche__title h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; font-weight: 700; }
.akb-fiche__place { color: var(--muted); margin-top: 6px; }
.akb-fiche__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.akb-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.akb-fiche__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.akb-fiche__grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
.akb-fiche__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.akb-fiche__map { padding: 12px; }
.akb-fiche__wide { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.akb-map--fiche { height: 500px; }

.akb-coords { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 6px 4px; }
.akb-coords__val { display: flex; flex-direction: column; gap: 2px; }
.akb-coords__label { color: var(--muted); font-size: .8rem; }
.akb-coords__val strong { font: 700 1.2rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.akb-coords__val span:last-child { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.akb-coords__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.akb-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.akb-facts div { min-width: 0; }
.akb-facts dt { color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.akb-facts dd { margin: 0; font-weight: 500; }
.akb-big { font: 700 1.45rem var(--display) !important; font-variant-numeric: tabular-nums; }
.akb-gap { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 600 .88rem var(--display); }
.akb-gap.is-ok { color: var(--green); background: rgba(47, 208, 138, .12); }
.akb-gap.is-warn { color: var(--amber); background: rgba(247, 201, 72, .12); }
.akb-gap.is-bad { color: var(--red); background: rgba(255, 107, 107, .12); }

.akb-access { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: .9rem; }
.akb-access li { display: flex; align-items: center; gap: 8px; }
.akb-access li > span:first-child { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1.5px solid currentColor; }
.akb-access .is-on > span:first-child { background: var(--green); border-color: var(--green); }
.akb-access .is-off { color: #5F7D85; }

.akb-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.akb-docs li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); }
.akb-docs .akb-ico { color: var(--orange); }
.akb-docs strong { display: block; font-weight: 500; }
.akb-docs span { color: var(--muted); font-size: .85rem; }
.akb-docs .akb-btn { padding: 7px 12px; font-size: .85rem; }

.akb-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.akb-gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.akb-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.akb-gallery button:hover img { transform: scale(1.04); }

.akb-empty--map { min-height: 340px; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.akb-empty--map .akb-ico { width: 36px; height: 36px; color: var(--muted); }

.akb-lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.akb-lightbox::backdrop { background: rgba(3, 14, 19, .92); }
.akb-lightbox img { width: 100%; height: 100%; object-fit: contain; padding: 56px 72px; }
.akb-lightbox button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass); color: var(--text); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.akb-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.akb-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.akb-lightbox__close { right: 16px; top: 16px; }

/* ---------- Texte courant ---------- */

.akb-prose { max-width: 70ch; }
.akb-prose h1 { font-size: 2rem; margin-bottom: 18px; }
.akb-prose h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.akb-prose p { margin: 0 0 12px; color: #C9D9D6; }
.akb-panel.akb-prose { max-width: none; }
.akb-panel.akb-prose h2 { margin-top: 0; }
.akb-app--guest .akb-prose { padding: 48px 24px; margin: 0 auto; }

/* ---------- Leaflet ---------- */

.akb-app .leaflet-container { background: #0B2230; font-family: var(--body); }
.akb-app .leaflet-bar { border: 1px solid var(--line-2) !important; border-radius: var(--r-md) !important; overflow: hidden; box-shadow: none !important; }
.akb-app .leaflet-bar a { background: var(--glass); color: var(--text); border-bottom-color: var(--line) !important; width: 40px; height: 40px; line-height: 40px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.akb-app .leaflet-bar a:hover { background: var(--deep-2); color: var(--orange); }
.akb-app .leaflet-control-attribution { background: rgba(7, 30, 40, .7) !important; color: var(--muted); font-size: 10px; }
.akb-app .leaflet-control-attribution a { color: var(--muted); }
.akb-app .leaflet-control-scale-line { background: rgba(7, 30, 40, .6); border-color: var(--muted); color: var(--text); font-family: var(--display); }
.akb-tip { background: var(--deep) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 8px !important; box-shadow: 0 8px 20px rgba(0, 0, 0, .4) !important; font: 500 .85rem var(--body); padding: 5px 10px !important; }
.akb-tip::before { border-top-color: var(--line-2) !important; }

.akb-poly { filter: drop-shadow(0 0 3px rgba(0, 0, 0, .7)); }
.akb-poly.is-selected { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .55)); }

.akb-pin { background: none; border: 0; }
.akb-pin span { position: absolute; inset: 4px; border-radius: 50%; background: var(--c); border: 2px solid #071E28; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); transition: transform .15s; }
.akb-pin em { display: none; }
.akb-pin:hover span { transform: scale(1.25); }
.akb-pin.is-selected span { background: #fff; box-shadow: 0 0 0 4px var(--c); }
.akb-pin.is-selected::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; animation: akb-ping 2s ease-out infinite; }

.akb-cluster { background: none; }
.akb-cluster span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(7, 30, 40, .88); border: 2px solid var(--orange); color: var(--text); font: 700 .9rem var(--display); box-shadow: 0 0 0 5px rgba(255, 138, 30, .18); }

.akb-me { background: none; }
.akb-me span { position: absolute; inset: 2px; border-radius: 50%; background: var(--cyan); border: 2px solid #fff; }
.akb-me span::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--cyan); animation: akb-ping 2s ease-out infinite; }

@keyframes akb-ping { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.akb-toast { position: fixed; z-index: 9999; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: var(--r-md); background: var(--deep-2); border: 1px solid var(--line-2); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); transition: transform .25s, opacity .25s; }
.akb-toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* =====================================================================
   v1.1 – Saisie collaborative, suivi des dossiers, traçabilité
   ===================================================================== */

.akb-btn--sm { padding: 7px 12px; font-size: .85rem; }
.akb-btn--danger { background: transparent; border-color: rgba(255, 107, 107, .5); color: var(--red); }
.akb-btn--danger:hover { background: rgba(255, 107, 107, .12); border-color: var(--red); }
.akb-btn.is-busy { opacity: .7; pointer-events: none; }
.akb-btn:disabled { opacity: .5; cursor: progress; }
.akb-iconbtn--sm { width: 36px; height: 36px; border-radius: 10px; background: transparent; }
.akb-iconbtn--sm .akb-ico { width: 18px; height: 18px; }

.akb-statut { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; color: var(--text); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.akb-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.akb-tags .akb-statut { padding: 3px 10px 3px 8px; }

.akb-progress { height: 6px; border-radius: 6px; background: rgba(140, 205, 214, .12); overflow: hidden; }
.akb-progress span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--green)); background-size: 300px 100%; }
.akb-progressline { display: grid; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .85rem; }

.akb-flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-md); background: rgba(47, 208, 138, .12); border: 1px solid rgba(47, 208, 138, .45); color: #BFF5DC; }
.akb-flash .akb-ico { color: var(--green); }
.akb-app--fullmap .akb-flash { position: absolute; z-index: 1200; top: 16px; left: 50%; transform: translateX(-50%); }
.akb-alert { margin-bottom: 18px; }

/* Fiche : traçabilité, doublons, dossier */
.akb-fiche__trace { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; color: var(--muted); font-size: .85rem; }
.akb-fiche__trace .akb-ico { width: 16px; height: 16px; margin-top: 2px; }
.akb-dupbanner { display: flex; gap: 14px; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r-md); background: rgba(247, 201, 72, .1); border: 1px solid rgba(247, 201, 72, .45); color: #F9E3A6; }
.akb-dupbanner .akb-ico { color: var(--amber); flex: none; margin-top: 2px; }
.akb-dupbanner ul { margin: 6px 0 0; padding-left: 18px; }
.akb-dupbanner a { color: var(--text); }
.akb-warn-title { display: flex; align-items: center; gap: 6px; color: var(--amber) !important; }
.akb-warn-title .akb-ico { width: 16px; height: 16px; }

.akb-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.akb-steps li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9rem; color: #5F7D85; }
.akb-steps li > span:first-child { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.akb-steps li.is-done { color: var(--text); }
.akb-steps li.is-done > span:first-child { background: var(--green); border-color: var(--green); color: var(--ink); }
.akb-steps .akb-ico { width: 13px; height: 13px; stroke-width: 3; }
.akb-facts--compact { margin-top: 16px; gap: 10px 18px; }
.akb-facts--compact dd { font-size: .92rem; }
.akb-deflist { margin: 0; display: grid; gap: 14px; }
.akb-deflist dt { color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.akb-deflist dd { margin: 0; white-space: normal; }

.akb-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.akb-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.akb-timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.akb-timeline li:last-child { padding-bottom: 0; }
.akb-timeline__dot { width: 11px; height: 11px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--ink); border: 2px solid var(--orange); position: relative; }
.akb-timeline p { font-size: .92rem; }
.akb-timeline a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.akb-timeline a:hover { color: var(--orange); }
.akb-timeline__detail { color: var(--amber); font-size: .85rem !important; }
.akb-timeline time { color: #5F7D85; font-size: .8rem; }
.akb-timeline--compact li { padding-bottom: 12px; }

/* Tableau de bord v1.1 */
.akb-dash__pipeline { grid-column: span 8; }
.akb-dash__activity { grid-column: span 4; grid-row: span 2; }
.akb-dash__sources { grid-column: span 4; }
.akb-pipeline { display: flex; gap: 3px; height: 14px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background: rgba(140, 205, 214, .08); }
.akb-pipeline span { min-width: 6px; }
.akb-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
.akb-legend a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--r-sm); text-decoration: none; font-size: .9rem; }
.akb-legend a:hover { background: var(--deep-2); }
.akb-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.akb-legend span { flex: 1; }
.akb-legend strong { font: 600 .95rem var(--display); }
.akb-legend .is-zero { opacity: .45; }

/* Carte : couleurs, détail */
.akb-colormode { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; font-size: .82rem; }
.akb-colormode span { color: var(--muted); margin-right: 6px; }
.akb-colormode button { border: 1px solid var(--line-2); background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 999px; cursor: pointer; font-size: .8rem; }
.akb-colormode button[aria-pressed="true"] { color: var(--orange-ink); background: var(--orange); border-color: var(--orange); font-weight: 600; }
.akb-detail__trace { color: var(--muted); font-size: .82rem; margin-bottom: 14px !important; }

/* Liste : cartes v1.1 */
.akb-card__top .akb-statut { font-size: .72rem; }
.akb-card__progress { height: 3px; border-radius: 3px; background: rgba(140, 205, 214, .1); margin-top: 12px; overflow: hidden; }
.akb-card__progress span { display: block; height: 100%; background: var(--green); }
.akb-card__trace { color: #5F7D85; font-size: .78rem; margin-top: 8px !important; }
.akb-listapp__bar { flex-wrap: wrap; }
.akb-listapp__export { margin-left: auto; }

/* Formulaire de saisie */
.akb-bienform { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 96px; }
.akb-formnav { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
.akb-formnav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: .9rem; border-left: 2px solid transparent; }
.akb-formnav a:hover { color: var(--text); background: var(--deep); }
.akb-formnav a.is-active { color: var(--text); border-left-color: var(--orange); background: var(--deep); }
.akb-formbody { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.akb-fs { scroll-margin-top: 20px; }
.akb-fs > h2 { margin-bottom: 16px; font-size: 1.15rem; }
.akb-fs__hint { color: var(--muted); font-size: .9rem; margin: -6px 0 16px !important; max-width: 70ch; }
.akb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.akb-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.akb-f > span { font-size: .84rem; color: var(--muted); }
.akb-f > span em { font-style: normal; color: var(--orange); font-size: .78rem; margin-left: 6px; }
.akb-f small { color: #5F7D85; font-size: .8rem; }
.akb-f--wide { grid-column: 1 / -1; }
.akb-f--pair { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; }
.akb-f--grow { flex: 1; }
:where(.akb-app) textarea { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; font: 400 .95rem/1.5 var(--body); resize: vertical; }
:where(.akb-app) textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 138, 30, .2); }
:where(.akb-app) input[type="date"], :where(.akb-app) input[type="file"] { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 10px; font: 400 .9rem var(--body); color-scheme: dark; }
.akb-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.akb-checkitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--ink); cursor: pointer; font-size: .9rem; }
.akb-checkitem:hover { border-color: var(--line-2); }
.akb-checkitem input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.akb-checkitem:has(input:checked) { border-color: rgba(47, 208, 138, .55); background: rgba(47, 208, 138, .08); }
.akb-fs h3 { margin: 22px 0 10px; font-size: .95rem; color: var(--muted); font-weight: 500; }

.akb-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.akb-drop:hover, .akb-drop:focus-within { border-color: var(--orange); background: rgba(255, 138, 30, .05); }
.akb-drop .akb-ico { width: 30px; height: 30px; color: var(--orange); }
.akb-drop span { color: var(--muted); font-size: .88rem; }
.akb-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.akb-photopreview, .akb-photoedit { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.akb-photopreview:empty { display: none; }
.akb-photopreview li { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; }
.akb-photopreview img { width: 100%; height: 100%; object-fit: cover; }
.akb-photopreview span { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(7, 30, 40, .8); font-size: .72rem; color: var(--muted); }
.akb-photopreview li.is-loading span { position: static; background: none; padding: 8px; text-align: center; }
.akb-photoedit { margin: 0 0 14px; }
.akb-photoedit li { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line); font-size: .82rem; }
.akb-photoedit img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; }
.akb-photoedit label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); }
.akb-photoedit input { accent-color: var(--orange); }
.akb-photoedit li:has(.akb-photoedit__remove input:checked) img { opacity: .3; }
.akb-photoedit__remove:has(input:checked) { color: var(--red) !important; }

.akb-docrows { display: grid; gap: 10px; margin-bottom: 12px; }
.akb-docrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 150px minmax(0, 1.4fr); gap: 10px; align-items: end; padding: 12px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); }
.akb-docrow--new { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 150px minmax(0, 1.4fr) 36px; }
.akb-docrow__file { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; font-size: .88rem; }
.akb-docrow__file a { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); text-decoration: none; }
.akb-docrow__file .akb-ico { width: 16px; height: 16px; }
.akb-docrow:has(.akb-photoedit__remove input:checked) { opacity: .45; }

.akb-savebar { position: fixed; z-index: 1050; left: var(--rail); right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px clamp(16px, 3vw, 40px); background: rgba(7, 30, 40, .92); border-top: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.akb-savebar__info { margin-right: auto !important; color: var(--muted); font-size: .85rem; }
.akb-dangerzone { margin: 0 0 40px 214px; }

/* Documents et succession */
.akb-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--deep); }
.akb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.akb-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: .82rem; padding: 12px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.akb-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.akb-table tr:last-child td { border-bottom: 0; }
.akb-table td a:not(.akb-btn) { color: var(--text); text-underline-offset: 3px; }
.akb-table td:last-child { text-align: right; }
.akb-docsapp .akb-count { margin: 16px 2px 12px; }
.akb-docs__actions { display: flex; align-items: center; gap: 6px; }
.akb-docs__actions form { margin: 0; }

.akb-succ { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.akb-succ .akb-progress { margin-bottom: 14px; }
.akb-tasks { list-style: none; margin: 0 0 16px; padding: 0; }
.akb-tasks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.akb-tasks li:last-child { border-bottom: 0; }
.akb-tasks form { margin: 0; }
.akb-task__check { width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line-2); background: transparent; display: grid; place-items: center; cursor: pointer; color: transparent; }
.akb-task__check:hover:not(:disabled) { border-color: var(--green); color: rgba(47, 208, 138, .5); }
.akb-task__check .akb-ico { width: 16px; height: 16px; stroke-width: 2.6; }
.akb-tasks .is-done .akb-task__check { background: var(--green); border-color: var(--green); color: var(--ink); }
.akb-task__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.akb-tasks .is-done .akb-task__main > span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(141, 169, 176, .5); }
.akb-task__main small { color: #5F7D85; font-size: .8rem; }
.akb-inlineform { display: flex; gap: 8px; align-items: flex-end; }
.akb-uploadform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); align-items: end; }
.akb-uploadform .akb-f--file { grid-column: 1 / -1; }
.akb-uploadform .akb-btn { grid-column: 1 / -1; justify-self: start; }
.akb-notice p { color: var(--muted); }

/* =====================================================================
   v1.2 – Tableau de bord enrichi, archives, annuaire, saisie en étapes
   ===================================================================== */

/* Indicateurs */
.akb-tiles { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.akb-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico label" "value value" "sub sub"; align-items: center; gap: 4px 10px; height: 100%; padding: 16px; border-radius: var(--r-lg); background: var(--deep); border: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.akb-tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.akb-tile::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line-2); }
.akb-tile.is-good::after { background: var(--green); }
.akb-tile.is-bad::after { background: var(--red); }
.akb-tile.is-warn::after { background: var(--amber); }
.akb-tile__ico { grid-area: ico; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(140, 205, 214, .08); color: var(--muted); }
.akb-tile__ico .akb-ico { width: 17px; height: 17px; }
.akb-tile.is-good .akb-tile__ico { color: var(--green); }
.akb-tile.is-bad .akb-tile__ico { color: var(--red); }
.akb-tile.is-warn .akb-tile__ico { color: var(--amber); }
.akb-tile__label { grid-area: label; color: var(--muted); font-size: .84rem; }
.akb-tile__value { grid-area: value; font: 700 1.6rem/1.15 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; }
.akb-tile__sub { grid-area: sub; color: #5F7D85; font-size: .78rem; }

.akb-dash__next, .akb-dash__files, .akb-dash__contacts { grid-column: span 4; }
.akb-dash__comm { grid-column: span 8; }
.akb-nextlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.akb-nextlist li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.akb-nextlist li:last-child { border-bottom: 0; }
.akb-nextlist li > span { width: 14px; height: 14px; margin-top: 3px; flex: none; border-radius: 4px; border: 1.5px solid var(--line-2); }
.akb-minifiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.akb-minifiles li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.akb-minifiles li:last-child { border-bottom: 0; }
.akb-minifiles .akb-ico { color: var(--orange); width: 18px; height: 18px; }
.akb-minifiles a:not(.akb-iconbtn) { display: block; text-decoration: none; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-minifiles a:not(.akb-iconbtn):hover { color: var(--orange); }
.akb-minifiles span { color: #5F7D85; font-size: .78rem; }
.akb-quickcontacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.akb-quickcontacts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.akb-quickcontacts li:last-child { border-bottom: 0; }
.akb-quickcontacts strong { display: block; font-weight: 500; font-size: .92rem; }
.akb-quickcontacts li > div:first-child span { color: #5F7D85; font-size: .78rem; }
.akb-tablewrap--flat { border: 0; background: transparent; border-radius: 0; }
.akb-tablewrap--flat .akb-table th, .akb-tablewrap--flat .akb-table td { padding: 10px 8px; }
.akb-tablewrap--flat .akb-table td:last-child { text-align: left; }

/* Téléphones ivoiriens */
.akb-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font: 600 .92rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }
.akb-phone .akb-ico { width: 15px; height: 15px; color: var(--orange); }
.akb-phone:hover { color: var(--orange); }
.akb-phone--inline { color: var(--orange); font-family: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.akb-wa { display: inline-flex; align-items: center; padding: 2px 8px; margin-left: 4px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: #6FE3A1; border: 1px solid rgba(47, 208, 138, .45); text-decoration: none; }
.akb-wa:hover { background: rgba(47, 208, 138, .12); }
.akb-org__phones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* Annuaire */
.akb-annuaire__intro { margin: -10px 0 18px !important; }
.akb-annuaire__toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.akb-annuaire__toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .84rem; color: var(--muted); }
.akb-annuaire__toc a:hover { color: var(--text); border-color: var(--orange); }
.akb-annuaire__parcours { margin-bottom: 20px; }
.akb-parcours { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.akb-parcours li { counter-increment: p; position: relative; padding: 14px 14px 14px 52px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); font-size: .9rem; color: #C9D9D6; }
.akb-parcours li::before { content: counter(p); position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--orange-ink); font: 700 .85rem var(--display); }
.akb-parcours strong { display: block; color: var(--text); margin-bottom: 2px; }
.akb-orgs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); margin-bottom: 20px; }
.akb-org { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--deep); border: 1px solid var(--line); scroll-margin-top: 20px; }
.akb-org:target { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 30, .15); }
.akb-org__sigle { display: inline-block; font: 700 .78rem var(--display); color: var(--orange); letter-spacing: .03em; margin-bottom: 4px; }
.akb-org h3 { font-size: 1.05rem; line-height: 1.3; }
.akb-org__role { color: #C9D9D6; font-size: .9rem; }
.akb-org__quand { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.akb-org__quand li { padding: 3px 10px; border-radius: 999px; font-size: .76rem; background: rgba(255, 138, 30, .1); border: 1px solid rgba(255, 138, 30, .3); color: #FFD1A8; }
.akb-org__coords { margin: 0; display: grid; gap: 8px; padding: 12px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); }
.akb-org__coords div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; }
.akb-org__coords dt .akb-ico { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.akb-org__coords dd { margin: 0; font-size: .88rem; }
.akb-org__coords a { color: var(--text); }
.akb-org__note { color: #5F7D85; font-size: .8rem; }
.akb-org__links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.akb-orgs--compact { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.akb-orgs--compact .akb-org { padding: 14px; background: var(--ink); }
.akb-orgs--compact .akb-org__coords { background: var(--deep); }
.akb-equipe .akb-contacts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 16px; }
.akb-contact { padding: 16px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.akb-contact header { display: flex; gap: 12px; align-items: center; }
.akb-contact h3 { font-size: 1rem; }
.akb-contact header p { color: var(--muted); font-size: .8rem; }
.akb-contact__body { display: grid; gap: 6px; font-size: .88rem; }
.akb-contact__body a { color: var(--text); }
.akb-contact__note { color: #C9D9D6; }
.akb-contact__edit summary, .akb-contact__new summary { cursor: pointer; list-style: none; }
.akb-contact__edit summary { color: var(--orange); font-size: .85rem; }
.akb-contact__edit[open] { padding-top: 10px; border-top: 1px solid var(--line); }
.akb-contact__new summary::-webkit-details-marker, .akb-contact__edit summary::-webkit-details-marker { display: none; }
.akb-contactform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.akb-contactform__actions { grid-column: 1 / -1; }
.akb-contact__new[open] summary { margin-bottom: 4px; }
:where(.akb-app) input[type="tel"] { width: 100%; background: var(--ink); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; font: 400 .95rem var(--body); min-height: 42px; }

/* Archives */
.akb-archives { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.akb-folders { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-lg); background: var(--deep); border: 1px solid var(--line); }
.akb-folders__group { margin: 14px 10px 6px !important; color: #5F7D85; font-size: .76rem; font-weight: 500; }
.akb-folder { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; cursor: pointer; text-align: left; color: var(--muted); font-size: .9rem; }
.akb-folder .akb-ico { width: 18px; height: 18px; }
.akb-folder em { font: 600 .78rem var(--display); font-style: normal; padding: 1px 8px; border-radius: 999px; background: rgba(140, 205, 214, .08); }
.akb-folder:hover { background: var(--deep-2); color: var(--text); }
.akb-folder[aria-pressed="true"] { background: var(--deep-2); color: var(--text); }
.akb-folder[aria-pressed="true"] .akb-ico { color: var(--orange); }
.akb-folders__zip { margin-top: 16px; }
.akb-folders__hint { color: #5F7D85; font-size: .78rem; margin: 8px 4px 0 !important; }
.akb-archives__main { min-width: 0; }
.akb-archives__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.akb-archives__head h2 { font-size: 1.4rem; }
.akb-archives__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.akb-uploadpanel { margin-bottom: 16px; display: grid; gap: 14px; border-color: var(--orange); }
.akb-uploadpanel__actions { display: flex; justify-content: flex-end; gap: 8px; }
.akb-drop--big { padding: 36px 16px; }
.akb-drop.is-over { border-color: var(--orange); background: rgba(255, 138, 30, .08); }
.akb-filelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.akb-filelist:empty { display: none; }
.akb-filelist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line); font-size: .86rem; }
.akb-filelist em { font-style: normal; color: var(--muted); white-space: nowrap; }
.akb-toolbar--slim { padding: 10px; }
.akb-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.akb-file { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); background: var(--deep); border: 1px solid var(--line); }
.akb-file:hover { border-color: var(--line-2); }
.akb-file__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 138, 30, .1); color: var(--orange); }
.akb-file__icon.is-image { background: rgba(79, 216, 232, .1); color: var(--cyan); }
.akb-file__icon .akb-ico { width: 20px; height: 20px; }
.akb-file__main { display: flex; flex-direction: column; min-width: 0; }
.akb-file__main strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akb-file__main > span { color: var(--muted); font-size: .82rem; }
.akb-file__main a { color: var(--text); text-underline-offset: 3px; }
.akb-file__meta { display: block; color: #5F7D85; }
.akb-file__actions { display: flex; align-items: center; gap: 6px; }
.akb-file__actions form { margin: 0; }
.akb-dupbanner--archive { background: rgba(182, 156, 255, .1); border-color: rgba(182, 156, 255, .45); color: #DCD0FF; }
.akb-dupbanner--archive .akb-ico { color: #B69CFF; }

/* Saisie en étapes */
.akb-bienform.is-wizard .akb-formnav { gap: 4px; }
.akb-formnav a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: center; }
.akb-formnav b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); font: 700 .8rem var(--display); color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.akb-formnav span { display: flex; flex-direction: column; line-height: 1.25; }
.akb-formnav small { color: #5F7D85; font-size: .74rem; }
.akb-formnav a.is-filled b { border-color: var(--green); color: var(--green); }
.akb-formnav a.is-active b { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.akb-formnav a.is-active { border-left-color: transparent; }
.akb-bienform:not(.is-wizard) .akb-formnav b { display: none; }
.akb-bienform.is-wizard .akb-formnav { position: sticky; top: 24px; }
.akb-bienform.is-wizard .akb-fs { animation: akb-stepin .25s ease-out; }
@keyframes akb-stepin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.akb-app input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 107, 107, .2); }
.akb-savebar [data-step-prev], .akb-savebar [data-step-next] { min-width: 120px; }
.akb-switch { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink); cursor: pointer; }
.akb-switch input { position: absolute; opacity: 0; }
.akb-switch__track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--deep-3); transition: background-color .2s; }
.akb-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.akb-switch input:checked + .akb-switch__track { background: #B69CFF; }
.akb-switch input:checked + .akb-switch__track::after { transform: translateX(18px); }
.akb-switch input:focus-visible + .akb-switch__track { outline: 2px solid var(--orange); outline-offset: 2px; }
.akb-switch strong { display: block; font-weight: 500; }
.akb-switch small { color: var(--muted); font-size: .82rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.akb-dash__map, .akb-dash__recent { grid-column: 1 / -1; grid-row: auto; }
	.akb-dash__types, .akb-dash__regions, .akb-dash__todo, .akb-dash__sources { grid-column: span 6; }
	.akb-dash__pipeline, .akb-dash__comm { grid-column: 1 / -1; }
	.akb-dash__next, .akb-dash__files, .akb-dash__contacts { grid-column: span 6; }
	.akb-archives { grid-template-columns: 220px minmax(0, 1fr); }
	.akb-dash__activity { grid-column: span 6; grid-row: auto; }
	.akb-docrow, .akb-docrow--new { grid-template-columns: 1fr 1fr; }
	.akb-app .akg { grid-template-columns: 1fr; }
	.akb-fiche__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.akb-fiche__col--main { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.akb-main { margin-left: 0; padding: 20px 16px calc(var(--bar) + 32px + env(safe-area-inset-bottom)); }
	.akb-nav {
		inset: auto 0 0 0; width: auto; height: calc(var(--bar) + env(safe-area-inset-bottom));
		flex-direction: row; align-items: center; gap: 0; padding: 0 6px env(safe-area-inset-bottom);
		border-right: 0; border-top: 1px solid var(--line); background: rgba(7, 30, 40, .94);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	}
	.akb-brand, .akb-nav__name, .akb-avatar { display: none; }
	.akb-nav__list { flex-direction: row; flex: 1; gap: 0; }
	.akb-nav__list { overflow-x: auto; scrollbar-width: none; }
	.akb-nav__list li { flex: 1 1 0; min-width: 0; }
	.akb-nav__list a { font-size: .6rem; }
	.akb-nav__list a { flex-direction: column; gap: 3px; padding: 8px 0; font-size: .66rem; text-align: center; border-radius: 10px; }
	.akb-nav__list a > span { display: none; }
	.akb-nav__list a::after { content: attr(data-short); }
	.akb-nav__list a[aria-current="page"] { background: none; color: var(--orange); }
	.akb-nav__list a[aria-current="page"]::before { left: 30%; right: 30%; top: -1px; bottom: auto; width: auto; height: 2px; border-radius: 0 0 2px 2px; }
	.akb-nav__add { margin: 0; padding: 0; border: 0; }
	.akb-nav__admin { display: none; }
	.akb-nav__user { margin: 0; padding: 0 0 0 4px; border: 0; }

	.akb-app--fullmap .akb-main { height: calc(100dvh - var(--bar) - env(safe-area-inset-bottom)); padding: 0; }
	.akb-sheet {
		top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 172px;
		border-radius: 20px 20px 0 0; border-bottom: 0; padding-top: 6px;
		transition: height .3s cubic-bezier(.2, .8, .2, 1);
	}
	.akb-sheet.is-open { height: 72%; }
	.akb-sheet__handle { display: block; align-self: center; width: 64px; height: 20px; border: 0; background: none; cursor: pointer; padding: 0; }
	.akb-sheet__handle span:first-child { display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 4px; background: var(--line-2); }
	.akb-maptools { top: 12px; right: 12px; }
	.akb-mapapp .leaflet-bottom { bottom: 172px; }
	.akb-mapapp .leaflet-bottom.leaflet-left { left: 0; }
	.akb-mapapp .akb-readout { display: none; }

	.akb-hero { min-height: 240px; }
	.akb-dash__types, .akb-dash__regions, .akb-dash__todo, .akb-dash__sources, .akb-dash__activity { grid-column: 1 / -1; }
	.akb-bienform { grid-template-columns: 1fr; padding-bottom: 40px; }
	.akb-dash__next, .akb-dash__files, .akb-dash__contacts { grid-column: 1 / -1; }
	.akb-tiles { grid-template-columns: 1fr 1fr; }
	.akb-tile__value { font-size: 1.3rem; }
	.akb-archives { grid-template-columns: 1fr; }
	.akb-folders { position: static; flex-direction: row; overflow-x: auto; padding: 8px; scrollbar-width: none; }
	.akb-folder { width: auto; white-space: nowrap; grid-template-columns: 18px auto auto; }
	.akb-folders__group, .akb-folders__hint { display: none; }
	.akb-folders__zip { margin: 0 0 0 4px; white-space: nowrap; }
	.akb-file { grid-template-columns: 36px minmax(0, 1fr); }
	.akb-file__actions { grid-column: 1 / -1; justify-content: flex-end; }
	.akb-orgs { grid-template-columns: 1fr; }
	.akb-contactform { grid-template-columns: 1fr; }
	.akb-formnav small { display: none; }
	.akb-formnav a { grid-template-columns: 24px auto; gap: 6px; }
	.akb-formnav b { width: 24px; height: 24px; font-size: .72rem; }
	.akb-bienform.is-wizard .akb-formnav { top: 0; }
	.akb-savebar__cancel { display: none; }
	.akb-savebar [data-step-prev], .akb-savebar [data-step-next] { min-width: 0; }
	.akb-formnav { position: sticky; top: 0; z-index: 50; flex-direction: row; overflow-x: auto; gap: 4px; margin: -20px -16px 0; padding: 10px 16px; background: rgba(7, 30, 40, .95); border-bottom: 1px solid var(--line); scrollbar-width: none; }
	.akb-formnav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 6px 8px; }
	.akb-formnav a.is-active { border-bottom-color: var(--orange); background: none; }
	.akb-grid { grid-template-columns: 1fr; }
	.akb-savebar { left: 0; bottom: calc(var(--bar) + env(safe-area-inset-bottom)); padding: 10px 16px; }
	.akb-savebar__info { display: none; }
	.akb-savebar .akb-btn--primary { flex: 1; }
	.akb-dangerzone { margin: 0 0 100px; }
	.akb-main:has(.akb-bienform) { padding-bottom: calc(var(--bar) + 120px); }
	.akb-docrow, .akb-docrow--new { grid-template-columns: 1fr; }
	.akb-succ { grid-template-columns: 1fr; }
	.akb-uploadform { grid-template-columns: 1fr; }
	.akb-app .akg-map { height: 340px; }
	.akb-listapp__export { margin-left: 0; }
	.akb-map--overview { height: 340px; }
	.akb-toolbar .akb-field { flex: 1 1 140px; }

	.akb-fiche__head { grid-template-columns: 1fr; }
	.akb-fiche__side { align-items: flex-start; }
	.akb-tags, .akb-fiche__actions { justify-content: flex-start; }
	.akb-fiche__grid { grid-template-columns: minmax(0, 1fr); }
	.akb-map--fiche { height: 360px; }
	.akb-coords__actions { width: 100%; }
	.akb-coords__actions .akb-btn--primary { flex: 1; }

	.akb-login { grid-template-columns: 1fr; }
	.akb-login__field { min-height: 30vh; }
	.akb-login__panel { border-left: 0; border-top: 1px solid var(--line); }
	.akb-login__brand { margin-bottom: 28px; }
	.akb-lightbox img { padding: 56px 8px; }
}

@media (max-width: 520px) {
	.akb-facts, .akb-access { grid-template-columns: 1fr; }
	.akb-fiche__title { align-items: flex-start; }
	.akb-shape--lg { width: 56px; height: 56px; }
	.akb-seg button { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
	.akb-app *, .akb-app *::before, .akb-app *::after { animation: none !important; transition: none !important; }
}


/* ---------- Impression (fiche, documents) ---------- */
@media print {
	.akb-app { --ink: #fff; --deep: #fff; --deep-2: #f3f3f3; --text: #111; --muted: #555; --line: #ccc; --line-2: #bbb; background: #fff; color: #111; font-size: 11pt; }
	.akb-nav, .akb-skip, .akb-fiche__actions, .akb-folders, .akb-archives__actions, .akb-file__actions, .akb-fiche__orgs, .akb-savebar, .akb-coords__actions, .akb-seg, .akb-readout, .akb-back, .akb-toolbar, .akb-flash, .akb-lightbox, .leaflet-control-container, .akb-listapp__bar .akb-btn, .akb-dupbanner { display: none !important; }
	.akb-main { margin: 0 !important; padding: 0 !important; }
	.akb-panel { border: 1px solid #ccc; break-inside: avoid; box-shadow: none; }
	.akb-fiche__grid { grid-template-columns: 1fr 1fr !important; }
	.akb-map--fiche { height: 300px !important; }
	.akb-frame::before, .akb-frame::after { display: none; }
	.akb-tags li, .akb-statut { border: 1px solid #999; background: none; }
	.akb-fiche::after { content: "Succession Abou Kano – document confidentiel, réservé aux ayants droit."; display: block; margin-top: 16px; font-size: 9pt; color: #555; }
	a { color: #111 !important; text-decoration: none; }
}


/* =====================================================================
   v1.3 – Thème sobre et futuriste : graphite, verre dépoli, un seul accent
   ===================================================================== */
.akb-app {
	font-size: 15px; letter-spacing: -.005em;
	background:
		radial-gradient(1100px 520px at 88% -8%, rgba(255, 138, 30, .07), transparent 60%),
		radial-gradient(900px 600px at -10% 110%, rgba(79, 216, 232, .045), transparent 60%),
		var(--ink);
	background-attachment: fixed;
}
:where(.akb-app) :where(h1, h2, h3) { font-weight: 600; letter-spacing: -.025em; }
.akb-app h1 { letter-spacing: -.035em; }
.akb-ref, .akb-coords__val strong, .akb-readout, .akb-login__coords { font-family: var(--mono) !important; letter-spacing: 0; }
.akb-num, .akb-tile__value, .akb-big, .akb-row__value, .akb-result__value, .akb-card__foot strong, .akb-bars__value, .akb-phone, .akb-cluster span, .akg-stats dd { font-family: var(--body) !important; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.akb-num { font-weight: 600; border-bottom-width: 2px; }

/* Surfaces en verre, sans cadres lourds */
.akb-panel, .akb-tile, .akb-card, .akb-org, .akb-file, .akb-folders, .akb-toolbar, .akb-hero {
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015)) , var(--deep);
	border: 1px solid var(--line);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 40px -24px rgba(0, 0, 0, .6);
	border-radius: 20px;
}
.akb-tile, .akb-file { border-radius: 16px; }
.akb-tile:hover, .akb-card:hover, .akb-file:hover, .akb-org:hover { border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 24px 48px -24px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 138, 30, .06); }
.akb-tile::after { width: 2px; }
.akb-hero { background: radial-gradient(800px 300px at 15% 120%, rgba(255, 138, 30, .10), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--deep); }
.akb-hero .akb-contours { opacity: .9; }

/* Cadres de carte : anneau lumineux discret au lieu des équerres */
.akb-frame { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.akb-frame::before, .akb-frame::after { display: none; }

/* Navigation flottante */
.akb-nav { background: rgba(7, 30, 40, .7); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-right: 1px solid var(--line); }
.akb-brand__mark { border-radius: 12px; background: linear-gradient(140deg, rgba(255, 138, 30, .22), rgba(255, 138, 30, .04)); border-color: rgba(255, 138, 30, .3); box-shadow: 0 0 24px -6px rgba(255, 138, 30, .5); }
.akb-nav__list a { border-radius: 12px; font-weight: 450; }
.akb-nav__list a[aria-current="page"] { background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line); }
.akb-nav__list a[aria-current="page"]::before { left: auto; right: 12px; top: 50%; bottom: auto; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; box-shadow: 0 0 10px var(--orange); }

/* Boutons */
.akb-btn { border-radius: 12px; border-color: var(--line-2); background: rgba(255, 255, 255, .04); font-weight: 500; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .1s; }
.akb-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.akb-btn--primary { background: linear-gradient(180deg, #FF9A3A, #FF8213); border-color: transparent; box-shadow: 0 10px 28px -10px rgba(255, 138, 30, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.akb-btn--primary:hover { background: linear-gradient(180deg, #FFA650, #FF8A1E); box-shadow: 0 14px 34px -10px rgba(255, 138, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .3); }
.akb-iconbtn, .akb-seg { border-radius: 12px; border-color: var(--line-2); background: var(--glass); }
.akb-seg button { border-radius: 9px; }
.akb-chip, .akb-tag, .akb-tags li, .akb-statut { backdrop-filter: blur(6px); }

/* Champs : remplis, sans bordure dure */
:where(.akb-app) :where(input[type="text"], input[type="search"], input[type="password"], input[type="tel"], input[type="date"], select, textarea) {
	background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
:where(.akb-app) :where(input, select, textarea):hover { border-color: rgba(255, 255, 255, .16); }
:where(.akb-app) :where(input, select, textarea):focus { background: rgba(255, 255, 255, .05); border-color: rgba(255, 138, 30, .7); box-shadow: 0 0 0 4px rgba(255, 138, 30, .14); }
.akb-app .is-autofilled { border-color: rgba(47, 208, 138, .5) !important; box-shadow: 0 0 0 4px rgba(47, 208, 138, .1); }
.akb-checkitem { border-radius: 12px; background: rgba(255, 255, 255, .025); }

/* Formulaire en étapes : rail lumineux */
.akb-formnav a { border-radius: 12px; border-left: 0; }
.akb-formnav a.is-active { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.akb-formnav b { border-width: 1px; }
.akb-formnav a.is-active b { box-shadow: 0 0 18px -2px rgba(255, 138, 30, .7); }
.akb-savebar { background: rgba(7, 30, 40, .78); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }

/* Feuille de la carte et éléments flottants */
.akb-sheet { background: rgba(9, 34, 46, .72); border-color: var(--line); border-radius: 22px; -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); }
.akb-app .leaflet-bar a { background: rgba(9, 34, 46, .78); }
.akb-tip { background: rgba(9, 34, 46, .92) !important; border-color: var(--line-2) !important; border-radius: 10px !important; }
.akb-pin span { border-color: #071E28; }
.akb-cluster span { background: rgba(9, 34, 46, .9); border-width: 1.5px; }

/* Connexion */
.akb-login__panel { background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent), var(--deep); }
.akb-login h1 { font-weight: 600; }

@media (prefers-reduced-transparency: reduce) {
	.akb-nav, .akb-sheet, .akb-savebar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--deep); }
}

.akb-result--place .akb-shape { color: var(--orange); background: rgba(255, 138, 30, .1); }
.akb-place { background: none; border: 0; }
.akb-place span { position: absolute; inset: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(79, 216, 232, .9); }
.akb-place span::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(79, 216, 232, .8); animation: akb-ping 1.8s ease-out infinite; }
.akb-popup .leaflet-popup-content-wrapper, .akb-popup .leaflet-popup-tip { background: rgba(9, 34, 46, .94); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85); }
.akb-popup .leaflet-popup-content-wrapper { border-radius: 16px; }
.akb-popup a.leaflet-popup-close-button { color: var(--muted); }
.akb-herepop { display: grid; gap: 4px; min-width: 190px; }
.akb-herepop strong { font-weight: 600; }
.akb-herepop span { color: var(--muted); font: 400 .8rem var(--mono); margin-bottom: 8px; }
.akb-herepop .akb-btn { color: #1C0F02 !important; text-decoration: none; }


/* =====================================================================
   v1.3.1 – Retour à la palette lagune, titres resserrés, menus lisibles
   ===================================================================== */
/* Titres plus compacts et plus propres */
.akb-hero__statement { font-size: clamp(1.45rem, 2.5vw, 2.15rem); font-weight: 500; line-height: 1.28; letter-spacing: -.02em; max-width: 30ch; }
.akb-hero__hello { font-size: .92rem; }
.akb-pagehead h1 { font-size: clamp(1.5rem, 2.3vw, 1.95rem); font-weight: 600; letter-spacing: -.02em; }
.akb-fiche__title h1 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.akb-login h1 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); letter-spacing: -.025em; }
.akb-panel > h2, .akb-panel__head h2, .akb-fs > h2 { font-size: 1rem; letter-spacing: -.01em; }
.akb-tile__value { font-size: 1.4rem; font-weight: 600; }
.akb-brand__text strong { font-size: .98rem; letter-spacing: -.01em; }

/* Menus déroulants : texte lisible sur fond lagune (Windows, Android, Chrome) */
:where(.akb-app) select { color-scheme: dark; }
.akb-app select option, .akb-app select optgroup { background-color: #0C2A37; color: #E4EFEC; }
.akb-app select option:checked { background-color: #12384A; }

/* La cible animée revient sur le tableau de bord */
.akb-hero__reticle { position: absolute; right: clamp(40px, 9vw, 140px); top: 50%; width: 96px; height: 96px; transform: translateY(-50%); pointer-events: none; }
.akb-hero__reticle::before, .akb-hero__reticle::after { content: ""; position: absolute; background: rgba(255, 138, 30, .65); }
.akb-hero__reticle::before { left: 50%; top: -26px; bottom: -26px; width: 1px; }
.akb-hero__reticle::after { top: 50%; left: -26px; right: -26px; height: 1px; }
.akb-hero__reticle span { position: absolute; inset: 0; border: 1px solid rgba(255, 138, 30, .65); border-radius: 50%; }
.akb-hero__reticle span::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--orange); border-radius: 50%; animation: akb-ping 3.2s ease-out infinite; }
.akb-hero__reticle em { position: absolute; left: calc(100% + 18px); top: calc(100% + 10px); font: 500 .8rem var(--mono); font-style: normal; color: var(--orange); white-space: nowrap; letter-spacing: .02em; }
@media (max-width: 860px) { .akb-hero__reticle { display: none; } }


/* =====================================================================
   v1.4 – À propos, Mon compte
   ===================================================================== */
.akb-nav__me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; margin: -6px; border-radius: 12px; text-decoration: none; }
.akb-nav__me:hover, .akb-nav__me[aria-current="page"] { background: rgba(255, 255, 255, .05); }
.akb-nav__name { display: flex; flex-direction: column; line-height: 1.25; }
.akb-nav__name small { color: var(--muted); font-size: .74rem; }
.akb-avatar--lg { width: 56px; height: 56px; font-size: 1.3rem; }

.akb-about { display: grid; gap: 20px; }
.akb-about__hero { position: relative; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 0; }
.akb-about__hero .akb-contours { opacity: .8; }
.akb-about__heroin { position: relative; padding: clamp(22px, 4vw, 40px); max-width: 760px; }
.akb-about__kicker { color: var(--orange); font: 500 .82rem var(--mono); margin-bottom: 10px !important; }
.akb-about__heroin h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; line-height: 1.3; margin-bottom: 10px; }
.akb-about__heroin p { color: var(--muted); }
.akb-about__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.akb-about__people { margin: 0 0 6px; display: grid; gap: 12px; }
.akb-about__people dt { color: var(--muted); font-size: .82rem; }
.akb-about__people dd { margin: 2px 0 0; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.akb-about__contact { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.akb-about__contact li { display: flex; align-items: flex-start; gap: 10px; }
.akb-about__contact .akb-ico { color: var(--orange); width: 18px; height: 18px; margin-top: 2px; }
.akb-about__contact a { color: var(--text); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.akb-about__keys, .akb-about__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.akb-about__keys li, .akb-about__list li { position: relative; padding-left: 20px; color: #C9D9D6; font-size: .92rem; }
.akb-about__keys li::before, .akb-about__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--orange); }
.akb-about__keys strong { color: var(--text); font-weight: 600; }
.akb-about__list a { color: var(--orange); }
.akb-about__features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.akb-about__group { padding: 16px; border-radius: 16px; background: rgba(7, 30, 40, .55); border: 1px solid var(--line); }
.akb-about__group h3 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 10px !important; color: var(--text) !important; font-size: .98rem !important; font-weight: 600 !important; }
.akb-about__group h3 span { font: 500 .75rem var(--mono); color: var(--orange); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 138, 30, .35); }
.akb-about__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.akb-about__group li { position: relative; padding-left: 18px; font-size: .88rem; color: #C9D9D6; }
.akb-about__group li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 9px; height: 5px; border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green); transform: rotate(-45deg); }
.akb-about__stack { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.akb-about__stack h3 { margin: 0 0 8px !important; }
.akb-about__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.akb-about__chips li { padding: 4px 10px; border-radius: 999px; font-size: .8rem; background: rgba(140, 205, 214, .08); border: 1px solid var(--line); }
.akb-about__legal p { font-size: .88rem; }
.akb-about__legal p + p { margin-top: 8px !important; font-size: .8rem; }

.akb-account { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.akb-account__id { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.akb-account__id h2 { font-size: 1.2rem !important; }
.akb-account__pwd { display: grid; gap: 12px; }
.akb-account__pwd .akb-btn { justify-self: start; }
.akb-account__last { margin-top: 14px !important; }
.akb-account__members { grid-column: 1 / -1; }
.akb-account__members .akb-table td { vertical-align: top; }
.akb-account__members .akb-inlineform select { min-width: 200px; }
.akb-account__invite { margin-top: 6px; }
.akb-account .akb-switch { margin-top: 4px; }
@media (max-width: 860px) {
	.akb-about__grid, .akb-account { grid-template-columns: 1fr; }
	.akb-nav__me { flex: 0 0 auto; padding: 0 4px; margin: 0; }
	.akb-nav__me .akb-avatar { display: grid; width: 30px; height: 30px; font-size: .8rem; }
	.akb-nav__list li { flex: 0 0 auto; min-width: 52px; }
	.akb-nav__name { display: none; }
}
