/* Hexagone Météo — radar v2. Fond blanc, code couleur du site. */
:root {
  --encre: #0a1e2b; --encre-2: #4a5a66; --fond: #ffffff; --verre: rgba(255,255,255,.95);
  --bleu: #0b5ccf; --petrole: #0e789b; --vert: #10936a; --or: #e9a029; --rouge: #e5262c;
  --ombre: 0 4px 16px rgba(10,30,43,.16); --ombre-forte: 0 10px 30px rgba(10,30,43,.24);
  --haut: env(safe-area-inset-top, 0px); --basz: env(safe-area-inset-bottom, 0px);
  --g: max(10px, env(safe-area-inset-left, 0px)); --d: max(10px, env(safe-area-inset-right, 0px));
  --actif: linear-gradient(160deg, #0f7f8f, #10936a);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--fond); color: var(--encre);
  font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
#ecrans { position: fixed; inset: 0; display: grid; grid-template: 1fr / 1fr; gap: 3px; background: #c9d2d9; }
.panneau { position: relative; min-width: 0; min-height: 0; background: #f2f4f6; }
body.partage-2 #ecrans { grid-template: 1fr 1fr / 1fr; }
body.partage-3 #ecrans { grid-template: 1.15fr 1fr / 1fr 1fr; }
body.partage-3 #carte { grid-column: 1 / span 2; }
@media (min-width: 900px) and (min-aspect-ratio: 4/3) { body.partage-2 #ecrans { grid-template: 1fr / 1fr 1fr; } body.partage-3 #ecrans { grid-template: 1fr / 1fr 1fr 1fr; } body.partage-3 #carte { grid-column: auto; } }
.pilule-panneau { position: absolute; left: 8px; top: 8px; z-index: 3; height: 32px; border: 0; border-radius: 999px; padding: 0 10px; display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(10,30,43,.2); font-weight: 800; font-size: 12.5px; color: var(--bleu); }
#carte > .pilule-panneau { top: calc(var(--haut) + 62px); }
.pilule-panneau .max { font-weight: 700; color: #c41d23; font-size: 11px; }
.croix { position: absolute; z-index: 2; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; }
.croix::before, .croix::after { content: ""; position: absolute; background: #0a1e2b; box-shadow: 0 0 0 1.5px #fff; }
.croix::before { left: 12px; top: 0; width: 2px; height: 26px; } .croix::after { top: 12px; left: 0; height: 2px; width: 26px; }
body.partage-2 .puces, body.partage-3 .puces, body.partage-2 .dock, body.partage-3 .dock, body.partage-2 .chezmoi, body.partage-3 .chezmoi, body.partage-2 .recherche, body.partage-3 .recherche { display: none !important; }
.partage-ctl { display: flex; gap: 3px; padding: 3px; border-radius: 14px; height: 44px; align-items: center; margin-left: auto; }
.partage-ctl button { height: 38px; min-width: 40px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; }
.partage-ctl button[aria-pressed="true"] { background: var(--encre); color: #fff; }
#btn-ecrans { position: relative; margin-left: 0; }
#btn-ecrans .cadenas { position: absolute; right: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #f6c76a; display: flex; align-items: center; justify-content: center; }
#btn-ecrans[aria-pressed="true"] .cadenas { display: none; }
.toast { position: fixed; left: 50%; top: calc(var(--haut) + 64px); width: max-content; transform: translateX(-50%); z-index: 30; background: #0e2a3a; color: #fff; border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--ombre-forte); max-width: calc(100vw - 32px); }
.toast b { color: #f6c76a; }
.cadenas-mini { display: inline-flex; width: 14px; height: 14px; border-radius: 50%; background: #f6c76a; align-items: center; justify-content: center; flex: none; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right { bottom: auto; top: calc(var(--haut) + 228px); right: calc(var(--d) - 4px); }
.verre { background: var(--verre); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--ombre); }
@media (prefers-reduced-transparency: reduce) { .verre { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Haut */
.haut { position: fixed; left: var(--g); right: var(--d); top: calc(var(--haut) + 10px); display: flex; gap: 8px; align-items: center; z-index: 5; pointer-events: none; }
.haut > * { pointer-events: auto; }
.bouton-carre { width: 44px; height: 44px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; color: var(--encre); transition: transform .12s; }
.bouton-carre:active, .pilule:active, .usage:active, .play:active { transform: scale(.94); }
.bouton-carre.bleu { color: var(--bleu); }
.bouton-carre[aria-pressed="true"] { background: var(--encre); color: #fff; }
.recherche { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 14px; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-align: left; }
.recherche #lieu-nom { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lieu-info { margin-left: auto; font-size: 13px; color: var(--encre-2); white-space: nowrap; }
.pro-bouton-ancien { height: 44px; border: 0; border-radius: 14px; padding: 0 12px; font-weight: 800; font-size: 13px; letter-spacing: .05em; background: var(--verre); color: var(--encre-2); box-shadow: var(--ombre); flex: none; }
.pro-bouton[aria-pressed="true"] { background: #0e2a3a; color: #f6c76a; }

.rail { position: fixed; right: var(--d); top: calc(var(--haut) + 64px); display: flex; flex-direction: column; gap: 8px; z-index: 4; }

/* Chez moi */
.chezmoi { position: fixed; left: var(--g); right: calc(var(--d) + 54px); top: calc(var(--haut) + 64px); border-radius: 16px; padding: 10px 12px; z-index: 4; display: flex; gap: 10px; align-items: center; max-width: 460px; }
.chezmoi .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.chezmoi b { display: block; font-size: 14.5px; }
.chezmoi span { font-size: 12.5px; color: var(--encre-2); }

/* Bas : une seule carte compacte + rangée de cartes (puces) + usages */
.bas { position: fixed; left: var(--g); right: var(--d); bottom: calc(var(--basz) + 8px); display: flex; flex-direction: column; gap: 6px; z-index: 5; max-width: 560px; pointer-events: none; }
.bas > * { pointer-events: auto; }
.puces { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; transition: opacity .25s, transform .25s; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.puces::-webkit-scrollbar { display: none; }
.puce { flex: none; height: 34px; border: 0; border-radius: 999px; padding: 0 12px; display: flex; align-items: center; gap: 6px; background: var(--verre); box-shadow: 0 2px 10px rgba(10,30,43,.16); font-weight: 700; font-size: 13px; white-space: nowrap; transition: transform .12s, background .15s; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.puce:active { transform: scale(.95); }
.puce[aria-selected="true"] { background: var(--bleu); color: #fff; }
.puce[aria-selected="true"] .badge-uhd { background: #fff; }
.puce .pro { font-size: 9px; font-weight: 800; color: #7a4f05; background: rgba(233,160,41,.2); border-radius: 4px; padding: 1px 4px; }
.puce.plus { background: rgba(255,255,255,.8); color: var(--encre-2); padding: 0 11px; }
.puces.surgit .puce { animation: surgit .35s cubic-bezier(.2,.9,.3,1.3) both; }
.puces.surgit .puce:nth-child(2) { animation-delay: .04s; } .puces.surgit .puce:nth-child(3) { animation-delay: .08s; } .puces.surgit .puce:nth-child(4) { animation-delay: .12s; } .puces.surgit .puce:nth-child(n+5) { animation-delay: .16s; }
@keyframes surgit { from { opacity: 0; transform: translateY(8px) scale(.94); } }
body.en-lecture .puces { opacity: 0; transform: translateY(6px); pointer-events: none; }
/* Sélecteur central : une seule pastille, la liste s'ouvre au-dessus */
.selecteur-zone { display: flex; justify-content: center; transition: opacity .25s, transform .25s; }
.selecteur { height: 40px; border: 0; border-radius: 999px; padding: 0 8px 0 14px; display: flex; align-items: center; gap: 8px; max-width: 100%; font-weight: 800; font-size: 14.5px; color: var(--encre); transition: transform .12s; }
.selecteur:active { transform: scale(.96); }
.selecteur .nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selecteur .compte { display: flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px 0 10px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; flex: none; }
.selecteur[aria-expanded="true"] .compte svg { transform: rotate(180deg); }
.selecteur-zone.pulse .selecteur { animation: pulse .9s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(11,92,207,.45), var(--ombre); } 100% { box-shadow: 0 0 0 14px rgba(11,92,207,0), var(--ombre); } }
.voile-menu { position: fixed; inset: 0; z-index: 6; background: rgba(10,30,43,.18); }
.menu-cartes { position: fixed; left: var(--g); right: var(--d); z-index: 7; border-radius: 20px; padding: 6px; max-height: 58vh; overflow: auto; overscroll-behavior: contain; max-width: 520px; margin: 0 auto; box-shadow: var(--ombre-forte); transform-origin: 50% 100%; animation: menu-ouvre .18s cubic-bezier(.2,.8,.2,1); }
@keyframes menu-ouvre { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.menu-cartes .titre { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px 6px; }
.menu-cartes .titre b { font-size: 16px; } .menu-cartes .titre span { font-size: 12px; color: var(--encre-2); }
.menu-cartes .ligne { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; text-align: left; }
.menu-cartes .ligne[aria-selected="true"] { background: rgba(11,92,207,.08); }
.menu-cartes .ligne:active { background: rgba(14,42,58,.07); }
.menu-cartes .ligne .vign { width: 40px; height: 30px; border-radius: 8px; flex: none; display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; }
.menu-cartes .ligne .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-cartes .ligne .t b { font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.menu-cartes .ligne .t span { font-size: 12px; color: var(--encre-2); }
.menu-cartes .ligne .t .uhd-ligne { color: var(--rouge); font-weight: 800; font-size: 11px; }
.menu-cartes .coche { width: 22px; flex: none; color: var(--vert); }
.menu-cartes .pied { display: block; padding: 10px; margin-top: 4px; border-top: 1px solid rgba(14,42,58,.08); font-size: 12.5px; font-weight: 700; color: var(--bleu); text-decoration: none; }
.badge-uhd { display: inline-flex; align-items: center; height: 16px; padding: 0 4px; border-radius: 4px; background: #fff; border: 1.5px solid var(--rouge); color: var(--rouge); font-size: 9.5px; font-weight: 900; letter-spacing: .05em; line-height: 1; flex: none; }
.badge-uhd.hd { border-color: #0e2a3a; color: #0e2a3a; }

.lecteur { border-radius: 20px; padding: 8px 10px 6px; display: flex; flex-direction: column; gap: 4px; }
.lecteur-ligne { display: flex; align-items: center; gap: 8px; }
.play { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--petrole); display: flex; align-items: center; justify-content: center; flex: none; transition: transform .12s; }
.play:active, .direct:active, .usage:active, .heure-btn:active { transform: scale(.94); }
.heure-btn { border: 0; background: transparent; padding: 0 2px; display: flex; flex-direction: column; align-items: flex-start; flex: none; min-width: 54px; transition: transform .12s; }
.heure { font-weight: 800; font-size: 18px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.statut { display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--encre-2); white-space: nowrap; }
.statut i { width: 6px; height: 6px; border-radius: 50%; background: #9fb3c1; display: inline-block; }
.statut.en-direct { color: #0f7a45; } .statut.en-direct i { background: #12a150; }
.statut.vieux { color: #b45309; } .statut.vieux i { background: #e9a029; }
.direct { height: 36px; border-radius: 999px; border: 1.5px solid rgba(14,42,58,.2); background: transparent; font-weight: 800; font-size: 12px; padding: 0 9px; display: flex; align-items: center; gap: 5px; flex: none; transition: transform .12s; }
.direct .point { width: 7px; height: 7px; border-radius: 50%; background: #9fb3c1; }
.direct[aria-pressed="true"] { border-color: var(--rouge); background: rgba(229,38,44,.07); color: #c41d23; }
.direct[aria-pressed="true"] .point { background: var(--rouge); animation: pouls 1.6s infinite; }
@keyframes pouls { 50% { opacity: .35; } }
.piste { position: relative; height: 40px; flex: 1; min-width: 0; }
.piste-fond { position: absolute; left: 10px; right: 10px; top: 17px; height: 6px; border-radius: 3px; background: rgba(14,42,58,.10); overflow: hidden; }
.piste-dispo { position: absolute; inset: 0; background: rgba(11,92,207,.14); }
.piste-passe { position: absolute; left: 10px; top: 17px; height: 6px; border-radius: 3px; background: var(--bleu); width: 0; }
.piste input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.piste input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bleu); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.piste input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bleu); border: 3px solid #fff; }
.echelle-btn { border: 0; background: transparent; padding: 2px 2px 0; min-height: 36px; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; }
.echelle { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; padding-top: 13px; }
.echelle .vals.pos { position: relative; height: 12px; display: block; }
.echelle .vals.pos span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.echelle .vals.pos span:first-child:not(.centre) { transform: none; }
.echelle .vals.pos span.fin { transform: translateX(-100%); }
.repere { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: left .35s cubic-bezier(.2,.8,.2,1); }
.repere b { font-size: 9.5px; font-weight: 900; color: #c41d23; white-space: nowrap; line-height: 1; }
.repere i { width: 0; height: 0; border: 5px solid transparent; border-bottom: 0; border-top: 6px solid #c41d23; margin-top: 1px; }
.repere.vide b { color: #6b7b86; font-weight: 700; } .repere.vide i { display: none; }
.repere.bas b { color: #0f8a4b; } .repere.bas i { border-top-color: #0f8a4b; }
.echelle .cls span.vu { color: #0a1e2b; } .echelle .cls span.absent { opacity: .55; }
.echelle.complete .barre { height: 10px; }
.echelle.complete .vals.pos { height: 22px; }
.echelle.complete .vals.pos span:nth-child(even) { top: 11px; }
.ech-plus { font-size: 11px; font-weight: 700; color: var(--bleu); margin-top: 2px; }
.echelle .vals.egal span { flex: 1; text-align: center; }
.echelle .barre { box-shadow: inset 0 0 0 1px rgba(14,42,58,.10); }
.echelle .vals.pos span.debut { transform: none; }
.echelle-btn.ouvert { flex-direction: column; align-items: stretch; gap: 0; }
.echelle-btn.ouvert .finesse { order: -1; align-self: flex-end; margin-bottom: -10px; }
.echelle.complete .vals.pos span { font-size: 9px; }
.echelle .barre { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.echelle .barre i { flex: 1; }
.echelle .barre .groupe { flex: 1; display: flex; }
.echelle .vals { display: flex; justify-content: space-between; font-size: 9.5px; font-weight: 700; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.echelle .cls { display: flex; gap: 8px; font-size: 10.5px; font-weight: 700; color: #2b3a45; overflow: hidden; white-space: nowrap; }
.echelle .cls span { display: inline-flex; align-items: center; gap: 4px; }
.echelle .cls i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex: none; }
.finesse { font-size: 10.5px; font-weight: 800; color: var(--encre-2); white-space: nowrap; flex: none; display: flex; align-items: center; gap: 3px; }
.finesse.uhd { color: #c41d23; }
.finesse svg { opacity: .55; }

.dock { border-radius: 20px; padding: 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.usage { height: 48px; border: 0; border-radius: 15px; background: transparent; font-size: 10.5px; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 2px; transition: transform .12s, background .2s; color: var(--encre-2); }
.usage svg { width: 21px; height: 21px; }
.usage[aria-pressed="true"] { background: var(--actif); color: #fff; }

/* Échelle complète (dans une feuille) */
.ech-complete .barre { display: flex; height: 12px; border-radius: 3px; overflow: hidden; }
.ech-complete .barre i { flex: 1; }
.ech-complete .vals { display: flex; font-size: 10px; font-weight: 600; color: #2b3a45; margin-top: 2px; }
.ech-complete .vals span { flex: 1; white-space: nowrap; overflow: visible; }
.ech-complete .vals span:nth-child(even) { visibility: hidden; }
.ech-complete.dense .vals span:nth-child(even) { visibility: visible; }
.ech-liste { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.ech-liste span { display: flex; align-items: center; gap: 8px; }
.ech-liste i { width: 16px; height: 12px; border-radius: 3px; flex: none; }
.ech-note { font-size: 12.5px; color: var(--encre-2); margin-top: 12px; line-height: 1.4; }
.vitesses { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; background: rgba(14,42,58,.06); padding: 4px; border-radius: 12px; }
.vitesses button { height: 40px; border: 0; border-radius: 9px; background: transparent; font-weight: 800; }
.vitesses button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* Feuilles */
.voile { position: fixed; inset: 0; background: rgba(10,30,43,.32); z-index: 9; opacity: 0; transition: opacity .2s; }
.voile.ouvert { opacity: 1; }
.feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; max-height: min(82vh, 760px); overflow: auto; border-radius: 26px 26px 0 0; padding: 8px 16px calc(var(--basz) + 18px); transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--ombre-forte); overscroll-behavior: contain; margin: 0 auto; max-width: 640px; }
.feuille.ouvert { transform: none; }
.poignee { width: 40px; height: 5px; border-radius: 3px; background: rgba(14,42,58,.2); margin: 4px auto 10px; }
.f-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.f-titre b { font-size: 20px; }
.f-titre span { font-size: 13px; color: var(--encre-2); }
.choix { display: flex; flex-direction: column; gap: 8px; }
.choix button { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 2px solid transparent; background: rgba(14,42,58,.04); text-align: left; }
.choix button[aria-pressed="true"] { border-color: var(--vert); background: rgba(16,147,106,.07); }
.choix .vign { width: 58px; height: 44px; border-radius: 10px; flex: none; display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; }
.choix .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.choix .t b { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.choix .t span { font-size: 13px; color: var(--encre-2); }
.choix .pro { font-size: 10px; font-weight: 800; color: #7a4f05; background: rgba(233,160,41,.18); border-radius: 5px; padding: 1px 5px; }
.uhd-ligne { font-size: 11.5px; font-weight: 800; color: var(--rouge); letter-spacing: .02em; }
.section-titre { font-size: 12px; font-weight: 800; color: var(--encre-2); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }
.reglage { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(14,42,58,.08); }
.reglage label, .reglage > span { flex: 1; font-weight: 600; }
.reglage small { display: block; font-weight: 500; color: var(--encre-2); font-size: 12px; }
.reglage input[type=range] { width: 46%; accent-color: var(--bleu); }
.reglage select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(14,42,58,.2); background: #fff; }
.bascule { width: 50px; height: 30px; border-radius: 999px; border: 0; background: rgba(14,42,58,.18); position: relative; flex: none; transition: background .2s; }
.bascule::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .2s; }
.bascule[aria-pressed="true"] { background: var(--vert); }
.bascule[aria-pressed="true"]::after { transform: translateX(20px); }
.lien-classique { display: block; margin-top: 16px; padding: 12px; border-radius: 14px; background: rgba(14,42,58,.05); color: var(--encre); text-decoration: none; font-weight: 700; }
.lien-classique small { display: block; font-weight: 500; color: var(--encre-2); }
.champ-recherche { width: 100%; height: 46px; border-radius: 14px; border: 1.5px solid rgba(14,42,58,.18); padding: 0 14px; font: inherit; font-size: 16px; -webkit-user-select: text; user-select: text; }
.resultats { display: flex; flex-direction: column; margin-top: 8px; }
.resultats button { text-align: left; border: 0; background: transparent; padding: 12px 6px; border-bottom: 1px solid rgba(14,42,58,.07); font-weight: 600; }
.resultats small { color: var(--encre-2); font-weight: 500; }

/* Fiche d'orage */
.fiche-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fiche-tete .niv { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.fiche-tete b { font-size: 19px; }
.fiche-tete span { margin-left: auto; font-size: 12.5px; color: var(--encre-2); }
.grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.grille div { border-radius: 12px; background: rgba(14,42,58,.05); padding: 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.grille small { font-size: 10.5px; font-weight: 700; color: var(--encre-2); }
.grille b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche-texte { font-size: 13.5px; line-height: 1.45; margin: 10px 0 0; }
.mention { font-size: 11.5px; color: var(--encre-2); margin-top: 12px; }

/* Bulle de sonde */
.bulle { position: fixed; z-index: 6; transform: translate(-50%, calc(-100% - 14px)); background: #0e2a3a; color: #fff; border-radius: 12px; padding: 7px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; box-shadow: var(--ombre-forte); }
.bulle small { display: block; font-weight: 500; color: #c8d6df; font-size: 11px; }
.bulle::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #0e2a3a; }

/* Chargement */
.chargement { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .3s; }
.chargement.actif { opacity: 1; }
.chargement .barre { height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--bleu), transparent); animation: glisse 1s linear infinite; }
@keyframes glisse { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* Grands écrans : panneau à gauche */
@media (min-width: 900px) {
  /* écran de PC : tout est centré (en-tête, bandeau « chez moi », lecteur, raccourcis, feuilles) ; le rail reste à droite */
  .haut { left: calc(50% - 320px); right: auto; width: 640px; }
  .bas { left: calc(50% - 320px); right: auto; width: 640px; max-width: none; }
  .chezmoi { left: calc(50% - 270px); right: auto; width: 540px; max-width: none; }
  .feuille { left: calc(50% - 260px); right: auto; width: 520px; bottom: calc(var(--basz) + 10px); border-radius: 24px; max-height: calc(100vh - 100px); }
  .selecteur-zone { justify-content: center; }
  .rc-ic { height: 46px; } .rc-ic svg { width: 21px; height: 21px; } .rc-nom { font-size: 9.5px; letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.selecteur .pastille { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(14,42,58,.15); }

/* Pictogrammes des cartes */
.pict { position: relative; width: 44px; height: 44px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--c); background: #f1f4f7; background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.pict svg { width: 26px; height: 26px; }
.pict.petit { width: 26px; height: 26px; border-radius: 8px; }
.pict.petit svg { width: 17px; height: 17px; }
.pict-cadenas { position: absolute; right: -4px; top: -4px; width: 17px; height: 17px; border-radius: 50%; background: #f6c76a; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.pict.petit .pict-cadenas { width: 13px; height: 13px; right: -4px; top: -4px; border-width: 1.5px; }
.pict.petit .pict-cadenas svg { width: 7px; height: 7px; }
.choix .vign, .menu-cartes .ligne .vign { display: none; }
.menu-cartes .ligne .pict { width: 40px; height: 40px; }
.selecteur { padding-left: 7px; }
.pilule-panneau .pict.petit { width: 22px; height: 22px; margin-left: -4px; }

/* Outils */
.outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.outil { display: flex; align-items: center; gap: 10px; padding: 10px; min-height: 64px; border: 0; border-radius: 16px; background: rgba(14,42,58,.05); text-align: left; transition: transform .12s; }
.outil:active { transform: scale(.97); }
.outil-ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--bleu); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 1px 4px rgba(10,30,43,.1); }
.outil-ic svg { width: 22px; height: 22px; }
.outil b { display: block; font-size: 13.5px; } .outil small { display: block; font-size: 11.5px; color: var(--encre-2); line-height: 1.25; }

/* Relecture d'un orage */
.bouton-revoir { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin: 0 0 12px; border: 0; border-radius: 14px; background: var(--actif); color: #fff; font-weight: 800; font-size: 14.5px; }
.relecture { border-radius: 20px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.rel-tete { display: flex; align-items: center; gap: 8px; }
.rel-tete b { flex: 1; font-size: 14px; display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-tete .niv { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rel-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: rgba(14,42,58,.06); padding: 3px; border-radius: 11px; }
.rel-modes button { height: 34px; border: 0; border-radius: 8px; background: transparent; font-weight: 800; font-size: 12.5px; }
.rel-modes button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.rel-mesures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.rel-mesures div { display: flex; flex-direction: column; } .rel-mesures small { font-size: 10px; font-weight: 700; color: var(--encre-2); } .rel-mesures b { font-size: 14.5px; }
.rel-legende { display: flex; gap: 12px; font-size: 10.5px; font-weight: 700; }
.rel-moments { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rel-moments::-webkit-scrollbar { display: none; }
.rel-moments button { flex: none; height: 30px; border-radius: 999px; border: 1.5px solid rgba(14,42,58,.15); background: #fff; font-size: 11.5px; font-weight: 700; padding: 0 10px; white-space: nowrap; }
.rel-moments button.actif { border-color: var(--bleu); background: rgba(11,92,207,.08); }
body.en-relecture .selecteur-zone, body.en-relecture .dock, body.en-relecture .chezmoi { display: none !important; }
.menu-cartes .groupe-titre { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--encre-2); padding: 10px 10px 4px; }
/* Relecture : bandeau repliable (toucher le titre) */
#rel-titre { cursor: pointer; }
#rel-titre::after { content: ' ▾'; color: #6b7c88; font-weight: 600; }
.relecture.reduite #rel-titre::after { content: ' ▸'; }
.relecture.reduite #rel-graphe, .relecture.reduite .rel-legende, .relecture.reduite #rel-moments { display: none; }
.periodes button { font-size: 13.5px; }
.piste::before { content: attr(data-duree); position: absolute; left: 10px; top: 0; font-size: 10.5px; font-weight: 700; color: #6b7c88; pointer-events: none; }
.petit-texte { height: 34px; padding: 0 12px; border: 1px solid rgba(14,42,58,.18); border-radius: 10px; background: #fff; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--encre); cursor: pointer; }
.reglage select { max-width: 52%; }
/* Dessin : barre flottante sous l'en-tête */
.dessin-barre { position: fixed; z-index: 30; left: var(--g); right: var(--d); top: calc(var(--haut) + 66px); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 7px; max-width: 460px; margin: 0 auto; }
.db-outils { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.db-outils button { height: 40px; border: 0; border-radius: 10px; background: rgba(14,42,58,.05); color: var(--encre); display: grid; place-items: center; padding: 0; cursor: pointer; }
.db-outils button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.db-outils button[aria-pressed="true"] svg path[fill], .db-outils button[aria-pressed="true"] b { filter: brightness(1.6); }
.db-ligne { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.db-couleurs { display: flex; gap: 5px; flex-wrap: wrap; }
.db-couleurs[data-off] { opacity: .45; }
.db-couleurs button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(14,42,58,.25); padding: 0; cursor: pointer; }
.db-couleurs button[aria-pressed="true"] { outline: 3px solid var(--bleu); outline-offset: 1px; }
.db-ep { display: flex; gap: 3px; }
.db-ep button { width: 32px; height: 30px; border-radius: 8px; border: 0; background: rgba(14,42,58,.05); display: grid; place-items: center; cursor: pointer; }
.db-ep button i { display: block; width: 18px; background: var(--encre); border-radius: 3px; }
.db-ep button[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2px var(--bleu); }
.db-actions { display: flex; align-items: center; gap: 6px; }
.db-actions button { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(14,42,58,.15); background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--encre); cursor: pointer; display: grid; place-items: center; }
.db-actions .db-fort { background: var(--encre); color: #fff; border-color: var(--encre); }
.db-aide { flex: 1; min-width: 0; font-size: 12.5px; color: #4a5a66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-actions #db-fin { flex: 1; }
body.en-dessin #chezmoi { display: none; }
/* Cloche des alertes */
#btn-alertes { position: relative; flex: none; }
.pastille-alerte { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--rouge); color: #fff; font-size: 10.5px; font-weight: 800; line-height: 16px; text-align: center; }
.al-gratuit { font-style: normal; font-size: 11px; font-weight: 800; color: var(--vert); margin-left: 4px; }
.al-tag { font-size: 12px; font-weight: 700; color: #6b7c88; background: rgba(14,42,58,.06); padding: 4px 10px; border-radius: 10px; }
.al-bientot > span:first-child { opacity: .6; }
.al-tag { flex: none; }
.filtre-actif { margin-left: 5px; padding: 1px 5px; border-radius: 6px; background: #fef3c7; color: #b45309; font-size: 11px; font-weight: 800; }
/* Raccourcis passionnés : 3 paliers de 3 × 3 pictogrammes */
.raccourcis { border-radius: 20px; padding: 6px 6px 7px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 5px; }
.rc-sep { width: 1px; background: rgba(14,42,58,.16); margin: 4px 0; }
.rc-tete { display: flex; align-items: baseline; justify-content: center; gap: 4px; height: 15px; margin-bottom: 3px; white-space: nowrap; }
.rc-tete b { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.rc-tete small { font-size: 9.5px; font-weight: 700; color: #6b7c88; }
.rc-cad { align-self: center; }
.rc-libre .rc-tete b { color: #0e789b; }
.rc-passion .rc-tete b, .rc-passion .rc-tete small { color: #c81e1e; }
.rc-pro .rc-tete b { color: #8a5a00; }
.rc-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.rc-ic { aspect-ratio: 1; min-height: 34px; border: 0; border-radius: 10px; padding: 0; display: grid; place-items: center; cursor: pointer; -webkit-touch-callout: none; user-select: none; }
.rc-ic svg { width: 21px; height: 21px; }
.rc-libre .rc-ic { background: rgba(14,120,155,.08); color: #0e789b; }
.rc-passion .rc-ic { background: rgba(229,38,44,.07); color: #c81e1e; box-shadow: inset 0 0 0 1px rgba(229,38,44,.25); }
.rc-pro .rc-ic { background: rgba(233,160,41,.13); color: #8a5a00; }
.rc-ic[aria-pressed="true"] { background: var(--actif); color: #fff; box-shadow: 0 2px 8px rgba(15,127,143,.35); }
.rc-passion .rc-ic[aria-pressed="true"] { background: linear-gradient(160deg, #e5262c, #b4141a); box-shadow: 0 2px 8px rgba(229,38,44,.35); }
.rc-pro .rc-ic[aria-pressed="true"] { background: linear-gradient(160deg, #e9a029, #b8740a); box-shadow: 0 2px 8px rgba(233,160,41,.4); }
.rc-ic[data-ferme] { opacity: .45; }
/* noms sous les icônes et légende */
.raccourcis { position: relative; }
.rc-ic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; aspect-ratio: auto; height: 40px; }
.rc-ic svg { width: 18px; height: 18px; flex: none; }
.rc-nom { font-size: 8.4px; font-weight: 700; line-height: 1; letter-spacing: -.15px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: clip; padding: 0 1px; }
.rc-aide { position: absolute; top: 4px; right: 6px; width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #6b7c88; background: #fff; color: #4a5a66; font-size: 10.5px; font-weight: 800; line-height: 1; padding: 0; display: grid; place-items: center; cursor: pointer; }
.rc-aide::after { content: ''; position: absolute; inset: -12px; }
.rc-leg-titre small { font-weight: 600; text-transform: none; letter-spacing: 0; color: #6b7c88; margin-left: 4px; }
.rc-leg-titre.rc-libre { color: #0e789b; } .rc-leg-titre.rc-passion { color: #c81e1e; } .rc-leg-titre.rc-pro { color: #8a5a00; }
.rc-leg { display: flex; flex-direction: column; gap: 2px; }
.rc-leg-ligne { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border: 0; background: transparent; border-radius: 12px; text-align: left; font: inherit; color: var(--encre); cursor: pointer; }
.rc-leg-ligne[aria-pressed="true"] { background: rgba(11,92,207,.07); }
.rc-leg-ligne .rc-ic { width: 38px; height: 38px; flex: none; }
.rc-leg-ligne .rc-ic svg { width: 21px; height: 21px; }
.rc-leg-ligne .t { display: flex; flex-direction: column; min-width: 0; }
.rc-leg-ligne .t b { font-size: 14px; }
.rc-leg-ligne .t span { font-size: 12.5px; color: #4a5a66; }
.rc-nom { font-size: 7.9px; letter-spacing: -.3px; }
.rc-aide { position: relative; top: auto; right: auto; margin-left: 5px; align-self: center; }
.rc-aide { margin-left: 4px; width: 15px; height: 15px; font-size: 9.5px; border-width: 1.3px; }
.rc-tete { gap: 3px; }
.rc-tete small { font-size: 9px; }
.f-titre.rc-leg-titre.rc-libre b { color: #0e789b; } .f-titre.rc-leg-titre.rc-passion b { color: #c81e1e; } .f-titre.rc-leg-titre.rc-pro b { color: #8a5a00; }
.rc-leg-astuce { font-size: 12.5px; color: #6b7c88; }
/* Barre par palier : blocs de l'utilisateur + tuiles vitrines */
.raccourcis.palier-libre { grid-template-columns: 1fr auto 96px; }
.raccourcis.palier-passion { grid-template-columns: 1fr auto 1fr auto 82px; }
.raccourcis.palier-pro { grid-template-columns: 1fr auto 1fr auto 1fr; }
.rc-grille.rc-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rc-seul .rc-ic { height: 46px; }
.rc-seul .rc-ic svg { width: 21px; height: 21px; }
.rc-seul .rc-nom { font-size: 9.5px; letter-spacing: -.1px; }
.rc-vitrines { display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.rc-vitrine { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px dashed; padding: 5px 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; text-align: left; font: inherit; cursor: pointer; position: relative; overflow: hidden; }
.rc-vitrine.rc-passion { border-color: rgba(229,38,44,.45); background: rgba(229,38,44,.05); color: #c81e1e; }
.rc-vitrine.rc-pro { border-color: rgba(184,116,10,.5); background: rgba(233,160,41,.08); color: #8a5a00; }
.rc-v-tete { display: flex; align-items: center; gap: 3px; }
.rc-v-tete b { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.rc-v-txt { font-size: 9.5px; font-weight: 700; line-height: 1.15; color: #4a5a66; }
.rc-v-voir { font-size: 9.5px; font-weight: 800; }
.rc-vitrine.allumee { border-style: solid; animation: rc-pouls 1.6s ease-in-out infinite; }
.rc-vitrine.allumee .rc-v-txt { color: inherit; }
.rc-vitrine.rc-passion.allumee { background: linear-gradient(160deg, #fff1f1, #ffe0e0); box-shadow: 0 0 0 0 rgba(229,38,44,.45); }
.rc-vitrine.rc-pro.allumee { background: linear-gradient(160deg, #fff7e6, #ffeccc); box-shadow: 0 0 0 0 rgba(233,160,41,.5); }
@keyframes rc-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,38,44,0); } 50% { box-shadow: 0 0 0 4px rgba(229,38,44,.22); } }
.rc-vitrine.rc-pro.allumee { animation-name: rc-pouls-or; }
@keyframes rc-pouls-or { 0%, 100% { box-shadow: 0 0 0 0 rgba(233,160,41,0); } 50% { box-shadow: 0 0 0 4px rgba(233,160,41,.3); } }
@media (prefers-reduced-motion: reduce) { .rc-vitrine.allumee { animation: none; } }
.rc-alerte { border-radius: 14px; padding: 10px 12px; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 4px; }
.rc-alerte.rc-passion { background: #fff1f1; color: #9f1239; } .rc-alerte.rc-pro { background: #fff7e6; color: #7a4f05; }
.rc-alerte b { font-size: 15px; } .rc-alerte span { font-size: 13px; color: #374151; }
.rc-voir { align-self: flex-start; margin-top: 4px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; }
.rc-alerte.rc-passion .rc-voir { background: linear-gradient(160deg, #e5262c, #b4141a); } .rc-alerte.rc-pro .rc-voir { background: linear-gradient(160deg, #e9a029, #b8740a); }
/* Loupe des raccourcis : grande fiche lisible */
.loupe { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 6px; }
.loupe-tete { display: flex; align-items: center; gap: 14px; }
.loupe .loupe-ic { width: 64px; height: 64px; border-radius: 18px; flex: none; }
.loupe .loupe-ic svg { width: 36px; height: 36px; }
.loupe-nom { display: block; font-size: 22px; line-height: 1.2; font-weight: 800; }
.loupe-palier { display: block; font-size: 15px; font-weight: 700; margin-top: 3px; }
.loupe.rc-libre .loupe-palier { color: #0e789b; } .loupe.rc-passion .loupe-palier { color: #c81e1e; } .loupe.rc-pro .loupe-palier { color: #8a5a00; }
.loupe-desc { font-size: 18px; line-height: 1.4; margin: 0; font-weight: 600; }
.loupe-note { font-size: 16.5px; line-height: 1.45; margin: 0; color: #2b3a44; }
.loupe-finesse { font-size: 15px; margin: 0; color: #4a5a66; }
.loupe-finesse span { display: block; margin-top: 3px; }
.loupe-ok { height: 58px; border: 0; border-radius: 16px; font: inherit; font-size: 19px; font-weight: 800; color: #fff; background: var(--actif); cursor: pointer; }
.loupe.rc-passion .loupe-ok { background: linear-gradient(160deg, #e5262c, #b4141a); } .loupe.rc-pro .loupe-ok { background: linear-gradient(160deg, #e9a029, #b8740a); }
.loupe-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loupe-nav button { min-width: 0; flex: 1; height: 48px; border-radius: 14px; border: 1.5px solid rgba(14,42,58,.2); background: #fff; font: inherit; font-size: 16px; font-weight: 700; color: var(--encre); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loupe-nav button:disabled { opacity: .35; }
.loupe-nav span { flex: none; font-size: 14px; font-weight: 700; color: #6b7c88; }
.loupe-direct { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.35; color: #374151; }
.loupe-direct input { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.loupe-finesse .badge-uhd { display: inline-block; width: auto; vertical-align: middle; }
/* Packs (2e formule) : puces de thème + 6 grosses icônes lisibles */
.rc-packs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; }
.rc-packs button { height: 34px; border: 0; border-radius: 10px; background: rgba(233,160,41,.12); color: #7a4f05; font: inherit; font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 3px; padding: 0 2px; cursor: pointer; white-space: nowrap; overflow: hidden; }
.rc-packs button span { font-size: 14px; }
.rc-packs button[aria-selected="true"] { background: linear-gradient(160deg, #e9a029, #b8740a); color: #fff; box-shadow: 0 2px 8px rgba(233,160,41,.4); }
.raccourcis.mode-pack { grid-template-columns: 1fr; }
.rc-pack-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rc-ic.rc-gros { height: 58px; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 0 10px; background: rgba(233,160,41,.12); color: #7a4f05; }
.rc-ic.rc-gros svg { width: 26px; height: 26px; }
.rc-ic.rc-gros .rc-nom { font-size: 13.5px; font-weight: 800; letter-spacing: 0; white-space: normal; text-align: left; line-height: 1.15; }
.rc-ic.rc-gros[aria-pressed="true"] { background: linear-gradient(160deg, #e9a029, #b8740a); color: #fff; }
@media (max-width: 440px) { .rc-packs button span { display: none; } .rc-packs button { font-size: 12.5px; } }
.rc-leg-packs { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.rc-leg-pack { border-radius: 14px; background: #fff7e6; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.rc-leg-pack b { font-size: 16px; color: #7a4f05; } .rc-leg-pack > span { font-size: 14px; color: #374151; }
.rc-leg-pack-cartes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.rc-leg-pack-cartes button { border: 1px solid rgba(184,116,10,.35); background: #fff; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 13px; font-weight: 700; color: #7a4f05; cursor: pointer; }
.rc-ic.rc-gros { padding: 0 7px; gap: 6px; }
/* Pack de base gratuit, tuile « + Ajouter », Mon pack */
.raccourcis.mode-base { display: flex; flex-direction: column; gap: 6px; }
.rc-tete-base { justify-content: flex-start; padding-left: 4px; }
.rc-tete-base b { color: #0e789b; }
.mode-base .rc-ic.rc-gros { background: rgba(14,120,155,.09); color: #0e789b; }
.mode-base .rc-ic.rc-gros[aria-pressed="true"] { background: var(--actif); color: #fff; }
.rc-pack-grille { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rc-ic.rc-gros { flex-direction: column; justify-content: center; gap: 3px; padding: 4px 3px; height: 62px; }
.rc-ic.rc-gros .rc-nom { text-align: center; font-size: 11.5px; }
.rc-ic.rc-ajout { background: transparent !important; border: 1.5px dashed rgba(14,42,58,.3); color: #4a5a66 !important; }
.rc-plus { font-size: 24px; font-weight: 600; line-height: 1; }
.rc-vitrines-ligne { flex-direction: row; }
.rc-vitrines-ligne .rc-vitrine { min-height: 42px; flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.rc-packs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rc-packs button { font-size: 11px; }
.loupe-mon { height: 46px; border-radius: 14px; border: 1.5px solid rgba(184,116,10,.4); background: #fff7e6; color: #7a4f05; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
@media (min-width: 900px) { .rc-ic.rc-gros .rc-nom { font-size: 12.5px; } }
.rc-ic.rc-gros .rc-nom { font-size: 11px; letter-spacing: -.25px; overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (min-width: 900px) { .rc-ic.rc-gros .rc-nom { font-size: 12.5px; letter-spacing: 0; } }
/* PC : packs sur une seule rangée (6 cartes + Ajouter), vitrines et lecteur plus bas — la carte reste dégagée */
@media (min-width: 900px) {
  .bas { left: calc(50% - 400px); width: 800px; }
  .rc-pack-grille { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
  .rc-ic.rc-gros { height: 54px; flex-direction: column; justify-content: center; gap: 3px; padding: 0 4px; }
  .rc-ic.rc-gros svg { width: 22px; height: 22px; }
  .rc-ic.rc-gros .rc-nom { text-align: center; font-size: 12px; line-height: 1.1; }
  .rc-vitrines-ligne .rc-vitrine { min-height: 32px; padding: 3px 10px; }
  .raccourcis.mode-base { gap: 4px; }
  .rc-packs button { height: 30px; }
}

/* ===================== [ui-b] maquette favoris + catalogue ===================== */
body.ui-b #dock, body.ui-b #raccourcis, body.ui-b #puces { display: none !important; }
.fav-b { display: flex; gap: 6px; border-radius: 20px; padding: 6px; }
.fav-defile { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.fav-defile::-webkit-scrollbar { display: none; }
.fav { position: relative; flex: none; scroll-snap-align: center; min-width: 76px; height: 60px; padding: 6px 8px 5px; border: 0; border-radius: 15px; background: #eef3f6; color: var(--encre); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-weight: 800; font-size: 12px; line-height: 1.05; transition: transform .12s, background .2s; }
.fav span { white-space: nowrap; max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
.fav:active { transform: scale(.95); }
.fav.actif { background: var(--actif); color: #fff; box-shadow: 0 3px 10px rgba(16,147,106,.35); }
.fav.hors { outline: 2px dashed rgba(255,255,255,.7); outline-offset: -5px; }
.fav-toutes { background: var(--encre); color: #fff; min-width: 64px; }
.fav-cad { position: absolute; top: 4px; right: 5px; width: 9px; height: 9px; border-radius: 3px; background: var(--or); }
.catalogue-b { position: fixed; inset: 0; z-index: 25; background: #f4f7f9; overflow-y: auto; padding: 0 0 calc(var(--basz) + 20px); -webkit-overflow-scrolling: touch; }
.cat-tete { position: sticky; top: 0; z-index: 2; background: rgba(244,247,249,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: calc(var(--haut) + 12px) 14px 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid rgba(10,30,43,.08); }
.cat-titre b { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.cat-titre span { font-size: 13px; color: var(--encre-2); }
.cat-fermer { width: 44px; height: 44px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--ombre); font-size: 18px; font-weight: 800; color: var(--encre); }
.cat-cherche { grid-column: 1 / -1; height: 46px; border: 0; border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(10,30,43,.12); color: var(--encre); }
.cat-cherche:focus { outline: none; box-shadow: inset 0 0 0 2px var(--petrole); }
.cat-section { padding: 14px 14px 2px; }
.cat-section h3 { margin: 0 0 9px; font-size: 18px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.cat-section h3 small { font-size: 13px; font-weight: 600; color: var(--encre-2); }
.cat-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cat-tuile { background: #fff; border-radius: 16px; padding: 11px 11px 10px; box-shadow: 0 1px 4px rgba(10,30,43,.1); display: flex; flex-direction: column; gap: 4px; cursor: pointer; text-align: left; min-height: 128px; transition: transform .12s, box-shadow .2s; }
.cat-tuile:active { transform: scale(.98); }
.cat-tuile.actif { box-shadow: 0 0 0 2.5px var(--vert), 0 3px 10px rgba(16,147,106,.25); }
.cat-tuile.ferme .cat-nom, .cat-tuile.ferme .cat-desc { opacity: .72; }
.cat-haut { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: #fff; }
.cat-ic.pal-0 { background: linear-gradient(160deg, #1b6fd1, #0b5ccf); }
.cat-ic.pal-1 { background: linear-gradient(160deg, #e5262c, #b8161c); }
.cat-ic.pal-2 { background: linear-gradient(160deg, #e9a029, #c27d0b); }
.cat-etoile { width: 36px; height: 36px; margin: -4px -4px 0 0; border: 0; background: none; font-size: 22px; line-height: 1; color: #9aa7b0; }
.cat-etoile[aria-pressed="true"] { color: var(--or); }
.cat-nom { font-size: 15px; font-weight: 800; line-height: 1.2; margin-top: 3px; }
.cat-desc { font-size: 12.5px; line-height: 1.3; color: var(--encre-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-pied { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cat-prix { font-size: 11.5px; font-weight: 800; color: #7a4f05; background: #fff3dc; border-radius: 999px; padding: 2px 8px; }
.cat-ok { font-size: 11.5px; font-weight: 800; color: var(--vert); }
.cat-vide { padding: 30px 16px; text-align: center; color: var(--encre-2); }
.cat-mention { padding: 14px 16px 0; font-size: 12px; color: var(--encre-2); }
@media (min-width: 1000px) {
  body.ui-b .fav-b { display: none; }
  .catalogue-b { inset: calc(var(--haut) + 10px) auto 10px 10px; width: 380px; border-radius: 22px; box-shadow: var(--ombre-forte); background: rgba(244,247,249,.97); }
  .cat-tete { padding-top: 14px; border-radius: 22px 22px 0 0; }
  .cat-fermer { display: none; }
  .cat-tuile { min-height: 112px; }
  body.ui-b .haut { left: 410px; width: auto; right: 80px; }
  body.ui-b .bas { left: calc(50% - 400px + 200px); }
  body.ui-b .chezmoi { left: 410px; }
}
@media (min-width: 1000px) and (max-width: 1420px) { body.ui-b .bas { left: 410px; width: auto; right: 80px; max-width: 800px; } }

.cat-mes-favoris { background: linear-gradient(180deg, #fff6e0, rgba(255,246,224,0)); padding-bottom: 8px; }
.cat-mes-favoris h3 { color: #7a4f05; }

/* [incitation] bandeau sous la recherche */
.incite { position: fixed; left: var(--g); right: calc(var(--d) + 54px); top: calc(var(--haut) + 64px); z-index: 4; max-width: 460px; border-radius: 16px; padding: 9px 6px 9px 10px; display: flex; gap: 9px; align-items: center; box-shadow: 0 0 0 2px #e9a029, var(--ombre); }
.incite-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: linear-gradient(160deg, #f2b33d, #c27d0b); }
.incite-txt { flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; color: var(--encre); cursor: pointer; }
.incite-txt b { display: block; font-size: 14.5px; }
.incite-txt span { display: block; font-size: 12.5px; color: var(--encre-2); line-height: 1.3; }
.incite-txt em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 800; color: #7a4f05; background: #fff3dc; border-radius: 999px; padding: 2px 9px; }
.incite-x { width: 34px; height: 34px; flex: none; border: 0; background: none; font-size: 15px; color: var(--encre-2); align-self: flex-start; }
body.partage-2 .incite, body.partage-3 .incite { display: none !important; }
@media (min-width: 900px) { .incite { left: calc(50% - 320px); right: auto; width: 460px; } }
@media (min-width: 1000px) { body.ui-b .incite { left: 410px; } }

/* [configs-b] configurations nommées, éditeur */
.fav-gauche { display: flex; flex-direction: column; gap: 4px; flex: none; }
.fav-gauche .fav-toutes { height: 40px; min-width: 70px; flex-direction: row; gap: 5px; }
.fav-gauche .fav-toutes svg { width: 18px; height: 18px; }
.fav-config { height: 16px; min-width: 70px; max-width: 86px; border: 0; padding: 0 4px; border-radius: 6px; background: #fff3dc; color: #7a4f05; font: inherit; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 2px; overflow: hidden; }
.fav-config .cfg-nom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-cfg { border: 0; background: #fff3dc; color: #7a4f05; font: inherit; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.cat-modifier { margin-left: auto; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(10,30,43,.15); color: var(--encre); font: inherit; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 5px 11px; }
.cfg-liste { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 10px; }
.cfg-ligne { display: flex; gap: 8px; align-items: stretch; }
.cfg-choix { flex: 1; text-align: left; border: 0; border-radius: 14px; background: #eef3f6; padding: 10px 12px; font: inherit; color: var(--encre); }
.cfg-choix b { display: block; font-size: 15.5px; }
.cfg-choix span { font-size: 12.5px; color: var(--encre-2); }
.cfg-ligne.actif .cfg-choix { background: var(--actif); color: #fff; }
.cfg-ligne.actif .cfg-choix span { color: rgba(255,255,255,.85); }
.cfg-mod { border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(10,30,43,.14); font: inherit; font-weight: 800; padding: 0 12px; color: var(--encre); }
.cfg-nouvelle { width: 100%; height: 46px; border: 1.5px dashed rgba(10,30,43,.3); border-radius: 14px; background: none; font: inherit; font-weight: 800; color: var(--petrole); margin: 4px 0 8px; }
.cfg-compte { font-size: 12.5px; color: var(--encre-2); }
.ed-label { display: block; font-size: 13px; font-weight: 800; margin: 6px 0 10px; }
.ed-label input { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; height: 44px; border: 0; border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; box-shadow: inset 0 0 0 1.5px rgba(10,30,43,.15); }
.ed-visibles { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #eef3f6; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.ed-visibles small { display: block; font-size: 12px; color: var(--encre-2); font-weight: 500; }
.ed-pm { display: flex; align-items: center; gap: 10px; }
.ed-pm button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--ombre); font-size: 22px; font-weight: 800; color: var(--encre); }
.ed-pm b { font-size: 20px; min-width: 22px; text-align: center; }
.ed-liste { display: flex; flex-direction: column; gap: 6px; }
.ed-ligne { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 6px 6px 6px 4px; box-shadow: 0 1px 4px rgba(10,30,43,.12); touch-action: pan-y; }
.ed-ligne.cache { opacity: .62; }
.ed-ligne.glisse { box-shadow: var(--ombre-forte); z-index: 2; position: relative; }
.ed-poignee { width: 30px; text-align: center; font-size: 22px; color: #8a97a0; cursor: grab; touch-action: none; user-select: none; }
.ed-ic { width: 32px; height: 32px; border-radius: 9px; background: #eef3f6; display: flex; align-items: center; justify-content: center; flex: none; }
.ed-nom { flex: 1; font-weight: 800; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-ligne button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #eef3f6; font-size: 16px; font-weight: 800; color: var(--encre); flex: none; }
.ed-ligne button:disabled { opacity: .3; }
.ed-sep { font-size: 12px; font-weight: 800; color: #7a4f05; text-align: center; padding: 4px 0; border-top: 1.5px dashed #e9a029; margin-top: 4px; }
.ed-ouv { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 4px 0 12px; }
.ed-ouv input { width: 20px; height: 20px; }
.ed-actions { display: flex; justify-content: space-between; gap: 10px; }
.ed-suppr { border: 0; background: none; color: var(--rouge); font: inherit; font-weight: 800; }
.ed-ok { height: 46px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--actif); color: #fff; font: inherit; font-weight: 800; font-size: 15px; }

/* [appli] 24/10/2026 — démarrage, installation, hors connexion */
.demarrage { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #fff; color: var(--encre); transition: opacity .4s ease; animation: dem-filet .4s ease 8s forwards; }
.demarrage img { border-radius: 22px; box-shadow: var(--ombre); animation: dem-pouls 1.6s ease-in-out infinite; }
.demarrage b { font-size: 17px; letter-spacing: .01em; }
.demarrage i { width: 120px; height: 4px; border-radius: 4px; background: #e6edf2; overflow: hidden; position: relative; }
.demarrage i::after { content: ''; position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--actif); animation: dem-barre 1.1s ease-in-out infinite; }
.demarrage.fini { opacity: 0; pointer-events: none; }
@keyframes dem-pouls { 50% { transform: scale(1.05); } }
@keyframes dem-barre { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes dem-filet { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .demarrage img, .demarrage i::after { animation: none; } }
.installer { position: fixed; z-index: 60; left: var(--g); right: var(--d); bottom: calc(var(--basz) + 150px); max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; box-shadow: var(--ombre-forte);
  transform: translateY(20px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.installer.ouvert { transform: none; opacity: 1; }
.installer img { border-radius: 11px; flex-shrink: 0; }
.installer .inst-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.installer .inst-txt b { font-size: 15px; }
.installer .inst-txt span { font-size: 13px; color: var(--encre-2); line-height: 1.35; }
.installer .inst-txt svg { vertical-align: -2px; }
.installer .inst-oui { border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 800; color: #fff; background: var(--actif); flex-shrink: 0; }
.installer .inst-non { border: 0; background: none; width: 36px; height: 36px; font-size: 16px; color: var(--encre-2); flex-shrink: 0; }
.hors-ligne { position: fixed; z-index: 55; top: calc(var(--haut) + 62px); left: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px;
  background: #0a1e2b; color: #fff; font-size: 13px; font-weight: 700; box-shadow: var(--ombre); white-space: nowrap; }

/* [ergo-25oct] 25/10/2026 */
.voile { z-index: 39; }
.feuille { z-index: 40; }
.logo-hx { background: #fff; }
.bouton-rail { width: 52px; height: 52px; flex-direction: column; gap: 3px; border-radius: 15px; }
.bouton-rail span { font-size: 9.5px; font-weight: 800; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.bouton-rail[aria-pressed="true"] { background: var(--encre); color: #fff; }
.zoom-ctl { display: flex; flex-direction: column; border-radius: 15px; overflow: hidden; width: 52px; }
.zoom-ctl button { height: 42px; border: 0; background: none; color: var(--encre); display: flex; align-items: center; justify-content: center; }
.zoom-ctl button + button { border-top: 1px solid rgba(10,30,43,.1); }
.zoom-ctl button:active { background: rgba(10,30,43,.08); }
.chezmoi, .incite { right: calc(var(--d) + 62px); }
@media (max-height: 760px) { .bouton-rail { width: 44px; height: 44px; } .bouton-rail span { display: none; } .zoom-ctl { width: 44px; } .zoom-ctl button { height: 38px; } .rail { gap: 6px; } .chezmoi, .incite { right: calc(var(--d) + 54px); } }
@media (max-height: 640px) { .zoom-ctl { display: none; } }
.chezmoi .cm-pluie { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: #15803d; margin-top: 1px; }
/* PC : recherche de largeur fixe + pastilles « en direct » */
.direct-puces { display: none; }
@media (min-width: 1000px) {
  .recherche { flex: 0 1 360px; }
  .direct-puces:not([hidden]) { display: flex; gap: 8px; flex: 1; min-width: 0; overflow: hidden; }
  .dp-puce { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--verre); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--ombre); color: var(--encre); font-size: 13.5px; white-space: nowrap; cursor: pointer; }
  .dp-puce svg { color: var(--c); flex: none; }
  .dp-puce b { color: var(--c); font-weight: 900; }
  .dp-puce:hover { box-shadow: 0 0 0 2px var(--c), var(--ombre); }
  .haut .bouton-carre#btn-alertes { margin-left: auto; }
}
/* Étiquettes de formule */
.cl-pal { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 7px; white-space: nowrap; flex: none; }
.cl-pal.pal-0 { color: #15803d; background: #dcfce7; }
.cl-pal.pal-1 { color: #1d4ed8; background: #dbeafe; }
.cl-pal.pal-2 { color: #92600a; background: #fdf0d2; }
.cl-legende { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 14px 2px; }
.cl-legende em { font-size: 11.5px; color: var(--encre-2); font-style: normal; }
/* Catalogue en liste */
.cl-cat { margin: 10px 10px 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(10,30,43,.08); }
.cl-cat h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 12px; font-size: 15px; color: #fff; background: linear-gradient(100deg, var(--c), var(--c2)); }
.cl-cat h3 small { margin-left: auto; font-size: 12px; font-weight: 700; opacity: .85; }
.cl-cat-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); flex: none; }
.cl-ligne { display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; border-top: 1px solid #eef2f5; cursor: pointer; min-height: 50px; }
.cl-cat h3 + .cl-ligne { border-top: 0; }
.cl-ligne:hover { background: #f7fafc; }
.cl-ligne.actif { background: color-mix(in srgb, var(--c) 9%, #fff); box-shadow: inset 3px 0 0 var(--c); }
.cl-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cl-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cl-txt b { font-size: 14px; line-height: 1.2; }
.cl-txt b .badge-uhd { font-size: 9px; vertical-align: 1px; }
.cl-txt small { font-size: 12px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-aide { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c7d2da; background: #fff; color: var(--encre-2); font-weight: 900; font-size: 13px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; }
.cl-aide:hover { border-color: var(--encre); color: var(--encre); }
.cl-etoile { width: 32px; height: 32px; border: 0; background: none; font-size: 19px; color: #c7a03a; flex: none; padding: 0; }
.cl-etoile[aria-pressed="false"] { color: #b6c2cb; }
@media (max-width: 380px) { .cl-ligne .cl-pal { font-size: 0; padding: 3px 4px; gap: 0; } .cl-ligne .cl-pal.pal-0 { font-size: 10px; padding: 2px 5px; } }
.aide-ouvert { display: flex; gap: 6px; align-items: center; background: #f4f7f9; border-radius: 10px; padding: 8px 10px; }
.aide-voir { width: 100%; margin-top: 6px; }
/* Mes cartes compact */
.mc { margin: 8px 10px 2px; padding: 10px 10px 8px; background: #fff8e7; border-radius: 16px; box-shadow: inset 0 0 0 1px #f1dfb0; }
.mc-tete { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mc-tete > b { color: #7a5200; font-size: 15px; }
.mc-cfg { border: 0; border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12.5px; background: #fde7b0; color: #6b4700; }
.mc-vis { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #7a5200; font-weight: 700; }
.mc-vis button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: #fde7b0; color: #6b4700; font-weight: 900; font-size: 15px; padding: 0; }
.mc-vis b { min-width: 16px; text-align: center; }
.mc-menu { width: 32px; height: 28px; border: 0; border-radius: 8px; background: #fde7b0; color: #6b4700; font-weight: 900; font-size: 16px; padding: 0; }
.mc-puces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; user-select: none; -webkit-user-select: none; }
.mc-puce { display: inline-flex; align-items: center; gap: 5px; padding: 5px 4px 5px 9px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(10,30,43,.14); font-size: 13px; font-weight: 700; cursor: grab; touch-action: pan-y; transition: transform .12s, box-shadow .12s, opacity .12s; }
.mc-puce svg { color: #0e789b; flex: none; }
.mc-puce.hors { opacity: .58; background: #fffdf6; box-shadow: inset 0 0 0 1px #ecd9a8; }
.mc-puce.actif { box-shadow: 0 0 0 2px #10936a; }
.mc-puce.glisse { z-index: 3; position: relative; cursor: grabbing; transition: none; box-shadow: 0 8px 20px rgba(10,30,43,.28); opacity: .95; }
.mc-puce.cible { box-shadow: -3px 0 0 #e9a029, 0 1px 3px rgba(10,30,43,.14); }
.mc-x { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 14px; line-height: 1; padding: 0; }
.mc-aide { display: block; margin-top: 6px; font-size: 11.5px; color: #8a6a1f; }
.mc-options { display: flex; flex-direction: column; gap: 2px; }
.mc-options button { display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 9px 6px; border-radius: 12px; font-size: 18px; }
.mc-options button:hover { background: #f4f7f9; }
.mc-options span { display: flex; flex-direction: column; font-size: 14px; }
.mc-options small { color: var(--encre-2); font-size: 12px; }
.mc-options .mc-suppr b { color: #e5262c; }
.ed-ligne { padding-top: 5px !important; padding-bottom: 5px !important; min-height: 0 !important; }
/* Panneau des stations */
.st-panneau { position: fixed; z-index: 20; right: calc(var(--d) + 62px); top: calc(var(--haut) + 64px); width: min(340px, calc(100vw - var(--g) - var(--d) - 70px)); max-height: calc(100dvh - var(--haut) - 64px - 220px); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
@media (max-height: 760px) { .st-panneau { right: calc(var(--d) + 54px); max-height: calc(100dvh - var(--haut) - 64px - 170px); } }
.st-tete { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px 12px; border-bottom: 1px solid rgba(10,30,43,.08); }
.st-tete b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.st-tete > span { font-size: 12px; color: var(--encre-2); }
.st-fermer { margin-left: auto; width: 30px; height: 30px; border: 0; border-radius: 10px; background: rgba(10,30,43,.06); }
.st-corps { overflow-y: auto; padding: 4px 0 6px; overscroll-behavior: contain; }
.st-groupe h4 { display: flex; align-items: center; gap: 7px; margin: 8px 10px 2px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--c); }
.st-groupe h4 .cl-cat-ic { width: 22px; height: 22px; background: var(--c); color: #fff; border-radius: 7px; }
.st-ligne { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 14px; cursor: pointer; font-size: 14px; }
.st-ligne:hover { background: rgba(10,30,43,.04); }
.st-rond { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--c); flex: none; }
.st-ligne.actif .st-rond { background: var(--c); box-shadow: inset 0 0 0 2px var(--c), inset 0 0 0 4px #fff; }
.st-ligne.actif .st-nom { font-weight: 800; }
.st-nom { flex: 1; min-width: 0; }
.st-ligne .cl-aide { width: 22px; height: 22px; font-size: 11.5px; }
.st-pied { margin: 0; padding: 7px 12px 9px; font-size: 11px; color: var(--encre-2); border-top: 1px solid rgba(10,30,43,.08); }
/* Chez moi */
.cm-bloc { border-radius: 14px; box-shadow: inset 0 0 0 1px #e3e9ee; padding: 8px 10px 4px; margin-bottom: 8px; }
.cm-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cm-tete .cl-cat-ic { background: var(--c); color: #fff; width: 24px; height: 24px; }
.cm-tete b { font-size: 14.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-tete small { font-weight: 600; color: var(--encre-2); }
.cm-verrou { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.cm-voir { border: 0; border-radius: 10px; padding: 8px 12px; margin: 0 0 6px; font-weight: 800; background: #f1ebfd; color: #5b21b6; }
.mc-tete { flex-wrap: nowrap; }
.mc-cfg { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38%; }
@media (max-width: 440px), (min-width: 1000px) { .mc-tete > b { font-size: 0; } .mc-tete > b::first-letter { font-size: 16px; } .mc-vis-l { display: none; } }
.cm-bloc .grille { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.cm-bloc .grille b { white-space: normal; }
.logo-hx svg { width: 34px; height: 34px; }
.st-mode { display: flex; margin: 8px 10px 2px; background: rgba(10,30,43,.07); border-radius: 12px; padding: 3px; }
.st-mode button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 6px; font-weight: 800; font-size: 13px; color: var(--encre-2); }
.st-mode button[aria-pressed="true"] { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(10,30,43,.18); }
.st-mode { display: flex; margin: 8px 10px 2px; background: rgba(10,30,43,.07); border-radius: 12px; padding: 3px; flex: none; }
.st-mode button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 6px; font-weight: 800; font-size: 13px; color: var(--encre-2); }
.st-mode button[aria-pressed="true"] { background: #fff; color: var(--encre); box-shadow: 0 1px 3px rgba(10,30,43,.18); }
.lien-discret { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--encre-2); font-size: 13px; text-decoration: underline; }
/* [chezmoi-icone] [direct-zone] */
.chezmoi { animation: cm-entre .25s ease; }
@keyframes cm-entre { from { opacity: 0; transform: translateY(-6px); } }
.btn-chezmoi { position: relative; color: var(--encre); }
.btn-chezmoi .cm-point { position: absolute; top: 7px; right: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--c, #16a34a); box-shadow: 0 0 0 2px #fff; }
.btn-chezmoi[data-etat="vide"] .cm-point { display: none; }
.btn-chezmoi[data-etat="orage"] { color: var(--c); }
.btn-chezmoi.neuf .cm-point { animation: cm-pouls 1.2s ease-in-out infinite; }
@keyframes cm-pouls { 0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px var(--c); } 50% { box-shadow: 0 0 0 2px #fff, 0 0 0 8px transparent; } }
.dp-zone { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 4px 0 2px; font-size: 12.5px; font-weight: 800; color: var(--encre-2); white-space: nowrap; }
.dp-zone svg { color: var(--encre-2); }

/* [cat-replie] 25/10/2026 : catégories repliables du catalogue */
.cl-cat h3 { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.cl-cat h3 small { font-weight: 600; }
.cl-chev { width: 9px; height: 9px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); margin: -4px 4px 0 2px; transition: transform .2s; flex: none; }
.cl-cat.ouverte .cl-chev { transform: rotate(225deg); margin-top: 4px; }
.cl-cat:not(.ouverte) .cl-cat-corps { display: none; }
.cl-cat:not(.ouverte) { margin-top: 6px; }
.cl-cat-corps > .cl-ligne:first-child { border-top: 0; }
.cl-cat h3 small { white-space: nowrap; }

/* [acces-terrain] 25/10/2026 */
.sp-liste { display: grid; gap: 8px; margin: 6px 0 10px; }
.sp-choix { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 14px; padding: 12px; background: #f4f7f9; font: inherit; color: inherit; cursor: pointer; }
.sp-choix.actif { box-shadow: inset 0 0 0 2px #0b5ccf; background: #eef5ff; }
.sp-choix b { display: block; font-size: 15px; } .sp-choix small { color: #4a5a66; }
.sp-ic { font-size: 22px; width: 36px; text-align: center; }
.sp-retour { display: block; width: 100%; }

/* [partage-v2] 25/10/2026 : écran partagé refait pour la v2. Les cartes occupent la place libre : sur téléphone,
   au-dessus du lecteur (bande « Mes cartes » masquée, boutons de droite sans libellé, 3 cartes empilées) ;
   sur PC, à droite du catalogue. Chaque carte garde son choix en haut à gauche, sous la barre du haut. */
@media (max-width: 999px) {
  body.partage-2 #ecrans, body.partage-3 #ecrans { bottom: var(--h-bas, 140px); }
  body.partage-3 #ecrans { grid-template: 1fr 1fr 1fr / 1fr; }
  body.partage-3 #carte { grid-column: auto; }
  body.partage-2 #fav-b, body.partage-3 #fav-b { display: none !important; }
  body.partage-2 .bouton-rail, body.partage-3 .bouton-rail { width: 42px; height: 42px; }
  body.partage-2 .bouton-rail span, body.partage-3 .bouton-rail span { display: none; }
  body.partage-2 .rail, body.partage-3 .rail { gap: 5px; }
  body.partage-2 #btn-webcams, body.partage-3 #btn-webcams, body.partage-2 #btn-surplace, body.partage-3 #btn-surplace { display: none; }
  body.partage-2 .zoom-ctl, body.partage-3 .zoom-ctl { display: none; }
}
@media (min-width: 1000px) {
  body.ui-b.cat-ouvert.partage-2 #ecrans, body.ui-b.cat-ouvert.partage-3 #ecrans { left: 400px; }
  body.partage-2 .pilule-panneau, body.partage-3 .pilule-panneau { top: calc(var(--haut) + 62px); }
}
body.partage-2 #ecrans, body.partage-3 #ecrans { gap: 4px; background: #0a1e2b; }
body.partage-2 .pilule-panneau, body.partage-3 .pilule-panneau { box-shadow: 0 2px 10px rgba(10,30,43,.25); }

/* [radar-futur] 25/10/2026 : 2 h de prévision au bout de la piste, hachurées */
.piste.avec-futur .piste-fond::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: calc(var(--futur) * 100%);
  background: repeating-linear-gradient(135deg, rgba(124,58,237,.55) 0 4px, rgba(124,58,237,.12) 4px 8px); }
.piste.avec-futur::after { content: '+2 h'; position: absolute; right: 10px; top: 0; font-size: 10.5px; font-weight: 800; color: #6d28d9; pointer-events: none; }
.piste.dans-futur input::-webkit-slider-thumb { background: #7c3aed; }
.piste.dans-futur input::-moz-range-thumb { background: #7c3aed; }
.statut.futur { color: #6d28d9; } .statut.futur i { background: #7c3aed; }

/* [rail-leger] 25/10/2026 : sur écran tactile, « Enregistrer » et « Valeur » passent dans Outils, pas de +/− (zoom à deux doigts) */
@media (pointer: coarse) and (max-width: 999px) {
  #btn-partager, #btn-sonde:not([aria-pressed="true"]), .zoom-ctl { display: none !important; }
}

/* [cat-replie-pc] 25/10/2026 */
.cat-replier, .cat-languette { display: none; }
@media (min-width: 1000px) {
  .cat-replier { display: flex; position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #e8eef2; font-size: 22px; font-weight: 800; line-height: 1; align-items: center; justify-content: center; cursor: pointer; color: var(--encre); }
  .cat-replier:hover { background: #dce5eb; }
  body.ui-b.cat-replie .cat-languette { display: flex; position: fixed; left: 10px; top: calc(var(--haut) + 10px); z-index: 6; height: 44px; border: 0; border-radius: 14px; padding: 0 12px; gap: 6px; align-items: center; font: inherit; font-weight: 800; cursor: pointer; color: var(--encre); }
  body.ui-b.cat-replie .cat-languette svg { width: 20px; height: 20px; }
  body.ui-b.cat-replie .haut { left: 120px; }
  body.ui-b.cat-replie .bas { left: calc(50% - 400px); width: 800px; right: auto; max-width: none; }
  body.ui-b.cat-replie .chezmoi { left: 120px; }
}

/* [guide] 25/10/2026 */
.guide-voile { position: fixed; inset: 0; z-index: 40; background: rgba(10,30,43,.38); }
.guide-cible { z-index: 41 !important; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(124,58,237,.9) !important; }
.guide-bulle { position: fixed; z-index: 42; background: #fff; color: #0a1e2b; border-radius: 18px; padding: 14px 16px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.guide-bulle small { color: #6d28d9; font-weight: 800; font-size: 12px; } .guide-bulle b { display: block; font-size: 17px; margin: 2px 0 4px; }
.guide-bulle p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.4; color: #34444f; }
.guide-btns { display: flex; justify-content: space-between; gap: 10px; }
.guide-btns button { border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.guide-passer { background: transparent; color: #4a5a66; } .guide-ok { background: #7c3aed; color: #fff; }
button.guide-revoir { width: 100%; text-align: left; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.guide-revoir small, .lien-classique small { display: block; }
.guide-haut { z-index: 41 !important; }
/* [direct-france] pastille de zone basculable */
.dp-bascule { border: 0; background: var(--verre, rgba(255,255,255,.9)); border-radius: 14px; padding: 0 10px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; color: var(--encre); box-shadow: var(--ombre); }
.dp-bascule:hover { box-shadow: 0 0 0 2px #0b5ccf, var(--ombre); }
.dp-fleche { font-style: normal; color: #0b5ccf; margin-left: 4px; }
/* [partage-catalogue] */
.cp-liste .cl-cat { margin: 8px 0 0; }
@media (min-width: 1000px) {
  .recherche { flex: 0 1 260px; min-width: 150px; }
  .direct-puces .dp-puce { padding: 0 11px; white-space: nowrap; flex: none; }
  .dp-bascule { flex: none; white-space: nowrap; }
}
.dz-dep { display: block; width: 100%; margin: 8px 0 6px; height: 40px; border-radius: 10px; border: 1px solid #cfd8de; font: inherit; padding: 0 8px; }
.sp-choix small { display: block; }

/* [alertes-raccordees] / [alertes-sms] */
.al-serveur { font-style: normal; font-size: 10.5px; font-weight: 800; color: #0b5ccf; background: #e8f0fe; border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.sms-bloc { display: grid; gap: 8px; margin: 6px 0 10px; }
.sms-types { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.sms-accord { font-size: 13px; color: #4a5a66; display: flex; gap: 8px; align-items: flex-start; }

/* [notif-tuto] / commune obligatoire / message visible dans la feuille */
.toast { z-index: 60 !important; }
.al-choisir { display: block; width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; background: #fff3dc; box-shadow: inset 0 0 0 2px #e9a029; font: inherit; cursor: pointer; }
.al-choisir b { display: block; color: #7a4f05; } .al-choisir small { color: #7a5a20; }
.bascule:disabled { opacity: .35; cursor: not-allowed; }
.al-msg { border-radius: 12px; padding: 10px 12px; margin: 6px 0; font-size: 14px; font-weight: 700; }
.al-msg.ok { background: #e7f6ec; color: #0f6b3a; } .al-msg.ko { background: #fde8e8; color: #9b1c1c; }
.al-tuto { background: #f4f7f9; border-radius: 14px; padding: 12px 14px; margin: 6px 0 10px; font-size: 14px; line-height: 1.45; }
.al-tuto ol { margin: 6px 0 8px 18px; padding: 0; } .al-tuto li { margin: 3px 0; } .al-tuto p { margin: 0; color: #4a5a66; font-size: 13px; }

/* [alertes-canaux] 25/10/2026 : une ligne par alerte, colonnes 🔔 / SMS */
.al-etat { background: #f4f7f9; border-radius: 14px; padding: 10px 12px; margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.al-etat b.ok { color: #0f6b3a; } .al-etat b.ko { color: #9b1c1c; }
.lien-mini { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: #0b5ccf; text-decoration: underline; cursor: pointer; }
.al-entete { display: flex; justify-content: space-between; padding: 4px 0 2px; }
.al-entete .al-canaux i { font-style: normal; font-size: 11px; font-weight: 800; color: #6b7c88; width: 52px; text-align: center; }
.al-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(10,30,43,.07); }
.al-nom { flex: 1; min-width: 0; } .al-nom b { display: block; font-size: 15px; } .al-nom small { display: block; color: #4a5a66; font-size: 12.5px; line-height: 1.3; }
.al-canaux { display: flex; gap: 6px; flex: none; }
.al-c { width: 52px; height: 36px; border: 0; border-radius: 11px; background: #e8eef2; font: inherit; font-size: 13px; font-weight: 800; color: #8a99a4; cursor: pointer; filter: grayscale(1); opacity: .75; }
.al-c[aria-pressed="true"] { background: #0b5ccf; color: #fff; filter: none; opacity: 1; box-shadow: 0 2px 8px rgba(11,92,207,.35); }
.al-c.sms[aria-pressed="true"] { background: #7c3aed; box-shadow: 0 2px 8px rgba(124,58,237,.35); }
.al-c.verrou { opacity: .35; }
.al-c:disabled { opacity: .3; cursor: not-allowed; }
.al-bientot .al-canaux { opacity: .4; pointer-events: none; }

/* [alertes-compte] v25oct22 : connecté, les alertes du compte */
.al-compte { background: #eef4ff; color: #1e3a6b; border-radius: 12px; padding: 9px 12px; margin: 0 0 8px; font-size: 13px; line-height: 1.45; }
.al-compte a { color: #0b5ccf; font-weight: 800; }
.al-msg.info { background: #f4f7f9; color: #33424d; font-weight: 600; font-size: 13.5px; }
.al-formule { font-style: normal; font-size: 11px; font-weight: 800; color: #7a4f05; background: #fff3dc; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.al-hors .al-nom b, .al-hors .al-nom small { opacity: .6; }
.al-ajout-lieu { display: block; width: 100%; text-align: left; border: 0; border-radius: 12px; padding: 9px 12px; margin: 0 0 8px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9c6d0; font: inherit; font-size: 13.5px; color: #0b5ccf; cursor: pointer; }

/* [liens-alertes] v25oct23 : épingle du lieu d'une alerte (lien de notification ou de SMS) */
.epingle-alerte { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.epingle-alerte b { background: #0f1d2b; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 8px; margin-bottom: 6px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.epingle-alerte i { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #e11d48; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); margin-bottom: 4px; }

/* [compte-obligatoire] v25oct24 : inscription depuis la cloche */
.al-inscription { display: grid; gap: 8px; background: linear-gradient(135deg, #eef4ff, #f6f1ff); border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; }
.al-inscription > b { font-size: 15.5px; color: #12305e; } .al-inscription p { margin: 0; font-size: 13.5px; color: #33424d; line-height: 1.45; }
.al-inscription small { font-size: 12.5px; color: #4a5a66; } .al-inscription small a { color: #0b5ccf; font-weight: 800; }
.al-piege { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.al-msg a { color: inherit; font-weight: 800; }
