:root {
  --vc-primary: #2563eb;
  --vc-primary-dark: #1d4ed8;
  --vc-primary-subtle: #eff6ff;
  --vc-accent: #c2410c;
  --vc-slate: #0f172a;
  --vc-dark: #1e293b;
  --vc-muted: #475569;
  --vc-soft: #64748b;
  --vc-border: #e2e8f0;
  --vc-border-hi: #cbd5e1;
  --vc-bg-soft: #f8fafc;
  --vc-card-bg: #ffffff;
  --vc-radius: 10px;
  --vc-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
  --vc-shadow-md: 0 6px 18px rgba(15, 23, 42, 0.14);
  --vc-shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.22);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  font-family: var(--font-sans);
  color: var(--vc-dark);
  background: var(--vc-bg-soft);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body.vc-mobile-shell {
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ── Barre supérieure compacte de modes (Style application WebView / Hydra) ── */
.vc-top-modebar {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border-bottom: 1px solid var(--vc-border);
  z-index: 75;
}

.vc-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  background: #f8fafc;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--vc-border);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  flex-wrap: nowrap;
}

.vc-mode-tabs::-webkit-scrollbar {
  display: none;
}

.vc-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vc-muted);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.vc-mode-tab.active {
  background: var(--vc-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

.vc-tab-fascicolo {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
  font-weight: 700;
}

.vc-hud-fascicolo {
  pointer-events: auto;
  background: rgba(239, 246, 255, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vc-hud-fascicolo:hover {
  background: #dbeafe;
}

.vc-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 99px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
}

/* ── Barre d'outils de recherche et fonds de carte ──────────────────────── */
.vc-toolbar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--vc-border);
  z-index: 1200;
}

.vc-toolbar {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vc-search-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex: 1 1 320px;
  min-width: 0;
  position: relative;
}

.vc-search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.vc-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.vc-search-input {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 11px 0 34px;
  font-size: 14px;
  line-height: normal;
  border: 1.5px solid var(--vc-border-hi);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--vc-slate);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.vc-search-input:focus {
  border-color: var(--vc-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.vc-search-input-compact {
  padding-left: 10px;
  padding-right: 10px;
}

#foglioInput {
  text-transform: uppercase;
}

.vc-catasto-inputs {
  display: grid;
  grid-template-columns: 2fr 0.85fr 0.85fr;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.vc-btn-search {
  background: var(--vc-primary);
  color: #ffffff;
  border: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.vc-btn-search:hover {
  background: var(--vc-primary-dark);
}

.vc-btn-sm {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.vc-tools-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.vc-layers-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.vc-layer-btn {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vc-muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.vc-layer-btn.active {
  background: #ffffff;
  color: var(--vc-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vc-btn-tool {
  background: #ffffff;
  border: 1px solid var(--vc-border-hi);
  color: #334155;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12.5px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.vc-btn-tool:hover,
.vc-btn-tool.active {
  background: var(--vc-primary-subtle);
  border-color: var(--vc-primary);
  color: var(--vc-primary-dark);
}

/* Liste déroulante d'autocomplétion */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 240px;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid var(--vc-border-hi);
  border-radius: 10px;
  box-shadow: var(--vc-shadow-lg);
  max-height: 270px;
  overflow-y: auto;
  z-index: 1300;
  display: none;
}

.autocomplete-dropdown.open {
  display: block;
}

.ac-item {
  padding: 9px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.ac-item:last-child {
  border-bottom: none;
}

.ac-item:hover,
.ac-item.active {
  background: var(--vc-primary-subtle);
}

.ac-item-sub {
  font-size: 11px;
  color: var(--vc-soft);
}

.ac-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--vc-bg-soft);
  border: 1px solid var(--vc-border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--vc-primary);
  flex-shrink: 0;
}

/* ── Conteneur de la carte (100 % de l'espace utile restant) ─────────────── */
.vc-map-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #f1f5f9;
}

.vc-map-wrapper.vc-is-fullscreen,
.vc-map-wrapper:fullscreen,
.vc-map-wrapper:-webkit-full-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 9999 !important;
}

#map {
  width: 100%;
  height: 100%;
  background: #e5e9f0;
  cursor: crosshair;
}

#map.blank-bg,
#map3d.blank-bg {
  background: #ffffff;
}

/* ── Boutons engrenage/aide flottants et contrôles Zoom Leaflet / MapLibre ─ */
.vc-map-gear-btn,
.vc-map-help-btn {
  position: absolute;
  left: 10px;
  z-index: 820;
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #334155;
  border: 1px solid var(--vc-border-hi);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vc-map-gear-btn {
  top: 10px;
}

.vc-map-help-btn {
  top: 126px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

body.vc-mode-3d .vc-map-help-btn {
  top: 158px;
}

.vc-map-gear-btn:hover,
.vc-map-gear-btn.active,
.vc-map-help-btn:hover,
.vc-map-help-btn.active {
  background: var(--vc-primary-subtle);
  border-color: var(--vc-primary);
  color: var(--vc-primary-dark);
}

/* Alignement des boutons de zoom Leaflet sous l'engrenage (top: 52px, left: 10px) */
#map .leaflet-top.leaflet-left {
  top: 42px;
  left: 0;
}

#map .leaflet-control-zoom {
  margin-top: 10px;
  margin-left: 10px;
  border: 1px solid var(--vc-border-hi) !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2) !important;
}

#map .leaflet-control-zoom a {
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  color: #1e293b !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  border-bottom: 1px solid var(--vc-border);
}

#map .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

#map .leaflet-control-zoom a:hover {
  background: #f1f5f9 !important;
}

