/* Mobali : feuille de style unique, sans police à télécharger (économie de données).
   Identité : la malachite du Katanga, ses bandes vertes concentriques. */
:root {
  --malachite-900: #0A4234;
  --malachite-700: #0F5E49;
  --malachite-500: #1C8C6A;
  --malachite-100: #DDEFE7;
  --paper: #F7F9F8;
  --white: #FFFFFF;
  --ink: #14201C;
  --muted: #56645F;
  --line: #D5DEDA;
  --closed: #A8321E;
  --unknown: #6B5A12;
  --radius: 10px;
  --font: system-ui, -apple-system, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 1rem/1.5 var(--font); color: var(--ink); background: var(--paper);
}
main { flex: 1; }
a { color: var(--malachite-700); }
img { max-width: 100%; display: block; }
h1, h2 { line-height: 1.2; margin: 0 0 .5rem; }
h2 { font-size: 1.125rem; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.wrap { width: 100%; max-width: 42rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }

/* --- Marque -------------------------------------------------------------- */
.wordmark {
  margin: 0; font-weight: 800; font-size: 2.75rem; letter-spacing: -.045em; line-height: 1;
  color: var(--white); text-decoration: none;
}
.wordmark--small { font-size: 1.5rem; }

/* --- Accueil : le bandeau malachite est l'unique élément décoratif ------------ */
.hero {
  color: var(--white);
  background-color: var(--malachite-900);
  background-image: repeating-radial-gradient(ellipse 140% 100% at 100% 0%,
    #0A4234 0 11px, #0E5544 11px 19px, #0A4234 19px 23px, #12664F 23px 27px,
    #0B4A3A 27px 41px, #0F5E49 41px 46px, #0A4234 46px 52px);
  padding: max(2.5rem, env(safe-area-inset-top)) 1rem 2.25rem;
}
.hero-inner { max-width: 40rem; margin: 0 auto; }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); font-weight: 700; margin: 1.25rem 0 1.25rem; max-width: 18ch; }
.hero-search, .bar-search { display: flex; gap: .5rem; }
.hero-search input, .bar-search input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.0625rem; padding: .85rem 1rem;
  border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink);
}
.hero-search button, .bar-search button {
  font: inherit; font-weight: 700; padding: 0 1.1rem; border: 0; border-radius: var(--radius);
  background: #F2B705; color: var(--malachite-900); cursor: pointer;
}
.near {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 600;
  color: var(--white); background: transparent; border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
}
.near-status { margin: .5rem 0 0; font-size: .9375rem; }
.near-status:empty { display: none; }
.hero .near-status { color: var(--malachite-100); }

.browse { max-width: 42rem; margin: 0 auto; padding: 1.75rem 1rem 1rem; }
.browse h2 { margin-top: 1.25rem; color: var(--malachite-700); }
.cats li { display: flex; }
.cats a { flex: 1; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); column-gap: 1rem; border-top: 1px solid var(--line); }
.cats a {
  display: flex; align-items: center; gap: .6rem; min-height: 3.25rem; padding: .5rem .25rem;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500;
}
.cats a:hover { color: var(--malachite-700); }
.cat-icon { font-size: 1.35rem; width: 1.75rem; text-align: center; }

/* --- Barre des autres pages -------------------------------------------------- */
.bar {
  position: sticky; top: 0; z-index: 5; background: var(--malachite-900);
  padding: .6rem 0; padding-top: max(.6rem, env(safe-area-inset-top));
}
.bar-inner { max-width: 42rem; margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: .75rem; }
.bar-search { flex: 1; min-width: 0; }
.bar-search button { padding: 0 .75rem; display: grid; place-items: center; }
.bar-search input { padding: .6rem .8rem; font-size: 1rem; }

