/* Jolof Connect — feuille de style unique, mobile d'abord */
:root {
  --green: #0b6b3a;
  --green-dark: #0b4d2b;
  --green-soft: #e3f2e8;
  --yellow: #fdef42;
  --yellow-soft: #fff3d6;
  --yellow-ink: #8a5300;
  --red: #b4232a;
  --red-soft: #fbe4e2;
  --blue: #2a4fb4;
  --blue-soft: #e6ecfb;
  --bg: #faf7f0;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-2: #4a443b;
  --muted: #6b6458;
  --line: #ebe4d6;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 4px 16px rgba(28, 26, 23, .05);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); padding-bottom: 72px; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3, .h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--font); }
.h2 { font-size: 1.3rem; }
p { margin: 0; }
code { background: var(--green-soft); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
:focus-visible { outline: 3px solid #1c7ed6; outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-lg > * + * { margin-top: 24px; }
.stack-xl > * + * { margin-top: 40px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
main { padding: 20px 0 48px; min-height: 60vh; }
.page-home main, body.page-home main { padding-top: 0; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn-xs { min-height: 32px; padding: 0 10px; font-size: .8rem; border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--green-dark); }
.btn-yellow:hover { background: #f5e320; color: var(--green-dark); }
.btn-outline { background: var(--surface); border-color: #d9d0bf; color: var(--ink); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8f1b21; color: #fff; }
.btn-wa { background: var(--wa); color: #052e16; }
.btn-wa:hover { background: #1fb457; color: #052e16; }
.btn-ghost-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Pastilles ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.pill-yellow { background: var(--yellow); color: var(--green-dark); }
.pill-soft { background: #f0ebe1; color: var(--ink-2); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.tint-green { background: var(--green-soft); color: var(--green); }
.tint-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.tint-red { background: var(--red-soft); color: var(--red); }
.tint-blue { background: var(--blue-soft); color: var(--blue); }

/* ---------- En-tête ---------- */
.site-header { background: var(--green); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--yellow); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 1.05rem; } .brand-mark { width: 30px; height: 30px; } .header-inner { gap: 8px; } .city-picker summary { padding: 0 10px; } }
.city-picker { position: relative; }
.city-picker summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); cursor: pointer; font-size: .88rem; font-weight: 600; }
.city-picker summary::-webkit-details-marker { display: none; }
.city-menu { position: absolute; top: calc(100% + 8px); left: 0; width: min(560px, 90vw); max-height: 70vh; overflow: auto; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; z-index: 60; }
.city-group { display: flex; flex-direction: column; gap: 2px; }
.city-country { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.city-group a { color: var(--ink); text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.city-group a:hover, .city-group a.is-current { background: var(--green-soft); color: var(--green-dark); }
.main-nav { display: none; margin-left: auto; align-items: center; gap: 4px; }
.main-nav a:not(.btn) { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { background: rgba(255,255,255,.14); }
.nav-toggle { margin-left: auto; background: transparent; border: 0; color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; cursor: pointer; }
.main-nav.is-open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--green-dark); padding: 12px 16px 16px; }
.main-nav.is-open .btn { margin: 6px 0; }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); font-weight: 500; }
.flash + .flash { margin-top: 8px; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-error { background: var(--red-soft); color: #7d161b; }
.flash-info { background: var(--blue-soft); color: #1e3a8a; }

/* ---------- Accueil ---------- */
.hero { background: var(--green); color: #fff; border-radius: 0 0 32px 32px; padding: 28px 0 40px; }
.hero-hello { color: #cfe8d8; font-weight: 500; }
.hero h1 { margin: 4px 0 20px; color: #fff; }
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.search-field { flex: 1 1 260px; display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; background: #fff; border-radius: 14px; color: var(--muted); border: 1px solid var(--line); }
.search-field input { border: 0; outline: none; flex: 1; font: 1rem var(--font); background: transparent; color: var(--ink); min-width: 0; }
.search-bar .btn { min-height: 52px; }
.hero-count { margin-top: 14px; color: #cfe8d8; font-size: .9rem; }

.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; margin-top: 24px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cat-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.2; }
.cat-icon { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.cat-icon.sm { width: 34px; height: 34px; border-radius: 10px; }
.cat-tile:hover .cat-icon { transform: translateY(-2px); }
.cat-tile:hover { color: var(--green-dark); }
.cat-count { position: absolute; top: -4px; right: calc(50% - 38px); background: var(--ink); color: #fff; font-size: .68rem; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head a { font-weight: 600; font-size: .9rem; white-space: nowrap; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.list-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Cartes commerce ---------- */
.biz-card { display: flex; gap: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.biz-card:hover { border-color: #cfc4ae; box-shadow: var(--shadow); color: var(--ink); }
.biz-card.is-featured { border-color: #e9d84a; background: linear-gradient(0deg, #fffdf0, #fffdf0); }
.biz-thumb { width: 84px; height: 84px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.biz-thumb img { width: 100%; height: 100%; object-fit: cover; }
.biz-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.biz-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.biz-title strong { font-size: 1rem; }
.verified-dot { width: 18px; height: 18px; border-radius: 999px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.biz-meta { font-size: .87rem; color: var(--muted); }
.biz-line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 600; }
.rating svg, .rating-big svg { color: #c27a00; fill: #f5b301; stroke: #c27a00; }
.langs { color: var(--muted); }
.biz-promo { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--red); }
.status { font-weight: 600; }
.status-open { color: var(--green); }
.status-closed { color: #9a3412; }
.status-appointment { color: var(--blue); }

/* ---------- Événements & annonces ---------- */
.event-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.event-card:hover { border-color: #cfc4ae; box-shadow: var(--shadow); color: var(--ink); }
.event-card.is-featured { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.event-card.is-featured .muted { color: #cfe8d8; }
.event-card.is-featured .pill-soft { background: var(--yellow); color: var(--green-dark); }
.event-date { flex-shrink: 0; width: 56px; text-align: center; border-radius: 12px; background: var(--yellow); color: var(--green-dark); padding: 6px 0; }
.event-day { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-month { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; align-items: flex-start; }
.event-body strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.25; }
.event-price { font-weight: 700; font-size: .9rem; }
.event-row .event-img { display: none; }
.event-img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.event-hero { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); }
.event-facts { display: flex; flex-direction: column; gap: 12px; }

.ad-card { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.ad-card:hover { border-color: #cfc4ae; color: var(--ink); }
.ad-thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ad-body { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.ad-price { font-weight: 800; color: var(--green-dark); }
.ad-price.big { font-size: 1.5rem; font-family: var(--display); }

.promo-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.promo-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: var(--green-dark); color: #fff; text-decoration: none; }
.promo-card:hover { color: #fff; background: #083d22; }
.promo-text { font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--yellow); }
.promo-biz { font-size: .85rem; color: #cfe8d8; }

.cta-band, .sengp-band { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; }
.cta-band { background: var(--yellow); color: var(--green-dark); }
.cta-band > div, .sengp-band > div { flex: 1 1 260px; }
.cta-band p, .sengp-band p { margin-top: 4px; }
.cta-icon { width: 56px; height: 56px; border-radius: 16px; background: rgba(11,77,43,.1); display: inline-flex; align-items: center; justify-content: center; }
.sengp-band { background: var(--surface); border: 1px solid var(--line); }
.info-band { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--yellow-soft); color: var(--yellow-ink); margin-bottom: 14px; font-weight: 500; }

.empty { color: var(--muted); padding: 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); }
.empty-state h1, .empty-state h2 { color: var(--ink); }
.error-code { font-family: var(--display); font-size: 5rem; font-weight: 800; color: var(--green); line-height: 1; }

/* ---------- Recherche ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--muted); }
.search-head { margin-bottom: 20px; }
.search-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .search-layout { grid-template-columns: 280px 1fr; align-items: start; } .filters { position: sticky; top: 84px; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.link-reset { font-size: .85rem; text-align: center; display: block; }
.map-link { margin-top: 16px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pagination a.is-current { background: var(--green); border-color: var(--green); color: #fff; }
.inline-search { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-search .search-field { min-height: 46px; }
.small-search .search-field { min-height: 38px; flex-basis: 220px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.is-active { color: var(--green-dark); border-bottom-color: var(--green); }

/* ---------- Formulaires ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d9d0bf; border-radius: 10px; background: #fff; font: 400 1rem var(--font); color: var(--ink);
}
.search-field input { min-height: 0; padding: 0; border: 0; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid rgba(11,107,58,.2); outline-offset: 0; }
input:disabled { background: #f3efe6; color: var(--muted); }
.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
fieldset.card { border: 1px solid var(--line); margin: 0; }
legend { font-family: var(--display); font-size: 1.15rem; font-weight: 700; padding: 0 6px; margin-left: -6px; color: var(--ink); }
.field-label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { flex-direction: row; cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #d9d0bf; background: #fff; font-weight: 500; }
.check-chip input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.check-chip input:focus-visible + span { outline: 3px solid #1c7ed6; outline-offset: 2px; }
.hours-grid { display: flex; flex-direction: column; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 90px 1fr auto 1fr auto; align-items: center; gap: 8px; }
.hours-row input[type=time] { min-height: 40px; padding: 6px 8px; }
.hours-day { font-weight: 600; font-size: .9rem; }
@media (max-width: 480px) { .hours-row { grid-template-columns: 1fr 1fr auto 1fr; } .hours-day { grid-column: 1 / -1; } }
.social-inputs { display: grid; gap: 10px; }
@media (min-width: 720px) { .social-inputs { grid-template-columns: 1fr 1fr; } }
.social-input { display: grid; flex-direction: initial; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 4px; align-items: center; }
.social-input .social-icon { grid-row: 1 / 3; }
.social-input input { grid-column: 2; }
.social-label { font-size: .85rem; }
.map-picker-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.picker-map { height: 280px; border-radius: 12px; border: 1px solid var(--line); background: #e9e4d8; }
.upload-zone { align-items: center; text-align: center; gap: 6px; padding: 24px; border: 2px dashed #cfc4ae; border-radius: 14px; background: #fffdf8; cursor: pointer; color: var(--muted); }
.upload-zone input { max-width: 100%; margin-top: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.photo-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #eee; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(28,26,23,.75); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.thumb-preview { max-width: 240px; border-radius: 10px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-box { border: 2px dashed #c9bfa9 !important; background: #fffdf5; }
.danger-zone { border-color: #f1c4c1 !important; }
.auth { max-width: 460px; }

/* ---------- Carte (card) ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-flush { padding: 0; overflow: hidden; }
.info-row { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.info-row svg { flex-shrink: 0; margin-top: 2px; color: var(--muted); }

/* ---------- Fiche commerce ---------- */
.owner-bar { background: var(--ink); color: #fff; font-size: .9rem; }
.owner-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.owner-bar svg { vertical-align: -2px; }
.owner-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: flex-end; }
.page-business main { padding-top: 0; }
.gallery { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; height: 260px; background: #e9e4d8; }
.gallery-item { flex: 0 0 100%; scroll-snap-align: start; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 720px) {
  .gallery { height: 360px; }
  .gallery.has-many .gallery-item { flex-basis: 50%; }
}
@media (min-width: 1100px) { .gallery.has-many .gallery-item { flex-basis: 34%; } }
.gallery-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.business-layout { display: grid; gap: 28px; margin-top: 20px; }
@media (min-width: 960px) { .business-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .business-side { position: sticky; top: 84px; } }
.business-head { display: flex; flex-direction: column; gap: 6px; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tagline { font-size: 1.1rem; color: var(--ink-2); }
.head-line { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .95rem; }
.rating-big { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: var(--ink); }
.badge-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px; }
.action-form { display: contents; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 .85rem var(--font); text-decoration: none; cursor: pointer; padding: 8px; }
.action:hover { border-color: var(--green); color: var(--green-dark); }
.action-wa { background: var(--wa); border-color: var(--wa); color: #052e16; }
.action-wa:hover { background: #1fb457; color: #052e16; }
.action.is-on { color: var(--red); border-color: #f1c4c1; background: var(--red-soft); }
.action.is-on svg { fill: currentColor; }
.promo-banner { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--green-dark); color: #fff; }
.promo-banner svg { color: var(--yellow); flex-shrink: 0; }
.promo-banner strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--yellow); }
.promo-banner span { font-size: .85rem; color: #cfe8d8; }
.socials-card h2 { font-size: 1.1rem; margin-bottom: 14px; }
.social-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.social-link { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.social-link:hover { border-color: currentColor; }
.social-arrow { margin-left: auto; color: var(--muted); }
.social-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ink-2); flex-shrink: 0; }
.social-website .social-icon, .social-icon.social-website { background: var(--green); }
.social-facebook .social-icon, .social-icon.social-facebook { background: #1b5fc1; }
.social-instagram .social-icon, .social-icon.social-instagram { background: #c13584; }
.social-tiktok .social-icon, .social-icon.social-tiktok { background: #111111; }
.social-youtube .social-icon, .social-icon.social-youtube { background: #c4161c; }
.social-snapchat .social-icon, .social-icon.social-snapchat { background: #e0c600; color: #111; }
.social-linkedin .social-icon, .social-icon.social-linkedin { background: #0a66c2; }
.social-twitter_x .social-icon, .social-icon.social-twitter_x { background: #222222; }
.social-telegram .social-icon, .social-icon.social-telegram { background: #1d8acb; }
.prose { color: var(--ink-2); line-height: 1.65; }
.prose h2 { margin: 24px 0 8px; color: var(--ink); }
.prose p + p { margin-top: 12px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.hours th { text-align: left; font-weight: 500; padding: 6px 0; color: var(--ink-2); }
.hours td { text-align: right; padding: 6px 0; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--green-dark); }
.mini-map { height: 220px; }
.big-map { height: calc(100vh - 64px - 72px - 70px); min-height: 420px; }
.map-page main, .page-map main { padding: 0; }
.map-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.map-filters select { min-height: 38px; padding: 6px 10px; width: auto; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-card { background: #fffdf5; }
.report summary { cursor: pointer; color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.report form { margin-top: 10px; }
.rating-summary { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.rating-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rating-score strong { font-family: var(--display); font-size: 2.6rem; line-height: 1; }
.rating-bars { flex: 1 1 220px; display: flex; flex-direction: column; gap: 4px; }
.rating-bar, .hbar { display: grid; grid-template-columns: 20px 1fr 28px; gap: 8px; align-items: center; font-size: .85rem; }
.hbar { grid-template-columns: minmax(90px, 160px) 1fr 32px; }
.bar { height: 8px; border-radius: 999px; background: #efe9dc; overflow: hidden; }
.bar > span { display: block; height: 100%; background: #f5b301; border-radius: 999px; }
.hbar .bar > span { background: var(--green); }
.stars { display: inline-flex; gap: 1px; }
.stars .on svg { fill: #f5b301; stroke: #c27a00; }
.stars .off svg { color: #d9d0bf; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #d9d0bf; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #c27a00; }
.star-input label:hover svg, .star-input label:hover ~ label svg, .star-input input:checked ~ label svg { fill: #f5b301; }
.star-input input:focus-visible + label { outline: 3px solid #1c7ed6; border-radius: 4px; }
.review { display: flex; flex-direction: column; gap: 8px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-head .stars { margin-left: auto; }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.2rem; }
.owner-reply { background: #f6f2e9; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.reply-box summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .9rem; }
.quote { background: #f6f2e9; border-radius: 10px; padding: 10px 12px; }

/* ---------- Compte & admin ---------- */
.account-layout, .admin-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 250px 1fr; align-items: start; } .admin-layout { grid-template-columns: 230px minmax(0, 1fr); align-items: start; } }
.account-nav, .admin-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.account-nav nav { display: flex; flex-direction: column; gap: 2px; margin: 8px 0; }
.account-user { display: flex; gap: 10px; align-items: center; padding: 6px; }
.account-user > div { display: flex; flex-direction: column; min-width: 0; }
.account-user .small { overflow: hidden; text-overflow: ellipsis; }
.account-nav a, .admin-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.account-nav a:hover, .admin-nav a:hover { background: #f6f2e9; }
.account-nav a.is-active, .admin-nav a.is-active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.admin-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
@media (max-width: 899px) { .admin-nav { flex-direction: row; overflow-x: auto; } .admin-nav a { white-space: nowrap; } }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .88rem; }
.stat-num { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.todo-list { display: flex; flex-wrap: wrap; gap: 10px; }
.todo { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; background: var(--yellow-soft); color: var(--yellow-ink); text-decoration: none; font-weight: 500; }
.todo strong { font-size: 1.1rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline-form { display: inline; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.admin-inline-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-inline-edit input, .admin-inline-edit select { width: auto; min-height: 36px; padding: 6px 8px; font-size: .9rem; }
.w-num { max-width: 90px; }
.w-xs { max-width: 56px; }
.plain-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.is-unread { border-left: 4px solid var(--green); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #d6d1c7; padding: 40px 0 20px; }
.site-footer .muted { color: #a9a296; }
.site-footer h3 { color: #fff; margin-bottom: 10px; }
.site-footer a { color: #e8e3d9; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.brand-footer { margin-bottom: 10px; }
.newsletter { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 160px; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #3a3630; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 14px; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.bottom-nav a:hover { color: var(--green); }
@media (min-width: 960px) { .bottom-nav { display: none; } body { padding-bottom: 0; } }

/* Leaflet : marqueurs maison */
.map-pin { width: 28px; height: 28px; border-radius: 999px 999px 999px 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.map-pin.green { background: var(--green); } .map-pin.yellow { background: #d9a400; } .map-pin.red { background: var(--red); } .map-pin.blue { background: var(--blue); }
.leaflet-popup-content a { font-weight: 700; }

@media print { .site-header, .site-footer, .bottom-nav, .action-grid, .report, .owner-bar { display: none !important; } }
