/* Maxi Services — Écrans (mise en page des 10 vues, calquée sur la maquette V2).
   Couleurs : exclusivement des tokens (aucun hex ni rgba brut ; teintes via
   color-mix sur tokens). Les dimensions structurelles px sans équivalent token
   restent minimales (gabarit mobile fidèle à la maquette). */

/* =================== EXTENSIONS MÉTIER — À REMONTER AU PROJET CLAUDE DESIGN ===================
   Teintes « corps de métier » (direction 2a, maquette validée 2026-07-19). Ces variables ne font
   PAS encore partie des tokens officiels du design system « Maxi services » : à intégrer côté
   projet Claude Design puis re-synchroniser via /design-sync. Les valeurs oklch(...) sont donc des
   valeurs brutes ASSUMÉES et commentées, en attendant leur promotion en tokens. */
:root {
  --hue-serrurerie:  var(--ms-flame);
  --hue-menuiserie:  oklch(0.52 0.06 65);   /* brun bois — extension métier (à tokeniser) */
  --hue-plomberie:   oklch(0.55 0.07 230);  /* bleu eau — extension métier (à tokeniser) */
  --hue-electricite: var(--ms-warning);
  --hue-peinture:    oklch(0.55 0.09 300);  /* violet — extension métier (à tokeniser) */
  --hue-tce:         var(--ms-graphite);
}

/* =============================== APP SHELL ============================= */
html, body { height: 100%; }
body { overscroll-behavior-y: none; }
.app {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  max-width: 480px; margin: 0 auto;
  background: var(--surface-page);
  overflow: hidden;
}
.app__corps { position: relative; flex: 1; overflow: hidden; }

/* écran = section plein cadre, masquée sauf active */
.ecran { position: absolute; inset: 0; display: none; flex-direction: column; overflow: hidden; }
.ecran.is-actif { display: flex; }
.ecran__scroll { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.ecran--avec-barre .ecran__scroll { padding-bottom: var(--space-2); }
.contenu { padding: var(--space-4) var(--space-4) var(--space-6); }

.mono { font-family: var(--font-mono); }
.disp { font-family: var(--font-display); text-transform: uppercase; letter-spacing: var(--display-tracking); line-height: var(--display-leading); }
.muet { color: var(--ms-slate); }
.centre { text-align: center; }

/* en-tête sur fond clair (accueil / envois / profil) : signature du papier à en-tête
   officiel — fond papier, monogramme couleur, filet dégradé fin de 2 px en bas. Le
   dégradé plein reste réservé aux boutons/CTA. */
.hdr { position: relative; background: var(--surface-page); color: var(--text-primary); padding: calc(18px + env(safe-area-inset-top)) var(--space-4) 20px; display: flex; align-items: center; gap: var(--space-3); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ms-gradient); }
/* Monogramme monochrome noir posé sur le papier. */
.hdr__mono { width: 38px; height: 38px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.hdr__mono img { width: 100%; height: 100%; display: block; }
.hdr h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; font-size: var(--text-lg); line-height: 1; color: var(--text-primary); }
.hdr__sous { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-1); font-weight: 500; }

/* en-tête navigation (retour + titre) sur fond clair : même signature papier que .hdr
   (fond papier + filet dégradé 2 px), bouton retour sobre (contour encre). */
.hdr-nav { position: relative; display: flex; align-items: center; gap: var(--space-3); background: var(--surface-page); color: var(--text-primary); padding: calc(14px + env(safe-area-inset-top)) 14px 14px; }
.hdr-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ms-gradient); }
.hdr-nav__retour { background: transparent; border: 1.5px solid var(--border-default); color: var(--text-primary); width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--radius-md); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hdr-nav__retour:hover { background: var(--ms-cloud); }
.hdr-nav h2 { flex: 1; font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-sm); letter-spacing: -0.01em; color: var(--text-primary); }
/* Badge « corps de métier » à droite du titre (fiche intervention, direction 2a). */
.hdr-nav__metier { flex: 0 0 auto; }

/* Fraîcheur des données — intégrée à l'en-tête (décision Mathis 2026-07-25) : la bande pleine
   largeur sous l'en-tête coûtait une ligne entière d'agenda. Elle partage désormais la ligne de
   la date, à droite. Hors-ligne, le libellé plus long peut passer sur deux lignes : seul ce cas
   dégradé reprend un peu de hauteur.
   font-size 11px = densité mobile (maquette 2a), sans équivalent token. */