#map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  border-radius: 5px;
  font-size: 10px !important;
  padding: 2px 6px !important;
  margin: 0 10px 8px 0 !important;
}

/* ── HUD Dossier + Coordonnées + Plein écran + Moniteur client ───────────── */
.vc-map-hud {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 810;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.vc-hud-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vc-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.vc-coords-badge {
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vc-hover-3d-badge {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
}

.vc-map-fs-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.vc-map-fs-btn:hover {
  background: rgba(37, 99, 235, 0.92);
}

/* ── Indicateur Zoom minimal et Toast flottant ────────────────────────────── */
.vc-center-status {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 815;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 110px);
}

.vc-zoom-hint {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fef08a;
  padding: 6px 10px 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  border: 1px solid rgba(254, 240, 138, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.vc-zoom-hint svg {
  flex-shrink: 0;
}

.vc-zoom-jump-btn {
  flex-shrink: 0;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.toast-banner {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--vc-shadow-md);
  display: none;
  text-align: center;
}

.toast-banner.show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ── Panneau flottant de mesure ──────────────────────────────────────────── */
.vc-measuring-panel {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: var(--vc-shadow-md);
  border: 1px solid var(--vc-border);
  padding: 8px 12px;
  z-index: 825;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.vc-measure-val {
  font-weight: 700;
  color: var(--vc-primary);
}

.vc-measure-actions {
  display: inline-flex;
  gap: 6px;
}

/* ── Inspecteur latéral (Desktop) / Bottom Sheet coulissant (Mobile) ─────── */
.vc-inspector {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 370px;
  max-width: calc(100% - 28px);
  max-height: calc(100% - 28px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--vc-shadow-lg);
  border: 1px solid var(--vc-border);
  z-index: 1000;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: vcSlideInDesktop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes vcSlideInDesktop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vc-sheet-handle {
  display: none;
}

.vc-inspector-header {
  background: var(--vc-slate);
  color: #ffffff;
  padding: 11px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.vc-inspector-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.vc-inspector-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
}

.vc-inspector-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vc-inspector-close:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.vc-inspector-body {
  padding: 12px 14px 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Contenu interne de l'inspecteur de fiche parcellaire */
.vc-ref-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vc-idu-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vc-idu-code {
  margin-top: 3px;
  font-size: 16px;
  font-weight: 800;
  color: var(--vc-primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  word-break: break-all;
}

.vc-ref-comune {
  font-size: 17px;
  font-weight: 800;
  color: var(--vc-slate);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.vc-ref-sub {
  font-size: 11.5px;
  color: var(--vc-muted);
  margin-top: 2px;
}

.vc-provider-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--vc-primary-subtle);
  color: var(--vc-primary-dark);
  border: 1px solid #bfdbfe;
  flex-shrink: 0;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.kpi-box {
  background: var(--vc-bg-soft);
  border: 1px solid var(--vc-border);
  border-radius: 8px;
  padding: 7px 9px;
}

.kpi-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--vc-soft);
  text-transform: uppercase;
}

.kpi-val {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  color: var(--vc-slate);
}

.area-highlight-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border: 1px solid #fed7aa;
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.area-big {
  font-size: 18px;
  font-weight: 800;
  color: #9a3412;
}

.area-sub {
  font-size: 11px;
  color: #7c2d12;
  margin-top: 2px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.info-table tr {
  border-bottom: 1px solid #e2e8f0;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  text-align: left;
  font-weight: 500;
  color: var(--vc-soft);
  padding: 7px 8px 7px 0;
  width: 38%;
  vertical-align: top;
}

.info-table td {
  text-align: right;
  font-weight: 600;
  color: var(--vc-slate);
  padding: 7px 0;
  word-break: break-word;
}

.copy-btn {
  border: 1px solid var(--vc-border-hi);
  background: #ffffff;
  color: var(--vc-primary);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
}

.vc-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  margin-left: 0;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vc-copy-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.vc-copy-pill::before {
  content: "";
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}

.actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.actions-grid .btn-full {
  grid-column: 1 / -1;
  height: 40px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--vc-border-hi);
  background: #ffffff;
  color: var(--vc-dark);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.78;
  cursor: wait;
}

.btn-sm {
  height: 30px;
  padding: 0 9px;
  font-size: 11.5px;
}

.btn-primary {
  background: var(--vc-primary);
  border-color: var(--vc-primary);
  color: #ffffff;
}

.btn-accent {
  background: var(--vc-accent);
  border-color: var(--vc-accent);
  color: #ffffff;
}

.legal-box {
  background: var(--vc-bg-soft);
  border: 1px solid var(--vc-border);
  border-left: 3px solid var(--vc-primary);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--vc-muted);
}

.legal-box strong {
  display: block;
  color: var(--vc-slate);
  margin-bottom: 2px;
}

.legal-box .legal-institution {
  display: block;
  margin-top: 4px;
  color: var(--vc-primary);
  font-weight: 700;
}

.notice-box {
  padding: 12px;
  border-radius: 9px;
  font-size: 12.5px;
  line-height: 1.45;
}

.notice-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.notice-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

/* ── Modale d'options ────────────────────────────────────────────────────── */
.vc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.vc-modal-dialog {
  background: #ffffff;
  border: 1px solid var(--vc-border);
  border-radius: 14px;
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.3);
  overflow: hidden;
  animation: vcModalIn 0.16s ease-out;
}

.vc-help-dialog {
  max-width: 470px;
}

.vc-help-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vc-help-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--vc-primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.vc-help-step strong {
  display: block;
  font-size: 13px;
  color: var(--vc-slate);
  margin-bottom: 3px;
}

.vc-help-step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--vc-muted);
}

.vc-help-step code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: #e2e8f0;
  padding: 1px 4px;
  border-radius: 4px;
  color: var(--vc-slate);
}

