/* Ce fichier est le thème commun des outils de yov.me/outils, repris de /rer et /gaz (couleurs RATP). */
:root {
  --indigo: #0c0287;
  --jade: #00a994;
  --bleu-bandeau: #2f4e96;
  --fond: #ededed;
  --carte: #ffffff;
  --texte: #333333;
  --texte-doux: #6b6b6b;
  --separateur: #e1e1e1;
  --orange: #d9631e;
  --rouge: #a50016;
  --rayon: 8px;
  --police: ParisineStd, "Gill Sans", "Gill Sans MT", Calibri, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--fond); color: var(--texte); font-family: var(--police); }
body { min-height: 100vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body.fenetre-ouverte { overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

.entete { background: var(--carte); padding: calc(14px + env(safe-area-inset-top)) 16px 14px; border-bottom: 1px solid var(--separateur); display: flex; align-items: center; gap: 12px; }
.entete .retour { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; color: var(--indigo); font-size: 26px; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.picto { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--indigo); color: var(--indigo); display: grid; place-items: center; flex-shrink: 0; font-size: 20px; }
.titre { flex: 1; min-width: 0; }
.titre h1 { font-size: 22px; font-weight: 700; color: var(--indigo); line-height: 1.1; }
.titre p { font-size: 15px; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.horloge { font-size: 22px; font-weight: 700; color: var(--indigo); font-variant-numeric: tabular-nums; }

/* Cet en-tête commun montre le logo, le titre et la phrase propre à chaque outil. */
header.entete-yovway { display: grid; grid-template-columns: 38px 42px minmax(0, 1fr) auto; gap: 3px 10px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; border-bottom: 2px solid #dfe6f5; background: linear-gradient(115deg, #ffffff 55%, #f4f7ff); box-shadow: 0 2px 12px rgba(24, 45, 91, .06); }
header.entete-yovway .retour { width: 44px; height: 44px; margin-left: 0; display: grid; place-items: center; border-radius: 12px; background: #edf2fb; color: #1f1f1f; font-size: 24px; }
header.entete-yovway .logo-yovway { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 3px 10px rgba(44, 66, 139, .17); }
header.entete-yovway .marque-yovway { display: block; margin-bottom: 3px; color: #3c4043; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
header.entete-yovway .titre h1 { color: #1f1f1f; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
header.entete-yovway .horloge { color: #1f1f1f; font-size: 16px; }
header.entete-yovway .signature-yovway { grid-column: 2 / -1; color: #3c4043; font-size: 13px; line-height: 1.25; }

.bandeau { background: var(--bleu-bandeau); color: #fff; padding: 10px 16px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.bandeau b { font-weight: 700; }
.direct { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5ff0d8; animation: pulsation 2s infinite; vertical-align: 1px; }

main { padding: 16px; display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
main > * { min-width: 0; }
.carte { background: var(--carte); border-radius: var(--rayon); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.carte > h2 { font-size: 13px; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 1.2px; padding: 14px 16px 6px; }
.mise-en-avant { padding: 18px 18px 16px; position: relative; overflow: hidden; }
.mise-en-avant::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--jade); }
.mise-en-avant.alerte::before { background: var(--orange); }
.etiquette { font-size: 13px; font-weight: 700; color: var(--jade); text-transform: uppercase; letter-spacing: 1.2px; }
.mise-en-avant.alerte .etiquette { color: var(--orange); }
.grand-texte { font-size: 30px; font-weight: 700; color: var(--indigo); line-height: 1.15; margin: 4px 0 6px; }
.infos { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 15px; color: var(--texte-doux); }
.infos b { color: var(--texte); font-weight: 700; }
.vide { padding: 18px 16px; color: var(--texte-doux); }
.pastille { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; background: #eceaf7; color: var(--indigo); }
.pastille.verte { background: #e5f6f4; color: #00796a; }
.pastille.orange { background: #fdeee4; color: var(--orange); }
.pastille.rouge { background: #fde7ea; color: var(--rouge); }

.puces { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.puces::-webkit-scrollbar { display: none; }
.puce { flex-shrink: 0; padding: 7px 14px; border-radius: 18px; border: 1.5px solid var(--separateur); font-weight: 700; font-size: 15px; color: var(--indigo); background: var(--carte); }
.puce[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.puce { min-height: 40px; }

.recherche { padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.recherche label { font-weight: 700; color: var(--indigo); }
.recherche .ligne { display: flex; gap: 8px; }
.recherche input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--separateur); border-radius: var(--rayon); font-size: 16px; background: #fff; }
.recherche button { padding: 10px 16px; border-radius: var(--rayon); background: var(--indigo); color: #fff; font-weight: 700; }

.etat-donnees { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; color: var(--texte-doux); padding: 4px 0; text-align: center; }
.point { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgba(0, 169, 148, .5); animation: pulsation 2s infinite; }
.etat-donnees.ancien .point { background: var(--orange); animation: none; }
.etat-donnees.ancien { color: var(--orange); }
@keyframes pulsation { 70% { box-shadow: 0 0 0 7px rgba(0, 169, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 169, 148, 0); } }
.action { color: var(--indigo); font-weight: 700; text-decoration: underline; }
button.action { min-height: 44px; padding: 0 4px; }
a.action { display: inline-block; padding: 12px 0; }
.erreur { background: #fde7ea; color: var(--rouge); border-radius: var(--rayon); padding: 12px 14px; font-size: 15px; }
.source { text-align: center; font-size: 12px; color: var(--texte-doux); }

.installer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; text-align: left; border: 1.5px solid var(--indigo); border-radius: var(--rayon); background: var(--carte); color: var(--indigo); font-weight: 700; font-size: 16px; }
.installer svg { flex-shrink: 0; }
.installer span small { display: block; font-weight: 400; font-size: 13px; color: var(--texte-doux); }

.voile { position: fixed; inset: 0; background: rgba(12, 2, 135, .35); display: flex; align-items: flex-end; justify-content: center; z-index: 10; cursor: pointer; }
.feuille { cursor: auto; background: var(--carte); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px 16px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); animation: monter .25s ease-out; }
@keyframes monter { from { transform: translateY(100%); } to { transform: none; } }
.haut-feuille { position: sticky; top: -20px; margin: -20px -20px 4px; padding: 20px 20px 8px; background: var(--carte); display: flex; align-items: flex-start; gap: 12px; z-index: 1; }
.haut-feuille h3 { flex: 1; }
.feuille h3 { font-size: 20px; color: var(--indigo); }
.feuille h4 { font-size: 13px; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 1.2px; margin: 18px 0 6px; }
.croix { flex-shrink: 0; width: 40px; height: 40px; margin: -6px -8px 0 0; border-radius: 50%; background: var(--fond); color: var(--indigo); font-size: 18px; font-weight: 700; display: grid; place-items: center; }
.etapes { list-style: none; display: grid; gap: 14px; counter-reset: etape; margin-top: 14px; }
.etapes li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; font-size: 16px; line-height: 1.35; counter-increment: etape; }
.etapes li::before { content: counter(etape); width: 32px; height: 32px; border-radius: 50%; background: var(--jade); color: #fff; display: grid; place-items: center; font-weight: 700; }
.note { margin-top: 12px; font-size: 13px; color: var(--texte-doux); }
.fermer { margin-top: 18px; width: 100%; padding: 14px; border-radius: var(--rayon); background: var(--indigo); color: #fff; font-weight: 700; font-size: 16px; }

/* Le seul bouton pour y aller : YovWay, plein, avec son estimation de trajet sur une ligne de hauteur fixe (T-055). */
.itineraires { display: block; }
.itineraire.yov-map { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(115deg, #221260 0%, #44249f 56%, #6343cb 100%); box-shadow: 0 7px 16px rgba(35, 18, 96, .22); color: #fff; text-decoration: none; text-align: left; }
.itineraire.yov-map .icone-yovway { flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.itineraire.yov-map .textes-yovway { flex: 1; min-width: 0; display: grid; gap: 2px; }
.itineraire.yov-map .titre-yovway { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.itineraire.yov-map .estimation-yovway { min-height: 18px; font-size: 14px; font-weight: 600; line-height: 18px; color: rgba(255, 255, 255, .88); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itineraire.yov-map .estimation-yovway.en-calcul { color: rgba(255, 255, 255, .62); }
.itineraire.yov-map .fleche-yovway { flex: 0 0 20px; opacity: .8; }
.itineraire.yov-map:focus-visible { outline: 3px solid #b6a9ff; outline-offset: 3px; }
@media (hover: hover) { .itineraire.yov-map:hover { box-shadow: 0 9px 22px rgba(35, 18, 96, .3); } }
.lieu { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--separateur); width: 100%; text-align: left; }
.lieu .nom { font-size: 17px; font-weight: 700; line-height: 1.2; }
.lieu .details { font-size: 13px; color: var(--texte-doux); margin-top: 3px; display: flex; gap: 6px 8px; align-items: center; flex-wrap: wrap; }
.lieu .distance { text-align: right; font-size: 18px; font-weight: 700; color: var(--indigo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.indicateur-tirage { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) - 40px); margin-left: -110px; width: 220px; padding: 8px 0; border-radius: 18px; background: var(--indigo); color: #fff; font-size: 14px; font-weight: 700; text-align: center; opacity: 0; z-index: 20; pointer-events: none; transition: opacity .15s; }

/* Ce bloc sert aux outils « lieux proches » (kit/lieux.js) : consignes d'urgence, boutons d'appel, fiche et réglages. */
.consignes { display: grid; gap: 6px; margin-top: 8px; font-size: 15px; line-height: 1.35; }
.appels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.appel { display: grid; place-items: center; padding: 12px 6px; border-radius: var(--rayon); background: var(--indigo); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; margin-top: 8px; }
.appels .appel { background: var(--rouge); margin-top: 0; }
dl.details-fiche { display: grid; gap: 8px; margin: 10px 0 16px; }
.detail { display: grid; grid-template-columns: 40% 1fr; gap: 10px; font-size: 15px; line-height: 1.3; }
.detail dt { color: var(--texte-doux); }
.detail dd { font-weight: 700; overflow-wrap: anywhere; }
.puces.dans-fiche { padding: 0 0 12px; }
.bloc-itineraire { margin-top: 12px; }
.grand-texte .distance-proche { display: block; font-size: 18px; color: var(--texte-doux); }
.carte.reglage { padding: 4px 0 0; }
.carte.reglage > span { display: block; padding: 10px 16px 6px; font-size: 13px; font-weight: 700; color: var(--texte-doux); text-transform: uppercase; letter-spacing: 1.2px; }
#liste > .plus { display: block; width: 100%; padding: 14px 16px; border-top: 1px solid var(--separateur); color: var(--indigo); font-weight: 700; }
.fiche-annuaire p, .fiche-annuaire li, .fiche-annuaire dd { overflow-wrap: anywhere; }
.fiche-annuaire .adresse { font-size: 15px; color: var(--texte-doux); margin-top: 4px; }
.proprietes { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 15px; }
.proprietes dt { color: var(--texte-doux); }
/* Menu des langues du pied de page des outils (T-054), comme celui de YovWay : chaque langue avec son drapeau. */
.langues-du-pied { margin: 16px 16px 24px; font-size: 15px; line-height: 2; text-align: center; }
.langues-du-pied a { display: inline-block; min-height: 44px; padding: 0 10px; line-height: 44px; color: var(--texte-doux); }
.langues-du-pied a[aria-current="page"] { color: inherit; font-weight: 700; text-decoration: none; }
.langues-du-pied .drapeau { width: 20px; height: 15px; margin-inline-end: 8px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(128, 128, 128, .45); vertical-align: -2px; object-fit: cover; }
