/* Midspot — pages de contenu (pages par usage, pages légales). DA « pin paysage ».
   Pages autonomes et légères : elles ne chargent pas styles.css (feuille de l'appli, plein écran sans
   défilement) ; les jetons de la DA sont repris ici à l'identique.
   Système de relief, commun à toutes ces pages :
   - papier pointillé en fond (même trame que la barre latérale de l'appli) ;
   - « ciel » chaud en haut de page, soleil et collines ;
   - cartes en papier blanc posées sur le fond : liseré + ombre courte dure + ombre longue douce (--relief) ;
   - le chemin en pointillés qui relie les étapes, comme sur l'illustration d'accueil. */
:root {
  --forest: #0F4D3F; --sauge: #4E8F7A; --menthe: #A7D7C5; --sable: #F5EAD7; --terre: #E07B57; --soleil: #F6C453;
  --cream: #FBF7EF; --border: #F0E6D3; --g-deeper: #0A3A2F; --g-light: #EAF5F0; --ink: #14302A; --muted: #6B7F77;
  --surface: #FFFFFF; --body-ink: #33483F; --sky: #FCEBD3;
  --ff-display: 'Plus Jakarta Sans', system-ui, sans-serif; --ff-body: 'Inter', system-ui, sans-serif;
  --ff-hand: 'Caveat', 'Plus Jakarta Sans', cursive;
  --relief: 0 1px 0 #fff inset, 0 3px 0 var(--border), 0 22px 34px -24px rgba(15, 77, 63, .5);
  --relief-sm: 0 2px 0 var(--border), 0 14px 22px -18px rgba(15, 77, 63, .45);
  --hills: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 170' preserveAspectRatio='none'%3E%3Cpath fill='%23A7D7C5' fill-opacity='.6' d='M0 84C170 30 330 112 560 66S960 16 1200 78V170H0Z'/%3E%3Cpath fill='%234E8F7A' fill-opacity='.62' d='M0 118C230 62 430 146 700 104S1040 66 1200 116V170H0Z'/%3E%3Cpath fill='%230F4D3F' d='M0 146C260 108 470 164 760 138S1060 118 1200 142V170H0Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pg { margin: 0; color: var(--ink); font-family: var(--ff-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
  background-color: var(--cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(15, 77, 63, .075) 1px, transparent 0);
  background-size: 22px 22px; position: relative; overflow-x: hidden; }
/* Ciel : dégradé chaud qui s'efface dans le papier */
body.pg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 440px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky) 0%, rgba(252, 235, 211, .55) 45%, rgba(251, 247, 239, 0) 100%); }
body.pg > * { position: relative; z-index: 1; }

/* ── En-tête ── */
.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 900px; margin: 0 auto; padding: 18px 20px 8px; }
.pg-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--forest);
  font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.035em; }
