/* Thème « carte de nuit, tracés à la craie » (v6)
 * Carte satellite assombrie en plein écran, tracés blancs animés, titres condensés,
 * accents ocre (terre du projet) et rapport sur papier crème. */
[hidden] { display: none !important; }
:root {
  --nuit: #0d0f0e; --ardoise: #161a18; --verre: rgba(14, 16, 15, .82); --craie: #efe9df; --craie-m: rgba(239, 233, 223, .62);
  --craie-f: rgba(239, 233, 223, .16); --ocre: #d0813f; --ocre-f: #9a5b2e; --terre: #5a3a22; --papier: #f4ede1;
  --papier-l: #ebe1d0; --ink: #241d17; --mute: #7a6d61; --line: #ddd0bd; --vert: #2f5d3a; --rouge: #b3412f; --ambre: #c98a1b;
  --ocre-l: #ebe1d0; --dock-w: 360px; --sheet-w: min(620px, 46vw); --r: 4px;
  --titre: "Oswald", "Arial Narrow", Impact, sans-serif; --main: "Caveat", "Segoe Print", cursive;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--nuit); color: var(--craie); font-size: 14px; }
.hand { font-family: var(--main); }

/* ---------------------------------------------------------------- scène carte */
.stage { position: fixed; inset: 0; }
.map { position: absolute; inset: 0; background: var(--nuit); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--craie-m); font-family: var(--main); font-size: 22px; }
.leaflet-container .map-fallback { display: none; }
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 450;
  background: radial-gradient(ellipse 75% 70% at 50% 48%, transparent 45%, rgba(5, 6, 6, .78) 100%),
    linear-gradient(to bottom, rgba(5, 6, 6, .7), transparent 14%, transparent 70%, rgba(5, 6, 6, .85)); }
.leaflet-container { background: var(--nuit); font-family: inherit; }
.tl-sat { filter: saturate(.7) brightness(.6) contrast(1.12); }
.tl-ardoise { filter: brightness(1.5) contrast(.9) sepia(.15); }
.tl-nuit { filter: grayscale(1) invert(1) brightness(.75) contrast(1.1); }

