/* App de coordination du staff · DevFest Dakar 2026 × PyCon Senegambia.
   Langage visuel de GDG Dakar, repris du site (css/styles.css) : palette de l'affiche, contours de 2 px,
   ombres dures décalées (jamais floues, jamais de dégradé), pastilles et cartes à grands rayons,
   Poppins pour les titres, DM Sans pour le texte, titres en casse de phrase.
   Thème clair seul (fond crème), le même pour toute l'équipe.
   Règle des couleurs : le bleu pour l'action principale, le jaune pour ce qui est choisi, le vert pour
   « en cours », le rouge seulement pour l'urgence. Sur une couleur fixe (jaune, vert, rouge, rose), le texte
   reste à l'encre dans les deux thèmes ; sur le bleu, il est blanc. */

/* ---------- Jetons ---------- */
:root {
  /* Palette de l'affiche : ne change jamais */
  --cream: #FDFDF3; --ink: #111111; --slate: #4A4F55; --white: #FFFFFF;
  --blue: #1368F0; --blue-soft: #DFEBFB; --red: #E14C3A; --yellow-warm: #FFD23F; --yellow-soft: #FDE9AE;
  --green: #34A853; --pink: #FD8CBA; --pink-soft: #F9D3D1;

  /* Jetons de rôle (thème clair) */
  --bg: var(--cream); --surface: var(--white); --surface-2: #F3F3E8; --fg: #24272B; --fg-strong: var(--ink);
  --fg-muted: var(--slate); --outline: var(--ink); --line-soft: #D8D8CC; --link: var(--blue);
  --band-yellow: var(--yellow-soft); --band-sky: var(--blue-soft);
  /* États : fond doux et texte foncé, lisibles dans les deux thèmes (AA) */
  --ok-bg: #DDF2E3; --ok-fg: #1C6630; --warn-bg: var(--yellow-soft); --warn-fg: #6B4A00;
  --alert-bg: var(--pink-soft); --alert-fg: #9E2A1C; --info-bg: var(--blue-soft); --info-fg: #0B4DB8;
  /* Bâtiment */
  --slab-top: #ECECE0; --slab-left: #D6D6C9; --slab-right: #C3C3B5; --slab-win: #A9A99A; --slab-empty: #F3F3E8; --slab-text: var(--ink);
  --scrim: rgba(17, 17, 17, .45);

  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-titre: "Poppins", "Segoe UI", system-ui, sans-serif;
  --line: 2px; --radius: 18px; --pill: 999px;
  --shadow: 4px 4px 0 var(--outline); --shadow-s: 3px 3px 0 var(--outline); --shadow-xs: 2px 2px 0 var(--outline);
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 var(--font); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-family: var(--font-titre); font-weight: 700; color: var(--fg-strong); }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.doux { color: var(--fg-muted); }
.petit { font-size: 13px; }
.cache { display: none !important; }
a { color: var(--link); }

