/* Business card — same tokens and fonts as ../style.css, self-contained so the card loads fast. */
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-style: normal; font-display: swap; src: url("../assets/fonts/dm-sans.woff2") format("woff2"); }
:root {
  --accent: #2540C4; --accent-fonce: #1B2F91; --accent-doux: #E6E9F4;
  --encre: #1B211F; --encre-douce: #5F6B67; --fond: #FBFAF8; --surface: #FFFFFF; --filet: #E2DFD8;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center;
  background: var(--fond); color: var(--encre); font-family: var(--font-sans); line-height: 1.4;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
.carte { width: 100%; max-width: 420px; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 14px; }
.carte__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--filet); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin: 10px 0 4px; }
.carte__ligne { margin: 0 0 14px; max-width: 26ch; color: var(--encre-douce); font-size: 1rem; }
.bouton {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px; width: 100%;
  border: 1px solid var(--filet); border-radius: 12px; background: var(--surface); color: var(--encre);
  font: 600 0.95rem var(--font-sans); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.bouton:hover { border-color: var(--accent); }
.bouton:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bouton--principal { min-height: 54px; background: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.bouton--principal:hover { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.carte__liens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 8px; }
.bouton--large { grid-column: 1 / -1; }
.bouton--qr { background: var(--accent-doux); border-color: var(--accent-doux); color: var(--accent-fonce); }
.pied { display: flex; align-items: center; gap: 8px; padding: 14px 0; color: var(--encre-douce); font-weight: 600; font-size: 0.9rem; }
dialog { border: 0; border-radius: 16px; padding: 20px; width: min(92vw, 400px); text-align: center; background: #fff; color: var(--encre); }
dialog::backdrop { background: rgba(27, 33, 31, 0.6); }
dialog img { width: 100%; height: auto; display: block; }
dialog p { margin: 6px 0 14px; font-weight: 600; }
dialog:not([open]) { display: none; }
@media (max-height: 700px) { .carte__photo { width: 88px; height: 88px; } .carte__ligne { margin-bottom: 10px; } .bouton { min-height: 42px; } .bouton--principal { min-height: 48px; } }