.pg-brand img { display: block; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .7rem 1.6rem; border-radius: 999px;
  background: var(--forest); color: #fff; font-family: var(--ff-display); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 3px 0 var(--g-deeper), 0 14px 20px -12px rgba(15, 77, 63, .7); transition: transform .12s ease, box-shadow .12s ease; }
.pg-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--g-deeper), 0 18px 22px -12px rgba(15, 77, 63, .7); }
.pg-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--g-deeper); }
.pg-btn--sm { min-height: 40px; padding: .4rem 1.05rem; font-size: .88rem; }
.pg-btn--sun { background: var(--soleil); color: var(--ink); box-shadow: 0 3px 0 #D9A21B, 0 14px 20px -12px rgba(0, 0, 0, .5); }
.pg-btn--sun:hover { box-shadow: 0 4px 0 #D9A21B, 0 18px 22px -12px rgba(0, 0, 0, .5); }
.pg-btn--sun:active { box-shadow: 0 1px 0 #D9A21B; }
.pg a:focus-visible, .pg summary:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 6px; }

.pg-main { max-width: 820px; margin: 0 auto; padding: 8px 20px 56px; }
.pg-crumb { font-size: .82rem; color: var(--muted); margin: 0 0 .9rem .3rem; }
.pg-crumb a { color: var(--forest); font-weight: 600; text-decoration: none; }

/* ── Héros : carte « paysage » (ciel, soleil, collines, deux pins reliés par le chemin) ── */
.pg-hero { position: relative; overflow: hidden; border-radius: 30px; border: 1.5px solid #F1DFC4;
  background: linear-gradient(180deg, #FFF6E6 0%, #F7F3E4 55%, #E4F1E8 100%);
  padding: 2.4rem 2.2rem 0; box-shadow: var(--relief); }
.pg-hero::before { content: ""; position: absolute; top: -34px; right: 56px; width: 124px; height: 124px; border-radius: 50%;
  background: var(--soleil); box-shadow: 0 0 0 22px rgba(246, 196, 83, .2), 0 0 0 48px rgba(246, 196, 83, .1); }
.pg-hero > * { position: relative; }
.pg-hand { display: inline-block; font-family: var(--ff-hand); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--forest);
  transform: rotate(-3deg); transform-origin: left bottom; margin: 0 0 1rem; padding-bottom: .35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8C80 3 190 2 297 5' fill='none' stroke='%23F6C453' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat; }
.pg-hero h1 { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.9rem, 5.4vw, 2.8rem); line-height: 1.1;
  letter-spacing: -.035em; color: var(--forest); margin: 0 0 1rem; max-width: 15em; text-wrap: balance; }
.pg-intro { font-size: 1.08rem; color: var(--body-ink); margin: 0 0 1.5rem; max-width: 36em; }
.pg-hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; margin: 0; }
.pg-free { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .75);
  border: 1.5px solid var(--border); font-size: .84rem; font-weight: 600; color: var(--forest); }
.pg-scene { display: block; width: calc(100% + 4.4rem); max-width: none; height: 150px; margin: 1.6rem -2.2rem 0; }

/* ── Le chemin : sections reliées par des pointillés, chacune avec son repère ── */
.pg-route { list-style: none; margin: 2.6rem 0 0; padding: 0; counter-reset: stop; position: relative; }
.pg-route::before { content: ""; position: absolute; left: 21px; top: 26px; bottom: 26px; width: 0; border-left: 3px dotted var(--sauge); opacity: .55; }
.pg-stop { position: relative; counter-increment: stop; margin: 0 0 1.3rem; padding-left: 62px; }
.pg-stop::before { content: counter(stop); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg); background: var(--forest); box-shadow: 0 0 0 5px var(--cream), var(--relief-sm); }
.pg-stop::after { content: counter(stop); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; display: grid; place-items: center;
  color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 1rem; }
.pg-stop::before { color: transparent; }
.pg-stop:nth-child(3n+2)::before { background: var(--terre); }
.pg-stop:nth-child(3n+3)::before { background: var(--sauge); }
.pg-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 24px; padding: 1.5rem 1.6rem 1.2rem; box-shadow: var(--relief); }
.pg-card h2, .pg-block h2 { font-family: var(--ff-display); font-weight: 700; font-size: 1.32rem; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 0 0 .6rem; }
.pg-card p { margin: 0 0 .8rem; color: var(--body-ink); }
.pg-block { margin-top: 3rem; }
.pg-block > h2 { display: flex; align-items: center; gap: .7rem; }
.pg-block > h2::after { content: ""; flex: 1; border-top: 3px dotted var(--menthe); }

/* ── Bandeau d'appel : aplat forêt, soleil dans le coin, collines ── */
.pg-cta { position: relative; overflow: hidden; margin-top: 3rem; border-radius: 28px; padding: 2.4rem 1.6rem 5.2rem; text-align: center;
  background: var(--forest) var(--hills) center bottom / 100% 86px no-repeat; background-blend-mode: soft-light;
  box-shadow: 0 3px 0 var(--g-deeper), 0 26px 36px -24px rgba(15, 77, 63, .8); }
