/* pages-v15.css — les pages de texte et les index sous le thème v15 (MARQUE_LOT664, T2 du chantier du thème).
   Chargée APRÈS theme.css (la feuille commune, extraite de gabarit/sejour.html par theme_v15.py), et seule avec elle : aucune
   feuille d'avant (charte, pages, chrome-gabarit) — les quatre jetons homonymes, la règle du 398.
   ELLE NE DÉCLARE AUCUN JETON : elle ne lit que ceux de theme.css. Ses valeurs sont celles que la page du séjour rend (le banc,
   mesurer_theme_v15.py : tailles 11 à 26 px, graisse 600 au plus, rayons 4 à 10 et pilules, espaces et hauteurs de la référence,
   couleurs du texte de la référence).
   LES NOMS DE CLASSES NE CHANGENT PAS : le chrome (header.site-header, footer.footer, le menu, le toast) est celui de
   gabarit_chrome.py, et accueil-gabarit.js le pilote par ses identifiants (menu-toggle, mobile-menu, show-favorites,
   favorite-count, toast) ; index-filtre.js lit #qi, #listei, #cnti et data-n, et escamote une entrée par `hidden`.
   LA MARQUE reste celle de ces pages (la goutte à tente, D35 2c : un logo neuf viendra sur sa maquette) ; elle prend les couleurs
   de la marque v15 (le jaune du logo, l'icône en encre), la seule place du jaune sur ces pages (D35 3a). */

/* ---- le chrome : le bandeau de marque plein, marine ---- */
.symbols { position: absolute; width: 0; height: 0; overflow: hidden }
.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none }
.icon.small { width: 16px; height: 16px }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--marque); color: #ffffff;
  font: 600 var(--fs-texte)/1.2 var(--corps); text-decoration: none }
.skip:focus { top: 8px }

.site-header { position: relative; z-index: 60; display: flex; align-items: center; gap: 12px; min-height: 56px;
  background: var(--marque); color: #ffffff }
/* l'en-tête porte aussi `.wrap` (son gabarit) : il prend toute la largeur, et sa gouttière est celle du bandeau v15 */
.site-header.wrap { max-width: none; margin: 0;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)) }
/* MARQUE_LOT704 — la marque de Partir en train, piste A (D59, docs/maquettes/logo-partirentrain/) : le carré jaune arrondi de
   32 px, le train de face de Lucide en marine (le jeton --sur-logo, celui du site), « Partir » sur « en train », sur deux lignes, sans coupure */
.brand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: none; color: inherit; text-decoration: none;
  font: 600 15px/1.08 var(--titres); letter-spacing: -.01em; white-space: nowrap }
.brand > span:last-child > span { display: block; font: 500 13px/1.15 var(--titres); letter-spacing: 0 }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--logo); color: var(--sur-logo); display: grid;
  place-items: center; flex: none }
.brand-mark .icon { width: 19px; height: 19px; stroke-width: 2.2 }
.desktop-nav { display: flex; align-items: center; gap: 24px; margin: 0 auto; font: 500 var(--fs-sec2)/1.2 var(--corps) }
.desktop-nav a { color: inherit; text-decoration: none }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 3px }
.header-actions { display: flex; align-items: center; gap: 8px }
.favorite-shortcut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0;
  border: 0; background: none; color: inherit; font: 600 var(--fs-petit)/1 var(--corps); cursor: pointer }
.favorite-shortcut .icon { width: 20px; height: 20px }
.favorite-shortcut span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--titre) }
.button.button-small { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1.5px solid rgb(255 255 255 / .7); background: transparent; color: #ffffff; font: 500 var(--fs-sec2)/1 var(--corps);
  text-decoration: none; white-space: nowrap }
.menu-toggle { display: none; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--rv-s);
  background: transparent; color: inherit; cursor: pointer }
.mobile-menu { position: absolute; top: 100%; left: 8px; right: 8px; margin-top: 4px; padding: 8px; border-radius: var(--rv-m);
  background: var(--surface); box-shadow: var(--ombre-carte) }
.mobile-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--rv-s); color: var(--titre);
  font: 500 var(--fs-texte)/1.2 var(--corps); text-decoration: none }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: var(--rv-m); background: var(--marque); color: #ffffff; font: 400 var(--fs-sec2)/1.4 var(--corps);
  box-shadow: var(--ombre-carte) }

.footer { border-top: 1px solid var(--filet); padding-top: 32px; background: var(--fond); color: var(--encre-2) }
.footer .brand { color: var(--titre) }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; padding-bottom: 24px }
.footer-main > div > p { margin-top: 12px; font-size: var(--fs-sec2) }
.footer-main nav { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sec2) }
.footer-main nav > a { display: flex; align-items: center; min-height: 32px; color: var(--titre); text-decoration: none }
.footer-main nav > a:hover { text-decoration: underline; text-underline-offset: 3px }
.footer-note strong { font-size: var(--fs-sec2); color: var(--titre) }
.footer-note > p { margin-top: 8px; max-width: 270px; font-size: 12px }
.footer-mentions { grid-column: 1 / -1; display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--filet) }
.footer-mention { margin: 0; font-size: 12px; line-height: 1.5 }
.footer-mention a { color: inherit }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--filet); font-size: var(--fs-petit) }

