/* =============================================================
 * cherrueix.com - main stylesheet (extracted from index.html 2.7.7)
 * Version : 1.0.0 - 2026-10-23 23:25 Europe/Paris
 * Path    : /var/www/cherrueix/assets/app.css
 * Why     : lighter index.html, browser caching, cleaner base for
 *           the EN / ZH translations
 * What    : the former inline <style> block, unchanged
 * History : 1.0.0 - extracted by /root/extract_assets.sh
 * ============================================================= */
  :root {
    --bg: #f5f6f8; --card: #ffffff; --ink: #1c2230; --muted: #5b6475;
    --accent: #d9480f; --accent-ink: #ffffff; --ok: #2b8a3e; --err: #c92a2a;
    --line: #dde1e7; --radius: 12px; --rail-on: #1d4ed8;
    --f-reseaux: #e67700; --f-voirie: #1971c2; --f-securite: #c92a2a; --f-nature: #2b8a3e;
  }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #12151b; --card: #1c212b; --ink: #e9ecf1; --muted: #a3abb9; --line: #2e3542; }
    .topbar .off a { color: #74c0fc; }
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
               font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  #map { position: fixed; inset: 0; z-index: 1; }
  #map .leaflet-top { margin-top: 108px; }
  #map .leaflet-bottom { margin-bottom: 76px; }

  .topbar { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1000;
            background: var(--card); border: 1px solid var(--line); border-radius: 16px;
            padding: 5px 14px 4px; font-weight: 700; font-size: .95rem; white-space: nowrap; text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,.15); }
  .topbar small { font-weight: 400; color: var(--muted); }
  .topbar .off { display: block; font-weight: 400; font-size: .72rem; line-height: 1.3; color: var(--muted); }
  .topbar .off a { color: #1864ab; font-weight: 600; text-decoration: none; }
  .topbar .off .sm { display: none; }
  .chips { position: fixed; top: 68px; left: 50%; transform: translateX(-50%); z-index: 1000;
           display: flex; gap: 6px; white-space: nowrap; }
  .chip { border: 0; border-radius: 999px; padding: 4px 10px; font: 600 .78rem/1.4 system-ui, sans-serif;
          box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; text-decoration: none; }
  .chip-sos { background: var(--err); color: #fff; }
  .chip-info { background: var(--card); color: var(--ink); }
  .toast { position: fixed; top: 102px; left: 50%; transform: translateX(-50%); z-index: 1002;
           max-width: min(520px, calc(100% - 32px)); background: #111827; color: #fff;
           border-radius: 10px; padding: 10px 14px; font-size: .85rem; display: none;
           box-shadow: 0 4px 16px rgba(0,0,0,.3); }
  .toast.show { display: block; }
  .toast a { color: #93c5fd; }
  .unoff { position: fixed; top: 102px; left: 50%; transform: translateX(-50%); z-index: 1004;
           width: 440px; max-width: calc(100% - 24px); background: #fff8e1; color: #3b2f0b;
           border: 1px solid #f0c36d; border-radius: 14px; padding: 14px 16px; font-size: .88rem; line-height: 1.45;
           box-shadow: 0 8px 24px rgba(0,0,0,.25); display: none; }
  .unoff.show { display: block; }
  .unoff h2 { margin: 0 0 6px; font-size: .95rem; color: #7a4d00; }
  .unoff .act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
  .unoff .act a, .unoff .act button { border: 0; border-radius: 999px; padding: 7px 14px; font: 700 .82rem/1.3 system-ui, sans-serif;
           cursor: pointer; text-decoration: none; }
  .unoff .act a { background: #e7f5ff; color: #1864ab; }
  .unoff .act button { background: #1c2230; color: #fff; }
  .leaflet-control-attribution b.uo { color: #7a4d00; }

  .fab { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000;
         background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px;
         padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer;
         box-shadow: 0 4px 14px rgba(0,0,0,.25); white-space: nowrap; }

  .rail { display: flex; flex-direction: column; gap: 8px; }
  .rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0f172a;
              box-shadow: 0 2px 6px rgba(15,23,42,.3); display: flex; align-items: center;
              justify-content: center; padding: 0; cursor: pointer; }
  .rail-btn:hover { background: #eff6ff; }
  .rail-btn.on { background: var(--rail-on); color: #fff; }

  .rp { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; display: flex;
        align-items: center; justify-content: center; font-size: 16px; line-height: 1;
        box-shadow: 0 1px 5px rgba(0,0,0,.45); }
  .rp.unverified { border-style: dashed; }

  .panel { position: fixed; z-index: 1001; background: var(--card); border: 1px solid var(--line);
           box-shadow: 0 -4px 20px rgba(0,0,0,.2); overflow-y: auto; display: none;
           left: 0; right: 0; bottom: 0; max-height: 85vh; border-radius: 16px 16px 0 0; padding: 16px; }
  .panel.open { display: block; }
  .panel-head { display: flex; justify-content: space-between; align-items: center; }
  .panel-head h1 { font-size: 1.2rem; margin: 0; }
  .close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
  .hint { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }

  .fam { margin-top: 12px; }
  .fam-t { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
  .cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid var(--line);
         border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: .88rem;
         text-align: left; cursor: pointer; }
  .cat .ic { font-size: 1.2rem; flex: none; }
  .cat.sel { border-color: var(--accent); background: #fff4e6; color: #111827; }
  .sos-box { display: none; margin-top: 12px; padding: 10px 12px; border-radius: 10px;
             background: #fff5f5; border: 2px solid var(--err); color: #7d1414; font-size: .9rem; }
  .sos-box.show { display: block; }
  .sos-box a { display: inline-block; margin-top: 6px; padding: 8px 14px; border-radius: 8px;
               background: var(--err); color: #fff; font-weight: 700; text-decoration: none; }

  label { display: block; font-weight: 600; margin: 14px 0 6px; }
  input[type=text], input[type=email], input[type=datetime-local], textarea {
    width: 100%; padding: 12px; font-size: 16px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--bg); color: var(--ink); font-family: inherit; }
  textarea { min-height: 80px; resize: vertical; }
  .count { text-align: right; font-size: .75rem; color: var(--muted); }
  .small { font-size: .8rem; color: var(--muted); margin-top: 4px; }
  .row { display: flex; gap: 8px; }
  .row input { flex: 1; }
  .btn-gps { padding: 0 14px; background: var(--line); color: var(--ink); border: 0;
             border-radius: 8px; font: inherit; white-space: nowrap; cursor: pointer; }
  .btn-main { width: 100%; padding: 14px; margin-top: 18px; background: var(--accent); color: var(--accent-ink);
              border: 0; border-radius: 8px; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
  .btn-main:disabled { opacity: .6; cursor: wait; }
  .suggest { list-style: none; margin: 4px 0 0; padding: 0; border: 1px solid var(--line);
             border-radius: 8px; background: var(--card); display: none; }
  .suggest li { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
  .suggest li:last-child { border-bottom: 0; }
  .suggest li:hover, .suggest li:focus { background: var(--bg); }
  .picked { font-size: .9rem; color: var(--ok); margin-top: 6px; min-height: 1.2em; }
  .notice { background: var(--bg); border-left: 4px solid var(--accent); padding: 10px 12px;
            margin-top: 16px; font-size: .9rem; }
  .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .85rem; }
  .consent input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
  .msg { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
  .msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
  .foot { color: var(--muted); font-size: .75rem; margin-top: 14px; }
  .foot a, .foot button { color: var(--muted); }
  .foot button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
  .leaflet-control-attribution a.lg { color: #374151; }

  @media (max-width: 1100px) { .panel { padding: 16px; } }
  @media (max-width: 900px)  { .topbar { font-size: .9rem; } }
  @media (min-width: 769px)  {
    .panel { top: 108px; left: 16px; right: auto; bottom: auto; width: 400px;
             max-height: calc(100vh - 126px); border-radius: var(--radius); }
  }
  @media (max-width: 768px)  { .topbar small { display: none; } .topbar .off .lg { display: none; }
                               .topbar .off .sm { display: inline; } .unoff { font-size: .84rem; } }
  @media (max-width: 640px)  { .topbar .off { font-size: .68rem; } .panel { padding: 14px; } .cat { font-size: .82rem; padding: 7px 8px; } }
  @media (max-width: 400px)  { .topbar { font-size: .8rem; padding: 5px 10px; } .btn-gps { padding: 0 10px; font-size: .9rem; }
                               .cats { grid-template-columns: 1fr; } }