@keyframes vcModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.vc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #f8fafc;
  border-bottom: 1px solid var(--vc-border);
  flex-shrink: 0;
}

.vc-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vc-primary);
}

.vc-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--vc-slate);
}

.vc-modal-close {
  background: transparent;
  border: none;
  color: var(--vc-soft);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vc-modal-close:hover {
  background: #e2e8f0;
  color: var(--vc-slate);
}

.vc-modal-body {
  padding: 13px 15px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.vc-modal-card {
  background: #f8fafc;
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-modal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--vc-muted);
}

.vc-opacity-badge {
  background: #ffffff;
  border: 1px solid var(--vc-border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--vc-primary);
}

.vc-layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-chip-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid var(--vc-border-hi);
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--vc-dark);
  cursor: pointer;
}

.vc-chip-check input {
  accent-color: var(--vc-primary);
  margin: 0;
}

.vc-range {
  width: 100%;
  accent-color: var(--vc-primary);
}

.vc-extra-bases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vc-modal-measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vc-modal-action-btn {
  height: 36px;
  justify-content: center;
  font-size: 12.5px;
}

.vc-presets-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vc-preset-chip {
  background: #ffffff;
  border: 1px solid var(--vc-border-hi);
  color: var(--vc-dark);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.vc-preset-chip:hover {
  background: var(--vc-primary-subtle);
  border-color: var(--vc-primary);
  color: var(--vc-primary-dark);
}

/* Modales Dossier, Impression A4 et Moniteur client */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
  z-index: 10060;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: var(--vc-shadow-lg);
  width: 100%;
  max-width: 900px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--vc-border);
  gap: 10px;
  flex-wrap: wrap;
}

.modal-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.modal-body {
  padding: 14px;
  overflow-y: auto;
  background: #f1f5f9;
}

.preset-select {
  border: 1px solid var(--vc-border-hi);
  border-radius: 7px;
  padding: 0 8px;
  font-size: 12px;
  background: #ffffff;
}

