/* SOS MG — maquettes, étape A. Charte PREST OFFICE (BRAND.md + src/styles/global.css, branche refonte-2026-11) :
   noir, blanc, un seul point vermillon ; une famille, Jost Variable. */

@font-face {
  font-family: 'Jost Variable';
  src: url(fonts/jost-latin-wght.woff2) format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: block;
  ascent-override: 88%; descent-override: 23%; line-gap-override: 0%;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost Variable';
  src: url(fonts/jost-latin-ext-wght.woff2) format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: block;
  ascent-override: 88%; descent-override: 23%; line-gap-override: 0%;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113;
}

:root {
  --paper: #fff;
  --ink: #0a0a0a;
  --point: #f0421c;   /* le point seulement : disque du nom, état « ouvert / de garde ». Jamais du texte. */
  --mist: #f5f5f5;
  --line: #e6e6e6;
  --fg-2: #5c5c5c;
  --mute: #8c8c8c;
  --font: 'Jost Variable', system-ui, sans-serif;
  --g: 24px;          /* gouttière téléphone (charte : clamp(1.5rem, …)) */
  --r: 12px;          /* --radius de la charte */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; }
html, body { width: 390px; height: 844px; overflow: hidden; }
body {
  position: relative; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.45; font-weight: 400;
  -webkit-font-smoothing: antialiased; font-kerning: normal; font-variant-numeric: tabular-nums;
}
svg { display: block; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------- barre d'état (simulation du système) */
.sb { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em; position: relative; z-index: 5; }
.sb .r { display: flex; gap: 6px; align-items: center; }
.sb.on-map { position: absolute; inset: 0 0 auto 0; }

/* ---------------------------------------------------------- marque */
.wm { display: inline-flex; align-items: baseline; font-weight: 600; font-size: 21px; letter-spacing: 0.155em; line-height: 1; white-space: nowrap; }
.wm i { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: var(--point); margin-right: 0.155em; transform: translateY(0.005em); }
.wm .sp { width: 0.32em; display: inline-block; }

.hd { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--g); }
.lang { display: inline-flex; padding: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; }
.lang span { min-width: 50px; height: 44px; padding: 3px; background-clip: content-box; display: grid; place-items: center; border-radius: 999px; color: var(--fg-2); letter-spacing: 0.02em; }
.lang .on { background: var(--ink); color: var(--paper); }

