:root {
  color-scheme: light;
  --ink: #18334b;
  --muted: #53677a;
  --navy: #153550;
  --wine: #782842;
  --line: #dce5ec;
  --surface: #fff;
  --canvas: #f1f5f8;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--navy); text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #ac4265; outline-offset: 4px; }

.topbar {
  background: var(--surface);
  border-top: 4px solid var(--wine);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 64rem;
  min-height: 4.25rem;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; text-decoration: none; }
.brand-word { font-size: 1.45rem; font-weight: 750; letter-spacing: -.045em; }
.brand-logo { width: auto; max-width: 10rem; height: 3rem; object-fit: contain; }
.topbar-label { color: var(--muted); font-size: .875rem; font-weight: 600; text-align: right; }

.card-shell, .message-shell {
  max-width: 61rem;
  margin: clamp(1.25rem, 5vw, 3rem) auto 0;
  width: calc(100% - 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 46px #142e4510;
}
.identity {
  background: linear-gradient(118deg, #102a40 0%, #183b57 74%, #223f5a 100%);
  color: #fff;
  display: flex;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border-bottom: 4px solid var(--wine);
}
.avatar {
  width: clamp(5rem, 12vw, 7rem);
  aspect-ratio: 1;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 750;
  border: 2px solid #ffffff65;
  border-radius: 50%;
  background: #294a66;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lyon img { object-position: 50% 49%; transform: scale(1.6); transform-origin: 40% 29%; }
.company { margin: 0 0 .45rem; color: #c4d8e8; font-size: .875rem; font-weight: 650; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.05; letter-spacing: -.055em; margin: 0; }
.identity h1 { overflow-wrap: anywhere; }
.role { font-size: 1.2rem; font-weight: 650; margin: .6rem 0 0; }
.department { color: #c4d8e8; margin: .23rem 0 0; }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); }
.contact { padding: clamp(1.25rem, 4vw, 2.35rem); }
.actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy);
  border: 1px solid #cbd8e3;
  min-height: 2.75rem;
  padding: .6rem .85rem;
  border-radius: .5rem;
  font-weight: 650;
  text-decoration: none;
  font-size: .9rem;
  cursor: pointer;
}
.button:hover { background: #edf3f7; }
.primary { color: #fff; background: var(--wine); border-color: var(--wine); }
.primary:hover { background: #602036; }
.feedback { color: var(--muted); flex-basis: 100%; font-size: .875rem; }
.feedback:empty { display: none; }
.share-fallback { width: 100%; padding: .55rem; border: 1px solid var(--line); }
.contact-help { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 1.65rem; }
.contact-help summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.contact-help p { margin: .45rem 0; }
h2 { font-size: 1.125rem; margin: 0 0 .65rem; letter-spacing: -.02em; }
.details { margin: 0; }
.details div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); padding: .8rem 0; border-bottom: 1px solid var(--line); gap: .5rem; }
.details div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
dd { margin: 0; overflow-wrap: anywhere; line-height: 1.4; }
.extension { color: var(--muted); font-size: .9rem; }
.distribution {
  background: #f8fafc;
  padding: 2rem 1rem;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .7rem;
}
.distribution h2 { margin: 0; }
.qr { width: min(100%, 11rem); height: auto; border: 1px solid var(--line); border-radius: .5rem; }
.downloads { display: flex; gap: .9rem; font-size: .9rem; font-weight: 650; }
.downloads a { padding: .4rem; }
.wallet { margin-top: .5rem; padding: .3rem; }
.wallet img { display: block; width: auto; height: 2.75rem; max-width: 100%; }
.message-shell { max-width: 40rem; padding: clamp(1.5rem, 5vw, 3rem); }
.message-shell p { color: var(--muted); line-height: 1.55; margin: 1rem 0 1.4rem; }
.site-footer { text-align: center; margin: 1.35rem 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 45rem) {
  .card-body { grid-template-columns: 1fr; }
  .distribution { border-left: 0; border-top: 1px solid var(--line); padding: 1.5rem 1rem; }
}
@media (max-width: 32rem) {
  .card-shell, .message-shell { width: calc(100% - 1.5rem); }
  .topbar-inner { padding-inline: 1rem; }
  .identity { align-items: flex-start; flex-direction: column; }
  .details div { grid-template-columns: 1fr; gap: .25rem; }
}
