/* Waygami — pages publiques : séjour partagé (/t/), pages des séjours (/sejours/), accueil. Aucune police externe (CSP font-src 'none'). Couleurs du kit de marque. */
:root {
  --blue: #1d5c70; --blue-deep: #0e2b3a; --orange: #e2672b; --sunset: #f3c08c;
  --bg: #f4fafd; --card: #ffffff; --text: #181c1e; --muted: #3e484d; --line: #d8e4ea;
  --c0: #1d5c70; --c1: #ff6b35; --c2: #2e9d6a; --c3: #8a4fd1; --c4: #d13f6a; --c5: #0f9bb0;
  --radius: 16px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1c25; --card: #12262f; --text: #e6eff2; --muted: #a7b8bf; --line: #23404b; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { a { color: #f3c08c; } }

/* En-tête */
.hero { position: relative; color: #fbf6ea; background: linear-gradient(160deg, #0e2b3a, #1d5c70); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero.has-cover { background: #0b1520; }
.hero-body { position: relative; max-width: 1180px; margin: 0 auto; padding: 28px 20px 26px; }
.hero .brand { margin: 0 0 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; opacity: .9; }
.hero .kicker { margin: 0; font-size: .9rem; font-weight: 600; opacity: .92; }
.hero h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero .route { margin: 0 0 6px; font-weight: 600; }
.hero .summary { margin: 8px 0 0; max-width: 760px; opacity: .95; }
.hero .hero-credit { margin: 14px 0 0; font-size: .72rem; opacity: .8; }
.hero .hero-credit a { color: inherit; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
  color: #fff; border: 1.5px solid rgba(255,255,255,.75); min-height: 44px; }
.btn.primary { background: var(--orange); border-color: var(--orange); }
.btn:hover { filter: brightness(1.08); }
.hint { margin: 10px 0 0; font-size: .82rem; opacity: .85; }
.hint a { color: #fff; }

/* Mise en page : carte + contenu */
.layout { max-width: 1180px; margin: 0 auto; padding: 16px 12px 8px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }
.card { overflow-wrap: anywhere; }
.map-wrap { position: relative; }
.map { height: 46vh; min-height: 280px; max-height: 520px; border-radius: var(--radius); overflow: hidden; background: #dfe7f1; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
@media (min-width: 960px) {
  .layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; padding-top: 22px; }
  .map-wrap { position: sticky; top: 16px; order: 2; }
  .map { height: calc(100vh - 32px); max-height: none; }
  .content { order: 1; }
}
.days-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.days-nav::-webkit-scrollbar { display: none; }
.days-nav a { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }

/* Jour */
.day { background: var(--card); border-radius: var(--radius); padding: 18px 16px 8px; margin-bottom: 16px; box-shadow: 0 1px 6px rgba(0,0,0,.05);
  border-top: 5px solid var(--day, var(--c0)); scroll-margin-top: 12px; }
.day[data-color="1"] { --day: var(--c1); } .day[data-color="2"] { --day: var(--c2); } .day[data-color="3"] { --day: var(--c3); }
.day[data-color="4"] { --day: var(--c4); } .day[data-color="5"] { --day: var(--c5); } .day[data-color="0"] { --day: var(--c0); }
.day-num { margin: 0; color: var(--day); font-weight: 800; text-transform: capitalize; font-size: .92rem; }
.day h2 { margin: 2px 0 6px; font-size: 1.3rem; line-height: 1.25; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 8px; color: var(--muted); font-size: .9rem; }
.facts .weather { color: var(--text); font-weight: 600; }
.facts .weather.rainy { color: #2f6fb5; }
button.link { background: none; border: 0; padding: 4px 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.day-desc { margin: 4px 0 10px; }

/* Timeline */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 16px; width: 2px; background: var(--line); }
.item { position: relative; padding: 0 0 14px 44px; }
.dot { position: absolute; left: 2px; top: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--day, var(--blue));
  color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--card); }
.item-meal .dot { background: var(--orange); }
.item-meal .dot::after { content: "•"; }
.item-lodging .dot { background: #3a4a5e; }
.item-lodging .dot::after { content: "☾"; }
.card h3 { margin: 4px 0 4px; font-size: 1.05rem; line-height: 1.3; }
.card .prefix { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 4px; font-size: .86rem; color: var(--muted); }
.tag { background: color-mix(in srgb, var(--day, var(--blue)) 14%, transparent); color: var(--text); padding: 1px 8px; border-radius: 6px; font-weight: 600; }
.tags .closed { color: #c0392b; font-weight: 600; }
.notes { margin: 4px 0; }
.links { margin: 2px 0 0; font-size: .86rem; }
.muted { color: var(--muted); }
.photo { margin: 6px 0 8px; }
.photo img { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; background: var(--line); }
@media (min-width: 700px) { .photo img { height: 170px; } }
.photo figcaption { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.leg { position: relative; padding: 0 0 12px 44px; color: var(--muted); font-size: .84rem; font-style: italic; }
.van { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }

/* Pied de page */
.credits { max-width: 1180px; margin: 0 auto; padding: 8px 20px 36px; color: var(--muted); font-size: .8rem; }

/* Marqueurs de la carte */
.pin { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font: 800 12px/1 system-ui, sans-serif;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-stop { background: var(--c0); }
.pin-stop.pin-day-1 { background: var(--c1); } .pin-stop.pin-day-2 { background: var(--c2); }
.pin-stop.pin-day-3 { background: var(--c3); } .pin-stop.pin-day-4 { background: var(--c4); }
.pin-stop.pin-day-5 { background: var(--c5); }
.pin-meal { background: var(--orange) !important; }
.pin-lodging { background: #3a4a5e !important; }
.pin-start, .pin-end { background: #fff !important; border-color: #3a4a5e; }

/* 404 */
.notfound { max-width: 560px; margin: 12vh auto; padding: 24px; text-align: center; }
.notfound .brand { color: var(--blue); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* Accroche « Créez le vôtre » (G-08), affichée seulement si share.app-download-url est renseignée */
.cta { max-width: 1180px; margin: 8px auto 0; padding: 22px 20px; box-sizing: border-box; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue) 55%, var(--sunset)); border-radius: var(--radius); }
.cta h2 { margin: 0 0 6px; font-size: 1.35rem; }
.cta p { margin: 0 auto 14px; max-width: 620px; opacity: .95; }
@media (max-width: 1204px) { .cta { margin-left: 12px; margin-right: 12px; } }

/* ── Barre du site (logo, nom, description courte) ─────────────────────── */
.topbar { background: #0e2b3a; color: #fbf6ea; }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 12px; }
.topbar a.home { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.topbar img.logo { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.topbar .name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.topbar .tagline { display: block; font-size: .78rem; color: #f3c08c; line-height: 1.25; }
.topbar nav { margin-left: auto; display: flex; gap: 8px; flex: none; }
.topbar nav a { color: #fbf6ea; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 12px;
  border-radius: 999px; border: 1px solid rgba(251,246,234,.35); }
.topbar nav a.store { background: #e2672b; border-color: #e2672b; }
@media (max-width: 560px) { .topbar nav a.browse { display: none; } .topbar .tagline { font-size: .72rem; } }

/* ── Site : accueil et recherche ───────────────────────────────────────── */
.site-hero .hero-body { padding: 30px 20px 28px; }
.site-hero h1 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); margin: 0 0 10px; }
.site-hero .lead { font-size: 1.08rem; max-width: 720px; margin: 0; }
.site-hero .proof { color: #f3c08c; font-weight: 700; margin: 10px 0 0; }
.site-main { max-width: 1180px; margin: 0 auto; padding: 18px 20px 28px; }
.site-main h2 { font-size: 1.3rem; margin: 26px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.trip-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; color: var(--text); text-decoration: none; }
.trip-card img, .trip-card .noimg { width: 100%; height: 120px; object-fit: cover; display: block;
  background: linear-gradient(135deg, #1d5c70, #f3c08c); }
.trip-card .body { display: block; padding: 10px 12px 12px; }
.trip-card .meta { display: block; margin: 0 0 4px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.trip-card .title { display: block; margin: 0; font-weight: 700; line-height: 1.3; font-size: .98rem; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.filter-row .label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); min-width: 78px; }
.chip { display: inline-block; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; min-height: 36px; }
.chip.on { background: #1d5c70; border-color: #1d5c70; color: #fff; }
@media (prefers-color-scheme: dark) { .chip.on { background: #9acee4; border-color: #9acee4; color: #013544; } }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 18px 0 10px; }
.results-head p { margin: 0; color: var(--muted); font-weight: 600; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 22px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); text-decoration: none; color: var(--text); font-weight: 600; min-height: 40px; }
.locked { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(243,192,140,.22);
  border: 1px solid rgba(226,103,43,.35); }
.breadcrumb { font-size: .85rem; margin: 0 0 10px; }
.breadcrumb a { color: inherit; }
.brand a { color: inherit; text-decoration: none; }
.more { display: contents; }
.more > summary { display: inline-block; cursor: pointer; padding: 7px 13px; border-radius: 999px; border: 1px dashed var(--line);
  font-weight: 700; font-size: .9rem; color: var(--blue); list-style: none; min-height: 36px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { display: none; }
@media (max-width: 700px) {
  /* Filtres : une ligne défilante par critère, comme les puces de l'app */
  .filters { padding: 8px 0; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 12px; margin: 4px 0; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .label { min-width: 0; flex: none; }
  .chip, .more > summary { flex: none; white-space: nowrap; }
  .site-main h1 { font-size: 1.6rem; margin: 6px 0 12px; }
}
.site-hero .hero-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.site-hero .hero-logo { width: 160px; height: 160px; border-radius: 36px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
@media (max-width: 700px) { .site-hero .hero-body { grid-template-columns: 1fr; } .site-hero .hero-logo { display: none; } }
/* Carte sans photo : logo Waygami sur le dégradé de la marque */
.trip-card .noimg { background: url(logo.svg) center / 56px 56px no-repeat, linear-gradient(135deg, #1d5c70, #f3c08c); }