.top { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--titre); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.brand em { font-style: normal; font-family: inherit; color: var(--ocre); font-size: 11px; letter-spacing: .1em; }
.status { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--craie-m); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #888; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.dot.ok { background: #8bd39a; } .dot.ko { background: #f08a74; }
button { font: inherit; cursor: pointer; }
.chip { border: 1px solid var(--craie-f); background: rgba(13, 15, 14, .55); color: var(--craie); padding: 6px 12px; border-radius: 20px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.chip:hover { border-color: var(--ocre); color: #fff; }

/* Titre « cinéma » en bas à gauche de la carte */
.hero { position: absolute; z-index: 900; left: calc(var(--dock-w) + 48px); bottom: 40px; max-width: 560px; pointer-events: none; transition: left .45s ease; }
.hero > * { pointer-events: auto; }
.hero small { display: block; font-family: var(--titre); text-transform: uppercase; letter-spacing: .3em; font-size: 11px; color: var(--ocre); margin-bottom: 8px; }
.hero h1 { margin: 0; font-family: var(--titre); font-weight: 500; text-transform: uppercase; font-size: clamp(38px, 5.4vw, 76px);
  line-height: .95; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.hero p.hand { margin: 8px 0 0; font-size: 22px; color: var(--craie-m); }
.hero .empty p { margin: 14px 0 0; max-width: 430px; line-height: 1.55; color: var(--craie-m); font-size: 13px; }
.hero-d { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.badge { font-family: var(--titre); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; padding: 7px 14px; border: 1.5px solid; }
.badge.go { color: #9fdcaa; } .badge.cond { color: #f2c46d; } .badge.nogo { color: #f39a86; }
.hero-d .score { font-family: var(--titre); font-size: 30px; } .hero-d .score small { display: inline; font-size: 13px; color: var(--craie-m); letter-spacing: .1em; margin: 0; }

/* ---------------------------------------------------------------- panneaux */
.layout { position: relative; z-index: 1100; pointer-events: none; }
.layout > * { pointer-events: auto; }
.dock { position: fixed; top: 62px; left: 16px; bottom: 16px; width: var(--dock-w); display: flex; flex-direction: column;
  transition: transform .45s ease, opacity .3s; }
body.dock-off .dock { transform: translateX(calc(-100% - 30px)); opacity: 0; pointer-events: none; }
body.dock-off { --dock-w: 0px; }
.panel { background: var(--verre); backdrop-filter: blur(14px); border: 1px solid var(--craie-f); border-radius: var(--r);
  padding: 16px 18px; overflow: auto; max-height: 100%; scrollbar-width: thin; scrollbar-color: #444 transparent; }
fieldset { border: 0; padding: 0; margin: 0 0 6px; }
legend, summary { font-family: var(--titre); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--craie); margin-bottom: 4px; }
summary { cursor: pointer; padding: 11px 0 9px; border-top: 1px solid var(--craie-f); list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ocre); font-size: 16px; } details[open] > summary::after { content: "–"; }
summary small { font-family: Inter, sans-serif; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--craie-m); margin-right: auto; }
label { display: block; font-size: 11px; color: var(--craie-m); margin: 7px 0; letter-spacing: .02em; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 7px 2px 6px; font: inherit; font-size: 13.5px; color: var(--craie);
  border: 0; border-bottom: 1px solid rgba(239, 233, 223, .25); border-radius: 0; background: transparent; }
select option { background: var(--ardoise); }
input::placeholder { color: rgba(239, 233, 223, .3); }
input:focus, select:focus { outline: 0; border-bottom-color: var(--ocre); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label.check { display: flex; gap: 9px; align-items: center; color: var(--craie); font-size: 12px; }
label.check input { width: auto; margin: 0; accent-color: var(--ocre); }
.hint { font-size: 11px; color: var(--craie-m); margin: 0 0 6px; }
.link { border: 0; background: none; color: var(--ocre); padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.row-actions { margin-bottom: 10px; }
.row-actions .ghost { width: 100%; }
.ghost { padding: 8px 12px; border: 1px solid var(--craie-f); background: transparent; color: var(--craie); border-radius: var(--r);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ghost:hover { border-color: var(--ocre); color: #fff; }
.primary { width: 100%; padding: 13px; margin-top: 12px; border: 0; border-radius: var(--r); background: var(--ocre); color: #1a120b;
  font-family: var(--titre); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.primary:hover { background: #e39552; }
.err { color: #f39a86; font-size: 12px; }

/* Rapport : feuille de papier qui glisse depuis la droite, frise des phases à gauche */
.sheet { position: fixed; top: 62px; right: 16px; bottom: 16px; width: var(--sheet-w); background: var(--papier); color: var(--ink);
  border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; animation: glisse .55s cubic-bezier(.2,.8,.2,1);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.55), transparent 60%); }
@keyframes glisse { from { transform: translateX(40px); opacity: 0; } }
.sheet-close { position: absolute; top: 8px; right: 10px; z-index: 2; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--mute); }
.sheet-close:hover { color: var(--ink); }
.sheet-grid { display: grid; grid-template-columns: 128px 1fr; height: 100%; }
.sheet-body { overflow: auto; padding: 20px 24px 22px 8px; scrollbar-width: thin; }

.tabs { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 0 20px 18px; border-right: 1px solid var(--line); }
.tabs::before { content: ""; position: absolute; left: 25px; top: 38px; bottom: 34px; border-left: 1.5px dotted #b9a68c; }
.tabs button { position: relative; text-align: left; border: 0; background: none; padding: 7px 4px 7px 22px; color: var(--mute);
  font-family: var(--titre); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.25; }
.tabs button::before { content: ""; position: absolute; left: 2px; top: 10px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--papier); border: 1.5px solid #b9a68c; transition: .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ocre-f); }
.tabs button.on::before { background: var(--ocre); border-color: var(--ocre); box-shadow: 0 0 0 4px rgba(208, 129, 63, .2); }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.kpi { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.kpi:nth-last-child(-n+3) { border-bottom: 0; }
.kpi b { display: block; font-family: var(--titre); font-weight: 500; font-size: 22px; color: var(--ink); margin: 2px 0 1px; line-height: 1.1; }
.kpi small { color: var(--mute); font-size: 10.5px; letter-spacing: .04em; }
.kpi > small:first-child { text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px; }
.kpi.decision b { font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.kpi.go b { color: var(--vert); } .kpi.cond b { color: #a46b0e; } .kpi.nogo b { color: var(--rouge); }
.exports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet .ghost { color: var(--terre); border-color: var(--line); } .sheet .ghost:hover { border-color: var(--ocre); color: var(--ink); }
.report h2 { font-family: var(--titre); }
.report h3 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ocre-f); font-size: 14px; margin: 18px 0 6px; }
.report h4 { margin: 12px 0 4px; font-size: 13px; }
.report p, .report li { line-height: 1.55; font-size: 13px; }
.report a { color: var(--ocre-f); }
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; margin: 6px 0 10px; }
th { text-align: left; color: var(--terre); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--ink) !important; }
th, td { border: 0; border-bottom: 1px solid var(--line); padding: 6px 7px 6px 0; vertical-align: top; }
#viz:empty { display: none; }
.bars { padding: 4px 0 8px; }
.bar { display: grid; grid-template-columns: 170px 1fr 70px; gap: 8px; align-items: center; margin: 6px 0; font-size: 12px; }
.bar .t { height: 6px; background: var(--papier-l); border-radius: 3px; overflow: hidden; }
.bar .f { height: 100%; border-radius: 3px; transform-origin: left; animation: barre .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barre { from { transform: scaleX(0); } }
.bar .w { color: var(--mute); font-size: 10.5px; text-align: right; }
.chart { width: 100%; height: 220px; display: block; margin: 6px 0; }
.legend { font-size: 11px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* ---------------------------------------------------------------- éléments de carte */
.chalk { filter: url(#craie); stroke-linecap: round; stroke-linejoin: round; }
.chalk-draw { animation: trace 1.3s ease-out forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
.chalk-lbl span { position: absolute; white-space: nowrap; font-family: var(--main); font-weight: 700; font-size: 19px; color: var(--craie);
  text-shadow: 0 1px 6px rgba(0,0,0,.9); opacity: 0; animation: apparait .6s ease-out forwards; }
.chalk-lbl small { font-weight: 500; font-size: 15px; color: var(--craie-m); margin-left: 4px; }
@keyframes apparait { to { opacity: 1; } }
.site-pin { position: relative; }
.site-pin b { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); background: var(--ocre); color: #1a120b; padding: 5px 9px 4px;
  font-family: var(--titre); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.site-pin b::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ocre); }
.site-pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ocre); border: 2px solid #fff; }
.site-pin i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid var(--ocre); animation: pouls 2.2s ease-out infinite; }
@keyframes pouls { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.poi-pin { width: 24px !important; height: 24px !important; margin: -12px 0 0 -12px !important; display: grid; place-items: center; background: var(--papier);
  border: 1.5px solid var(--ocre); color: var(--ocre-f); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.poi-pin svg { width: 14px; height: 14px; }
.leaflet-bar, .leaflet-control-layers { border: 1px solid var(--craie-f) !important; border-radius: var(--r) !important; box-shadow: none !important; }
.leaflet-bar a, .leaflet-control-layers { background: var(--verre) !important; color: var(--craie) !important; border-color: var(--craie-f) !important; backdrop-filter: blur(8px); }
.leaflet-bar a:hover { color: var(--ocre) !important; }
.leaflet-control-layers-toggle { filter: invert(1) brightness(1.4); }
.leaflet-control-layers-expanded { padding: 8px 12px; font-size: 12px; }
.leaflet-control-attribution { background: rgba(13,15,14,.6) !important; color: rgba(239,233,223,.5) !important; font-size: 9.5px; }
.leaflet-control-attribution a { color: rgba(239,233,223,.7) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--papier); color: var(--ink); border-radius: var(--r); }
.leaflet-popup-content { font-size: 12px; }
@media (min-width: 901px) {
  .leaflet-top.leaflet-left { left: calc(var(--dock-w) + 20px); top: 56px; transition: left .45s ease; }
  .leaflet-top.leaflet-right { top: 56px; }
  body.sheet-on .leaflet-right { right: calc(var(--sheet-w) + 20px); }
  body.sheet-on .hero { max-width: calc(100vw - var(--dock-w) - var(--sheet-w) - 110px); }
  body.sheet-on .hero h1 { font-size: clamp(32px, 3.6vw, 60px); }
}

/* ---------------------------------------------------------------- guide OSINT */
.bulb { display: flex; align-items: center; gap: 7px; border: 1px solid rgba(208,129,63,.6); background: rgba(13,15,14,.55); color: var(--ocre);
  padding: 5px 12px 5px 8px; border-radius: 20px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.bulb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: lueur 3s ease-in-out infinite; }
.bulb:hover { background: var(--ocre); color: #1a120b; }
@keyframes lueur { 50% { filter: drop-shadow(0 0 5px rgba(208,129,63,.9)); } }
.guide { position: fixed; inset: 0; z-index: 2500; background: rgba(6,7,7,.72); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.g-panel { width: min(1100px, 100%); height: min(860px, 100%); background: var(--papier); color: var(--ink); border-radius: var(--r); display: flex; flex-direction: column;
  overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: glisse .45s cubic-bezier(.2,.8,.2,1); position: relative; }
.g-head { background: var(--nuit); color: var(--craie); padding: 18px 26px 14px; display: flex; justify-content: space-between; align-items: flex-start;
  background-image: radial-gradient(ellipse at 85% 0%, rgba(208,129,63,.22), transparent 60%); }
.g-head small { font-family: var(--titre); text-transform: uppercase; letter-spacing: .26em; font-size: 10.5px; color: var(--ocre); }
.g-head h1 { margin: 4px 0 0; font-family: var(--titre); font-weight: 500; text-transform: uppercase; font-size: clamp(24px, 3vw, 36px); letter-spacing: .02em; }
.g-head p { margin: 2px 0 0; font-size: 19px; color: var(--craie-m); }
.g-head .sheet-close { position: static; color: var(--craie-m); } .g-head .sheet-close:hover { color: #fff; }
.g-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 200px 1fr; }
.g-rail { overflow: auto; }
.g-rail button small { display: block; font-size: 9.5px; color: #b9a68c; letter-spacing: .16em; }
.g-rail button::before { top: 16px; }
.g-rail::before { top: 46px; }
.g-body { overflow: auto; padding: 22px 34px 30px 26px; }
.g-body > * { max-width: 780px; }
.g-body h2 { font-family: var(--titre); font-weight: 500; text-transform: uppercase; font-size: 26px; margin: 2px 0 2px; letter-spacing: .02em; }
.g-kicker { font-family: var(--titre); text-transform: uppercase; letter-spacing: .2em; font-size: 10.5px !important; color: var(--ocre-f); margin: 0; }
.g-tool { margin: 0 0 8px; color: var(--mute); font-style: italic; }
.g-lead { font-size: 14px !important; line-height: 1.6; }
.g-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.g-links a, .g-links button { border: 1px solid var(--ocre); color: var(--ocre-f); background: #fff8ee; padding: 7px 12px; border-radius: var(--r); font-size: 12px; text-decoration: none; font-weight: 500; }
.g-links a:hover, .g-links button:hover { background: var(--ocre); color: #1a120b; }
.g-steps { padding-left: 0; list-style: none; counter-reset: e; }
.g-steps li { counter-increment: e; position: relative; padding: 6px 0 6px 36px; border-bottom: 1px solid var(--line); }
.g-steps li::before { content: counter(e); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ocre);
  color: var(--ocre-f); font-family: var(--titre); font-size: 12px; display: grid; place-items: center; }
.g-steps.big li { padding-top: 9px; padding-bottom: 9px; } .g-steps.big span { color: var(--mute); font-size: 12px; } .g-steps.big small { color: var(--mute); }
.g-list li { margin: 3px 0; }
.g-read { margin: 6px 0; } .g-read dt { font-family: var(--titre); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--terre); margin-top: 10px; }
.g-read dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; padding-left: 12px; border-left: 2px solid var(--ocre); }
.g-sect, .g-feux { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.g-sect button, .g-feux button { border: 1px solid var(--line); background: transparent; color: var(--mute); padding: 6px 11px; border-radius: 20px; font-size: 11.5px; }
.g-sect button:hover, .g-feux button:hover { border-color: var(--ocre); color: var(--ink); }
.g-sect button.on { background: var(--ink); color: var(--papier); border-color: var(--ink); }
.g-feux button.on.f-vert { background: var(--vert); color: #fff; border-color: var(--vert); }
.g-feux button.on.f-orange { background: var(--ambre); color: #1a120b; border-color: var(--ambre); }
.g-feux button.on.f-rouge { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 4px; }
.g-cols > div { padding: 10px 14px; border-radius: var(--r); }
.g-cols h4 { margin: 0 0 4px; font-family: var(--titre); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.g-cols ul { margin: 0; padding-left: 18px; } .g-cols li { font-size: 12.5px !important; }
.g-ok { background: #e3ede4; } .g-ok h4 { color: var(--vert); } .g-ko { background: #f6e1da; } .g-ko h4 { color: var(--rouge); }
.g-check label { display: flex; gap: 9px; align-items: flex-start; color: var(--ink); font-size: 13px; margin: 6px 0; }
.g-check input { width: auto; margin: 2px 0 0; accent-color: var(--ocre); }
.g-note { font-size: 12px !important; color: var(--mute); background: var(--papier-l); padding: 8px 12px; border-radius: var(--r); }
.g-link { border: 0; background: none; padding: 0; color: var(--ocre-f); text-align: left; text-decoration: underline; text-underline-offset: 2px; font: inherit; }
.g-next { width: auto; padding: 11px 22px; margin-top: 20px; }
.g-table td { vertical-align: middle; }
.g-body textarea { width: 100%; font: inherit; font-size: 13px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fffaf2; color: var(--ink); }
@media (max-width: 900px) {
  .guide { padding: 0; } .g-panel { height: 100%; border-radius: 0; }
  .g-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .g-rail { flex-direction: row; overflow-x: auto; padding: 10px 12px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .g-rail::before { display: none; } .g-rail button { white-space: nowrap; padding: 6px 10px 6px 20px; } .g-rail button small { display: none; }
  .g-rail button::before { top: 9px; }
  .g-body { padding: 16px 16px 26px; } .g-cols { grid-template-columns: 1fr; }
  .bulb span { display: none; } .bulb { padding: 5px 8px; }
  .g-head .sheet-close { display: block; font-size: 30px; }
}

/* ---------------------------------------------------------------- chargement */
.loading { position: fixed; inset: 0; background: rgba(6, 7, 7, .86); display: grid; place-content: center; justify-items: center; gap: 6px; z-index: 3000; text-align: center; }
.loading .trace { width: 260px; height: 120px; filter: url(#craie); }
.loading .trace path { fill: none; stroke: var(--craie); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: boucle 2.6s ease-in-out infinite; }
.loading .trace .tk { stroke: var(--ocre); stroke-dasharray: 40; stroke-dashoffset: 40; }
@keyframes boucle { 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -340; } }
.loading p { font-size: 25px; color: var(--craie); margin: 0; line-height: 1.2; }
.loading small { font-size: 18px; color: var(--craie-m); }

/* ---------------------------------------------------------------- téléphone */
@media (max-width: 900px) {
  :root { --dock-w: 0px; }
  .stage { position: relative; height: 68vh; height: 68svh; }
  .hero { left: 18px; right: 18px; bottom: 22px; }
  .hero h1 { font-size: 40px; }
  .hero .empty p { font-size: 12.5px; }
  .brand span, #api-txt { display: none; }
  .top { padding: 12px 14px; }
  .leaflet-top { top: 50px; }
  .layout { pointer-events: auto; padding: 0 10px 20px; display: flex; flex-direction: column-reverse; gap: 12px; margin-top: -10px; }
  .dock, .sheet { position: static; width: auto; transform: none !important; opacity: 1 !important; }
  body.dock-off .dock { display: none; }
  .panel { max-height: none; }
  .sheet { animation: none; }
  .sheet-grid { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding: 10px 40px 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); gap: 0; }
  .tabs::before { display: none; }
  .tabs button { white-space: nowrap; padding: 8px 10px 8px 20px; }
  .tabs button::before { top: 11px; }
  .sheet-body { padding: 14px 14px 18px; }
  .sheet-close { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .kpi:nth-last-child(-n+2) { border-bottom: 0; }
  .bar { grid-template-columns: 120px 1fr 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

.print-only { display: none; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print.print-only { display: block; font-size: 10.5pt; color: #000; }
  #print h1 { color: #9a5b2e; font-size: 18pt; } #print h2 { color: #2f5d3a; font-size: 13pt; margin-top: 14pt; break-after: avoid; }
  #print h3 { font-size: 11pt; break-after: avoid; } #print table { font-size: 8.5pt; } #print tr { break-inside: avoid; }
  #print a { color: #000; text-decoration: none; }
  @page { size: A4; margin: 14mm; }
}
