/* carte-reseau.css — le constructeur de tracé. Lot 3, items 2, 7, 10, 11.
 *
 * ⚠️ Les mêmes couleurs de thème que app.css (la page voisine), recopiées ici
 *    plutôt qu'importées : app.css porte 27 Ko de règles pour une autre page.
 * ⚠️ TOUT CE QUI FLOTTE EST EN PIXELS D'ÉCRAN : glyphes, étiquettes, palette.
 *    Un `L.divIcon` ne suit pas le zoom — c'est ce qu'on veut (item 10).
 * ⚠️ Pas de `overflow-x:hidden` sur body pour cacher un débordement : le
 *    cadre est `position:fixed; inset:0`, et la recette vérifie
 *    `scrollWidth === innerWidth` au téléphone.
 */
:root{--bg:#fafaf7;--ink:#1a1a1a;--muted:#6b6b6b;--blue:#003566;--blue2:#0a4d8c;--line:#e5e5e0;--shadow:0 4px 18px rgba(0,0,0,.18);
  --vert:#1f9d55;--orange:#e08a00;--rouge:#c62828;--inconnu:#8a8f98;--brouillon:#2b6cb0;--fautif:#ff2d95}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.4}
button,input,select{font:inherit}

.cr-plein{position:fixed;inset:0;overflow:hidden}
.cr-carte{position:absolute;inset:0;background:#d4e0e7}
.leaflet-container{font-family:inherit}

/* ─── ce qui flotte ───────────────────────────────────────────────────── */
.cr-flot{position:absolute;z-index:1000}
.cr-flot-hg{top:10px;left:56px}                  /* à droite du zoom de Leaflet */
.cr-flot-hd{top:10px;right:10px}
.cr-flot-bg{left:10px;bottom:24px}

.cr-barre{display:flex;flex-wrap:wrap;gap:6px;align-items:center;max-width:calc(100vw - 56px - 130px)}
.cr-b{border:1px solid var(--blue);border-radius:6px;background:rgba(255,255,255,.96);color:var(--blue);padding:6px 10px;font-size:.84rem;font-weight:700;cursor:pointer;text-decoration:none;line-height:1.2}
.cr-b:hover,.cr-b:focus{background:#eef3f7}
.cr-b-fort{background:var(--blue);color:#fff}
.cr-b-fort:hover,.cr-b-fort:focus{background:var(--blue2)}
.cr-b:disabled{opacity:.5;cursor:default}
.cr-b-on{outline:3px solid #ffd35a}
.cr-session{background:rgba(255,255,255,.9);border-radius:6px;padding:5px 9px;font-size:.78rem;color:var(--ink);box-shadow:var(--shadow)}

/* ─── lot 5 (item 8) : chaque bouton de geste porte sa phrase, VISIBLE ─────
   Pas seulement `title` : la phrase est sous le bouton, en petit, lisible à
   375 px. Un geste caché (`hidden` sur le bouton) cache sa phrase avec lui. */
.cr-geste{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:170px}
.cr-geste[hidden]{display:none}
.cr-geste small{font-size:.64rem;line-height:1.15;color:var(--muted);background:rgba(255,255,255,.9);padding:1px 4px;border-radius:3px}
.cr-fiche .cr-geste,.cr-bloc .cr-geste{max-width:none}
.cr-fiche .cr-geste small,.cr-bloc .cr-geste small{background:transparent;padding:0}
.cr-setup{margin:6px 0 0;font-size:.8rem}
.cr-setup b{color:var(--blue)}
.cr-fiche select:disabled{background:#f3f3f0;color:var(--ink);opacity:1}

/* ─── la palette (item 2) : une colonne, pas de grille ─────────────────── */
.cr-palette{display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:8px;padding:6px;box-shadow:var(--shadow);width:118px}
.cr-palette-titre{margin:0 0 2px;font-size:.62rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);text-align:center}
.cr-pal{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:4px 6px;cursor:grab;font-size:.76rem;font-weight:700;color:var(--blue);min-height:38px;text-align:left}
.cr-pal:hover,.cr-pal:focus{background:#eef3f7}
.cr-pal.cr-b-on{outline:3px solid #ffd35a;cursor:crosshair}
.cr-pal:active{cursor:grabbing}
.cr-carte.cr-pose{cursor:crosshair}

/* ─── les glyphes (item 10) : un SVG inline par type, en pixels d'écran ──
   Proposition visuelle (05 ②) : parabole R, antenne K, maison H, téléphone M,
   pastille S. Les réservés ont aussi leur glyphe : ils paraissent dans la
   couche officielle (mât B, antenne cerclée KP, éclair pour les centrales). */
.cr-g{display:inline-block;width:22px;height:22px;flex:none;background-repeat:no-repeat;background-position:center;background-size:contain}
.cr-g-K{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003566' stroke-width='2' stroke-linecap='round'><path d='M12 22V9'/><path d='M7 22h10'/><path d='M12 9l-5-5M12 9l5-5'/><circle cx='12' cy='7' r='2' fill='%23003566'/></svg>")}
.cr-g-R{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003566' stroke-width='2' stroke-linecap='round'><path d='M4 10a8 8 0 0 0 10 10'/><path d='M4 10l10 10'/><path d='M9 15l3-3'/><circle cx='14' cy='10' r='1.6' fill='%23003566'/><path d='M14 20v2M10 22h8'/></svg>")}
.cr-g-H{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003566' stroke-width='2' stroke-linejoin='round'><path d='M3 12l9-8 9 8'/><path d='M6 10v10h12V10'/><path d='M10 20v-6h4v6'/></svg>")}
.cr-g-M{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003566' stroke-width='2'><rect x='7' y='2' width='10' height='20' rx='2'/><path d='M11 18h2' stroke-linecap='round'/></svg>")}
.cr-g-S{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003566' stroke-width='2'><circle cx='12' cy='12' r='7'/><circle cx='12' cy='12' r='2.5' fill='%23003566'/></svg>")}
.cr-g-B{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c75000' stroke-width='2' stroke-linecap='round'><path d='M9 22l3-18 3 18'/><path d='M10.2 15h3.6M9.4 19h5.2M11 10h2'/><path d='M4 8c2-3 5-4 8-4s6 1 8 4'/></svg>")}
.cr-g-KP{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c75000' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='10'/><path d='M12 19V9M12 9l-4-4M12 9l4-4'/></svg>")}
.cr-g-CENTRALE_OB,.cr-g-CENTRALE{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c75000' stroke-width='2' stroke-linejoin='round'><path d='M13 2L5 14h6l-1 8 9-13h-6z'/></svg>")}

/* ─── les points sur la carte : glyphe + nom, en px d'écran ─────────────── */
.cr-pt{background:transparent;border:0}
.cr-pt .cr-pt-corps{display:flex;align-items:center;gap:4px;transform:translate(-13px,-13px);white-space:nowrap;pointer-events:auto}
.cr-pt .cr-g{width:26px;height:26px;background-color:rgba(255,255,255,.92);border:2px solid var(--blue);border-radius:50%;padding:2px;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.cr-pt .cr-pt-nom{font-size:.8rem;font-weight:700;color:#fff;text-shadow:0 0 3px #000,0 0 3px #000,1px 1px 1px #000}
.cr-pt-officiel .cr-g{border-color:#c75000}
.cr-pt-officiel .cr-pt-nom{color:#ffd35a}
.cr-pt-ancre .cr-g{border-color:#c75000;box-shadow:0 0 0 3px rgba(199,80,0,.35)}
.cr-pt-sel .cr-g{outline:3px solid #ffd35a}
.cr-pt-fautif .cr-g{border-color:var(--fautif);box-shadow:0 0 0 4px rgba(255,45,149,.45)}

/* ─── lot 5 : le badge de directivité, en coin du glyphe, px fixes (item 7) ──
   [154] : omni = « lollipop à guillemets » (un rayon de couverture), directionnel
   = parabole (une longueur de lien). Le glyphe de lettre garde sa place ; le
   badge dit ce qui est MONTÉ, d'après `directivite` rendue par le serveur. */
.cr-pt .cr-pt-glyphe{position:relative;display:inline-block;flex:none}
.cr-badge{position:absolute;right:-6px;bottom:-6px;width:14px;height:14px;border-radius:50%;background:#fff;border:1.5px solid var(--blue);background-repeat:no-repeat;background-position:center;background-size:10px 10px;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.cr-badge-omni{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23003566' stroke-width='2.2' stroke-linecap='round'><path d='M10 19V9'/><circle cx='10' cy='6' r='3.5' fill='%23003566' stroke='none'/><path d='M3 4.5v3M16.5 4.5v3M1.5 4.5v3M18.5 4.5v3' stroke-width='1.6'/></svg>")}
.cr-badge-dir{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23003566' stroke-width='2.2' stroke-linecap='round'><path d='M3 8a8 8 0 0 0 9 9'/><path d='M3 8l9 9'/><path d='M8 13l3-3'/><circle cx='12' cy='8' r='1.6' fill='%23003566' stroke='none'/></svg>")}
.cr-g-i{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin-right:3px;border-radius:50%;border:1px solid var(--blue);background:#fff no-repeat center/10px 10px}
.cr-g-i.cr-badge-omni,.cr-g-i.cr-badge-dir{position:static;box-shadow:none}

/* ─── lot 5 : les quatre états d'un poste ([155]) — une pastille chacun.
   ⛔ JAMAIS vert / orange / rouge : ces trois couleurs sont celles des liaisons. */
:root{--etat-prevu:#7a8699;--etat-pose:#1565c0;--etat-en_panne:#6a1b9a;--etat-maintenance_demandee:#00838f}
.cr-etat{position:absolute;left:-5px;top:-5px;width:11px;height:11px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.5)}
.cr-etat-prevu{background:var(--etat-prevu)}
.cr-etat-pose{background:var(--etat-pose)}
.cr-etat-en_panne{background:var(--etat-en_panne)}
.cr-etat-maintenance_demandee{background:var(--etat-maintenance_demandee)}
.cr-pastille{display:inline-block;width:11px;height:11px;border-radius:50%;vertical-align:-1px;margin-right:4px;border:1px solid rgba(0,0,0,.25)}

/* ─── les liaisons (item 7) : la couleur vient du serveur, jamais d'ici ─── */
.cr-lien{stroke-width:4;stroke-opacity:.95;stroke-linecap:round;cursor:pointer}
.cr-lien-vert{stroke:var(--vert)}
.cr-lien-orange{stroke:var(--orange)}
.cr-lien-rouge{stroke:var(--rouge)}
.cr-lien-inconnu{stroke:var(--inconnu);stroke-dasharray:6 8}      /* ⛔ jamais vert */
.cr-lien-brouillon{stroke:var(--brouillon);stroke-width:2.5;stroke-dasharray:2 6}
.cr-lien-officiel{stroke-width:5}
.cr-lien-fautif{stroke:var(--fautif)!important;stroke-width:7;stroke-dasharray:none}
.leaflet-tooltip.cr-dist{background:rgba(255,255,255,.92);border:1px solid var(--line);color:var(--ink);font-size:.72rem;font-weight:700;padding:1px 5px;border-radius:4px;box-shadow:none}
.leaflet-tooltip.cr-dist::before{display:none}
.cr-dist-vert{border-color:var(--vert)!important;color:var(--vert)!important}
.cr-dist-orange{border-color:var(--orange)!important;color:#9a5b00!important}
.cr-dist-rouge{border-color:var(--rouge)!important;color:var(--rouge)!important}
.cr-dist-inconnu{border-color:var(--inconnu)!important;color:var(--inconnu)!important;border-style:dashed!important}
.cr-dist-brouillon{border-color:var(--brouillon)!important;color:var(--brouillon)!important;border-style:dotted!important}

/* ─── le fond : localités, communes, routes ─────────────────────────────── */
.cr-nom-loc{background:transparent;border:0}
.cr-nom-loc span{display:block;white-space:nowrap;transform:translate(-50%,-150%);font-size:.78rem;color:#fff;text-shadow:0 0 3px #000,1px 1px 1px #000;pointer-events:none}
.cr-nom-loc.cr-nom-ville span{color:#ffd84d;font-weight:700;font-size:.9rem}
.cr-nom-loc.cr-nom-hameau span{color:#d1d5db;font-size:.72rem}

/* ─── ce que la carte dit, la question, la fiche ───────────────────────── */
.cr-dit{margin:0;max-width:min(520px,calc(100vw - 20px));background:rgba(255,255,255,.94);border-left:4px solid var(--blue);border-radius:6px;padding:6px 10px;font-size:.82rem;box-shadow:var(--shadow)}
.cr-dit:empty{display:none}
.cr-dit.cr-refus{border-left-color:var(--rouge);background:#fff4f0}
.cr-dit.cr-ok{border-left-color:var(--vert)}

.cr-question{left:50%;top:70px;transform:translateX(-50%);width:min(360px,calc(100vw - 20px));background:#fff;border:1px solid var(--blue);border-radius:8px;padding:10px 12px;box-shadow:var(--shadow);z-index:1300}
.cr-question p{margin:0 0 8px;font-size:.9rem}

.cr-fiche{right:10px;bottom:24px;width:min(340px,calc(100vw - 20px));background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:8px;padding:10px 12px;box-shadow:var(--shadow);font-size:.84rem;z-index:1200;max-height:calc(100vh - 220px);overflow-y:auto}
.cr-fiche-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.cr-fiche-tete strong{font-size:.95rem;color:var(--blue)}
.cr-coord{margin:0 0 6px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:.76rem}
.cr-champ{display:block;margin-top:8px;font-size:.72rem;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.04em}
.cr-fiche input,.cr-fiche select{width:100%;border:1px solid #c9cdd1;border-radius:6px;padding:6px 8px;background:#fff;margin-top:3px}
.cr-fiche .cr-barre{margin-top:10px;max-width:none}
.cr-note{margin:8px 0 0;color:var(--muted);font-size:.76rem}
.cr-manque{border-color:var(--orange)!important;background:#fff8ee!important}

/* ─── le tiroir ─────────────────────────────────────────────────────────── */
.cr-tiroir{position:absolute;top:0;right:0;bottom:0;width:min(380px,100vw);background:#fff;border-left:1px solid var(--line);box-shadow:-4px 0 18px rgba(0,0,0,.18);z-index:1400;display:flex;flex-direction:column}
/* ⚠️ `display:flex` l'emporte sur le `hidden` du navigateur : on le redit */
.cr-tiroir[hidden],.cr-fiche[hidden],.cr-question[hidden]{display:none}
.cr-tiroir-tete{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--blue);color:#fff}
.cr-tiroir-tete .cr-b{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.cr-tiroir-corps{overflow-y:auto;padding:10px 12px}
.cr-bloc{border:1px solid var(--line);border-radius:8px;padding:10px;margin-bottom:10px;background:#fafafa}
.cr-bloc h3{margin:0 0 4px;font:700 .95rem Georgia,serif;color:var(--blue)}
.cr-bloc .cr-barre{margin-top:8px;max-width:none}
.cr-liste,.cr-couches,.cr-legende{list-style:none;margin:6px 0 0;padding:0;font-size:.82rem}
.cr-liste li{display:flex;align-items:center;gap:6px;padding:4px 6px;border-radius:4px;cursor:pointer}
.cr-liste li:hover{background:#eef3f7}
.cr-liste li .cr-g{width:18px;height:18px}
.cr-liste li small{color:var(--muted);margin-left:auto}
.cr-vide{color:var(--muted);font-style:italic;font-size:.8rem;margin:6px 0 0}
.cr-couches label{display:flex;align-items:center;gap:6px;padding:3px 0;cursor:pointer}
.cr-couches .cr-poids{margin-left:auto;color:var(--muted);font-size:.72rem}
.cr-legende li{display:flex;align-items:center;gap:8px;padding:2px 0}
.cr-l{display:inline-block;width:26px;height:0;border-top:4px solid}
.cr-l-vert{border-color:var(--vert)}.cr-l-orange{border-color:var(--orange)}.cr-l-rouge{border-color:var(--rouge)}
.cr-l-inconnu{border-color:var(--inconnu);border-top-style:dashed}
.cr-l-brouillon{border-color:var(--brouillon);border-top-style:dotted;border-top-width:3px}

/* ─── au téléphone (contrôle 2 : aucun débordement horizontal) ──────────── */
@media(max-width:560px){
  .leaflet-top.leaflet-left .leaflet-control-zoom{display:none}   /* on pince pour zoomer */
  .cr-flot-hg{left:10px;top:10px}
  .cr-barre{max-width:calc(100vw - 20px - 70px)}
  .cr-geste{max-width:130px}
  .cr-palette{width:58px;padding:4px}
  .cr-palette-titre{display:none}
  .cr-pal span{display:none}
  .cr-pal{justify-content:center;min-height:44px}
  .cr-fiche{left:10px;right:10px;bottom:10px;width:auto;max-height:46vh}
  .cr-flot-bg{bottom:10px;right:10px;max-width:none}
  body.cr-fiche-ouverte .cr-dit{bottom:calc(46vh + 16px)}
}

/* ═══ Lot 12 — la carte se range (Yannick, 2026-11-07, 08h33–08h41) ═══════════
   UNE ligne en haut : à gauche « Carte du pays » + la roue ⚙ ; au centre l'état ;
   à droite « Couches et points », et la palette juste dessous. Les trois éléments
   de la ligne ont LA MÊME HAUTEUR (44 px : une cible au doigt). À gauche, sous la
   ligne : + / − puis les fonds de carte. Le conteneur laisse passer les clics :
   la carte est libre partout ailleurs. */
:root{--haut:44px}
.cr-haut{position:absolute;top:10px;left:10px;right:10px;z-index:1000;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:8px;pointer-events:none}
.cr-haut>*{pointer-events:auto}
.cr-haut-g{display:flex;align-items:flex-start;gap:6px;justify-self:start;min-width:0}
.cr-haut-c{display:flex;align-items:center;gap:6px;justify-self:center;min-width:0;flex-wrap:wrap;justify-content:center}
.cr-haut-d{display:flex;flex-direction:column;align-items:flex-end;gap:6px;justify-self:end}
.cr-haut .cr-b,.cr-haut .cr-session{height:var(--haut);display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
#cr-tiroir-b{gap:6px}
.cr-haut [hidden]{display:none!important}   /* `display:inline-flex` ne doit pas l'emporter sur `hidden` */
/* « Carte du pays » (lot 9) garde sa phrase, posée SOUS le bouton sans élargir la boîte :
   la roue reste collée au bouton */
.cr-haut-g>.cr-geste{position:relative;max-width:none}
.cr-haut-g>.cr-geste small{position:absolute;top:100%;left:0;margin-top:3px;width:max-content;max-width:190px}
.cr-session{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(560px,40vw);padding:0 12px;font-size:.84rem}
.cr-session .cr-court{display:none}
.cr-haut-d .cr-palette{position:static}
/* + / − puis les fonds de carte, sous la ligne du haut (la phrase de « Carte du pays » comprise) */
.leaflet-top.leaflet-left{top:84px}
.leaflet-top.leaflet-left .leaflet-control-layers{margin-top:8px}

/* ─── la roue ⚙ et son menu, qui s'ouvre SOUS elle ─────────────────────── */
.cr-roue-boite{position:relative}
.cr-roue{width:var(--haut);font-size:1.25rem;padding:0}
.cr-roue[aria-expanded=true]{background:#eef3f7}
.cr-menu{position:absolute;top:calc(var(--haut) + 6px);left:0;z-index:1500;display:flex;flex-direction:column;gap:10px;min-width:250px;max-width:calc(100vw - 20px);background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px;box-shadow:var(--shadow)}
.cr-menu[hidden]{display:none}
.cr-menu .cr-geste{max-width:none}
.cr-menu .cr-geste small{background:transparent;padding:0;font-size:.72rem}
.cr-menu .cr-b{min-height:44px;width:100%;text-align:left}

/* ─── le menu contextuel (clic droit / appui long) ────────────────────── */
.cr-ctx{position:absolute;z-index:1600;display:flex;flex-direction:column;min-width:190px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:4px;box-shadow:var(--shadow)}
.cr-ctx[hidden]{display:none}
.cr-ctx button{min-height:44px;border:0;background:transparent;text-align:left;padding:8px 12px;border-radius:6px;font-weight:700;color:var(--blue);cursor:pointer}
.cr-ctx button:hover,.cr-ctx button:focus{background:#eef3f7}

/* ─── relier : le liseré dit « Touchez la station à relier » ──────────── */
.cr-carte.cr-relie{cursor:crosshair;box-shadow:inset 0 0 0 4px #ffd35a}
.cr-dit.cr-relier{border-left-color:#ffd35a;background:#fffbea}
/* ─── délier : une petite croix au milieu du lien choisi ───────────────── */
.cr-croix-m{background:transparent;border:0}
.cr-lien-prise{stroke:transparent;pointer-events:stroke;cursor:pointer}
.cr-croix{display:flex;align-items:center;justify-content:center;width:28px;height:28px;transform:translate(-14px,-14px);border-radius:50%;border:2px solid #fff;background:var(--rouge);color:#fff;font:700 18px/1 system-ui,sans-serif;box-shadow:0 1px 5px rgba(0,0,0,.5);cursor:pointer;padding:0}
.cr-question{top:110px}

@media(max-width:560px){
  /* au téléphone : une rangée souple — l'état prend la place qui reste, au milieu, sans chevaucher */
  .cr-haut{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}
  .cr-haut-c{flex:1 1 auto;min-width:0}
  .cr-haut-c .cr-session{max-width:100%}
  .cr-haut-g>.cr-geste small{max-width:118px}
  .cr-session .cr-long{display:none}
  .cr-session .cr-court{display:inline}
  .cr-session{padding:0 8px;font-size:.78rem}
  .cr-haut-d .cr-long{display:none}
  #cr-tiroir-b{width:var(--haut);padding:0;font-size:1.1rem}
  .leaflet-top.leaflet-left{top:96px}
}

/* Lot 03 du palier privé (2026-11-09) — la barre d'état ne recouvre plus la carte.
   La barre (lot de la barre, 8-11, js/barre.js) est en flux, collée en haut de la page ; `.cr-plein`, en
   `position:fixed; inset:0`, passait DESSOUS : « Carte du pays », la roue, l'état et « Couches et points »
   étaient sous la barre, sans clic possible (relevé en ligne le 9-11 : barre 0–61 px, ligne de la carte 10–54 px).
   Quand la barre est là, la page devient une colonne : la barre, puis la carte dans la place qui reste.
   Dans l'application (cadre), la barre ne se pose pas : rien ne change. */
body:has(> #r2-barre){display:flex;flex-direction:column;height:100dvh;overflow:hidden}
body:has(> #r2-barre) > .cr-plein{position:relative;inset:auto;flex:1 1 auto;min-height:0}