.hdr__bloc { flex: 1; min-width: 0; }
.hdr__ligne { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.maj { flex: 0 1 auto; font-size: 11px; color: var(--ms-steel); font-weight: 500; text-align: right; }
.maj__dot { color: var(--ms-success); }
.maj--hors-ligne { color: var(--ms-warning); font-weight: 600; }
.maj--hors-ligne .maj__dot { color: var(--ms-warning); }

/* =============================== PLANNING ============================= */
.toggle { display: flex; background: var(--ms-cloud); border-radius: var(--radius-pill); padding: var(--space-1); margin: 14px 0; }
.toggle__btn { flex: 1; border: 0; background: none; padding: 9px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-weight: 700; font-size: var(--text-sm); color: var(--ms-slate); cursor: pointer; transition: all var(--duration-fast); }
.toggle__btn.is-actif { background: var(--ms-white); color: var(--ms-flame); box-shadow: var(--shadow-sm); }

/* Liste du jour sous le calendrier (vue Mois) : MÊME design que la carte Jour — mêmes deux
   lignes, mêmes couleurs d'état (consigne Mathis 2026-07-24). Seul le conteneur diffère : carte
   de liste ici, bloc positionné sur l'axe là-bas. */
.carte-inter { padding: 12px 14px; margin-bottom: var(--space-3); cursor: pointer; transition: all var(--duration-fast); }
.carte-inter:hover { border-color: var(--ms-flame); box-shadow: var(--shadow-lg); }
.carte-inter:active { transform: scale(0.985); }
.carte-inter--fait { background: var(--ms-success-bg); border-color: color-mix(in srgb, var(--ms-success) 25%, transparent); box-shadow: none; }
.carte-inter--replan { background: color-mix(in srgb, var(--ms-warning) 16%, var(--surface-card)); border-color: var(--ms-flame); box-shadow: none; }
.carte-inter--retard { background: color-mix(in srgb, var(--ms-danger) 12%, var(--surface-card)); border-color: var(--ms-danger); box-shadow: none; }

/* Pill « corps de métier » (direction 2a). Taille 10px = densité mobile (direction 2a), assumée.
   Couleur pilotée par la teinte métier (extension --hue-*, bloc en tête de fichier) ; défaut acier. */
.badge-metier {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--radius-pill); white-space: nowrap;
  background: color-mix(in srgb, var(--ms-steel) 12%, var(--ms-white)); color: var(--ms-steel);
}
.badge-metier--serrurerie  { background: color-mix(in srgb, var(--hue-serrurerie) 12%, var(--ms-white));  color: var(--hue-serrurerie); }
.badge-metier--menuiserie  { background: color-mix(in srgb, var(--hue-menuiserie) 12%, var(--ms-white));  color: var(--hue-menuiserie); }
.badge-metier--plomberie   { background: color-mix(in srgb, var(--hue-plomberie) 12%, var(--ms-white));   color: var(--hue-plomberie); }
.badge-metier--electricite { background: color-mix(in srgb, var(--hue-electricite) 12%, var(--ms-white)); color: var(--hue-electricite); }
.badge-metier--peinture    { background: color-mix(in srgb, var(--hue-peinture) 12%, var(--ms-white));    color: var(--hue-peinture); }
.badge-metier--tce         { background: color-mix(in srgb, var(--hue-tce) 12%, var(--ms-white));         color: var(--hue-tce); }

.heure { font-family: var(--font-mono); font-weight: 600; font-size: var(--text-sm); color: var(--ms-flame); }
.meta { font-size: var(--text-xs); color: var(--ms-slate); }
.bdc { font-family: var(--font-mono); font-weight: 600; color: var(--ms-graphite); font-size: var(--text-xs); }

/* créneau RH grisé, non cliquable */
.carte-rh { padding: 14px; margin-bottom: var(--space-3); opacity: 0.65; background: var(--ms-cloud); border: 1px dashed var(--ms-mist); cursor: not-allowed; }
.carte-rh__haut { display: flex; justify-content: space-between; align-items: center; }
.carte-rh .heure { color: var(--ms-slate); }
.badge-rh { background: var(--ms-fog); color: var(--ms-steel); }

.vide-planning { text-align: center; color: var(--ms-slate); font-size: var(--text-sm); padding: var(--space-6) var(--space-4); line-height: 1.7; }

/* ============================ DÉTAIL INTER =========================== */
.carte-lignes { padding: 4px 14px; }
.ligne-info { display: flex; gap: var(--space-3); padding: 11px 0; border-bottom: 1px solid var(--border-default); font-size: var(--text-sm); }
.ligne-info:last-child { border-bottom: 0; }
.ligne-info__ic { width: 22px; flex: 0 0 auto; color: var(--ms-steel); }
.ligne-info__ic svg { display: block; margin: 0 auto; }
.lab { color: var(--ms-steel); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--label-tracking); }
.val { font-weight: 600; }
/* Consignes d'accès : texte multiligne (bip, digicode, clé gardien…) respecté tel quel. */
.dt-acces { white-space: pre-line; font-weight: 500; line-height: 1.5; }

.travaux { list-style: none; margin: 0; padding: 0; }
.travaux li { font-size: var(--text-sm); margin: 6px 0 6px 4px; padding-left: 16px; position: relative; }
/* Puce triangulaire « flèche » (direction 2a) : triangle plein pointant à droite, teinte marque. */
.travaux li::before { content: ""; position: absolute; left: 0; top: 6px; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--ms-flame); }

.contact-manquant { border: 1px dashed color-mix(in srgb, var(--ms-warning) 45%, transparent); background: var(--ms-warning-bg); }
.contact-manquant .lab { color: var(--ms-warning); }
.contact-rang { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }

/* machine à états */
.etat-box { padding: 15px; margin-bottom: var(--space-3); }
.note-disc { font-size: var(--text-xs); color: var(--ms-steel); background: var(--ms-info-bg); border-radius: var(--radius-md); padding: 9px 11px; margin-top: var(--space-1); line-height: 1.5; }
.mini-photos { display: flex; gap: var(--space-2); margin-top: 10px; }
.mini-ph { width: 52px; height: 52px; border-radius: var(--radius-md); overflow: hidden; flex: 0 0 auto; border: 1px solid var(--border-default); }
.mini-ph img, .mini-ph svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.fil { background: var(--ms-cloud); border-radius: var(--radius-md); padding: 10px 12px; font-size: var(--text-xs); margin-bottom: var(--space-2); }
.fil:last-child { margin-bottom: 0; }
.fil__q { font-family: var(--font-mono); font-weight: 600; color: var(--ms-flame); font-size: var(--text-xs); }