/* ---------------------------------------------------------- bandeau des urgences nationales */
.sos { background: var(--ink); color: var(--paper); padding: 16px var(--g) 16px; }
.sos h2 { font-size: 15px; font-weight: 400; color: #a3a3a3; letter-spacing: 0; }
.sos ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sos li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px 11px; border-radius: 14px; box-shadow: inset 0 0 0 1px #262626; }
.sos li .tel { position: absolute; top: 13px; right: 14px; color: #a3a3a3; }
.sos li .tel .ic { width: 18px; height: 18px; stroke-width: 1.75; }
.sos li b { font-size: 32px; line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.sos small { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.25; color: var(--paper); white-space: nowrap; }
.rg { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; color: var(--ink); vertical-align: 0; }
.sos .rg { color: #e6e6e6; }
.sos .lg { margin-top: 12px; padding-top: 12px; box-shadow: inset 0 1px 0 #262626; font-size: 15px; color: #e6e6e6; display: flex; align-items: center; gap: 0; }
.sos .lg .rg { margin-right: 10px; }
.sos .lg b { font-size: 15px; font-weight: 500; color: var(--paper); white-space: nowrap; }
.sos .lg .sep { color: #a3a3a3; margin: 0 6px 0 2px; }

/* ---------------------------------------------------------- accueil */
.loc { display: flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 15px; }
.loc .ic { width: 18px; height: 18px; }
.hero { font-size: 38px; line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; margin-top: 10px; }
.doors { display: grid; gap: 12px; margin-top: 22px; }
.door { position: relative; background: var(--mist); border-radius: var(--r); padding: 18px 20px 18px; min-height: 126px; display: flex; flex-direction: column; }
.door .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.door h3 { font-size: 27px; line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; margin-top: auto; }
.door p { margin-top: 6px; font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.door .go { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.door .go .ic { width: 22px; height: 22px; stroke-width: 1.75; }

.pt { width: 8px; height: 8px; border-radius: 50%; background: var(--point); flex: none; display: inline-block; }
.ring { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; display: inline-block; }

.ft { position: absolute; left: var(--g); right: var(--g); bottom: 26px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); }
.ft img { width: 22px; height: 22px; border-radius: 5px; }

/* ---------------------------------------------------------- en-tête d'écran intérieur */
.bar { height: 60px; display: flex; align-items: center; gap: 6px; padding: 0 var(--g) 0 10px; }
.bar .back { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.bar h1 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }

/* ---------------------------------------------------------- boutons */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 18px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; padding: 0 22px; }
.btn .ic { width: 22px; height: 22px; stroke-width: 1.9; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--mute); }
.btn--ic { width: 56px; padding: 0; }
.call { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; flex: none; }
.call .ic { width: 20px; height: 20px; stroke-width: 1.9; }
.call--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--mute); }

/* ---------------------------------------------------------- carte */
.map { position: relative; overflow: hidden; background: #f2f2f2; }
.map .ml { position: absolute; inset: 0; }
.attr { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: var(--fg-2); background: #fff; padding: 1px 6px; border-radius: 4px; z-index: 3; }
.pin { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-size: 15px; font-weight: 600; box-shadow: 0 0 0 2.5px var(--paper), 0 2px 8px rgba(0,0,0,.18); }
.pin--sel { width: 44px; height: 44px; font-size: 19px; box-shadow: 0 0 0 4px var(--paper), 0 3px 12px rgba(0,0,0,.28); }
.pin .ic { width: 17px; height: 17px; stroke-width: 2; }
.pin--sel .ic { width: 23px; height: 23px; }
.me { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 9px rgba(10,10,10,.07), 0 1px 6px rgba(0,0,0,.22); }
.me::after { content: ""; position: absolute; inset: 7.5px; border-radius: 50%; background: var(--ink); }
.qlab { font-size: 14px; font-weight: 500; color: #5c5c5c; letter-spacing: 0; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.dist { background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 6px rgba(0,0,0,.16); white-space: nowrap; }
.fab { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.fab .ic { width: 22px; height: 22px; }

/* ---------------------------------------------------------- listes, fiches */
.sheet { position: relative; background: var(--paper); border-radius: 18px 18px 0 0; margin-top: -18px; z-index: 4; padding: 20px var(--g) 0; }
.meta { font-size: 15px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.tag .ic { width: 17px; height: 17px; stroke-width: 2; }
.tag .rg { margin: 0 2.5px; }
.tag--v { color: var(--ink); }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-size: 14px; font-weight: 600; flex: none; }
.num--l { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 0; box-shadow: inset 0 1px 0 var(--line); }
.row .tx { flex: 1; min-width: 0; }
.row h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.2; }
.row p { font-size: 15px; color: var(--fg-2); margin-top: 3px; display: flex; align-items: center; gap: 7px; }
.sep { color: var(--mute); }

/* ---------------------------------------------------------- sans connexion : bandeau discret, rien n'est bloqué */
.off { display: flex; gap: 10px; align-items: center; margin: 8px var(--g) 18px; padding: 0 16px; height: 48px; border-radius: 999px; background: var(--mist); font-size: 15px; color: var(--fg-2); }
.off p { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.off b { font-weight: 500; color: var(--ink); }
.off .ic { width: 22px; height: 22px; }

/* ---------------------------------------------------------- source et confiance */
.src { margin-top: 24px; }
.src > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px 0; box-shadow: inset 0 1px 0 var(--line); }
.src dt { font-size: 15px; color: var(--fg-2); }
.src dd { display: grid; gap: 3px; font-size: 15px; }
.src dd > span:last-child { color: var(--fg-2); }

/* ---------------------------------------------------------- carte plein écran */
.chip { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,.14); font-size: 16px; white-space: nowrap; }
.chip b { font-weight: 500; }
.chip--off { height: 36px; padding: 0 14px 0 12px; font-size: 14px; color: var(--ink); }
.chip--off .ic { width: 18px; height: 18px; }
.bsheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--paper); border-radius: 20px 20px 0 0; padding: 26px var(--g) 30px; box-shadow: 0 -4px 24px rgba(0,0,0,.10); }
.grab { position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--line); }

/* ---------------------------------------------------------- état vide : le point creux (la charte dit « anneau » pour ce qui n'est pas en service) */

/* carte : les repères HTML héritent de Jost (MapLibre impose Helvetica sinon) ; voile clair sous la barre d'état */
.map .maplibregl-map, .map .maplibregl-marker, .qlab, .dist, .pin { font-family: var(--font); }
.scrim { position: absolute; inset: 0 0 auto 0; height: 112px; z-index: 2; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.7) 45%, rgba(255,255,255,0)); }
.sb.on-map { z-index: 3; }
/* accueil hors ligne : portes un peu plus basses pour laisser la place au bandeau « pas de connexion » */
.hl .door { min-height: 120px; }