.fascicolo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fascicolo-item {
  background: #ffffff;
  border: 1px solid var(--vc-border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Moniteur client */
.vc-network-table-wrap {
  max-height: 64dvh;
  overflow: auto;
  background: #ffffff;
}

.vc-network-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.vc-network-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--vc-border);
  color: var(--vc-soft);
  font-weight: 700;
}

.vc-network-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--vc-border);
  vertical-align: middle;
}

.vc-log-empty {
  text-align: center;
  padding: 24px !important;
  color: var(--vc-soft);
}

.vc-status-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.vc-status-ok {
  background: #dcfce7;
  color: #166534;
}

.vc-status-err {
  background: #fee2e2;
  color: #991b1b;
}

.vc-url-cell {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  color: var(--vc-muted);
}

/* Fiche d'impression A4 */
.print-sheet {
  background: #ffffff;
  color: #0f172a;
  max-width: 790px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid #cbd5e1;
}

.print-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0f4c81;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.print-doc-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f4c81;
  margin: 0;
}

.print-doc-sub {
  font-size: 11px;
  color: #475569;
  margin-top: 2px;
}

.print-meta-right {
  text-align: right;
  font-size: 11px;
  color: #475569;
}

.estratto-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1100 / 700;
  border: 1px solid #334155;
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 12px;
}

.estratto-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.compass-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #64748b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
}

.scale-overlay-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #64748b;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
}

.print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.print-box {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 11px;
}

.print-box h4 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: #0f4c81;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
}

.print-kv {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 2.5px 0;
  gap: 8px;
}

.print-kv span:first-child {
  color: #475569;
}

.print-kv span:last-child {
  font-weight: 600;
  text-align: right;
}

.print-footer-note {
  font-size: 10px;
  color: #475569;
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  line-height: 1.45;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(37, 99, 235, 0.22);
  border-top-color: var(--vc-primary);
  border-radius: 50%;
  animation: vcSpin 0.7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes vcSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Adaptations mobile (Bottom Sheet, champs 16px, paysage) ────────────── */
@media (max-width: 900px) {
  .vc-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px;
    gap: 6px;
  }

  .vc-search-group {
    flex: 0 0 auto;
    width: 100%;
  }

  .vc-search-input {
    height: 38px;
    font-size: 16px;
  }

  .vc-catasto-inputs {
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
  }

  .vc-btn-search {
    height: 38px;
    padding: 0 12px;
  }

  .vc-tools-group {
    width: 100%;
    justify-content: space-between;
  }

  .vc-layers-control {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .vc-layer-btn {
    flex: 1 1 auto;
    padding: 5px 6px;
    font-size: 12px;
    text-align: center;
  }

  .vc-map-hud {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
    align-items: flex-end;
  }

  .vc-hud-fascicolo {
    font-size: 11.5px;
    padding: 4px 8px;
  }

  .vc-coords-badge {
    font-size: 10.5px;
    padding: 3px 8px;
  }

  .vc-map-fs-btn {
    font-size: 11px;
    padding: 4px 8px;
  }

  .vc-center-status {
    top: auto;
    bottom: 44px;
    width: max-content;
    max-width: calc(100% - 20px);
  }

  .vc-zoom-hint {
    font-size: 11.5px;
    padding: 5px 8px 5px 10px;
    gap: 6px;
  }

  .vc-measuring-panel {
    bottom: 12px;
    left: 10px;
    right: 10px;
    justify-content: space-between;
  }

  .vc-inspector {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 62%;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.32);
    animation: vcSheetUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.vc-web-shell #mapWrapper:not(.vc-is-fullscreen) .vc-inspector {
    max-height: 75%;
  }

  @keyframes vcSheetUp {
    from {
      transform: translateY(100%);
      opacity: 0.85;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .vc-sheet-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    margin: 0 auto 6px;
    cursor: pointer;
  }

  .vc-inspector-header {
    padding: 7px 12px 9px;
  }

  .vc-inspector-title {
    font-size: 14px;
  }

  .vc-inspector-close {
    background: transparent;
    border-color: transparent;
    color: #cbd5e1;
  }

  .vc-inspector-close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
  }

  .vc-inspector-body {
    padding: 10px 12px 14px;
    gap: 8px;
  }

  .vc-inspector-body .vc-ref-box {
    padding: 8px 10px;
  }

  .vc-inspector-body .info-table th,
  .vc-inspector-body .info-table td {
    padding: 5px 0;
    font-size: 11.5px;
  }

  .vc-inspector-body .actions-grid .btn-full {
    height: 37px;
    font-size: 12.5px;
  }

  .print-grid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 540px) {
  .vc-top-modebar {
    padding: 4px 8px;
  }

  .vc-toolbar {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 4px 8px !important;
    gap: 6px !important;
  }

  .vc-search-group {
    flex: 1 1 240px !important;
    width: auto !important;
  }

  .vc-search-input,
  .vc-btn-search {
    height: 34px;
  }

  .vc-tools-group {
    width: auto !important;
  }

  .vc-inspector {
    max-height: 76%;
  }
}