.rangee-boutons { display: flex; flex-direction: column; gap: 10px; }
.rangee-boutons > * { margin: 0; }

/* ============================ PHOTOS ================================= */
.conseil { display: flex; gap: 9px; background: var(--ms-warning-bg); border: 1px solid color-mix(in srgb, var(--ms-warning) 35%, transparent); border-radius: var(--radius-md); padding: 11px; font-size: var(--text-xs); color: var(--ms-warning); margin-bottom: var(--space-4); line-height: 1.5; }
.conseil--apres { background: var(--ms-success-bg); border-color: color-mix(in srgb, var(--ms-success) 35%, transparent); color: var(--ms-success); }

/* padding 28px : densité mobile (direction 2a), sans équivalent token. */
.capture { border: 2px dashed var(--ms-flame); border-radius: var(--radius-lg); background: var(--ms-gradient-soft); padding: 28px var(--space-4); text-align: center; cursor: pointer; transition: all var(--duration-fast); margin-bottom: var(--space-4); width: 100%; display: block; }
.capture:active { transform: scale(0.99); }
.capture--apres { border-color: var(--ms-success); }
.capture__cam { line-height: 0; }
.capture__cam svg { display: inline-block; }
.capture__t { font-weight: 700; font-size: var(--text-md); margin-top: var(--space-2); color: var(--ms-flame); }
.capture--apres .capture__t { color: var(--ms-success); }
.capture__s { font-size: var(--text-xs); color: var(--ms-slate); margin-top: var(--space-1); }

.grille-photo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: var(--space-4); }
.ph-tile { aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; position: relative; border: 1px solid var(--border-default); background: var(--ms-cloud); }
.ph-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-tile__n { position: absolute; bottom: 4px; left: 5px; font-size: 9px; font-weight: 700; color: var(--ms-white); background: color-mix(in srgb, var(--ms-black) 45%, transparent); padding: 1px 6px; border-radius: var(--radius-pill); }
.ph-tile__suppr { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ms-black) 55%, transparent); color: var(--ms-white); font-size: var(--text-xs); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ph-tile--add { border: 2px dashed var(--ms-mist); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: var(--ms-steel); font-size: var(--text-xs); font-weight: 700; cursor: pointer; background: var(--ms-cloud); }
.ph-tile--add .p { font-size: var(--text-xl); color: var(--ms-flame); }
.note-compress { font-size: var(--text-xs); margin: -6px 0 var(--space-4) 2px; color: var(--ms-steel); }

/* ============================== QUITUS =============================== */
.steps-wrap { padding: 14px var(--space-4) 0; background: var(--ms-white); border-bottom: 1px solid var(--border-default); }
.steps-bar { height: 8px; border-radius: var(--radius-pill); background: var(--ms-cloud); overflow: hidden; }
.steps-fill { height: 100%; background: var(--ms-gradient); border-radius: var(--radius-pill); transition: width var(--duration-med) var(--ease-out); }
.step-lab { font-size: var(--text-xs); font-weight: 700; color: var(--ms-flame); padding: 9px var(--space-4) 12px; font-family: var(--font-body); background: var(--ms-white); text-transform: uppercase; letter-spacing: 0.03em; }
.step-lab .n { font-family: var(--font-mono); }

.recap { background: var(--ms-cloud); border-radius: var(--radius-md); padding: 14px; margin-bottom: 14px; }
/* padding 9px : densité mobile (direction 2a), sans équivalent token. */
.recap__r { font-size: var(--text-sm); padding: 9px 0; border-bottom: 1px solid var(--border-default); }
.recap__r:last-child { border-bottom: 0; }
.recap__k { color: var(--ms-steel); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.attest { background: var(--ms-white); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 14px; font-size: var(--text-sm); line-height: 1.55; margin-bottom: 14px; font-style: italic; color: var(--ms-graphite); }

/* 4 qualités (Locataire/Gardien/Autre/Personne) : wrap en 2×2 sur mobile étroit. */
.qualite { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.qualite__btn { flex: 1 1 calc(50% - var(--space-2)); border: 1.5px solid var(--border-default); background: var(--ms-white); border-radius: var(--radius-pill); padding: 10px 4px; font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 700; color: var(--ms-steel); cursor: pointer; transition: all var(--duration-fast); }
.qualite__btn.is-actif { background: var(--ms-flame); border-color: var(--ms-flame); color: var(--text-on-brand); }

/* signatures */
.sign-zone { border: 2px dashed var(--ms-mist); border-radius: var(--radius-md); height: 150px; background: var(--ms-cloud); position: relative; margin-bottom: 6px; overflow: hidden; touch-action: none; }
.sign-zone__ph { position: absolute; top: var(--space-2); left: var(--space-3); font-size: var(--text-xs); color: var(--ms-slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; pointer-events: none; }
.sign-zone canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.sign-zone.is-remplie .sign-zone__ph { display: none; }
.sign-eff { font-size: var(--text-xs); color: var(--ms-flame); font-weight: 700; text-align: right; margin-bottom: 14px; cursor: pointer; background: none; border: 0; display: block; margin-left: auto; }
.qu-validation { min-height: var(--text-md); margin-bottom: var(--space-2); color: var(--ms-danger); }
.qu-validation.is-ok { color: var(--ms-success); }
.ms-input[aria-invalid="true"], .sign-zone[aria-invalid="true"] { border-color: var(--ms-danger); }

/* ============================ COMPLÉMENT ============================ */
.croquis-wrap { margin-bottom: var(--space-4); }
/* Pastilles couleur + « Effacer » — réutilisées dans l'overlay plein écran. */
.croquis-col { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--border-default); cursor: pointer; padding: 0; flex: 0 0 auto; }
.croquis-col.is-actif { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ms-ink) 15%, transparent); border-color: var(--ms-white); }
.croquis-col--noir { background: var(--ms-ink); }
.croquis-col--rouge { background: var(--ms-danger); }
.croquis-eff { font-size: var(--text-xs); font-weight: 700; color: var(--ms-danger); background: none; border: 0; cursor: pointer; padding: 6px 10px; display: inline-flex; align-items: center; gap: 5px; }

