/* Orléans à portée de tram — vivre-orleans.fr (styles de la carte, tous préfixés .velo-) */
.velo-app { --rouge: #bf0a37; --rouge-vif: #e71447; --encre: #222; --gris: #666; --filet: #e3e3e3; position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; font-family: "Open Sans", sans-serif; color: var(--encre); }
.velo-app *, .velo-app *::before, .velo-app *::after { box-sizing: border-box; }
.velo-app button, .velo-app input, .velo-app select { font-family: inherit; }

/* barre de recherche */
.velo-recherche { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 760px; margin: 0 auto 18px; position: relative; }
.velo-champ { position: relative; flex: 1 1 280px; }
.velo-champ input { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid #cfcfcf; border-radius: 6px; font-size: 16px; background: #fff; color: var(--encre); }
.velo-champ input:focus { outline: none; border-color: var(--rouge); box-shadow: 0 0 0 3px rgba(191, 10, 55, .15); }
.velo-resultats { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #d5d5d5; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); max-height: 280px; overflow: auto; }
.velo-resultats[hidden] { display: none; }
.velo-res { padding: 10px 16px; font-size: 14.5px; cursor: pointer; list-style: none; margin: 0; }
.velo-res:hover, .velo-res.est-actif { background: #faf3f4; }
.velo-btn { height: 48px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--rouge); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.velo-btn:hover { background: #a10830; }
.velo-btn--discret { background: #fff; color: var(--rouge); border: 1.5px solid #e1c3cb; }
.velo-btn--discret:hover { background: #faf3f4; }
.velo-btn:focus-visible, .velo-lien:focus-visible, .velo-ctl button:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

/* carte */
.velo-carte { position: relative; height: clamp(440px, 72vh, 760px); background: #f1efe9; border: 1px solid var(--filet); border-radius: 6px; overflow: hidden; }
.velo-canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: crosshair; }
.velo-est-charge-en-cours .velo-canvas, .velo-app.est-charge-en-cours .velo-canvas { opacity: .4; }
.velo-chargement { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-weight: 600; color: var(--gris); background: rgba(241, 239, 233, .7); z-index: 5; }
.velo-app.est-charge-en-cours .velo-chargement { display: flex; }

.velo-zone { position: relative; }
.velo-panneau { position: absolute; z-index: 10; top: 12px; left: 12px; width: 310px; max-height: calc(100% - 24px); overflow: auto; padding: 14px 16px 12px; background: rgba(255, 255, 255, .96); border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, .14); font-size: 14px; }
.velo-etiquette { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2f9612; margin-bottom: 2px; }
.velo-etiquette--arr { color: var(--encre); }
.velo-nom { margin: 0 0 10px; font: 500 19px/1.2 Oswald, sans-serif; color: var(--encre); }
.velo-aide { margin: 6px 0 0; font-size: 13px; color: var(--gris); }
.velo-arr-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--filet); }
.velo-arr-nom { font-weight: 600; }
.velo-arr-min { font: 500 24px/1 Oswald, sans-serif; color: var(--rouge); white-space: nowrap; }
.velo-etapes { margin: 8px 0 0; padding: 0; list-style: none; }
.velo-etape { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; line-height: 1.35; list-style: none; margin: 0; }
.velo-etape small { display: block; color: var(--gris); font-size: 12px; }
.velo-pastille { flex: none; min-width: 34px; padding: 2px 6px; border-radius: 4px; color: #fff; font: 700 12.5px/1.5 "Open Sans", sans-serif; text-align: center; }
.velo-marche { flex: none; width: 34px; text-align: center; font-size: 15px; }
.velo-lien { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--rouge); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }

.velo-ctl { position: absolute; z-index: 10; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.velo-ctl button { width: 38px; height: 38px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #333; font-size: 19px; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.velo-ctl button:hover { background: #faf3f4; }

.velo-legende { position: absolute; z-index: 10; left: 12px; bottom: 12px; padding: 8px 12px 7px; background: rgba(255, 255, 255, .94); border: 1px solid #ddd; border-radius: 6px; font-size: 11.5px; color: #444; }
.velo-degrade { width: 170px; height: 9px; margin-bottom: 4px; border-radius: 2px; background: linear-gradient(90deg, rgb(47, 150, 18), rgb(126, 200, 80) 25%, rgb(226, 228, 120) 50%, rgb(244, 182, 112) 75%, rgb(226, 120, 120)); }
.velo-degre-lib { display: flex; justify-content: space-between; }
.velo-attribution { position: absolute; z-index: 9; right: 8px; bottom: 6px; padding: 1px 6px; font-size: 10px; color: #555; background: rgba(255, 255, 255, .8); border-radius: 3px; }
.velo-attribution a { color: #555; }

.velo-toast { position: absolute; z-index: 20; left: 50%; bottom: 56px; transform: translateX(-50%) translateY(8px); padding: 9px 16px; background: #222; color: #fff; font-size: 13.5px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: 90%; text-align: center; }
.velo-toast.est-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* options sous la carte */
.velo-options { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; margin: 16px 0 6px; font-size: 14px; }
.velo-groupe { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.velo-groupe > span:first-child { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gris); }
.velo-groupe label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.velo-groupe input[type=checkbox] { accent-color: var(--rouge); width: 16px; height: 16px; }
.velo-groupe select { height: 34px; padding: 0 8px; border: 1px solid #cfcfcf; border-radius: 5px; background: #fff; }
.velo-stat { margin: 8px 0 0; font: 500 18px/1.35 Oswald, sans-serif; color: var(--encre); }
.velo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.velo-actions .velo-btn { height: 40px; padding: 0 16px; font-size: 14px; }

@media (max-width: 800px) {
  .velo-app { padding: 0 14px; }
  .velo-btn { flex: 1 1 auto; }
  .velo-carte { height: 62vh; min-height: 380px; }
  .velo-panneau { position: static; width: auto; max-height: none; margin: 10px 0 0; box-shadow: none; background: #fff; border-color: var(--filet); }
  .velo-legende { left: 8px; bottom: 8px; }
  .velo-degrade { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { .velo-toast { transition: none; } }

/* ---------- Page « Orléans à portée de tram » (titre, introduction, sections de texte) ---------- */
.vo-velo-page { padding: 34px 0 40px; font-family: "Open Sans", sans-serif; color: #222; }
.vo-velo-entete { max-width: 760px; margin: 0 auto 26px; padding: 0 20px; text-align: center; }
.vo-velo-page h1.vo-velo-h1 { margin: 0 0 16px !important; padding: 0 !important; font: 500 46px/1.1 Oswald, sans-serif !important; color: #222 !important; text-transform: none !important; }
.vo-velo-intro p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: #444; }
.vo-velo-texte { max-width: 760px; margin: 34px auto 0; padding: 0 20px; }
.vo-velo-page .vo-velo-texte h2 { margin: 0 0 14px !important; padding: 0 0 10px !important; font: 500 28px/1.2 Oswald, sans-serif !important; color: #222 !important; border-bottom: 3px solid #bf0a37; text-transform: none !important; }
.vo-velo-texte p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: #333; }
.vo-velo-texte ul { margin: 0 0 14px; padding-left: 22px; }
.vo-velo-texte li { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: #333; }
.vo-velo-texte a { color: #bf0a37; text-decoration: underline; }
@media (max-width: 700px) {
  .vo-velo-page { padding-top: 22px; }
  .vo-velo-page h1.vo-velo-h1 { font-size: 34px !important; }
  .vo-velo-intro p { font-size: 16px; }
  .vo-velo-page .vo-velo-texte h2 { font-size: 24px !important; }
}

/* ---------- spécifique à l'outil vélo ---------- */
.velo-app { --vert: #0b7a3e; }
.velo-classes { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.35; color: #333; }
.velo-classes li { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; padding: 0; list-style: none; }
.velo-trait { flex: none; display: inline-block; width: 22px; height: 0; border-top: 4px solid #999; border-radius: 2px; transform: translateY(-3px); }
.velo-classes small { color: #777; white-space: nowrap; }
.velo-ventilation { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.velo-ventilation li { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; padding: 0; list-style: none; }
.velo-ventilation .velo-trait { transform: translateY(-3px); }
.velo-ventilation span.velo-v { margin-left: auto; color: #555; white-space: nowrap; }
.velo-arr-min { color: var(--vert) !important; }
.velo-etiquette { color: var(--vert) !important; }
.velo-legende-classes { position: absolute; z-index: 10; right: 12px; bottom: 28px; max-width: 250px; padding: 8px 12px; background: rgba(255, 255, 255, .94); border: 1px solid #ddd; border-radius: 6px; font-size: 11.5px; color: #444; }
.velo-legende-classes .velo-classes { margin: 0; }
.velo-comparaison p { margin: 0 0 4px; }
.velo-comparaison { margin: 10px 0 0; padding: 8px 10px; background: #f3f8f4; border-radius: 6px; font-size: 13px; line-height: 1.4; }
@media (max-width: 800px) { .velo-legende-classes { display: none; } }