/* ── Vue 3D MapLibre GL JS ─────────────────────────────────────────────── */
.vc-map3d-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f1f5f9;
}

.vc-map3d-canvas.mode-space {
  background: #0b1026;
}

.vc-3d-loading {
  position: absolute;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 600;
}

#mapWrapper .maplibregl-ctrl-top-left {
  top: 52px;
  left: 10px;
}

#mapWrapper .maplibregl-ctrl-top-left .maplibregl-ctrl {
  margin: 0;
  border-radius: 8px;
  border: 1px solid var(--vc-border-hi);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

#mapWrapper .maplibregl-ctrl-top-left .maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}

.building-popup-3d {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--vc-dark);
}

.building-popup-3d strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--vc-primary);
}

body.vc-mode-3d .vc-only-2d {
  display: none !important;
}

body.vc-mode-3d .vc-only-3d {
  display: block !important;
}

/* ── Version Web (Gabarit HTML/CSS CalculatriceGratuit · Identité Française) ─ */
:root {
  --fr-blue: #002395;
  --fr-red: #e1000f;
  --fr-white: #ffffff;
  --cg-accent: #3b82f6;
  --cg-heading: Georgia, 'Times New Roman', Times, serif;
}

html.vc-web-html,
body.vc-web-shell {
  height: auto !important;
  min-height: 100dvh;
  overflow-x: clip !important;
  overflow-y: auto !important;
  background: #ffffff;
  color: #0f172a;
}

body.vc-web-shell {
  display: flex;
  flex-direction: column;
}

.cg-main {
  flex: 1 0 auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-tool {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Barre de navigation supérieure */
.navbar {
  background-color: var(--fr-white);
  border-bottom: 1px solid var(--vc-border);
  border-top: 5px solid var(--fr-blue);
  position: relative;
  z-index: 1000;
}

.navbar .container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--vc-slate);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo i {
  margin-right: 0.75rem;
  width: 16px;
  height: 16px;
  background: var(--fr-blue);
  border-radius: 4px;
  position: relative;
  display: inline-block;
}

.logo i::after {
  content: "";
  position: absolute;
  right: -6px;
  width: 7px;
  height: 16px;
  background: var(--fr-red);
  border-radius: 0 4px 4px 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.logo-main span {
  color: var(--vc-soft);
  font-weight: 300;
}

.logo-slogan {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--vc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.nav-search {
  position: relative;
  flex: 1 1 160px;
  min-width: 0;
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: 0.5rem;
  display: none;
}

.nav-search-input {
  width: 100%;
  padding: 0.55rem 0.9rem 0.55rem 2.35rem;
  border-radius: 12px;
  border: 1px solid var(--vc-border);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--vc-slate);
  background-color: #f1f5f9;
  transition: all 0.2s;
  outline: none;
}

.nav-search-input:focus {
  background-color: #ffffff;
  border-color: var(--fr-blue);
  box-shadow: 0 0 0 3px rgba(0, 35, 149, 0.08);
}

.nav-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.9rem;
  pointer-events: none;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vc-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fr-blue);
}

@media (min-width: 1024px) {
  .nav-search {
    display: block;
  }

  .nav-links {
    display: flex;
    flex-shrink: 0;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--vc-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--fr-white);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--vc-border);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-links.active a {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
}

/* Fil d'Ariane */
.breadcrumbs {
  padding: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--vc-soft);
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--vc-soft);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--fr-blue);
}

