/* Planificateur, concept C "Signaletique" (David, 2026-11-08), calmed after the design QC:
 * one focal point per screen (the day number), light section bands, lighter day headers.
 * Mobile first, CLS 0 (fixed map heights, reserved status lines, no web font), no overflow at 320 px,
 * keyboard + screen reader, reduced motion. Icons: Font Awesome Free inline SVG sprite (aria-hidden). */

:root {
  --bg: #f6f0e7;
  --surface: #fbf8f2;
  --paper-2: #f1e8da;
  --ink: #2a1a12;
  --ink-2: #5b4a3f;
  --mute: #6b5a4e;
  --line: rgba(42, 26, 18, .14);
  --line-2: rgba(42, 26, 18, .08);
  --field: rgba(42, 26, 18, .32);
  --acc: #b4532a;
  --acc-ink: #8f3f1d;
  --gold: #8a5f12;
  --walk: #2f5d46;
  --metro: #b4532a;
  --taxi: #e2b04a;
  --focus: #1f5fa8;
  --radius: 10px;
  --sans: "Avenir Next", "Nunito", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* legacy names used by older rules and the sub-pages */
  --paper: var(--bg);
  --terracotta: var(--acc);
  --terracotta-ink: var(--acc-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; color: var(--ink); background: var(--bg); line-height: 1.5; overflow-wrap: anywhere; }
h1, h2, h3, h4 { margin: .2em 0 .4em; line-height: 1.25; }
h1 { font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.02; margin: .15em 0 .3em; }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.02rem; font-weight: 700; }
h4 { font-size: .98rem; }
a { color: var(--acc-ink); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
code { font-family: var(--mono); font-size: .88em; }
.fa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.125em; margin-right: .4em; }
.pl-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pl-skip { position: absolute; left: 12px; top: -80px; z-index: 2000; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.pl-skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---- header ---- */
.pl-header { max-width: 1240px; margin: 0 auto; padding: 1.2rem 1rem .4rem; }
.pl-badge { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; margin: 0 0 .9em; }
.pl-eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0; }
.pl-sub { color: var(--ink-2); margin: .3em 0; max-width: 70ch; }
.pl-sub-links { font-size: .92rem; margin: .4em 0; }
.pl-disclaimer { font-size: .86rem; color: var(--ink-2); border-left: 3px solid var(--acc); padding-left: .6em; margin: .7em 0 0; max-width: 70ch; }

main { max-width: 1240px; margin: 0 auto; padding: 0 1rem 2rem; }
@media (min-width: 600px) { main, .pl-header { padding-left: 1.5rem; padding-right: 1.5rem; } }

/* ---- section heads: light band, number chip, one per section (no dark slab: QC "bands compete") ---- */
.pl-sec { margin-top: 2.6rem; }
.pl-sec-h { border-top: 2px solid var(--ink); padding: .7rem 0 .2rem; margin-bottom: 1rem; }
.pl-sec-h h2 { display: flex; align-items: center; gap: .6em; margin: 0; }
.pl-n { flex: none; display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.7rem; padding: 0 .3em; border: 1.5px solid var(--acc); border-radius: 6px; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--acc-ink); letter-spacing: .02em; }
.pl-sec-sub { color: var(--ink-2); font-size: .92rem; margin: .25rem 0 0; max-width: 72ch; }
@media (min-width: 600px) { .pl-sec-sub { padding-left: calc(2.1rem + .6em); } }
.pl-noscript { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8em 1em; }