.pg-cta::before { content: ""; position: absolute; top: -30px; right: 44px; width: 78px; height: 78px; border-radius: 50%; background: var(--soleil);
  box-shadow: 0 0 0 16px rgba(246, 196, 83, .16); }
.pg-cta .pg-hand { color: var(--menthe); font-size: 1.5rem; margin-bottom: .5rem; }
.pg-cta h2 { position: relative; color: #fff; font-family: var(--ff-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; margin: 0 0 1.2rem; }
.pg-cta p { position: relative; margin: 0; }
.pg-cta .pg-cta-txt { max-width: 560px; margin: -.4rem auto 1.3rem; color: var(--sable); font-size: .95rem; line-height: 1.6; }
.pg-cta .pg-cta-txt a { color: var(--menthe); font-weight: 700; text-underline-offset: 3px; }

.pg-more { margin-top: 2.6rem; }
.pg-more h2 { font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; margin: 0 0 .8rem; }
.pg-more ul { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; }
.pg-more a { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; background: var(--surface);
  border: 1.5px solid var(--border); color: var(--forest); font-weight: 600; font-size: .9rem; text-decoration: none; box-shadow: var(--relief-sm);
  transition: transform .12s ease; }
.pg-more a::before { content: ""; width: 9px; height: 9px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); background: var(--terre); }
.pg-more a:hover { transform: translateY(-2px); }

.pg-foot { max-width: 900px; margin: 0 auto; padding: 1.4rem 20px 2.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: center; font-size: .82rem; }
.pg-foot a { color: var(--forest); font-weight: 600; text-decoration: none; }
.pg-foot a:hover { text-decoration: underline; }

/* ── « Comment ça marche » et FAQ (mêmes blocs que l'accueil, avec le relief des pages) ── */
.how-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.how-step { background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 1.3rem 1.2rem; box-shadow: var(--relief-sm); }
.how-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--g-light);
  color: var(--forest); font-family: var(--ff-display); font-weight: 800; font-size: .95rem; margin-bottom: .75rem; }