/* Vignette du croquis validé, affichée dans le formulaire (bouton « Faire un croquis » masqué). */
.croquis-vignette { margin-top: var(--space-2); border: 1.5px solid var(--border-default); border-radius: var(--radius-lg); background: var(--ms-white); overflow: hidden; }
.croquis-vignette img { display: block; width: 100%; max-height: 180px; object-fit: contain; background: var(--ms-white); }
.croquis-vignette__actions { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); border-top: 1px solid var(--border-default); }
.croquis-vignette__actions .ms-btn { width: auto; }
.croquis-vignette__x { margin-left: auto; width: 34px; height: 34px; flex: 0 0 auto; border: 0; background: var(--surface-sunken); border-radius: var(--radius-sm); color: var(--ms-danger); font-size: var(--text-md); cursor: pointer; }

/* Overlay croquis PLEIN ÉCRAN (fixed inset 0, fond paper). */
.croquis-overlay { position: fixed; inset: 0; z-index: 95; background: var(--ms-paper); display: flex; }
.croquis-overlay[hidden] { display: none; }
.croquis-plein { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.croquis-plein__hdr { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--border-default); }
.croquis-plein__hdr h3 { font-family: var(--font-sans); font-weight: 800; font-size: var(--text-md); color: var(--ms-ink); }
.croquis-plein__x { width: 34px; height: 34px; border: 0; background: var(--surface-sunken); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-md); color: var(--text-secondary); }
/* min-height 160px : garde une zone dessinable même sur viewport très bas (téléphone en paysage). */
.croquis-plein__zone { flex: 1 1 auto; min-height: 160px; padding: var(--space-3); }
.croquis-plein__canvas { width: 100%; height: 100%; border: 1.5px solid var(--border-default); border-radius: var(--radius-lg); background: var(--ms-white); touch-action: none; display: block; cursor: crosshair; }
.croquis-plein__barre { flex: 0 0 auto; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border-default); }
.croquis-plein__cols { display: flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
.croquis-plein__barre .ms-btn--terrain { width: auto; flex: 1; margin-left: auto; }

.check-line { display: flex; align-items: center; gap: 11px; background: var(--ms-white); border: 1.5px solid var(--border-default); border-radius: var(--radius-lg); padding: 13px 14px; margin-bottom: var(--space-4); cursor: pointer; transition: all var(--duration-fast); }
.check-line.is-coche { border-color: var(--ms-warning); background: var(--ms-warning-bg); }
.check-line__box { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; border: 2px solid var(--ms-mist); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--text-on-brand); font-size: var(--text-sm); }
.check-line.is-coche .check-line__box { background: var(--ms-warning); border-color: var(--ms-warning); }
.check-line__t { font-size: var(--text-sm); font-weight: 600; }
.check-line.is-coche .check-line__t { color: var(--ms-warning); }