/* ---------- Marque : le logo est une découpe sur fond crème, il vit sur une pastille crème ---------- */
.marque { display: inline-flex; align-items: center; background: var(--cream); border: var(--line) solid var(--outline); border-radius: var(--pill); padding: 4px 10px; flex: none; }
.marque img { display: block; width: auto; height: 18px; }
.marque--grande { padding: 10px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.marque--grande img { height: 34px; }
.sous-titre { color: var(--fg-muted); margin: 0; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  padding-top: max(10px, env(safe-area-inset-top)); background: var(--bg); border-bottom: var(--line) solid var(--outline); }
.entete .titre { flex: 1; min-width: 0; }
.entete .titre b { display: block; font: 700 15px/1.2 var(--font-titre); color: var(--fg-strong); }
.entete .titre span { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.horloge { font: 700 20px/1 var(--font-titre); color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.point-reseau { width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: var(--line) solid var(--outline); flex: none; }
.point-reseau.coupe { background: var(--red); animation: clignote 1s infinite; }
@keyframes clignote { 50% { opacity: .3; } }
@media (max-width: 420px) { .entete .marque img { height: 13px; } .entete .marque { padding: 3px 7px; } .horloge { font-size: 17px; } }

/* ---------- Corps et onglets ---------- */
main { padding: 14px 14px calc(90px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }
.onglet { display: none; }
.onglet.actif { display: block; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; background: var(--surface); border-top: var(--line) solid var(--outline);
  padding-bottom: env(safe-area-inset-bottom); }
.nav button { flex: 1; background: none; border: 0; padding: 8px 2px 9px; color: var(--fg-muted); font-size: 11px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.nav button .ic { font-size: 21px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--pill); padding: 2px 12px; }
.nav button[aria-current="page"] { color: var(--fg-strong); font-weight: 700; }
.nav button[aria-current="page"] .ic { background: var(--yellow-warm); color: var(--ink); border: var(--line) solid var(--outline); padding: 0 10px; }
.nav button.signaler .ic { background: var(--red); color: var(--ink); width: 48px; height: 48px; padding: 0; border-radius: 50%; margin-top: -20px;
  border: var(--line) solid var(--outline); box-shadow: var(--shadow-xs); }
.nav button.signaler[aria-current="page"] .ic { background: var(--red); }
.badge { position: absolute; top: 2px; left: calc(50% + 8px); min-width: 19px; height: 19px; border-radius: var(--pill); background: var(--red); color: var(--ink);
  border: var(--line) solid var(--outline); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

/* ---------- Cartes ---------- */
.carte { background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 14px; }
.section { margin: 20px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section h2 { font-size: 17px; }

/* ---------- Boutons : pastilles à contour, ombre dure qui s'écrase au toucher ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg-strong);
  border-radius: var(--pill); padding: 10px 16px; min-height: 46px; font: 700 14.5px/1.2 var(--font-titre); box-shadow: var(--shadow-s);
  transition: transform .08s, box-shadow .08s; text-decoration: none; }
.btn:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: var(--shadow-xs); }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.btn.plein { background: var(--blue); color: var(--white); }
.btn.vert { background: var(--green); color: var(--ink); }
.btn.orange { background: var(--yellow-warm); color: var(--ink); }
.btn.plein.btn--urgence { background: var(--red); color: var(--ink); }
.btn.large { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.mini { min-height: 34px; padding: 5px 12px; font-size: 13px; box-shadow: var(--shadow-xs); }
a.btn { text-decoration: none; }
a.btn:not(.vert):not(.plein):not(.orange) { color: var(--fg-strong); }
.rangee { display: flex; gap: 10px; flex-wrap: wrap; }
.rangee > .btn { flex: 1; }
.rangee.colonne { flex-direction: column; align-items: stretch; }

/* Pastilles de choix : neutres, la sélection est jaune avec texte à l'encre */
.puces { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.puces button { flex: none; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg); border-radius: var(--pill); padding: 6px 13px; font-size: 13px; font-weight: 500; position: relative; }
.puces button[aria-pressed="true"] { background: var(--yellow-warm); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-xs); }
.puces .nb { margin-left: 6px; background: var(--red); color: var(--ink); border-radius: var(--pill); padding: 0 6px; font-size: 11px; font-weight: 700; }

/* ---------- Champs ---------- */
label.champ { display: block; margin-bottom: 12px; }
label.champ > span { display: block; font-size: 13px; font-weight: 500; color: var(--fg-muted); margin-bottom: 5px; }
input[type=text], input[type=tel], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; background: var(--surface); color: var(--fg); border: var(--line) solid var(--outline); border-radius: 12px; padding: 10px 12px; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--link); outline-offset: 1px; }
textarea { min-height: 80px; resize: vertical; }
input, select, textarea { font-size: 16px; } /* 16 px au moins : sinon l'iPhone zoome à chaque saisie */
.select-mini { width: auto; min-height: 36px; padding: 4px 8px; }
.case { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.form-qg { width: 100%; max-width: 360px; }

/* ---------- Pastilles de statut ---------- */
.statut { display: inline-block; border-radius: var(--pill); padding: 2px 10px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); color: var(--fg-muted); border: 1.5px solid currentColor; }
.statut.commencee, .statut.present { background: var(--ok-bg); color: var(--ok-fg); }
.statut.retard, .statut.pause, .statut.attente, .statut.depasse { background: var(--warn-bg); color: var(--warn-fg); }
.statut.ouvert, .statut.urgent { background: var(--alert-bg); color: var(--alert-fg); }
.statut.pris { background: var(--info-bg); color: var(--info-fg); }
.statut.terminee, .statut.parti, .statut.annulee, .statut.resolu, .statut.prevue { background: var(--surface-2); color: var(--fg-muted); }

/* ---------- Ma salle ---------- */
.salle-pilote .tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.salle-pilote .tete b { font: 700 17px/1.25 var(--font-titre); color: var(--fg-strong); }
.salle-pilote .session { margin: 6px 0 12px; }
.salle-pilote .session .t { font-weight: 700; }
.bloc-salle { border-top: var(--line) dashed var(--line-soft); padding-top: 12px; margin-top: 12px; }
.bloc-titre-salle { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 14px var(--font-titre); color: var(--fg-strong); margin-bottom: 8px; }
.bloc-salle .session { margin: 0 0 10px; }
.bloc-salle .jauge { margin-top: 10px; }
.compteur { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.compteur button { width: 50px; height: 50px; border-radius: 14px; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg-strong);
  font: 700 18px var(--font-titre); box-shadow: var(--shadow-xs); }
.compteur button:active { transform: translate(2px, 2px); box-shadow: none; }
.compteur .val { flex: 1; text-align: center; font: 700 24px var(--font-titre); color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.compteur .val small { display: block; font: 500 12px var(--font); color: var(--fg-muted); }
.speaker-choix { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.speaker-choix .puces button.sp-present[aria-pressed="true"] { background: var(--green); color: var(--ink); }
.speaker-choix .puces button.sp-absent[aria-pressed="true"] { background: var(--red); color: var(--ink); }
.lien-discret { background: none; border: 0; color: var(--link); text-decoration: underline; font-size: 13px; padding: 4px 0; font-weight: 500; }
.speaker { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; margin-top: 2px; }
.speaker .ico { width: 13px; height: 13px; }
.speaker.present { color: var(--ok-fg); }
.speaker.absent { color: var(--alert-fg); }
.absence { margin: 10px 0 4px; padding: 10px 12px; border-radius: 14px; background: var(--alert-bg); color: var(--fg); border: var(--line) solid var(--outline); }
.absence p { margin: 0 0 8px; }
.deplacee { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--info-fg); margin-top: 2px; }
.conflit { margin: 0 0 12px; padding: 8px 10px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-fg); border: var(--line) solid var(--outline); font-size: 13px; font-weight: 500; }
.deux-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voile.deplacer select:disabled { opacity: .7; }

/* ---------- Liste des salles ---------- */
.ligne-salle { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1.5px solid var(--line-soft); }
.ligne-salle:last-child { border-bottom: 0; }
.ligne-salle .lieu { width: 70px; flex: none; font: 700 14px/1.2 var(--font-titre); color: var(--fg-strong); }
.ligne-salle .lieu small { display: block; font: 500 11px var(--font); color: var(--fg-muted); }
.ligne-salle .quoi { flex: 1; min-width: 0; }
.ligne-salle .quoi div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ligne-salle .quoi .h { font-size: 12px; color: var(--fg-muted); }
.ligne-salle.mienne { background: var(--band-yellow); border: var(--line) solid var(--outline); border-radius: 14px; margin: 0 0 8px; padding: 10px; }
.ligne-salle.mienne .lieu small { color: var(--fg-strong); font-weight: 700; }
.feuille .ligne-salle .quoi div:first-child { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* ---------- Bâtiment : tour et plans ---------- */
.batiment { display: grid; gap: 12px; }
.tour { width: 100%; height: auto; max-height: 340px; display: block; margin: 0 auto; }
.tour .ombre { fill: var(--outline); opacity: .12; }
.tour .dalle .dessus, .tour .dalle .face-g, .tour .dalle .face-d { stroke: var(--outline); stroke-width: 1.2; stroke-linejoin: round; }
.tour .dalle .dessus { fill: var(--slab-top); } .tour .dalle .face-g { fill: var(--slab-left); } .tour .dalle .face-d { fill: var(--slab-right); }
.tour .dalle .fenetre { fill: var(--slab-win); }
.tour .dalle.vide .dessus, .tour .dalle.vide .face-g, .tour .dalle.vide .face-d { fill: var(--slab-empty); }
.tour .dalle.actif .dessus { fill: #7ED196; } .tour .dalle.actif .face-g { fill: var(--green); } .tour .dalle.actif .face-d { fill: #2A8A44; } .tour .dalle.actif .fenetre { fill: #DDF2E3; }
.tour .dalle.tension .dessus { fill: #FFE07A; } .tour .dalle.tension .face-g { fill: var(--yellow-warm); } .tour .dalle.tension .face-d { fill: #E0B52A; } .tour .dalle.tension .fenetre { fill: #FFF7D6; }
.tour .dalle.critique .dessus { fill: #F07E70; } .tour .dalle.critique .face-g { fill: var(--red); } .tour .dalle.critique .face-d { fill: #B8392A; }
.tour .dalle.critique .fenetre { fill: var(--pink-soft); animation: clignote 1s infinite; }
.tour .dalle[role=button] { cursor: pointer; }
.tour .dalle[role=button]:hover .dessus, .tour .dalle.choisie .dessus { stroke-width: 3; }
.tour .etiq-dalle { font: 700 12px var(--font-titre); fill: var(--slab-text); }
.tour .dalle.actif .etiq-dalle, .tour .dalle.tension .etiq-dalle, .tour .dalle.critique .etiq-dalle { fill: var(--ink); }
.tour .repere { stroke: var(--fg-muted); stroke-width: 1; }
.tour .resume-dalle { font: 600 13px var(--font); fill: var(--fg-muted); }
.tour .resume-dalle.critique { fill: var(--alert-fg); } .tour .resume-dalle.tension { fill: var(--warn-fg); } .tour .resume-dalle.actif { fill: var(--ok-fg); }
.tour .gyro { fill: var(--red); animation: clignote .9s ease-in-out infinite; }
.tour .gyro-halo { fill: var(--red); opacity: .35; transform-box: fill-box; transform-origin: center; animation: gyro-halo .9s ease-out infinite; }
@keyframes gyro-halo { from { transform: scale(.4); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }

.etages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.etages button { min-width: 0; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg-strong); border-radius: 12px; padding: 8px 4px; font: 700 14px var(--font-titre); }
.etages button[aria-pressed="true"] { background: var(--yellow-warm); color: var(--ink); box-shadow: var(--shadow-xs); }

.plan { width: 100%; height: auto; display: block; }
.plan .contour { fill: var(--surface-2); stroke: var(--outline); stroke-width: 3; }
.plan .piece .fond { fill: var(--surface); stroke: var(--outline); stroke-width: 1.8; transition: fill .3s; }
.plan .piece { cursor: pointer; }
.plan .piece:hover .fond, .plan .piece.choisie .fond { stroke-width: 3.5; }
.plan .piece.c-ok .fond { fill: var(--ok-bg); }
.plan .piece.c-attente .fond { fill: var(--alert-bg); }
.plan .piece.c-retard .fond { fill: var(--warn-bg); }
.plan .piece.c-charge .fond { fill: var(--warn-bg); }
.plan .piece.c-sature .fond { fill: var(--alert-bg); stroke: var(--red); stroke-width: 3.5; }
.plan .piece.alerte .fond { stroke: var(--red); stroke-width: 4; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { stroke-opacity: .25; } }
.plan .piece.mienne .fond { stroke: var(--blue); stroke-width: 3; stroke-dasharray: 8 5; }
.plan .nom-piece { font: 700 14px var(--font-titre); fill: var(--fg-strong); pointer-events: none; }
.plan .etat-piece { font: 600 11.5px var(--font); fill: var(--fg); pointer-events: none; }
.plan .occ-piece { font: 700 12px var(--font); fill: var(--fg-strong); pointer-events: none; }
.plan .titre-piece { font: 500 11px var(--font); fill: var(--fg-muted); pointer-events: none; }
.plan .niveau-piece { font: 700 11px var(--font); fill: var(--alert-fg); pointer-events: none; }
.plan .mien-piece { font: 700 10.5px var(--font); fill: var(--info-fg); pointer-events: none; }
.plan .sous-piece { font: 500 11.5px var(--font); fill: var(--fg-muted); }
.plan .absent { fill: none; stroke: var(--fg-muted); stroke-width: 1.2; stroke-dasharray: 4 4; }
.plan .porte { stroke: var(--surface-2); stroke-width: 4; }
.plan .entree { stroke: var(--blue); stroke-width: 6; }
.plan .pastille { fill: var(--yellow-warm); stroke: var(--ink); stroke-width: 2; }
.plan .pastille.urgente { fill: var(--red); }
.plan .pastille-n { font: 700 12px var(--font); fill: var(--ink); pointer-events: none; }
@media (max-width: 600px) {
  .plan .nom-piece { font-size: 21px; }
  .plan .etat-piece, .plan .occ-piece { font-size: 17px; }
  .plan .titre-piece { display: none; }
  .plan .niveau-piece, .plan .mien-piece { font-size: 15px; }
  .plan .sous-piece { font-size: 16px; }
  .plan .piece[data-lieu="ascenseurs"] .nom-piece, .plan .piece[data-lieu^="wc"] .nom-piece, .plan .piece[data-lieu^="palier"] .nom-piece { font-size: 14px; }
}
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--fg-muted); }
.legende span { display: inline-flex; align-items: center; gap: 6px; }
.puce { width: 13px; height: 13px; border-radius: 4px; display: inline-block; background: var(--surface); border: 1.5px solid var(--outline); }
.puce.c-ok { background: var(--ok-bg); } .puce.c-attente { background: var(--alert-bg); } .puce.c-retard { background: var(--warn-bg); }
.puce.c-charge { background: var(--warn-bg); } .puce.c-sature { background: var(--alert-bg); border-color: var(--red); }
.puce.pastille-leg { background: var(--red); border-radius: 50%; }

/* ---------- Feuilles et fenêtres ---------- */
.voile { position: fixed; inset: 0; background: var(--scrim); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.feuille { background: var(--bg); width: 100%; max-width: 640px; max-height: 88vh; overflow: auto; border-radius: 24px 24px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: var(--line) solid var(--outline); border-bottom: 0; }
.feuille h2 { font-size: 20px; }
.feuille .poignee { width: 44px; height: 5px; border-radius: 3px; background: var(--outline); opacity: .35; margin: -6px auto 12px; }
.feuille .fermer { float: right; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--surface); border: var(--line) solid var(--outline); color: var(--fg-strong); }
.feuille .fermer .ico { width: 20px; height: 20px; }

/* ---------- Signaler ---------- */
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.types button { text-align: left; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg-strong); border-radius: 16px; padding: 12px; min-height: 66px; font: 700 14px/1.25 var(--font-titre); }
.types button small { display: block; font: 500 12px var(--font); color: var(--fg-muted); margin-top: 3px; }
.types button.urgent { background: var(--alert-bg); }
.types button[aria-pressed="true"] { background: var(--yellow-warm); color: var(--ink); box-shadow: var(--shadow-s); }
.types button[aria-pressed="true"] small { color: var(--ink); }
.types button.urgent[aria-pressed="true"] { background: var(--red); }
.photo-choix { display: flex; align-items: center; gap: 10px; }
.photo-choix img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: var(--line) solid var(--outline); }
.photo-choix input { display: none; }
#o-signaler .photo-choix { margin-bottom: 18px; }
#o-signaler #sig-envoyer { margin-top: 6px; }

/* ---------- Signalements ---------- */
.signal .tete { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.signal .tete b { font: 700 16px/1.25 var(--font-titre); color: var(--fg-strong); }
.carte.signal.urgent { background: var(--alert-bg); }
.signal .meta { font-size: 12.5px; color: var(--fg-muted); margin: 4px 0 8px; }
.signal img { max-width: 100%; border-radius: 12px; margin: 6px 0; max-height: 240px; object-fit: cover; border: var(--line) solid var(--outline); }
.signal .actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Alarme et alerte générale (seules surfaces rouges, texte à l'encre) ---------- */
.bandeau { position: fixed; left: 10px; right: 10px; top: calc(62px + env(safe-area-inset-top)); z-index: 30; background: var(--red); color: var(--ink);
  border: var(--line) solid var(--ink); border-radius: var(--radius); padding: 14px 16px; box-shadow: 5px 5px 0 var(--ink); animation: entre .25s ease-out; }
.bandeau b { display: block; font: 700 17px var(--font-titre); margin-bottom: 2px; }
.bandeau .rangee { margin-top: 10px; }
.bandeau .btn { background: var(--cream); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); min-height: 42px; }
.bandeau .btn.arreter { background: var(--ink); color: var(--cream); flex: 2; }
@keyframes entre { from { transform: translateY(-20px); opacity: 0; } }
.alerte-generale { position: fixed; inset: 0; z-index: 40; background: var(--red); color: var(--ink); display: flex; flex-direction: column; justify-content: center; padding: 28px; gap: 18px; }
.alerte-generale .kicker { font: 700 16px var(--font-titre); }
.alerte-generale .msg-alerte { font: 700 28px/1.25 var(--font-titre); white-space: pre-wrap; }
.alerte-generale .btn { background: var(--cream); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 17px; min-height: 58px; }

/* Gyrophare : dôme plein qui clignote, sans dégradé */
.sirene { display: inline-block; position: relative; width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: .38em; flex: none; }
.sirene::before { content: ""; position: absolute; left: 16%; right: 16%; top: 8%; bottom: 26%; border-radius: 50% 50% 14% 14% / 72% 72% 14% 14%;
  background: var(--red); border: 1.5px solid currentColor; animation: clignote .9s ease-in-out infinite; }
.sirene::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 6%; height: 20%; border-radius: 2px; background: currentColor; }
.sirene.grand { width: 1.6em; height: 1.6em; vertical-align: -0.35em; }
.bandeau .sirene::before, .alerte-generale .sirene::before, .btn--urgence .sirene::before { background: var(--cream); }
.btn .sirene { margin-right: .45em; }

/* ---------- Démarrage et connexion ---------- */
.demarrage { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; gap: 14px; }
.demarrage h1 { font-size: 26px; }
.demarrage p { color: var(--fg-muted); max-width: 360px; margin: 0; }
.demarrage .btn { min-width: 240px; font-size: 17px; min-height: 56px; }
.demarrage .btn + .btn { margin-top: -2px; }

/* ---------- Messages ---------- */
.fil { display: flex; flex-direction: column; gap: 2px; min-height: 40vh; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); background: var(--bg); border-top: var(--line) solid var(--outline); padding: 8px 10px; display: flex; gap: 8px; align-items: flex-end; z-index: 5; }
.composer textarea { min-height: 44px; max-height: 120px; flex: 1; }
.composer .btn { min-height: 44px; }
.composer label.btn { display: inline-flex; align-items: center; }
.composer input[type=file] { display: none; }
.lecture-seule, .comp-lecture { text-align: center; color: var(--fg-muted); font-size: 13px; padding: 10px; margin: 0; }
.ligne-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; max-width: 100%; }
.ligne-msg.suite { margin-top: 3px; }
.ligne-msg.mien { justify-content: flex-end; }
.bulle { position: relative; max-width: min(78%, 560px); background: var(--surface); color: var(--fg); border: var(--line) solid var(--outline); border-radius: 18px 18px 18px 6px; padding: 8px 12px 6px; }
.ligne-msg.suite .bulle { border-radius: 6px 18px 18px 6px; }
.ligne-msg.mien .bulle { background: var(--blue); color: var(--white); border-color: var(--outline); border-radius: 18px 18px 6px 18px; }
.ligne-msg.mien.suite .bulle { border-radius: 18px 6px 6px 18px; }
.bulle p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.bulle-auteur { font: 700 12.5px var(--font-titre); margin-bottom: 2px; color: var(--fg-strong); }
.bulle-auteur span { font: 500 12px var(--font); color: var(--fg-muted); margin-left: 6px; }
.bulle-heure { display: block; text-align: right; font-size: 10.5px; color: var(--fg-muted); margin-top: 2px; }
.ligne-msg.mien .bulle-heure { color: rgba(255, 255, 255, .85); }
.bulle img { display: block; max-width: 100%; max-height: 300px; border-radius: 12px; margin: 2px 0 4px; }
.bulle.bulle-photo { padding: 4px; }
.bulle.bulle-photo .bulle-heure { padding-right: 6px; }
.chat-annonce { align-self: center; text-align: center; margin: 14px auto 4px; max-width: 90%; background: var(--band-yellow); color: var(--fg); border: var(--line) solid var(--outline); border-radius: 16px; padding: 8px 14px; }
.chat-annonce-tete { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--font-titre); color: var(--fg-strong); }
.chat-annonce-tete .ico { width: 15px; height: 15px; }
.chat-annonce p { margin: 4px 0 0; }
/* Lecteur de vocal */
.lecteur { display: flex; align-items: center; gap: 10px; min-width: 210px; padding: 4px 0 2px; }
.lecteur-btn { width: 38px; height: 38px; border-radius: 50%; border: var(--line) solid var(--outline); background: var(--yellow-warm); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lecteur-btn .ico { width: 16px; height: 16px; }
.lecteur-piste { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); border: 1.5px solid currentColor; cursor: pointer; position: relative; overflow: hidden; }
.ligne-msg.mien .lecteur-piste { background: rgba(255, 255, 255, .25); }
.lecteur-barre { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: currentColor; }
.lecteur-temps { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
/* Barre de saisie */
.composer-chat { flex: 1; min-width: 0; }
.comp-saisie, .comp-vocal { display: flex; align-items: flex-end; gap: 6px; background: var(--surface); border: var(--line) solid var(--outline); border-radius: 24px; padding: 4px; }
.comp-saisie textarea { flex: 1; border: 0; background: none; min-height: 40px; max-height: 140px; padding: 9px 6px; resize: none; }
.comp-saisie textarea:focus { outline: none; }
.comp-saisie:focus-within { outline: 3px solid var(--link); outline-offset: 1px; }
.comp-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--fg-muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.comp-btn:hover:not(:disabled) { color: var(--fg-strong); background: var(--surface-2); }
.comp-btn.micro, .comp-btn.envoyer { background: var(--blue); color: var(--white); border: var(--line) solid var(--outline); }
.comp-btn.micro:hover:not(:disabled), .comp-btn.envoyer:hover:not(:disabled) { background: #0E55C8; color: var(--white); }
.comp-btn:disabled { opacity: .4; }
.comp-btn .ico { width: 20px; height: 20px; }
.comp-vocal { align-items: center; background: var(--alert-bg); }
.comp-rec { width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 1.5px solid var(--outline); animation: clignote 1s infinite; margin-left: 6px; }
.comp-label { flex: 1; color: var(--fg); font-size: 14px; }
.comp-chrono { font-variant-numeric: tabular-nums; font-weight: 700; margin-right: 6px; }

/* ---------- Avatars : couleurs de l'affiche, une par pôle ---------- */
.avatar { position: relative; overflow: hidden; width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  font: 700 12px var(--font-titre); color: var(--ink); background: var(--surface-2); border: var(--line) solid var(--outline); }
.avatar.av-c0 { background: var(--blue); color: var(--white); } .avatar.av-c1 { background: var(--yellow-warm); } .avatar.av-c2 { background: var(--green); }
.avatar.av-c3 { background: var(--pink); } .avatar.av-c4 { background: var(--blue-soft); } .avatar.av-c5 { background: var(--yellow-soft); }
.avatar.av-c6 { background: var(--pink-soft); } .avatar.av-c7 { background: #BFE6CA; } .avatar.av-c8 { background: var(--red); } .avatar.av-c9 { background: var(--cream); }
.avatar.vide-av { background: none; border-color: transparent; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.grand { width: 46px; height: 46px; font-size: 15px; }
.avatar.tres-grand { width: 96px; height: 96px; font-size: 30px; box-shadow: var(--shadow-s); }
.avatar.sans-nom { background: var(--surface-2) !important; color: var(--fg-muted); }
.avatar .ico { width: 20px; height: 20px; }
button.av-bouton { background: none; border: 0; padding: 0; border-radius: 50%; cursor: zoom-in; }
.btn-moi { border: 0; background: none; padding: 0; border-radius: 50%; flex: none; }
.btn-moi .avatar { width: 36px; height: 36px; }
.btn-moi.actif .avatar { box-shadow: 0 0 0 3px var(--yellow-warm); }
.voile.visage { align-items: center; cursor: zoom-out; }
.voile.visage figure { margin: 0; text-align: center; max-width: min(88vw, 420px); }
.voile.visage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 3px solid var(--outline); box-shadow: var(--shadow); }
.voile.visage figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--white); }
.voile.visage figcaption b { font: 700 20px var(--font-titre); }
.ma-photo { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.ma-photo .rangee { flex-wrap: wrap; }
.provenance { color: var(--fg-muted); }

/* ---------- Programme ---------- */
.barre-prog { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; }
.vues { display: inline-flex; background: var(--surface-2); border: var(--line) solid var(--outline); border-radius: var(--pill); padding: 3px; gap: 2px; }
.vues button { border: var(--line) solid transparent; background: none; color: var(--fg); padding: 7px 14px; border-radius: var(--pill); font: 700 13px var(--font-titre); }
.vues button[aria-selected="true"] { background: var(--yellow-warm); color: var(--ink); border-color: var(--outline); }
.barre-prog-droite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recherche-prog { display: flex; align-items: center; gap: 6px; background: var(--surface); border: var(--line) solid var(--outline); border-radius: var(--pill); padding: 0 12px; }
.recherche-prog .ico { color: var(--fg-muted); }
.recherche-prog input { border: 0; background: none; min-height: 38px; width: 200px; padding: 0; }
.recherche-prog input:focus { outline: none; }
.recherche-prog:focus-within { outline: 3px solid var(--link); outline-offset: 1px; }
.edition-prog { margin-bottom: 12px; }
.vue-prog { padding: 12px; }
.prog-outils { display: flex; gap: 8px; margin: 10px 0; }
.prog-outils .recherche-prog { flex: 1; }
.prog-outils .recherche-prog input { width: 100%; }
.prog-outils select { width: auto; max-width: 42%; }
/* Journées : couleur de chaque série comme sur le site, vert pour PyCon, jaune pour le DevFest */
.jours-prog { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.jour-prog { flex: 1; min-width: 150px; border: var(--line) solid var(--outline); background: var(--surface); color: var(--fg-strong); border-radius: var(--pill);
  padding: 9px 14px; font: 700 14px var(--font-titre); }
.jour-prog::first-letter { text-transform: uppercase; }
.jour-prog[aria-selected="true"] { box-shadow: var(--shadow-xs); color: var(--ink); }
.jour-prog[aria-selected="true"]:first-child { background: var(--green); }
.jour-prog[aria-selected="true"]:last-child { background: var(--yellow-warm); }
/* Grille horaire */
.grille-defile { overflow: auto; max-height: calc(100vh - 230px); border-radius: 14px; border: var(--line) solid var(--outline); background: var(--surface); }
.grille-prog { display: grid; position: relative; min-width: max-content; }
.grille-coin, .grille-tete { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: var(--line) solid var(--outline); }
.grille-coin { left: 0; z-index: 4; }
.grille-tete { padding: 8px 10px; border-left: 1.5px solid var(--line-soft); }
.grille-tete b { display: block; font: 700 14px var(--font-titre); color: var(--fg-strong); }
.grille-tete span { font-size: 11.5px; color: var(--fg-muted); }
.grille-axe { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1.5px solid var(--line-soft); }
.grille-axe span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.grille-axe span:first-child { transform: none; }
.grille-col { position: relative; border-left: 1.5px solid var(--line-soft); }
.grille-heure { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-soft); }
.grille-maintenant { position: absolute; left: 0; right: 0; height: 3px; background: var(--red); z-index: 2; }
.bloc-act { position: absolute; left: 4px; right: 4px; border: var(--line) solid var(--outline); border-radius: 10px; background: var(--surface); color: var(--fg);
  text-align: left; padding: 5px 8px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; z-index: 1; }
.bloc-act > * { flex-shrink: 0; }
.bloc-act:hover { z-index: 5; box-shadow: var(--shadow-xs); }
.bloc-heure { font-size: 11px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.bloc-titre { font: 700 12.5px/1.25 var(--font-titre); color: var(--fg-strong); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lignes, 2); overflow: hidden; }
.bloc-int { font-size: 11.5px; color: var(--fg-muted); }
.bloc-statut { font-size: 11px; font-weight: 700; margin-top: auto; }
.bloc-act .speaker, .bloc-act .deplacee { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc-act .speaker .ico { vertical-align: -2px; margin-right: 3px; }
.bloc-act.s-commencee { background: var(--ok-bg); } .bloc-act.s-commencee .bloc-statut { color: var(--ok-fg); }
.bloc-act.s-retard, .bloc-act.s-depasse { background: var(--warn-bg); } .bloc-act.s-retard .bloc-statut, .bloc-act.s-depasse .bloc-statut { color: var(--warn-fg); }
.bloc-act.s-attente { background: var(--alert-bg); } .bloc-act.s-attente .bloc-statut { color: var(--alert-fg); }
.bloc-act.s-terminee { opacity: .5; }
.bloc-act.s-annulee { opacity: .4; text-decoration: line-through; }
/* Maintenant */
.grille-maint { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.carte-maint { background: var(--surface); border: var(--line) solid var(--outline); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-xs); }
.carte-maint.s-commencee { background: var(--ok-bg); }
.carte-maint.s-retard, .carte-maint.s-depasse { background: var(--warn-bg); }
.carte-maint.s-attente { background: var(--alert-bg); }
.maint-tete { display: flex; align-items: center; gap: 8px; }
.maint-tete b { font: 700 16px var(--font-titre); color: var(--fg-strong); }
.maint-tete .statut { margin-left: auto; }
.maint-titre { font-weight: 700; font-size: 15px; color: var(--fg-strong); cursor: pointer; }
.maint-occ { font-size: 13px; color: var(--fg-muted); }
.maint-occ b { font: 700 22px var(--font-titre); color: var(--fg-strong); }
.maint-suite { font-size: 12.5px; color: var(--fg-muted); border-top: 1.5px dashed var(--line-soft); padding-top: 6px; margin-top: auto; }
.maint-suite span { font-weight: 700; margin-right: 6px; color: var(--fg-strong); }
.jauge { height: 10px; border-radius: 5px; background: var(--surface-2); border: 1.5px solid var(--outline); overflow: hidden; }
.jauge span { display: block; height: 100%; background: var(--green); }
.jauge span.presque { background: var(--yellow-warm); }
.jauge span.plein { background: var(--red); }
/* Par salle */
.grille-salles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.carte-salle { background: var(--surface); border: var(--line) solid var(--outline); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-xs); }
.salle-tete { margin-bottom: 8px; }
.salle-tete b { font: 700 16px var(--font-titre); color: var(--fg-strong); }
.ligne-session { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-top: 1.5px solid var(--line-soft); padding: 8px 4px; text-align: left; color: var(--fg); }
.ligne-session:hover { background: var(--surface-2); }
.ligne-session.courante { background: var(--band-yellow); border-radius: 10px; }
.ls-heure { width: 48px; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--fg-strong); }
.ls-heure small { display: block; color: var(--fg-muted); font-weight: 500; }
.ls-quoi { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; }
.ls-quoi small { color: var(--fg-muted); }
/* Liste chronologique */
.liste-prog { display: flex; flex-direction: column; }
.liste-heure { font: 700 14px var(--font-titre); color: var(--fg-strong); padding: 12px 4px 4px; border-bottom: var(--line) solid var(--outline); }
.ls-lieu { width: 64px; flex: none; font-weight: 700; font-size: 13px; color: var(--fg-strong); }
.ls-lieu small { display: block; font-weight: 500; color: var(--fg-muted); font-size: 11px; }
@media (max-width: 700px) {
  .vues { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; border-radius: 18px; }
  .vues button { padding: 7px 4px; font-size: 12px; flex-direction: column; gap: 3px; border-radius: 14px; }
  .grille-defile { max-height: 68vh; }
  .grille-maint, .grille-salles { grid-template-columns: 1fr; }
  .ligne-session { padding: 10px 2px; }
  .ls-lieu { width: 52px; }
}

/* ---------- Équipe, annuaire, choix de personnes ---------- */
.membre-ligne { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1.5px solid var(--line-soft); }
.membre-ligne:last-child { border-bottom: 0; }
.membre-ligne .n { flex: 1; min-width: 0; }
.membre-ligne .n small { display: block; color: var(--fg-muted); font-size: 12px; }
.membre-ligne a { color: var(--fg-strong); text-decoration: none; font-size: 20px; }
.membre-ligne a.appel { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: var(--ink);
  border: var(--line) solid var(--outline); box-shadow: var(--shadow-xs); }
.membre-ligne a.appel .ico { width: 20px; height: 20px; }
.choix-membres { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow: auto; }
.choix-groupe { font: 700 13px var(--font-titre); color: var(--fg-strong); margin: 12px 0 4px; }
.choix-membre { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: var(--line) solid transparent; border-radius: 14px; padding: 8px; color: var(--fg); }
.choix-membre:hover:not(:disabled) { background: var(--surface-2); border-color: var(--outline); }
.choix-membre .n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.choix-membre .n small { color: var(--fg-muted); font-size: 12px; }
.choix-membre.actuel { opacity: .6; }
.voile.assigner .champ input[type=search] { width: 100%; }
.acces-tout { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; margin: 8px 0; padding: 10px 12px; border-radius: 14px; border: var(--line) dashed var(--outline); background: none; color: var(--fg); }
.acces-tout span { display: flex; flex-direction: column; }
.acces-tout small { color: var(--fg-muted); font-size: 12px; }
.acces-tout .ico { width: 18px; height: 18px; flex: none; }
.acces-tout[aria-pressed="true"] { background: var(--yellow-warm); color: var(--ink); border-style: solid; }
.acces-tout[aria-pressed="true"] small { color: var(--ink); }
.carte.acces-total { background: var(--band-sky); }
.carte.acces-total p { margin: 4px 0 0; }
.etapes { margin: 6px 0 0; padding-left: 20px; color: var(--fg-muted); }
.etapes li { margin: 4px 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-top: 8px; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: var(--line) solid var(--outline); }


/* ---------- Divers ---------- */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--fg-strong); color: var(--bg);
  border: var(--line) solid var(--outline); padding: 11px 16px; border-radius: 14px; z-index: 60; max-width: 90vw; font-weight: 500; box-shadow: 3px 3px 0 var(--yellow-warm); transition: opacity .4s; }
