:root {
  --navy: #071833;
  --navy-2: #12315c;
  --gold: #c6a15a;
  --gold-2: #e6d3a1;
  --ink: #1b2430;
  --muted: #5d6b7c;
  --paper: #f3efe6;
  --card: #fffdf8;
  --line: #e4dccb;
  --ok: #1d6b45;
  --warn: #8a5a10;
  --danger: #8d2e2e;
  --info: #1d4e89;
  --shadow: 0 12px 30px rgba(7, 24, 51, 0.08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(198, 161, 90, 0.18), transparent 50%),
    var(--paper);
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--navy-2); }
.he { font-family: "David Libre", "Times New Roman", serif; direction: rtl; unicode-bidi: isolate; }
.app { max-width: 980px; margin: 0 auto; padding: calc(14px + var(--safe-top)) 16px calc(124px + var(--safe-bottom)); }
@media (max-width: 760px) {
  .app { padding-top: max(62px, calc(14px + var(--safe-top))); }
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; }
.brand img { width: 54px; height: 54px; border-radius: 14px; }
.brand strong { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.35rem; color: var(--navy); }
.brand span { color: var(--muted); font-size: 0.82rem; }
.who { font-size: 0.82rem; color: var(--muted); text-align: right; }
.who button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; }
.lang { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 4px; }
.lang button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 4px 10px; }
.lang button.on { background: var(--navy); color: white; border-color: var(--navy); }
html[dir="rtl"] body { font-family: "David Libre", Outfit, serif; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; color: var(--navy); margin: 0 0 8px; }
h1 { font-size: 2rem; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(3, 1fr); }
.card, .fiche, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.5rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: 0.78rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search, .field, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}
textarea { min-height: 90px; resize: vertical; }
.btn, .btn-ghost, .btn-gold {
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid transparent;
}
.btn { background: var(--navy); color: white; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 620; }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.chip {
  border: 1px solid var(--line); background: white; border-radius: 999px;
  padding: 7px 12px; white-space: nowrap;
}
.chip.on { background: var(--navy); color: white; border-color: var(--navy); }
.list { display: grid; gap: 10px; }
.item { text-align: left; width: 100%; }
.item b { display: block; }
.meta { color: var(--muted); font-size: 0.86rem; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 8px; font-size: 0.75rem; font-weight: 620;
  background: #eef2f6; color: var(--info);
}
.badge.verifie { background: #e5f6ec; color: var(--ok); }
.badge.approximatif { background: #fff4df; color: var(--warn); }
.badge.a_verifier { background: #fff4df; color: var(--warn); }
.badge.conteste { background: #fde8e8; color: var(--danger); }
.badge.inconnu { background: #eef2f6; color: var(--muted); }
.nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(7, 24, 51, 0.96); color: white;
  padding: 12px 4px calc(12px + var(--safe-bottom));
  z-index: 20;
}
.nav button {
  background: none; border: 0; color: #d7deea; font-size: 0.84rem; font-weight: 500;
  display: grid; gap: 2px; justify-items: center; min-width: 0; flex: 1;
  padding: 4px 0;
}
.nav button.on { color: var(--gold-2); }
#map, .map { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
#routemap { height: 320px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin: 8px 0 4px; }
.note, .warnbox {
  background: #fff8ea; border: 1px solid #efd7a4; color: #6b4a0d;
  border-radius: 14px; padding: 10px 12px; font-size: 0.9rem; line-height: 1.4;
}
.split { display: grid; gap: 12px; }
.links a {
  display: inline-block; margin: 4px 6px 0 0; padding: 8px 10px;
  border-radius: 999px; background: var(--navy); color: white; text-decoration: none; font-size: 0.85rem;
}
.photo { width: 100%; border-radius: 12px; }
.video { position: relative; width: 100%; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #071833; margin: 8px 0 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; }
.error { color: var(--danger); }
.small { font-size: 0.8rem; color: var(--muted); }
.calendar-day { border-top: 1px solid var(--line); padding-top: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.place-list { display: grid; gap: 6px; margin-top: 6px; }
.place-list button { text-align: left; }
.arrival {
  background: var(--navy); color: #f6f1e6; border-radius: 16px;
  padding: 14px 16px; margin-top: 14px; line-height: 1.45;
}
.arrival b { color: var(--gold-2); }
.arrival .small { color: #d9c89a; }
.when { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 8px; }
.when h2 { margin: 0; text-transform: capitalize; }
.when span { color: var(--gold); font-size: 0.82rem; font-weight: 620; white-space: nowrap; }
@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 0.9fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