/* ============================== ENVOIS ============================== */
.envoi { display: flex; gap: var(--space-3); align-items: flex-start; }
.envoi__st { flex: 0 0 auto; line-height: 0; margin-top: 1px; }
.envoi__st svg { display: block; }
.envoi__t1 { font-weight: 700; font-size: var(--text-sm); }
.envoi__t2 { font-size: var(--text-xs); color: var(--ms-slate); margin-top: 2px; }
.pill-etat { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill); margin-top: 7px; display: inline-block; text-transform: uppercase; letter-spacing: 0.03em; }
.pill-etat--ok { background: var(--ms-success-bg); color: var(--ms-success); }
.pill-etat--attente { background: var(--ms-warning-bg); color: var(--ms-warning); }
.pill-etat--cours { background: var(--ms-info-bg); color: var(--ms-info); }
.pill-etat--erreur { background: var(--ms-danger-bg); color: var(--ms-danger); }
.envois-note { text-align: center; font-size: var(--text-xs); color: var(--ms-slate); margin-top: var(--space-2); line-height: 1.7; display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
.envoi__corps { min-width: 0; flex: 1 1 auto; }
.ms-carte--action { cursor: pointer; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.ms-carte--action:hover { border-color: var(--ms-flame); box-shadow: var(--shadow-lg); }
.envoi__chevron { flex: 0 0 auto; align-self: center; color: var(--ms-slate); line-height: 0; }
.envoi__pdf { display: inline-block; margin-top: 7px; margin-left: var(--space-3); padding: 0; border: 0; background: none; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; color: var(--ms-flame); cursor: pointer; }

/* ============================== PROFIL ============================== */
.avatar { width: 66px; height: 66px; border-radius: 50%; background: var(--ms-gradient); color: var(--text-on-brand); font-family: var(--font-display); font-size: var(--text-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-3); }

/* ============================ CONNEXION ============================= */
.co { display: flex; flex-direction: column; height: 100%; }
.co-band { background: var(--ms-gradient); padding: 34px var(--space-5) 26px; text-align: center; color: var(--text-on-brand); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.co-mono { width: 96px; height: 96px; background: color-mix(in srgb, var(--ms-white) 95%, transparent); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; padding: var(--space-4); box-shadow: var(--shadow-lg); }
.co-mono img { width: 100%; height: 100%; display: block; }
.co-band h1 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-2xl); letter-spacing: var(--display-tracking); }
.co-band p { font-size: var(--text-sm); opacity: 0.95; margin-top: var(--space-1); font-weight: 500; }
.co-body { padding: 18px var(--space-5) 20px; flex: 1; display: flex; flex-direction: column; }

.pin-aff { display: flex; gap: var(--space-3); justify-content: center; margin: 6px 0 var(--space-4); }
.pin-pt { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--ms-mist); transition: all var(--duration-fast); }
.pin-pt.is-plein { background: var(--ms-flame); border-color: var(--ms-flame); }
.pave { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pave button { height: 52px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--ms-white); box-shadow: var(--shadow-sm); font-family: var(--font-mono); font-size: var(--text-lg); font-weight: 500; cursor: pointer; transition: all var(--duration-fast); color: var(--ms-ink); }
.pave button:active { background: var(--ms-cloud); transform: scale(0.96); }
.pave .vide { background: none; box-shadow: none; border: 0; cursor: default; }
.co-note { font-size: var(--text-xs); color: var(--ms-slate); margin-top: auto; padding-top: 14px; line-height: 1.6; display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
.co-note__ic { flex: 0 0 auto; margin-top: 2px; }
.co-erreur { font-size: var(--text-sm); color: var(--ms-danger); text-align: center; margin: 4px 0 var(--space-2); font-weight: 600; min-height: var(--text-md); }

/* =========================== BARRE ONGLETS ========================== */
.tabbar { height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); flex: 0 0 auto; background: var(--ms-white); border-top: 1px solid var(--border-default); display: flex; }
/* Densité mobile : 11px (au lieu de --text-xs=12px) + nowrap pour que « Historique d'envoi »
   tienne sur une ligne dans un onglet ≈ 1/3 de largeur, y compris sur les écrans 320-360px. */
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-family: var(--font-sans); font-size: 11px; letter-spacing: -0.01em; white-space: nowrap; font-weight: 600; color: var(--ms-slate); cursor: pointer; border: 0; background: none; }
.tab__ic { line-height: 0; }
.tab__ic svg { display: block; }
.tab.is-actif { color: var(--ms-flame); }

/* ========================= OVERLAY CONFIRMATION ===================== */
.confirm { position: absolute; inset: 0; background: var(--ms-gradient); color: var(--text-on-brand); z-index: 70; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.confirm.is-actif { display: flex; }
.confirm__check { width: 96px; height: 96px; border-radius: 50%; background: color-mix(in srgb, var(--ms-white) 22%, transparent); display: flex; align-items: center; justify-content: center; font-size: var(--text-4xl); margin-bottom: 22px; }
.confirm h2 { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-2xl); margin-bottom: 10px; letter-spacing: -0.01em; }
.confirm p { font-size: var(--text-md); opacity: 0.95; line-height: 1.55; margin-bottom: 30px; max-width: 280px; }
.confirm .ms-btn { max-width: 260px; background: var(--ms-white); color: var(--ms-flame); border-radius: var(--radius-pill); }
.confirm__lien { margin-top: 14px; color: var(--text-on-brand); font-size: var(--text-sm); font-weight: 700; text-decoration: underline; cursor: pointer; background: none; border: 0; }

