:root {
  --vcarte-ink: #2f231d;
  --vcarte-muted: #6e645d;
  --vcarte-line: rgba(104, 78, 58, 0.14);
  --vcarte-orange: #eb7307;
  --vcarte-purple: #8b2f6a;
  --vcarte-sand: #f6f0e8;
  --vcarte-paper: #fffdf9;
  --vcarte-panel-soft: rgba(246, 240, 232, 0.72);
  --vcarte-shadow: 0 24px 54px rgba(55, 35, 23, 0.08);
  --vcarte-shadow-soft: 0 14px 30px rgba(55, 35, 23, 0.06);
}

.vcarte-shell,
.vcarte-shell * {
  box-sizing: border-box;
}

.vcarte-shell {
  position: relative;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 22px;
  color: var(--vcarte-ink);
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.vcarte-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.vcarte-kicker,
.vcarte-panel-kicker {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vcarte-orange);
}

.vcarte-title,
.vcarte-panel h3,
.vcarte-selection-title,
.vcarte-contact-name {
  margin: 0;
  line-height: 1.05;
}

.vcarte-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  max-width: 14ch;
  color: var(--vcarte-orange);
}

.vcarte-intro,
.vcarte-panel-note,
.vcarte-selection-subtitle,
.vcarte-contact-role,
.vcarte-contact-source,
.vcarte-contact-line,
.vcarte-empty,
.vcarte-loading,
.vcarte-error {
  margin: 10px 0 0;
  color: var(--vcarte-muted);
  line-height: 1.55;
}

.vcarte-contact-line + .vcarte-contact-line {
  margin-top: 4px;
}

.vcarte-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.vcarte-panel {
  border: 1px solid var(--vcarte-line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: var(--vcarte-shadow);
}

.vcarte-panel--map,
.vcarte-panel--details {
  padding: 24px;
}

.vcarte-panel--details {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vcarte-panel-head,
.vcarte-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.vcarte-panel-head--compact {
  margin-bottom: 0;
}

.vcarte-panel-note {
  max-width: 26ch;
  text-align: right;
}

.vcarte-legend,
.vcarte-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vcarte-team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(91, 109, 131, 0.32) transparent;
}

.vcarte-contact-stack {
  display: grid;
  gap: 14px;
}

.vcarte-legend {
  margin-top: 0;
}

.vcarte-legend-item,
.vcarte-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid var(--vcarte-line);
  border-radius: 999px;
  background: #fff;
  color: var(--vcarte-ink);
  font: inherit;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.vcarte-legend-item:hover,
.vcarte-legend-item:focus-visible,
.vcarte-chip:hover,
.vcarte-chip:focus-visible {
  transform: translateY(-1px);
}

.vcarte-legend-item.is-active,
.vcarte-chip.is-active {
  border-color: var(--accent, var(--vcarte-orange));
  box-shadow: 0 14px 28px rgba(14, 34, 60, 0.1);
}

.vcarte-chip.is-contact-highlighted:not(.is-active) {
  border-color: var(--accent, var(--vcarte-orange));
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 18px rgba(14, 34, 60, 0.08);
}

.vcarte-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.vcarte-map-stage {
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--vcarte-line);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(246, 240, 232, 0.98));
}

.vcarte-map-root {
  min-height: 500px;
  display: grid;
  place-items: center;
}

.vcarte-france {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(14, 34, 60, 0.08));
}

.vcarte-department {
  cursor: pointer;
  transition:
    fill 160ms ease,
    stroke 160ms ease,
    filter 160ms ease;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.1;
  outline: none;
}

.vcarte-department:hover,
.vcarte-department:focus-visible {
  fill: var(--zone-hover, var(--zone-color));
  filter: brightness(1.03);
}

.vcarte-department.is-active {
  fill: var(--zone-hover, var(--zone-color));
  stroke: #0d1a2d;
  stroke-width: 2.2;
}

.vcarte-department.is-zone-active {
  filter: brightness(1.04);
  stroke: rgba(13, 26, 45, 0.55);
  stroke-width: 1.55;
}

