/* Innov'Car — carte de visite digitale (mobile d'abord) */
:root {
  --ink: #0e0f11; --ink-2: #1a1c20; --muted: #6a707a; --line: #ebebee; --bg: #eeeeef; --paper: #fff;
  --accent: #e3101b; --radius: 20px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Tight", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; -webkit-font-smoothing: antialiased; }
@media (min-width: 600px) { body { background: radial-gradient(1200px 600px at 50% -10%, #2a2d33, var(--ink) 60%); min-height: 100vh; padding: 28px 0; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.preview-bar { position: sticky; top: 0; z-index: 20; background: #fff6d6; color: #5c4400; padding: 10px 16px; font-size: .9rem; font-weight: 600; text-align: center; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }

.card { max-width: 560px; margin: 0 auto; background: var(--bg); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .card { border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); } }

/* En-tête */
.hero { position: relative; }
.cover { height: 210px; background: linear-gradient(135deg, var(--ink), #2b2e35 60%, var(--accent)); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0 0 auto; height: 210px; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .25)); }
.topbar { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; }
.topbar-actions { display: flex; gap: 8px; margin-left: auto; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4); }
.round .icon { width: 21px; height: 21px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(14, 15, 17, .55); backdrop-filter: blur(8px); }
.langs a { min-width: 38px; height: 34px; display: grid; place-items: center; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: none; letter-spacing: .04em; }
.langs a[aria-current] { background: #fff; color: var(--ink); }
.avatar { position: absolute; z-index: 3; left: 50%; bottom: -40px; transform: translateX(-50%); width: 112px; height: 112px; border-radius: 28px; background: #fff; padding: 6px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); border: 4px solid #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; }

.identity { background: var(--paper); margin: -26px 12px 0; border-radius: var(--radius); padding: 82px 22px 24px; text-align: center; position: relative; z-index: 1; }
.category { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.identity h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.tagline { margin: 6px 0 0; font-weight: 600; color: #3b3f46; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; background: #f1f1f3; font-size: .85rem; font-weight: 700; color: #50555e; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9bcc3; }
.status.is-open { background: #e7f6ed; color: #0d5c2f; }
.status.is-open .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); }
.description { margin-top: 14px; color: var(--muted); font-size: .97rem; }
.description p { margin: 0 0 .6em; }
.description p:last-child { margin: 0; }

/* Blocs */
.block { background: var(--paper); margin: 12px 12px 0; border-radius: var(--radius); padding: 20px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.block-title .icon { color: var(--accent); width: 20px; height: 20px; }
.block-title .count { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; display: grid; place-items: center; font-family: var(--font); }
.stack { display: grid; gap: 10px; }

.actions { display: grid; gap: 6px; padding: 18px 10px; grid-template-columns: repeat(5, 1fr); }
.actions-4 { grid-template-columns: repeat(4, 1fr); }
.actions-3 { grid-template-columns: repeat(3, 1fr); }
.actions-2 { grid-template-columns: repeat(2, 1fr); }
.actions-1 { grid-template-columns: 1fr; }
.action { display: grid; justify-items: center; gap: 7px; text-decoration: none; padding: 4px 0; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.action-icon { width: 54px; height: 54px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .15s; box-shadow: 0 8px 18px -10px var(--accent); }
.action-icon.is-wa { background: #1fa855; box-shadow: 0 8px 18px -10px #1fa855; }
.action-icon .icon { width: 24px; height: 24px; }
.action:active .action-icon { transform: scale(.94); }
.action-label { font-size: .76rem; font-weight: 700; color: #3b3f46; text-align: center; line-height: 1.15; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 18px; border-radius: 14px; border: 1.5px solid transparent; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; width: 100%; -webkit-tap-highlight-color: transparent; transition: transform .1s, background .2s; }
.btn:active { transform: scale(.99); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; border-color: #d7d8dd; color: var(--ink); }
.btn-small { min-height: 44px; font-size: .9rem; width: auto; display: inline-flex; }

.list { display: grid; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 14px; background: #f6f6f7; text-decoration: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.row-highlight { background: #fff7e6; }
.row-icon { width: 38px; height: 38px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.row-icon .icon { width: 20px; height: 20px; }
.row-icon.stars { color: #f5a623; }
.row-text { flex: 1; min-width: 0; text-decoration: none; font-weight: 700; font-size: .97rem; overflow-wrap: anywhere; }
.row-text small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.row-end { color: #9ca1aa; width: 18px; height: 18px; }
.copy { flex: none; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #d7d8dd; background: #fff; font-size: .82rem; font-weight: 700; cursor: pointer; }

.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours li:last-child { border-bottom: 0; }
.hours li span { color: var(--muted); }
.hours li strong { text-align: right; white-space: nowrap; }
.hours li strong br + * { display: block; }
.hours li.is-today { background: #f6f6f7; border-radius: 10px; padding-inline: 10px; border-bottom-color: transparent; }
.hours li.is-today span { color: var(--ink); font-weight: 700; }
.hours li.is-today span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.hours li.is-closed strong { color: var(--muted); font-weight: 600; }
.special { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fdeeee; font-size: .9rem; }
.special h3 { font-size: .9rem; margin-bottom: 4px; color: #9a0b12; }
.special p { margin: 0 0 2px; }

.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 10px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.mini-car { flex: 0 0 64%; scroll-snap-align: start; text-decoration: none; display: grid; gap: 2px; }
.mini-car-img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #f1f1f3; display: grid; place-items: center; margin-bottom: 6px; }
.mini-car-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.mini-car strong { font-size: .98rem; }
.mini-car small { color: var(--muted); font-size: .84rem; }
.mini-price { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.link-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-weight: 800; text-decoration: none; color: var(--accent); min-height: 44px; }
.link-more .icon { width: 18px; height: 18px; }

.bodyshop { background: var(--ink); color: #fff; }
.bodyshop .block-title .icon { color: #ff4b53; }
.bodyshop .btn-dark { background: var(--accent); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.ticks .icon { color: #22c55e; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { margin: 0; }
.gallery button { all: unset; display: block; cursor: zoom-in; border-radius: 13px; overflow: hidden; width: 100%; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; font-weight: 600; }

.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border-radius: 14px; background: #f6f6f7; text-decoration: none; font-weight: 700; }
.social .icon { width: 22px; height: 22px; }
.social-facebook .icon { color: #1877f2; }
.social-instagram .icon { color: #d62976; }
.social-tiktok .icon { color: #000; }
.social-linkedin .icon { color: #0a66c2; }
.social-youtube .icon { color: #ff0000; }

.wifi-grid { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.wifi p { margin: 0 0 10px; }
.wifi small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wifi code { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; font-weight: 700; background: #f1f1f3; padding: 3px 8px; border-radius: 6px; }
.wifi-qr { margin: 0; text-align: center; font-size: .7rem; color: var(--muted); max-width: 130px; }
.wifi-qr img { width: 120px; height: 120px; margin: 0 auto 4px; }
.hint { font-size: .84rem; color: var(--muted); margin: 10px 0 0; }

.card-footer { text-align: center; padding: 24px 20px 8px; color: var(--muted); font-size: .85rem; }
.card-footer p { margin: 0 0 8px; }
.card-footer strong { color: var(--ink); }
.made-by { font-size: .76rem; opacity: .8; }
@media (min-width: 600px) { .card-footer { padding-bottom: 20px; } }

/* Fenêtres (QR, partage, zoom) */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(10, 11, 13, .6); backdrop-filter: blur(3px); }
.sheet { width: min(420px, calc(100% - 24px)); border-radius: 24px; padding: 28px 20px 20px; text-align: center; background: #fff; color: var(--ink); }
.sheet h2 { font-size: 1.2rem; margin-bottom: 16px; }
.sheet .list { text-align: left; }
.sheet p { margin: 14px 0 18px; }
.muted { color: var(--muted); font-size: .9rem; }
.qr-img { width: 240px; height: 240px; margin: 4px auto 0; border-radius: 12px; }
.sheet-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f1f3; display: grid; place-items: center; cursor: pointer; }
.zoom { background: transparent; max-width: 100vw; max-height: 100vh; }
.zoom img { max-width: 96vw; max-height: 86vh; border-radius: 12px; }
.zoom .sheet-close { background: rgba(255, 255, 255, .9); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; white-space: nowrap; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