/* =============================== DIVERS ============================= */
.pile { display: flex; flex-direction: column; gap: 10px; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
[hidden] { display: none !important; }

/* boutons pleine largeur (usage terrain mobile). Rayon = var(--radius-md) : le composant
   DS Button impose radius-md (cf. design-system/reference/Button.jsx + maquette 2a), pas pill. */
.ms-btn--terrain { border-radius: var(--radius-md); min-height: 52px; font-size: var(--text-md); width: 100%; }

/* ---- Vues planning v2 — reproduites d'après docs/MAQUETTE-direction-2a-2026-07-19.dc.html,
   figures 02 (Jour) / 03 (Semaine) / 04 (Mois). Tailles 9-11px = densité mobile assumée
   (commentées) ; hues métier et badges via les extensions/composants existants. ---- */
/* Navigation de période : ‹ › + libellé + « Aujourd'hui » (masqué en période courante). */
.pl-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
/* Boutons ‹ › : 40×40, contour 1.5px, radius 10px ; le chevron SVG 18px (flame via currentColor) est posé en HTML. */
.pl-nav__fleche { width: 40px; height: 40px; flex: 0 0 auto; border: 1.5px solid var(--border-default); background: var(--surface-card); border-radius: var(--radius-md); color: var(--ms-flame); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pl-nav__fleche:hover { border-color: var(--ms-flame); }
.pl-nav__centre { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); min-width: 0; }
.pl-nav__label { font-size: var(--text-sm); font-weight: 700; color: var(--ms-ink); text-align: center; text-transform: capitalize; }
.pl-nav__auj { border: 0; background: var(--ms-gradient-soft); color: var(--ms-flame); font-family: var(--font-sans); font-weight: 700; font-size: var(--text-xs); padding: 3px 12px; border-radius: var(--radius-pill); cursor: pointer; }

/* JOUR — agenda à axe horaire vertical (40px/heure). Gouttière 32px (mono 10px), lignes
   horaires 1px, piste sans fond (page) + filet gauche. Les blocs sont des CARTES. */
.pl-agenda { position: relative; display: flex; gap: var(--space-2); }
.pl-hlabels { position: relative; width: 32px; flex: 0 0 auto; }
.pl-hlabel { position: absolute; left: 0; font-family: var(--font-mono); font-size: 10px; color: var(--ms-slate); transform: translateY(-6px); }
.pl-atrack { position: relative; flex: 1; border-left: 1px solid var(--border-default); }
.pl-gline { position: absolute; left: 0; right: 0; height: 1px; background: var(--border-default); }
/* Carte d'intervention posée sur l'axe. radius 8px = rayon carte agenda de la maquette
   (pas de token 8px ; dimension structurelle assumée, cf. en-tête du fichier). */
.pl-tblock { position: absolute; left: 8px; right: 4px; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: 8px; box-shadow: var(--shadow-sm); padding: 8px 10px; overflow: hidden; cursor: pointer; }
/* ÉTATS DE LA CARTE JOUR — décision Mathis 2026-07-24 : le statut est porté UNIQUEMENT par la
   couleur, aucun libellé d'état n'est écrit dans la carte.
   Sens de vert et d'orange REDÉFINI par la décision Mathis du 2026-07-25 :
   vert   = terminé AVEC quitus (réel ou projeté) ;
   orange = terminé SANS quitus — que « terminé » vienne du statut Airtable ou de la clôture
            locale « Retour d'info au bureau » (--ms-flame en aplat, accent UI du DS — jamais le
            dégradé de marque) ;
   rouge  = créneau dépassé sans aucun retour (--ms-danger, ≠ rouge République du tricolore). */
.pl-tblock--fait { background: var(--ms-success-bg); border-color: color-mix(in srgb, var(--ms-success) 25%, transparent); box-shadow: none; }
/* Orange et rouge sont deux teintes chaudes voisines : teinter les deux fonds avec flame et
   danger donnait deux rosés indiscernables (vérifié en capture). Le fond « clôturé sans travaux »
   part donc vers l'AMBRE (--ms-warning) tandis que la bordure reste flame — orange franc ; le
   fond « dépassé » reste rosé avec une bordure rouge brique. Fonds gold contre rose : la
   distinction tient même en plein soleil sur un téléphone. */
.pl-tblock--replan { background: color-mix(in srgb, var(--ms-warning) 16%, var(--surface-card)); border-color: var(--ms-flame); box-shadow: none; }
.pl-tblock--retard { background: color-mix(in srgb, var(--ms-danger) 12%, var(--surface-card)); border-color: var(--ms-danger); box-shadow: none; }
/* Absence RH sur l'axe Jour : la maquette 2a n'en montre pas ; on décline le style carte
   en gris sobre (pleine hauteur si l'absence couvre le jour, sinon bornée à son créneau). */
.pl-tblock--rh { background: var(--surface-sunken); border-style: dashed; border-color: var(--ms-mist); box-shadow: none; cursor: default; }
.pl-tblock--rh .pl-tb-site { color: var(--ms-steel); }
.pl-tblock--rh .pl-tb-time { color: var(--ms-steel); }
/* Créneau non-intervention (trajet, récupération de matériel) : même langage carte, style
   informatif et non cliquable — aucun statut, aucune couleur d'état. */
.pl-tblock--creneau { background: var(--surface-sunken); border-color: var(--border-default); border-style: dashed; box-shadow: none; cursor: default; }
.pl-tblock--creneau .pl-tb-time, .pl-tblock--creneau .pl-tb-site { color: var(--ms-steel); }
/* Ligne 1 : heure + n° de BDC groupés à GAUCHE, type d'intervention poussé à DROITE. */
.pl-tb-haut { display: flex; justify-content: flex-start; align-items: center; gap: 3px 6px; min-width: 0; }
/* heure début : mono 600 flame ; teintée selon l'état de la carte. */
.pl-tb-time { flex: 0 0 auto; font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--ms-flame); }
.pl-tblock--fait .pl-tb-time, .carte-inter--fait .pl-tb-time { color: var(--ms-success); }
.pl-tblock--retard .pl-tb-time, .carte-inter--retard .pl-tb-time { color: var(--ms-danger); }
/* n° de bon de commande interne, juste après l'heure. */
.pl-tb-bdc { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--ms-slate); white-space: nowrap; }
.pl-tblock--fait .pl-tb-bdc, .carte-inter--fait .pl-tb-bdc { color: var(--ms-steel); }
.pl-tblock--retard .pl-tb-bdc, .carte-inter--retard .pl-tb-bdc { color: var(--ms-danger); }
/* Ligne 2 : nom du site (sans « Résidence ») puis complément de lieu en gris, sur une seule
   ligne tronquée à la fin. */