@media (max-width: 850px) {
  .desktop-nav { display: none }
  .header-actions { margin-left: auto }
  .menu-toggle { display: grid }
}
@media (max-width: 620px) {
  .header-actions > .button { display: none }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 24px 20px }
  .footer-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--filet) }
  .footer-note > p { max-width: none }
  .footer-bottom { display: block }
}

/* ---- la page : une colonne de lecture ---- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)) }
main { padding-bottom: 48px }
h1 { font-size: var(--fs-heros); line-height: 1.2 }
h2 { font-size: var(--fs-sec); line-height: 1.3; margin: 32px 0 8px }
h3 { font-size: var(--fs-carte); line-height: 1.3; margin: 24px 0 6px }
p { margin: 0 0 12px }
em { font-family: inherit }
.mut { color: var(--encre-2) }
code { padding: 2px 6px; border-radius: 4px; background: var(--case); font: 400 var(--fs-sec2)/1.4 var(--corps) }

/* le fil d'Ariane */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; font-size: 12px; color: var(--encre-2) }
.fil a { color: inherit; text-decoration: none }
.fil a:hover { text-decoration: underline; text-underline-offset: 3px }

/* le titre de la page */
.hero { padding: 16px 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--filet) }
.hero h1 { max-width: 20ch }
.hero .lede { margin: 10px 0 0; max-width: 62ch; font-size: var(--fs-carte); line-height: 1.5; color: var(--encre-2) }
/* MARQUE_LOT665 — un titre de page que rien ne suit (la 404) : pas de filet ni de marge, le pied a le sien */
.hero:last-child { margin-bottom: 0; border-bottom: 0 }

/* la colonne de lecture : `.narrow` reste une `.wrap`, ce sont ses enfants qui sont bornés */
.narrow > * { max-width: 74ch }
.narrow > *:first-child { margin-top: 0 }
.narrow > table.tb { max-width: 96ch }
.narrow a { color: var(--titre); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px }
.narrow ol, .narrow ul { margin: 0 0 12px; padding-left: 18px }
.narrow li { margin-bottom: 6px }
.narrow ul.mentions { margin-left: 0 }

/* les tableaux : un filet entre les lignes, aucun cadre (une carte n'a pas de filet) ; il défile s'il dépasse */
table.tb { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: var(--fs-sec2) }
table.tb th { padding: 10px 12px; background: var(--case); text-align: left; font: 600 12px/1.4 var(--corps); color: var(--encre-2) }
table.tb td { padding: 10px 12px; vertical-align: top }
table.tb tbody tr { border-top: 1px solid var(--filet) }
td.vieux { color: var(--tm); font-weight: 600 }
table.tb .puce { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50% }

/* les listes de mentions : une pastille marine ; `.manque`, un champ obligatoire non renseigné, une pastille ambre */
.mentions { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px }
.mentions li { position: relative; margin: 0; padding-left: 18px; line-height: 1.5 }
.mentions li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--marque) }
.mentions li.manque::before { background: var(--m) }
.mentions mark { padding: 1px 6px; border-radius: 4px; background: var(--bm); color: var(--tm); font-weight: 600 }

/* le champ de filtre des index : une pilule, et le compte en aplat doux */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0 }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--filet);
  background: var(--surface); color: var(--encre); font: 400 var(--fs-texte)/1.2 var(--corps); white-space: nowrap }
.chip::placeholder { color: var(--encre-2) }
.chip:focus { outline: 2.5px solid var(--marque); outline-offset: 2px }
.chip.on { min-height: 36px; padding: 0 14px; border-color: transparent; background: var(--surface-2); color: var(--titre);
  font: 600 var(--fs-sec2)/1.2 var(--corps) }
#cnti:empty { display: none }

/* les listes de liens */
.liens { columns: 4; column-gap: 32px; list-style: none; margin: 0; padding: 0; font-size: var(--fs-texte) }
.liens li { break-inside: avoid; padding: 6px 0 }
.liens a { color: var(--titre); text-decoration: none }
.liens a:hover { text-decoration: underline; text-underline-offset: 3px }
.liens > li[hidden] { display: none }
.cpt { color: var(--encre-2); font-size: 12px }
@media (max-width: 900px) { .liens { columns: 2 } }
@media (max-width: 520px) { .liens { columns: 1 } }

/* MARQUE_LOT682 — l'accès au compte dans l'en-tête (D42) : « Me connecter », le prénom une fois connecté ; sur téléphone, l'icône
   seule, le texte reste lu par un lecteur d'écran */
.compte-lien { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 4px; color: inherit;
  font: 500 var(--fs-sec2)/1 var(--corps); text-decoration: none; white-space: nowrap }
.compte-lien .icon { width: 22px; height: 22px }
.compte-lien span { max-width: 14ch; overflow: hidden; text-overflow: ellipsis }
.compte-lien:hover span { text-decoration: underline; text-underline-offset: 3px }
@media (max-width: 620px) {
  .compte-lien { justify-content: center; padding: 0 }
  .compte-lien span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
}