.how-step h3 { font-family: var(--ff-display); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.how-step p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.faq-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 0 1.1rem; margin-bottom: .7rem; box-shadow: var(--relief-sm); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .95rem 0; font-family: var(--ff-display); font-weight: 700; font-size: .98rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--g-light); color: var(--forest); font-size: 1.2rem; font-weight: 600; line-height: 1; }
.faq-item[open] summary::after { content: "–"; background: var(--forest); color: #fff; }
.faq-item p { color: var(--muted); font-size: .93rem; line-height: 1.6; margin: 0; padding-bottom: 1rem; }

/* ── Pages légales : une feuille de papier posée sous un petit ciel ── */
.pg--legal .pg-main { max-width: 800px; }
.pg-legal-head { position: relative; padding: 1.2rem .3rem 5.2rem; margin-bottom: -3.4rem;
  background: var(--hills) center bottom / 100% 92px no-repeat; }
.pg-legal-head::before { content: ""; position: absolute; top: 6px; right: 40px; width: 70px; height: 70px; border-radius: 50%; background: var(--soleil);
  box-shadow: 0 0 0 14px rgba(246, 196, 83, .2), 0 0 0 30px rgba(246, 196, 83, .1); }
.pg-legal-head h1 { position: relative; font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.12;
  letter-spacing: -.035em; color: var(--forest); margin: 0 0 .3rem; max-width: 14em; }
.pg-legal-head .updated { position: relative; font-size: .84rem; color: var(--muted); margin: 0; }
.pg-paper { position: relative; background: var(--surface); border: 1.5px solid var(--border); border-radius: 26px; padding: 1.2rem 2rem 1.8rem;
  box-shadow: var(--relief); font-size: 15px; }
.pg-paper h2 { position: relative; font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; color: var(--forest); line-height: 1.3;
  margin: 2rem 0 .7rem; padding: 0 0 .5rem 1.5rem; border-bottom: 3px dotted var(--menthe); }
.pg-paper h2::before { content: ""; position: absolute; left: 0; top: .28em; width: 13px; height: 13px; border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg); background: var(--terre); }
.pg-paper h3 { font-family: var(--ff-display); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 1.2rem 0 .4rem; }
.pg-paper p { margin: 0 0 .8rem; color: var(--body-ink); }
.pg-paper ul { margin: .4rem 0 .8rem 1.3rem; padding: 0; color: var(--body-ink); }
.pg-paper li { margin-bottom: .3rem; }
.pg-paper li::marker { color: var(--sauge); }
.pg-paper a { color: var(--forest); font-weight: 600; text-underline-offset: 2px; }
.pg-paper code { background: var(--g-light); color: var(--forest); padding: .1rem .35rem; border-radius: 6px; font-size: .88em; }
.pg-paper .placeholder { background: var(--sable); color: var(--muted); padding: .2rem .5rem; border-radius: 6px; font-size: .88em; font-style: italic; }
.pg-paper .offer-box { background: var(--cream); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.1rem 1.3rem; margin: 1rem 0; box-shadow: var(--relief-sm); }
.pg-paper .offer-name { font-family: var(--ff-display); font-weight: 700; color: var(--forest); margin-bottom: .3rem; }
.pg-table { margin: 1rem 0; border: 1.5px solid var(--border); border-radius: 16px; overflow-x: auto; box-shadow: var(--relief-sm); }
.pg-paper table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; }
.pg-paper th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--forest); font-weight: 700;
  padding: .65rem .8rem; background: var(--sable); }
.pg-paper td { padding: .7rem .8rem; border-top: 1px solid var(--border); vertical-align: top; color: var(--body-ink); }
.pg-paper td:first-child { font-weight: 600; color: var(--forest); }
.pg-paper tr:nth-child(even) td { background: #FDFBF6; }

@media (max-width: 720px) { .how-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pg-btn--sm { display: none; }
  .pg-hero { padding: 1.6rem 1.2rem 0; border-radius: 24px; }
  .pg-hero::before { width: 84px; height: 84px; top: -30px; right: 18px; }
  .pg-hand { font-size: 1.5rem; }
  .pg-scene { width: calc(100% + 2.4rem); margin: 1.3rem -1.2rem 0; height: 110px; }
  .pg-route::before { left: 15px; }
  .pg-stop { padding-left: 44px; }
  .pg-stop::before, .pg-stop::after { width: 32px; height: 32px; top: 16px; font-size: .85rem; }
  .pg-card { padding: 1.2rem 1.1rem .9rem; border-radius: 20px; }
  .pg-paper { padding: .6rem 1.1rem 1.4rem; border-radius: 20px; }
  .pg-legal-head::before { width: 44px; height: 44px; top: -2px; right: 10px; box-shadow: 0 0 0 10px rgba(246, 196, 83, .2); }
  .pg-legal-head h1 { max-width: calc(100% - 70px); }
}
@media (prefers-reduced-motion: reduce) { .pg-btn, .pg-more a { transition: none; } }

/* ── Outil « temps de trajet / zone atteignable » (trajets.html, trajets.js) ── */
.pg-main--wide { max-width: 1080px; }
.pg-hero--tool { padding: 1.5rem 1.8rem 1.4rem; }
.pg-hero--tool h1 { font-size: clamp(1.6rem, 4.2vw, 2.2rem); max-width: none; margin-bottom: .6rem; }
.pg-hero--tool .pg-hand { margin-bottom: .6rem; font-size: 1.5rem; }
.pg-hero--tool::before { width: 92px; height: 92px; top: -30px; }
.pg-top:has(+ .pg-main--wide) { max-width: 1080px; }
.pg-hero--tool .pg-intro { margin-bottom: 0; }
.how-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool { margin-top: 1.6rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 28px; padding: 1.1rem; box-shadow: var(--relief); }
.tool-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sable); margin-bottom: 1rem; max-width: 100%; }
.tool-tab { border: 0; background: none; cursor: pointer; padding: .55rem 1.1rem; border-radius: 999px; min-height: 44px;
  font: 700 .92rem var(--ff-display); color: var(--forest); white-space: nowrap; }