.pl-tb-site { font-size: var(--text-sm); font-weight: 700; color: var(--ms-ink); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tb-lieu { font-size: var(--text-xs); font-weight: 400; color: var(--ms-slate); }
.pl-tblock--fait .pl-tb-site, .carte-inter--fait .pl-tb-site { color: var(--ms-graphite); }
.pl-tblock--fait .pl-tb-lieu, .carte-inter--fait .pl-tb-lieu { color: var(--ms-steel); }
/* Les blocs sans intervention (RH, créneau) gardent un titre en ligne avec leur icône. */
.pl-tblock--rh .pl-tb-site, .pl-tblock--creneau .pl-tb-site { display: flex; align-items: center; gap: 5px; }
.pl-tb-detail { font-size: var(--text-xs); color: var(--ms-slate); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ⏸️ V2 — pill « type d'intervention » poussée à droite de la 1re ligne. Le type métier est retiré
   des cartes Planning depuis la décision Mathis du 2026-07-25 (reporté en V2) : cette règle ne
   s'applique donc à rien aujourd'hui. Conservée volontairement pour que le rétablissement en V2
   soit une seule ligne côté JS. `.badge-metier` lui-même reste utilisé par la fiche intervention. */
.pl-tblock .badge-metier, .carte-inter .badge-metier { flex: 0 0 auto; margin-left: auto; font-size: 10px; padding: 2px 7px; }
/* Bloc trop court pour deux lignes : tout sur une ligne, sinon le titre est coupé par le bord. */
/* 30 min = 20 px de haut à l'échelle fixe : interligne serré, sinon la ligne dépasse du bloc. */
.pl-tblock--court { padding: 2px 9px; line-height: 1.15; }
.pl-tblock--court .pl-tb-haut { flex-wrap: nowrap; }
.pl-tb-court { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: var(--text-xs); font-weight: 700; color: var(--ms-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-tblock--creneau .pl-tb-court, .pl-tblock--rh .pl-tb-court { font-weight: 600; color: var(--ms-steel); }
/* Label « À REPLANIFIER » — conservé en vue Semaine uniquement. */
.pl-replan-label { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ms-ink); border-radius: var(--radius-pill); background: var(--ms-ink); color: var(--ms-paper); padding: 2px var(--space-1); font-family: var(--font-sans); font-size: 9px; font-weight: 800; letter-spacing: 0.04em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
/* Puce compacte pour une intervention hors de la fenêtre 07h→19h de l'axe (mêmes états). */
.pl-tpuce { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 8px; border-radius: 8px; background: var(--surface-card); border: 1px solid var(--border-default); box-shadow: var(--shadow-sm); cursor: pointer; }
.pl-tpuce--fait { background: var(--ms-success-bg); border-color: color-mix(in srgb, var(--ms-success) 25%, transparent); box-shadow: none; }
.pl-tpuce--replan { background: color-mix(in srgb, var(--ms-warning) 16%, var(--surface-card)); border-color: var(--ms-flame); box-shadow: none; }
.pl-tpuce--retard { background: color-mix(in srgb, var(--ms-danger) 12%, var(--surface-card)); border-color: var(--ms-danger); box-shadow: none; }
.pl-tpuce .pl-tb-site { margin-top: 0; }
.pl-tpuce .pl-tb-bdc { margin-left: 0; }
.pl-tpuce--fait .pl-tb-time { color: var(--ms-success); }
.pl-tpuce--retard .pl-tb-time { color: var(--ms-danger); }

/* SEMAINE — 7 lignes-jour. Gouttière jour 52px (num mono 14px + libellé 10px), piste 30px,
   segments UNIS (encre / succès — jamais de couleur par statut), colonne totale 36px. */
.pl-daxis { position: relative; height: 13px; margin: 0 42px 0 62px; font-family: var(--font-mono); font-size: 9px; color: var(--ms-slate); }
.pl-drows { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.pl-drow { display: flex; align-items: stretch; gap: var(--space-2); }
.pl-drow-lab { width: 52px; flex: 0 0 auto; border: 0; background: none; text-align: left; display: flex; flex-direction: column; justify-content: center; cursor: pointer; padding: 0; }
.pl-drow-lab b { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--ms-ink); }
.pl-drow-lab span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ms-steel); }
.pl-drow--today .pl-drow-lab b, .pl-drow--today .pl-drow-lab span { color: var(--ms-flame); }
.pl-drow-track { position: relative; flex: 1; height: 30px; background: var(--surface-sunken); border-radius: var(--radius-sm); border: 1px solid var(--border-default); overflow: hidden; }
.pl-drow--today .pl-drow-track { border-color: var(--ms-flame); }
.pl-dblock { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; box-shadow: var(--shadow-sm); cursor: pointer; background: var(--ms-ink); }
.pl-dblock--fait { background: var(--ms-success); }
.pl-replan-label--semaine { position: absolute; left: 50%; top: 50%; max-width: calc(100% - 4px); overflow: hidden; text-overflow: ellipsis; transform: translate(-50%, -50%); font-size: 7px; padding: 2px 3px; }
.pl-dblock--rh { top: 0; bottom: 0; border-radius: 0; background: var(--ms-fog); opacity: 0.85; cursor: default; }
/* total d'heures : mono 11px (densité mobile) 600 steel. */
.pl-drow-tot { width: 36px; flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ms-steel); }
.pl-sem-hint { text-align: center; font-size: var(--text-xs); color: var(--ms-slate); margin-top: var(--space-3); }

/* MOIS — calendrier à pastilles + liste du jour. Le nom du mois est dans la nav ; la grille
   commence par les entêtes L M M J V S D. */
.pl-cal-wd { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-1); margin-bottom: var(--space-1); }
.pl-cal-wd span { font-family: var(--font-sans); font-size: 10px; font-weight: 700; color: var(--ms-slate); text-align: center; text-transform: uppercase; letter-spacing: 0.05em; }
.pl-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-1); }
.pl-cell { aspect-ratio: 1; border: 1px solid var(--border-default); background: var(--surface-card); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 5px 2px 3px; cursor: pointer; gap: 3px; }
.pl-cell:hover { border-color: var(--ms-flame); }
.pl-cell--out { opacity: 0.38; }
.pl-cell--today { border-color: var(--ms-flame); border-width: 2px; }
.pl-cell--sel { background: var(--ms-gradient-soft); border-color: var(--ms-flame); }
.pl-cell-num { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--ms-ink); }
.pl-past-row { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; min-height: 8px; }
.pl-past { width: 6px; height: 6px; border-radius: 50%; background: var(--ms-slate); }
.pl-past--grad { background: var(--ms-gradient); }
.pl-past--fait, .pl-past--replan { background: var(--ms-success); }
.pl-past--rh { background: var(--ms-success); }
/* Liste du jour sélectionné : titre 11px (densité mobile) 700 uppercase steel, puis cartes. */
.pl-daylist-hdr { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ms-steel); padding: 8px 2px 6px; border-bottom: 1px solid var(--border-default); margin-top: var(--space-3); }
.pl-daylist-corps { margin-top: var(--space-3); }
.pl-vide-jour { text-align: center; color: var(--ms-slate); font-size: var(--text-sm); padding: var(--space-5) var(--space-4); font-style: italic; }