/* --- Résultats ---------------------------------------------------------------- */
.results-title { font-size: 1.5rem; margin-top: .25rem; }
.results-count, .understood { color: var(--muted); margin: 0 0 .5rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.chip {
  font: inherit; font-size: .9375rem; padding: .4rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--malachite-500); color: var(--malachite-700); background: var(--white); text-decoration: none;
}
.chip--on { background: var(--malachite-700); border-color: var(--malachite-700); color: var(--white); }
.results { list-style: none; margin: .5rem 0 0; padding: 0; }
.result { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.result-main { display: flex; gap: .85rem; color: inherit; text-decoration: none; }
.thumb { width: 64px; height: 64px; flex: none; border-radius: 8px; object-fit: cover; background: var(--malachite-100); }
.thumb--empty { display: grid; place-items: center; font-size: 1.75rem; }
.result-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.result-name { font-weight: 700; font-size: 1.0625rem; }
.result-meta { color: var(--muted); font-size: .9375rem; }
.check { color: var(--malachite-500); display: inline-flex; vertical-align: -2px; }
.result-actions { display: flex; gap: .5rem; margin: .75rem 0 0 calc(64px + .85rem); }

/* État d'ouverture : couleur + texte, jamais la couleur seule */
.state { font-size: .875rem; font-weight: 600; margin: 0; }
.state::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .4em; background: currentColor; vertical-align: .05em; }
.state--open { color: var(--malachite-500); }
.state--closed { color: var(--closed); }
.state--unknown { color: var(--unknown); }

/* --- Boutons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.5rem; padding: .45rem 1rem;
  border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn--call { background: var(--malachite-700); color: var(--white); }
.btn--wa { background: var(--white); color: #136C3A; border-color: #25D366; }
.btn--ghost { background: var(--white); color: var(--malachite-700); border-color: var(--line); }
.btn--big { width: 100%; min-height: 3.1rem; font-size: 1.0625rem; }
.more { text-align: center; margin-top: 1.5rem; }

/* --- Fiche entreprise ---------------------------------------------------------- */
.photos { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: -1.25rem -1rem 1rem; }
.photos img { height: 240px; width: auto; max-width: 85%; object-fit: cover; object-position: center 25%; scroll-snap-align: start; }
.photos img:only-child { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 10; max-height: 360px; }
.biz-cat { color: var(--muted); margin: 0 0 .25rem; }
.biz h1 { font-size: 1.75rem; }
.trust { color: var(--muted); display: flex; align-items: center; gap: .4rem; margin: .5rem 0 0; }
.trust--ok { color: var(--malachite-700); font-weight: 600; }
.actions { display: grid; gap: .6rem; margin: 1.25rem 0; }
.biz section { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.biz section p { margin: 0 0 .35rem; }
.biz-desc { margin: 0 0 1rem; }
.landmark { color: var(--muted); }
.notice { background: #FFF7DD; margin: 0 -1rem; padding-left: 1rem !important; padding-right: 1rem !important; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 24rem; }
.hours th { text-align: left; font-weight: 500; padding: .3rem 1rem .3rem 0; }
.hours td { padding: .3rem 0; font-variant-numeric: tabular-nums; }
.hours .today { font-weight: 700; color: var(--malachite-700); }
.hours .today th { font-weight: 700; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { background: var(--malachite-100); color: var(--malachite-900); padding: .2rem .7rem; border-radius: 999px; font-size: .9375rem; }
.report summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.report form { margin-top: .75rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 .9rem !important; }
.field label { font-weight: 600; font-size: .9375rem; }
.field select, .field textarea, .field input { font: inherit; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.error { color: var(--closed); font-size: .9375rem; }
.ok { color: var(--malachite-700); font-weight: 600; }

/* --- Pages simples -------------------------------------------------------------- */
.empty { padding: 1.5rem 0; }
.empty h2, .empty h1 { font-size: 1.25rem; }
.prose { max-width: 36rem; }
.prose h2 { margin-top: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose .btn--big { max-width: 22rem; }
.notice-inline { background: #FFF7DD; padding: .75rem 1rem; border-radius: var(--radius); }
.foot { padding: 1.5rem 1rem 2rem; color: var(--muted); font-size: .875rem; text-align: center; }

@media (min-width: 40rem) {
  .actions { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .photos { margin: 0 0 1rem; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