.toast.erreur { background: var(--red); color: var(--ink); box-shadow: 3px 3px 0 var(--outline); }
.toast.sort { opacity: 0; }
.vide { text-align: center; color: var(--fg-muted); padding: 26px 10px; }
.version-app { text-align: center; margin: 14px 0 0; }
.espace { height: 10px; } .espace-composer { height: 70px; }
.haut-8 { margin-top: 8px; } .haut-10 { margin: 10px 0 0; } .haut-14 { margin-top: 14px; } .haut-24 { margin-top: 24px; }
.bas-10 { margin-bottom: 10px; } .sans-haut { margin-top: 0; } .remonte { margin-top: -6px; }
.centre { text-align: center; } .a-gauche { text-align: left; } .flex-1 { flex: 1; }

/* ---------- Icônes au trait ---------- */
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .plein { fill: currentColor; stroke-width: 1.5; }
.avec-ico { display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
p.avec-ico { display: flex; justify-content: flex-start; align-items: flex-start; }
p.avec-ico .ico { margin-top: .15em; }
.etat-ok .ico, .ico.vert { color: var(--ok-fg); }
.etat-ko .ico { color: var(--warn-fg); }
.nav .ic .ico { width: 23px; height: 23px; vertical-align: 0; }
.nav button.signaler .ic .ico { width: 26px; height: 26px; stroke-width: 3; color: var(--ink); }
.ico.resp { color: var(--fg-strong); width: .9em; height: .9em; margin-left: 6px; vertical-align: -0.05em; }
.ico.alerte-ico { color: var(--alert-fg); margin-left: 6px; }
.lien-app .ico { width: .95em; height: .95em; }

/* ---------- Mobile et app installée ---------- */
button, .btn, .nav, .puces, .types, .etages, .plan, .tour { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
@media (display-mode: standalone) { .entete { padding-top: max(12px, env(safe-area-inset-top)); } }
/* Coquille de l'app téléphone : rien n'est fixé à l'écran, seul le contenu défile (iOS et clavier). */
html.coquille { height: 100%; overflow: hidden; background: var(--bg); }
html.coquille body { height: 100%; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
html.coquille .entete { position: relative; flex: none; }
html.coquille main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  max-width: none; width: 100%; box-sizing: border-box; padding: 14px max(14px, calc((100% - 760px) / 2)) 24px; background: var(--bg); }
html.coquille .composer { position: relative; bottom: auto; left: auto; right: auto; flex: none; }
html.coquille .nav { position: relative; flex: none; }
html.coquille .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (display-mode: standalone) { html.coquille, html.coquille body { height: 100vh; min-height: 100vh; } }
html.coquille, html.coquille body { overscroll-behavior: none; }
html.coquille main > .onglet.actif { min-height: calc(100% + 1px); }
html.coquille.clavier, html.coquille.clavier body { height: var(--haut-visible); min-height: 0; }
html.coquille.clavier .nav { display: none; }

/* ---------- Mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