.tool-tab.on { background: var(--forest); color: #fff; box-shadow: 0 2px 0 var(--g-deeper); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
.tool-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.tool-form { display: flex; flex-direction: column; gap: .9rem; }
/* La carte garde sa hauteur et suit le défilement pendant que le formulaire et les résultats s'allongent */
.tool-map { height: 540px; align-self: start; position: sticky; top: 14px; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--border); background: var(--g-light)
  radial-gradient(circle at 1px 1px, rgba(15, 77, 63, .1) 1px, transparent 0) 0 0 / 22px 22px; }
.tool-credit { margin: .8rem .3rem 0; font-size: .74rem; color: var(--muted); }
.tf-label { display: block; font: 700 .8rem var(--ff-display); color: var(--forest); margin-bottom: .3rem; }
.tf-addr { position: relative; }
.tf-input { width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: 14px; border: 1.5px solid var(--border); background: var(--cream);
  font: 500 16px var(--ff-body); color: var(--ink); }
.tf-input:focus { outline: none; border-color: var(--sauge); background: #fff; box-shadow: 0 0 0 3px rgba(78, 143, 122, .2); }
.tf-input.ok { border-color: var(--menthe); background: #fff; }
.tf-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 14px; box-shadow: 0 16px 30px -12px rgba(15, 77, 63, .45); max-height: 240px; overflow-y: auto; }
.tf-sugg li { padding: .55rem .7rem; border-radius: 10px; font-size: .88rem; line-height: 1.35; cursor: pointer; color: var(--ink); }
.tf-sugg li:hover, .tf-sugg li.cur { background: var(--g-light); }
.tf-sugg--none li { cursor: default; color: var(--muted); }
.tf-sugg--none li:hover { background: none; }
.tf-sugg small { display: block; color: var(--muted); font-size: .78rem; }
.tf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tf-chip { border: 1.5px solid var(--border); background: var(--cream); color: var(--ink); cursor: pointer; border-radius: 999px; padding: .4rem .8rem;
  min-height: 38px; font: 600 .84rem var(--ff-body); }
.tf-chip.on { background: var(--g-light); border-color: var(--sauge); color: var(--forest); box-shadow: inset 0 0 0 1px var(--sauge); }
.tf-person { border: 1.5px solid var(--border); border-radius: 18px; padding: .8rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; position: relative; }
.tf-person-hd { display: flex; align-items: center; gap: .5rem; font: 700 .86rem var(--ff-display); color: var(--ink); }
.tf-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 .72rem var(--ff-display); flex-shrink: 0; }
.tf-remove { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.tf-remove:hover { background: var(--sable); color: var(--terre); }
.tf-add { align-self: flex-start; border: 1.5px dashed var(--sauge); background: none; color: var(--forest); cursor: pointer; border-radius: 999px;
  padding: .45rem .95rem; min-height: 40px; font: 700 .84rem var(--ff-display); }
.tf-add:hover { background: var(--g-light); }
.tf-submit { border: 0; cursor: pointer; width: 100%; }
.tf-submit:disabled { opacity: .6; cursor: progress; }
.tf-error { margin: 0; padding: .6rem .8rem; border-radius: 12px; background: #FCE3D6; color: #9A3F1F; font-size: .86rem; font-weight: 600; }
.tr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tr-row { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .6rem; align-items: center; padding: .65rem .75rem; border-radius: 14px; background: var(--cream); border: 1.5px solid var(--border); }
.tr-who { font: 700 .86rem var(--ff-display); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-who small { display: block; font: 500 .76rem var(--ff-body); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.tr-time { font: 800 1.15rem var(--ff-display); color: var(--forest); white-space: nowrap; text-align: right; }
.tr-time small { display: block; font: 500 .74rem var(--ff-body); color: var(--muted); }
.tr-bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.tr-bar i { display: block; height: 100%; border-radius: 999px; }
.tr-sum { margin: 0 0 .6rem; padding: .7rem .85rem; border-radius: 14px; background: var(--g-light); border: 1.5px solid var(--menthe); color: var(--forest); font-size: .9rem; line-height: 1.45; }
.tr-sum strong { font-family: var(--ff-display); }
.tr-note { margin: .5rem 0 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.tool-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; border: 2.5px solid #fff;
  box-shadow: 0 4px 10px rgba(15, 48, 42, .4); }
.tool-pin b { transform: rotate(45deg); color: #fff; font: 800 .74rem var(--ff-display); }
@media (max-width: 860px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-map { height: 360px; position: static; }
  .tool { padding: .8rem; border-radius: 22px; }
  .tool-tabs { display: flex; }
  .tool-tab { flex: 1; padding-inline: .6rem; font-size: .84rem; }
  .how-grid--2 { grid-template-columns: 1fr; }
}

/* ── Pages par ville : exemples calculés et liste des villes ── */
.pg-note { color: var(--muted); font-size: .88rem; margin: -.2rem 0 1rem; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ex-card { margin: 0; background: var(--surface); border: 1.5px solid var(--border); border-radius: 22px; padding: 1.2rem 1.2rem 1rem; box-shadow: var(--relief-sm); min-width: 0; }
.ex-card figcaption { color: var(--ink); line-height: 1.45; margin-bottom: .8rem; }
.ex-card figcaption span { display: block; color: var(--muted); font-size: .85rem; }
.ex-card table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ex-card td { white-space: nowrap; }
.ex-card th, .ex-card td { padding: .45rem .35rem; text-align: right; border-bottom: 1px solid var(--border); }
.ex-card th[scope="row"], .ex-card thead th:first-child { text-align: left; font-weight: 500; color: var(--muted); }
.ex-card thead th { font-family: var(--ff-display); font-weight: 600; color: var(--ink); font-size: .82rem; }
.ex-card .ex-fair td, .ex-card .ex-fair th { color: var(--forest); font-weight: 700; background: var(--g-light); }
.ex-card p { color: var(--body-ink); font-size: .9rem; line-height: 1.5; margin: .8rem 0 0; }
.city-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 1rem; padding: 0; }
.city-grid a { display: block; padding: .9rem 1.1rem; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: var(--relief-sm); color: var(--forest); font-weight: 600; text-decoration: none; }
.city-grid a:hover { border-color: var(--sauge); }
.pg-more h2 + ul + h2 { margin-top: 1.4rem; }
/* Pages « entre deux quartiers » (quartier_pages.py) : tableau des scénarios, défile en lui-même sur téléphone */
.ex-card--wide { overflow-x: auto; }
.ex-card--wide table { min-width: 520px; }
.ex-card--wide td:nth-child(2), .ex-card--wide thead th:nth-child(2) { text-align: left; white-space: normal; }
/* Comparatif des outils : texte dans toutes les cellules, aligné à gauche */
.ex-card--compare table { min-width: 680px; }
.ex-card--compare th, .ex-card--compare td { text-align: left; white-space: normal; vertical-align: top; }
@media (max-width: 720px) { .ex-grid, .city-grid { grid-template-columns: 1fr; } .ex-card { padding: 1rem .9rem .9rem; } .ex-card table { font-size: .84rem; } }

/* ── Outil « Point milieu » (trajets.js → runMid) ── */
.mid-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .7rem 0 0; }
.mid-table th, .mid-table td { padding: .45rem .3rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.mid-table thead th { font: 600 .78rem var(--ff-display); color: var(--muted); }
.mid-table th[scope="row"], .mid-table thead th:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.mid-table th[scope="row"] .tf-dot { display: inline-grid; vertical-align: middle; margin-right: .3rem; }
.mid-table td strong { color: var(--forest); }
.mid-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .9rem 0 0; }

/* ═══ DA de l'accueil (prime sur ce qui précède) ═══════════════════════════════════════════════
   Les pages de contenu reprennent l'accueil de l'appli : fond crème uni, en-tête avec la barre de
   recherche (_pg_header.html), titre centré, illustration du paysage, boutons plats en pilule.
   Mesures relevées sur l'accueil (styles_cat.css / theme.css) : ne pas les inventer. */
body.pg { background: #FFFDF8; }
body.pg::before { content: none; }

/* En-tête : grille logo | onglets + barre | compte, comme .lp-header */
.pg-top { position: sticky; top: 0; z-index: 20; max-width: none; margin: 0; display: grid;
  grid-template-columns: auto minmax(0, 760px) auto; justify-content: space-between; align-items: center; gap: 0 24px;
  padding: 7px 28px 9px; background: rgba(251, 247, 239, .96); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pg-top:has(+ .pg-main--wide) { max-width: none; }
.pg-brand { gap: .55rem; font-size: inherit; letter-spacing: normal; }
.pg-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.pg-wordmark { font: 800 1.3rem/1 var(--ff-display); letter-spacing: -.035em; color: var(--forest); }
.pg-slogan { font: 400 .68rem/1.3 var(--ff-display); color: var(--muted); margin-top: .12rem; letter-spacing: 0; }
.pg-search { min-width: 0; }
.pg-tabs { display: flex; justify-content: center; gap: 2px; }
.pg-tab { display: inline-flex; align-items: center; gap: .35rem; padding: 6px 12px; border-bottom: 2px solid transparent;
  font: 600 13px var(--ff-display); color: var(--ink); opacity: .7; text-decoration: none; white-space: nowrap; }
.pg-tab svg { color: var(--forest); }
.pg-tab:hover { opacity: 1; }
.pg-tab.is-on { font-weight: 800; opacity: 1; color: var(--forest); border-bottom-color: var(--forest); }
.pg-bar { display: flex; align-items: stretch; margin-top: 2px; padding: 4px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 22px; box-shadow: 0 4px 28px rgba(20, 48, 42, .1); }
.pg-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 6px 14px;
  border-radius: 16px; text-decoration: none; line-height: 1.35; }
.pg-field:hover { background: var(--cream); }
.pg-field-lbl { font: 700 11px var(--ff-body); color: var(--ink); }
.pg-field-val { font: 400 13px var(--ff-body); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-sep { align-self: center; width: 1px; height: 30px; background: var(--border); flex-shrink: 0; }
.pg-spotter { display: inline-flex; align-items: center; gap: 7px; align-self: center; height: 42px; padding: 0 18px; margin-left: 4px;
  border-radius: 999px; background: var(--forest); color: var(--cream); font: 700 14px var(--ff-display); text-decoration: none; flex-shrink: 0; }
.pg-spotter:hover { background: var(--g-deeper); }
.pg-acct { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: .76rem; text-decoration: none; }
.pg-acct:hover { color: var(--forest); }

/* Boutons : pilule plate, comme Spotter */
.pg-btn { box-shadow: none; transition: background .15s ease; color: var(--cream); }
.pg-btn:hover { transform: none; box-shadow: none; background: var(--g-deeper); }
.pg-btn:active { transform: none; box-shadow: none; }
.pg-btn--sun, .pg-btn--sun:hover, .pg-btn--sun:active { box-shadow: none; color: var(--ink); }
.pg-btn--sun:hover { background: #F0B93A; }

/* Héros : titre centré + paysage, comme .landing-hero / .landing-art */
.pg-main { padding-top: 18px; }
.pg-hero { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; padding: .6rem 0 1.4rem; text-align: center; }
.pg-hero::before { content: none; }
.pg-hero h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; max-width: 18em; margin: 0 auto .8rem; }
.pg-intro { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 34em; margin: 0 auto .7rem; }
.pg-note { margin: 0 0 1.1rem; font: 500 .95rem/1.6 var(--ff-body); color: var(--muted); }
.pg-hero-cta { justify-content: center; }
.pg-art { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(180deg, var(--cream) 0%, var(--sable) 100%); }
.pg-art img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 420; object-fit: cover; object-position: center bottom; }
.pg-art-accent { position: absolute; left: 6%; top: 14%; font: 600 clamp(1.35rem, 3.2vw, 2.2rem)/1 var(--ff-hand); color: var(--forest);
  transform: rotate(-5deg); transform-origin: left center; }
.pg-art-accent::after { content: ''; display: block; width: 78%; height: 12px; margin-top: .15rem; border-bottom: 3px solid var(--soleil); border-radius: 0 0 60% 40%; }
.pg-hero--tool { padding-bottom: .4rem; }
.pg-hero--tool h1 { margin-bottom: .6rem; }

/* Sections : numéros ronds de « Comment ça marche », titres de section centrés */
.pg-route::before { border-left-color: var(--menthe); opacity: 1; left: 16px; }
.pg-stop { padding-left: 54px; }
.pg-stop::before { transform: none; width: 34px; height: 34px; border-radius: 50%; top: 22px; background: var(--g-light) !important;
  box-shadow: 0 0 0 5px #FFFDF8; }
.pg-stop::after { width: 34px; height: 34px; top: 22px; color: var(--forest); font-size: .95rem; }
.pg-card { box-shadow: var(--relief-sm); border-radius: 22px; }
.pg-block > h2 { display: block; text-align: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.pg-block > h2::after { content: none; }
.pg-cta { background: var(--forest); box-shadow: none; padding-bottom: 2.4rem; }

@media (max-width: 860px) {
  /* Comme l'accueil sur téléphone : logo + compte, puis les onglets, puis la barre (sans le 3e champ) */
  .pg-top { grid-template-columns: 1fr auto; padding: 8px 16px 10px; gap: 4px 12px; }
  .pg-brand-txt { flex-direction: row; align-items: baseline; gap: .5rem; }
  .pg-search { grid-column: 1 / -1; grid-row: 2; }
  .pg-acct span { display: none; }
  .pg-tab { padding: 6px 8px; font-size: 12px; }
  .pg-field--right, .pg-sep--right { display: none; }
  .pg-spotter { padding: 0 16px; }
}
@media (max-width: 768px) {
  .pg-art { border-radius: 22px; }
  .pg-art img { aspect-ratio: 2.1 / 1; }
  .pg-art-accent { top: 10%; left: 5%; }
}
@media (max-width: 600px) {
  .pg-hero { padding: .2rem 0 1.1rem; }
  .pg-route::before { left: 14px; }
  .pg-stop { padding-left: 44px; }
  .pg-stop::before, .pg-stop::after { width: 30px; height: 30px; top: 20px; }
}
.pg-field-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Trois onglets d'outil : défilement horizontal sur téléphone plutôt que débordement */
.tool-tabs { overflow-x: auto; scrollbar-width: none; }
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tab { flex-shrink: 0; }

/* ── Sélecteur de langue (pied de page, templates/_lang_switch.html) : une ligne à part, la langue courante en gras ── */
.pg-lang { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; font-size: .78rem; }
.pg-lang a { color: var(--muted); font-weight: 500; }
.pg-lang a[aria-current="page"] { color: var(--forest); font-weight: 700; }
