/* ============================================================
   À sec, à flot — LES MENUS DYNAMIQUES DE LA CARTE (lot 1, 16/10/2026)
   Rail de papier à gauche (téléphone : rangée d'onglets sous le bandeau), panneau gauche,
   panneau droit, bande de chiffres. Chargée après carte-papier.css.
   ============================================================ */
:root { --mp-flot: #17405F; --mp-sec: #A0701F; --mp-sec-texte: #8A5A12; --mp-vert: #2E5D46; --mp-rouge: #A8321C; }

/* ── le rail ── */
.rail-menus { top: 64px; left: 10px; bottom: 16px; width: 80px; z-index: 12; display: flex; flex-direction: column; gap: 3px;
  padding: 8px 6px; border-radius: 4px; background-color: var(--cp-surface); background-image: var(--cp-grain); box-shadow: var(--cp-ombre); }
.rail-menus .rm-bouton { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 9px; border: 0; border-radius: 4px;
  background: none; color: #4A4438; font: 600 11px/1.2 "IBM Plex Sans", sans-serif; text-align: center; cursor: pointer; }
.rail-menus .rm-bouton:hover { background: var(--cp-survol); color: var(--mp-flot); }
.rail-menus .rm-bouton:focus-visible { outline: 2px solid #2E6BB8; outline-offset: 1px; }
.rail-menus .rm-bouton[aria-pressed="true"] { background: var(--mp-flot); color: #FFFBF3; box-shadow: 0 6px 12px -8px rgba(23,64,95,.8); }
.rail-menus .rm-bouton.sec[aria-pressed="true"] { background: var(--mp-sec); box-shadow: 0 6px 12px -8px rgba(160,112,31,.8); }
.rail-menus .mp-pic { width: 24px; height: 24px; }
.rail-menus .rm-sep { height: 1px; background: var(--cp-ligne); margin: 6px 6px; flex: none; }
.rail-menus .rm-pour { margin-top: auto; font: 600 9.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: .06em; color: var(--cp-muet); text-align: center; text-transform: uppercase; }

/* le rail prend la colonne de gauche : ce qui y vivait se décale */
.volet, .volet-pill, .legende-entraide { left: 100px; }
.maplibregl-ctrl-bottom-left { margin-left: 100px !important; }
.fond, .fond-note { left: 100px; }

/* ── panneaux et bande ── */
.mp-panneau, .mp-bas { background-color: var(--cp-surface); background-image: var(--cp-grain); box-shadow: var(--cp-ombre); border-radius: 4px; color: var(--cp-encre); }
.mp-panneau[hidden], .mp-bas[hidden] { display: none !important; }
.mp-gauche { top: 64px; left: 100px; width: 340px; max-height: calc(100% - 64px - 140px); overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 16px; z-index: 11;
  display: flex; flex-direction: column; gap: 10px; }
body[data-menu="rejeu"] .mp-gauche { max-height: calc(100% - 64px - 150px); }
.mp-droite { top: 112px; right: 10px; width: 310px; max-height: calc(100% - 112px - 140px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; z-index: 11;
  display: flex; flex-direction: column; gap: 8px; }
.mp-bas { left: 100px; right: 10px; bottom: 16px; min-height: 92px; z-index: 11; display: flex; align-items: center; padding: 12px 20px; gap: 0; }
.mp-panneau .sur, .mp-bas .sur { font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .13em; color: var(--cp-muet); text-transform: uppercase; }
.mp-titre { font: 700 22px/1.15 "Newsreader", Georgia, serif; margin: 0; text-wrap: balance; }
.mp-sous { margin: 0; font-size: 13px; line-height: 1.5; color: var(--cp-muet); }
.mp-gros { margin: 0; font: 700 18px/1.25 "Newsreader", Georgia, serif; }
.mp-vide { margin: 0; font: 700 16px/1.3 "Newsreader", Georgia, serif; }
.mp-attente { margin: 0; font-size: 13px; color: var(--cp-muet); }
.mp-source { margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--cp-muet); }
.mp-source a { color: var(--mp-flot); }
.mp-encart { background: var(--cp-survol); border-radius: 4px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; color: #4A4438; }
.mp-encart b { color: var(--cp-encre); }
.mp-encart b.rouge { color: var(--mp-rouge); } .mp-encart b.sec { color: var(--mp-sec-texte); } .mp-encart b.vert { color: var(--mp-vert); }

.mp-ligne { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--cp-ligne); font-size: 13px; line-height: 1.4; }
.mp-ligne:first-of-type { border-top: 0; }
.mp-ligne.courte { padding: 4px 0; border-top: 0; align-items: center; }
.mp-ligne b { display: block; } .mp-ligne small { color: var(--cp-muet); font-size: 12px; }
.mp-puce { flex: none; width: 15px; height: 15px; border-radius: 3px; margin-top: 2px; display: inline-block; }
.mp-puce.rond { border-radius: 50%; margin-top: 0; }
.mp-puce.flot { background: linear-gradient(90deg, #3D7BAE 50%, #17405F 50%); }
.mp-puce.sec { background: linear-gradient(90deg, #CC9233 50%, #A0701F 50%); }
.mp-puce.vert { background: linear-gradient(90deg, #4C8066 50%, #2E5D46 50%); }
.mp-puce.rouge { background: #A8321C; } .mp-puce.jaune { background: #E2C36B; }

.mp-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--cp-ligne); }
.mp-item:first-of-type { border-top: 0; }
.mp-item b { display: block; font-size: 14px; line-height: 1.3; }
.mp-item small { display: block; font-size: 12.5px; line-height: 1.45; color: var(--cp-muet); margin-top: 2px; }
.mp-pastille { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #FFFBF3; }
.mp-pastille .mp-pic { width: 17px; height: 17px; }
.mp-pastille.flot { background: var(--mp-flot); } .mp-pastille.violet { background: #6B5A8E; } .mp-pastille.clair { background: #C9C2B4; }
.mp-pastille.vert { background: var(--mp-vert); } .mp-pastille.ocre { background: var(--mp-sec); } .mp-pastille.rouge { background: var(--mp-rouge); } .mp-pastille.gris { background: #8E877B; }
.mp-tag { font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: .05em; padding: 3px 7px; border-radius: 3px; white-space: nowrap; text-transform: uppercase; }
.mp-tag.faible { background: #ECE8DF; color: var(--cp-muet); } .mp-tag.moyen { background: #F4E7CF; color: var(--mp-sec-texte); }
.mp-tag.fort { background: #EAD6B2; color: #6B4310; } .mp-tag.rouge { background: #F6DED8; color: var(--mp-rouge); }
.mp-tag.inconnu { color: var(--cp-muet); border: 1px dashed #B7AA94; }

.mp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--mp-flot); border-radius: 3px;
  background: #FFFBF3; color: var(--mp-flot); font: 600 13.5px "IBM Plex Sans", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mp-cta:hover { background: var(--mp-flot); color: #FFFBF3; }
.mp-panneau .mp-cta { align-self: stretch; }
.mp-pic-p { width: 15px; height: 15px; }

.mp-recit { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 6px; margin: 0 -6px; border: 0; border-radius: 4px; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mp-recit:hover { background: var(--cp-survol); }
.mp-recit b { display: block; font-size: 13.5px; } .mp-recit small { font-size: 12px; color: var(--cp-muet); }
.mp-annees { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.mp-annees span:nth-child(even) { font: 600 12.5px/1.5 "IBM Plex Mono", monospace; }
.mp-annees .flot { color: var(--mp-flot); } .mp-annees .sec { color: var(--mp-sec-texte); }
.mp-grille { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 13px; }
.mp-grille span:nth-child(even) { font: 600 13px "IBM Plex Mono", monospace; text-align: right; }

/* rejouer : les trois voyages et la frise de la commune */
.mp-boutons { display: grid; gap: 6px; }
.mp-choix { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--cp-ligne); border-left: 4px solid #8E877B; border-radius: 3px;
  background: #FFFDF8; font: 600 13.5px "IBM Plex Sans", sans-serif; color: var(--cp-encre); cursor: pointer; text-align: left; }
.mp-choix .mp-pic { width: 18px; height: 18px; flex: none; }
.mp-choix.flot { border-left-color: var(--mp-flot); } .mp-choix.sec { border-left-color: var(--mp-sec); }
.mp-choix:hover, .mp-choix.on { background: var(--cp-survol); }
.mp-choix.on { box-shadow: inset 0 0 0 1.5px var(--cp-encre); }
.mp-frise { position: relative; height: 66px; margin: 8px 6px 0; }
.mp-frise .fr-ligne { position: absolute; left: 0; right: 0; top: 26px; height: 3px; border-radius: 2px; background: var(--cp-ligne); }
.mp-frise .fr-pt { position: absolute; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; border: 2px solid #FFFBF3; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.mp-frise .fr-pt.flot { top: 9px; background: #3D7BAE; } .mp-frise .fr-pt.sec { top: 33px; background: #CC9233; }
.mp-frise .fr-pt.jouee { transform: scale(1.5); }
.mp-frise .fr-an { position: absolute; top: 50px; transform: translateX(-50%); font: 600 10.5px "IBM Plex Mono", monospace; color: var(--cp-muet); }
.mp-frise .fr-an:first-of-type { transform: none; } .mp-frise .fr-an:last-of-type { transform: translateX(-100%); }
.mp-frise .fr-curseur { position: absolute; top: 0; bottom: 18px; width: 2px; margin-left: -1px; background: var(--cp-encre); }
.mp-frise .fr-curseur[hidden] { display: none; }
.mp-legende-frise { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--cp-muet); }
.mp-legende-frise .mp-puce { width: 11px; height: 11px; border-radius: 50%; margin: 0 0 0 6px; }

/* alertes : l'abonnement */
.mp-abo { display: grid; gap: 4px; }
.mp-coche { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; font-size: 12.5px; line-height: 1.4; color: var(--cp-muet); cursor: pointer; }
.mp-coche input { margin-top: 2px; accent-color: var(--mp-flot); width: 16px; height: 16px; flex: none; }
.mp-coche b { display: block; color: var(--cp-encre); font-size: 13.5px; }
.mp-abo-ligne { display: flex; gap: 6px; margin-top: 4px; }
.mp-abo-ligne input { flex: 1 1 auto; min-width: 0; padding: 9px 10px; border: 1px solid #C9B48F; border-radius: 3px; background: #FFFFFF; font: 14px "IBM Plex Sans", sans-serif; }
.mp-abo-ligne button { display: inline-flex; gap: 6px; align-items: center; padding: 0 12px; border: 0; border-radius: 3px; background: var(--mp-flot); color: #FFFBF3; font: 600 13px "IBM Plex Sans", sans-serif; cursor: pointer; }
.mp-abo-ligne .mp-pic { width: 16px; height: 16px; }
.mp-abo-msg { margin: 4px 0 0; font-size: 12.5px; min-height: 1em; color: var(--mp-vert); }

/* la bande de chiffres */
.mp-kpi { display: flex; gap: 10px; align-items: center; padding: 0 22px; border-left: 1px solid var(--cp-ligne); }
.mp-kpi:first-child { border-left: 0; padding-left: 0; }
.mp-kpi b { font: 700 26px/1 "Newsreader", Georgia, serif; }
.mp-kpi b.flot { color: var(--mp-flot); } .mp-kpi b.sec { color: var(--mp-sec-texte); } .mp-kpi b.vert { color: var(--mp-vert); } .mp-kpi b.rouge { color: var(--mp-rouge); }
.mp-kpi small { font-size: 12px; line-height: 1.35; color: var(--cp-muet); }
.mp-bloc { display: flex; flex-direction: column; gap: 3px; max-width: 340px; padding-right: 22px; font-size: 13px; line-height: 1.45; }
.mp-bloc + .mp-kpi { border-left: 1px solid var(--cp-ligne); padding-left: 22px; }
.mp-bas .mp-cta { margin-left: auto; }

/* dans un menu autre que « Qui m'aide », l'entraide et le terrain s'effacent */
body:not([data-menu="qui"]) .situation-barre, body:not([data-menu="qui"]) .legende-entraide,
body:not([data-menu="qui"]) .volet, body:not([data-menu="qui"]) .volet-pill, body:not([data-menu="qui"]) .actions-carte { display: none !important; }
body:not([data-menu="qui"]) .maplibregl-ctrl-top-right { right: 324px; }
body:not([data-menu="qui"]) .cherche { right: 330px; }
body:not([data-menu="qui"]) .avis-declencheur { bottom: 126px; }
body[data-menu="rejeu"] .avis-declencheur { bottom: 14px; }
@media (max-width: 1180px) { body:not([data-menu="qui"]) .cherche { display: none; } }

/* ── téléphone : une rangée d'onglets sous le bandeau, le contenu en feuille du bas ── */
@media (max-width: 760px) {
  .rail-menus { top: 40px; left: 0; right: 0; bottom: auto; width: auto; flex-direction: row; gap: 6px; padding: 7px 10px; border-radius: 0;
    overflow-x: auto; scrollbar-width: none; box-shadow: 0 6px 12px -8px rgba(60,40,10,.5); }
  .rail-menus::-webkit-scrollbar { display: none; }
  .rail-menus .rm-bouton { flex: none; flex-direction: row; gap: 6px; padding: 7px 11px; font-size: 12.5px; white-space: nowrap; border: 1px solid var(--cp-ligne); }
  .rail-menus .mp-pic { width: 16px; height: 16px; }
  .rail-menus .rm-sep, .rail-menus .rm-pour { display: none; }
  .volet, .volet-pill, .fond { left: auto; }
  .volet { left: 0; }
  .legende-entraide { left: 8px; top: 92px; }
  body:has(#bandeau-panne.visible) .legende-entraide { top: 140px; }
  .bandeau-panne { top: 90px !important; }
  .maplibregl-ctrl-top-right { top: 96px !important; }
  .maplibregl-ctrl-bottom-left { margin-left: 8px !important; }
  .mp-gauche { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 58%; border-radius: 14px 14px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); z-index: 31; }
  body[data-menu="rejeu"] .mp-gauche { max-height: 46%; }
  .mp-suite { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--cp-ligne); padding-top: 12px; margin-top: 4px; }
  .mp-kpis-tel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--cp-ligne); padding-top: 12px; }
  .mp-kpis-tel .mp-kpi { padding: 0; border: 0; }
  .mp-kpis-tel .mp-bloc { grid-column: 1 / -1; padding: 0; max-width: none; }
  .mp-kpis-tel .mp-cta { grid-column: 1 / -1; margin: 0; }
  body:not([data-menu="qui"]) .cherche { display: none; }
  body:not([data-menu="qui"]) .maplibregl-ctrl-top-right { right: 0; }
  body[data-menu="rejeu"] .replay-bar { bottom: calc(46% + 10px); }
}
@media (prefers-reduced-motion: reduce) { .mp-frise .fr-pt { transition: none; } }
@media print { .rail-menus, .mp-panneau, .mp-bas { display: none !important; } }

/* « D'où vient l'eau » : légende de carte, bulles posées sur la carte, l'astuce du clic */
.mp-puce.hachure { background: repeating-linear-gradient(45deg, rgba(23,64,95,.6) 0 3px, rgba(147,196,234,.5) 3px 7px); }
.mp-puce.pointilles { background: none; height: 0; margin-top: 8px; border-top: 4px dotted var(--mp-sec); border-radius: 0; }
.mp-astuce { margin: 2px 0 0; font-size: 12px; color: var(--mp-sec-texte); font-weight: 600; }
.mp-bloc.large { max-width: 420px; border-left: 1px solid var(--cp-ligne); padding-left: 22px; }
.mp-bulle { max-width: 230px; padding: 8px 11px; border-radius: 4px; font: 400 12.5px/1.35 "IBM Plex Sans", sans-serif; box-shadow: var(--cp-ombre-basse); pointer-events: none; }
.mp-bulle b { display: block; font-size: 13px; }
.mp-bulle.bleue { background: var(--mp-flot); color: #FFFBF3; }
.mp-bulle.ocre { background: var(--mp-sec); color: #FFFBF3; }
.mp-bulle.papier { background-color: var(--cp-surface); background-image: var(--cp-grain); color: var(--cp-encre); }
.mp-bulle.papier b + * , .mp-bulle.papier { color: var(--cp-encre); }
.mp-point-et { font: 700 12.5px "IBM Plex Sans", sans-serif; color: var(--mp-flot); background: rgba(255,251,243,.92); padding: 2px 7px; border-radius: 3px; white-space: nowrap; pointer-events: none; }
@media (max-width: 760px) { .mp-bulle { max-width: 170px; font-size: 11.5px; } .mp-bulle.papier { display: none; } }

/* « Et si l'eau montait ? » : réglages à gauche, coupe au centre, ce qui est touché à droite */
.mp-scene { top: 64px; left: 450px; right: 330px; bottom: 16px; z-index: 11; padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
body[data-menu="monte"] .mp-gauche { max-height: calc(100% - 80px); }
body[data-menu="monte"] .mp-droite { top: 64px; max-height: calc(100% - 80px); }
body[data-menu="monte"] .cherche, body[data-menu="monte"] .maplibregl-ctrl-top-right { display: none !important; }
body[data-menu="monte"] .avis-declencheur { bottom: 14px; }
.mo-scene-tete { display: flex; justify-content: space-between; align-items: baseline; }
.mo-leg { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--cp-muet); }
.mo-leg i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.mo-leg i.t { background: var(--mp-rouge); } .mo-leg i.h { background: var(--mp-vert); }
.mo-coupe { position: relative; flex: 1 1 auto; min-height: 0; }
.mo-calque { position: absolute; inset: 0; }
.mo-calque svg { width: 100%; height: 100%; display: block; }
.mo-pied { text-align: center; }
.mo-haut { font: 700 40px/1 "Newsreader", Georgia, serif; color: var(--mp-flot); }
.mo-curseur { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; margin: 10px 0 2px; cursor: pointer;
  background: linear-gradient(90deg, #3D7BAE var(--mo-pct, 20%), #E3D6BF var(--mo-pct, 20%)); }
.mo-curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mp-flot); border: 3px solid #FFFBF3; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.mo-curseur::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--mp-flot); border: 3px solid #FFFBF3; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.mo-curseur:focus-visible { outline: 2px solid #2E6BB8; outline-offset: 4px; }
.mo-graduation { display: flex; justify-content: space-between; font: 500 11.5px "IBM Plex Mono", monospace; color: var(--cp-muet); }
.mo-pastilles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mo-pastilles button { padding: 8px 0; border: 1px solid var(--cp-ligne); border-radius: 3px; background: #FFFDF8; font: 600 12.5px "IBM Plex Sans", sans-serif; cursor: pointer; color: var(--cp-encre); }
.mo-pastilles button.on { background: var(--mp-flot); border-color: var(--mp-flot); color: #FFFBF3; }
.mo-bilan { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mo-bilan div { display: flex; gap: 8px; align-items: center; background: var(--cp-survol); border-radius: 4px; padding: 8px 10px; }
.mo-bilan b { font: 700 28px/1 "Newsreader", Georgia, serif; }
.mo-bilan b.rouge { color: var(--mp-rouge); } .mo-bilan b.vert { color: var(--mp-vert); }
.mo-bilan small { font-size: 12px; line-height: 1.3; color: var(--cp-muet); }
.mo-exemple { background: #F4E7CF; border-radius: 4px; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; color: #6B4310; }
.mo-point { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--cp-ligne); font-size: 12.5px; line-height: 1.4; color: var(--cp-muet); }
.mo-point:first-child { border-top: 0; }
.mo-point b { display: block; color: var(--cp-encre); font-size: 13.5px; }
.mo-point span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #FFFBF3; font: 700 12.5px "IBM Plex Sans", sans-serif; margin-top: 1px; }
.mo-point.t span { background: var(--mp-rouge); } .mo-point.h span { background: var(--mp-vert); } .mo-point.inconnu span { background: #8E877B; }
.mo-note { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--mp-sec-texte); }
.mp-cta.plein { background: var(--mp-flot); color: #FFFBF3; }
.mp-cta.plein:hover { background: #20507A; }
.mo-lien { text-align: center; font: 600 13px "IBM Plex Sans", sans-serif; color: var(--mp-flot); }
@media (max-width: 1180px) and (min-width: 761px) { body[data-menu="monte"] .mp-gauche { width: 300px; } body[data-menu="monte"] .mp-droite { width: 270px; } .mp-scene { left: 410px; right: 290px; } }
@media (max-width: 760px) {
  body[data-menu="monte"] .mp-gauche { max-height: calc(100% - 96px); }
  .mp-scene-tel { display: flex; flex-direction: column; gap: 6px; }
  .mp-scene-tel .mo-coupe { flex: none; aspect-ratio: 760 / 900; }
}

/* ============================================================
   AUDIT « 60 ANS ET PLUS » (lot A, 16/10/2026) : rien sous 13 px, le corps à 15-16 px,
   toute commande au doigt fait au moins 44 px, quatre menus, sigles expliqués.
   ============================================================ */
/* le rail : quatre entrées plus grandes, le lien des élus en bas */
.rail-menus { width: 92px; gap: 6px; }
.rail-menus .rm-bouton { font-size: 13px; padding: 12px 4px 11px; min-height: 64px; }
.rail-menus .mp-pic { width: 28px; height: 28px; }
.rail-menus .rm-elu { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 56px; padding: 8px 4px; border: 1px dashed var(--cp-ligne);
  border-radius: 4px; background: none; color: var(--cp-muet); font: 600 12px/1.25 "IBM Plex Sans", sans-serif; text-align: center; cursor: pointer; }
.rail-menus .rm-elu .mp-pic { width: 20px; height: 20px; }
.rail-menus .rm-elu:hover, .rail-menus .rm-elu[aria-pressed="true"] { border-style: solid; border-color: var(--mp-flot); color: var(--mp-flot); background: var(--cp-survol); }
.volet, .volet-pill, .legende-entraide, .fond, .fond-note { left: 112px; }
.maplibregl-ctrl-bottom-left { margin-left: 112px !important; }
.mp-gauche, .mp-bas { left: 112px; }
.mp-gauche { width: 360px; }
.mp-scene { left: 484px; }
/* les onglets d'un menu double */
.mp-onglets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -4px -4px 6px; background: var(--cp-survol); border-radius: 4px; }
.mp-onglets button { min-height: 44px; border: 0; border-radius: 3px; background: none; font: 600 14px/1.2 "IBM Plex Sans", sans-serif; color: #4A4438; cursor: pointer; padding: 6px 8px; }
.mp-onglets button[aria-selected="true"] { background: #FFFBF3; color: var(--mp-flot); box-shadow: 0 2px 6px -3px rgba(60,40,10,.5); }
.mp-onglets button:focus-visible { outline: 2px solid #2E6BB8; outline-offset: 1px; }
/* les textes des panneaux */
.mp-panneau .sur, .mp-bas .sur { font-size: 12.5px; }
.mp-titre { font-size: 25px; }
.mp-sous, .mp-encart, .mp-abo-msg, .mo-exemple { font-size: 15px; line-height: 1.55; }
.mp-item b, .mo-point b, .mp-coche b, .mp-recit b { font-size: 16px; }
.mp-item small, .mo-point, .mp-ligne small, .mp-coche, .mp-recit small { font-size: 14.5px; }
.mp-ligne { font-size: 15px; }
.mp-source, .mo-note, .mp-legende-frise { font-size: 13px; }
.mp-grille, .mp-annees { font-size: 15px; }
.mp-grille span:nth-child(even), .mp-annees span:nth-child(even) { font-size: 14.5px; }
.mp-gros { font-size: 20px; } .mp-vide { font-size: 18px; }
.mp-kpi small, .mo-bilan small { font-size: 13.5px; }
.mp-kpi b { font-size: 30px; }
.mp-bloc { font-size: 15px; }
.mp-tag { font-size: 12px; padding: 4px 8px; }
.mp-cta, .mp-choix { min-height: 48px; font-size: 15px; }
.mp-abo-ligne input, .mp-abo-ligne button { min-height: 48px; font-size: 16px; }
.mp-coche input { width: 22px; height: 22px; }
.mo-pastilles button { min-height: 44px; font-size: 14.5px; }
.mo-curseur { height: 10px; border-radius: 5px; margin: 14px 0 6px; }
.mo-curseur::-webkit-slider-thumb { width: 34px; height: 34px; }
.mo-curseur::-moz-range-thumb { width: 28px; height: 28px; }
.mo-graduation { font-size: 13px; }
.mo-lien { font-size: 15px; padding: 10px 0; }
/* la légende de l'entraide et le panneau « Qui m'aide » */
.legende-entraide .le-tete { font-size: 15.5px; min-height: 44px; }
.legende-entraide .le-titre { font-size: 12px; }
.legende-entraide .le-formes { font-size: 15px; }
.legende-entraide .le-formes .le-ligne { min-height: 44px; }
.legende-entraide .le-code { font-size: 14.5px; }
.legende-entraide .le-aide { font-size: 13px; }
.ctx-onglets button { font-size: 12.5px; min-height: 44px; }
.ctx-corps { font-size: 15px; }
.ctx-corps .fx b, .ctx-fiche-vue h3 { font-size: 16px; }
.ctx-corps .fx p, .ctx-fiche-vue p, .ctx-corps .bloc-note, .ctx-corps .porte-appel, .ctx-corps .metier { font-size: 14.5px; }
.ctx-st { font-size: 12px; }
.ctx-corps .btn-tel, .ctx-corps .btn-sobre, .ctx-corps .btn-porte { min-height: 44px; font-size: 14.5px; padding: 8px 14px; }
.ctx-corps .badge { font-size: 11.5px; }
.ctx-note, .ctx-corps .transparence, .ctx-corps .porte-transparence, .ctx-corps .ligne-commerciale, .ctx-corps .fiche-loin { font-size: 13px; }
.ctx-fermer { min-width: 44px; min-height: 44px; font-size: 18px; }
.ctx-lien { font-size: 13.5px; }
.utile-q { font-size: 16px; } .utile-boutons button, .utile-envoyer { min-height: 44px; font-size: 15px; }
/* le bandeau et la barre des cas */
.bandeau { font-size: 14px; }
.bandeau .bd-partager { min-height: 40px; font-size: 14px; }
.bandeau .bd-retour { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
.situation-barre .sb-cas { font-size: 14.5px; min-height: 46px; }
.situation-barre #rayon-pill { font-size: 14px; min-height: 44px; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
/* les bulles des sigles */
abbr.sigle { text-decoration: underline dotted; text-decoration-color: rgba(23,64,95,.7); text-underline-offset: 3px; cursor: help; border: 0; }
abbr.sigle:focus-visible { outline: 2px solid #2E6BB8; outline-offset: 2px; }
.sigle-bulle { position: fixed; z-index: 96; padding: 12px 14px; border-radius: 4px; font: 400 14.5px/1.5 "IBM Plex Sans", sans-serif; color: var(--cp-encre);
  background-color: var(--cp-surface); background-image: var(--cp-grain); box-shadow: 0 12px 28px -10px rgba(60,40,10,.6); }
.sigle-bulle b { font: 700 14px "IBM Plex Mono", monospace; color: var(--mp-flot); margin-right: 6px; }
.mp-chez-moi[hidden] { display: none; }

@media (max-width: 760px) {
  .rail-menus { width: auto; gap: 8px; padding: 8px 10px; }
  .rail-menus .rm-bouton { min-height: 44px; padding: 8px 14px; font-size: 14.5px; }
  .rail-menus .mp-pic { width: 18px; height: 18px; }
  .rail-menus .rm-elu { flex: none; flex-direction: row; min-height: 44px; margin: 0; padding: 8px 14px; font-size: 13.5px; white-space: nowrap; }
  .rail-menus .rm-elu .mp-pic { width: 16px; height: 16px; }
  .volet, .volet-pill, .fond, .legende-entraide { left: auto; }
  .volet { left: 0; }
  .legende-entraide { left: 8px; top: 110px; }
  body:has(#bandeau-panne.visible) .legende-entraide { top: 160px; }
  .bandeau-panne { top: 106px !important; }
  .maplibregl-ctrl-top-right { top: 110px !important; }
  .mp-gauche, .mp-bas { left: 0; }
  .mp-gauche { width: auto; }
  .bandeau { font-size: 14px; padding: 6px 10px; }
  .bandeau .bd-retour { min-height: 44px; padding: 0 8px 0 0; font-size: 15px; }
  /* les commandes de la carte reviennent sur téléphone, en grand : zoomer sans pincer */
  .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-in, .maplibregl-ctrl-group button.maplibregl-ctrl-zoom-out { display: block !important; }
  .maplibregl-ctrl-group button { width: 48px !important; height: 48px !important; }
  .ctx-poignee { height: 30px; top: -6px; }
  .ctx-apercu { font-size: 15px; min-height: 44px; }
  .ctx-cas button { min-height: 44px; font-size: 14px; }
  .situation-barre .sb-cas { font-size: 13px; }
  .mp-onglets button { font-size: 14.5px; }
}
@media (max-width: 1180px) and (min-width: 761px) { body[data-menu="monte"] .mp-gauche { width: 300px; } .mp-scene { left: 424px; right: 290px; } }
/* lot A, finitions mesurées sur la préprod */
.volet-pill .vp-sous { font-size: 13px; }
.volet-pill .vp-ouvrir { font-size: 13px; min-height: 30px; }
.volet-pill { min-height: 48px; }
.fond button { font-size: 14px; min-height: 44px; }
.maplibregl-ctrl-scale { font-size: 12.5px !important; }
.bandeau .bd-partager, .bandeau .bd-retour { min-height: 44px; }
.avis-declencheur { min-height: 44px; font-size: 14px !important; }
.rail-menus .rm-bouton { font-size: 13.5px; }
.rail-menus .rm-bouton.sec[aria-pressed="true"] { background: #8A5A12; }
.ctx-sur { color: #5E6670; font-size: 11.5px; }
.mo-curseur { height: 36px; margin: 4px 0 0; background: linear-gradient(90deg, #3D7BAE var(--mo-pct, 20%), #E3D6BF var(--mo-pct, 20%)) center / 100% 10px no-repeat; }
.mp-source a, .mp-item small a { display: inline-block; padding: 6px 0; }
.mp-panneau .sur, .mo-graduation { font-size: 13px; }
/* lot A : les tailles nouvelles se recalent (filet de production) */
@media (min-width: 761px) { .maplibregl-ctrl-bottom-left { margin-bottom: 80px !important; } }
@media (max-width: 760px) {
  .bandeau { min-height: 50px; padding-top: 0; padding-bottom: 0; }
  .rail-menus { top: 53px; }
  .legende-entraide { top: 122px; }
  body:has(#bandeau-panne.visible) .legende-entraide { top: 172px; }
  .bandeau-panne { top: 118px !important; }
  .maplibregl-ctrl-top-right { top: 122px !important; }
  .actions-carte { bottom: 172px !important; flex-direction: column !important; }
}

/* ============================================================
   LOT B « 60 ANS ET PLUS » (16/10/2026) : Ma maison prête, visite guidée
   ============================================================ */
/* le rail : la jauge de « Ma maison prête » */
.rail-menus .rm-prete { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 9px 4px 8px; border: 0; border-radius: 4px;
  background: #F4E7CF; color: #6B4310; font: 600 12px/1.2 "IBM Plex Sans", sans-serif; text-align: center; cursor: pointer; }
.rail-menus .rm-prete:hover, .rail-menus .rm-prete[aria-pressed="true"] { background: #8A5A12; color: #FFFBF3; }
.rail-menus .rm-prete .rm-jauge { width: 60px; height: 8px; border-radius: 4px; background: #FFFBF3; overflow: hidden; box-shadow: inset 0 0 0 1px #D9C3A0; }
.rail-menus .rm-prete .rm-jauge i { display: block; height: 100%; width: 0; background: var(--mp-vert); transition: width .3s; }
.rail-menus .rm-prete .rm-prete-n { font: 700 14px "IBM Plex Mono", monospace; }
.rail-menus .rm-prete.complet { background: #DCEADF; color: var(--mp-vert); }
.rail-menus .rm-elu { margin-top: 6px; }
/* le panneau */
.pr-jauge { height: 16px; border-radius: 8px; background: #EFE6D2; overflow: hidden; box-shadow: inset 0 0 0 1px #D9C3A0; }
.pr-jauge i { display: block; height: 100%; background: linear-gradient(90deg, #4C8066, #2E5D46); border-radius: 8px; transition: width .4s; }
.pr-bilan { margin: 0; font-size: 15.5px; line-height: 1.5; }
.pr-geste { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--cp-ligne); }
.pr-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #EFE6D2; color: #4A4438; font: 700 17px "IBM Plex Sans", sans-serif; }
.pr-geste.fait .pr-num { background: var(--mp-vert); color: #FFFBF3; }
.pr-geste b { display: block; font-size: 16px; line-height: 1.3; }
.pr-geste small { display: block; font-size: 14.5px; line-height: 1.45; color: var(--cp-muet); margin-top: 2px; }
.pr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.pr-actions .mp-cta { min-height: 46px; padding: 8px 18px; }
.pr-ok { font: 700 14px "IBM Plex Sans", sans-serif; color: var(--mp-vert); }
.pr-main { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; color: var(--cp-muet); cursor: pointer; }
.pr-main input { width: 20px; height: 20px; accent-color: var(--mp-vert); }
.pr-visite { display: block; width: 100%; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
/* la visite guidée */
.vg-voile { position: fixed; inset: 0; z-index: 97; }
.vg-trou { position: fixed; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(28, 26, 22, .58); outline: 3px solid #E8B65C; pointer-events: none; transition: all .25s; }
.vg-carte { position: fixed; display: flex; gap: 10px; align-items: flex-end; padding: 16px 16px 16px 8px; border-radius: 6px;
  background-color: var(--cp-surface); background-image: var(--cp-grain); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); color: var(--cp-encre); }
.vg-perso { width: 58px; height: 116px; flex: none; }
.vg-num { font: 600 12.5px "IBM Plex Mono", monospace; letter-spacing: .1em; color: #8A5A12; }
.vg-carte h2 { margin: 4px 0 6px; font: 700 20px/1.2 "Newsreader", Georgia, serif; }
.vg-carte p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
.vg-boutons { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.vg-suivant { min-height: 46px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--mp-flot); color: #FFFBF3; font: 700 15.5px "IBM Plex Sans", sans-serif; cursor: pointer; }
.vg-passer { min-height: 44px; border: 0; background: none; color: var(--cp-muet); font: 600 14.5px "IBM Plex Sans", sans-serif; text-decoration: underline; cursor: pointer; }
.vg-suivant:focus-visible, .vg-passer:focus-visible { outline: 2px solid #2E6BB8; outline-offset: 2px; }
@media (max-width: 760px) {
  .rail-menus .rm-prete { flex: none; flex-direction: row; margin: 0; min-height: 44px; padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
  .rail-menus .rm-prete .rm-jauge { width: 40px; }
  .rail-menus .rm-elu { margin: 0; }
  .vg-perso { width: 46px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) { .vg-trou, .pr-jauge i, .rail-menus .rm-prete .rm-jauge i { transition: none; } }
