/* Techniproj, relevé du site officiel le 24/09/2026.
   Logos/favicons officiels non retouchés. Avenir locale uniquement tant que
   les droits de redistribution des fichiers de police ne sont pas confirmés. */
:root {
  --blue: #1844a7;
  --navy: #0f2b5e;
  --green: #46b022;
  --green-text: #287716;
  --blue-soft: #e7edf4;
  --line: #dbe2ec;
  --ink: #27406e;
  --muted: #52647b;
  --pale: #f5f7fa;
  --font-ui: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--pale);
}
body { background: var(--pale); }
button, input, textarea, select { font-family: var(--font-ui); }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.sidebar :focus-visible { outline-color: #fff; }
.sidebar .brand { padding: 6px 0 12px !important; }
.sidebar .brand-logo {
  display: block;
  width: 100%;
  max-width: 224px;
  height: auto;
  aspect-ratio: 659 / 164;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.sidebar .nav-item { border: 1px solid transparent; }
.sidebar .nav-item.active { background: #fff; color: var(--navy); }
.sidebar .nav-item:hover:not(.active) { background: #ffffff12; color: #fff; border-color: #ffffff35; }
.sidebar .dashboard-note, .sidebar .archive-status, .dashboard-updated { color: #d0ddec; }
.eyebrow { color: var(--green-text); font-weight: 700; letter-spacing: .09em; line-height: 1.5; }
.topbar { padding: 15px 24px; }
.topbar h1 { font-size: 1.13rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.4; }
.topbar .eyebrow { font-size: .65rem; }
.topbar-actions { flex-shrink: 0; }
.topbar-title { min-width: 0; }
.guide-intro {
  min-height: 208px;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 26px;
  background: linear-gradient(115deg, #fff 12%, #f5f8fb 68%, var(--blue-soft));
}
.guide-portrait { height: 178px; }
.guide-portrait:before { inset: 0; border-radius: 28px 28px 48px 28px; box-shadow: 0 7px 24px #0f2b5e09; }
.guide-portrait img { width: 162px; height: 170px; object-fit: contain; object-position: center; border-radius: 0; mix-blend-mode: multiply; }
.guide-badge {
  position: absolute; right: -5px; bottom: 13px; z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 3px solid white; border-radius: 50%; background: var(--blue); color: white; font-size: 14px;
}
.guide-intro h2 { font-size: clamp(1.35rem, 1.7vw, 1.85rem); line-height: 1.23; letter-spacing: -.025em; font-weight: 650; margin: 8px 0 12px; }
.guide-intro>div>p:last-child { font-size: .9rem; line-height: 1.6; color: var(--muted); max-width: 540px; }
.conversation { padding: 20px; gap: 16px; }
.dialog-avatar {
  width: 50px; height: 50px; flex: 0 0 50px;
  border: 1px solid var(--line); background-size: 128px auto;
  background-position: calc(50% - 5px) -3px;
  box-shadow: 0 3px 10px #0f2b5e0a;
}
.message { font-size: .9rem; line-height: 1.65; padding: 13px 16px; max-width: 90%; }
.assistant-message { background: #f0f4f9; color: var(--ink); }
.user-message { background: var(--blue); }
.starter-actions { margin-left: 60px; gap: 10px; }
.starter-actions button { min-height: 84px; padding: 12px; border-color: var(--line); }
.starter-actions b { font-size: .82rem; line-height: 1.4; font-weight: 650; }
.starter-actions small { font-size: .72rem; line-height: 1.45; }
.starter-actions button:hover { border-color: var(--blue); box-shadow: 0 3px 12px #1844a70a; }
.composer { background: white; border-color: #bfcce0; }
.composer textarea { font-size: .88rem; line-height: 1.6; min-height: 58px; }
.composer textarea::placeholder { color: #61738b; opacity: 1; }
.composer-footer>span, .composer-tools small { color: var(--muted); font-size: .7rem; }
.btn, .composer-footer button { font-weight: 650; }
.btn, .composer-footer button, .context-actions button { min-height: 36px; }
.btn.primary { box-shadow: 0 4px 12px #1844a71a; }
.btn.secondary { background: #f1f5fb; }
.btn.go-button { background: var(--green) !important; color: #102f07; box-shadow: 0 4px 12px #46b0221a !important; }
.qgis-head strong { font-size: .9rem; }
.qgis-head small { font-size: .72rem; line-height: 1.45; }
.project-card>small, #projectOpenStatus { display: block; color: var(--muted); font-size: .75rem; line-height: 1.6; margin-top: 10px; }
.project-title strong { font-size: .83rem; line-height: 1.5; overflow-wrap: anywhere; }
.project-title small { font-size: .7rem; line-height: 1.5; }
.project-card dt { font-size: .68rem; }
.project-card dd { font-size: .76rem; }
.project-layers p, .project-layers li small { font-size: .74rem; }
.project-layers li strong { font-size: .83rem; }
.mission-card>p, .mission-tip, .safety-card p { font-size: .76rem; line-height: 1.6; }
.safety-card strong { font-size: .8rem; }
.setup-guide img { width: 180px; height: 185px; object-fit: contain; object-position: center; mix-blend-mode: normal; border-radius: 24px 24px 44px 24px; }
.setup-guide p { color: #dae5f2; line-height: 1.65; }
.setup-lead { font-size: .87rem; line-height: 1.6; }
.setup-step h2, .dialog h2, .library-heading h2 { font-weight: 650; letter-spacing: -.02em; }
.catalog-brand { width: 178px; height: auto; object-fit: contain; }
.capabilities-page .topbar { padding: 17px max(24px,calc((100% - 1160px)/2)); }
.capabilities-page h1 { font-weight: 650; }
.capabilities-page .eyebrow { color: var(--green-text); }
@media (min-width:1081px) and (max-width:1320px) {
  .app-shell { grid-template-columns: 238px minmax(0,1fr); }
  .sidebar { padding-inline: 14px; }
  .assistant-workspace { grid-template-columns: minmax(0,1fr) 320px; }
  .guide-intro { grid-template-columns: 116px minmax(0,1fr); padding: 18px; gap: 18px; }
  .guide-portrait { height: 136px; }
  .guide-portrait img { width: 114px; height: 130px; }
  .starter-actions { margin-left: 0; }
}
@media (max-width:1080px) {
  .sidebar .brand-logo { width: 100%; height: auto; max-width: 220px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar-actions { flex-wrap: wrap; }
  .guide-intro { grid-template-columns: 130px minmax(0,1fr); padding: 20px; gap: 20px; }
  .guide-portrait { height: 145px; }
  .guide-portrait img { width: 130px; height: 139px; }
  .guide-intro h2 { font-size: 1.5rem; }
  .starter-actions { margin-left: 0; }
}
@media (max-width:600px) {
  .sidebar .brand { display: flex; width: 178px; }
  .sidebar .brand-logo { width: 100%; height: auto; }
  .topbar { padding: 16px; }
  .topbar-actions { display: flex; }
  .topbar-actions .status-pill { display: block; }
  .guide-intro { grid-template-columns: 84px minmax(0,1fr); padding: 16px; gap: 15px; min-height: 185px; }
  .guide-portrait { height: 104px; }
  .guide-portrait img { width: 83px; height: 98px; }
  .guide-intro h2 { font-size: 1.25rem; }
  .guide-intro>div>p:last-child { font-size: .81rem; }
  .guide-badge { width: 24px; height: 24px; right: -7px; bottom: 2px; font-size: 12px; }
  .conversation { padding: 16px 12px; }
  .message { max-width: calc(100% - 54px); font-size: .86rem; padding: 12px; }
  .user-message { max-width: 94%; }
  .dialog-avatar { width: 44px; height: 44px; flex-basis: 44px; background-size: 118px auto; }
  .starter-actions { grid-template-columns: 1fr; }
  .catalog-brand { display: none; }
}