/* Section Hero avec grille technique */
.tool-hero {
  padding: 2rem 1rem 2.25rem;
  text-align: center;
  background-image: linear-gradient(var(--vc-border) 1px, transparent 1px), linear-gradient(90deg, var(--vc-border) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

.tool-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, #ffffff 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.tool-hero h1 {
  font-family: var(--cg-heading);
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
  font-weight: 900;
  color: var(--vc-slate);
  line-height: 1.18;
}

.tool-hero p {
  font-size: 1.05rem;
  color: var(--vc-soft);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Espace de travail de la visionneuse */
.calculator-area {
  background: #f8fafc;
  padding: 2.75rem 0;
  border-top: 1px solid var(--vc-border);
  border-bottom: 1px solid var(--vc-border);
}

.tool-card {
  background: #ffffff;
  padding: 1.35rem;
  border-radius: 1.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--vc-border);
}

.vc-viewer-box {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 520px;
  max-height: 75vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--vc-border);
  border-radius: 12px;
  overflow: hidden;
}

body.vc-web-shell .autocomplete-dropdown {
  max-height: 230px;
}

@media (min-width: 901px) {
  body.vc-web-shell .vc-inspector {
    width: min(345px, 48%);
    top: 8px;
    right: 8px;
    max-height: calc(100% - 16px);
  }
}

@media (min-width: 680px) {
  .vc-viewer-box .vc-toolbar {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 6px 8px;
    gap: 6px;
  }

  .vc-viewer-box .vc-search-group {
    flex: 1 1 250px;
    min-width: 0;
  }

  .vc-viewer-box .vc-tools-group {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .tool-hero h1 {
    font-size: 1.65rem;
  }

  .calculator-area {
    padding: 1.5rem 0;
  }

  .tool-card {
    padding: 0.75rem;
    border-radius: 1.25rem;
  }

  .vc-viewer-box {
    height: 540px;
    max-height: 82dvh;
  }
}

/* Section éditoriale */
.article-section {
  padding: 4rem 0;
  line-height: 1.8;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--vc-muted);
  font-size: 1.05rem;
}

.article-content h2 {
  color: var(--vc-slate);
  font-family: var(--cg-heading);
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 2.5rem 0 1.25rem;
  border-left: 4px solid var(--cg-accent);
  padding-left: 1.25rem;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  color: var(--vc-slate);
  font-size: 1.3rem;
  margin-top: 1.75rem;
  font-weight: 700;
}

.step-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 1.5rem;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
  color: var(--vc-slate);
}

.step-box strong:first-child {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  color: var(--fr-blue);
}

.step-box ol {
  margin: 0;
  padding-left: 1.25rem;
}

.step-box li {
  margin-bottom: 0.65rem;
}

.step-box li:last-child {
  margin-bottom: 0;
}

.cg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.cg-faq-item {
  border: 1px solid var(--vc-border);
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0.9rem 1.2rem;
}

.cg-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--vc-slate);
}

.cg-faq-item p {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--vc-muted);
}

/* Grille de modes associés */
.related-tools {
  padding: 3rem 1.5rem 4.5rem;
  background: #ffffff;
  text-align: center;
  border-top: 1px solid var(--vc-border);
}

.related-tools h2 {
  font-family: var(--cg-heading);
  font-size: 1.85rem;
  color: var(--vc-slate);
  margin: 0 0 2rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.related-item {
  padding: 1.25rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid var(--vc-border);
  text-decoration: none;
  color: var(--vc-slate);
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
}

.related-item:hover {
  border-color: var(--cg-accent);
  background: #f8fafc;
  transform: translateY(-3px);
}

.related-icon {
  font-size: 1.25rem;
}

/* Pied de page sombre */
.footer {
  background-color: #0f172a;
  color: #e3e3e3;
  padding: 2.5rem 10px 2rem;
  text-align: center;
  margin: auto 0 0;
}

.footer-content {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer-logo span {
  color: #94a3b8;
  font-weight: 300;
}

.footer-logo i {
  width: 14px;
  height: 14px;
  background: var(--fr-blue);
  border-radius: 3px;
  position: relative;
  display: inline-block;
  margin-right: 4px;
}

.footer-logo i::after {
  content: "";
  position: absolute;
  right: -5px;
  width: 6px;
  height: 14px;
  background: var(--fr-red);
  border-radius: 0 3px 3px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  width: 100%;
  letter-spacing: 0.02em;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  body>*:not(#printModal) {
    display: none !important;
  }

  #printModal {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #printModal .modal-card {
    box-shadow: none !important;
    border: 0 !important;
    max-width: none !important;
    width: 100% !important;
    max-height: none !important;
  }

  #printModal .modal-head {
    display: none !important;
  }

  #printModal .modal-body {
    padding: 0 !important;
    overflow: visible !important;
    background: #ffffff !important;
  }

  .print-sheet {
    border: none !important;
    padding: 4mm !important;
    max-width: none !important;
  }
}