.vcarte-department.is-contact-highlighted:not(.is-active) {
  filter: brightness(1.09);
  stroke: rgba(13, 26, 45, 0.72);
  stroke-width: 1.85;
}

.vcarte-selection-chip {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vcarte-selection-code,
.vcarte-meta-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7a8e;
}

.vcarte-contact-source {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 26px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
}

.vcarte-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--vcarte-line);
  border-radius: 18px;
  background: var(--vcarte-panel-soft);
}

.vcarte-section {
  padding-top: 10px;
  border-top: 1px solid rgba(19, 38, 63, 0.08);
}

.vcarte-panel--details .vcarte-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.vcarte-subcoverage {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(19, 38, 63, 0.12);
}

.vcarte-subcoverage-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7a8e;
}

.vcarte-contact {
  border: 1px solid var(--vcarte-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--vcarte-shadow-soft);
}

.vcarte-contact--primary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.vcarte-contact--primary:hover,
.vcarte-contact--primary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 47, 106, 0.2);
  box-shadow: 0 18px 30px rgba(55, 35, 23, 0.1);
  outline: none;
}

.vcarte-contact--primary.is-active {
  border-color: var(--accent, var(--vcarte-orange));
  box-shadow: 0 18px 30px rgba(55, 35, 23, 0.12);
  background: linear-gradient(180deg, #fffdf9 0%, #f9f2e9 100%);
}

.vcarte-contact--department {
  padding: 18px;
  border-color: var(--accent, var(--vcarte-orange));
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.vcarte-contact--department:hover,
.vcarte-contact--department:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(14, 34, 60, 0.1);
  outline: none;
}

.vcarte-contact--department.is-active {
  background: linear-gradient(180deg, #fffdf9 0%, #f9f2e9 100%);
}

.vcarte-contact--mini {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px 15px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.vcarte-contact--mini:hover,
.vcarte-contact--mini:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(139, 47, 106, 0.18);
  box-shadow: 0 16px 28px rgba(14, 34, 60, 0.1);
  outline: none;
}

.vcarte-contact--mini.is-active {
  border-color: var(--accent, var(--vcarte-orange));
  box-shadow: 0 16px 28px rgba(14, 34, 60, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.vcarte-contact--mini.is-zone-match:not(.is-active) {
  border-color: var(--accent, var(--vcarte-orange));
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.vcarte-avatar {
  width: 66px;
  height: 80px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--accent, var(--vcarte-orange));
  background: linear-gradient(180deg, #fffdf9 0%, #f8f0e6 100%);
  color: #fff;
  font-weight: 800;
}

.vcarte-avatar--initials {
  border-color: transparent;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.vcarte-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 14%;
  transform: scale(1.14);
  transform-origin: center;
}

.vcarte-contact-name {
  font-size: 1.1rem;
}

.vcarte-contact-zone {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--accent, var(--vcarte-orange));
  background: #fff;
  color: var(--accent, var(--vcarte-orange));
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vcarte-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.vcarte-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--vcarte-line);
  border-radius: 14px;
  background: #fff;
  color: var(--vcarte-ink);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.vcarte-action:hover,
.vcarte-action:focus-visible {
  transform: translateY(-1px);
}

.vcarte-action--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--vcarte-orange), #d96403);
}

.vcarte-contact-line a {
  color: inherit;
  text-decoration-thickness: 0.08em;
}

@media (max-width: 1120px) {
  .vcarte-grid {
    grid-template-columns: 1fr;
  }

  .vcarte-panel--details {
    position: static;
  }

  .vcarte-map-root {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .vcarte-shell {
    padding: 16px;
    border-radius: 0;
  }

  .vcarte-panel--map,
  .vcarte-panel--details {
    padding: 18px;
    border-radius: 22px;
  }

  .vcarte-header,
  .vcarte-panel-head,
  .vcarte-section-head {
    flex-direction: column;
  }

  .vcarte-panel-note {
    max-width: none;
    text-align: left;
  }

  .vcarte-meta {
    grid-template-columns: 1fr;
  }

  .vcarte-contact--primary {
    grid-template-columns: 1fr;
  }

  .vcarte-map-stage {
    padding: 12px;
  }
}
