
:root{
  --bg:#fbf7ef; --ink:#102a43; --muted:#61758a; --card:#fffdf8;
  --line:rgba(16,42,67,.12); --shadow:0 16px 40px rgba(16,42,67,.12);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);padding-bottom:72px}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px max(18px,env(safe-area-inset-left)) 14px max(18px,env(safe-area-inset-right));backdrop-filter:blur(18px);background:rgba(251,247,239,.86);border-bottom:1px solid var(--line)}
.topbar strong{display:block;font-size:18px}.topbar span{display:block;font-size:12px;color:var(--muted)}
.top-actions{display:flex;gap:8px;align-items:center}
.topbar button{border:0;border-radius:999px;background:#102a43;color:white;padding:10px 14px;font-weight:700}
.header-pdf{display:inline-flex;align-items:center;text-decoration:none;border-radius:999px;background:#f77f00;color:#111;padding:10px 14px;font-weight:900}
.cover{min-height:72vh;background:
linear-gradient(90deg,rgba(16,42,67,.84),rgba(16,42,67,.28)),
url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=85') center/cover;
display:flex;align-items:flex-end;padding:42px 22px;color:white}
.cover-copy{max-width:760px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-weight:800;font-size:12px;color:#f77f00;margin:0 0 8px}
h1{font-size:clamp(42px,8vw,82px);line-height:.92;margin:0 0 18px} h2{font-size:clamp(26px,4vw,44px);line-height:1;margin:0 0 12px} h3{margin:0 0 12px;font-size:18px}
.cover p:not(.eyebrow){font-size:18px;max-width:680px}.cover-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;text-decoration:none;background:#f77f00;color:#111;padding:13px 18px;border-radius:999px;font-weight:800}.btn.secondary{background:white;color:#102a43}
.panel{margin:22px auto;padding:22px;max-width:1180px;background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.section-title{max-width:1180px;margin:34px auto 18px;padding:0 22px}.section-title p{color:var(--muted)}
.map-wrap{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:center}.map-wrap svg{width:100%;height:auto;border-radius:22px;border:1px solid var(--line);background:white}
.map-point text{fill:#102a43;font-weight:700}.legend{display:flex;flex-direction:column;gap:10px}
.filter{border:1px solid var(--line);background:white;border-radius:18px;padding:14px;display:flex;align-items:center;gap:10px;text-align:left;font-weight:800;color:var(--ink)}
.filter span{width:18px;height:18px;border-radius:50%;background:var(--c)}.filter.all{justify-content:center;background:#102a43;color:white}.filter.active{outline:3px solid rgba(247,127,0,.25)}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.quick-grid div{background:#f6efe2;border-radius:20px;padding:18px}.quick-grid b{display:block;margin-bottom:8px}.quick-grid span{color:var(--muted)}
.cards{max-width:1180px;margin:0 auto;display:grid;gap:28px;padding:0 22px}
.activity-card{background:var(--card);border:1px solid var(--line);border-radius:30px;overflow:hidden;box-shadow:var(--shadow)}
.hero-img{height:420px;position:relative;background:#ddd;overflow:hidden}.hero-img img{width:100%;height:100%;object-fit:cover;display:block}.hero-img:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(16,42,67,.82),transparent 58%)}
.hero-overlay{position:absolute;left:24px;right:24px;bottom:24px;z-index:2;color:white}.hero-overlay h2{max-width:780px;text-shadow:0 4px 18px rgba(0,0,0,.35)}.hero-overlay p{font-size:18px;margin:0}
.pill{display:inline-flex;background:var(--pill);color:white;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900;margin:0 6px 8px 0}
.card-grid,.lower-grid{display:grid;grid-template-columns:1.35fr .8fr;gap:22px;padding:24px}
.main-copy p{font-size:16px;line-height:1.55;color:#263b50}.timeline{list-style:none;margin:0;padding:0;display:grid;gap:9px}.timeline li{display:grid;grid-template-columns:72px 1fr;gap:12px;border-left:4px solid #f77f00;padding:4px 0 4px 12px}.timeline b{color:#f77f00}.timeline span{color:#263b50}
.facts{display:grid;gap:10px}.fact{background:#f6efe2;border-radius:18px;padding:14px}.fact span{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.08em}.fact b{display:block;font-size:18px}.fact small{display:block;color:var(--muted);margin-top:6px;line-height:1.35}
.restaurants{display:grid;gap:12px}.restaurant{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#f6efe2;border-radius:18px;padding:12px}.restaurant h4{margin:0 0 4px}.restaurant p{margin:0 0 4px;color:var(--muted)}.restaurant img{width:74px;height:74px;border-radius:8px;background:white}
.qrs{display:flex;gap:12px;flex-wrap:wrap}.qr{text-decoration:none;color:var(--ink);display:flex;flex-direction:column;align-items:center;font-weight:800;font-size:12px;background:#f6efe2;border-radius:16px;padding:10px;width:102px}.qr img{width:76px;height:76px;border-radius:8px;background:white;margin-bottom:6px}
.warning{margin:0 24px 14px;padding:14px 16px;border-radius:18px;background:#fff1e6;color:#7a3b00}.credit{margin:0 24px 24px;color:var(--muted);font-size:12px}
.credits ul{line-height:1.7}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:rgba(16,42,67,.94);padding:10px max(12px,env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));z-index:30;backdrop-filter:blur(18px)}
.bottom-nav a{color:white;text-decoration:none;font-weight:800;padding:8px 18px;border-radius:999px}
@media (max-width:820px){
  .map-wrap,.card-grid,.lower-grid,.quick-grid{grid-template-columns:1fr}
  .hero-img{height:360px}
  .panel{margin:16px 12px;padding:16px;border-radius:22px}
  .cards,.section-title{padding:0 12px}
  .card-grid,.lower-grid{padding:18px}
}
@media (max-width:520px){
  .cover{min-height:68vh;padding:28px 18px}
  h1{font-size:48px}.hero-img{height:310px}.hero-overlay{left:16px;right:16px;bottom:18px}
  .timeline li{grid-template-columns:60px 1fr}
  .restaurant{align-items:flex-start}.restaurant img{width:66px;height:66px}
}
@media print{
  body{background:white;padding-bottom:0}.topbar,.bottom-nav{display:none}.activity-card,.panel{break-inside:avoid;box-shadow:none}.hero-img{height:300px}
}

.btn.pdf{background:#102a43;color:#fff}


/* --- Header actions / favicon companion --- */
.top-actions{display:flex;gap:8px;align-items:center;flex-shrink:0}
.header-pdf{display:inline-flex;align-items:center;text-decoration:none;border-radius:999px;background:#f77f00;color:#111;padding:10px 14px;font-weight:900}
#currentPageTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(58vw,680px)}
.qr-fallback{display:flex;align-items:center;justify-content:center;width:76px;height:76px;background:white;border-radius:8px;font-weight:900;color:#102a43;border:1px solid rgba(16,42,67,.12);margin-bottom:6px}

/* --- Magazine page-by-page scroll mode --- */
html,body{height:100%;overflow:hidden}
body{padding-bottom:0}
main{
  height:calc(100vh - 66px);
  height:calc(100dvh - 66px);
  overflow-y:auto;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  padding-bottom:78px;
}
.magazine-page,.activity-card{
  min-height:calc(100vh - 84px);
  min-height:calc(100dvh - 84px);
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.cover.magazine-page{
  min-height:calc(100vh - 66px);
  min-height:calc(100dvh - 66px);
}
.panel.magazine-page{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.fiches-title{
  min-height:38vh;
  scroll-snap-align:start;
}
.cards{gap:0}
.cards .activity-card + .activity-card{margin-top:28px}
.activity-card{
  display:flex;
  flex-direction:column;
  margin-bottom:0;
}
.hero-img{flex:0 0 min(43vh,420px)}
.card-grid{flex:1}
.facts{
  grid-template-columns:1fr 1fr;
  align-content:start;
}
.fact{
  position:relative;
  padding-left:52px;
  min-height:78px;
}
.fact:before{
  position:absolute;
  left:16px;
  top:18px;
  font-size:24px;
  line-height:1;
}
.fact:nth-child(1):before{content:"🚗"}
.fact:nth-child(2):before{content:"⏳"}
.fact:nth-child(3):before{content:"🕘"}
.fact:nth-child(4):before{content:"🦵"}
.fact:nth-child(5):before{content:"💰"}
.fact span{font-size:11px}
.fact b{font-size:17px}
.topbar{min-height:66px}
.topbar>div:first-child{min-width:0}
.bottom-nav a{min-width:72px;text-align:center}

/* Make page reading feel like a magazine on iPad/iPhone */
@media (min-width:821px){
  .activity-card{max-height:none}
  .lower-grid{padding-top:0}
}
@media (max-width:820px){
  main{height:calc(100dvh - 66px)}
  .magazine-page,.activity-card{min-height:calc(100dvh - 84px)}
  .facts{grid-template-columns:1fr 1fr}
  .hero-img{flex-basis:34vh}
}
@media (max-width:520px){
  .topbar{gap:8px}
  .topbar strong{font-size:16px}
  .topbar button,.header-pdf{padding:9px 11px}
  .facts{grid-template-columns:1fr}
  .fact{min-height:70px}
  .hero-img{flex-basis:30vh}
}

.route-qr{
  outline:3px solid rgba(247,127,0,.28);
  background:#fff7e8;
}
.route-qr span:before{
  content:"🧭 ";
}