/* v2 : étiquette de carte sur deux lignes (titre + état hors ligne), voile sous les repères */
.chip--2 { height: 58px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 0 20px; }
.chip--2 b { font-size: 17px; line-height: 1.2; }
.chip--2 small { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--fg-2); line-height: 1.2; }
.chip--2 small .ic { width: 16px; height: 16px; }
.scrim.dedans { z-index: auto; }
/* v2 : source et confiance d'une donnée, sur deux lignes (libellé, puis source et date) */
.cf { display: grid; grid-template-columns: 17px 1fr; column-gap: 8px; row-gap: 2px; align-items: center; margin-top: 12px; font-size: 15px; }
.cf .rg { grid-column: 1; justify-self: center; color: var(--ink); }
.cf .ic { width: 17px; height: 17px; stroke-width: 2; }
.cf b { font-weight: 500; font-size: 15px; }
.cf span { grid-column: 2; color: var(--fg-2); }

/* tour 2 → v3 */
.offl { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; font-size: 15px; }
.offl .ic { width: 22px; height: 22px; margin-top: 1px; }
.offl b { display: block; font-size: 16px; font-weight: 500; line-height: 1.35; }
.offl span { display: block; color: var(--fg-2); margin-top: 1px; }
.meta--ink { color: var(--ink); }
.meta .ic { width: 17px; height: 17px; stroke-width: 2; }
.meta b { font-weight: 500; color: var(--ink); }
.chev { flex: none; width: 32px; height: 44px; display: grid; place-items: center end; }
.chev .ic { width: 22px; height: 22px; stroke-width: 1.75; }
.st { color: var(--ink); font-size: 16px; font-weight: 500; flex-wrap: nowrap; align-items: flex-start; }
.st .pt { flex: none; margin-top: 7px; }
.acts { position: absolute; left: var(--g); right: var(--g); bottom: 34px; display: grid; gap: 10px; }
.vide { display: flex; flex-direction: column; justify-content: center; height: calc(844px - 100px); padding-bottom: 90px; }
.me--nu { box-shadow: inset 0 0 0 2.5px var(--ink), 0 1px 6px rgba(0,0,0,.22); }
.une { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; align-items: center; }
.une .num { grid-row: 1; }
.une h2 { font-size: 28px; line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; }
.une .meta { grid-column: 2; margin-top: 6px; }
.row p .pt { margin-right: 1px; }
.hl .offl { margin-top: -4px; }

/* ==========================================================
   SOS MG — adaptations application (étape B)
   La charte ci-dessus reste celle des maquettes validées ;
   ici : écrans réels (plus de cadre 390×844 simulé), vues
   monopage, liens d'appel, boutons de langue.
   ========================================================== */
html, body { width: auto; height: auto; overflow: visible; }
body { max-width: 480px; margin: 0 auto; min-height: 100dvh; overflow-x: hidden; box-shadow: 0 0 0 1px var(--line); }
a { color: inherit; text-decoration: none; cursor: pointer; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.vue { display: none; position: relative; min-height: 100dvh; }
.vue.on { display: block; }
.vue--plein { height: 100dvh; overflow: hidden; }
.lang button { min-width: 50px; height: 44px; padding: 3px; background-clip: content-box; display: grid; place-items: center; border-radius: 999px; color: var(--fg-2); letter-spacing: 0.02em; font-size: 15px; font-weight: 500; }
.lang button.on { background: var(--ink); color: var(--paper); }
.sos li a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; color: inherit; }
.legal { padding: 26px var(--g) 110px; font-size: 14px; color: var(--fg-2); display: grid; gap: 6px; }
.legal .warn { color: var(--ink); font-weight: 500; }
.vide { height: auto; min-height: 55dvh; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.vue .map .ml { background: #f2f2f2; }
.chipbtn { text-align: left; }