/* ============================ Détail v2 + carte ============================ */
/* Bloc délimité (périmètre agent « Détail v2 + carte »). Tokens DS uniquement. */

/* Boutons d'adresse : « Voir sur la carte » à gauche d'« Itinéraire ». */
.dt-adresse-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.dt-adresse-actions .ms-btn { width: auto; }

/* --- Timeline verticale d'avancement (3 étapes) --- */
.tl { padding: 2px 0; }
.tl-step { display: flex; gap: var(--space-3); }
.tl-rail { position: relative; width: 22px; flex: 0 0 auto; display: flex; justify-content: center; }
.tl-rail::after { content: ""; position: absolute; top: 20px; bottom: -6px; width: 2px; background: var(--border-default); }
.tl-rail--last::after { display: none; }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--surface-card); border: 2px solid var(--ms-mist); margin-top: 3px; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-on-brand); transition: var(--duration-fast); }
.tl-step.active .tl-dot { background: var(--ms-gradient); border-color: transparent; box-shadow: 0 0 0 4px var(--ms-gradient-soft); }
.tl-step.done .tl-dot { background: var(--ms-success); border-color: transparent; }
.tl-step.done .tl-dot::after { content: "✓"; }
.tl-body { flex: 1; padding-bottom: 18px; min-width: 0; }
.tl-title { font-family: var(--font-sans); font-weight: 800; font-size: var(--text-sm); color: var(--ms-ink); }
.tl-step:not(.active):not(.done) .tl-title { color: var(--text-muted); }
.tl-sub { font-size: var(--text-xs); color: var(--text-secondary); margin: 2px 0 9px; }
.tl-issues { display: flex; flex-direction: column; gap: var(--space-2); }
.tl-issue-btn { flex-direction: column; min-height: 44px; gap: 0; line-height: 1.15; padding: 6px 12px; width: 100%; }
.tl-issue-btn small { font-weight: 500; opacity: 0.85; }

/* --- Complément : motif en chips (obligatoire) --- */
.retour-info-label { display: block; margin-bottom: var(--space-2); }
.motif-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.motif-chip { border: 1.5px solid var(--border-default); background: var(--surface-card); border-radius: var(--radius-pill); padding: var(--space-2) var(--space-3); font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--duration-fast); }
.motif-chip:hover { border-color: var(--ms-flame); }
.motif-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.motif-chip.is-actif { background: var(--ms-flame); border-color: var(--ms-flame); color: var(--text-on-brand); }
.motif-req { font-family: var(--font-body); font-size: var(--text-xs); color: var(--ms-danger); font-weight: 700; margin-bottom: var(--space-4); }
.motif-req.is-ok { color: var(--ms-success); }
.complement-actions { display: flex; gap: var(--space-2); }
.complement-action { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.complement-action .ms-btn { width: 100%; padding-inline: var(--space-2); }
.complement-action__consequence { margin: 0; padding-inline: var(--space-1); font-family: var(--font-body); font-size: var(--text-xs); line-height: var(--body-leading); color: var(--text-secondary); text-align: center; }

/* --- Popup carte (overlay façon Dialog DS) --- */
.carte-overlay { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--ms-ink) 55%, transparent); display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.carte-overlay[hidden] { display: none; }
.carte-dialog { background: var(--surface-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; width: 420px; max-width: 94vw; display: flex; flex-direction: column; }
.carte-dialog__hdr { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-4) 0; }
.carte-dialog__hdr h3 { font-family: var(--font-sans); font-weight: 800; font-size: var(--text-md); color: var(--ms-ink); }
.carte-dialog__x { width: 32px; height: 32px; border: 0; background: var(--surface-sunken); border-radius: var(--radius-sm); cursor: pointer; font-size: var(--text-md); color: var(--text-secondary); }
.carte-canvas { height: 300px; margin-top: 12px; background: var(--surface-sunken); }
.carte-canvas[hidden] { display: none; }
.carte-body { padding: var(--space-4); }
.carte-adresse { font-size: var(--text-sm); color: var(--ms-ink); font-weight: 600; }
.carte-msg { font-size: var(--text-xs); color: var(--text-secondary); background: var(--surface-sunken); border-radius: var(--radius-md); padding: 10px 12px; line-height: 1.5; margin-top: 10px; }
.carte-pin { color: var(--ms-flame); line-height: 0; }