/* ---- form ---- */
.pl-form { display: flex; flex-direction: column; gap: 1rem; margin-top: .4rem; }
.pl-form[hidden] { display: none; }
/* with JS (html.js set inline in the head) the form is laid out from the first paint: no shift when the script unhides it */
html.js .pl-form[hidden] { display: flex; }
.pl-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
.pl-field { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.pl-field label { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=date], input[type=number], select {
  font: inherit; color: var(--ink); width: 100%; min-height: 44px; padding: .5em .7em;
  border: 1px solid var(--field); border-radius: 8px; background: #fff; min-width: 0;
}
input[aria-invalid="true"] { border-color: #a3221b; box-shadow: 0 0 0 1px #a3221b; }
.pl-box, .pl-hotel-field, .pl-map-box, .pl-fact, .pl-tripmode {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9em 1em; margin: 0; min-width: 0;
}
.pl-box legend, .pl-hotel-field legend, .pl-tripmode legend { font-weight: 700; padding: 0 .3em; display: flex; align-items: center; }
.pl-box legend .ic, .pl-hotel-field legend .ic, .pl-map-box h3 .ic { color: var(--acc); }
.pl-hint { font-size: .84rem; color: var(--ink-2); margin: .25em 0; max-width: 78ch; }
.tag-unverified { font-size: .72rem; color: var(--acc-ink); background: #fbeadf; border-radius: 6px; padding: .05em .4em; }
.pl-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.pl-checks { display: flex; flex-wrap: wrap; gap: .5em; }
.pl-checks label, .pl-travel .pl-seg label, .pl-seg-pills label {
  position: relative; display: inline-flex; align-items: center; gap: .1em; min-height: 44px; padding: 0 .95em;
  border: 1px solid var(--field); border-radius: 999px; background: #fff; font-weight: 500; font-size: .94rem; color: var(--ink); cursor: pointer;
}
.pl-checks input, .pl-travel .pl-seg input, .pl-seg-pills input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.pl-checks label:has(input:checked), .pl-travel .pl-seg label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
/* trip mode: selected = tinted + accent ring, not a dark slab (the day number stays the focal point) */
.pl-seg-pills label:has(input:checked) { background: #f6e3d6; border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); color: var(--ink); font-weight: 700; }
.pl-checks label:has(input:focus-visible), .pl-travel .pl-seg label:has(input:focus-visible), .pl-seg-pills label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.pl-seg-pills label[hidden], .pl-checks label[hidden] { display: none; }
.pl-travel .pl-seg { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5em; min-width: 0; }
.pl-travel .pl-seg legend { font-weight: 600; padding: 0; margin-bottom: .3em; width: 100%; font-size: .88rem; color: var(--ink-2); }
.pl-travel .pl-seg label:has(input:disabled) { color: #8a8174; border-style: dashed; cursor: not-allowed; }
input:disabled, select:disabled { opacity: .6; }
.pl-actions { flex-direction: row; gap: .6em; flex-wrap: wrap; }
button {
  font: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .1em;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg); border-radius: 8px; padding: .55em 1em; min-height: 44px; font-weight: 600;
}
button.pl-btn-q, button#pl-clear, button#pl-hotel-clear-pin { background: transparent; color: var(--ink); border-color: var(--field); }
.pl-result { min-height: 2.5em; margin-top: .8em; }
.pl-leave-time { font-weight: 700; font-size: 1.05rem; }

/* ---- Hotel + Carte: side by side on desktop, stacked on mobile ---- */
.pl-hotel-map { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .pl-hotel-map { grid-template-columns: minmax(300px, 5fr) 7fr; } }
.pl-map-box h3 { display: flex; align-items: center; margin: 0 0 .3em; }
.pl-map { width: 100%; height: 360px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper-2); z-index: 0; }
@media (min-width: 900px) { .pl-map { height: 400px; } }
.pl-map-attrib { font-size: .75rem; color: var(--mute); margin: .4em 0 0; }

/* ---- section 2 table ---- */
.pl-table { width: 100%; border-collapse: collapse; margin-top: .6em; font-size: .9rem; background: var(--surface); }
.pl-table th, .pl-table td { border-bottom: 1px solid var(--line); padding: .5em .6em; text-align: left; vertical-align: top; }
.pl-table thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.pl-table td.src a { color: var(--acc-ink); }
.pl-cap { caption-side: top; text-align: left; font-weight: 700; padding: .3em 0; }
.pl-table + .pl-table { margin-top: .8em; }
.pl-transfer-toggle button { min-height: 44px; }
.pl-table tr[hidden], .pl-table[hidden] { display: none; }
@media (max-width: 599px) {
  #pl-airport-table thead, #pl-station-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #pl-airport-table, #pl-airport-table tbody, #pl-airport-table tr, #pl-airport-table th, #pl-airport-table td,
  #pl-station-table, #pl-station-table tbody, #pl-station-table tr, #pl-station-table th, #pl-station-table td { display: block; width: 100%; }
  #pl-airport-table tr, #pl-station-table tr { border-bottom: 1px solid var(--line); padding: .3em 0; }
  #pl-airport-table td, #pl-station-table td { border: 0; padding: .15em .5em; }
  #pl-airport-table tr[hidden], #pl-station-table tr[hidden], #pl-airport-table[hidden], #pl-station-table[hidden] { display: none; }
  #pl-airport-table caption, #pl-station-table caption { display: block; }
}

/* ---- section 3 Infos ville: shared tiles + facts ---- */
.pl-infos-grid { display: grid; gap: 1.2rem; }
.pl-infos-grid[hidden] { display: none; }
/* banner and quick links over the full column, then three columns: Météo / Arrivée et départ / Se déplacer */
.pl-infos-tiles { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
#pl-citycards .pl-citycard { max-width: none; width: 100%; }
#pl-citycards .pl-citycard[hidden] { display: none; }
.pl-qlinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .5rem; }
@media (min-width: 420px) { .pl-qlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-qlink { display: grid; grid-template-columns: auto 1fr; column-gap: .6em; align-items: center; min-height: 56px; padding: .55em .8em;
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.pl-qlink .ic { grid-row: span 2; color: var(--acc); margin: 0; }
.pl-ql-t { font-weight: 700; font-size: .92rem; }
.pl-ql-s { font-size: .78rem; color: var(--mute); }
.pl-infos-facts { display: grid; gap: .9rem; min-width: 0; }
@media (min-width: 700px) { .pl-infos-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 1000px) { .pl-infos-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-fact:empty { display: none; }
.pl-fact h3, .pl-fact h4 { display: flex; align-items: center; margin: 0 0 .4em; font-size: 1rem; }
.pl-fact h3 .ic { color: var(--acc); }
.pl-big { font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: .1em 0 .2em; }
.pl-big span { font-family: var(--sans); font-size: 1rem; color: var(--ink-2); }
.pl-wx3 { list-style: none; margin: .5em 0; padding: 0; display: grid; gap: .25em; font-size: .9rem; }
.pl-wd { font-family: var(--mono); font-size: .75rem; color: var(--mute); text-transform: uppercase; display: inline-block; min-width: 4.5em; }
.pl-weather-row { display: flex; gap: .8em; align-items: baseline; }

/* ---- section 4 alerts ---- */
.alert-city { margin-bottom: .8em; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid #b3261e; border-radius: 8px; padding: .7em .9em; }
.alert-city[hidden] { display: none; }
.alert-city h3 { font-size: .98rem; margin-top: 0; }
.alert-city ul { margin: .3em 0 0; padding-left: 1.2em; }

/* ---- section 5 programme ---- */
.pl-tripmode { margin-bottom: 1rem; }
.pl-tripmode[hidden] { display: none; }
.pl-seg-pills { display: flex; flex-wrap: wrap; gap: .5em; margin: .2em 0 .3em; }
.pl-seg-pills .ic { margin-right: .45em; }
#pl-tripmode-note:empty { display: none; }
.pl-legend { font-size: .8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: .3em .7em; margin: .3em 0; }
.lg { display: inline-block; width: 26px; height: 0; vertical-align: middle; border-top: 3px solid var(--walk); }
.lg-metro { border-top: 3px dashed #1f5fa8; }
.lg-taxi { border-top: 3px dotted var(--acc-ink); }
.lg-car { border-top: 3px dotted var(--ink-2); width: 30px; }
/* day tabs (mobile and tablet): jump to a day in the scroll-snap strip */
.pl-dtabs { display: flex; gap: .5em; margin: .8rem 0 .7rem; overflow-x: auto; padding: 2px; }
.pl-dtabs[hidden] { display: none; }
.pl-dtab { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; min-width: 64px;
  padding: .3em .8em; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); font-size: .8rem; }
.pl-dtab b { font-size: .95rem; }
.pl-dtab span { color: var(--mute); font-size: .76rem; }
.pl-dtab[aria-current] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--acc); }
.pl-days { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .6rem; align-items: flex-start; }
.pl-day-card { flex: 0 0 88%; scroll-snap-align: start; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pl-days > .pl-missing { flex: 1 1 100%; }
@media (min-width: 700px) { .pl-day-card { flex-basis: calc(50% - .5rem); } }
@media (min-width: 1100px) {
  .pl-dtabs { display: none; }
  .pl-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) { .pl-days { scroll-behavior: smooth; } }
/* day header: distinctive but light (QC: less heavy than the mockup's ink slab) */
.pl-day-h { display: grid; grid-template-columns: auto 1fr; column-gap: .8em; align-items: center; padding: .8em 1em .7em;
  background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pl-dn { grid-row: span 2; margin: 0; font-family: var(--serif); font-size: 2.6rem; line-height: .85; color: var(--acc); text-align: center; }
.pl-dn span { display: block; font: 600 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.pl-day-h h3 { margin: 0; font-size: 1rem; }
.pl-day-h h3::first-letter { text-transform: uppercase; }
.pl-day-mode { grid-column: 1 / -1; margin: .55em 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3em; font-size: .82rem; color: var(--ink-2); }
.pl-day-mode select { width: auto; min-width: 0; max-width: 100%; flex: 1 1 12em; padding: .35em .5em; font-size: .88rem; }
.pl-mode-ic { width: 1.5em; height: 1.5em; padding: .25em; border-radius: 6px; background: var(--surface); color: var(--acc); border: 1px solid var(--line); margin-right: .2em; }
.pl-day-b { padding: .7em 1em .9em; }
.pl-fill-note, .pl-rain-note { font-size: .84rem; margin: .3em 0 .5em; padding: .45em .6em; border-radius: 6px; background: #fbf1e3; border-left: 3px solid var(--gold); color: var(--ink); }
.pl-rain-note { background: #eef3f6; border-left-color: #3c7aa0; }
.pl-fill-note .ic { color: var(--gold); }
.pl-rain-note .ic { color: #3c7aa0; }
.pl-daymap { width: 100%; height: 220px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); margin: .4rem 0 .7rem; z-index: 0; }
.pl-daymap[hidden] { display: none; }
.pl-steps { list-style: none; margin: 0; padding: 0; }
.pl-step { margin: 0 0 .6em; padding: 0 0 0 .7em; border-left: 3px solid var(--line); overflow-wrap: anywhere; }
.pl-step.role-visite { border-left-color: var(--acc); }
.pl-step.role-midi, .pl-step.role-soir { border-left-color: #c08a2b; }
.pl-step p { margin: .15em 0; }
.pl-step-head { font-size: .95rem; }
.pl-time { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; }
.pl-num { display: inline-grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 700; vertical-align: .1em; }
.pl-num .ic { margin: 0; width: .85em; height: .85em; }
.pl-step .pl-slot-label { display: inline; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.pl-slot-label .ic { color: var(--acc); }
.pl-slot-name { font-weight: 700; }
.pl-slot-meta { font-size: .82rem; color: var(--ink-2); }
.pl-missing { font-size: .86rem; color: var(--acc-ink); font-style: italic; }
.pl-leg { font-size: .8rem; color: var(--ink-2); padding: .15em 0 .15em .1em; }
.pl-leg-mode { font-weight: 700; text-transform: uppercase; font-size: .68rem; letter-spacing: .04em; margin-right: .3em; }
.pl-leg-walk .pl-leg-mode .ic { color: var(--walk); }
.pl-leg-metro .pl-leg-mode .ic { color: var(--metro); }
.pl-leg-taxi .pl-leg-mode .ic { color: var(--gold); }
.pl-also { color: var(--mute); }
.pl-line { font-weight: 700; border-bottom: 3px solid var(--lc, #1f5fa8); }
.pl-free { font-size: .8rem; font-style: italic; color: var(--mute); }
.pl-oh { font-size: .78rem; }
.pl-oh code { font-size: .74rem; overflow-wrap: anywhere; }
.pl-oh-ok { color: #2f6b3a; }
.pl-oh-bad { color: #9b2c1a; font-weight: 700; }
.pl-oh-unk { color: var(--acc-ink); }
.pl-warn { color: #9b2c1a; font-weight: 700; }
.pl-hint-inline { font-size: .74rem; color: var(--mute); }
.pl-walk-total { font-size: .85rem; font-weight: 600; margin: .3em 0; }
.pl-uber { font-weight: 600; white-space: nowrap; }
.pl-credits { margin-top: 1rem; }
.pl-pin span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 700 12px/1 var(--sans); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ink); }
.pl-pin-visite span { background: var(--acc); box-shadow: 0 0 0 1px var(--acc-ink); }
.pl-pin-midi span, .pl-pin-soir span { background: #8a6418; }
.pl-pin-hotel span { background: #1f5fa8; }
.pl-pin-gare span { width: 44px; border-radius: 12px; background: #2f6b3a; box-shadow: 0 0 0 1px #1f4a28; font-size: 11px; }
.pl-num-gare { background: #2f6b3a; }
.pl-step-gare { border-left-color: #2f6b3a; }
.pl-nojs details { margin: .4em 0; }
.pl-nojs summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.pl-day-card h4::first-letter { text-transform: uppercase; }

/* ---- section 6 Conseils de David: small cards side by side ---- */
.pl-tip-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 600px) { .pl-tip-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .pl-tip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pl-tip-card { display: flex; flex-direction: column; gap: .3em; padding: .8em 1em; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.pl-tip-card h3 { margin: 0; font-size: .98rem; }
.pl-tip-card p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.pl-tk { display: flex; align-items: center; font-family: var(--mono); font-size: .68rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--mute) !important; }
.pl-tk .ic { color: var(--acc); }
.pl-tip-src { margin-top: auto !important; padding-top: .2em; }

/* ---- 7, 8 ---- */
.pl-privacy-list { padding-left: 1.2em; color: var(--ink-2); font-size: .92rem; max-width: 85ch; }
.pl-privacy-list li { margin: .35em 0; }
.pl-footer { max-width: 1240px; margin: 3rem auto 0; padding: 1.2rem 1rem 2.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--mute); }
.pl-footer p { margin: .3em 0; }

/* ---- sub-page links, flight numbers, punctuality, geocoding (unchanged behaviour) ---- */
#pl-arrival-airport-hint { min-height: 3.1em; line-height: 1.5; }
#pl-nights-hint { min-height: 1.6em; line-height: 1.5; }
@media (max-width: 420px) { #pl-arrival-airport-hint { min-height: 4.6em; } #pl-nights-hint { min-height: 3.1em; } }
#pl-train-hint { min-height: 3.1em; line-height: 1.5; }
@media (max-width: 420px) { #pl-train-hint { min-height: 6.1em; } }
.pl-flightno { min-height: 7.2em; }
.pl-flightno > div { display: flex; flex-direction: column; gap: .3em; }
.pl-flightno input { text-transform: uppercase; max-width: 14em; }
.pl-punct-note { background: #f4ecdf; border-left: 4px solid var(--acc); padding: .5em .75em; }
.pl-punct-dl { display: grid; grid-template-columns: minmax(10em, 1fr) auto; gap: .2em 1em; margin: .3em 0 .5em; }
.pl-punct-dl dt { font-weight: 400; }
.pl-punct-dl dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pl-punct-al { padding-left: 1.2em; }
.pl-geo { position: relative; }
.pl-geo-row { display: flex; flex-wrap: wrap; gap: .5em; align-items: stretch; }
.pl-geo-row input { flex: 1 1 14em; min-width: 0; }
.pl-geo-row button { min-height: 44px; flex: 0 0 auto; }
#pl-geo-status { min-height: 3.1em; line-height: 1.5; }
@media (max-width: 420px) { #pl-geo-status { min-height: 4.6em; } }
.pl-geo-pop { position: absolute; z-index: 1200; left: 0; right: 0; top: 3.2em; background: #fffdf9; border: 1px solid #c9bba6; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: .3em; max-height: 22em; overflow: auto; }
.pl-geo-pop[hidden] { display: none; }
#pl-geo-results { list-style: none; margin: 0; padding: 0; outline: none; }
#pl-geo-results:focus-visible { box-shadow: 0 0 0 3px var(--focus); border-radius: 6px; }
#pl-geo-results li { padding: .55em .6em; border-radius: 6px; cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
#pl-geo-results li.is-active, #pl-geo-results li:hover { background: #f4ecdf; outline: 2px solid var(--acc); outline-offset: -2px; }
.pl-geo-name { display: block; font-weight: 700; }
.pl-geo-addr { display: block; font-size: .88em; color: var(--ink-2); }
.pl-geo-attr { margin: .3em .4em .1em; font-size: .8em; color: var(--ink-2); }

/* progressive-enhancement guard for section 2 (html.js set inline in the head; html.pl-ready by the script once bound).
 * Until then (and only with JS) the tables are collapsed and the hint + toggle shown, exactly the state the script
 * renders with no city: no layout shift. If the script is stale or fails, the head guard removes .js at window load. */
html.js:not(.pl-ready) #pl-airport-table, html.js:not(.pl-ready) #pl-station-table { display: none; }
html.js:not(.pl-ready) #pl-transfer-hint, html.js:not(.pl-ready) #pl-transfer-toggle-wrap { display: block; }

.pl-sub-links a, .pl-punct-link a, .pl-back a { color: var(--acc-ink); }
.pl-punct-link { margin: .2em 0 0; min-height: 1.5em; }
.pl-punct-link[hidden] { display: block; visibility: hidden; }
.pl-punct-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.pl-noxfer { font-weight: 600; color: var(--ink); margin: .2em 0 .4em; }
.pl-noxfer[hidden] { display: none; }
/* 'Publicite' label: visible, contrasted, in the message language */
.pl-ad { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; color: #fff; background: #5b3a1e; border-radius: 4px; padding: .05em .45em; vertical-align: .08em; }
.pl-ad-sub { font-size: .8rem; color: var(--ink-2); }
.pl-tickets a { color: var(--acc-ink); font-weight: 600; }
.pl-back { margin: 0 0 .4em; font-size: .9rem; }
.pl-back a { display: inline-flex; align-items: center; min-height: 44px; }
.pl-ad-mandatory { margin: .6em 0 .3em; }
.pl-ad-note { font-size: .9rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6em .8em; margin: .4em 0 0; max-width: 85ch; }

/* ---- Kit voyage ---- */
.pl-kit { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.pl-kit-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9em 1em; overflow-wrap: anywhere; display: grid; gap: .2em .9em; grid-template-columns: 1fr; align-content: start; }
.pl-kit-img { display: block; width: 120px; height: 120px; border-radius: 10px; background: var(--paper-2); margin: 0 0 .3em; }
@media (min-width: 420px) { .pl-kit-item { grid-template-columns: 120px minmax(0, 1fr); } .pl-kit-img { grid-row: span 6; } }
.pl-kit-item h2 { font-size: 1.05rem; border: 0; padding: 0; margin: 0 0 .2em; }
.pl-kit-item p { margin: .25em 0; }
.pl-kit-link a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2em .4em; min-height: 44px; color: var(--acc-ink); font-weight: 600; }
.pl-kit-credit { font-size: .84rem; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .5em .8em; margin: .8rem 0 0; display: flex; align-items: center; }
.pl-kit-credit .ic { color: var(--acc); }
@media (min-width: 1024px) { .pl-kit { grid-template-columns: 1fr 1fr; } }
.pl-table-wrap { width: 100%; overflow-x: auto; }
.pl-punct-table th[scope="row"] { font-weight: 600; }
.pl-punct-table td { font-variant-numeric: tabular-nums; }
.pl-punct-table tr.is-trip th, .pl-punct-table tr.is-trip td { background: #f4ecdf; }
#pt-trip { min-height: 4.6em; }
#pt-trip h3 { margin: .8em 0 .2em; font-size: 1em; }
.pl-subpage .pl-header, .pl-subpage main, .pl-subpage .pl-footer { max-width: 1080px; }

/* Room8 (no computed trip): travel controls are removed from the layout, not just greyed out. */
.pl-form .pl-field[hidden], .pl-form .pl-grid2[hidden], .pl-form .pl-hint[hidden] { display: none; }

/* Punctuality table on narrow screens: one card per airport, label before each value (no clipping) */
@media (max-width: 599px) {
  .pl-punct-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pl-punct-table, .pl-punct-table tbody, .pl-punct-table tr, .pl-punct-table th, .pl-punct-table td { display: block; width: 100%; }
  .pl-punct-table tr { border-bottom: 1px solid var(--line); padding: .35em 0; }
  .pl-punct-table th, .pl-punct-table td { border: 0; padding: .1em .3em; }
  .pl-punct-table td[data-l] { display: flex; justify-content: space-between; gap: 1em; }
  .pl-punct-table td[data-l]::before { content: attr(data-l); color: var(--ink-2); }
  .pl-punct-table caption { display: block; width: 100%; text-align: left; }
}

@media (max-width: 599px) { .pl-grid2 { grid-template-columns: 1fr; } .pl-grid3 { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .4em; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* shared city card in a 288 px column (320 px phones): the country line sits lower than on the home, keep it clear of the tiles */
@media (max-width: 359px) { #pl-citycards .vcc .vt-ban .tiles { margin-top: 76px; } }

/* date fields: French helper under the native field (its display follows the browser locale) */
.pl-date-fr { margin: 0; font-size: .8rem; }
.pl-date-fr.pl-date-set { color: var(--ink); }
.pl-date-fr.pl-date-todo { color: var(--acc-ink); font-weight: 600; }
.pl-date-prompt { display: flex; gap: .5em; align-items: flex-start; flex: 1 1 100%; margin: 0 0 .8em; padding: .6em .8em; border-radius: 8px; background: #fbf1e3; border-left: 3px solid var(--gold); color: var(--ink); font-size: .9rem; }
.pl-date-prompt .ic { color: var(--acc-ink); flex: none; margin-top: .15em; }

/* date fields: French format reminder in the label */
.pl-fmt { font-weight: 400; color: var(--muted, #6b5a4a); font-size: .85em; }

/* shared city card in the planner: the page has no global reset (the site pages have one), so the browser's default
   margins and list padding on p / ol / li pushed the Météo tile's back face out of its 88 px box. Planner-scoped reset,
   specificity 0 so every tiles.css rule still wins. tiles.* stay untouched. */
:where(#pl-citycards) :where(p, ol, ul, li, h3, figure) { margin: 0; padding: 0; }
:where(#pl-citycards) :where(ol, ul) { list-style: none; }
#pl-citycards .tile.wx { overflow: hidden; }
/* transport tips (planner-transport-tips.json) in column 3 */
.pl-tt-list { margin: -.2em 0 .6em; padding-left: 1.1em; font-size: .85rem; color: var(--ink-2); }
.pl-tt-list li { margin: .15em 0; }
.pl-pt { margin-bottom: 0; }
/* the planner gives every button a 44 px minimum height; the Météo tile close button is sized by tiles.css (like on the home) */
#pl-citycards .wx-x { min-height: 0; min-width: 0; }
/* 320 px phones: the four banner tiles are 62 px, too narrow for a day and its min/max at the tile's 11 px minimum;
   tighter spacing and a slightly smaller figure keep the 3-day back face inside its box */
@media (max-width: 359px) {
  #pl-citycards .wx-face { padding-left: 3px; padding-right: 3px; }
  #pl-citycards .wx-back li { gap: 2px; font-size: 10px; letter-spacing: -.05em; }
  #pl-citycards .wx-back li .d { min-width: 0; }
}
/* prominent link to the punctuality page (Infos ville, column 2): no figures in the planner */
.pl-punct-cta { margin: .3em 0 .7em; }
.pl-punct-cta a { display: flex; align-items: center; gap: .45em; min-height: 44px; padding: .5em .75em; border: 1px solid var(--acc); border-radius: 8px;
  background: #fbf1e3; color: var(--acc-ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.pl-punct-cta a:hover { background: #f6e3c9; }
.pl-punct-cta .ic { flex: none; margin: 0; }
.pl-punct-cta .ic + .ic { margin-left: -.25em; }
/* kit: David's own picks under the matching items */
.pl-kit-picks { margin: .5em 0 0; padding: .5em .7em; border-left: 3px solid var(--gold); background: #fbf1e3; border-radius: 0 6px 6px 0; }
.pl-kit-pk { margin: 0 0 .1em; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--acc-ink); }
.pl-kit-picks ul { list-style: none; margin: 0; padding: 0; }
.pl-kit-pick a { min-height: 40px; }
.pl-kit-pnote { margin: .2em 0 0; }
.pl-kit-more a { font-weight: 500; }
/* ponctualite: footnote mark */
.pl-fn { text-decoration: none; font-weight: 700; padding: 0 .15em; }
/* kit picks + secondary link: block links wrap as normal text (inline-flex squeezed the text into a narrow column) */
.pl-kit-picks .pl-kit-link a, .pl-kit-more a { display: block; min-height: 0; padding: .45em 0; line-height: 1.35; }
/* modes v2: hermes_web suggestions are labelled, never presented as David's; tourist label */
.pl-hw { font-size: .85rem; color: var(--ink-2, #5a4a3c); font-style: italic; }
.pl-hw a { font-style: normal; }
.pl-tl { font-size: .85rem; font-weight: 600; color: var(--acc-ink); }

/* ---- polish 2026-11-08 ---- */
/* Conseils de David: balanced last row for any card count (2 columns: an odd last card spans the row;
   3 columns on a 6-track grid: a remainder of 2 gives two half-width cards, a remainder of 1 turns the last 4 into 2 + 2) */
@media (min-width: 600px) and (max-width: 999px) { .pl-tip-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) {
  .pl-tip-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pl-tip-grid > * { grid-column: span 2; }
  .pl-tip-grid:has(> :last-child:nth-child(3n+2)) > :nth-last-child(-n+2) { grid-column: span 3; }
  .pl-tip-grid:has(> :last-child:nth-child(3n+1):not(:only-child)) > :nth-last-child(-n+4) { grid-column: span 3; }
  .pl-tip-grid > :only-child { grid-column: 1 / -1; }
}
/* Infos ville on tablets (2 columns): Se déplacer takes the whole second row instead of a half-empty one */
@media (min-width: 700px) and (max-width: 999px) { .pl-infos-facts > #pl-infos-move { grid-column: 1 / -1; } }
/* shared city card, planner scope only (tiles.* untouched): the strike pill shows its whole text, never an ellipsis */
#pl-citycards .pl-citycard { container: plcard / inline-size; }
#pl-citycards .vcc .vt-gp { max-width: min(320px, calc(100% - 150px)); }
#pl-citycards .vcc .vt-gp .gp-l { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* narrow cards (320 px phones): the pill goes in the flow under the tiles and may wrap on two lines */
@container plcard (max-width: 342px) {
  #pl-citycards .vcc:has(.vt-gp:not([hidden])) .vt-ban { display: flex; flex-direction: column; }
  #pl-citycards .vcc:has(.vt-gp:not([hidden])) .vt-ban .tiles { margin-bottom: 8px; }
  #pl-citycards .vcc .vt-gp { position: relative; order: 2; inset: auto; margin: 0 12px 9px; max-width: none; flex-wrap: wrap; row-gap: 1px; }
}
/* 343 to 540 px cards: the tiles row spans under the name, so it starts below the country line */
@container plcard (min-width: 343px) and (max-width: 540px) { #pl-citycards .vcc .vt-ban .tiles { margin-top: 62px; } }
/* Météo tile back face: the Open-Meteo credit may break after its hyphen (two short lines) instead of being cut beside the close button */
#pl-citycards .wx-bf a { white-space: normal; line-height: 1.05; overflow: visible; }

/* per-target feature flags (planner-affiliates.json flags), see planificateur.js applyFlags */
.pl-noweather #pl-infos-weather, .pl-noweather #pl-citycards .tile.wx { display: none; }
.pl-nopunct .pl-punct-cta, .pl-nopunct #pl-punct-link-wrap { display: none; }
.pl-nogeo .pl-geo, .pl-nogeo label[for=pl-hotel-name] { display: none; }
